/* Arc — marketing site stylesheet.
   Brand carried from the app: soft category palette, brand blue, light "paper"
   ground with a deep luminous hero echoing the app icon. */

:root {
  /* Neutrals (from tailwind.config.js / colors.ts) */
  --ink: #171A21;
  --ink-soft: #48505C;
  --muted: #6B7480;
  --faint: #9AA3AF;
  --paper: #FFFFFF;
  --surface: #F4F5F7;
  --surface-2: #ECEFF3;
  --line: #EAECF0;
  --line-strong: #DCE0E6;

  /* Brand */
  --accent: #4F86E8;
  --accent-deep: #3D6FD6;
  --accent-ink: #1E4CA8;

  /* Soft category palette (mirrors src/lib/colors.ts) */
  --sleep: #6E8BE6;
  --work: #F0A461;
  --exercise: #57C18C;
  --leisure: #C08FD6;
  --other: #AAB4C2;
  --event: #34C0C9;

  /* Deep hero */
  --night-0: #0A1B3D;
  --night-1: #123163;
  --night-2: #1E5CC8;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  --maxw: 1120px;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.12), 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(11, 27, 61, 0.28), 0 12px 24px -12px rgba(16, 24, 40, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -0.022em; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-deep);
  margin: 0 0 14px;
}
.hero .eyebrow { color: #9CC0FF; }

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.solid { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.logo {
  display: block;
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo svg { width: 20px; height: 20px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-soft); font-size: 14.5px; font-weight: 550;
  padding: 8px 12px; border-radius: 9px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav .btn { margin-left: 6px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 20px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff; background: linear-gradient(150deg, #4F86E8, #3D6FD6);
  box-shadow: 0 8px 18px -8px rgba(61, 111, 214, .6);
}
.btn-primary:hover { box-shadow: 0 12px 24px -8px rgba(61, 111, 214, .7); color: #fff; }
.btn-ghost { color: var(--ink); background: var(--paper); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: var(--faint); }
.btn-onnight { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-onnight:hover { color: #fff; background: rgba(255,255,255,.18); }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(79, 134, 232, .55), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(110, 139, 230, .30), transparent 60%),
    linear-gradient(165deg, #0A1B3D 0%, #123163 52%, #16407e 100%);
  color: #EAF1FF;
}
.hero::before { /* blueprint grid echoing the app icon */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 78%);
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 24px clamp(72px, 10vw, 120px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.02; font-weight: 700;
  margin: 0 0 20px; color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #BFD6FF, #7FB0FF 55%, #A9C4FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: #B8CBEC; max-width: 44ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #93A9CE;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: #7FE0B0; flex: none; }

.dial-stage { position: relative; display: grid; place-items: center; }
.dial-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,170,255,.55), transparent 62%);
  filter: blur(34px); z-index: 0;
}

/* app-screen — a faithful light card that frames the real dial (the app dial is
   light: white hub, dark text — so it lives in a light surface, not on navy). */
.app-screen {
  position: relative; z-index: 1;
  width: min(400px, 90vw);
  background: linear-gradient(180deg, #FFFFFF, #FBFCFD);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 20px 22px 24px;
  box-shadow: var(--shadow-lg);
}
.hero-screen { box-shadow: 0 40px 80px -24px rgba(4, 14, 38, .6), 0 12px 30px -12px rgba(4, 14, 38, .5); }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.app-title { font-size: 20px; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); }
.wpill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); border-radius: 999px; padding: 5px 13px 5px 7px;
  font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.wpill svg { width: 24px; height: 24px; }
.app-dial { display: grid; place-items: center; }
.app-dial svg { width: 100%; height: auto; max-width: 340px; }
.app-legend {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 18px; margin-top: 8px;
}
.app-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.app-legend .lg i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ------------------------------------------------------------ marquee / logos row */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 30px; font-size: 14px; line-height: 1.5; color: var(--muted);
}
.strip-inner b { color: var(--ink); font-weight: 650; }
.strip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* ------------------------------------------------------------ sections */
section { padding: clamp(64px, 9vw, 108px) 0; }
/* `.wrap` on a <section> sets padding:0 24px, which (class > type selector)
   zeroes the vertical section padding. Restore it with a higher-specificity rule
   so section.wrap keeps its 24px sides AND its top/bottom breathing room. */
section.wrap { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.section-head { max-width: 660px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 0 0 16px; line-height: 1.08; }
.section-head p { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 650; margin: 0 0 8px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.ic.sleep { background: color-mix(in srgb, var(--sleep) 15%, white); color: #4a63b8; }
.ic.event { background: color-mix(in srgb, var(--event) 16%, white); color: #1a8f96; }
.ic.work  { background: color-mix(in srgb, var(--work) 18%, white); color: #c0722c; }
.ic.exercise { background: color-mix(in srgb, var(--exercise) 16%, white); color: #2f9268; }

/* alternating showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.showcase + .showcase { margin-top: clamp(72px, 10vw, 128px); }
.showcase.flip .show-media { order: -1; }
.show-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.show-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 0 0 16px; line-height: 1.12; }
.show-copy p { color: var(--muted); font-size: 16.5px; margin: 0 0 14px; }
.show-copy .checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.show-copy .checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.show-copy .checks svg { width: 20px; height: 20px; color: var(--exercise); flex: none; margin-top: 1px; }
.show-media { position: relative; display: grid; place-items: center; }
.media-card {
  width: 100%; border-radius: 24px; padding: 34px;
  background: linear-gradient(160deg, #F7F9FC, #EDF1F8);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.media-card.dark {
  background: linear-gradient(160deg, #0F2550, #16407e);
  border-color: rgba(255,255,255,.08);
}
.media-card svg, .media-card img { width: 100%; height: auto; }

/* how it works */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step .n {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, white);
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 650; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* privacy band */
.privacy-band {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0A1B3D, #16407e);
  color: #E8F0FF; border-radius: 28px;
  padding: clamp(40px, 6vw, 68px); margin: 0 auto;
}
.privacy-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 85% 0%, rgba(79,134,232,.4), transparent 60%);
  pointer-events: none;
}
.privacy-band .inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.privacy-band h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 16px; color: #fff; }
.privacy-band p { color: #B6CAEC; margin: 0 0 12px; font-size: 16.5px; }
.privacy-list { display: grid; gap: 14px; }
.privacy-list .row {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 16px 18px;
}
.privacy-list .row svg { width: 22px; height: 22px; color: #7FE0B0; flex: none; }
.privacy-list .row b { color: #fff; font-weight: 620; display: block; margin-bottom: 2px; }
.privacy-list .row span { color: #A9BFE6; font-size: 14px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details.qa {
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  padding: 4px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s;
}
details.qa[open] { border-color: var(--line-strong); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .chev { transition: transform .2s; color: var(--faint); flex: none; }
details.qa[open] summary .chev { transform: rotate(45deg); }
details.qa p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }

/* final CTA */
.cta {
  text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(79,134,232,.5), transparent 60%),
    linear-gradient(160deg, #0A1B3D, #123163);
  color: #fff;
}
.cta h2 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 18px; color: #fff; }
.cta p { color: #B6CAEC; font-size: clamp(16px, 2vw, 19px); max-width: 46ch; margin: 0 auto 30px; }
.cta .hero-cta { justify-content: center; }

/* ------------------------------------------------------------ footer */
.footer { background: var(--ink); color: #B9C1CE; padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .tag { font-size: 14px; color: #8A93A2; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--mono); font-weight: 600; margin: 0 0 14px; }
.footer a { color: #B9C1CE; font-size: 14.5px; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid #2A2F38;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13.5px; color: #7B838F;
}

/* ------------------------------------------------------------ legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 100px); }
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.legal .eyebrow { color: var(--accent-deep); }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin: 0 0 10px; }
.legal .updated { color: var(--faint); font-family: var(--mono); font-size: 13px; margin: 0 0 8px; }
.legal .intro { font-size: 18px; color: var(--ink-soft); margin: 18px 0 8px; }
.legal h2 {
  font-size: 22px; font-weight: 660; margin: 44px 0 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.legal h3 { font-size: 17px; font-weight: 640; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--faint); }
.legal strong { color: var(--ink); font-weight: 620; }
.legal a { font-weight: 550; }
.legal .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 12px; padding: 16px 18px; margin: 20px 0;
  font-size: 15px; color: var(--ink-soft);
}
.legal .callout b { color: var(--ink); }
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin: 28px 0 8px;
}
.toc h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-family: var(--mono); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; gap: 24px; }
.toc li { margin: 5px 0; font-size: 14.5px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .dial-stage { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase, .privacy-band .inner, .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .showcase.flip .show-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
