:root {
  color-scheme: light dark;

  /* motion tokens (skill: motion-consistency) */
  --dur-fast: 150ms;
  --dur-mid:  350ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* warm editorial palette */
  --bg:        #f6f3ec;
  --surface:   #ffffff;
  --fg:        #161819;
  --fg-soft:   #3a3c40;
  --muted:     #6a6660;
  --rule:      rgba(22, 24, 25, 0.12);
  --quiet:     rgba(22, 24, 25, 0.045);
  --accent:    #c44e2a;          /* terracotta — brand */
  --accent-ink:#fff;
  --grounded:  #2f6b59;          /* sage — versim track */
  --naive:     #8a8278;          /* warm grey — control track */
  --neg:       #b04534;
  --neu:       #6b6660;
  --pos:       #3e7e6d;
  --mix:       #c08840;
  --shadow:    0 1px 0 rgba(22, 24, 25, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0f0e0d;
    --surface:   #16151a;
    --fg:        #ece6d8;
    --fg-soft:   #c8c2b6;
    --muted:     #8b857a;
    --rule:      rgba(236, 230, 216, 0.14);
    --quiet:     rgba(236, 230, 216, 0.055);
    --accent:    #e88a5f;
    --accent-ink:#0f0e0d;
    --grounded:  #7fc0a8;
    --naive:     #9c9489;
    --neg:       #e58270;
    --neu:       #8b857a;
    --pos:       #7fc0a8;
    --mix:       #d4a472;
    --shadow:    0 1px 0 rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── skip link (a11y) ─── */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.625rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-110%);
  transition: transform var(--dur-fast) var(--ease-out);
  z-index: 100;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
.skip-link:focus { transform: translateY(0); outline: none; }

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 42rem;
  margin: 0 auto;
}

/* type */
h1, h2, h3 {
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  font-feature-settings: "kern", "liga", "calt";
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  margin: 0;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.5rem 0 0.5rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

code, .mono, .label-key, .tag {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78em;
  letter-spacing: 0;
}

.muted { color: var(--muted); font-size: 0.875rem; }

/* fade-up: progressive enhancement */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

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

/* ─── HERO ─── */
.hero {
  /* mobile default; widened by min-width queries below */
  padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.etymology {
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0.625rem 0 0.25rem;
}
.etymology .root {
  font-style: normal;           /* roman within italic — dictionary convention */
  color: var(--fg-soft);
  font-weight: 500;
}

.tagline {
  color: var(--muted);
  font-style: italic;
  font-size: 1.0625rem;
  margin: 0.25rem 0 2.25rem;
}
.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  margin: 0 0 2rem;
  color: var(--fg);
  max-width: 36rem;
}

/* ─── hero proof strip ─── */
.hook {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--fg);
}
.hook strong { color: var(--accent); font-weight: 700; }

/* inline term-info: a hoverable term inside running prose */
.term-wrap {
  position: relative;
  display: inline-block;
}
.term-info {
  background: none;
  border: 0;
  appearance: none;
  cursor: help;
  font: inherit;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  text-align: left;
}
.term-info:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.term-info .info-glyph {
  position: relative;
  top: -0.1em;
  width: 1rem;
  height: 1rem;
  font-size: 0.625rem;
}

.term-why {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
  width: max-content;
  max-width: min(28rem, calc(100vw - 2.5rem));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility 0s linear var(--dur-fast);
}
.term-why-inner {
  display: block;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
  color: var(--fg-soft);
  line-height: 1.6;
  letter-spacing: 0;
}
.term-why-inner strong {
  color: var(--accent);
  font-weight: 700;
}
.term-info:hover + .term-why,
.term-info:focus-visible + .term-why,
.term-info[aria-expanded="true"] + .term-why {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility 0s linear;
}
@media (prefers-reduced-motion: reduce) {
  .term-why { transition: none; }
}
.proof-strip {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
  flex-wrap: wrap;
}
.proof-cell {
  padding: 1.25rem 1.5rem;           /* breathing inside the proof box */
  border-left: 3px solid var(--rule);
  background: var(--quiet);
  min-width: 11rem;
  flex: 1 1 11rem;
}
.proof-cell-g { border-left-color: var(--grounded); }
.proof-cell-n { border-left-color: var(--naive); opacity: 0.75; }
.proof-num {
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.proof-cell-g .proof-num { color: var(--grounded); }
.proof-cell-n .proof-num { color: var(--naive); }
.proof-of {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.125rem;
}
.proof-label {
  display: block;
  margin-top: 0.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.proof-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-serif, "New York", Baskerville, Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  font-size: 1rem;
  padding: 0 0.25rem;
  flex: 0 0 auto;
}
.hook-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0.5rem 0 2rem;
  max-width: 36rem;
  line-height: 1.55;
}
@media (max-width: 32rem) {
  .proof-strip { flex-direction: column; gap: 0.5rem; }
  .proof-vs { display: none; }
}

