/* ── Design Tokens ──
   Light by default; if user explicitly opts into dark via data-theme="dark",
   the inverse tokens apply below. The hub reads as light/airy in both
   modes so the dark logo + warm off-white card surfaces stay legible. */
:root,
[data-theme="light"] {
  --bg: #FAF9F7;
  --paper: #FFFFFF;
  --ink: #0A1F44;
  --ink-soft: rgba(10, 31, 68, 0.65);
  --ink-faint: rgba(10, 31, 68, 0.45);
  --line: rgba(10, 31, 68, 0.10);
  --line-strong: rgba(10, 31, 68, 0.16);
  --cherry: #D2042D;
  --cherry-ink: #B30326;
  --graphite: #3B4B63;
  --graphite-soft: rgba(59, 75, 99, 0.08);
  --narrator: #4678eb;

  --hero-wash-1: rgba(210, 4, 45, 0.05);
  --hero-wash-2: rgba(59, 75, 99, 0.05);
  --waveform-locked: rgba(210, 4, 45, 0.18);
}

[data-theme="dark"] {
  --bg: #06122A;
  --paper: #0A1F44;
  --ink: #EEF2F9;
  --ink-soft: rgba(238, 242, 249, 0.65);
  --ink-faint: rgba(238, 242, 249, 0.45);
  --line: rgba(238, 242, 249, 0.10);
  --line-strong: rgba(238, 242, 249, 0.18);
  --cherry: #FF3043;
  --cherry-ink: #D2042D;
  --graphite: #8A99B0;
  --graphite-soft: rgba(138, 153, 176, 0.10);
  --narrator: #6F95F0;

  --hero-wash-1: rgba(255, 48, 67, 0.08);
  --hero-wash-2: rgba(110, 145, 240, 0.06);
  --waveform-locked: rgba(238, 242, 249, 0.20);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #06122A;
    --paper: #0A1F44;
    --ink: #EEF2F9;
    --ink-soft: rgba(238, 242, 249, 0.65);
    --ink-faint: rgba(238, 242, 249, 0.45);
    --line: rgba(238, 242, 249, 0.10);
    --line-strong: rgba(238, 242, 249, 0.18);
    --cherry: #FF3043;
    --cherry-ink: #D2042D;
    --graphite: #8A99B0;
    --graphite-soft: rgba(138, 153, 176, 0.10);
    --narrator: #6F95F0;
    --hero-wash-1: rgba(255, 48, 67, 0.08);
    --hero-wash-2: rgba(110, 145, 240, 0.06);
    --waveform-locked: rgba(238, 242, 249, 0.20);
  }
}

:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Matte, neutral elevation — depth via layered shadow, never a colored glow. */
  --elev-1: 0 1px 2px rgba(10, 31, 68, 0.05), 0 1px 1px rgba(10, 31, 68, 0.04);
  --elev-2: 0 8px 20px -6px rgba(10, 31, 68, 0.12), 0 2px 6px -2px rgba(10, 31, 68, 0.06);
  --elev-3: 0 24px 56px -20px rgba(10, 31, 68, 0.18), 0 8px 20px -8px rgba(10, 31, 68, 0.08);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Subtle two-stop wash behind the whole page — the depth comes from
     extreme-soft tinted radials, never from a glow on any element. */
  background-image:
    radial-gradient(64rem 40rem at 15% -10%, var(--hero-wash-1), transparent 60%),
    radial-gradient(56rem 36rem at 100% 10%, var(--hero-wash-2), transparent 55%);
  background-attachment: fixed;
  transition: background-color var(--dur-slow) var(--ease-smooth),
              color var(--dur-slow) var(--ease-smooth);
}

main { flex: 1; display: flex; flex-direction: column; }

/* ── Skip-to-content (a11y) ──
   Off-screen by default; on focus it pops in at the top-left edge.
   No motion if reduced-motion is set. */
