/* ============================================================
   Debrief — Website Styles
   Source of truth: docs/06_Design_System_Spec.md (tokens/components)
   Breakpoints (mobile-first, intentional per device, not just fluid scaling):
     base   0–767px   phone, touch/swipe, primary build
     tablet 768px+     touch/swipe, more breathing room
     laptop 1024px+    mouse/trackpad, scroll+click, fragments get full rotation/bleed
     wide   1440px+    desktop, most generous spacing
   Hover-only flourishes are scoped to (hover:hover) and (pointer:fine) so touch
   devices never get a stuck hover state.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens — Doc 06 §1 */
  --bg: #0A0A0B;
  --s1: #131315;
  --s2: #151517;
  --bd: #232326;
  --bdh: #2E2E32;
  --t: #F2F2F7;
  --t2: #98989D;
  --t3: #6C6C70;
  --t4: #48484A;
  --blue: #0A84FF;
  --blue-h: #339CFF;
  /* Darker than --blue specifically for white-text-on-blue backgrounds (buttons,
     skip link): #0A84FF only reaches 3.6:1 with white text, failing WCAG AA's
     4.5:1 floor. --blue stays untouched since it also serves as link/icon
     foreground color on the dark bg, where it already passes at 5.4:1 and
     darkening it there would newly fail instead. */
  --blue-btn: #0870D8;
  --blue-btn-h: #0874E0;
  --red: #FF3B30;
  --green: #30D158;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale — Doc 06 §3 (4px base unit) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --sp-9: 120px;

  /* Section rhythm — mobile-first, widens per breakpoint below */
  --section-pad: var(--sp-8);
  /* Card-to-card gap: the seam between two .section-sheet cards (not the
     hero->first-card or last-card->footer edges, which keep --section-pad). */
  --card-gap-pad: var(--sp-6);
  --copy-max: 560px;
  --copy-max-hero: 460px;
  --container-max: 600px;
  --container-pad: var(--sp-5);

  /* Type scale — mobile values (Doc 06 §2), laptop/wide override below */
  --fs-h1: 38px;
  --fs-h2: 27px;
  --fs-h3: 19px;
  --fs-lead: 16px;
  --fs-body: 15px;
  --fs-body-2: 13.5px;
  --fs-eyebrow: 11px;
  --fs-meta: 11px;
}

@media (min-width: 768px) {
  :root {
    --section-pad: 88px;
    --card-gap-pad: var(--sp-7);
    --container-max: 700px;
    --container-pad: var(--sp-6);
    --fs-h1: 44px;
    --fs-h2: 30px;
    --fs-h3: 20px;
    --fs-lead: 17px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad: var(--sp-9);
    --card-gap-pad: 56px;
    --container-max: 1080px;
    --container-pad: var(--sp-7);
    --fs-h1: 52px;
    --fs-h2: 34px;
    --fs-h3: 20px;
  }
}

@media (min-width: 1440px) {
  :root {
    --section-pad: 148px;
    --card-gap-pad: 64px;
    --container-max: 1280px;
    --container-pad: var(--sp-9);
    --fs-h1: 60px;
    --fs-h2: 38px;
    --fs-lead: 18px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-max: 1360px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255,59,48,0.28); color: var(--t); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type ---------- */
h1, .h1 {
  font-family: var(--sans); font-weight: 600;
  font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em;
}
h2, .h2 {
  font-family: var(--sans); font-weight: 600;
  font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.015em;
}
h3, .h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.3;
}
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--t2); }
.body-2 { font-size: var(--fs-body-2); line-height: 1.55; color: var(--t2); }
.eyebrow {
  font-family: var(--mono); font-size: var(--fs-eyebrow); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--t2);
}
.meta { font-family: var(--mono); font-size: var(--fs-meta); color: var(--t4); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
/* Single-column text pages (privacy-policy, local-transcription) have no side visual to
   fill a wide grid container with, so they get their own narrower, centered reading
   measure instead of inheriting the homepage's wide multi-column container. Keeps large
   screens feeling deliberate (centered, generous margins) instead of leaving a dead zone. */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
section { position: relative; padding: var(--section-pad) 0; }
/* Condense the gap between consecutive cards: every card-wrapping section's
   inward-facing edge switches to the tighter --card-gap-pad, while the
   hero->first-card seam (#problem's top) and the last-card->footer edge
   (#waitlist's bottom) keep --section-pad exactly as before. */
#problem { padding-bottom: var(--card-gap-pad); }
#filing, #transcription, #offline, #value-stack, #faq { padding-top: var(--card-gap-pad); padding-bottom: var(--card-gap-pad); }
#waitlist { padding-top: var(--card-gap-pad); }
.section-alt { background: var(--s1); }
.copy-col { max-width: var(--copy-max); }
.copy-col-hero { max-width: var(--copy-max-hero); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 8px;
  background: var(--blue-btn); color: #fff;
  transition: background 150ms ease, transform 100ms ease;
  min-height: 48px;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-btn-h); }
}
.btn-primary:active { transform: scale(0.985); }
.btn-primary.is-success {
  background: var(--green); color: #08210F;
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 9px 18px; min-height: 44px;
  border-radius: 7px; background: transparent; color: var(--t2);
  border: 1px solid var(--bd);
  transition: border-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--bdh); color: var(--t); }
}

