/* =============================================================================
 * PeerRun marketing family. Tokens lifted from studio/src/site.css
 * (proposal F). This file is the one stylesheet for every /for page.
 * Do not invent a second system. Compose each page; do not clone a template.
 * ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Martian+Mono:wght@500;600;700&family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap");

:root {
  --paper: oklch(97.8% 0.006 88);
  --paper-2: oklch(95.8% 0.008 88);
  --paper-3: oklch(93% 0.01 88);
  --ink: oklch(21.5% 0.02 262);
  --ink-2: oklch(38% 0.022 262);
  --mut: oklch(44% 0.024 262);
  --line: oklch(88.5% 0.01 88);
  --line-2: oklch(81% 0.012 88);

  --night: oklch(15.8% 0.022 268);
  --night-2: oklch(19.2% 0.024 268);
  --night-3: oklch(23% 0.026 268);
  --night-ink: oklch(95.5% 0.008 88);
  --night-ink2: oklch(80% 0.018 262);
  --night-mut: oklch(72% 0.022 262);
  --night-line: oklch(28.5% 0.022 268);
  --night-line2: oklch(35% 0.024 268);

  --accent: oklch(47.5% 0.19 262);
  --accent-deep: oklch(40.5% 0.175 263);
  --accent-hi: oklch(69% 0.165 260);
  --on-accent: oklch(98.5% 0.006 262);
  --accent-tint: oklch(47.5% 0.19 262 / 0.08);
  --accent-tint-n: oklch(69% 0.165 260 / 0.13);

  --proven: oklch(46% 0.12 152);
  --proven-hi: oklch(78% 0.13 152);
  --failed: oklch(50% 0.18 26);
  --failed-hi: oklch(72% 0.16 26);
  --unk: oklch(56% 0.12 78);
  --unk-hi: oklch(82% 0.12 80);
  --unk-ink: oklch(42% 0.11 75);
  --blk: oklch(46% 0.03 255);
  --blk-hi: oklch(78% 0.03 255);

  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --d1: clamp(36px, 5.9vw, 72px);
  --d2: clamp(28px, 4.4vw, 52px);
  --h2: clamp(26px, 3.4vw, 40px);
  --h3: clamp(19px, 2vw, 24px);
  --body: 17.5px;
  --small: 14.5px;

  --maxw: 1180px;
  --r: 14px;
  --r-lg: 20px;
  --r-sm: 11px;
  --exp: cubic-bezier(0.16, 1, 0.3, 1);
  --sh-day: 0 2px 6px oklch(21.5% 0.02 262 / 0.05), 0 26px 60px -28px oklch(30% 0.09 262 / 0.28);
  --sh-card: 0 1px 2px oklch(21.5% 0.02 262 / 0.06), 0 14px 34px -22px oklch(30% 0.07 262 / 0.3);
  --sh-night: 0 1px 0 oklch(95.5% 0.008 88 / 0.06) inset, 0 30px 80px -30px oklch(8% 0.02 268 / 0.7);

  --bg: var(--night);
  --bg2: var(--night-2);
  --bg3: var(--night-3);
  --fg: var(--night-ink);
  --fg2: var(--night-ink2);
  --fgm: var(--night-mut);
  --ln: var(--night-line);
  --ln2: var(--night-line2);
  --ac: var(--accent-hi);
  --ac-tint: var(--accent-tint-n);
  --ok: var(--proven-hi);
  --no: var(--failed-hi);
  --maybe: var(--unk-hi);
  --maybe-ink: var(--unk-hi);
  --block: var(--blk-hi);
  --on-btn: var(--night);
  --nav-fg: var(--night-ink);
  --nav-fg2: var(--night-ink2);
}

html[data-theme="day"] {
  --bg: var(--paper);
  --bg2: var(--paper-2);
  --bg3: var(--paper-3);
  --fg: var(--ink);
  --fg2: var(--ink-2);
  --fgm: var(--mut);
  --ln: var(--line);
  --ln2: var(--line-2);
  --ac: var(--accent);
  --ac-tint: var(--accent-tint);
  --ok: var(--proven);
  --no: var(--failed);
  --maybe: var(--unk);
  --maybe-ink: var(--unk-ink);
  --block: var(--blk);
  --on-btn: var(--on-accent);
  --nav-fg: var(--ink);
  --nav-fg2: var(--ink-2);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

html[data-theme="day"] { color-scheme: light; }

html, body {
  max-width: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.hero, .sec, .final, .footer { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible {
  outline: 2.5px solid var(--ac);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); min-width: 0; }
.vh {
  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: 14px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 11px 16px; border-radius: 10px; font-weight: 650; transition: top 0.2s var(--exp);
}
.skip:focus { top: 14px; }

.mono { font-family: var(--mono); }
.kicker {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ac);
}
.prose { max-width: 72ch; }
.prose p + p { margin-top: 1em; }
.lead { font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.55; color: var(--fg2); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 24px; border-radius: 12px;
  font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--exp), box-shadow 0.35s var(--exp), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-pri {
  background: var(--ac);
  color: var(--on-btn);
  box-shadow: 0 12px 28px -14px var(--accent);
}
html[data-theme="night"] .btn-pri { color: var(--night); }
.btn-pri:hover { filter: brightness(1.06); box-shadow: 0 18px 34px -14px var(--accent); }
.btn-ghost {
  border-color: var(--ln2);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover { background: var(--ac-tint); border-color: var(--ac); }
.btn-sm { height: 40px; padding: 0 17px; font-size: 14.5px; border-radius: 11px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- mark -------------------------------------------------------------- */
.mark { width: 34px; height: 22px; flex: 0 0 auto; }
.mark circle { fill: none; stroke-width: 2.1; }
.mark .c-build { stroke: var(--nav-fg2); }
.mark .c-peer { stroke: var(--accent-hi); }
html[data-theme="day"] .mark .c-peer { stroke: var(--accent); }