.skip-link {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-md)));
  transition: transform var(--dur-base) var(--ease-smooth);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--cherry); outline-offset: 2px; }

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

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }

/* ── Selection ── */
::selection { background: var(--cherry); color: #fff; }

/* ── Focus ring (global, restrained) ── */
:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) var(--space-xl) clamp(2.5rem, 6vw, 4rem);
  animation: hero-fade-in 0.6s var(--ease-smooth) both;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }

.hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__logo { width: clamp(96px, 12vw, 144px); height: auto; }

.hero__wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  max-width: 22ch;
}

.hero__subline {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

/* Hero chips: tiny brand-coded pills that show what kinds of products are
   in the suite, so the visitor reads the page as "a small studio with a
   few products" rather than a single-product splash. Cheap to render,
   zero motion cost, completely optional. */
.hero__chips {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg);
}

/* ════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — 3-step explainer (comprehension shortcut)
   ════════════════════════════════════════════════════════════════════════ */
.how {
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-xl) clamp(2rem, 5vw, 3rem);
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}

.how__kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
}

.how__heading {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xl);
  color: var(--ink);
}

.how__heading-accent {
  color: var(--cherry);
  font-weight: 700;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  list-style: none;
  counter-reset: step;
}

.how__step {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition: transform var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}

/* The auto-incremented counter is rendered as a faint "01", "02", "03"
   watermark in the top-right corner — gives the steps structure without
   resorting to bright numbers that would compete with the icons. */
.how__step {
  counter-increment: step;
}
.how__step::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.how__step:hover {
  border-color: var(--line-strong);
  box-shadow: var(--elev-1);
  transform: translateY(-2px);
}

.how__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--graphite-soft);
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.how__step-body { display: flex; flex-direction: column; gap: var(--space-xs); }

.how__step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.how__step-desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════════
   LISTEN — synced audio player with waveform + scrolling transcript
   ════════════════════════════════════════════════════════════════════════
   The "Listen" section is a working audio demo, not a screenshot.
   - 1 audio element drives everything (paused at start, click to play)
   - transcript.json (per-line + per-word absolute timestamps) renders the
     dialogue as a stylised script; current line + current word get classes
   - peaks.json (120 fps max amplitude) renders the pre-computed waveform;
     a position:absolute playhead slides left-to-right over it
   - The active speaker's name shows prominently in .player__now-name
   - Auto-scroll: the transcript container keeps the active line roughly
     vertical-centre using scrollTo({behavior:'smooth'})
*/

.listen {
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-xl) clamp(3rem, 8vw, 5rem);
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}

.listen__kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
}

.listen__heading {
  text-align: center;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--ink);
  line-height: 1.15;
}

.listen__heading-quote {
  color: var(--cherry);
  font-style: italic;
  font-weight: 700;
}

.listen__heading-main { font-weight: 700; }

