/* Tokens: Eva's live palette, copied from eva/src/eva-design/tokens.css (branch `willem`).
   Light is the base, as in the app. Dark is applied by [data-theme='dark'] on <html>, written by the
   toggle in the nav, and falls back to light when nothing is stored.
   Cobalt is interaction only. Verdict colours state results and nothing else. */
:root {
  color-scheme: light;
  --ground: #fbfbfc;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunken: #f4f5f7;
  --line: #e2e6ec;
  --line-soft: #edeff3;

  --ink: #11161d;
  --ink-muted: #5a6675;
  --ink-faint: #687181;

  --accent: #0b4fb8;
  --accent-hover: #09429c;
  --accent-press: #073583;
  --on-accent: #f6f9ff;
  --accent-wash: rgba(11, 79, 184, 0.09);
  --accent-edge: rgba(11, 79, 184, 0.3);

  --pass: #0f8a54;
  --pass-ink: #0b6f43;
  --pass-wash: rgba(15, 138, 84, 0.1);
  --fail: #c8232a;
  --fail-ink: #a81c22;
  --fail-wash: rgba(200, 35, 42, 0.09);
  --thr: #73767d;
  --thr-ink: #5c5f66;
  --thr-wash: rgba(115, 118, 125, 0.1);
  --parked: #9aa4b1;
  --parked-ink: #78828f;
  --parked-wash: rgba(154, 164, 177, 0.13);

  --edge-highlight: inset 0 0 0 0 transparent;
  --sheen: linear-gradient(180deg, rgba(19, 27, 40, 0.016) 0%, rgba(19, 27, 40, 0) 140px);
  --glow-accent: 0 0 0 1px rgba(11, 79, 184, 0.18), 0 6px 18px -8px rgba(11, 79, 184, 0.4);
  --shadow-sm: 0 1px 2px rgba(19, 27, 40, 0.06);
  --shadow-md: 0 4px 14px rgba(19, 27, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(19, 27, 40, 0.12);

  /* Site-only: atmosphere and code. */
  --nav-bg: rgba(251, 251, 252, 0.78);
  --glow-top: rgba(11, 79, 184, 0.10);
  --glow-left: rgba(15, 138, 84, 0.05);
  --glow-right: rgba(11, 79, 184, 0.06);
  --grid-opacity: 0.9;
  --row-sel: rgba(11, 79, 184, 0.045);
  --syn-text: #25303d;
  --syn-c: #687181;
  --syn-k: #7c3aed;
  --syn-s: #0b6f43;
  --syn-f: #0b4fb8;

  --font-ui: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-data: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --page: 1160px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ground: #0e1116;
  --surface: #151a21;
  --raised: #1b222b;
  --sunken: #0a0d11;
  --line: #252d38;
  --line-soft: #1d242d;

  --ink: #e9edf2;
  --ink-muted: #98a4b3;
  --ink-faint: #798494;

  --accent: #5b9bff;
  --accent-hover: #7db1ff;
  --accent-press: #3f82e8;
  --on-accent: #0a1020;
  --accent-wash: rgba(91, 155, 255, 0.14);
  --accent-edge: rgba(91, 155, 255, 0.38);

  --pass: #3ecf8e;
  --pass-ink: #74e0ad;
  --pass-wash: rgba(62, 207, 142, 0.14);
  --fail: #e5484d;
  --fail-ink: #ff8085;
  --fail-wash: rgba(229, 72, 77, 0.14);
  --thr: #96999e;
  --thr-ink: #b0b2b7;
  --thr-wash: rgba(150, 153, 158, 0.13);
  --parked: #4d5765;
  --parked-ink: #6a7686;
  --parked-wash: rgba(77, 87, 101, 0.13);

  --edge-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 140px);
  --glow-accent: 0 0 0 1px rgba(91, 155, 255, 0.22), 0 6px 22px -6px rgba(91, 155, 255, 0.45);
  --shadow-sm: 0 1px 2px rgba(4, 6, 9, 0.5);
  --shadow-md: 0 4px 14px rgba(4, 6, 9, 0.5);
  --shadow-lg: 0 16px 40px rgba(4, 6, 9, 0.62);

  --nav-bg: rgba(14, 17, 22, 0.72);
  --glow-top: rgba(91, 155, 255, 0.20);
  --glow-left: rgba(62, 207, 142, 0.07);
  --glow-right: rgba(91, 155, 255, 0.10);
  --grid-opacity: 0.5;
  --row-sel: rgba(91, 155, 255, 0.06);
  --syn-text: #c6ceda;
  --syn-c: #798494;
  --syn-k: #c792ea;
  --syn-s: #a5d6a7;
  --syn-f: #82aaff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--font-data); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--accent); border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }

/* Logo mark follows the theme. */
.logo rect { fill: var(--accent); }
.logo path { stroke: var(--on-accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
/* The name inside running text, set like the wordmark in the nav: lowercase, semibold, full ink. */
.wordmark { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.brand small { font-weight: 500; font-size: 13px; color: var(--ink-faint); letter-spacing: 0; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.theme-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.theme-btn .moon { display: block; } .theme-btn .sun { display: none; }
:root[data-theme='dark'] .theme-btn .moon { display: none; }
:root[data-theme='dark'] .theme-btn .sun { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 9px;
  font: 600 14.5px/1 var(--font-ui);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { color: var(--ink-muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink-faint); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15.5px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 0; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto 0; height: 820px; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--glow-top) 0%, transparent 70%),
    radial-gradient(30% 30% at 18% 22%, var(--glow-left) 0%, transparent 70%),
    radial-gradient(30% 30% at 84% 26%, var(--glow-right) 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -64px 0 auto 0; height: 820px; z-index: -1; opacity: var(--grid-opacity);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
}
.pill-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--ink-muted); margin-bottom: 28px;
}
.pill-link b { white-space: nowrap; background: var(--accent-wash); color: var(--accent); font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.pill-link:hover { color: var(--ink); border-color: var(--ink-faint); }
h1 {
  font-size: clamp(42px, 7.2vw, 84px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 auto; max-width: 15ch;
}
h1 .soft { color: var(--ink-faint); }
.lede { max-width: 620px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-muted); line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.install-chip {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  font: 500 14px var(--font-data); color: var(--ink-muted); cursor: pointer;
}
.install-chip span.p { color: var(--ink-faint); }
.install-chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.copy-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--sunken); color: var(--ink-muted); }

/* ---------- Product window ---------- */
.window {
  margin: 72px auto 0; max-width: 1080px; text-align: left;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--sheen), var(--surface);
  box-shadow: var(--edge-highlight), var(--shadow-lg);
  overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-muted); background: var(--sunken); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--ink-faint); }
