/* ==========================================================================
   Earshot — tryearshot.app
   Shared design system. Product-native: indigo/violet accent, coral record
   spark, soft rounded cards, light + dark themes lifted from the app UI.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* light theme (app light: lavender-white canvas, white cards) */
  --bg:        oklch(98.5% 0.006 280);
  --bg-tint:   oklch(97% 0.012 285);
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(98% 0.008 285);
  --fg:        oklch(24% 0.028 280);
  --fg-strong: oklch(18% 0.03 280);
  --muted:     oklch(52% 0.022 280);
  --faint:     oklch(66% 0.018 280);
  --border:    oklch(92% 0.012 285);
  --border-2:  oklch(88% 0.016 285);

  --accent:    oklch(55% 0.205 288);   /* indigo/violet */
  --accent-ink:oklch(46% 0.20 288);    /* accent for text on light (contrast) */
  --accent-soft: oklch(96% 0.03 288);
  --accent-2:  oklch(63% 0.19 25);     /* coral record spark — used sparingly */
  --btn-primary-bg: var(--accent);     /* primary button fill (overridden per theme) */
  --ok:        oklch(58% 0.14 155);
  --ok-soft:   oklch(95% 0.05 155);

  --shadow-sm: 0 1px 2px oklch(30% 0.03 280 / .06), 0 2px 8px oklch(30% 0.03 280 / .05);
  --shadow-md: 0 8px 30px oklch(30% 0.04 280 / .10);
  --shadow-lg: 0 30px 70px oklch(28% 0.06 285 / .22);
  --glow:      0 0 0 1px oklch(55% 0.205 288 / .18), 0 20px 60px oklch(55% 0.205 288 / .28);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  --bg:        oklch(15% 0.014 280);   /* near-black, faint blue (app dark) */
  --bg-tint:   oklch(17.5% 0.018 282);
  --surface:   oklch(19% 0.016 282);
  --surface-2: oklch(22% 0.02 284);
  --fg:        oklch(93% 0.006 280);
  --fg-strong: oklch(98% 0.004 280);
  --muted:     oklch(70% 0.018 282);
  --faint:     oklch(64% 0.02 282);
  --border:    oklch(100% 0 0 / .09);
  --border-2:  oklch(100% 0 0 / .14);

  --accent:    oklch(68% 0.17 286);
  --accent-ink:oklch(80% 0.13 286);
  --accent-soft: oklch(30% 0.08 286);
  --accent-2:  oklch(68% 0.18 26);
  --btn-primary-bg: oklch(56% 0.215 286);  /* deeper indigo so #fff text stays legible */
  --ok:        oklch(72% 0.15 158);
  --ok-soft:   oklch(30% 0.07 158);

  --shadow-sm: 0 1px 2px #0007, 0 2px 10px #0006;
  --shadow-md: 0 10px 34px #0008;
  --shadow-lg: 0 34px 80px #000a;
  --glow:      0 0 0 1px oklch(68% 0.17 286 / .35), 0 24px 70px oklch(60% 0.2 286 / .38);
}

/* ---- Reset --------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }  /* author display rules must not beat the hidden attr */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: oklch(55% 0.205 288 / .22); }

/* cross-document view transition (progressive enhancement) */
@view-transition { navigation: auto; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg-strong); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.h-display { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.02; }
.h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.015em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }
.only-dark { display: none; } :root[data-theme="dark"] .only-light { display: none; } :root[data-theme="dark"] .only-dark { display: revert; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-primary-bg); color: #fff; box-shadow: 0 8px 24px oklch(55% 0.205 288 / .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px oklch(55% 0.205 288 / .42); }
.btn-ghost { background: var(--surface); color: var(--fg-strong); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-ink); }
.btn-plain { padding: 13px 6px; color: var(--fg-strong); }
.btn-plain:hover { color: var(--accent-ink); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-block { width: 100%; justify-content: center; }
.arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow, a:hover .arrow { transform: translateX(4px); }
/* Pressed feedback — quick, under 100ms per motion-discipline */
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.icon-btn:active, .faq-q:active { transform: scale(.97); }

/* ---- Focus + skip link (keyboard accessibility) -------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* mouse users don't get the ring; keyboard users always do */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 11px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-md);
  transform: translateY(-180%); transition: transform .2s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: height .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--fg-strong); }
