/* Zetta Wealth - landing page.
   ----------------------------------------------------------------------
   Dark is a deep navy lit from behind, not a neutral black; light is
   paper with the same blue kept for signal. One accent, one radius
   system, one theme at a time.

   The hero canvas draws a bundle of candidate equity curves, which is
   what a parameter sweep actually produces. It is the product's own
   imagery rather than decoration, and it responds to the pointer: curves
   near the cursor gain amplitude and brightness.

   One rule holds the type system together: if it is set in Necto Mono, a
   machine produced it. Prices, yields, sample sizes, timestamps. Never a
   word that only wants to look technical.

   Typefaces, all SIL OFL 1.1 and self-hosted (fonts/OFL.txt):
     Coconat    - Collletttivo. Flared display serif. The argument.
     Ronzino    - Collletttivo. Neo-grotesque. The prose.
     Necto Mono - Collletttivo. The machine.
   ---------------------------------------------------------------------- */

@font-face {
  font-family: 'Coconat';
  src: url('fonts/Coconat-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Coconat';
  src: url('fonts/Coconat-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ronzino';
  src: url('fonts/Ronzino-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ronzino';
  src: url('fonts/Ronzino-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ronzino';
  src: url('fonts/Ronzino-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Necto Mono';
  src: url('fonts/NectoMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* -- tokens ---------------------------------------------------------- */

:root {
  --serif: 'Coconat', 'Iowan Old Style', Georgia, serif;
  --sans: 'Ronzino', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Necto Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ground: #EBE9E2;
  --paper: #F5F3ED;
  --ink: #13161B;
  --ink-2: #474D55;
  --ink-3: #585D65;
  --rule: #C2BDB1;
  --rule-soft: #D5D1C5;

  --royal: #1F40BE;
  --royal-lift: #3559DF;
  --royal-deep: #12246E;
  --royal-wash: rgba(31, 64, 190, .10);

  --pos: #1B5E45;
  --neg: #96331F;

  /* The call to action is its own pair, not a tint of the accent: the
     accent must stay legible as text on the ground, which pushes it light
     in dark mode, and a light fill cannot carry a light label. */
  --cta-a: #3559DF;
  --cta-b: #1F40BE;
  --cta-ink: #FFFFFF;

  /* Hero canvas, read by JS. */
  --curve: 31, 64, 190;
  --curve-hot: 53, 89, 223;
  --glow: rgba(31, 64, 190, .20);

  --shell: 74rem;
  --measure: 34rem;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 3.4vw, 2.75rem);
  --step-4: clamp(2.75rem, 6.4vw, 4.75rem);
  --label: 0.6875rem;
  --small: 0.8125rem;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Stronger than the built-in curves, which are too soft to read as
     intentional. */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
}

:root[data-theme='dark'] {
  /* A saturated navy rather than a neutral near-black: the ground is lit
     by the same blue the accent is made of. */
  --ground: #04081E;
  --sunk: #02050F;
  --paper: #0B1540;
  --raise: #122058;
  --ink: #E8EBF7;
  --ink-2: #9FA9C9;
  --ink-3: #828DB2;
  --rule: #223066;
  --rule-soft: #16214C;

  --royal: #7FA0FF;
  --royal-lift: #A3BBFF;
  --royal-deep: #16265F;
  --royal-wash: rgba(127, 160, 255, .13);

  --pos: #5FD3A6;
  --neg: #F2937A;

  --cta-a: #3A63F5;
  --cta-b: #2F4FE0;
  --cta-ink: #FFFFFF;

  --curve: 90, 130, 255;
  --curve-hot: 150, 185, 255;
  --glow: rgba(30, 60, 190, .55);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A fixed wash behind everything: the light the page is lit by. It does
   not scroll, so content moves through it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 38rem at 80% -6%, var(--royal-wash), transparent 64%),
    radial-gradient(46rem 34rem at 4% 52%, var(--royal-wash), transparent 60%);
}
/* A vignette under everything. Corners fall away, the middle carries the
   light: depth the flat fill could not give on its own. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(130% 95% at 50% 12%, transparent 48%, var(--sunk));
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.018em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  padding: .75rem 1rem; background: var(--ink); color: var(--ground);
}
.skip:focus { left: 0; }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.shell.narrow { max-width: 52rem; }

/* -- motion ---------------------------------------------------------- */

html.js [data-rise] { opacity: 0; transform: translate3d(0, 1rem, 0); }
html.js [data-rise].in {
  opacity: 1;
  transform: none;
  transition:
    opacity .55s var(--ease) calc(var(--i, 0) * 60ms),
    transform .55s var(--ease) calc(var(--i, 0) * 60ms);
}

/* The headline arrives a line at a time, wiped up from its own baseline.
   The one piece of choreography on the page. */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
html.js .line > span {
  transform: translate3d(0, 106%, 0);
  transition: transform .8s var(--ease) calc(var(--i, 0) * 90ms);
}
html.js .hero.ready .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rise],
  html.js [data-rise].in,
  html.js .line > span { opacity: 1; transform: none; transition: none; }
}

/* -- masthead -------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.stuck {
  border-bottom-color: var(--rule-soft);
  background: color-mix(in srgb, var(--ground) 92%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  display: block; width: 1.55rem; height: 1.55rem;
  color: var(--royal);
  transition: transform .4s var(--ease);
}
.brand-mark.sm { width: 1.2rem; height: 1.2rem; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-word { font-family: var(--serif); font-size: 1.0625rem; white-space: nowrap; }
.brand-word em { font-style: normal; color: var(--ink-3); }

.nav-links { display: none; gap: 1.75rem; margin-left: auto; }
@media (min-width: 62rem) { .nav-links { display: flex; } }
.nav-links a {
  position: relative;
  font-size: var(--small);
  color: var(--ink-2);
  text-decoration: none;
  padding-block: .3rem;
  transition: color .2s var(--ease);
}
/* The underline grows from the left rather than fading in, so the hover
   reads as a direction and not just a state. */
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--royal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 62rem) { .nav-actions { margin-left: 1.75rem; } }
/* On a narrow phone the brand, the theme switch and two buttons do not
   fit. Log in goes: the primary action reaches the same app, and the
   footer carries a log-in link. */
@media (max-width: 27rem) { .nav-actions .btn-ghost { display: none; } }

.icon-btn {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}
.icon-btn .moon { display: none; }
:root[data-theme='dark'] .icon-btn .sun { display: none; }
:root[data-theme='dark'] .icon-btn .moon { display: block; }

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
  .icon-btn:hover { color: var(--royal); border-color: var(--royal); }
}

/* -- buttons --------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  /* Explicit, because a <button> otherwise falls back to the UA's light
     ButtonFace while inheriting near-white ink: an invisible label. The
     anchors in this class were transparent already. */
  background: transparent;
  font-family: var(--sans);
  font-size: var(--small);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .25s var(--ease), transform .13s var(--ease);
}
.btn-lg { padding: .9rem 1.75rem; font-size: var(--step-0); }
/* Instant physical feedback: the interface heard the press. */
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  color: var(--cta-ink);
  box-shadow: 0 1px 2px rgba(8, 14, 46, .28);
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%,
              rgba(255, 255, 255, .3) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn-quiet {
  /* Derived from the ink, not the page rule: this button sits on the lit
     hero as often as on flat ground, and the border is what identifies it
     as a control (3:1 minimum in both themes). */
  border-color: color-mix(in srgb, var(--ink) 50%, transparent);
  color: var(--ink);
}
.btn-ghost { color: var(--ink-2); }
.btn .arrow { transition: transform .25s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--cta-a) 80%, transparent);
  }
  .btn-primary:hover::after { transform: translateX(120%); }
  .btn-quiet:hover { border-color: var(--royal); color: var(--royal); }
  .btn-ghost:hover { color: var(--ink); }
  .btn:hover .arrow { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active, .brand:hover .brand-mark, .icon-btn:active { transform: none; }
  .btn-primary::after { display: none; }
}

