/* ==========================================================================
   Revnote — landing page
   Tokens first. Nothing outside this colour set appears anywhere below;
   the only variations are alpha on --accent and --hairline.
   ========================================================================== */

:root {
  --surface-base: #0B0D0F;
  --surface-card: #14181C;
  --surface-elevated: #1E242A;
  --hairline: #2A3239;
  --accent: #7C5CFF;
  --text-primary: #F2F4F5;
  --text-secondary: #8B959E;
  --status-normal: #4ADE80;
  --status-attention: #FBBF24;
  --status-fault: #F87171;

  /* alpha variants of the tokens above, for fills and glows only */
  --accent-20: rgba(124, 92, 255, 0.20);
  --accent-12: rgba(124, 92, 255, 0.12);
  --accent-06: rgba(124, 92, 255, 0.06);
  --hairline-50: rgba(42, 50, 57, 0.5);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 1.25rem;
  --radius: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; }
}

/* ---------- reset ---------- */
*, *::before, *::after { 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;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure, figcaption { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
i { font-style: normal; }

/* keyboard focus: always visible, always the accent */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: 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;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--surface-base);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 22ch;
}
.display--xl {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
p { max-width: 60ch; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.lede { color: var(--text-secondary); font-size: 1.1rem; margin-top: 1rem; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--surface-base);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.35rem; border: 0; border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }

.input {
  width: 100%; min-width: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--text-secondary); opacity: 0.8; }
.input:hover { border-color: var(--text-secondary); }
.input:focus-visible { border-color: var(--accent); outline-offset: 2px; }
.input--mono, .input[type="email"] { font-family: var(--font-mono); font-size: 0.95rem; }
.input[aria-invalid="true"] { border-color: var(--status-fault); }

.form-status {
  margin-top: 0.75rem; min-height: 1.4em;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--text-secondary);
}
.form-status[data-state="success"] { color: var(--text-primary); }
.form-status[data-state="error"] { color: var(--text-primary); }
.form-status[data-state="success"]::before,
.form-status[data-state="error"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 0.55rem; vertical-align: 2px; background: var(--accent);
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-head__row {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 3.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-primary); }
.brand__mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

.site-nav { display: none; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
.site-nav a:hover { color: var(--text-primary); }
.site-head .btn { margin-left: auto; }
@media (min-width: 800px) {
  .site-nav { display: flex; }
  .site-head .btn { margin-left: 0; }
}

/* ---------- section rhythm ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--hairline); }
section:last-of-type { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
}
.hero__sub { color: var(--text-secondary); font-size: 1.1rem; margin: 1.25rem 0 1.75rem; max-width: 46ch; }
.hero__note { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); max-width: 44ch; }

.capture { display: flex; gap: 0.6rem; max-width: 30rem; }
.capture .input { flex: 1 1 auto; }
@media (max-width: 520px) { .capture { flex-direction: column; } }

/* ---------- the trace ---------- */
.trace {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.9rem;
  box-shadow: 0 30px 80px -40px rgba(124, 92, 255, 0.25);
  min-width: 0;
}
.trace__bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--hairline);
}
.trace__title { display: inline-flex; align-items: center; gap: 0.5rem; }
.trace__live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.trace__clock { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.trace__clock #traceElapsed { color: var(--text-primary); }
.trace__sep { margin: 0 0.35rem; }

.trace__charts { position: relative; padding-top: 0.5rem; }
.trace__row { position: relative; height: 72px; }
.trace__row + .trace__row { border-top: 1px solid var(--hairline-50); }
.trace__chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace__base { stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trace__line { fill: none; stroke: var(--accent); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.trace__fill { fill: var(--accent-12); stroke: none; }
.trace__charts.is-fading .trace__line,
.trace__charts.is-fading .trace__fill { transition: opacity 0.45s ease; opacity: 0; }

.trace__readout {
  position: absolute; top: 8px; left: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.trace__name { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.trace__value { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); min-width: 4.5ch; }

.trace__playhead {
  position: absolute; top: 0.5rem; bottom: 0; left: 0; width: 1px; z-index: 1;
  background: var(--text-primary); opacity: 0.35; pointer-events: none;
  /* moved with translate3d, not left, so it animates on the compositor */
  will-change: transform;
}
.trace__playhead::after {
  content: ""; position: absolute; bottom: -3px; left: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.trace__axis {
  position: relative; height: 1.2rem; margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.trace__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.trace__axis span:first-child { transform: none; }
.trace__axis span:last-child { transform: translateX(-100%); }

.trace__foot {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem;
  margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.trace__foot span { white-space: nowrap; }
.trace__foot b { font-weight: 500; color: var(--text-primary); }

@media (max-width: 420px) {
  .trace { padding: 0.75rem 0.75rem; }
  .trace__row { height: 64px; }
}

/* ---------- story + insight card ---------- */
.story__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
}
.story__text p + p { margin-top: 1rem; }
.story__text .display { margin-bottom: 1.5rem; }
.story__text p { color: var(--text-secondary); font-size: 1.05rem; }
.story__text p:first-of-type { color: var(--text-primary); }

.insight {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.insight::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--status-attention);
}
.insight__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 1.1rem;
}
.insight__state { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-primary); }
.insight__dot { width: 7px; height: 7px; border-radius: 50%; }
.insight__state[data-state="attention"] .insight__dot { background: var(--status-attention); }
.insight__state[data-state="normal"] .insight__dot { background: var(--status-normal); }
.insight__state[data-state="fault"] .insight__dot { background: var(--status-fault); }

.insight__headline { font-size: 1.2rem; line-height: 1.35; max-width: 28ch; }
.insight__figure {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: 1.1rem 0 1rem; padding: 1rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.insight__value {
  font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.03em;
}
.insight__unit { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-secondary); }
.insight__body { color: var(--text-secondary); font-size: 0.98rem; }
.insight__foot {
  margin-top: 1rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* ---------- what it does ---------- */
.does__intro { margin-bottom: 2.5rem; }
.cap { border-top: 1px solid var(--hairline); }
.cap__item {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.5rem 1rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--hairline);
}
@media (min-width: 720px) {
  .cap__item { grid-template-columns: 5rem minmax(0, 1fr); padding: 1.9rem 0; }
}
.cap__index { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); padding-top: 0.25rem; font-variant-numeric: tabular-nums; }
.cap__body p { color: var(--text-secondary); margin-top: 0.45rem; max-width: 62ch; }
.cap__reads {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--text-secondary); margin-top: 0.7rem !important;
}
.cap__reads span { text-transform: uppercase; letter-spacing: 0.1em; margin-right: 0.5rem; color: var(--accent); }

/* ---------- dyno ---------- */
.dyno__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .dyno__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; }
}
.dyno__text .display { margin-bottom: 1.5rem; }
.dyno__text p { color: var(--text-secondary); font-size: 1.05rem; }
.dyno__text p + p { margin-top: 1rem; }