.tag { font: 500 11.5px var(--font-data); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-muted); background: var(--surface); white-space: nowrap; }
.tag.frozen { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-wash); }
.win-bar .right { margin-left: auto; display: flex; gap: 8px; }

.win-body { display: grid; grid-template-columns: 196px 1fr; min-height: 420px; }
.side { border-right: 1px solid var(--line-soft); padding: 14px 10px; font-size: 13.5px; color: var(--ink-muted); background: var(--ground); }
.side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); padding: 12px 10px 6px; }
.side a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; }
.side a.on { background: var(--accent-wash); color: var(--accent); font-weight: 500; }
.side a .n { margin-left: auto; font: 500 11px var(--font-data); color: var(--ink-faint); }
.side svg { flex: none; opacity: .85; }

.main { padding: 18px 20px 20px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 11px 13px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font: 600 22px/1.2 var(--font-ui); margin-top: 4px; letter-spacing: -0.01em; }
.stat .v small { font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.stat .v.pass { color: var(--pass-ink); } .stat .v.fail { color: var(--fail-ink); }

.matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.matrix th { text-align: left; font-weight: 500; color: var(--ink-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix tr.sel td { background: var(--row-sel); }
.req { color: var(--ink); line-height: 1.35; }
.req .id { font: 500 11.5px var(--font-data); color: var(--ink-faint); display: block; margin-bottom: 2px; }
.uxid { font: 400 12px var(--font-data); color: var(--accent); white-space: nowrap; }

.verdict { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--font-ui); padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; }
.verdict i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.v-pass { background: var(--pass-wash); color: var(--pass-ink); } .v-pass i { background: var(--pass); }
.v-fail { background: var(--fail-wash); color: var(--fail-ink); } .v-fail i { background: var(--fail); }
.v-thr { background: var(--thr-wash); color: var(--thr-ink); } .v-thr i { border: 1.6px solid var(--thr); }
.v-park { background: var(--parked-wash); color: var(--parked-ink); } .v-park i { border: 1.6px dashed var(--parked-ink); }

/* interval: track, threshold tick, interval bar, point */
.ci { position: relative; width: 132px; height: 20px; }
.ci .track { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); border-radius: 2px; }
.ci .bar { position: absolute; top: 6px; height: 8px; border-radius: 4px; opacity: .32; }
.ci .pt { position: absolute; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--surface); }
.ci .thr { position: absolute; top: 1px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink-muted); border-radius: 1px; }
.ci.pass .bar, .ci.pass .pt { background: var(--pass); }
.ci.fail .bar, .ci.fail .pt { background: var(--fail); }
.ci.thr .bar, .ci.thr .pt { background: var(--thr); }
.ci-val { font: 500 12px var(--font-data); color: var(--ink-muted); white-space: nowrap; }
.ci-val b { color: var(--ink); font-weight: 600; }