/* -- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: min(92dvh, 54rem);
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 9vh, 6rem) clamp(3rem, 8vh, 5rem);
  text-align: center;
  overflow: hidden;
}

/* The canvas holds the candidate curves; the layer above it is the
   horizon glow they rise out of. Both sit behind the text and neither
   takes pointer events. */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50rem 26rem at 50% 76%, var(--glow), transparent 70%),
    radial-gradient(34rem 20rem at 50% 32%,
      color-mix(in srgb, var(--ground) 55%, transparent), transparent 72%);
}

.hero-inner { position: relative; }

.hero h1 {
  font-family: var(--serif);
  font-size: var(--step-4);
  line-height: 1.03;
  max-width: 15ch;
  margin-inline: auto;
}
.hero h1 .claim {
  background: linear-gradient(100deg, var(--royal-lift), var(--royal) 66%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.6rem auto 0;
  max-width: 42ch;
  font-size: var(--step-1);
  line-height: 1.58;
  color: var(--ink-2);
}

.hero-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  margin-top: 2.25rem;
}

/* -- tape ------------------------------------------------------------ */

.tape-band {
  position: relative;
  border-block: 1px solid var(--rule-soft);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--royal) 9%, transparent),
    transparent 28%, transparent 72%,
    color-mix(in srgb, var(--royal) 9%, transparent));
  overflow: hidden;
}
.tape-band::before, .tape-band::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: clamp(3rem, 10vw, 9rem);
  z-index: 2; pointer-events: none;
}
.tape-band::before { left: 0; background: linear-gradient(to right, var(--ground), transparent); }
.tape-band::after { right: 0; background: linear-gradient(to left, var(--ground), transparent); }