/* ---- nav --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--exp), border-color 0.35s var(--exp);
}
.nav.is-scrolled {
  background: var(--bg);
  border-color: var(--ln);
}
.nav-in {
  display: flex; align-items: center; gap: 18px; height: 66px;
  min-width: 0;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 19.5px; letter-spacing: -0.045em; color: var(--nav-fg);
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .nav-more > summary {
  padding: 8px 11px; border-radius: 9px;
  color: var(--nav-fg2); font-size: 14.5px; font-weight: 520;
  transition: color 0.2s, background 0.2s;
  list-style: none;
}
.nav-links a:hover, .nav-more > summary:hover,
.nav-links a[aria-current="page"] {
  color: var(--nav-fg); background: var(--ac-tint);
}
.nav-more { position: relative; }
.nav-more > summary { cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { color: var(--nav-fg); background: var(--ac-tint); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; padding: 8px;
  background: var(--bg2); border: 1px solid var(--ln); border-radius: 14px;
  box-shadow: var(--sh-card);
}
.nav-panel a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14.5px; color: var(--fg2);
}
.nav-panel a:hover, .nav-panel a[aria-current="page"] {
  background: var(--ac-tint); color: var(--fg);
}
.nav-more-m { display: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.signin { font-size: 14.5px; font-weight: 600; color: var(--nav-fg2); }
.signin:hover { color: var(--nav-fg); }
.theme-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--ln);
  display: grid; place-items: center; color: var(--fg2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.theme-btn:hover { background: var(--ac-tint); color: var(--fg); border-color: var(--ac); }
.theme-btn svg { width: 18px; height: 18px; }
html[data-theme="night"] .icon-moon { display: none; }
html[data-theme="day"] .icon-sun { display: none; }

/* ---- hero shared ------------------------------------------------------- */
.hero {
  position: relative;
  padding: 118px 0 clamp(56px, 8vw, 96px);
  overflow: clip;
  background: var(--bg);
  color: var(--fg);
}
.hero-flag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 9px;
  border: 1px solid var(--ln2); border-radius: 999px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--fg2);
  background: var(--ac-tint);
}
.hero-flag i {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ac);
}
.hero h1 {
  margin-top: 22px;
  font-size: var(--d1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
  max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--ac); }
.hero .lede {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(17px, 1.65vw, 19.5px);
  line-height: 1.55;
  color: var(--fg2);
}
.hero .cta-row { margin-top: 28px; }
.hero-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fgm);
  max-width: 56ch;
}