/* ---------- Loop strip ---------- */
.strip { padding: 88px 0 24px; text-align: center; }
.eyebrow { font: 600 12.5px var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.strip .eyebrow { color: var(--ink-faint); }
.steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; margin-top: 22px; }
.step { font: 500 14px var(--font-data); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); background: var(--surface); box-shadow: var(--shadow-sm); }
.step.hot { color: var(--accent); border-color: var(--accent-edge); background: var(--accent-wash); box-shadow: none; }
.arrow { color: var(--ink-faint); font-size: 14px; }

/* ---------- Feature rows ---------- */
section.feat { padding: 110px 0 0; }
.row { display: grid; grid-template-columns: 1fr 1.12fr; gap: 72px; align-items: center; }
.row.flip .copy { order: 2; }
.copy h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.06; letter-spacing: -0.028em; margin: 14px 0 20px; font-weight: 700; }
.copy p { color: var(--ink-muted); margin: 0 0 14px; max-width: 46ch; }
.copy p strong { color: var(--ink); font-weight: 600; }
.copy code { font-size: .88em; background: var(--sunken); border: 1px solid var(--line-soft); padding: 1px 5px; border-radius: 5px; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-muted); font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px; background: var(--accent-wash); }
.checks li::after { content: ""; position: absolute; left: 6.5px; top: 6.5px; width: 4px; height: 8px; border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

.panel {
  position: relative; border-radius: 18px; border: 1px solid var(--line);
  background: var(--sheen), var(--surface);
  padding: 22px; overflow: hidden;
  box-shadow: var(--edge-highlight), var(--shadow-md);
}
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, var(--accent-wash), transparent 70%); opacity: .6; pointer-events: none; }
.panel > * { position: relative; }

/* code */
.code { font: 400 13.5px/1.75 var(--font-data); color: var(--syn-text); overflow-x: auto; white-space: pre; margin: 0; }
.code .c { color: var(--syn-c); } .code .k { color: var(--syn-k); } .code .s { color: var(--syn-s); } .code .f { color: var(--syn-f); }
.code .hl { display: inline-block; background: var(--accent-wash); border: 1px solid var(--accent-edge); color: var(--accent); border-radius: 5px; padding: 0 6px; margin: 0 -7px; }
.panel .code { background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 11px; padding: 14px 16px; }
.file-tab { display: flex; gap: 8px; align-items: center; font: 500 12.5px var(--font-data); color: var(--ink-muted); margin-bottom: 12px; }
.file-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.trace-link { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; }
.trace-link .lbl { font: 500 11.5px var(--font-data); color: var(--ink-faint); }
.trace-link .r { margin-left: auto; }

/* tree */
.tree { display: grid; gap: 10px; font-size: 14px; }
.node { padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center; }
.node .lv { font: 500 11px var(--font-data); color: var(--ink-faint); width: 88px; flex: none; text-transform: uppercase; letter-spacing: .06em; }
.node.d1 { margin-left: 22px; } .node.d2 { margin-left: 44px; } .node.d3 { margin-left: 66px; }
.node .srcb { margin-left: auto; font: 500 11.5px var(--font-data); color: var(--ink-muted); background: var(--sunken); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.node.crit { flex-wrap: wrap; row-gap: 4px; }
.node.crit .meta { flex-basis: 100%; padding-left: 100px; font: 500 12px var(--font-data); color: var(--ink-muted); }
.node.crit .meta b { color: var(--ink); font-weight: 600; }
.freeze { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font: 500 12.5px var(--font-data); color: var(--ink-muted); padding: 12px 14px; border-radius: 11px; border: 1px dashed var(--accent-edge); background: var(--accent-wash); }
.freeze b { color: var(--accent); font-weight: 600; }

/* collect */
.collect { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 16px; box-shadow: var(--shadow-sm); }
.card h4 { margin: 0 0 4px; font-size: 12px; font-family: var(--font-data); font-weight: 500; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; }
.probe-q { font-size: 15px; font-weight: 600; margin: 12px 0 14px; line-height: 1.35; }
.scale { display: flex; gap: 6px; }
.scale span { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font: 500 13px var(--font-data); color: var(--ink-muted); }
.scale span.on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.scale-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); margin-top: 7px; }
.judge-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-muted); }
.judge-row:last-child { border-bottom: 0; }
.judge-row b { font: 600 14px var(--font-data); color: var(--ink); }
.judge-row b.pass { color: var(--pass-ink); }
.mode-note { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-muted); padding: 12px 14px; border-radius: 11px; background: var(--sunken); border: 1px solid var(--line-soft); }
.mode-note .tag { color: var(--ink); }