.listen__sub {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

/* The player card: a single paper-surface panel that holds the audio
   player, the waveform, the transcript, and the controls. Designed to
   read as "the demo" — even with audio paused it's interesting. */
.player {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--elev-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.player__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Speaker indicator strip — switches name + colour as playback advances.
   Two pills: the static label "Now speaking:" and the dynamic name.
   Colour stays brand-cherry by default; the JS swaps a per-speaker
   colour into --player-speaker via inline style on .player__now. */
.player__now {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.player__now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--player-speaker, var(--cherry));
  box-shadow: 0 0 0 0 var(--player-speaker, var(--cherry));
  animation: player-now-pulse 1.6s var(--ease-smooth) infinite;
  transition: background-color var(--dur-base) var(--ease-smooth);
}

@keyframes player-now-pulse {
  0%   { box-shadow: 0 0 0 0 var(--player-speaker, var(--cherry)); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .player__now-dot { animation: none; }
}

.player__now-label { color: var(--ink-faint); }

.player__now-name {
  color: var(--player-speaker, var(--ink));
  letter-spacing: 0.05em;
  transition: color var(--dur-base) var(--ease-smooth);
}

.player__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.player__sub {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* Big circular play/pause control — switches icon based on is-playing. */
.player__play {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-spring),
              background-color var(--dur-base) var(--ease-smooth);
}
.player__play:hover { background: var(--cherry); transform: scale(1.06); }
.player__play:active { transform: scale(0.96); }
.player__play:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
}

.player__icon { display: inline-block; }
.player__icon--pause { display: none; }
.player.is-playing .player__icon--play  { display: none; }
.player.is-playing .player__icon--pause { display: inline-block; }

/* Waveform container — pre-computed peaks.json drives a flex row of bars,
   the playhead sits on top via position:absolute. Tap-to-seek lives on
   the waveform itself for forgiving scrub UX. */
.player__waveform {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* ~1px hairline above and below to separate from header/footer */
  padding: 4px 0;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(50% - 0.5px),
    var(--line) calc(50% - 0.5px),
    var(--line) calc(50% + 0.5px),
    transparent calc(50% + 0.5px),
    transparent 100%
  );
}

.player__bars {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 100%;
  width: 100%;
}

.player__bar {
  flex: 1 1 0;
  min-width: 1px;
  background: var(--line-strong);
  border-radius: 1px;
  /* Height set inline by JS (--h is a percentage string like "47%"). */
  height: var(--h, 30%);
  transition: background-color var(--dur-base) var(--ease-smooth),
              height 220ms var(--ease-smooth);
}

/* Bars before the playhead "rise" with cherry; bars after stay muted. */
.player__bar.is-played {
  background: var(--player-speaker, var(--cherry));
}

.player__playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
  transform: translateX(-1px);
  /* Subtle glow echoes the current speaker's colour. */
  box-shadow: 0 0 0 1px var(--bg), 0 0 8px var(--player-speaker, var(--cherry));
  transition: box-shadow var(--dur-base) var(--ease-smooth);
  pointer-events: none;
}

.player__playhead::after {
  /* Tiny chevron at top so the playhead reads as a "now" marker even at
     glance, similar to audio editor cursors. */
  content: "";
  position: absolute;
  top: -2px; left: -3px;
  width: 8px; height: 8px;
  background: var(--ink);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Transcript panel — fixed height + overflow:auto + smooth scroll-snap
   to the active line. Word spans toggle .is-active as the head passes. */
.player__transcript {
  position: relative;
  height: 200px;
  overflow-y: auto;
  padding: var(--space-xs) 0;
  scroll-behavior: smooth;
  background:
    linear-gradient(transparent, var(--paper)) 0 0 / 100% 16px no-repeat,
    linear-gradient(var(--paper), transparent) 100% 100% / 100% 16px no-repeat;
  /* Mask out the fade-out at top/bottom. Better than box-shadow for
     accessibility (no spill on focus). */
  -webkit-mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.player__hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.05em;
}

.player__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  justify-content: center;
}

.player__line {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-base) var(--ease-smooth);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.player__line.is-active {
  background: var(--player-line-bg, rgba(210, 4, 45, 0.06));
  color: var(--ink);
  transform: translateX(2px);
}

/* Inline speaker name as a coloured chip — picks up the current speaker
   colour via CSS custom property set inline by JS. */
.player__speaker {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink-faint);
  color: var(--paper);
  flex-shrink: 0;
  transition: background-color var(--dur-base) var(--ease-smooth),
              color var(--dur-base) var(--ease-smooth);
}

.player__line.is-active .player__speaker {
  background: var(--player-line-accent, var(--cherry));
}

.player__words {
  display: inline;
  flex: 1;
  min-width: 0;
}

.player__word {
  display: inline;
  padding: 0.0625rem 0.125rem;
  border-radius: 3px;
  transition: background-color 80ms linear, color 80ms linear;
}