/* ---------- Form field ---------- */
.field-group { display: flex; flex-direction: column; gap: var(--sp-3); width: 100%; max-width: 340px; }
@media (min-width: 1024px) { .field-group { max-width: 300px; } }
.field {
  width: 100%;
  background: var(--s2); border: 1px solid var(--bd); border-radius: 8px;
  padding: 13px 14px; font-family: var(--sans); font-size: 15px; color: var(--t);
  min-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field::placeholder { color: var(--t2); }
.field:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.15);
}
.field.has-error { border-color: var(--red); }
.field-error {
  font-size: 12.5px; color: var(--red); display: none;
}
.field-error.show { display: block; }
.risk-reversal {
  font-size: 12.5px; color: var(--t2); line-height: 1.6; max-width: 400px; margin-top: var(--sp-4);
}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--s1); border-top: 1px solid var(--bd);
  padding: var(--sp-3) var(--sp-4);
  transform: translateY(0);
  transition: transform 200ms ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.leaving { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
.cookie-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
@media (min-width: 768px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-5); }
}
.cookie-text { font-size: 13px; color: var(--t2); line-height: 1.4; }
.cookie-actions { display: flex; gap: var(--sp-3); flex-shrink: 0; }
/* Buttons here are sized to the 44px accessibility floor (Doc 06 §13), not the site's
   default 48px primary button, to keep the banner itself as short as the spec allows. */
.cookie-actions .btn-primary,
.cookie-actions .btn-ghost {
  flex: 1; min-height: 44px; padding-top: 10px; padding-bottom: 10px;
}
@media (min-width: 768px) {
  .cookie-actions .btn-primary,
  .cookie-actions .btn-ghost { flex: none; }
}

/* ============================================================
   Header / skip link (no persistent nav, per Doc 03/05)
   ============================================================ */
.skip-link {
  position: absolute; left: var(--sp-4); top: -60px;
  background: var(--blue-btn); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 600; z-index: 200; transition: top 150ms ease;
}
.skip-link:focus { top: var(--sp-4); }

/* ============================================================
   Fragment component — Doc 06 §9 / Doc 05 §4,§7,§9
   ============================================================ */
