/* Ambitus — launch site
   SF Pro everywhere (Apple system stack). Light + dark themes.
   Verdict colours are the app's own. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* light theme (default) — follows the OS setting, no manual switch */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F3F1;
  --ink: #1A1815;
  --muted: #6E6862;
  --line: rgba(26, 24, 21, .12);
  --line-soft: rgba(26, 24, 21, .08);
  --field-border: #8A857E; /* solid, clears 3:1 for form-control borders (1.4.11) */
  --shadow: 0 1px 2px rgba(26,24,21,.05), 0 12px 32px rgba(26,24,21,.08);
  --shadow-lift: 0 2px 4px rgba(26,24,21,.06), 0 20px 48px rgba(26,24,21,.13);
  --green: #4C7A3F;
  --red: #B3402E;
  --turquoise: #0FB3A6;
  --turquoise-text: #0C7A70; /* AA-safe turquoise for small text on paper */
  --turquoise-band: rgba(15, 179, 166, .20);
  --gray-note: #ACA69D;
  --btn-bg: #1A1815;
  --btn-fg: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, .55);
  --nav-bg-scrolled: rgba(255, 255, 255, .75);
  --nav-border: rgba(26, 24, 21, .10);
  --nav-shadow: 0 0 0 .5px rgba(26,24,21,.03), 0 8px 30px rgba(26,24,21,.10);
  --nav-faint: rgba(26, 24, 21, .56);
  --active-bg: rgba(26, 24, 21, .06);
  --hover-bg: rgba(26, 24, 21, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --surface: #1C1A17;
    --surface-2: #232019;
    --ink: #F2EFE9;
    --muted: #A39C92;
    --line: rgba(242, 239, 233, .12);
    --line-soft: rgba(242, 239, 233, .07);
    --field-border: #6A655D; /* solid, clears 3:1 on the dark surface (1.4.11) */
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5), inset 0 .5px 0 rgba(255,255,255,.06);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.55), 0 24px 56px rgba(0,0,0,.6), inset 0 .5px 0 rgba(255,255,255,.08);
    --green: #7FB36A;
    --red: #E06A52;
    --turquoise: #33D6C7;
    --turquoise-text: #33D6C7; /* bright turquoise already clears AA on the dark bg */
    --turquoise-band: rgba(51, 214, 199, .18);
    --gray-note: #5F5A52;
    --btn-bg: #F2EFE9;
    --btn-fg: #131110;
    --nav-bg: rgba(44, 42, 39, .55);
    --nav-bg-scrolled: rgba(44, 42, 39, .74);
    --nav-border: rgba(255, 255, 255, .09);
    --nav-shadow: 0 0 0 .5px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.06);
    --nav-faint: rgba(242, 239, 233, .55);
    --active-bg: rgba(255, 255, 255, .09);
    --hover-bg: rgba(255, 255, 255, .05);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}

::selection { background: var(--turquoise-band); color: var(--ink); }

a { color: inherit; }

/* skip-to-content — off-screen until keyboard focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 1100;
  padding: 10px 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .18s cubic-bezier(.16,1,.3,1);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--ink); outline-offset: 2px; }

/* keyboard focus rings — pills glow, text links get an outline */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; box-shadow: 0 0 0 3px var(--turquoise-band); }
.nav-sections a:focus-visible,
.footer-links a:focus-visible { box-shadow: none; outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ============ nav (floating pill) ============ */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 960px;
  height: 48px;
  padding: 0 6px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  border: 0.5px solid var(--nav-border);
  border-radius: 100px;
  box-shadow: var(--nav-shadow);
  transition: background .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease;
}
.nav.scrolled { background: var(--nav-bg-scrolled); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon { width: 24px; height: 24px; border-radius: 6px; display: block; }

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-sections { display: flex; align-items: center; gap: 4px; }
.nav-sections a {
  color: var(--nav-faint);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color .3s, background .3s;
}
.nav-sections a:hover { color: var(--muted); background: var(--hover-bg); }
.nav-sections a.active { color: var(--ink); background: var(--active-bg); }

.nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s ease;
}
.nav-cta:hover { opacity: .9; transform: scale(1.03); }
.nav-cta:active { transform: scale(.98); }

/* ============ buttons ============ */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: none;
  border-radius: 999px;
  padding: .85rem 1.7rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:disabled:hover { transform: none; box-shadow: none; }

/* ============ reveal animations ============ */

/* Gated behind `.js` (set by script.js): without JavaScript the elements
   never hide, so the page is fully readable even if the script fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ============ hero ============ */

.hero { padding: 7rem 0 5rem; }