/* ---- sections ---------------------------------------------------------- */
.sec {
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--ln);
}
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec h2 {
  font-size: var(--h2);
  letter-spacing: -0.028em;
  line-height: 1.08;
  max-width: 22ch;
}
.sec .lead { margin-top: 16px; max-width: 68ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fgm);
  margin-bottom: 14px;
}

/* invert bands stay inside the brand, not a second palette */
.band-ink {
  background: var(--night);
  color: var(--night-ink);
  border-top-color: var(--night-line);
  /* this band is always dark: re-scope the semantic tokens so every component
     that reads --ac/--fg2/--fgm/--no/--ok/--maybe(-ink)/--block, including
     inline styles, resolves to the dark-safe variant regardless of page theme */
  --ac: var(--accent-hi);
  --ac-tint: var(--accent-tint-n);
  --fg: var(--night-ink);
  --fg2: var(--night-ink2);
  --fgm: var(--night-mut);
  --ln: var(--night-line);
  --ln2: var(--night-line2);
  --ok: var(--proven-hi);
  --no: var(--failed-hi);
  --maybe: var(--unk-hi);
  --maybe-ink: var(--unk-hi);
  --block: var(--blk-hi);
}
.band-ink h2, .band-ink h3 { color: var(--night-ink); }
.band-ink .lead, .band-ink p, .band-ink li, .band-ink .prose li { color: var(--night-ink2); }
.band-ink .eyebrow, .band-ink .kicker { color: var(--accent-hi); }
.band-ink .cite, .band-ink .cite a, .sec.band-ink a.cite { color: var(--accent-hi); }
/* shared components keep readable contrast even when the page theme and the
   forced band colour disagree (day theme + band-ink, or night theme + band-paper) */
.band-ink table.factsheet th { color: var(--night-mut); }
.band-ink table.factsheet td { color: var(--night-ink2); }
.band-ink table.factsheet td:first-child,
.band-ink table.factsheet th:first-child { color: var(--night-ink); }
.band-ink table.factsheet th, .band-ink table.factsheet td { border-bottom-color: var(--night-line); }
.band-ink .btn-ghost { color: var(--night-ink); border-color: var(--night-line2); }
.band-ink .honesty { background: var(--night-2); border-color: var(--night-line); }
.band-ink .honesty h3 { color: var(--night-ink); }
.band-ink .honesty p, .band-ink .honesty li { color: var(--night-ink2); }
.band-ink .limits { border-color: var(--night-line); }
.band-ink .limits dt { color: var(--accent-hi); }
.band-ink .limits dd { color: var(--night-ink2); border-bottom-color: var(--night-line); }
.band-ink .tech-note, .band-ink .tech-note .tech-lbl { color: var(--night-mut); }
.band-ink .faq details { border-bottom-color: var(--night-line); }
.band-ink .faq summary { color: var(--night-ink); }
.band-ink .faq details p { color: var(--night-ink2); }
.band-paper {
  background: var(--paper);
  color: var(--ink);
  border-top-color: var(--line);
  /* this band is always paper-light: re-scope the same tokens to the light-safe
     variant, mirroring the .band-ink fix above */
  --ac: var(--accent);
  --ac-tint: var(--accent-tint);
  --fg: var(--ink);
  --fg2: var(--ink-2);
  --fgm: var(--mut);
  --ln: var(--line);
  --ln2: var(--line-2);
  --ok: var(--proven);
  --no: var(--failed);
  --maybe: var(--unk);
  --maybe-ink: var(--unk-ink);
  --block: var(--blk);
}
.band-paper h2, .band-paper h3 { color: var(--ink); }
.band-paper .lead, .band-paper p, .band-paper li, .band-paper .prose li { color: var(--ink-2); }
.band-paper .eyebrow { color: var(--mut); }
.band-paper .cite, .band-paper .cite a, .sec.band-paper a.cite { color: var(--accent); }
.band-paper table.factsheet th { color: var(--mut); }
.band-paper table.factsheet td { color: var(--ink-2); }
.band-paper table.factsheet td:first-child,
.band-paper table.factsheet th:first-child { color: var(--ink); }
.band-paper table.factsheet th, .band-paper table.factsheet td { border-bottom-color: var(--line); }
.band-paper .btn-ghost { color: var(--ink); border-color: var(--line-2); }
.band-paper .honesty { background: var(--paper-3); border-color: var(--line); }
.band-paper .honesty h3 { color: var(--ink); }
.band-paper .honesty p, .band-paper .honesty li { color: var(--ink-2); }
.band-paper .limits { border-color: var(--line); }
.band-paper .limits dt { color: var(--accent); }
.band-paper .limits dd { color: var(--ink-2); border-bottom-color: var(--line); }
.band-paper .tech-note, .band-paper .tech-note .tech-lbl { color: var(--mut); }
.band-paper .faq details { border-bottom-color: var(--line); }
.band-paper .faq summary { color: var(--ink); }
.band-paper .faq details p { color: var(--ink-2); }
html[data-theme="day"] .band-paper { background: var(--paper-2); }