.fragment {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: rotate(0deg) translateY(var(--parallax-y, 0px));
  transition: transform 200ms ease;
}
.fragment.fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
@media (min-width: 1024px) {
  .fragment.tilt { transform: rotate(-3deg) translateY(var(--parallax-y, 0px)); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: calc(var(--section-pad) + var(--sp-5)); overflow: clip; }
.hero-grid {
  display: grid; gap: var(--sp-7);
}
.hero-copy { display: flex; flex-direction: column; gap: var(--sp-5); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: var(--sp-2); }
/* Hero eyebrow: real GitHub mark linking to the actual repo (a verifiable fact,
   not a decorative status pill), sized up from the site's standard 11px eyebrow
   since it's the very first thing in the hero. */
.hero-eyebrow { font-size: 14px; }
.hero-eyebrow a {
  display: flex; align-items: center; gap: var(--sp-2);
  color: inherit; text-decoration: none;
}
.hero-eyebrow .gh-icon { width: 15px; height: 15px; fill: var(--t3); flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .hero-eyebrow a:hover { color: var(--t); }
  .hero-eyebrow a:hover .gh-icon { fill: var(--t2); }
}
.hero-copy h1 { color: var(--t); }
.hero-copy .lead { color: var(--t2); }
.hero-actions { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }

/* Hero animation: idle -> click -> live recording, waveform spawns at a fixed
   playhead and pushes left, fading out before it reaches the copy column.
   Deliberately supersedes Doc 06 §9's static tilted-fragment hero treatment for
   this specific section; the generic `.fragment` component above is kept for
   any other recurring use. The floating status card is the real app's own
   floating-pill component (see `.rec-pill` below) — this instance stays put in
   the hero, it does not join the traveling companion further down the page. */
.hero-anim-col { position: relative; display: flex; flex-direction: column; gap: var(--sp-6); }
.hero-wave-band { position: relative; height: 110px; opacity: 0.5; }
.hero-wave-bars {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; gap: 4px; overflow: hidden;
}
.hero-wave-bars i {
  display: block; width: 5px; flex-shrink: 0; border-radius: 3px; background: var(--red);
  height: 90px; transform: scaleY(0.03); opacity: 1;
  transition: transform 110ms ease, opacity 110ms ease;
}
.hero-playhead {
  position: absolute; top: 0; left: 75%; height: 100%; width: 2px;
  background: var(--blue); box-shadow: 0 0 5px rgba(10,132,255,0.4);
}
.hero-anim-card-wrap { position: relative; height: 76px; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, var(--copy-max-hero)) 1fr; align-items: center; }
  .hero-actions { flex-direction: row; align-items: center; gap: var(--sp-5); }
  .hero-wave-band { height: 140px; }
  .hero-wave-bars i { height: 115px; }
  .hero-anim-card-wrap { height: 84px; }
}

/* ============================================================
   Floating pill — recreated from the real app's own locked
   floating-pill component (grip / rec-dot / timer / mute / pause /
   stop). Used two ways: a still instance embedded in the hero
   (positioned at the same playhead the waveform already uses), and
   a second, independent instance that travels with scroll further
   down the page (see "Traveling companion pill" below). Same visual
   component, two different jobs — never the same DOM node.
   ============================================================ */
.rec-pill {
  position: absolute; left: 75%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--s2); border: 1px solid var(--bdh); border-radius: 26px;
  padding: 7px 9px 7px 7px; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 400ms ease;
}
.rec-pill.in { opacity: 1; }
.rec-pill-grip { display: flex; flex-direction: column; gap: 2px; padding: 4px 3px; }
.rec-pill-grip .dr { display: flex; gap: 2px; }
.rec-pill-grip .d { width: 2.5px; height: 2.5px; border-radius: 50%; background: var(--t4); }
.rec-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; animation: breathe 1.2s ease-in-out infinite; }
.rec-pill-timer { font-family: var(--mono); font-size: 13px; color: var(--t); flex-shrink: 0; min-width: 36px; }
.rec-pill-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bdh); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rec-pill-btn.stop { background: #B23A32; }
.rec-pill-btn svg { width: 14px; height: 14px; }

/* ============================================================
   Section sheet — inset rounded panel ("Option C"), replaces flat
   alternating-background sections. Generous gaps between instances,
   no overlap, except the first one below the hero (see --first).
   ============================================================ */
.section-sheet {
  max-width: var(--container-max); margin: 0 auto var(--sp-6);
  background: var(--s1); border: 1px solid var(--bd); border-radius: 28px;
  padding: var(--sp-7) var(--container-pad);
}
@media (min-width: 1024px) { .section-sheet { border-radius: 36px; padding: var(--sp-8) var(--container-pad); } }
.section-sheet:last-of-type { margin-bottom: 0; }
/* One deliberate seam: the first sheet tucks up under the hero rather than
   sitting a plain gap below it, a small nod to the layered-section feel of
   the reference sites, kept to this single handoff rather than used everywhere. */
.section-sheet--first { margin-top: calc(-1 * var(--sp-7)); position: relative; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }

/* ============================================================
   Problem / Mechanism — scroll-narrated, real Record-tab screen
   ============================================================ */
.pn-row { display: flex; flex-direction: column; gap: var(--sp-6); }
.pn-text { flex: 1; min-width: 0; }
.pn-beat { padding: var(--sp-6) 0; opacity: 0.35; transition: opacity 400ms ease; }
.pn-beat:first-child { padding-top: 0; }
.pn-beat:last-child { padding-bottom: 0; }
.pn-beat.active { opacity: 1; }
.pn-beat h2 { margin-bottom: var(--sp-4); }
.pn-beat p { color: var(--t2); }
.pn-sticky-wrap { align-self: center; width: 100%; max-width: 360px; }
@media (min-width: 1024px) {
  .pn-row { flex-direction: row; align-items: flex-start; gap: var(--sp-8); }
  .pn-beat { padding: var(--sp-9) 0; }
  .pn-sticky-wrap { flex: 0 0 360px; position: sticky; top: 120px; align-self: flex-start; }
}

/* real Record-tab recreation — structure/colors/copy lifted directly from
   record-tab-dark-mode-states.html, not redrawn */
.appwin { background: var(--s2); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; }
.appwin-bar { background: #1A1A1D; padding: 9px 13px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--bd); }
.appwin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bdh); }
.appwin-title { font-family: var(--mono); font-size: 10px; color: var(--t4); margin-left: var(--sp-2); }