.hero-eyebrow {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--turquoise-text);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* the live-verdict stage */
.stage {
  margin-top: 4.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem 1.4rem;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.stage-title { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stage-live {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.stage-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}

/* the score panel reads as aged score paper — creamy, dimmed, vintage — and
   stays LIGHT even in dark mode (never the dark-UI look). Re-lights the
   palette inside .stage so the engraving and verdicts sit on the paper. */
@media (prefers-color-scheme: dark) {
  .stage {
    background: #E7DEC8;
    border-color: rgba(58, 51, 39, .16);
    box-shadow: 0 2px 4px rgba(0,0,0,.45), 0 22px 50px rgba(0,0,0,.5);
    --ink: #3A3327;
    --muted: #6E6862;
    --green: #4C7A3F;
    --red: #B3402E;
    --turquoise: #0C7A70;
    --gray-note: #ACA69D;
    --line-soft: rgba(58, 51, 39, .10);
  }
}

/* ---- real engraved staves (Verovio, pre-rendered from MusicXML) ---- */

.vrv { width: 100%; height: auto; display: block; }
.vrv svg { color: var(--ink); fill: var(--ink); }
.vrv .label { display: none; }

/* keep the engraving legible on small screens: scroll it, don't shrink it */
.stage-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .stage-scroll .vrv-hero { min-width: 980px; }
  /* the engraving overflows and scrolls — fade the right edge to cue it */
  .stage-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
}

.vrv .v-hit     { color: var(--green);     fill: var(--green); }
.vrv .v-miss    { color: var(--red);       fill: var(--red); }
.vrv .v-suspect { color: var(--turquoise);    fill: var(--turquoise); }
.vrv .v-rest    { color: var(--gray-note); fill: var(--gray-note); }
.vrv .v-ghost   { color: var(--muted);     fill: var(--muted); opacity: .75; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rule { to { stroke-dashoffset: 0; } }

/* ---- hero: the staff paints across in one continuous left-to-right sweep,
        then the notes ink in left to right, then they're graded ---- */

/* 1. the staff, clef and signatures paint on in a single left-to-right sweep.
      A clip wipe reveals the SVG left to right, so the staff lines paint as
      one continuous stroke across the whole system — not bar by bar. The
      notes are invisible during this phase (opacity 0 below), so only the
      staff furniture paints in. */
.vrv-hero {
  clip-path: inset(-30% 100% -30% 0);
  animation: paint-in .85s linear forwards .1s;
}
@keyframes paint-in { to { clip-path: inset(-30% -30% -30% 0); } }

/* 2. then every note, stem, beam, ledger and tie inks in together, left to
      right — --d is a 0..1 position across the system */
.vrv-hero .note,
.vrv-hero .rest,
.vrv-hero .ledgerLines,
.vrv-hero .tie { opacity: 0; }
.vrv-hero .note { color: var(--ink); fill: var(--ink); }
.vrv-hero .note,
.vrv-hero .rest,
.vrv-hero .ledgerLines,
.vrv-hero .tie { animation: fadein .4s ease forwards calc(.7s + var(--d, .5) * .6s); }
.vrv-hero .beam > polygon { opacity: 0; animation: fadein .4s ease forwards calc(.8s + var(--d, .5) * .6s); }

/* 3. then the grading pass washes verdict colour over the ink, left to right */
.vrv-hero .note.v-hit     { animation: fadein .4s ease forwards calc(.7s + var(--d) * .6s), grade-hit .5s ease forwards calc(1.5s + var(--d) * .55s); }
.vrv-hero .note.v-miss    { animation: fadein .4s ease forwards calc(.7s + var(--d) * .6s), grade-miss .5s ease forwards calc(1.5s + var(--d) * .55s); }
.vrv-hero .note.v-suspect { animation: fadein .4s ease forwards calc(.7s + var(--d) * .6s), grade-suspect .5s ease forwards calc(1.5s + var(--d) * .55s); }
.vrv-hero .note.v-rest    { animation: fadein .4s ease forwards calc(.7s + var(--d) * .6s), grade-rest .5s ease forwards calc(1.5s + var(--d) * .55s); }
@keyframes grade-hit     { to { color: var(--green);     fill: var(--green); } }
@keyframes grade-miss    { to { color: var(--red);       fill: var(--red); } }
@keyframes grade-suspect { to { color: var(--turquoise);    fill: var(--turquoise); } }
@keyframes grade-rest    { to { color: var(--gray-note); fill: var(--gray-note); } }

.v-barnum { fill: var(--muted); font-family: var(--font); font-weight: 600; }

/* 5. the miss is circled, the suspect annotated */
.v-ring {
  fill: none;
  color: var(--red); /* Verovio's internal style strokes with currentColor */
  stroke: var(--red);
  stroke-width: 26;
  stroke-dasharray: 1850; stroke-dashoffset: 1850;
  animation: rule .7s ease forwards 2.05s;
}
.v-callout { opacity: 0; animation: fadein .5s ease forwards 2.25s; }
.v-callout line { stroke: var(--turquoise); stroke-width: 12; }
.v-callout text { fill: var(--turquoise); font-family: var(--font); font-weight: 600; }

/* tempo bracket — described, not scored: neutral, italic, no verdict colour */
.v-tempo { opacity: 0; animation: fadein .5s ease forwards 2.4s; }
.v-tempo path { fill: none; stroke: var(--muted); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.v-tempo text { fill: var(--muted); font-family: var(--font); font-weight: 600; font-style: italic; }

.vrv-fig { max-width: 300px; margin: 0 auto; }
.vrv-labels {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .6rem;
}
.vrv-labels .dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: .45em;
  vertical-align: middle;
}

.scan-flow { display: flex; align-items: center; gap: 1rem; }
.card .scan-photo { width: 32%; flex-shrink: 0; height: auto; }
.scan-arrow { font-size: 1.3rem; color: var(--muted); }
.scan-result { flex: 1; min-width: 0; padding: 0 .4rem; }

.chart-axis text {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  fill: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1rem;
}
.legend .dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: .45em;
  vertical-align: middle;
}

/* ============ marquee ============ */

.marquee-wrap {
  padding: 2.6rem 0 2.8rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.marquee-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  flex-shrink: 0;
  animation: scroll-x 42s linear infinite;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee .track i { color: var(--turquoise); font-style: normal; font-size: .6rem; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-100%); } }