/* form */
.waitlist {
  margin: 0;
  max-width: 32rem;
}
.field-label {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.waitlist input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0.875rem 1rem;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: 0;
  outline: none;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"]:focus-visible {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow);
}
.waitlist button {
  font: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.875rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 0;
  cursor: pointer;
  min-height: 2.875rem;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.waitlist button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.waitlist button:active { transform: translateY(1px); }
.waitlist button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.waitlist button[disabled],
.waitlist button[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}
@media (prefers-reduced-motion: reduce) {
  .waitlist button { transition: none; }
}

/* ─── STATS ROW ─── */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 3rem 0 3.25rem;          /* generous space below/above the border rules */
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-num {
  display: inline-block;        /* allow min-width */
  min-width: 5ch;               /* skill: content-jumping — reserve width */
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ─── SECTIONS ─── */
section { padding: 3.5rem 0; }       /* mobile-default — generous space after the section above */
section:last-of-type { padding-bottom: 0; }

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-kicker {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}

/* surfaces — two cards */
.surfaces {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.surface-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.75rem 1.5rem;   /* generous inside the box */
  box-shadow: var(--shadow);
}
.surface-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
}
.surface-card .badge {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--quiet);
  color: var(--muted);
  margin-left: 0.5rem;
}

/* principles */
.principles { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.principles li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 2rem 0 1.75rem;          /* breathing room below each border-top */
  border-top: 1px solid var(--rule);
}
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principle-mark {
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.principle-name {
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

/* ─── PIPELINE ─── */
.pipeline-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0 1.5rem;
}
.pipeline-svg .node-box {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 1;
}
.pipeline-svg .node-box.input  { stroke: var(--accent); }
.pipeline-svg .node-box.engine { stroke: var(--grounded); }
.pipeline-svg .node-box.output { stroke: var(--accent); }
.pipeline-svg .node-title {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
}
.pipeline-svg .node-label {
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 13px;
  fill: var(--fg);
}
.pipeline-svg .node-sub {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  fill: var(--muted);
}
.pipeline-svg .arrow {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25;
  stroke-linecap: round;
}
.pipeline-svg .arrow-head { fill: var(--muted); }
.pipeline-svg .dot { fill: var(--grounded); opacity: 0.8; }

.pipeline-caption {
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
  margin: 0 auto;
  max-width: 36rem;
}

/* ─── DEMO / A-B ─── */
.demo {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.5rem 1rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.demo > h2 { margin-top: 0; }

.ab input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ab-tabs {
  display: grid;                  /* mobile default = full-width 2-col */
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: 1px solid var(--rule);
  margin: 0.5rem 0 1.75rem;
  background: var(--quiet);
}
.ab-tabs label {
  cursor: pointer;
  padding: 0.875rem 1.25rem;       /* skill: touch-target-size — 44px+ */
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
  border-radius: 0;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .ab-tabs label { transition: none; }
}
.ab-tabs label::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--muted);
}
.ab-tabs label[for$="-g"]::before { background: var(--grounded); }
.ab-tabs label[for$="-n"]::before { background: var(--naive); }
#ab-g:checked ~ .ab-tabs label[for="ab-g"],
#ab-n:checked ~ .ab-tabs label[for="ab-n"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.ab-tabs label:active {
  background: var(--quiet);          /* skill: press-feedback */
}
/* fixed selectors — focus indicator reaches the matching label */
#ab-g:focus-visible ~ .ab-tabs label[for="ab-g"],
#ab-n:focus-visible ~ .ab-tabs label[for="ab-n"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.ab-pane { display: none; }
#ab-g:checked ~ .ab-panes .ab-pane-g,
#ab-n:checked ~ .ab-panes .ab-pane-n { display: block; }

.stimulus-card {
  padding: 1.25rem 1.5rem;           /* breathing inside the stimulus card */
  background: var(--quiet);
  border-left: 3px solid var(--accent);
  font-style: italic;
  margin: 1rem 0 1.5rem;
  line-height: 1.55;
}
.stimulus-card strong { font-style: normal; color: var(--accent); }