.rt-app { display: flex; min-height: 380px; }
.rt-sidebar { width: 48px; background: var(--s1); border-right: 1px solid var(--bd); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; flex-shrink: 0; }
.rt-nav-top { display: flex; flex-direction: column; gap: var(--sp-4); align-items: center; }
.rt-nav-item { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rt-nav-item.active-box { background: var(--bdh); }
.rt-icon { width: 16px; height: 16px; flex-shrink: 0; }
.rt-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: breathe 1.2s ease-in-out infinite; display: none; }
.rt-rec-dot.on { display: block; }
.rt-mic-idle.hidden { display: none; }

.rt-main { flex: 1; padding: var(--sp-5); display: flex; flex-direction: column; min-width: 0; }
.rt-status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--t2); }
.rt-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.rt-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-5) 0; }
.rt-timer { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--t); }
.rt-record-btn, .rt-stop-btn { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rt-record-btn { background: var(--red); }
.rt-stop-btn { background: #5C1D18; border: 2.5px solid var(--red); }
.rt-stop-icon { width: 18px; height: 18px; background: #fff; border-radius: 3px; }
.rt-press-label { font-size: 13px; color: var(--t); }
.rt-press-sub { font-size: 11px; color: var(--t4); margin-top: -6px; }
.rt-secondary { display: flex; gap: var(--sp-3); align-items: center; }
.rt-secondary-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--bdh); display: flex; align-items: center; justify-content: center; }
.rt-pause-icon { width: 9px; height: 10px; display: flex; justify-content: space-between; }
.rt-pause-icon span { width: 2.6px; height: 100%; background: var(--t); border-radius: 1px; }
.rt-mute-icon { width: 10px; height: 10px; border: 1.3px solid var(--t); border-radius: 3px 3px 4px 4px; position: relative; }
.rt-mute-icon::before { content: ''; position: absolute; top: 50%; left: -1.5px; width: 13px; height: 1.4px; background: var(--t); transform: rotate(45deg); }
.rt-control-caption { font-size: 10px; color: var(--t2); }
.rt-recent { background: var(--s2); border: 1px solid var(--bd); border-radius: 9px; padding: var(--sp-3) var(--sp-4); margin-top: auto; }
.rt-recent-title { font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--t2); margin: 0 0 6px; }
.rt-recent-row { display: flex; justify-content: space-between; align-items: center; }
.rt-recent-name { font-size: 11.5px; color: var(--t); transition: opacity 200ms ease; }
.rt-recent-meta { font-size: 10px; color: var(--t2); margin-top: 2px; transition: opacity 200ms ease; }
.rt-badge { background: #1E1A15; color: #E6A23C; font-size: 9px; padding: 2px 7px; border-radius: 9px; flex-shrink: 0; }

/* ============================================================
   New scroll beats — Filing / Transcription / Offline
   ============================================================ */
.mo-row { display: flex; flex-direction: column; gap: var(--sp-6); }
.mo-copy { flex: 1; }
.mo-visual-wrap { flex: 1; min-width: 0; position: relative; }
@media (min-width: 1024px) {
  .mo-row { flex-direction: row; align-items: center; gap: var(--sp-8); }
  .mo-copy { flex: 0 0 360px; }
}

.fin-row { display: flex; align-items: center; gap: var(--sp-3); padding: 10px 4px; border-bottom: 1px solid var(--bd); }
.fin-row:last-child { border-bottom: none; }
.fin-icon { width: 16px; height: 16px; stroke: var(--t3); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.fin-name { font-family: var(--mono); font-size: 12px; color: var(--t); flex: 1; }
.fin-meta { font-family: var(--mono); font-size: 10px; color: var(--t4); flex-shrink: 0; }
.fin-row.new { opacity: 0; transform: translateY(-6px); transition: opacity 450ms ease, transform 450ms ease; }
.fin-row.new.in { opacity: 1; transform: none; }

.tr-text { font-size: 13px; color: var(--t2); margin: 0 0 var(--sp-3); }
.tr-text:last-child { margin-bottom: 0; }

/* offline beat reuses the exact toggle already established on the
   local-transcription page (`.tog`/`.knob`), not a new component */
.off-row { display: flex; align-items: center; justify-content: space-between; padding: 0 0 var(--sp-5); }
.off-label { font-size: 14px; color: var(--t); }
.off-sub { font-size: 11px; color: var(--t2); margin-top: 2px; }
.off-wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.off-wave i { width: 2.5px; border-radius: 2px; background: var(--red); display: block; animation: offbar 900ms ease-in-out infinite; }
@keyframes offbar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.off-wave-cap { font-family: var(--mono); font-size: 10px; color: var(--t4); margin-top: var(--sp-3); }

/* ============================================================
   Traveling companion pill — a second `.rec-pill` instance, fixed to the
   viewport, that docks to whichever beat (Record panel / Filing /
   Transcription / Offline) is centered as the user scrolls. Deliberately
   does not include the hero — the hero keeps its own still instance above.
   Hidden between beats where the real app wouldn't show it either (a call
   that's already been filed and transcribed isn't still recording).
   ============================================================ */
.travel-pill { position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity 350ms ease; }
.travel-pill.show { opacity: 1; }
@media (max-width: 1023px) { .travel-pill { display: none; } }

/* Demo 4 — auto-detect */
.d4 { position: relative; min-height: 240px; display: flex; align-items: center; justify-content: center; padding-top: var(--sp-6); }
.d4-cap { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--t4); opacity: 0; transition: opacity 400ms ease; padding: 0 var(--sp-3); }
.d4-cap.in { opacity: 1; }
.d4-cap b { color: var(--green); font-weight: 400; }
.callwin { width: 100%; max-width: 380px; background: var(--s2); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; opacity: 0; transform: scale(0.97); transition: all 450ms ease; }
.callwin.in { opacity: 1; transform: none; }
.cw-bar { background: #1A1A1D; padding: 9px 13px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--bd); }
.cw-dot { width: 9px; height: 9px; border-radius: 50%; background: #2E2E32; }
.cw-title { font-family: var(--mono); font-size: 10px; color: var(--t4); margin-left: var(--sp-2); }
.cw-body { padding: var(--sp-5); display: flex; gap: var(--sp-3); justify-content: center; }
.cw-tile { width: 44%; max-width: 110px; height: 74px; background: var(--bg); border: 1px solid var(--bd); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9.5px; color: var(--t4); }
.pill {
  position: absolute; bottom: var(--sp-5); right: var(--sp-4);
  background: #1A1A1D; border: 1px solid var(--bd); border-radius: 22px;
  padding: 9px 15px; display: flex; align-items: center; gap: var(--sp-3);
  opacity: 0; transform: translateY(10px);
  transition: all 400ms cubic-bezier(0.2,0.8,0.3,1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.pill.in { opacity: 1; transform: none; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pill-t { font-family: var(--mono); font-size: 12px; color: var(--t); }
.pill-x { font-size: 11px; color: var(--t4); }

/* ============================================================
   Value Stack — scroll list + sticky window-chrome panel, replaces
   the old card grid. Real Lucide icon paths, same set the app itself
   uses (design-system.html), not invented shapes.
   ============================================================ */
.vs-heading { max-width: var(--copy-max); margin-bottom: var(--sp-3); }
.vs-sub { max-width: var(--copy-max); margin-bottom: var(--sp-7); }
.sd-row { display: flex; flex-direction: column; gap: var(--sp-6); margin-bottom: var(--sp-7); }
.sd-list { flex: 1; min-width: 0; }
.sd-item { padding: var(--sp-6) 0; border-bottom: 1px solid var(--bd); opacity: 0.35; transition: opacity 400ms ease; }
.sd-item:first-child { padding-top: 0; }
.sd-item:last-child { border-bottom: none; }
.sd-item.active { opacity: 1; }
.sd-item h3 { font-size: 30px; line-height: 1.2; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: var(--sp-3); }
.sd-item p { color: var(--t2); font-size: 16px; max-width: 46ch; }
/* Below 1024px the sticky mockup panel can't follow each item as you scroll past it
   (position:sticky only kicks in at the same breakpoint the row goes side-by-side), so each
   item carries its own small icon here instead of relying on the panel for that context. */
.sd-item-icon {
  display: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--bd);
  align-items: center; justify-content: center; flex-shrink: 0;
}
.sd-item-icon .sd-icon { width: 16px; height: 16px; }
@media (max-width: 1023px) { .sd-item-icon { display: flex; } }
.sd-num { font-family: var(--mono); font-size: 12px; color: var(--t4); margin-bottom: var(--sp-2); }
.sd-sticky-wrap { align-self: center; width: 100%; max-width: 320px; }
.sd-icon-wrap { width: 40px; height: 40px; border-radius: 11px; background: var(--bg); border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; margin: var(--sp-5) var(--sp-5) 0; }
.sd-icon { width: 20px; height: 20px; stroke: var(--blue); stroke-width: 1.8; fill: none; }
.sd-title { font-size: 15.5px; margin: var(--sp-4) var(--sp-5) 9px; min-height: 22px; }
.sd-desc { font-size: 12.5px; color: var(--t2); margin: 0 var(--sp-5); }
.sd-microloop { margin: var(--sp-4) var(--sp-5) 0; }
.sd-rail { display: flex; gap: 5px; margin: var(--sp-5) var(--sp-5) 0; }
.sd-rail-dot { height: 3px; flex: 1; border-radius: 2px; background: var(--bd); transition: background 300ms ease; }
.sd-rail-dot.active { background: var(--blue); }
.sd-count { font-family: var(--mono); font-size: 10px; color: var(--t4); margin: 9px var(--sp-5) var(--sp-5); }
@media (min-width: 1024px) {
  .sd-row { flex-direction: row; align-items: flex-start; gap: var(--sp-8); }
  .sd-sticky-wrap { flex: 0 0 320px; position: sticky; top: 120px; align-self: flex-start; }
}

/* checkmark icon — still used by the AI-feedback closer below even though
   the card grid it originally styled is gone */
.vs-check { width: 20px; height: 20px; flex-shrink: 0; margin-bottom: var(--sp-2); }
.vs-check path { stroke: var(--green); stroke-width: 2; fill: none; }

/* AI call feedback prompt — the value stack's closing item, deliberately its
   own highlighted block (was ".vs-item.vs-closer" against the old card grid;
   the grid is gone, but this one still earns its own container). */
.vs-ai-closer {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 14px;
  padding: var(--sp-6); margin-bottom: var(--sp-7);
}
.vs-closer-inner { display: flex; flex-direction: column; gap: var(--sp-6); }
@media (min-width: 1024px) {
  .vs-closer-inner { flex-direction: row; align-items: flex-start; }
  .vs-closer-copy { flex: 0 0 340px; }
  .vs-closer-demo { flex: 1; }
}
.vs-stack-close { font-size: var(--fs-lead); color: var(--t); margin-top: var(--sp-5); }
.vs-stack-close b { color: var(--blue); }

/* secondary CTA after the value stack — a visitor sold on the checklist
   shouldn't need to scroll all the way back up to act */
.vs-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--bd); }
.vs-cta-row p { color: var(--t2); margin: 0; }

.vs-microloop-row { display: flex; flex-direction: column; gap: var(--sp-5); align-items: flex-start; margin-top: var(--sp-5); }
@media (min-width: 768px) { .vs-microloop-row { flex-direction: row; align-items: center; } }

/* Demo 3 — AI feedback */
.d3 { display: flex; flex-direction: column; gap: var(--sp-5); align-items: stretch; }
@media (min-width: 1024px) {
  .d3 { flex-direction: row; align-items: center; }
  .d3-file { align-self: center; }
  .d3-chat { flex: 1; }
}
.d3-file { width: 100%; max-width: 240px; background: var(--s2); border: 1px solid var(--bd); border-radius: 12px; padding: var(--sp-4); flex-shrink: 0; transition: border-color 300ms ease, transform 400ms ease; align-self: center; }
.d3-file.lift { border-color: var(--blue); transform: translateY(-3px); }
.d3-fname { font-family: var(--mono); font-size: 10.5px; color: var(--t4); margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 7px; }
.d3-fline { height: 5px; background: #232326; border-radius: 3px; margin-bottom: 7px; }
.arrow-fly { align-self: center; font-family: var(--mono); font-size: 18px; color: var(--t4); opacity: 0.3; transition: opacity 400ms ease, transform 400ms ease; transform: rotate(90deg); }
@media (min-width: 1024px) { .arrow-fly { transform: none; } }
.arrow-fly.go { opacity: 1; color: var(--blue); transform: translateY(4px); }
@media (min-width: 1024px) { .arrow-fly.go { transform: translateX(4px); } }
.d3-chat { background: var(--s2); border: 1px solid var(--bd); border-radius: 12px; padding: var(--sp-5); min-height: 260px; display: flex; flex-direction: column; }
.chat-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--t4); letter-spacing: 0.08em; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--bd); margin-bottom: var(--sp-4); }
.chat-msg { background: var(--bg); border: 1px solid var(--bd); border-radius: 9px; padding: 11px 13px; font-size: 12.5px; color: var(--t2); margin-bottom: var(--sp-4); opacity: 0; transform: translateY(4px); transition: all 300ms ease; }
.chat-msg.in { opacity: 1; transform: none; }
.chat-msg .attach { font-family: var(--mono); font-size: 10px; color: var(--blue); display: block; margin-bottom: 6px; }
.fb { opacity: 0; transform: translateY(4px); transition: all 300ms ease; margin-bottom: var(--sp-3); }
.fb.in { opacity: 1; transform: none; }
.fb-h { font-size: 12px; font-weight: 600; color: var(--t); margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.fb-h .n { font-family: var(--mono); font-size: 9.5px; color: var(--t4); border: 1px solid var(--bd); border-radius: 4px; padding: 1px 5px; }
.fb-b { font-size: 12.5px; color: var(--t2); line-height: 1.55; padding-left: 26px; }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--blue); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Micro-loop — auto filing */
.ml { background: var(--s1); border: 1px solid var(--bd); border-radius: 14px; padding: var(--sp-5); width: 100%; max-width: 340px; }
.ml-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--t4); letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.tree { font-family: var(--mono); font-size: 11.5px; line-height: 2; }
.tr { color: var(--t2); opacity: 0; transform: translateX(-4px); transition: all 260ms ease; }
.tr.in { opacity: 1; transform: none; }
.tr .fold { color: var(--t2); }
.tr .file { color: var(--t4); }
.tr .new { color: var(--green); }