.dynochart {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.9rem;
  min-width: 0;
}
.dynochart__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); padding-bottom: 0.75rem; border-bottom: 1px solid var(--hairline);
}
.dynochart__bar #dynoVehicle { color: var(--text-primary); }
.dynochart__meta { display: inline-flex; gap: 1rem; }
.dynochart__meta span:empty { display: none; }

.dynochart__peaks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0 0.5rem; }
.peak { display: flex; flex-direction: column; gap: 0.15rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.peak__label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.peak__value { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.peak__unit { font-size: 0.75rem; font-weight: 400; margin-left: 0.4rem; color: var(--text-secondary); letter-spacing: 0.05em; }
.peak__at { font-size: 0.75rem; color: var(--text-secondary); }
.peak__at span { color: var(--text-primary); }

.dynochart__svg { width: 100%; height: auto; margin-top: 0.25rem; }
.dynochart__grid line { stroke: var(--hairline); stroke-width: 1; }
.dynochart__grid text, .dynochart__axis text {
  font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-secondary);
}
.dynochart__axis line { stroke: var(--hairline); stroke-width: 1; }
.dynochart__band { fill: var(--accent-20); stroke: none; opacity: 0; transition: opacity 0.7s ease 0.8s; }
@media (max-width: 600px) {
  .dynochart__grid text, .dynochart__axis text { font-size: 17px; }
}
.dynochart__hp { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.dynochart__tq { fill: none; stroke: var(--text-secondary); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; opacity: 0.9; }
.js .dynochart__hp, .js .dynochart__tq { transition: stroke-dashoffset 1.7s var(--ease-out); }
.js .dynochart__tq { transition-delay: 0.15s; }
.dynochart.is-drawn .dynochart__band { opacity: 1; }

.dynochart__legend {
  display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary);
}
.legend { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend__swatch { width: 16px; height: 2px; background: var(--accent); }
.legend__swatch--tq { background: repeating-linear-gradient(90deg, var(--text-secondary) 0 4px, transparent 4px 8px); }
.legend__swatch--band { height: 8px; background: var(--accent-20); }

/* ---------- price ---------- */
.price { text-align: center; }
.price__inner { display: flex; flex-direction: column; align-items: center; }
.price__amount {
  font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(2.8rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.03em;
  display: inline-flex; align-items: baseline;
}
.price__ccy { font-size: 0.42em; color: var(--text-secondary); letter-spacing: 0.02em; margin-right: 0.15em; }
.price__ccy--after { margin: 0 0 0 0.35em; }
.price__dash { color: var(--text-secondary); margin: 0 0.05em; font-weight: 400; }
.price__line { margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; max-width: 40ch; }

/* ---------- faq ---------- */
.faq__intro { margin-bottom: 2.5rem; }
.faq__list { border-top: 1px solid var(--hairline); }
.faq__item { padding: 1.75rem 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 860px) {
  .faq__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
}
.faq__q { font-size: 1.125rem; max-width: 26ch; }
.faq__a { color: var(--text-secondary); max-width: 62ch; }
.faq__item .faq__a:first-of-type { margin-top: 0.6rem; }
@media (min-width: 860px) {
  .faq__item .faq__a:first-of-type { margin-top: 0; }
}
.faq__a + .faq__a { margin-top: 0.8rem; }

/* ---------- waitlist ---------- */
.waitlist__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .waitlist__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
}
.waitlist__text .display { margin-bottom: 1.25rem; }
.waitlist__text p { color: var(--text-secondary); font-size: 1.05rem; }
.waitlist__text p + p { margin-top: 1rem; }
.waitlist__text p:first-of-type { color: var(--text-primary); }

.wl { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1.2fr 1.2fr 0.8fr; } }
.field-hint { font-size: 0.85rem; color: var(--text-secondary); margin-top: -0.3rem; }
.wl .btn { align-self: flex-start; margin-top: 0.25rem; }
.wl .form-status { margin-top: -0.4rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hairline); padding: 2rem 0 2.5rem; }
.site-foot__row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.site-foot__meta { display: flex; flex-direction: column; gap: 0.35rem; }
.site-foot__line { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; max-width: none; }
.site-foot__address { font-style: normal; }
.site-foot__sep { margin: 0 0.45rem; }
.site-foot__link {
  color: var(--text-primary);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}