.player__word.is-active {
  background: var(--player-line-accent, var(--cherry));
  color: #fff;
}

/* Footer progress strip — linear horizontal stat between two timecodes. */
.player__foot {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.player__time { min-width: 2.75rem; text-align: center; }
.player__time--total { color: var(--ink-soft); }

.player__progress {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.player__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--player-speaker, var(--ink));
  border-radius: inherit;
  transition: background-color var(--dur-base) var(--ease-smooth);
}

@media (prefers-reduced-motion: reduce) {
  .player__bar,
  .player.is-playing .player__waveform *,
  .player__word,
  .player__play { transition: none; }
}

@media (max-width: 640px) {
  .player__transcript { height: 180px; }
  .player__play { width: 48px; height: 48px; }
  .player__title { font-size: 1.25rem; }
}

/* Dark mode tint for the playerline background and minor adjustments. */
[data-theme="dark"] .player__line.is-active {
  background: rgba(255, 48, 67, 0.10);
}
[data-theme="dark"] .player__bar { background: rgba(238, 242, 249, 0.18); }
[data-theme="dark"] .player__waveform {
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(50% - 0.5px),
    rgba(238, 242, 249, 0.12) calc(50% - 0.5px),
    rgba(238, 242, 249, 0.12) calc(50% + 0.5px),
    transparent calc(50% + 0.5px),
    transparent 100%
  );
}

/* ════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ════════════════════════════════════════════════════════════════════════ */
.products {
  padding: clamp(2.5rem, 6vw, 4rem) var(--space-xl) clamp(3rem, 8vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.products__kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-xl);
  /* visually-hidden doesn't make sense here — the kicker is a section
     divider; reset visible styles in case a parent hides it. */
}

/* The "products" container used to nest both cards in a single .inner
   div with max-width 44rem. Now they're siblings — feature-card stays
   max-width 44rem for readability, teaser-strip below it follows suit. */
.products > .feature-card,
.products > .teaser-strip {
  max-width: 44rem;
  width: 100%;
}

/* ── Shared bits (used by both the feature card and the teaser strip) ── */
.card__tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.card__tag--live {
  background: rgba(210, 4, 45, 0.10);
  color: var(--cherry);
}
.card__tag--soon {
  background: var(--graphite-soft);
  color: var(--graphite);
}

.card__brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card__mark { object-fit: contain; flex-shrink: 0; }
.card__mark--eq { width: 120px; height: 96px; }

.card__title {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  min-width: 0;
}

.card__tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
}

.card__tagline-accent { color: var(--cherry); font-weight: 700; }

.card__desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 38ch;
}

.card__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Six items reads better as a scannable 2-column grid than one long column. */
.card__benefits--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-lg);
  row-gap: var(--space-sm);
}

.card__benefits li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.5;
}

.card__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--cherry);
}

/* ── Feature card (ChittyChatter) ──
   Sellable product: full-width, solid paper surface, real elevation.
   This is the visual centerpiece, not one of two equal-weight boxes. */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cherry);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--elev-2);
  margin-bottom: var(--space-xl);
  transition: box-shadow var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-base) var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-3);
  border-color: var(--line-strong);
}

/* ── Player mock (visual proof inside ChittyChatter card) ──
   A self-contained "audio player" preview that proves the product
   exists and looks the way we describe. Lives in a recessed panel
   so it reads as "here's a screenshot from the app" rather than a
   floating decoration. */
.player-mock {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.player-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.player-mock__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.player-mock__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 0 0 0 var(--cherry);
  animation: pm-pulse 1.8s var(--ease-smooth) infinite;
}
@keyframes pm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 4, 45, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(210, 4, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 4, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .player-mock__pulse { animation: none; }
}