/* PR */
.pr-head { display: flex; gap: 12px; align-items: flex-start; }
.pr-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--pass-wash); color: var(--pass); }
.pr-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.pr-meta { font: 400 12.5px var(--font-data); color: var(--ink-faint); margin-top: 4px; }
.pr-rows { margin: 18px 0 0; display: grid; gap: 8px; }
.pr-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.pr-row .diff { font: 500 12px var(--font-data); white-space: nowrap; }
.diff .a { color: var(--pass-ink); } .diff .d { color: var(--fail-ink); }
.ci-box { margin-top: 16px; border-radius: 11px; border: 1px solid var(--line); overflow: hidden; }
.ci-line { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; color: var(--ink-muted); border-bottom: 1px solid var(--line-soft); background: var(--sunken); }
.ci-line:last-child { border-bottom: 0; }
.ci-line .ok { color: var(--pass); }
.ci-line .t { margin-left: auto; font: 400 12px var(--font-data); color: var(--ink-faint); }
.merge { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-muted); }

/* ---------- Loop diagram ---------- */
.loop-sec { padding: 140px 0 0; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto; }
.center-head h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.03em; margin: 14px 0 18px; font-weight: 700; }
.center-head p { color: var(--ink-muted); margin: 0 auto; max-width: 56ch; font-size: 18px; }
.waves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.wave { border: 1px solid var(--line); background: var(--sheen), var(--surface); border-radius: 14px; padding: 18px 20px; box-shadow: var(--edge-highlight), var(--shadow-sm); }
.wave-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wave-top b { font-size: 15px; }
.wave-top .tag { margin-left: auto; }
.bars { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.bars i { height: 26px; border-radius: 5px; display: block; }
.bars .p { background: var(--pass); } .bars .f { background: var(--fail); }
.bars .t { background: transparent; border: 1.6px solid var(--thr); } .bars .k { background: transparent; border: 1.6px dashed var(--parked); }
.wave-foot { margin-top: 10px; font: 500 12.5px var(--font-data); color: var(--ink-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.wave-foot .up { color: var(--pass-ink); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; justify-content: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- The loop: eva/src/eva-design/Loop.tsx rendered to static SVG, styled by the app's own
   loop.css below. Its --ds-* names are mapped onto this page's tokens here, so both themes follow. */
.loop-stage { margin-top: 56px; border: 1px solid var(--line); border-radius: 18px; background: var(--sheen), var(--surface); box-shadow: var(--edge-highlight), var(--shadow-md); padding: 40px 32px 28px; }
.ds-loop {
  --ds-ground: var(--surface); --ds-surface: var(--surface); --ds-sunken: var(--sunken);
  --ds-line: var(--line); --ds-line-soft: var(--line-soft);
  --ds-ink: var(--ink); --ds-ink-muted: var(--ink-muted); --ds-ink-faint: var(--ink-faint);
  --ds-accent: var(--accent); --ds-pass: var(--pass); --ds-fail: var(--fail); --ds-threshold: var(--thr); --ds-parked: var(--parked);
  --ds-font-ui: var(--font-ui);
  --ds-text-xs: 12px; --ds-text-sm: 13px; --ds-text-base: 15px; --ds-text-lg: 18px; --ds-text-xl: 22px;
  --ds-weight-regular: 400; --ds-weight-medium: 500; --ds-weight-semibold: 600;
  --ds-space-2: 8px; --ds-space-3: 12px; --ds-space-4: 16px; --ds-radius-md: 11px; --ds-radius-lg: 14px;
  --ds-ease: cubic-bezier(0.2, 0, 0.13, 1); --ds-dur-fast: 110ms; --ds-dur: 190ms;
  --ds-phase-1: #0e8c86; --ds-phase-2: #6f42d6; --ds-phase-3: #c2367e; --ds-phase-4: #a0522d;
}
:root[data-theme='dark'] .ds-loop { --ds-phase-1: #3ec9c1; --ds-phase-2: #a78bfa; --ds-phase-3: #f472b6; --ds-phase-4: #e08a5a; }
.ds-hue-phase-1 { --ds-hue: var(--ds-phase-1); } .ds-hue-phase-2 { --ds-hue: var(--ds-phase-2); }
.ds-hue-phase-3 { --ds-hue: var(--ds-phase-3); } .ds-hue-phase-4 { --ds-hue: var(--ds-phase-4); }
.loop-stage .ds-loop-floor { max-height: 460px; margin: 0 auto; }
.ds-loop .ds-icon { width: 1em; height: 1em; }
.ds-loop .ds-icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ---- Loop ----------------------------------------------------------------------------------------
 * Four planes on an isometric floor, on the page's own surface: not the dark canvas, which means
 * "the business" and belongs to the map. The planes are neutral paper with a rim in the part's hue;
 * the bridges are beds on the floor with the path drawn along them, solid where the iteration has
 * been and dashed where it has yet to go. */
.ds-loop {
  width: 100%;
}

.ds-loop-floor {
  display: block;
  width: 100%;
  height: auto;
  /* About 300px at 1440 wide: a status panel above the matrix, not the page (round 3). The words
   * are sized one step up in viewBox units so they still read at 13 to 15px at this height. */
  max-height: 320px;
  overflow: visible;
  font-family: var(--ds-font-ui);
}

.ds-loop-bridge-bed {
  fill: var(--ds-sunken);
  stroke: var(--ds-line);
  stroke-width: 1;
}

.ds-loop-bridge line {
  stroke: var(--ds-ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.ds-loop-bridge .ds-loop-path:not(.is-crossed),
.ds-loop-bridge .ds-loop-path.is-return {
  stroke: var(--ds-ink-faint);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

/* The transition in progress: heavier, and moving slowly toward where it is going. */
.ds-loop-bridge .ds-loop-path.is-live {
  stroke: var(--ds-ink);
  stroke-width: 3;
  stroke-dasharray: 10 6;
  animation: ds-loop-flow 2.4s linear infinite;
}

@keyframes ds-loop-flow {
  to {
    stroke-dashoffset: -32;
  }
}

.ds-loop-plane {
  cursor: default;
  outline: none;
  transition: transform var(--ds-dur) var(--ds-ease);
}

.ds-loop-plane:hover,
.ds-loop-plane:focus-visible {
  transform: translateY(-5px);
}

.ds-loop-top {
  fill: var(--ds-surface);
  stroke: var(--ds-line);
  stroke-width: 1;
  transition: stroke var(--ds-dur-fast) var(--ds-ease);
}

.ds-loop-plane:hover .ds-loop-top {
  stroke: var(--ds-ink-faint);
}

/* Where the iteration stands: the plane tinted in its part's hue and outlined in it (round 3). The
 * one place a part's hue fills anything; everywhere else it is a line or an icon. */
.ds-loop-plane.is-here .ds-loop-top {
  fill: color-mix(in srgb, var(--ds-hue) 10%, var(--ds-surface));
  stroke: var(--ds-hue);
  stroke-width: 1.5;
}

.ds-loop-plane:focus-visible .ds-loop-top {
  stroke: var(--ds-accent);
  stroke-width: 2;
}

.ds-loop-side {
  stroke: var(--ds-line);
  stroke-width: 1;
}

.ds-loop-side.is-left {
  fill: var(--ds-sunken);
}

.ds-loop-side.is-right {
  fill: var(--ds-line-soft);
}

/* The rim along the two front edges: the part's hue as a line, never as a bed. */
.ds-loop-rim {
  fill: none;
  stroke: var(--ds-hue);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* A finished iteration, as a thin sheet under the plane. */
.ds-loop-sheet polygon {
  fill: var(--ds-sunken);
  stroke: var(--ds-line);
  stroke-width: 1;
}

/* A part's words belong to its plane: a click on them opens it too. */
.ds-loop-words {
  cursor: default;
}

.ds-loop-icon path {
  fill: none;
  stroke: var(--ds-hue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-loop-name {
  fill: var(--ds-ink);
  font-size: var(--ds-text-xl);
  font-weight: var(--ds-weight-regular);
}

.ds-loop-words.is-here .ds-loop-name {
  font-weight: var(--ds-weight-semibold);
}

/* Proportional type, never the data face (round 3): these are sentences about state. */
.ds-loop-figure {
  fill: var(--ds-ink);
  font-size: var(--ds-text-lg);
  font-variant-numeric: tabular-nums;
}

/* The second line wears the part's hue: which part the sentence is about, said twice. */
.ds-loop-detail {
  fill: var(--ds-hue);
  font-size: var(--ds-text-lg);
}

.ds-loop-center {
  pointer-events: none;
}

.ds-loop-center-label {
  fill: var(--ds-ink-muted);
  font-size: var(--ds-text-base);
}

.ds-loop-center-word {
  fill: var(--ds-ink);
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-semibold);
  paint-order: stroke;
  stroke: var(--ds-ground);
  stroke-width: 4px;
  stroke-linejoin: round;
}

/* The miniatures. Neutral ink, except the matrix's rows, which are results and wear the verdicts. */
.ds-loop-mini-scatter circle {
  fill: var(--ds-ink-faint);
}

.ds-loop-mini-tiles polygon,
.ds-loop-mini-stack polygon {
  fill: var(--ds-sunken);
  stroke: var(--ds-ink-faint);
  stroke-width: 1;
}

.ds-loop-mini-stack polygon.is-shipped {
  fill: var(--ds-ink-faint);
}

.ds-loop-mini-rows polygon {
  stroke-width: 1;
}

.ds-loop-mini-rows .is-pass polygon {
  fill: var(--ds-pass);
  stroke: var(--ds-pass);
}

.ds-loop-mini-rows .is-fail polygon {
  fill: var(--ds-fail);
  stroke: var(--ds-fail);
}

.ds-loop-mini-rows .is-fail line {
  stroke: var(--ds-surface);
  stroke-width: 1.5;
}

.ds-loop-mini-rows .is-at-threshold polygon {
  fill: var(--ds-surface);
  stroke: var(--ds-threshold);
}

.ds-loop-mini-rows .is-at-threshold polygon.is-half {
  fill: var(--ds-threshold);
}

.ds-loop-mini-rows .is-parked polygon {
  fill: none;
  stroke: var(--ds-parked);
  stroke-dasharray: 2 2;
}

.ds-loop-mini-rows .is-untested polygon {
  fill: var(--ds-surface);
  stroke: var(--ds-ink-faint);
}

.ds-loop-arrow {
  fill: none;
  stroke: var(--ds-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-loop-arrow.is-ahead {
  stroke: var(--ds-ink-faint);
}

/* The one-line strip, for a short screen: shown instead of the floor under 800px tall. */
.ds-loop-strip {
  display: none;
  gap: var(--ds-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.ds-loop-strip-part {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  color: var(--ds-ink-muted);
  font: inherit;
  font-size: var(--ds-text-sm);
  cursor: pointer;
}

.ds-loop-strip-part .ds-icon {
  color: var(--ds-hue);
}

.ds-loop-strip-part strong {
  color: var(--ds-ink);
  font-weight: var(--ds-weight-medium);
}

.ds-loop-strip-part.is-here {
  border-color: var(--ds-hue);
  background: color-mix(in srgb, var(--ds-hue) 10%, var(--ds-surface));
}

/* The strip, on screens too short for the dial. Round 3 said under 800px tall, but a laptop browser
 * window is under 800px, so the dial was never seen where it is used most (Willem, 2026-09-23).
 * Under 640px the dial, sentence and tabs would push the matrix below the fold; above it they do not. */
@media (max-height: 640px) and (min-width: 641px) {
  .ds-loop-floor {
    display: none;
  }

  .ds-loop-strip {
    display: flex;
  }
}

/* The same four parts as a list: shown instead of the floor on a phone. */
.ds-loop-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.ds-loop-list li + li {
  border-top: 1px solid var(--ds-line-soft);
}

.ds-loop-list-row {
  display: flex;
  gap: var(--ds-space-3);
  width: 100%;
  padding: var(--ds-space-3) var(--ds-space-4);
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ds-loop-list-icon {
  color: var(--ds-hue);
  font-size: var(--ds-text-lg);
}

.ds-loop-list-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ds-loop-list-name {
  font-weight: var(--ds-weight-semibold);
}

.ds-loop-list-figure {
  color: var(--ds-ink-muted);
  font-size: var(--ds-text-xs);
}

.ds-loop-list-here {
  color: var(--ds-ink);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-medium);
}

@media (max-width: 640px) {
  .ds-loop-floor {
    display: none;
  }

  .ds-loop-list {
    display: block;
  }
}

.trust-more { text-align: center; margin-top: 28px; }

/* ---------- "Never" list ---------- */
.never { margin-top: 26px; display: grid; gap: 10px; }
.never div { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--ink-muted); }
.never b { font: 600 12px var(--font-data); color: var(--ink); background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }

/* ---------- Trust ---------- */
.trust { padding: 150px 0 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 52px; box-shadow: var(--shadow-sm); }
.tcell { background: var(--surface); padding: 28px; }
.tcell h3 { margin: 0 0 8px; font-size: 16.5px; display: flex; gap: 10px; align-items: center; }
.tcell h3 svg { color: var(--accent); flex: none; }
.tcell p { margin: 0; color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Final CTA ---------- */
.final { padding: 160px 0 120px; text-align: center; position: relative; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 40px 0 0; z-index: -1; background: radial-gradient(50% 55% at 50% 60%, var(--glow-top), transparent 70%); }
.final h2 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 auto; max-width: 14ch; font-weight: 700; }
.final p { color: var(--ink-muted); max-width: 52ch; margin: 22px auto 0; font-size: 18px; }

footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--ink-faint); background: var(--sunken); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h5 { margin: 0 0 12px; font: 600 12px var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }
.foot a { display: block; padding: 4px 0; color: var(--ink-faint); }
.foot a:hover { color: var(--ink); }
.foot .blurb { max-width: 34ch; margin: 14px 0 0; line-height: 1.55; }
.fine { margin-top: 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ds-loop-bridge .ds-loop-path.is-live { animation: none; }
  html { scroll-behavior: auto; }
  body { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 44px; }
  .row.flip .copy { order: 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .win-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .matrix .hide-s { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .win-bar .right { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 64px; }
  .install-chip { font-size: 13px; }
  .trust-grid, .collect, .waves { grid-template-columns: 1fr; }
  .loop-stage { padding: 12px; }
  .matrix .hide-xs { display: none; }
  .ci { width: 84px; }
  .main { padding: 14px 12px; }
  .matrix td, .matrix th { padding: 10px 6px; }
  .panel { padding: 16px; }
  .node.d1 { margin-left: 12px; } .node.d2 { margin-left: 24px; } .node.d3 { margin-left: 36px; }
  .node .lv { width: auto; }
  .node .srcb { display: none; }
  .node.crit .meta { padding-left: 0; }
  .foot { grid-template-columns: 1fr; }
  section.feat, .loop-sec, .trust { padding-top: 96px; }
}

/* ---------- Security page ---------- */
.draft {
  margin: 24px 0 0; padding: 14px 18px; border-radius: 12px;
  border: 1px dashed var(--accent-edge); background: var(--accent-wash);
  font-size: 14.5px; color: var(--ink-muted); line-height: 1.5;
}
.draft b { color: var(--accent); }
.sec-hero { padding: 72px 0 8px; }
.sec-hero h1 { text-align: left; margin: 14px 0 0; max-width: 16ch; font-size: clamp(38px, 5.4vw, 64px); }
.sec-hero .lede { margin: 22px 0 0; text-align: left; max-width: 60ch; }
.legend-status { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--ink-muted); }
.legend-status span { display: inline-flex; gap: 8px; align-items: center; }

.sec-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 40px; align-items: start; }
/* Grid children default to min-width: auto, which lets the table push the page wider than the screen. */
.sec-layout > * { min-width: 0; }
.toc { position: sticky; top: 88px; display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 6px 12px; border-radius: 8px; color: var(--ink-muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--sunken); }
.toc .toc-h { font: 600 11.5px var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); padding: 0 12px 8px; }

.sec { padding: 8px 0 48px; scroll-margin-top: 88px; }
.sec + .sec { border-top: 1px solid var(--line); padding-top: 48px; }
.sec h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.024em; line-height: 1.1; margin: 10px 0 12px; }
.sec > p { color: var(--ink-muted); max-width: 64ch; margin: 0 0 22px; }
.items { display: grid; gap: 12px; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--sheen), var(--surface); box-shadow: var(--edge-highlight), var(--shadow-sm);
}
.item h3 { margin: 0; font-size: 16.5px; letter-spacing: -0.01em; }
.item p { grid-column: 1 / -1; margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.55; max-width: 72ch; }
.item p code { font-size: .88em; background: var(--sunken); border: 1px solid var(--line-soft); padding: 1px 5px; border-radius: 5px; color: var(--ink); }

/* Status is not a result, so it never wears a verdict colour: solid neutral for in place, dashed for not yet. */
.status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font-ui); padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; }
.status.in { background: var(--sunken); color: var(--ink); border: 1px solid var(--line); }
.status.in::before { content: ""; width: 7px; height: 4px; border: solid var(--ink); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(1px, -1px); }
.status.todo { background: transparent; color: var(--ink-muted); border: 1px dashed var(--ink-faint); }
.status.todo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px dashed var(--ink-faint); }

.tbd { font: 500 .86em var(--font-data); color: var(--accent); background: var(--accent-wash); border: 1px dashed var(--accent-edge); border-radius: 5px; padding: 0 5px; white-space: nowrap; }

.subs { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 14.5px; }
.subs th { text-align: left; font: 500 11.5px var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); padding: 12px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.subs td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-muted); }
.subs tr:last-child td { border-bottom: 0; }
.subs td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.subs-wrap { overflow-x: auto; }
.sec-note { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }

.contact { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--sunken); }
.contact p { margin: 0; color: var(--ink-muted); flex: 1; min-width: 240px; }

@media (max-width: 980px) {
  .sec-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc .toc-h { display: none; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
}
@media (max-width: 600px) {
  .subs, .subs tbody, .subs tr, .subs td { display: block; }
  .subs thead { display: none; }
  .subs tr { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  .subs tr:last-child { border-bottom: 0; }
  .subs td { padding: 2px 0; border: 0; }
  .subs td:nth-child(2)::before { content: "For: "; color: var(--ink-faint); }
  .subs td:nth-child(3)::before { content: "Receives: "; color: var(--ink-faint); }
  .item { grid-template-columns: 1fr; padding: 16px; }
  .item .status { justify-self: start; }
}
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- Teaser: how it works ---------- */
.parts-sec { padding: 120px 0 0; }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.part {
  --ds-phase-1: #0e8c86; --ds-phase-2: #6f42d6; --ds-phase-3: #c2367e; --ds-phase-4: #a0522d;
  position: relative; padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--sheen), var(--surface); box-shadow: var(--edge-highlight), var(--shadow-sm);
}
:root[data-theme='dark'] .part { --ds-phase-1: #3ec9c1; --ds-phase-2: #a78bfa; --ds-phase-3: #f472b6; --ds-phase-4: #e08a5a; }
/* A part's hue is its identity, drawn as a rim and a number, never a bed (as in the app). */
.part::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: var(--ds-hue); }
.part-n { font: 600 12.5px var(--font-data); color: var(--ds-hue); letter-spacing: .08em; }
.part h3 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.part p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Teaser: why ---------- */
.why-sec { padding: 140px 0 0; }
.why { margin: 0 auto; max-width: 780px; text-align: center; }
.why blockquote { margin: 18px 0 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; letter-spacing: -0.018em; font-weight: 500; color: var(--ink); }
.why figcaption { margin-top: 20px; color: var(--ink-faint); font-size: 15px; }

/* ---------- Teaser: request access ---------- */
.access-sec { padding: 140px 0 120px; position: relative; isolation: isolate; }
.access-sec::before { content: ""; position: absolute; inset: 40px 0 0; z-index: -1; background: radial-gradient(50% 55% at 50% 55%, var(--glow-top), transparent 70%); }
.access {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start;
  padding: 44px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--sheen), var(--surface); box-shadow: var(--edge-highlight), var(--shadow-lg);
}
.access-copy h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.028em; line-height: 1.06; margin: 14px 0 14px; }
.access-copy p { color: var(--ink-muted); margin: 0; max-width: 40ch; }
.access-form { display: grid; gap: 14px; }
.access-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.access-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.access-form .opt { font-weight: 400; color: var(--ink-faint); margin-left: 4px; }
.access-form input, .access-form textarea {
  font: 400 15px var(--font-ui); color: var(--ink); background: var(--sunken);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.access-form textarea { resize: vertical; min-height: 84px; }
.access-form input::placeholder, .access-form textarea::placeholder { color: var(--ink-faint); }
.access-form input:focus, .access-form textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.access-form input[aria-invalid="true"] { border-color: var(--fail); }
.access-form .btn { justify-self: start; margin-top: 4px; }
.form-note { margin: 0; font-size: 13.5px; color: var(--ink-faint); }
.form-note.err { color: var(--fail-ink); }
.form-note.ok { color: var(--ink); font-weight: 500; }

footer .fine { margin-top: 0; align-items: center; }
footer .brand small { font-size: 12px; }

@media (max-width: 980px) {
  .parts { grid-template-columns: 1fr 1fr; }
  .access { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
}
@media (max-width: 600px) {
  .parts { grid-template-columns: 1fr; }
  .access { padding: 24px 18px; }
  .access-form .two { grid-template-columns: 1fr; }
  .nav .brand small { display: none; }
  .parts-sec, .why-sec { padding-top: 96px; }
  .access-sec { padding: 96px 0 72px; }
}

/* ---------- Teaser: research ---------- */
.research-sec { padding: 130px 0 0; }
.research { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.research-copy h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.028em; line-height: 1.08; margin: 14px 0 20px; }
.research-copy p { color: var(--ink-muted); margin: 0 0 14px; max-width: 50ch; }
.sources { display: grid; gap: 14px; }
.source {
  display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--sheen), var(--surface); box-shadow: var(--edge-highlight), var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.source:hover { border-color: var(--accent-edge); transform: translateY(-2px); }
.source p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.source .cite { font: 500 12.5px var(--font-data); color: var(--ink-faint); }
.source:hover .cite { color: var(--accent); }
@media (max-width: 980px) { .research { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .research-sec { padding-top: 96px; } }

/* ---------- Language switcher ---------- */
.lang { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-sm); }
.lang a { font: 600 12px var(--font-data); letter-spacing: .06em; color: var(--ink-faint); padding: 7px 8px; border-radius: 6px; line-height: 1; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--accent-wash); color: var(--accent); }
@media (max-width: 400px) { .nav-cta .btn-primary { padding: 0 12px; font-size: 13.5px; } }
