/* ──────────────────────────────────────────────────────────────────
 * ClientVoice · Public Landing Page
 * Mobile-first. No build step. CSS custom properties for swappable
 * brand colours; the operator can rebrand by editing :root tokens.
 * ────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --primary:        #6366F1;      /* indigo — matches the app */
  --primary-deep:   #4F46E5;
  --primary-soft:   #EEF0FF;
  --primary-tint:   #F5F6FF;

  /* Surfaces */
  --bg:             #FBFBFD;
  --surface:        #FFFFFF;
  --surface-2:      #F4F4F8;
  --ink:            #0B0D13;
  --ink-2:          #2E3340;
  --text:           #11141B;
  --text-2:         #4A5160;
  --text-3:         #8B91A1;
  --border:         #E5E7EE;
  --border-2:       #EFF1F6;

  /* Status accents (used very sparingly — same family as the app) */
  --good:           #10B981;
  --warn:           #F59E0B;
  --bad:            #EF4444;

  /* Type */
  --font:           "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:      ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Radii */
  --r-sm:           8px;
  --r-md:           14px;
  --r-lg:           20px;
  --r-xl:           28px;

  /* Shadows */
  --sh-1:           0 1px 2px rgba(11,13,19,0.04), 0 1px 0 rgba(11,13,19,0.02);
  --sh-2:           0 4px 14px rgba(11,13,19,0.06), 0 2px 4px rgba(11,13,19,0.04);
  --sh-3:           0 24px 48px -16px rgba(11,13,19,0.16), 0 4px 14px rgba(11,13,19,0.05);
  --sh-glow:        0 12px 40px -12px rgba(99,102,241,0.45);

  /* Layout */
  --col:            1120px;
  --gutter:         24px;
}

/* ─── Reset / base ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;   /* sticky header (68px) + breathing room */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

::selection { background: var(--primary); color: #fff; }

/* ─── Layout primitives ──────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section-h {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}
.section-h h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  max-width: 22ch;
}
.section-h p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 56ch;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease,
              border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, var(--sh-1);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: var(--sh-glow);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: #D6D9E3;
}
.btn-lg { height: 52px; padding: 0 22px; font-size: 15.5px; }

.btn .arrow {
  transition: transform 160ms ease;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ─── Focus rings ─────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ─── Header ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251,251,253,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(251,251,253,0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-glow);
}
.brand-mark svg { width: 16px; height: 16px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}
.nav a:hover { color: var(--ink); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  font-family: inherit;
  font-weight: 600;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-toggle { display: none; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    align-items: stretch;
  }
  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-2);
    font-size: 16px;
  }
  .menu-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-2);
  }
  .header-cta-text { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 64px 0 64px;
  overflow: hidden;
}
.hero::before {
  /* Soft radial glow behind the headline — gives the page warmth without
   * needing background photography */
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(60% 80% at 18% 22%, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0) 60%),
    radial-gradient(50% 70% at 82% 30%, rgba(167,139,250,0.16) 0%, rgba(167,139,250,0) 60%);
  z-index: -1;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 60%, #EC4899 110%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 50ch;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-3);
  font-size: 13px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg { color: var(--good); }

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: 2; width: 100%; margin-left: 0; }
}

/* ─── Hero illustration ───────────────────────────────────────
 * A vertical cascade: three cards stacked with slight horizontal
 * stagger. No overlap, no absolute positioning — flexbox does all
 * the work, so the layout is rock-solid at every viewport. */

.hero-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-card .card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-card .card-h .dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

/* Stagger: each card sits at a notably different horizontal position
 * to fill the column space and create a clear cascade rhythm. */
.hero-card--audio   { width: 70%; margin-right: auto; margin-left: 0;   }
.hero-card--fields  { width: 90%; margin-left: 10%;   margin-right: 0;  }
.hero-card--insight { width: 64%; margin-right: auto; margin-left: 24%; }

@media (max-width: 540px) {
  .hero-art { max-width: 100%; }
  .hero-card--audio, .hero-card--fields, .hero-card--insight {
    width: 100%; margin-left: 0; margin-right: 0;
  }
  .hero-art::before { display: none; }
}