/* ============================================================
   Privacy / Local transcription page
   ============================================================ */
.priv-heading { max-width: var(--copy-max); margin-bottom: var(--sp-5); }
.priv-body { max-width: var(--copy-max); color: var(--t2); display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.priv-body a { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .priv-body a:hover { text-decoration: underline; }
}
.priv-body strong { color: var(--t); font-weight: 600; }

/* Demo 2 — privacy machine boundary */
.d2 { display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; }
.machine { width: 100%; max-width: 280px; background: var(--s2); border: 1px solid var(--bd); border-radius: 14px; padding: var(--sp-5); }
.machine-lbl { font-family: var(--mono); font-size: 10px; color: var(--t4); text-align: center; margin-bottom: var(--sp-4); letter-spacing: 0.06em; }
.m-flow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.m-node { flex: 1; text-align: center; padding: 11px 4px; background: var(--bg); border: 1px solid var(--bd); border-radius: 8px; font-size: 10.5px; color: var(--t2); transition: border-color 300ms ease, color 300ms ease; }
.m-node.act { border-color: var(--red); color: var(--t); }
.m-arrow { color: var(--t4); font-size: 13px; flex-shrink: 0; }
.barrier { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; max-width: 200px; height: 40px; }
@media (min-width: 768px) { .barrier { width: 90px; height: auto; align-self: stretch; max-width: none; } }
.barrier-line { width: 100%; height: 1px; background: repeating-linear-gradient(90deg, #2E2E32 0 5px, transparent 5px 10px); }
@media (min-width: 768px) { .barrier-line { width: 1px; height: 100%; background: repeating-linear-gradient(180deg, #2E2E32 0 5px, transparent 5px 10px); } }
.blocked { position: absolute; font-family: var(--mono); font-size: 9.5px; color: var(--t4); background: var(--s1); padding: 3px 8px; white-space: nowrap; }
.cloud { width: 100%; max-width: 200px; text-align: center; opacity: 0.28; }
.cloud-box { border: 1px dashed #2E2E32; border-radius: 12px; padding: var(--sp-5) var(--sp-3); color: var(--t4); font-size: 11px; position: relative; }
.cloud-box::after { content: ''; position: absolute; top: 50%; left: 12%; width: 76%; height: 1px; background: var(--t4); transform: rotate(-16deg); }
@media (min-width: 768px) {
  .d2 { flex-direction: row; justify-content: center; }
}
.wifi-row { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); font-family: var(--mono); font-size: 11px; color: var(--t2); justify-content: center; flex-wrap: wrap; }
.tog { width: 38px; height: 22px; border-radius: 11px; background: #2E2E32; position: relative; transition: background 300ms ease; flex-shrink: 0; }
.tog .knob { width: 16px; height: 16px; border-radius: 50%; background: #6C6C70; position: absolute; top: 3px; left: 3px; transition: left 300ms ease, background 300ms ease; }
.tog.off .knob { left: 19px; background: #F2F2F7; }
.still { color: var(--green); opacity: 0; transition: opacity 400ms ease; }
.still.in { opacity: 1; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: var(--copy-max); }
.faq-item { border-bottom: 1px solid var(--bd); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0; text-align: left;
  font-size: 15.5px; font-weight: 500; color: var(--t);
  min-height: 44px;
}
.faq-chevron { flex-shrink: 0; transition: transform 200ms ease; color: var(--t3); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows 200ms ease;
}
.faq-a-wrap.open { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a { padding-bottom: var(--sp-4); font-size: 14px; color: var(--t2); line-height: 1.65; max-width: var(--copy-max); }

/* ============================================================
   Waitlist form
   ============================================================ */
/* Was its own narrower centered max-width, which re-centered this section at
   a different left edge than every other section on the page — a real
   consistency bug a design critique caught. Heading/copy get the same
   copy-max reading measure everything else uses, without re-centering the
   container itself. */
.waitlist-inner h2, .waitlist-inner .waitlist-form { max-width: var(--copy-max); }
.waitlist-form { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; margin-top: var(--sp-6); }
.ck-form-wrap { display: flex; flex-direction: column; gap: var(--sp-3); width: 100%; max-width: 340px; }
@media (min-width: 480px) {
  .ck-form-wrap { flex-direction: row; align-items: flex-start; max-width: none; }
  .ck-form-wrap .field-group { max-width: 300px; }
  /* the button was compressing to two lines in this row — it never should
     shrink, the input should give up the space instead */
  .ck-form-wrap .btn-primary { flex-shrink: 0; white-space: nowrap; }
}
.waitlist-success { display: none; align-items: center; gap: var(--sp-3); color: var(--green); font-size: 15px; }
.waitlist-success.show { display: flex; }
.waitlist-success svg { flex-shrink: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: var(--sp-7) 0; border-top: 1px solid var(--bd); }
.footer-inner { display: flex; flex-direction: column; gap: var(--sp-5); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-links { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.footer-links a { color: var(--t2); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--t); }
}
.footer-fielder { color: var(--t2); font-size: 13.5px; max-width: 420px; }

/* Link underline-slide (Doc 05 §6), scoped to inline text links only */
.link-slide { position: relative; color: var(--blue); }
.link-slide::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--blue); transition: right 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link-slide:hover::after { right: 0; }
}

/* ============================================================
   404 page
   ============================================================ */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--sp-6); }
.error-inner { max-width: 480px; display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; }

/* ============================================================
   Legal page (Privacy Policy)
   ============================================================ */
.legal-body { max-width: var(--copy-max); color: var(--t2); display: flex; flex-direction: column; gap: var(--sp-5); }
.legal-body h2 { font-size: 18px; color: var(--t); margin-top: var(--sp-4); }
.legal-body p { line-height: 1.7; }
.legal-body a { color: var(--blue); }
.legal-placeholder { color: var(--t4); font-style: italic; }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