.brand .logo { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 13px; border-radius: 8px; font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg-strong); background: var(--surface-2); }
.nav-sep { width: 1px; height: 22px; background: var(--border-2); margin-inline: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; transition: .2s; }
.icon-btn:hover { color: var(--fg-strong); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-burger { display: none; }

.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--bg); padding: 24px; transform: translateX(100%); transition: transform .35s var(--ease-out); display: flex; flex-direction: column; gap: 6px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 15px 8px; font-size: 19px; font-family: var(--font-display); border-bottom: 1px solid var(--border); color: var(--fg-strong); }
.mobile-menu .btn { margin-top: 16px; }

/* ---- Waveform motif ------------------------------------------------------ */
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 40%; background: currentColor; border-radius: 3px; animation: wave 1.1s var(--ease) infinite; }
.wave i:nth-child(2){ animation-delay: .12s } .wave i:nth-child(3){ animation-delay: .24s }
.wave i:nth-child(4){ animation-delay: .36s } .wave i:nth-child(5){ animation-delay: .48s }
.wave i:nth-child(6){ animation-delay: .60s } .wave i:nth-child(7){ animation-delay: .72s }
@keyframes wave { 0%,100%{ height: 22%; opacity: .6 } 50%{ height: 100%; opacity: 1 } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 100px)); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: -1; filter: blur(60px); opacity: .6; pointer-events: none; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; }
.aurora::before { width: 560px; height: 560px; left: 8%; top: 0; background: radial-gradient(circle, oklch(60% 0.2 288 / .55), transparent 68%); animation: drift 18s var(--ease) infinite alternate; }
.aurora::after { width: 480px; height: 480px; right: 6%; top: 8%; background: radial-gradient(circle, oklch(64% 0.17 320 / .4), transparent 66%); animation: drift 22s var(--ease) infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1) } to { transform: translate(40px, 30px) scale(1.12) } }
.grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--muted); font-weight: 500; }
.hero-badge b { color: var(--fg-strong); font-weight: 600; }
.hero-badge .pill { background: var(--accent-soft); color: var(--accent-ink); padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.hero h1 { margin: 22px 0 0; max-width: 15ch; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-micro { margin-top: 16px; font-size: 13.5px; color: var(--faint); font-family: var(--font-mono); letter-spacing: .01em; }

.hero-visual { position: relative; margin-top: clamp(44px, 6vw, 76px); }
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); background: var(--surface); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 #fff2; pointer-events: none; }
.frame img { width: 100%; }
.hero-visual .float-card { position: absolute; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow-md); padding: 13px 16px; font-size: 13.5px; display: flex; align-items: center; gap: 11px; }
.hero-visual .fc-1 { top: 8%; left: -3%; }
.hero-visual .fc-2 { bottom: 10%; right: -2%; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.rec { background: var(--accent-2); box-shadow: 0 0 0 0 oklch(63% 0.19 25 / .6); animation: pulse 1.8s infinite; }
.dot.ok { background: var(--ok); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 oklch(63% 0.19 25 / .55) } 70%{ box-shadow: 0 0 0 10px transparent } 100%{ box-shadow: 0 0 0 0 transparent } }