.tape-track {
  display: flex;
  width: max-content;
  padding-block: 1.2rem;
  animation: roll 70s linear infinite;
}
@keyframes roll { to { transform: translateX(-50%); } }
/* Pausing is the point of a ticker anyone might want to read. Focus
   counts too, for whoever arrives by keyboard. */
.tape-band:hover .tape-track,
.tape-band:focus-within .tape-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .tape-band { overflow-x: auto; }
}

.q {
  display: inline-flex; align-items: baseline; gap: .6rem;
  padding-inline: clamp(1.25rem, 3vw, 2.25rem);
  border-right: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: var(--small);
  white-space: nowrap;
}
.q-sym { color: var(--ink-3); letter-spacing: .04em; }
.q-last { color: var(--ink); }
.q-chg.up { color: var(--pos); }
.q-chg.down { color: var(--neg); }
.q-chg.flat { color: var(--ink-3); }
.q-stale { color: var(--ink-3); letter-spacing: .04em; }

/* -- sections -------------------------------------------------------- */

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 7rem); }
/* Every other section sits a step above the page. Same colour family, so
   the page never inverts; just enough separation to read as a stack. */
.section.lift {
  background: linear-gradient(180deg,
    transparent, color-mix(in srgb, var(--paper) 58%, transparent) 22%,
    color-mix(in srgb, var(--paper) 58%, transparent) 78%, transparent);
}
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

.sec-head { max-width: var(--measure); }
.sec-head h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.1;
  max-width: 22ch;
}
.sec-sub { margin-top: 1rem; color: var(--ink-2); line-height: 1.6; }

/* -- two ways in: split ---------------------------------------------- */

.split { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 54rem) { .split { grid-template-columns: 1fr 1fr; } }

.way {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--raise) 70%, var(--royal) 14%), var(--paper) 62%);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.way::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(18rem 18rem at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--royal) 18%, transparent), transparent 70%);
  transition: opacity .3s var(--ease);
}
.way h3 { font-family: var(--serif); font-size: var(--step-2); }
.way > p { margin-top: .7rem; color: var(--ink-2); font-size: var(--small); line-height: 1.6; }
.way-for {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: .06em;
  color: var(--royal);
  margin-bottom: .7rem;
}

/* -- cards ----------------------------------------------------------- */

.cards { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 50rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--raise) 74%, var(--royal) 12%), var(--paper) 60%);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
/* The pointer carries a soft light with it across the card. --mx/--my are
   set on pointermove; with no pointer the highlight never shows. */
.card::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--royal) 18%, transparent), transparent 70%);
  transition: opacity .3s var(--ease);
}
.card h3 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; }
.card > p { margin-top: .7rem; color: var(--ink-2); line-height: 1.6; font-size: var(--small); }

@media (hover: hover) and (pointer: fine) {
  .card:hover, .way:hover {
    border-color: color-mix(in srgb, var(--royal) 48%, var(--rule));
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -24px color-mix(in srgb, var(--royal) 90%, transparent);
  }
  .card:hover::before, .way:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .way:hover { transform: none; }
}

/* Progressive disclosure: the claim is always visible, the evidence for
   it is one click away. Rows open with grid-template-rows, the only way
   to transition to a height nobody knows in advance. */