/* ---- verdict stamps ---------------------------------------------------- */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 8px; border: 1px solid currentColor;
}
.stamp-unk { color: var(--maybe-ink); background: color-mix(in oklch, var(--maybe) 16%, transparent); }
.stamp-fail { color: var(--no); background: color-mix(in oklch, var(--no) 14%, transparent); }
.stamp-ok { color: var(--ok); background: color-mix(in oklch, var(--ok) 14%, transparent); }
.stamp-blk { color: var(--block); background: color-mix(in oklch, var(--block) 16%, transparent); }
.band-ink .stamp-unk { color: var(--unk-hi); }
.band-ink .stamp-fail { color: var(--failed-hi); }
.band-ink .stamp-ok { color: var(--proven-hi); }
.band-ink .stamp-blk { color: var(--blk-hi); }

/* ---- citation / honesty ------------------------------------------------ */
.cite {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--fgm);
}
.cite a {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.honesty {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--ln);
  border-radius: var(--r);
  background: var(--bg2);
}
.honesty h3 { font-size: 16px; letter-spacing: -0.015em; margin-bottom: 8px; }
.honesty p { color: var(--fg2); font-size: 15.5px; max-width: 72ch; }

.limits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.limits dt {
  padding: 16px 20px 4px;
  font: 650 12px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac);
}
.limits dd {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--fg2);
  max-width: none;
  border-bottom: 1px solid var(--ln);
}
.limits div:last-child dd { border-bottom: 0; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 0; max-width: 78ch; }
.faq details {
  border-bottom: 1px solid var(--ln);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ac);
  font-weight: 700;
}
.faq details[open] summary::after { content: "-"; }
.faq details p {
  margin-top: 12px;
  color: var(--fg2);
  max-width: 72ch;
}

/* ---- sources ----------------------------------------------------------- */
.sources { font-size: 14px; }
.sources ol { margin: 16px 0 0; padding-left: 1.3em; }
.sources li { margin: 8px 0; color: var(--fg2); max-width: 78ch; }
.sources a { color: var(--ac); text-decoration: underline; text-underline-offset: 3px; }

/* ---- final / footer ---------------------------------------------------- */
.final {
  text-align: left;
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--night);
  color: var(--night-ink);
  border-top: 1px solid var(--night-line);
}
.final h2 {
  font-size: var(--d2);
  letter-spacing: -0.032em;
  line-height: 1.08;
  max-width: 18ch;
  color: var(--night-ink);
}
.final h2 em { font-style: normal; color: var(--accent-hi); }
.final .fsub { margin-top: 18px; max-width: 56ch; font-size: 17.5px; color: var(--night-ink2); }
.final .cta-row { margin-top: 28px; }
.final .btn-pri { background: var(--accent-hi); color: var(--night); }
.final .btn-ghost { color: var(--night-ink); border-color: var(--night-line2); }
.final .foot-note { margin-top: 16px; font-size: 14px; color: var(--night-mut); max-width: 62ch; }

.footer {
  background: var(--night);
  color: var(--night-ink2);
  border-top: 1px solid var(--night-line);
  padding: 40px 0 36px;
}
.footer-in {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.footer .brand { color: var(--night-ink); font-size: 17px; }
.fcols { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 640px; }
.fcols a { font-size: 14px; color: var(--night-ink2); }
.fcols a:hover, .fcols a[aria-current="page"] { color: var(--night-ink); }
.base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; font-size: 13px; color: var(--night-mut);
}