.aggregate {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 42rem;                  /* skill: line-length-control */
}

/* ─── CHARTS ─── */
.chart { margin: 0.5rem 0 1.5rem; }
.chart-title {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.625rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 4rem 1fr 2.5rem;     /* mobile default */
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.bar-label {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  color: var(--fg-soft);
}
.bar-track {
  height: 0.625rem;
  background: var(--quiet);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  width: 0;
  transition: width var(--dur-slow) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
}
.in .bar-fill[data-w] { width: var(--w, 0%); }
.bar-fill[data-color="pos"] { background: var(--pos); }
.bar-fill[data-color="neu"] { background: var(--neu); }
.bar-fill[data-color="neg"] { background: var(--neg); }
.bar-fill[data-color="mix"] { background: var(--mix); }
.bar-fill[data-color="grounded"] { background: var(--grounded); }
.bar-fill[data-color="naive"] { background: var(--naive); }

/* pre-baked widths (CSP-friendly) */
.w-0   { --w:   0%; }
.w-5   { --w:   5%; }
.w-10  { --w:  10%; }
.w-12  { --w:  12.5%; }
.w-22  { --w:  22%; }
.w-29  { --w:  29.5%; }
.w-36  { --w:  36%; }
.w-37  { --w:  37.5%; }
.w-40  { --w:  40%; }
.w-46  { --w:  46%; }
.w-49  { --w:  49.1%; }
.w-50  { --w:  50%; }
.w-53  { --w:  53%; }
.w-58  { --w:  58%; }
.w-77  { --w:  77%; }
.w-89  { --w:  89%; }
.w-94  { --w:  94%; }
.w-100 { --w: 100%; }

.bar-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;            /* never wrap "2034 ch" or "$0.0092" */
}

/* ─── comparison charts (paired bars, both rows labeled) ─── */
.chart-cmp { margin: 0.5rem 0 1.5rem; }
.cmp-metric {
  margin: 0 0 1rem;
}
.cmp-metric:last-child { margin-bottom: 0; }
.cmp-metric-name {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0 0 0.375rem;
}

/* metric name as info trigger (hover/tap reveals an explanation) */
.cmp-metric-name.with-info {
  background: none;
  border: 0;
  appearance: none;
  cursor: help;
  font: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  padding: 0.125rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}
.cmp-metric-name.with-info:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.info-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.0625rem;
  height: 1.0625rem;
  border-radius: 999px;
  background: var(--quiet);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.cmp-metric-name.with-info:hover .info-glyph,
.cmp-metric-name.with-info:focus-visible .info-glyph,
.cmp-metric-name.with-info[aria-expanded="true"] .info-glyph {
  background: var(--accent);
  color: var(--accent-ink);
}

/* tooltip floats above the bars — no layout shift on open/close */
.cmp-metric { position: relative; }

.cmp-why {
  position: absolute;
  top: 2.125rem;                /* just below the metric-name button */
  left: 0;
  right: 0;
  z-index: 5;
  max-width: 38rem;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility 0s linear var(--dur-fast);
}
.cmp-why-inner > p {
  margin: 0;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--fg-soft);
  line-height: 1.55;
}
.cmp-metric-name.with-info:hover + .cmp-why,
.cmp-metric-name.with-info:focus-visible + .cmp-why,
.cmp-metric-name.with-info[aria-expanded="true"] + .cmp-why {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility 0s linear;
}
@media (prefers-reduced-motion: reduce) {
  .cmp-why, .info-glyph { transition: none; }
}
.cmp-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 4.75rem;   /* mobile-friendly value column */
  gap: 0.625rem;
  align-items: center;
  padding: 0.175rem 0;
}
.cmp-source {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.cmp-source::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--muted);
  flex-shrink: 0;
}
.cmp-row-grounded .cmp-source { color: var(--grounded); font-weight: 600; }
.cmp-row-grounded .cmp-source::before { background: var(--grounded); }
.cmp-row-naive .cmp-source { color: var(--naive); font-weight: 600; }
.cmp-row-naive .cmp-source::before { background: var(--naive); }
.cmp-hint {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.875rem;
  font-style: italic;
}

/* themes pill cluster */
.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
  list-style: none;
  padding: 0;
}
.themes li {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  background: var(--quiet);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg-soft);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .themes li { transition: none; }
}
.themes li:hover {
  background: var(--surface);
  border-color: var(--grounded);
  color: var(--fg);
  transform: translateY(-1px);
}