/* Animated waveform */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
  padding: 4px 0;
}
.waveform i {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), #A78BFA);
  border-radius: 3px;
  min-height: 8%;
  transform-origin: center;
  animation: wave 1.6s ease-in-out infinite;
}
.waveform i:nth-child(1)  { animation-delay: -0.10s; }
.waveform i:nth-child(2)  { animation-delay: -0.25s; }
.waveform i:nth-child(3)  { animation-delay: -0.40s; }
.waveform i:nth-child(4)  { animation-delay: -0.55s; }
.waveform i:nth-child(5)  { animation-delay: -0.70s; }
.waveform i:nth-child(6)  { animation-delay: -0.05s; }
.waveform i:nth-child(7)  { animation-delay: -0.30s; }
.waveform i:nth-child(8)  { animation-delay: -0.50s; }
.waveform i:nth-child(9)  { animation-delay: -0.20s; }
.waveform i:nth-child(10) { animation-delay: -0.60s; }
.waveform i:nth-child(11) { animation-delay: -0.35s; }
.waveform i:nth-child(12) { animation-delay: -0.45s; }
.waveform i:nth-child(13) { animation-delay: -0.15s; }
.waveform i:nth-child(14) { animation-delay: -0.55s; }
.waveform i:nth-child(15) { animation-delay: -0.25s; }
.waveform i:nth-child(16) { animation-delay: -0.05s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.25); opacity: 0.6; }
  50%      { transform: scaleY(1);    opacity: 1; }
}
.audio-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* Auto-extracted "form" rows — staggered fade/slide on intersect.
 * Default state is hidden so the rows appear to "drop in" when the
 * hero scrolls into view; .is-revealed (added by JS on the parent
 * card) sequences them in. */
.field-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-2);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 480ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-card--fields.is-revealed .field-row { opacity: 1; transform: none; }
.hero-card--fields.is-revealed .field-row:nth-child(2) { transition-delay: 220ms; }
.hero-card--fields.is-revealed .field-row:nth-child(3) { transition-delay: 380ms; }
.hero-card--fields.is-revealed .field-row:nth-child(4) { transition-delay: 540ms; }
.hero-card--fields.is-revealed .field-row:nth-child(5) { transition-delay: 700ms; }
.field-row:last-child { border-bottom: 0; }
.field-row .k { color: var(--text-3); font-weight: 500; }
.field-row .v { color: var(--text); font-weight: 600; }
.field-row .v .chip {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 999px;
  font-size: 11px;
  margin-right: 4px;
}

/* Insight chip — "evidence-grounded" pull-out */
.hero-card--insight .insight-h {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.hero-card--insight .insight-v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-card--insight .insight-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.hero-card--insight .insight-meta .grounded {
  background: rgba(16,185,129,0.10);
  color: var(--good);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 540px) {
  .hero-art { padding-top: 0; }
}

/* ─── Generic section ─────────────────────────────────────────── */

section {
  padding: 64px 0;
}
section.compact { padding: 48px 0; }

/* ─── Problem framing ─────────────────────────────────────────── */

.problem .quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.q-card::before {
  content: "“";
  position: absolute;
  top: -28px;
  right: 4px;
  font-size: 120px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: var(--primary-soft);
  line-height: 1;
  pointer-events: none;
}
.q-card blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  position: relative;
}
.q-card .by {
  font-size: 12.5px;
  color: var(--text-3);
}
@media (max-width: 880px) {
  .problem .quotes { grid-template-columns: 1fr; }
}

/* ─── Solution 3-beat ─────────────────────────────────────────── */

.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
}
.beat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--sh-1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.beat:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.beat-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.beat h3 {
  font-size: 19px;
  line-height: 1.25;
}
.beat p {
  font-size: 14.5px;
  color: var(--text-2);
}
@media (max-width: 800px) {
  .beats { grid-template-columns: 1fr; }
}

/* ─── Feature deep-dives (zig-zag) ───────────────────────────── */

.features { background: linear-gradient(180deg, transparent, var(--surface-2) 30%, var(--surface-2) 70%, transparent); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature + .feature { border-top: 1px solid var(--border-2); }
.feature:nth-child(even) .feature-art { order: -1; }

.feature h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  margin-top: 14px;
}
.feature p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-2);
}
.feature ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.feature ul li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .feature:nth-child(even) .feature-art { order: 0; }
}

/* ─── Feature illustrations (all SVG/HTML, no images) ───────── */