/* =========================================================================
 * PAGE COMPOSITIONS. Each page owns a hero and a rhythm. Shared chrome only.
 * ========================================================================= */

/* ---- Lovable: split ledger -------------------------------------------- */
.page-lovable .hero {
  background:
    radial-gradient(90% 70% at 92% -10%, oklch(69% 0.165 260 / 0.16), transparent 55%),
    var(--bg);
}
.page-lovable .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-night);
  min-height: 320px;
  min-width: 0;
}
.ledger article {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ledger article + article { border-left: 1px solid var(--ln); }
.ledger .url {
  font: 600 11.5px/1.45 var(--mono);
  color: var(--fgm);
  word-break: break-all;
}
.ledger .code {
  font: 800 clamp(42px, 5vw, 64px)/0.9 var(--mono);
  letter-spacing: -0.06em;
}
.ledger .ok-num { color: var(--fgm); }
.ledger .unk-num { color: var(--maybe); }
.ledger p { font-size: 14.5px; color: var(--fg2); }
.lov-steps {
  margin-top: 40px;
  max-width: 820px;
}
.lov-steps ol { list-style: none; }
.lov-steps li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--ln);
}
.lov-steps .n {
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--ac);
}
.lov-steps h3 { font-size: var(--h3); letter-spacing: -0.02em; margin-bottom: 8px; }
.lov-steps p { color: var(--fg2); max-width: 62ch; }

/* ---- Bolt: stage first ------------------------------------------------ */
.page-bolt .hero { padding-top: 104px; }
.void-stage {
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 340px;
  min-width: 0;
  background: var(--bg2);
  box-shadow: var(--sh-night);
}
.void-stage > * { min-width: 0; }
.void-tab, .void-out { padding: 20px 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.void-out {
  background: oklch(12.5% 0.02 268);
  color: var(--night-ink);
  /* always a near-black panel regardless of page theme: pin the accent/muted
     tokens to their dark-safe variant so the kicker label stays readable */
  --ac: var(--accent-hi);
  --fgm: var(--night-mut);
  --fg2: var(--night-ink2);
}
html[data-theme="day"] .void-out { background: oklch(18% 0.022 268); }
.void-tab { border-right: 1px solid var(--ln); }
.chrome {
  display: flex; align-items: center; gap: 8px; margin-bottom: 22px;
}
.chrome b { width: 9px; height: 9px; border-radius: 50%; background: var(--ln2); }
.chrome span {
  flex: 1; min-width: 0; font: 600 11px/1 var(--mono); color: var(--fgm);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.void-tab h2, .void-out h2 {
  font-size: 15px; letter-spacing: -0.01em; margin: 8px 0 10px; max-width: none;
}
.void-live {
  margin-top: auto;
  height: 140px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, oklch(28% 0.04 262), oklch(22% 0.03 262));
  border: 1px solid var(--ln2);
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.void-empty {
  margin-top: auto;
  font: 800 clamp(72px, 10vw, 120px)/0.8 var(--mono);
  letter-spacing: -0.07em;
  color: var(--failed-hi);
}
.void-empty small {
  display: block;
  margin-top: 10px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--night-mut);
  text-transform: none;
}
.page-bolt .hero-copy { margin-top: 40px; max-width: 760px; }
.page-bolt .hero h1 { max-width: 20ch; }
.split-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--ln);
}
.split-facts article { padding: 28px 0; }
.split-facts article + article { padding-left: 36px; border-left: 1px solid var(--ln); }
.split-facts h3 { font-size: var(--h3); margin: 10px 0 10px; }
.split-facts p { color: var(--fg2); max-width: 54ch; }

/* ---- v0: pipeline ------------------------------------------------------ */
.page-v0 .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.pipe {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pipe li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--ln);
}
.pipe li:last-child { border-bottom: 0; }
.pipe .who {
  font: 650 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
}
.pipe h3 { font-size: 18px; margin: 8px 0 6px; letter-spacing: -0.02em; }
.pipe p { font-size: 14.5px; color: var(--fg2); }
.wall-401 {
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  max-width: 820px;
}
.wall-401 .num {
  font: 800 clamp(80px, 12vw, 140px)/0.8 var(--mono);
  letter-spacing: -0.08em;
  color: var(--ac);
}
.model-quote {
  margin-top: 28px;
  max-width: 68ch;
  padding: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 550;
}
.model-quote footer { margin-top: 12px; font-size: 13.5px; color: var(--fgm); font-weight: 500; }