.player-mock__pages {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.player-mock__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

/* Waveform container — fixed height, full width. The inline SVG scales
   to fit. We use preserveAspectRatio="none" to stretch the 440-unit-wide
   bars to the actual container width without distortion of the breath
   animation (each bar still scales in place). */
.player-mock__waveform {
  height: 36px;
  width: 100%;
  display: block;
  position: relative;
}

/* When the page is read by a screen reader, hide the inline SVG
   entirely — it's visual noise with no information content. */
.player-mock__waveform svg { display: block; }

/* Progress bar: simple linear track + accent fill + a small round
   handle. handle sits at 38% to represent mid-chapter playback. */
.player-mock__progress {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: var(--radius-full);
}

.player-mock__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: var(--cherry);
  border-radius: inherit;
}

.player-mock__progress-handle {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--cherry);
  box-shadow: var(--elev-1);
}

/* Footer row: play circle + timestamp + voice-cast strip.
   On narrow screens everything wraps to a stack. */
.player-mock__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.player-mock__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring),
              background-color var(--dur-base) var(--ease-smooth);
  flex-shrink: 0;
}
.player-mock__play:hover {
  background: var(--cherry);
  transform: scale(1.08);
}
.player-mock__play:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
}
.player-mock__play:active { transform: scale(0.96); }

.player-mock__time {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.player-mock__time em {
  font-style: normal;
  color: var(--ink-faint);
  margin-left: 0.25rem;
}

/* Voice-cast strip: 3 small avatar pills representing Multi-Chatter's
   per-character voice assignment, plus a "+2" overflow chip so
   visitors see the feature scales beyond a one-on-one narration. */
.player-mock__voices {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  flex-shrink: 0;
}

.player-mock__voice {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem 0.1875rem 0.375rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}
.player-mock__voice::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  margin-right: 0.375rem;
}
.player-mock__voice--narrator { background: var(--narrator); }
.player-mock__voice--cherry    { background: var(--cherry); }
.player-mock__voice--graphite  { background: var(--graphite); }

.player-mock__voice-more {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--line);
  white-space: nowrap;
}

/* ── CTAs (Start listening + Submit form) ── */
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth),
              background-color var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              color var(--dur-base) var(--ease-smooth);
}

.card__cta svg { transition: transform var(--dur-base) var(--ease-smooth); }
.card__cta:hover svg { transform: translateX(2px); }
.card__cta:active { transform: translateY(0); }

/* ── Teaser strip (Syntaxi) ──
   Not sellable yet: a slim horizontal row above the form, then the
   form itself. Originally one slim strip; now expanded to include
   a real input. Keeps the "not a competitor to the card above"
   visual hierarchy. */
.teaser-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: transparent;
}

.teaser-strip:hover { border-color: rgba(59, 75, 99, 0.30); }

.teaser-strip--with-form { background: var(--paper); }
.teaser-strip--with-form:hover { border-color: var(--line-strong); }

.teaser-strip__lead {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.teaser-strip__mark {
  width: 140px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.teaser-strip__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.teaser-strip__head .card__tag { margin-bottom: 0; }

.teaser-strip__title {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

.teaser-strip__body { display: flex; flex-direction: column; gap: var(--space-md); }

.teaser-strip__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ── Waitlist form (Syntaxi early-access signup) ──
   Two-line form: email input + submit button. The submit has the
   same cherry-on-paper treatment as the main ChittyChatter CTA so
   the page reads as one cohesive system, but the form variant
   controls width to claim the full width of the teaser-strip.
   .waitlist__status is the inline feedback area beneath the row
   (success, error, "thinking…") — role="status" set in HTML. */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-sm);
  position: relative;
}

.waitlist__input {
  flex: 1;
  min-width: 12rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--dur-base) var(--ease-smooth),
              background-color var(--dur-base) var(--ease-smooth);
}
.waitlist__input::placeholder { color: var(--ink-faint); }
.waitlist__input:hover { border-color: var(--graphite); }
.waitlist__input:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 2px;
  border-color: var(--cherry);
}
.waitlist.is-invalid .waitlist__input {
  border-color: var(--cherry);
  background: rgba(210, 4, 45, 0.04);
}