.feature-art {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature 1 — audio formats panel */
.f-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.f-formats .fmt {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: left;
}
.f-formats .fmt .fmt-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.f-formats .fmt .check {
  margin-top: auto;
  align-self: flex-end;
  width: 18px; height: 18px;
  background: rgba(16,185,129,0.12);
  color: var(--good);
  border-radius: 50%;
  display: grid; place-items: center;
}
.f-formats .fmt.tricky {
  background: linear-gradient(180deg, var(--primary-tint), var(--surface));
  border-color: var(--primary-soft);
}

/* Feature 2 — concept collapse map */
.f-concepts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.concept-group {
  display: grid;
  grid-template-columns: 1fr 28px auto;
  gap: 10px;
  align-items: center;
}
.concept-group .phrases {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.concept-group .phrase {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.concept-group .connector {
  position: relative;
  height: 100%;
  min-height: 60px;
}
.concept-group .connector::before,
.concept-group .connector::after {
  content: "";
  position: absolute;
  background: var(--border);
}
/* Vertical spine + arrow */
.concept-group .connector::before {
  top: 14px; bottom: 14px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--primary) 25%, var(--primary) 75%, transparent);
  opacity: 0.55;
}
.concept-group .connector::after {
  top: 50%;
  right: 0;
  width: 14px;
  height: 1px;
  background: var(--primary);
  opacity: 0.55;
  transform: translateY(-50%);
}
.canonical {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.canonical-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--sh-glow);
}
.canonical-pill svg { color: rgba(255,255,255,0.9); }
.canonical-pill--alt {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 12px 40px -12px rgba(139,92,246,0.45);
}
.canonical-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

@media (max-width: 540px) {
  .concept-group { grid-template-columns: 1fr; }
  .concept-group .connector { display: none; }
  .canonical { align-items: center; }
}

/* Feature 3 — review UI mock */
.f-review { width: 100%; }
.f-review .review-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.f-review .review-title {
  font-size: 14px;
  font-weight: 700;
}
.f-review .timer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.f-review .review-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f-review .rfield {
  display: grid;
  grid-template-columns: 90px 1fr 26px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.f-review .rfield .k { color: var(--text-3); }
.f-review .rfield .v { color: var(--text); font-weight: 600; }
.f-review .rfield.confirmed { background: rgba(16,185,129,0.08); }
.f-review .rfield.confirmed .badge {
  width: 18px; height: 18px;
  background: var(--good); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.f-review .review-cta {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.f-review .ghost {
  height: 32px; padding: 0 12px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
}
.f-review .confirm {
  height: 32px; padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: #fff;
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
}

/* Feature 4 — analyst report mock */
.f-report { width: 100%; }
.f-report .rep-h {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.f-report .rep-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.f-report .finding {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 13px;
}
.f-report .finding:last-child { border-bottom: 0; }
.f-report .finding .rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  display: grid; place-items: center;
}
.f-report .finding .label {
  color: var(--text);
  font-weight: 600;
}
.f-report .finding .impact-bar {
  width: 70px; height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.f-report .finding .impact-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  border-radius: 999px;
}
.f-report .schedule-strip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--primary-deep);
}
.f-report .schedule-strip svg { color: var(--primary); }

/* ─── How it works (vertical timeline) ───────────────────────── */

.how {
  background: var(--ink);
  color: #E8EAF1;
  border-radius: var(--r-xl);
  padding: 64px 0;
  margin: 64px auto;
  max-width: calc(var(--col) + 80px);
}
.how .container { max-width: var(--col); }
.how .section-h h2 { color: #fff; }
.how .section-h p  { color: rgba(232,234,241,0.65); }
.how .eyebrow { background: rgba(99,102,241,0.18); color: #C7D2FE; }
.how .eyebrow::before { background: #C7D2FE; }

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 24px; bottom: 24px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(199,210,254,0.4), rgba(199,210,254,0.05));
}
.tstep {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  position: relative;
  padding: 18px 0;
}
.tstep .tdot {
  width: 56px; height: 56px;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(199,210,254,0.4);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #C7D2FE;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.tstep h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 19px;
}
.tstep p {
  color: rgba(232,234,241,0.7);
  font-size: 14.5px;
  max-width: 56ch;
}
.tstep .ttag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A5B4FC;
  padding: 4px 10px;
  background: rgba(99,102,241,0.16);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .how { border-radius: 0; margin: 56px 0; padding: 48px 0; }
  .timeline::before { left: 22px; }
  .tstep { grid-template-columns: 44px 1fr; gap: 16px; }
  .tstep .tdot { width: 44px; height: 44px; font-size: 13px; }
}

/* ─── Differentiation ─────────────────────────────────────────── */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.diff {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-1);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.diff:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--primary-soft);
}
.diff-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-tint));
  display: grid; place-items: center;
  color: var(--primary);
}
.diff h3 {
  font-size: 16px;
  line-height: 1.3;
}
.diff p {
  font-size: 13.5px;
  color: var(--text-2);
}
@media (max-width: 980px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .diff-grid { grid-template-columns: 1fr; } }