/* ---- Replit: exam transcript ------------------------------------------ */
.page-replit .hero-in { max-width: 860px; }
.page-replit .hero h1 { max-width: 18ch; }
.exam {
  margin-top: 36px;
  display: grid;
  gap: 10px;
}
.exam figure {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  max-width: 72ch;
}
.exam figcaption {
  font: 650 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 8px;
}
.exam p { color: var(--fg); }
.exam .reply { margin-left: clamp(12px, 4vw, 48px); background: var(--bg3); }
.two-voice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 36px;
}
.two-voice h3 { font-size: var(--h3); margin-bottom: 10px; }
.two-voice p { color: var(--fg2); }

/* ---- Cursor: the disk ------------------------------------------------- */
.page-cursor .hero { padding-bottom: 40px; }
.page-cursor .hero-in { max-width: 920px; }
.page-cursor .hero h1 { max-width: 16ch; font-size: clamp(40px, 6.4vw, 80px); }
.path-hero {
  margin-top: 36px;
  font: 600 clamp(14px, 2.1vw, 22px)/1.5 var(--mono);
  letter-spacing: -0.03em;
  color: var(--ac);
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--bg2);
  border: 1px solid var(--ln);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tree {
  margin-top: 36px;
  font: 500 13.5px/1.7 var(--mono);
  color: var(--fg2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tree b { color: var(--fg); font-weight: 700; }
.diff-run {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 12px;
}
.diff-run h3 { font-size: var(--h3); margin: 8px 0 10px; }
.diff-run p { color: var(--fg2); }

/* ---- Base44: checklist sheet ------------------------------------------ */
.page-base44 .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px 18px 18px 4px;
  padding: 26px 24px 28px;
  box-shadow: var(--sh-day);
  transform: rotate(1.2deg);
}
.sheet h2 {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--mut);
  max-width: none;
  margin-bottom: 16px;
}
.sheet ol { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sheet li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--ink-2);
}
.box {
  width: 16px; height: 16px; margin-top: 2px;
  border: 1.5px solid oklch(50% 0.02 262);
  border-radius: 3px;
}
.vis-rows {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--ln);
}
.vis-rows article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ln);
}
.vis-rows h3 { font-size: 16px; }
.vis-rows p { color: var(--fg2); }

/* ---- bring path (used, but not cloned) -------------------------------- */
.bring {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}
.bring article h3 { font-size: var(--h3); margin-bottom: 8px; }
.bring article p { color: var(--fg2); max-width: 68ch; }

/* ---- motion ------------------------------------------------------------ */
[data-reveal] {
  animation: rise 0.9s var(--exp) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-copy { animation-delay: 0.04s; }
.hero-visual { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-more:not(.nav-more-m) { display: none; }
  .nav-more-m { display: block; }
  .nav-more-m .nav-panel { left: auto; right: 0; }
  .signin { display: none; }
  .page-lovable .hero-in,
  .page-v0 .hero-in,
  .page-base44 .hero-in,
  .void-stage,
  .split-facts,
  .two-voice,
  .diff-run,
  .wall-401,
  .vis-rows article,
  .lov-steps li {
    grid-template-columns: minmax(0, 1fr);
  }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger article + article { border-left: 0; border-top: 1px solid var(--ln); }
  .void-tab { border-right: 0; border-bottom: 1px solid var(--ln); }
  .split-facts article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--ln); }
  .lov-steps { grid-template-columns: minmax(0, 1fr); }
  .lov-steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sheet { transform: none; }
  .hero h1, .page-cursor .hero h1 { max-width: 14ch; }
}

@media (max-width: 560px) {
  .hero { padding-top: 100px; }
  .cta-row .btn { width: 100%; }
  .nav-cta .btn { display: none; }
  .footer-in { flex-direction: column; }
}

/* =========================================================================
 * Problem / question pages. Unique composition per file. Shared chrome only.
 * ========================================================================= */