/* ============ value prop ============ */

.value { padding: 6.5rem 0 2.5rem; }
.value-line {
  max-width: 30em;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.value-line em { font-style: normal; color: var(--muted); }

/* ============ sections ============ */

.section { padding: 6.5rem 0 2.5rem; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--turquoise-text);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 3.2rem;
  text-wrap: balance;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2rem 1.9rem 1.9rem;
  transition: transform .25s ease, box-shadow .25s ease,
              opacity .7s cubic-bezier(.2,.7,.2,1);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-num {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--turquoise-text);
  margin-bottom: 1.1rem;
}
.step-card h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: .6rem; text-wrap: balance; }
.step-card p { color: var(--muted); font-size: .98rem; }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}
.feature-row.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feature-row.flip .feature-text { order: 2; }
.feature-row.flip .feature-visual { order: 1; }

.feature-text h3 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: .9rem;
  text-wrap: balance;
}
.feature-text p { color: var(--muted); max-width: 32em; margin-bottom: .9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.7rem 1.4rem;
  transition: transform .25s ease, box-shadow .25s ease,
              opacity .7s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card svg { width: 100%; height: auto; display: block; }

.card-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.card-note { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 1rem; }

/* chart bits */
.chart-label { font-family: var(--font); font-size: 12.5px; font-weight: 600; fill: var(--muted); }
.chart-label.warn { fill: var(--red); }
.chart-label.ok { fill: var(--green); }
.warn-tick { stroke: var(--red); stroke-width: 1; opacity: .8; }
.corridor-band { fill: var(--turquoise-band); }
.photo-frame { fill: var(--surface-2); stroke: var(--line); }
.photo-lines line { stroke: var(--muted); stroke-width: .8; opacity: .55; }

/* draw-on-scroll lines */
.draw {
  fill: none;
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s ease .3s;
}
.in .draw, .in.draw { stroke-dashoffset: 0; }
.you-line { stroke: var(--ink); }
.trace-red { stroke: var(--red); }
.trace-green { stroke: var(--green); }

/* trouble table */
table.trouble {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
table.trouble th {
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .3rem .6rem .55rem 0;
  border-bottom: 1px solid var(--line);
}
table.trouble td {
  padding: .6rem .6rem .6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}
table.trouble tr:last-child td { border-bottom: none; }
table.trouble .dim td { color: var(--gray-note); }

.ladder-title { margin-top: 1.5rem; }
.ladder { display: flex; gap: .5rem; }
.ladder .step {
  flex: 1;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gray-note);
  transition: background .5s ease, color .5s ease, border-color .5s ease;
}
.in .ladder .step.done { background: var(--surface-2); color: var(--muted); }
.in .ladder .step:nth-child(1) { transition-delay: .2s; }
.in .ladder .step:nth-child(2) { transition-delay: .45s; }
.in .ladder .step.now {
  border-color: var(--turquoise);
  color: var(--turquoise);
  transition-delay: .7s;
}

/* stage pills */
.stage-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.stage-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .9rem;
}
.stage-pills i { font-style: normal; color: var(--gray-note); }