.site-foot__link:hover { border-color: var(--accent); }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot__nav a { color: var(--text-secondary); font-size: 0.85rem; transition: color 0.15s ease; }
.site-foot__nav a:hover { color: var(--text-primary); }
@media (min-width: 640px) {
  .site-foot__meta { text-align: right; }
}

/* ---------- legal pages ---------- */
.legal { padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(4rem, 9vw, 6rem); border-bottom: 0; }
.legal__head { margin-bottom: 2.5rem; }
.legal__meta {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin-top: 1.1rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary);
}
.legal__summary {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  max-width: 68ch;
}
.legal__summary p { color: var(--text-secondary); }
.legal__summary p + p { margin-top: 0.7rem; }
.legal__summary strong { color: var(--text-primary); font-weight: 600; }

.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em;
  margin: 2.75rem 0 0.9rem; scroll-margin-top: 5rem;
}
.prose h3 { margin: 1.75rem 0 0.55rem; font-size: 1.02rem; }
.prose p { color: var(--text-secondary); max-width: 68ch; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.65rem; }
.prose li { position: relative; padding-left: 1.35rem; color: var(--text-secondary); max-width: 68ch; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 6px; height: 1px; background: var(--accent);
}
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a { color: var(--text-primary); border-bottom: 1px solid var(--hairline); transition: border-color 0.15s ease; }
.prose a:hover { border-color: var(--accent); }
.prose .mono { color: var(--text-primary); }

.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
.prose table { width: 100%; min-width: 30rem; border-collapse: collapse; }
.prose th, .prose td {
  text-align: left; vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary); font-size: 0.92rem;
}
.prose th {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary);
  border-bottom-color: var(--text-secondary);
}
.prose td:first-child { color: var(--text-primary); }

/* ---------- reveal on scroll ----------
   Only when JS is present, so a no-script visit sees everything at once. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* the insight card assembles: headline, then figure, then body */
.js .insight .insight__head,
.js .insight .insight__headline,
.js .insight .insight__figure,
.js .insight .insight__body,
.js .insight .insight__foot {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.6s var(--ease-out);
}
.js .insight.is-in .insight__head     { opacity: 1; transform: none; transition-delay: 0.15s; }
.js .insight.is-in .insight__headline { opacity: 1; transform: none; transition-delay: 0.35s; }
.js .insight.is-in .insight__figure   { opacity: 1; transform: none; transition-delay: 0.7s; }
.js .insight.is-in .insight__body     { opacity: 1; transform: none; transition-delay: 1.0s; }
.js .insight.is-in .insight__foot     { opacity: 1; transform: none; transition-delay: 1.25s; }

/* ---------- reduced motion: everything lands instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .insight .insight__head, .js .insight .insight__headline,
  .js .insight .insight__figure, .js .insight .insight__body, .js .insight .insight__foot {
    opacity: 1; transform: none;
  }
  .dynochart__band { opacity: 1; }
  .trace__live { opacity: 1; }
}