.prose ul, .prose ol, .honesty ul {
  list-style: revert;
  padding-left: 1.2em;
}
.prose li, .honesty li { margin: 0.45em 0; color: var(--fg2); }
.prose h2 {
  font-size: var(--h2);
  letter-spacing: -0.028em;
  line-height: 1.12;
  font-weight: 750;
  margin: 0 0 18px;
  max-width: none;
}
.prose h3 {
  font-size: var(--h3);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
  margin: 2.1em 0 12px;
}
.prose a[href^="http"],
.prose a.cite,
a.cite {
  color: var(--ac);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose code, .honesty code, code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--ac-tint);
  padding: 0.12em 0.38em;
  border-radius: 6px;
}
.answer {
  margin-top: 28px;
  padding: 22px 24px 20px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  border-radius: var(--r-lg);
  max-width: 72ch;
}
.answer .lbl {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac);
}
.answer p {
  margin-top: 10px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 550;
}
/* ---- technical aside: the plain sentence comes first, this is optional --- */
.tech-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fgm);
  max-width: 68ch;
}
.tech-note .tech-lbl {
  font: 650 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fgm);
  margin-right: 8px;
  white-space: nowrap;
}
.lede {
  margin-top: 20px;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--fg2);
  max-width: 62ch;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.02em;
  color: var(--fgm);
}
.table-wrap { overflow-x: auto; margin-top: 28px; -webkit-overflow-scrolling: touch; }
table.factsheet {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
table.factsheet th,
table.factsheet td {
  text-align: left;
  vertical-align: top;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--ln);
}
table.factsheet th {
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fgm);
}
table.factsheet td { color: var(--fg2); }
table.factsheet td:first-child,
table.factsheet th:first-child { color: var(--fg); font-weight: 650; }
.pre {
  margin: 18px 0 0;
  padding: 18px 18px 16px;
  background: var(--bg3);
  border: 1px solid var(--ln);
  border-radius: var(--r);
  overflow-x: auto;
  font: 500 12.5px/1.55 var(--mono);
  color: var(--fg);
}
.related {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--ln);
}
.related a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--ln);
}
.related a:hover .rt { color: var(--ac); }
.related .rk {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fgm);
}
.related .rt { font-weight: 650; letter-spacing: -0.02em; }
.related .ra { color: var(--ac); font-weight: 700; }
.band-paper .related .rk,
.band-paper .cta-note,
.band-paper .meta-row { color: var(--mut); }
.cta-note {
  margin-top: 16px;
  font: 500 12px/1.5 var(--mono);
  color: var(--fgm);
}

/* page 1: done */
.hero-done {
  position: relative;
  padding: 128px 0 0;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}