/* ============ who ============ */

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.who-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.9rem 1.7rem;
  transition: transform .25s ease, box-shadow .25s ease,
              opacity .7s cubic-bezier(.2,.7,.2,1);
}
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.who-card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: .6rem; text-wrap: balance; }
.who-card p { color: var(--muted); font-size: .93rem; }

/* ============ compare ============ */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.compare-col {
  border-radius: 20px;
  padding: 2rem 2rem 1.6rem;
}
.compare-col.them {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.compare-col.us {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.compare-head {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.compare-col.us .compare-head { color: var(--turquoise-text); }
.compare-col ul { list-style: none; }
.compare-col li {
  padding: .8rem 0 .8rem 1.9rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-weight: 500;
}
.compare-col li:last-child { border-bottom: none; }
.compare-col.them li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gray-note);
}
.compare-col.us li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}

/* ============ faq ============ */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 4rem;
}
.faq dt { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: .45rem; text-wrap: balance; }
.faq dd { color: var(--muted); }

/* ============ waitlist ============ */

.waitlist {
  text-align: center;
  padding: 7.5rem 0;
  margin-top: 4rem;
}
.waitlist h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.waitlist-sub {
  max-width: 32em;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}
.form-fine {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.1rem;
}
.form-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form-fine a:hover { color: var(--ink); }

#waitlist-form {
  display: flex;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}
#waitlist-form input {
  font-family: var(--font);
  font-size: .98rem;
  padding: .85rem 1.4rem;
  width: min(22rem, 100%);
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#waitlist-form input:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px var(--turquoise-band); }
#waitlist-form input::placeholder { color: var(--muted); }

.form-note { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 1.2rem; }
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--red); }
.form-note:empty { margin: 0; }

/* ---- legal / privacy page ---- */
.legal { max-width: 40em; padding-top: 4.5rem; padding-bottom: 5rem; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.legal-date { color: var(--muted); font-size: .85rem; margin: .6rem 0 2.2rem; }
.legal h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .5rem; }
.legal p { color: var(--muted); margin-bottom: .9rem; }
.legal p strong { color: var(--ink); }

/* ============ footer ============ */

.footer { border-top: 1px solid var(--line-soft); padding: 3.2rem 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.6rem 3rem;
  align-items: start;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: .7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .55rem 0;
}
.footer-links a:hover { color: var(--ink); }
.footer-legal {
  grid-column: 1 / -1;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .who-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-sections { display: none; }
  .nav { max-width: 460px; padding: 0 6px 0 16px; height: 46px; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .v-callout { display: none; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 2rem; padding: 2.2rem 0; }
  .feature-row.flip .feature-text { order: 1; }
  .feature-row.flip .feature-visual { order: 2; }
  .compare { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero { padding-top: 5.5rem; }
  .hero h1 br.hero-br { display: none; }
  .stage { padding: 1.1rem 1.1rem 1rem; }
  .who-grid { grid-template-columns: 1fr; }
  .section { padding-top: 4.5rem; }
  .value { padding-top: 4.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand p br { display: none; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage-live i { animation: none; }
  .marquee .track { animation: none; }
  .draw { stroke-dashoffset: 0; transition: none; }
  .ladder .step { transition: none !important; }

  /* hero engraving: show the finished, graded result with no motion */
  .vrv-hero { clip-path: none !important; animation: none !important; }
  .vrv-hero .staff > path, .vrv-hero .barLine path, .vrv-hero .stem path,
  .v-ring { stroke-dashoffset: 0 !important; animation: none !important; }
  .vrv-hero .note, .vrv-hero .clef, .vrv-hero .keySig, .vrv-hero .meterSig,
  .vrv-hero .rest, .vrv-hero .ledgerLines, .vrv-hero .tie,
  .vrv-hero .beam > polygon, .v-barnum, .v-callout, .v-tempo {
    opacity: 1 !important; animation: none !important;
  }
  .vrv-hero .note.v-hit     { color: var(--green);     fill: var(--green); }
  .vrv-hero .note.v-miss    { color: var(--red);       fill: var(--red); }
  .vrv-hero .note.v-suspect { color: var(--turquoise);    fill: var(--turquoise); }
  .vrv-hero .note.v-rest    { color: var(--gray-note); fill: var(--gray-note); }
}