.more { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--rule-soft); }
.more > summary {
  display: flex; align-items: center; gap: .45rem;
  padding-top: .85rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: .05em;
  color: var(--ink-3);
  transition: color .2s var(--ease);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { color: var(--royal); }
.more > summary::after {
  content: '';
  width: .42rem; height: .42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.more .reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.more[open] .reveal { grid-template-rows: 1fr; }
.more .reveal > div { overflow: hidden; }

.feat { display: grid; gap: .8rem; padding-top: 1rem; }
.feat li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--small);
  line-height: 1.55;
  color: var(--ink-2);
}
/* Positioned rather than a grid column: the item's text is a plain run
   with a <b> in it, and a grid would make each of those a separate cell. */
.feat li::before {
  content: '';
  position: absolute; left: 0; top: .72em;
  width: .7rem; height: 1px;
  background: var(--royal);
}
.feat b { color: var(--ink); font-weight: 500; }

/* -- the gap: the one loud section ----------------------------------- */

.gap { padding-block: clamp(3.5rem, 7vw, 5rem); }

.plate {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(34rem 22rem at 86% 0%, rgba(104, 146, 255, .55), transparent 66%),
    radial-gradient(46rem 34rem at 10% 106%, rgba(20, 36, 112, .9), transparent 70%),
    linear-gradient(155deg, #1D3197 6%, #0E1A57 58%, #0A1240 100%);
  color: #EEF1FF;
  /* Inverting the ground inverts what reads as a signal on it, so the
     plate carries its own accent and up/down colours. */
  --royal: #A3BBFF;
  --pos: #6FD6A8;
  --neg: #F5A48C;
}

.plate h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.06;
  max-width: 19ch;
}
.plate .sec-sub { color: rgba(238, 241, 255, .78); }
.plate .sec-head { max-width: 40rem; }

.quoted {
  font-family: var(--mono);
  font-size: var(--small);
  color: var(--royal);
  margin-bottom: 1.25rem;
}

.compare {
  display: grid;
  gap: 1px;
  margin-top: 2.75rem;
  background: rgba(238, 241, 255, .16);
  border: 1px solid rgba(238, 241, 255, .16);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 54rem) { .compare { grid-template-columns: 1fr 1fr; } }

.col { padding: 1.5rem; background: rgba(8, 16, 56, .55); }
.col-ours { background: rgba(255, 255, 255, .08); }
.col-label {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: .05em;
  color: rgba(238, 241, 255, .64);
  margin-bottom: 1rem;
}
.col-note { margin-top: 1rem; font-size: var(--small); line-height: 1.55; color: rgba(238, 241, 255, .72); }

.aside {
  margin-top: 2.5rem;
  max-width: 46rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: rgba(238, 241, 255, .86);
  border-left: 2px solid var(--royal);
  padding-left: 1.5rem;
}

/* -- tables ---------------------------------------------------------- */