/* ---- Trust strip --------------------------------------------------------- */
.trust { border-block: 1px solid var(--border); background: var(--bg-tint); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 32px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.trust-item .ico svg { width: 21px; height: 21px; }
.trust-item b { display: block; color: var(--fg-strong); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.trust-item span { font-size: 14.5px; color: var(--muted); }

/* ---- Features ------------------------------------------------------------ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 84px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature.rev .feat-media { order: -1; }
.feat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), oklch(58% 0.2 320)); color: #fff; box-shadow: 0 10px 24px oklch(55% 0.205 288 / .3); margin-bottom: 20px; }
.feat-ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 14px; }
.feature p { color: var(--muted); max-width: 46ch; }
.feat-media { position: relative; }
.feat-media .frame { transition: transform .5s var(--ease-out); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* Ask Earshot demo card */
.ask-demo { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.ask-demo .bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.ask-demo .bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.ask-body { padding: 22px; min-height: 250px; }
.ask-q { display: inline-block; background: var(--accent); color: #fff; padding: 11px 16px; border-radius: 14px 14px 3px 14px; font-size: 15px; max-width: 85%; }
.ask-a { margin-top: 18px; background: var(--surface-2); border: 1px solid var(--border); padding: 15px 16px; border-radius: 3px 14px 14px 14px; font-size: 15px; color: var(--fg); max-width: 92%; opacity: 0; transform: translateY(8px); transition: .5s var(--ease-out); }
.ask-a.show { opacity: 1; transform: none; }
.receipt { margin-top: 12px; padding: 11px 13px; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--accent-ink); font-style: italic; }
.receipt cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 11px; opacity: .8; margin-top: 5px; }
.cursor { display: inline-block; width: 2px; height: 1.05em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

/* ---- Privacy band -------------------------------------------------------- */
.privacy-band { background: oklch(16% 0.02 282); color: oklch(94% 0.01 280); position: relative; overflow: hidden; border-radius: 0; }
:root[data-theme="dark"] .privacy-band { background: oklch(20% 0.025 284); border-block: 1px solid var(--border); }
.privacy-band .glow-orb { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, oklch(55% 0.2 288 / .4), transparent 70%); filter: blur(40px); top: -30%; right: -8%; pointer-events: none; }
.privacy-band h2 { color: #fff; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.pv-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: oklch(100% 0 0 / .04); border: 1px solid oklch(100% 0 0 / .08); }
.pv-item .ico { color: oklch(80% 0.13 286); flex: none; margin-top: 2px; }
.pv-item .ico svg { width: 22px; height: 22px; }
.pv-item p { color: oklch(82% 0.015 280); font-size: 15px; margin: 0; }
.pv-item b { color: #fff; }

/* ---- How it works -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; position: relative; }
.step { position: relative; padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step .num { font-family: var(--font-display); font-size: 15px; font-weight: 600; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.steps .connector { position: absolute; top: 48px; left: 12%; right: 12%; height: 2px; z-index: -1; background: repeating-linear-gradient(90deg, var(--border-2) 0 8px, transparent 8px 16px); }

/* ---- Split cards --------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 52px; }
.plan-card { position: relative; padding: 34px; border-radius: var(--r-xl); border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .3s; overflow: hidden; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: transparent; box-shadow: var(--glow); }
.plan-card.featured::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(145deg, var(--accent), oklch(60% 0.2 330)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-tag { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan-card h3 { font-size: 22px; }
.plan-price { font-family: var(--font-display); font-size: clamp(38px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: var(--fg-strong); margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .per { font-size: 17px; font-weight: 500; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; }
.plan-tagline { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.plan-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.plan-list li { display: flex; gap: 11px; font-size: 15px; color: var(--fg); align-items: flex-start; }
.plan-list li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.plan-list li em { font-style: normal; color: var(--faint); font-size: 13px; }

/* ---- Final CTA ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px); text-align: center; color: #fff;
  background: linear-gradient(150deg, oklch(46% 0.2 288), oklch(40% 0.18 316)); box-shadow: var(--shadow-lg); }
.cta-band .glow-orb { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, #fff4, transparent 70%); top: -60%; left: 50%; transform: translateX(-50%); filter: blur(30px); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #ffffffcc; margin: 16px auto 0; max-width: 46ch; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 10px 30px #0003; }
.cta-band .btn-primary:hover { box-shadow: 0 16px 40px #0004; }
.cta-band .btn-ghost { background: #ffffff1f; color: #fff; border-color: #ffffff40; box-shadow: none; }
.cta-band .btn-ghost:hover { background: #ffffff2e; border-color: #fff; color: #fff; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-tint); padding-block: 60px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer-blurb { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint); }
.made { display: inline-flex; align-items: center; gap: 8px; }

/* ---- Sub-page hero ------------------------------------------------------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px)); padding-bottom: clamp(20px, 3vw, 36px); position: relative; overflow: hidden; }
.page-head .grid-bg { opacity: .4; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 18px; }

/* ---- Pricing table ------------------------------------------------------- */
.toggle-wrap { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; }
.toggle { width: 52px; height: 30px; border-radius: 999px; background: var(--border-2); position: relative; transition: background .3s; flex: none; }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out); }
.toggle[aria-checked="true"]::after { transform: translateX(22px); }
.save-pill { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); letter-spacing: .03em; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.cmp thead th { font-family: var(--font-display); font-weight: 600; color: var(--fg-strong); background: var(--surface-2); letter-spacing: -0.01em; }
.cmp thead th:not(:first-child), .cmp td:not(:first-child) { text-align: center; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { color: var(--fg); font-weight: 500; }
.cmp td:not(:first-child) { color: var(--muted); }
.cmp .yes { color: var(--accent); }
.cmp .featured-col { background: var(--accent-soft); }
.cmp svg { width: 18px; height: 18px; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-strong); }
.faq-q .pm { width: 26px; height: 26px; flex: none; position: relative; transition: transform .3s var(--ease); color: var(--accent); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 24px; color: var(--muted); font-size: 15.5px; max-width: 68ch; }

/* ---- Prose (legal) ------------------------------------------------------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--fg); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.prose .draft-note { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; color: var(--accent-ink); margin-bottom: 28px; }

/* ---- Callout / misc ------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.note-card { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; }
.note-card h3 { color: var(--accent-ink); margin-bottom: 10px; }
.reqs { list-style: none; display: grid; gap: 12px; }
.reqs li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg); }
.reqs li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
.dl-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--faint); letter-spacing: -0.01em; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* form (macOS capture / mailto) */
.mini-form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mini-form input { flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; }
.mini-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* ---- Motion utilities ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s } .reveal[data-d="2"] { transition-delay: .16s }
.reveal[data-d="3"] { transition-delay: .24s } .reveal[data-d="4"] { transition-delay: .32s }
.reveal[data-d="5"] { transition-delay: .40s }
.draw { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); transition: stroke-dashoffset 1.1s var(--ease-out); }
.reveal.in .draw { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
  .aurora, .aurora::before, .aurora::after, .marquee-track, .wave i, .dot.rec { animation: none !important; }
  .btn, .plan-card, .feat-media .frame { transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 30px; }
  .feature.rev .feat-media { order: 0; }
  .trust .wrap { grid-template-columns: 1fr; gap: 20px; padding-block: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps .connector { display: none; }
  .split, .privacy-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
  .hero-visual .float-card { position: static; margin: 10px 0 0; display: inline-flex; }
  .hero-visual .fc-2 { margin-left: 10px; }
}

/* Phones: a desktop app screenshot squeezed to 360px is unreadable noise.
   Show a LEGIBLE ZOOMED CROP instead (cover + focal point), tighten the
   rhythm, and let long content scroll inside its own box. */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .section { padding-block: clamp(52px, 12vw, 72px); }

  /* hero */
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-badge { flex-wrap: wrap; row-gap: 4px; font-size: 12.5px; }
  .h-display { font-size: clamp(34px, 10.5vw, 44px); }
  .hero .lead { font-size: 16.5px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-micro { font-size: 12.5px; }
  .hero-visual { margin-top: 36px; }
  /* manual zoom-crop: cover can only fill, never zoom, and the app shot's
     lower half is empty canvas — oversize the image and clip to the hero
     card + meeting rows so the crop is actually legible */
  .hero-visual .frame { aspect-ratio: 4 / 3.6; }
  .hero-visual .frame img { width: 230%; max-width: none; margin-left: -50%; height: auto; }
  .hero-visual .float-card { font-size: 12.5px; padding: 10px 13px; }

  /* app screenshots inside feature rows: same legible zoom-crop */
  .feat-media .frame { aspect-ratio: 4 / 3.2; }
  .feat-media .frame img { width: 215%; max-width: none; margin-left: -42%; height: auto; }

  /* cards + bands */
  .plan-card { padding: 26px 22px; }
  .plan-price { font-size: 40px; }
  .cta-band { border-radius: var(--r-lg); padding: 44px 24px; }
  .pv-item { padding: 16px; }
  .step { padding: 22px 20px; }
  .note-card, .card { padding: 22px 20px; }

  /* pricing comparison: horizontal scroll inside the table only */
  .cmp { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .cmp th, .cmp td { padding: 12px 14px; font-size: 13.5px; }

  /* faq + legal */
  .faq-q { font-size: 16px; padding-block: 19px; }
  .faq-a-inner { font-size: 15px; }
  .prose p, .prose li { font-size: 15.5px; }

  .page-head { padding-top: calc(var(--nav-h) + 44px); }
  .footer { padding-block: 44px 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mini-form .btn { width: 100%; justify-content: center; }
  .ask-body { min-height: 0; padding: 18px; }
  .marquee-track span { font-size: 16px; }
}