/* ─── Stats strip ────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 28px 32px;
  background: linear-gradient(180deg, var(--surface), var(--primary-tint));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat .num .unit { color: var(--text-3); font-size: 0.62em; margin-left: 4px; font-weight: 600; }
.stat .label { font-size: 13px; color: var(--text-2); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 22px; }
  .stat { border-left: 0; padding: 6px 0; }
}

/* ─── About ──────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
}
.about-grid p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-2);
}
.about-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-card .lede {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}
.about-card .principles {
  display: grid;
  gap: 12px;
}
.about-card .principle {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.about-card .principle svg { color: var(--primary); margin-top: 3px; }
.about-card .principle strong { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Contact ────────────────────────────────────────────────── */

.contact {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(99,102,241,0.10), transparent 70%),
    var(--bg);
}
.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px 56px 0;
  box-shadow: var(--sh-2);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(99,102,241,0.22), transparent 70%);
  pointer-events: none;
}
.contact-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
}
.contact-copy p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 44ch;
}
.contact-channels {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.channel:hover {
  transform: translateY(-1px);
  border-color: var(--primary-soft);
  box-shadow: var(--sh-2);
}
.channel-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.channel .ck {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.channel .cv {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
}
.channel .arrow {
  margin-left: auto;
  color: var(--text-3);
  transition: transform 160ms ease, color 160ms ease;
}
.channel:hover .arrow {
  color: var(--primary);
  transform: translateX(2px);
}

.contact-form {
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  margin-bottom: -1px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
  min-height: 420px;
  position: relative;
  z-index: 1;
}
.contact-form h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.contact-form textarea { min-height: 88px; resize: vertical; }
.contact-form button {
  margin-top: 4px;
  height: 44px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background 160ms ease, transform 160ms ease;
}
.contact-form button:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Success state — replaces the form fields in-place. The .is-sent
 * class collapses the inputs but the form keeps its min-height, so
 * the layout doesn't jump and the success view is centred in the
 * same footprint. */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex: 1;
  padding: 24px 8px;
}
.form-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  color: var(--good);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.form-success h4 {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.form-success p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 32ch;
}
.contact-form.is-sent .form-row,
.contact-form.is-sent > h3,
.contact-form.is-sent > button { display: none; }
.contact-form.is-sent .form-success { display: flex; }

@media (max-width: 880px) {
  .contact-card {
    grid-template-columns: 1fr;
    padding: 36px 28px 36px;
    gap: 32px;
  }
  .contact-form { margin-bottom: 0; }
}

/* ─── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-2);
  max-width: 34ch;
}
.footer-col h5 {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Scroll-reveal ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* Side-aware reveal for the feature-art illustrations. The zig-zag
 * puts art on alternate sides (CSS uses :nth-child(even) → art left,
 * since .section-h occupies the first .container child). Letting each
 * card slide IN from its own side adds rhythm without competing with
 * the headline read. Falls back to the default translateY at narrow
 * widths where the layout collapses to a single column. */
.feature:nth-child(odd)  .feature-art.reveal { transform: translateX(48px);  }
.feature:nth-child(even) .feature-art.reveal { transform: translateX(-48px); }
.feature .feature-art.reveal.in { transform: none; }
.feature .feature-art.reveal {
  transition-duration: 900ms;
}

@media (max-width: 880px) {
  .feature:nth-child(odd)  .feature-art.reveal,
  .feature:nth-child(even) .feature-art.reveal {
    transform: translateY(18px);
  }
}

/* ─── Reduced motion fallback ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .feature .feature-art.reveal,
  .feature .feature-art.reveal.in { transform: none; }
  .waveform i { animation: none; transform: scaleY(0.55); }
  .field-row { opacity: 1; transform: none; transition: none; }
  .btn, .channel, .beat, .diff, .contact-form button {
    transition: none;
  }
  .demo-modal, .demo-card { animation: none !important; transition: none !important; }
}


/* ─── Demo booking modal ──────────────────────────────────────
 * Self-contained inline calendar + time-slot picker. The operator
 * can replace the body of this modal with a Cal.com / Calendly
 * embed at deploy time — the open/close + protocol stays the same. */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: dm-fade 220ms ease both;
}
.demo-modal[hidden] { display: none; }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 19, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.demo-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 32px 80px -16px rgba(11, 13, 19, 0.4);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: dm-pop 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.demo-card::before {
  /* Branded gradient glow in the top-right corner — mirrors the
   * contact-card glow so the modal feels like part of the same
   * surface family. */
  content: "";
  position: absolute;
  top: -140px; right: -140px;
  width: 360px; height: 360px;
  background: radial-gradient(circle,
    rgba(99,102,241,0.22),
    rgba(139,92,246,0.10) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.demo-card > * { position: relative; z-index: 1; }
@keyframes dm-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.demo-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid; place-items: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.demo-close:hover {
  background: var(--surface-2);
  border-color: #D6D9E3;
  color: var(--text);
}

.demo-h {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-right: 48px;
  align-items: start;
}
.demo-h-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-glow);
}
.demo-h-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-h h3 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.demo-h p {
  font-size: 14.5px;
  color: var(--text-2);
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  transition: grid-template-columns 280ms ease;
}
.demo-body.has-time {
  grid-template-columns: 1.1fr 1fr;
  justify-items: stretch;
}
.demo-cal {
  width: 100%;
  max-width: 360px;
  transition: max-width 280ms ease;
}
.demo-body.has-time .demo-cal { max-width: none; }
.demo-times {
  display: none;
}
.demo-body.has-time .demo-times {
  display: flex;
  animation: dm-slide-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes dm-slide-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 620px) {
  .demo-card { padding: 24px; }
  .demo-body, .demo-body.has-time { grid-template-columns: 1fr; }
  .demo-cal { max-width: none; }
  .demo-body.has-time .demo-times {
    animation: dm-slide-up 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes dm-slide-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Calendar */
.demo-cal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.cal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-month {
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}
.cal-nav {
  appearance: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid; place-items: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.cal-nav:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary-deep);
  transform: translateY(-1px);
}
.cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  appearance: none;
  border: 0;
  background: transparent;
  height: 38px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}