/* persona cards */
.personas {
  display: grid;
  grid-template-columns: 1fr;       /* mobile default */
  gap: 1rem;
  margin: 0.5rem 0 1.5rem;
  align-items: start;               /* FIX: closed cards don't stretch to row height */
}
.summary-tagline {
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  font-style: italic;
  color: var(--fg-soft);
  font-size: 0.9375rem;
  font-weight: 400;
  flex: 1 1 12rem;
  min-width: 0;
}
.persona-card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 0;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .persona-card { transition: none; }
}
.persona-card:hover {
  border-color: var(--grounded);
  transform: translateY(-1px);
}
.persona-card[open] { border-color: var(--grounded); }
.persona-card summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1rem 1rem 1.125rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  min-height: 2.875rem;             /* touch target */
  touch-action: manipulation;
}
.persona-card summary::-webkit-details-marker { display: none; }
.persona-card summary::marker { content: ""; }
.persona-card summary code {
  color: var(--grounded);
  font-weight: 700;
}
.ab-pane-n .persona-card summary code { color: var(--naive); }
.persona-card .chip {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--quiet);
  color: var(--muted);
}
.persona-card summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 1rem;
}
.persona-card[open] summary::after {
  content: "−";
  color: var(--accent);
}
.persona-card summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.persona-body {
  padding: 0.5rem 1rem 1.25rem 1.125rem;   /* breathing from summary above */
  font-size: 0.9375rem;
  line-height: 1.6;
}
.persona-body ul, .persona-body ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}
.persona-body li { margin-bottom: 0.35rem; }

/* honest footer of demo */
.demo-honest {
  margin-top: 2rem;
  padding-top: 1.5rem;              /* breathing room below dashed border */
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: italic;
  text-align: center;
  line-height: 1.7;
}

/* takeaway block */
.takeaway {
  padding: 1.5rem 1.75rem;           /* breathing inside the pull-quote */
  border-left: 3px solid var(--accent);
  background: var(--quiet);
  font-size: 1rem;
  line-height: 1.6;
  margin: 1.75rem 0;
  /* no max-width — fills the demo card width so it doesn't sit left-aligned */
}
.takeaway strong { color: var(--accent); }

/* form status message (inserted by JS after submit) */
.form-status {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;            /* breathing inside the status box */
  background: var(--quiet);
  border-left: 2px solid var(--grounded);
  color: var(--fg-soft);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ask section */
.ask {
  text-align: center;
  padding-bottom: 4rem;
}
.ask .lead {
  margin: 0 auto 1.5rem;
  font-size: 1.125rem;
}
.ask .waitlist {
  margin: 0 auto;
}

/* footer */
footer {
  border-top: 1px solid var(--rule);
  padding: clamp(4rem, 8vh, 6rem) 0 clamp(3rem, 6vh, 4.5rem);
  margin-top: 3rem;
  color: var(--muted);
  text-align: center;
}
footer p { margin: 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-mark {
  font-family: ui-serif, "New York", "Iowan Old Style", Baskerville, "Times New Roman", Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  margin: 0 0 0.25rem;
}
.footer-tagline {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 26rem;
  line-height: 1.45;
}
.footer-contact {
  font-size: 0.9375rem;
  color: var(--fg-soft);
  margin: 0;
  line-height: 1.5;
}
.footer-contact a {
  font-weight: 500;
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.footer-meta {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0;
}

/* ─── responsive (mobile-first) ─── */

/* small phone → larger phone */
@media (min-width: 32rem) {
  .wrap        { padding: 0 1.5rem; }
  section      { padding: 4.5rem 0; }
  .hero        { padding: clamp(4rem, 9dvh, 7rem) 0 clamp(3rem, 6dvh, 5rem); }
  .demo        { padding: 2rem clamp(1.25rem, 3vw, 2rem); }
  .bar-row     { grid-template-columns: 5.5rem 1fr 3rem; gap: 0.625rem; }
  .ab-tabs     { display: inline-flex; width: auto; }
}

/* phablet — stats become 3-column */
@media (min-width: 36rem) {
  .stats       { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .personas    { grid-template-columns: repeat(2, 1fr); }
  section      { padding: 5rem 0; }   /* even more breathing on bigger screens */
}

/* tablet — surfaces side-by-side */
@media (min-width: 40rem) {
  .surfaces    { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