html[data-theme="day"] .hero-done {
  background: var(--paper);
  color: var(--ink);
}
.hero-done-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-done h1 {
  margin-top: 18px;
  font-size: var(--d1);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 780;
  max-width: 14ch;
}
.hero-done h1 em { font-style: italic; font-weight: 560; color: var(--ac); }
.done-mark {
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.done-mark svg { width: 100%; height: 100%; }
.why-done {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.why-done blockquote {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.why-done blockquote span { color: var(--fgm); font-weight: 500; }
.reach { display: grid; gap: 0; margin-top: 10px; }
.reach article {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--ln);
}
.reach .idx {
  font: 700 clamp(28px, 3vw, 40px)/1 var(--mono);
  letter-spacing: -0.04em;
  color: var(--ac);
}
.reach h3 { margin: 0 0 8px; }
.reach p { color: var(--fg2); max-width: 62ch; }
.split-200 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.split-200 > div { padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.split-200 .http { background: var(--night); color: var(--night-ink); }
html[data-theme="day"] .split-200 .http { background: var(--ink); color: var(--paper); }
.split-200 .truth { background: var(--paper); color: var(--ink); }
.split-200 h2 { font-size: var(--h2); letter-spacing: -0.03em; line-height: 1.1; max-width: none; }
.split-200 p { margin-top: 16px; max-width: 46ch; }
.split-200 .http p { color: var(--night-ink2); }
html[data-theme="day"] .split-200 .http p { color: oklch(86% 0.012 88); }
.split-200 .code { margin-top: 28px; font: 500 13px/1.6 var(--mono); }

/* page 2: howto */
.hero-howto {
  padding: 118px 0 0;
  background: var(--paper);
  color: var(--ink);
}
html[data-theme="night"] .hero-howto {
  background: var(--night);
  color: var(--night-ink);
}
.hero-howto-in {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.step-index { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.step-index a {
  font: 600 13px/1.2 var(--mono);
  color: var(--fgm);
  letter-spacing: 0.04em;
  padding: 6px 0;
}
.step-index a:hover { color: var(--ac); }
.hero-howto h1 {
  font-size: var(--d1);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 780;
  max-width: 13ch;
}
.howto-step {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--ln);
  background: var(--bg);
  color: var(--fg);
}
.howto-step:nth-of-type(even) { background: var(--bg2); }
.step-in {
  display: grid;
  grid-template-columns: minmax(88px, 140px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
}
.howto-step .num {
  font: 700 clamp(42px, 6vw, 72px)/0.9 var(--mono);
  letter-spacing: -0.06em;
  color: var(--ac);
}
.howto-step h2 {
  font-size: var(--h2);
  letter-spacing: -0.028em;
  line-height: 1.1;
  max-width: 22ch;
}
.howto-step .body { max-width: 68ch; margin-top: 16px; color: var(--fg2); }
.howto-step .body p + p { margin-top: 1em; }

/* page 3: upgrade */
.hero-up {
  padding: 118px 0 clamp(56px, 8vw, 96px);
  background: var(--paper);
  color: var(--ink);
}
html[data-theme="night"] .hero-up {
  background: var(--night);
  color: var(--night-ink);
}
.hero-up-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.fail-stack { display: flex; flex-direction: column; }
.fail-stack article {
  padding: 22px 0 26px;
  border-top: 1px solid var(--ln);
}
.fail-stack .layer {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac);
}
.fail-stack h2 {
  margin-top: 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: none;
}
.fail-stack p { margin-top: 8px; color: var(--fg2); max-width: 36ch; }
.hero-up h1 {
  font-size: var(--d1);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 780;
  max-width: 12ch;
}
.worked {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(24px, 5vw, 64px);
}

/* page 4: launch */
.hero-launch {
  position: relative;
  padding: 130px 0 clamp(64px, 9vw, 110px);
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}
html[data-theme="day"] .hero-launch {
  background: var(--paper);
  color: var(--ink);
}
.hero-launch .ghost {
  position: absolute;
  right: -4vw;
  top: 18%;
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--ac);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.hero-launch h1 {
  position: relative;
  font-size: var(--d1);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 780;
  max-width: 13ch;
}
.verdict-col { display: flex; flex-direction: column; margin-top: 8px; }
.verdict-col article {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--ln);
}
.verdict-col .tag {
  font: 700 13px/1.3 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ceiling { display: grid; grid-template-columns: 1fr 1.15fr; }
.ceiling > * { padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.ceiling .pub { background: var(--paper-2); color: var(--ink); }
.ceiling .priv { background: var(--night-2); color: var(--night-ink); }
html[data-theme="day"] .ceiling .priv { background: var(--ink); color: var(--paper); }

/* page 5: who */
.hero-who {
  padding: 118px 0 36px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
html[data-theme="night"] .hero-who {
  background: var(--night);
  color: var(--night-ink);
  border-bottom-color: var(--night-line);
}
.mast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ln);
  font: 500 12px/1.4 var(--mono);
  color: var(--fgm);
}
.hero-who h1 {
  margin-top: 28px;
  font-size: var(--d1);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 780;
  max-width: 16ch;
}
.who-builder {
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--ln);
}
.builder-k {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.who-builder h2 {
  font-size: var(--h2);
  letter-spacing: -0.028em;
  line-height: 1.1;
  max-width: none;
}
.who-builder .indep {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.who-builder .body { max-width: 68ch; margin-top: 16px; color: var(--fg2); }
.who-builder .body p + p { margin-top: 1em; }

@media (max-width: 940px) {
  .hero-done-in,
  .why-done,
  .split-200,
  .hero-howto-in,
  .hero-up-in,
  .worked,
  .ceiling,
  .verdict-col article,
  .reach article,
  .step-in { grid-template-columns: minmax(0, 1fr); }
  .done-mark { justify-self: start; width: min(240px, 70vw); }
  .hero-launch .ghost { top: auto; bottom: 8%; opacity: 0.08; }
  .mast { grid-template-columns: minmax(0, 1fr); }
}