.waitlist__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--cherry);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--cherry);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}
.waitlist__submit:hover {
  background: var(--cherry-ink);
  border-color: var(--cherry-ink);
  transform: translateY(-1px);
  box-shadow: var(--elev-2);
}
.waitlist__submit:active { transform: translateY(0); }
.waitlist__submit svg { transition: transform var(--dur-base) var(--ease-smooth); }
.waitlist__submit:hover svg { transform: translateX(2px); }

.waitlist.is-submitting .waitlist__submit {
  opacity: 0.7;
  cursor: progress;
}

.waitlist.is-success .waitlist__submit {
  background: var(--graphite);
  border-color: var(--graphite);
}

.waitlist__status {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  min-height: 1.25em;
  margin: 0;
}
.waitlist.is-invalid .waitlist__status { color: var(--cherry); }
.waitlist.is-success .waitlist__status { color: var(--graphite); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .teaser-strip, .card__cta, .waitlist__submit,
  .player-mock__play, .how__step {
    transition: none;
  }
  .feature-card:hover, .card__cta:hover, .how__step:hover,
  .waitlist__submit:hover, .player-mock__play:hover {
    transform: none;
  }
  .card__cta:hover svg, .waitlist__submit:hover svg { transform: none; }
  .player-mock__play:hover { background: var(--ink); transform: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.site-footer__line { margin-bottom: var(--space-xs); }
.site-footer__line:last-child { margin-bottom: 0; }

.site-footer a {
  color: var(--ink);
  transition: color var(--dur-base) var(--ease-smooth);
}
.site-footer a:hover { color: var(--cherry); }
.site-footer a:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer__copy { color: var(--ink-faint); font-size: 0.75rem; }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .how__steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .card__benefits--grid { grid-template-columns: 1fr; }
  .player-mock__voices { margin-left: 0; width: 100%; }
  .player-mock__footer { gap: var(--space-sm); }
  .waitlist__submit { flex: 1; justify-content: center; }
}

@media (max-width: 640px) {
  .teaser-strip__lead { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .teaser-strip__mark { width: 110px; height: auto; }
}

@media (max-width: 480px) {
  .hero { padding-top: var(--space-2xl); }
  .hero__brand { gap: var(--space-sm); margin-bottom: var(--space-lg); }
  .feature-card { padding: var(--space-lg); }
  .player-mock { padding: var(--space-md); }
  .teaser-strip { padding: var(--space-md) var(--space-lg); }
  /* The 120x96 mark + 1.75rem title fit fine on wider screens but overflow a
     narrow phone (gap + non-shrinking mark left too little room, clipping the
     "ChittyChatter" title) — scale both down together on the narrowest screens. */
  .card__brand-row { flex-wrap: wrap; }
  .card__mark--eq { width: 72px; height: 58px; }
  .card__title { font-size: 1.35rem; }
  .player-mock__voice { font-size: 0.625rem; padding-right: 0.4375rem; }
}

/* ── Short viewports: tighter spacing ── */
@media (max-height: 700px) {
  .hero { padding-top: var(--space-xl); padding-bottom: var(--space-lg); }
  .hero__brand { margin-bottom: var(--space-md); }
}

/* ── Reveal on scroll ──
   Sections and big elements fade in softly as they cross into the
   viewport. Progressive enhancement pattern: by DEFAULT everything is
   visible (so no-JS users, headless screenshots, slow connections, and
   bot crawlers all see the final layout). Only AFTER .js-ready is set
   on <html> do un-revealed elements become hidden — and the
   IntersectionObserver then reveals them as they cross the threshold.
   This means a JS failure can never strand the page in an invisible
   state. */
[data-reveal] {
  transition: opacity 600ms var(--ease-smooth),
              transform 600ms var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
  .js-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