.cal-cell:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.cal-cell:disabled {
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.45;
}
.cal-cell.is-today {
  font-weight: 700;
}
.cal-cell.is-today::after {
  content: "";
  position: absolute;
  bottom: 6px; left: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%);
}
.cal-cell.is-selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px -4px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}
.cal-cell.is-selected::after { background: #fff; }
.cal-cell.is-other-month {
  color: var(--text-3);
  opacity: 0.35;
}
.cal-tz {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Time-slot panel */
.demo-times {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.times-h {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-2);
  letter-spacing: -0.01em;
  text-transform: capitalize;
}
.times-h.is-empty {
  color: var(--text-3);
  font-weight: 500;
  text-align: center;
  padding: 24px 0;
  border-bottom: 0;
  font-size: 13.5px;
}
.times-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 308px;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
}
.times-group-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.time-slot {
  appearance: none;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.time-slot:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--primary-tint);
  transform: translateY(-1px);
}
.time-slot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Confirm form (step 3) */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--primary-soft);
  border: 1px solid #DDE0FF;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--primary-deep);
  font-weight: 600;
}
.demo-selected::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.demo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.demo-form-row { display: flex; flex-direction: column; gap: 6px; }
.demo-form-row--wide { grid-column: 1 / -1; }
.demo-form-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.demo-form input {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.demo-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.demo-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
@media (max-width: 480px) {
  .demo-form-grid { grid-template-columns: 1fr; }
}

/* Success (step 4) */
.demo-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 0 8px;
}
.demo-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--good);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.demo-success h4 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.demo-success #demo-success-when {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}
.demo-success-sub {
  color: var(--text-2);
  font-size: 14px;
  max-width: 38ch;
}
.demo-success .btn { margin-top: 8px; }

body.demo-open { overflow: hidden; }


/* ──────────────────────────────────────────────────────────────────
 * FAQ section (added post-D-LOOP-4; native <details>/<summary> so
 * the accordion works without JS and is keyboard/SR accessible by
 * default). Visual treatment matches the existing card idiom — same
 * tokens (--surface, --border, --r-md, --sh-1/2), same vertical
 * rhythm as the Why / About sections.
 * ────────────────────────────────────────────────────────────── */
.faq { padding: 96px 0; }
.faq .container { max-width: 820px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  overflow: clip;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.faq-item[open] {
  box-shadow: var(--sh-2);
  border-color: var(--border-2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.faq-item summary:hover { color: var(--ink); }

.faq-chev {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 200ms ease, color 200ms ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.faq-a p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .faq-chev, .faq-item { transition: none; }
}

@media (max-width: 540px) {
  .faq { padding: 64px 0; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-a { padding: 0 18px 18px; font-size: 14px; }
}