.data { width: 100%; border-collapse: collapse; font-size: var(--small); }
.data th {
  font-weight: 400;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: .05em;
  color: var(--ink-3);
  text-align: left;
  padding: 0 0 .5rem;
  border-bottom: 1px solid var(--rule-soft);
}
.data td { padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data .r { text-align: right; }
.data .sub { display: block; color: var(--ink-3); font-size: var(--label); line-height: 1.45; }

.plate .data th { color: rgba(238, 241, 255, .62); border-bottom-color: rgba(238, 241, 255, .2); }
.plate .data td { border-bottom-color: rgba(238, 241, 255, .14); }
.plate .dim { color: rgba(238, 241, 255, .56); }

.band {
  display: inline-block;
  min-width: 1.7rem;
  padding: 0 .3rem;
  font-family: var(--mono);
  text-align: center;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
}
.band.low { color: var(--neg); }
.good { color: var(--pos); }
.bad { color: var(--neg); }
.scroll-x { overflow-x: auto; }

/* -- evidence -------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 54rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { padding: 1.35rem 1.35rem 1.5rem; background: var(--paper); transition: background-color .3s var(--ease); }
.stat-n {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-l { display: block; margin-top: .4rem; font-size: var(--small); color: var(--ink-3); }

.rules { margin-top: 3rem; }
.rules .data td { padding-block: .95rem; }
.rules tbody tr { transition: background-color .25s var(--ease); }
.rules .avoid td { color: var(--ink-3); }

@media (hover: hover) and (pointer: fine) {
  .stat:hover { background: color-mix(in srgb, var(--royal) 8%, var(--paper)); }
  .rules tbody tr:hover { background: var(--royal-wash); }
}

.honest {
  margin-top: 2.5rem;
  max-width: 46rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--royal);
}
.honest h3 { font-family: var(--serif); font-size: var(--step-2); }
.honest p { margin-top: .85rem; color: var(--ink-2); line-height: 1.6; font-size: var(--small); }
.honest b { color: var(--ink); font-weight: 500; }

/* -- the loop: a rail, not cards ------------------------------------- */

.rail { margin-top: 3rem; display: grid; gap: 0; }
@media (min-width: 56rem) { .rail { grid-template-columns: repeat(3, 1fr); } }

.leg { position: relative; padding: 2rem 0 0; }
@media (min-width: 56rem) { .leg { padding: 2.25rem 2rem 0 0; } }
/* The rule across the top is the rail itself; the node marks where this
   leg joins it. */
.leg::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}
.leg::after {
  content: '';
  position: absolute; top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--royal);
}
.leg h3 { font-family: var(--serif); font-size: var(--step-2); color: var(--royal); }
.leg h4 { margin-top: .5rem; font-family: var(--sans); font-size: var(--step-0); font-weight: 500; }
.leg p { margin-top: .6rem; color: var(--ink-2); line-height: 1.6; font-size: var(--small); }

/* -- safeguards: a divided list, not cards --------------------------- */

.limits { margin-top: 3rem; display: grid; gap: 0 3rem; }
@media (min-width: 56rem) { .limits { grid-template-columns: 1fr 1fr; } }
.limit { padding-block: 1.5rem; border-top: 1px solid var(--rule-soft); }
.limit h3 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; }
.limit p { margin-top: .55rem; color: var(--ink-2); line-height: 1.6; font-size: var(--small); }

/* -- faq ------------------------------------------------------------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--rule-soft); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--step-1);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--royal); }
.faq summary::after {
  content: '';
  flex: none;
  width: .55rem; height: .55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary { color: var(--royal); }
.faq details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.faq .reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq details[open] .reveal { grid-template-rows: 1fr; }
.faq .reveal > div { overflow: hidden; }
.faq .reveal p {
  max-width: 46rem;
  padding-bottom: 1.3rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: var(--small);
}

/* -- closing --------------------------------------------------------- */

.close { position: relative; padding-block: clamp(5rem, 10vw, 8rem); text-align: center; overflow: hidden; }
.close::before {
  content: '';
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40rem 22rem at 50% 104%, var(--glow), transparent 70%);
}
.close h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.08;
  max-width: 18ch;
  margin-inline: auto;
}
.close > .shell > p { margin: 1.25rem auto 0; max-width: 44ch; color: var(--ink-2); line-height: 1.6; }
.close-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

.capture {
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  max-width: 30rem;
}
.capture label { display: block; font-size: var(--small); color: var(--ink-2); }
.capture-row { display: flex; gap: .5rem; margin-top: .75rem; }
.capture input {
  flex: 1; min-width: 0;
  padding: .72rem .9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--small);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.capture input:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px var(--royal-wash);
}
.capture input::placeholder { color: var(--ink-3); }
.capture input[aria-invalid='true'] { border-color: var(--neg); }
.capture-msg { margin-top: .6rem; font-size: var(--small); min-height: 1.4em; color: var(--ink-3); }
.capture-msg.ok { color: var(--pos); }
.capture-msg.err { color: var(--neg); }

/* -- footer ---------------------------------------------------------- */

.footer { border-top: 1px solid var(--rule-soft); padding-block: 2.5rem 3rem; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 54rem) { .footer-inner { grid-template-columns: 14rem 1fr; gap: 3rem; } }
.footer-brand { display: flex; align-items: center; gap: .55rem; }
.disclaimer { font-size: var(--small); line-height: 1.6; color: var(--ink-3); max-width: 48rem; }
.copyright { margin-top: 1.5rem; font-size: var(--small); color: var(--ink-3); }
@media (min-width: 54rem) { .copyright { grid-column: 2; margin-top: 0; } }
.copyright a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.copyright a:hover { border-bottom-color: var(--royal); color: var(--royal); }
