/* GridSchool shared chrome for the funnel and legal pages: tokens, nav, buttons,
   copy blocks, footer. Neon on near-black, thin light, no film trade dress.
   The landing page (index.html) re-tokens this on body.home in home.css. */

:root {
  /* surfaces */
  --bg: #010306;
  --bg2: #080c15;
  --surface: rgba(10, 16, 28, 0.92);
  --surface-2: rgba(8, 12, 21, 0.96);
  --line: #16233d;
  --grid: #0e1a2e;

  /* chromatic */
  --cyan: #28e1ff;
  --amber: #ffb32b;
  --ok: #3ddc84;
  --text: #cfdcea;
  --muted: #7a8fa3;
  --ghost: #52667c;
  --white: #ffffff;
  --out: #ff6b8a;

  /* state aliases (use these in the evidence panel) */
  --lit: var(--cyan);
  --proven: var(--ok);
  --stake: var(--amber);
  --pending: var(--muted);

  /* fills that used to leak as component hex */
  --btn-solid-bg: #10203a;
  --btn-solid-border: #1a4a5c;
  --cta-ink: #03141c;
  --logo-dim: #0c1724;
  --node-void: #070c15;
  --rail-mid: #26395c;
  --ring-mid: #24344f;
  --core-mid: #16223a;

  /* type scale */
  --fs-chip: 11px;
  --fs-label: 12.5px;
  --fs-body: 15px;
  --fs-lead: 18.5px;
  --fs-h3: 16px;
  --fs-h2: clamp(22px, 3.1vw, 30px);
  --fs-h1: clamp(26px, 3.1vw, 42px);

  /* space (8px grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 64px;

  /* radii */
  --radius: 10px;
  --radius-sm: 6px;

  /* hairlines */
  --hair: color-mix(in srgb, var(--text) 6%, transparent);
  --hair-cyan: color-mix(in srgb, var(--cyan) 20%, transparent);

  /* motion */
  --dur-fast: 120ms;
  --dur-base: 400ms;
  --dur-drift: 26s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 300; line-height: 1.65; overflow-x: hidden;
}

/* The grid floor fades toward the horizon - the same space the Map lives in. */
.gridbg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .32;
  mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 72%);
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1180px; }

/* ---------- buttons: one grammar, three weights ---------- */

.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 18px; cursor: pointer; text-decoration: none; letter-spacing: .03em;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) ease, box-shadow .15s, border-color .15s;
}
.btn--ghost { background: none; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--white); }
.btn--solid { background: var(--btn-solid-bg); border-color: var(--btn-solid-border); color: var(--white); }
.btn--solid:hover { border-color: var(--cyan); }
.btn--cta {
  background: none; color: var(--cyan); font-size: 13px; font-weight: 500;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .2em; padding: 10px 0; box-shadow: none;
  text-transform: uppercase;
  text-shadow: 0 0 20px color-mix(in srgb, var(--cyan) 22%, transparent);
}
.btn--cta:hover { transform: none; color: #6eebff; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 26px;
  padding: 18px 40px 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 16%,
    color-mix(in srgb, var(--cyan) 32%, var(--line)) 50%,
    var(--line) 84%,
    transparent
  );
}
.nav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav__logo { width: 30px; height: 30px; flex: none; display: block; }
.nav__logo .g-on rect { fill: var(--cyan); }
.nav__logo .g-off rect { fill: var(--logo-dim); }
.nav__name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400; letter-spacing: .42em; font-size: 11px; color: var(--ghost);
}
.nav__name b { font-weight: 500; color: var(--text); }
.nav__quiet {
  color: var(--ghost); text-decoration: none; font-size: 12px; letter-spacing: .08em;
}
.nav__quiet:hover { color: var(--text); }
.nav__links { display: flex; gap: 20px; margin-left: 10px; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; letter-spacing: .04em;
}
.nav__links a:hover { color: var(--white); }
.nav__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

h1 {
  font-size: var(--fs-h1); line-height: 1.22; color: var(--white);
  font-weight: 300; letter-spacing: .005em;
}
h1 em { font-style: normal; color: var(--white); text-shadow: none; }
.lede {
  margin-top: 22px; font-size: 15px; font-weight: 300;
  color: #b8c6d4; line-height: 1.7; letter-spacing: .015em;
}
.enter {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 8px 0 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; font-weight: 500; letter-spacing: .2em;
  color: var(--cyan); text-decoration: none;
  text-shadow: 0 0 20px color-mix(in srgb, var(--cyan) 22%, transparent);
  transition: color .16s ease, text-shadow .16s ease;
}
.enter--nav { margin-top: 0; padding: 4px 0; font-size: 11px; letter-spacing: .16em; }
.enter-arrow { color: inherit; transition: transform .16s ease; }
.enter:hover, .enter:focus-visible {
  color: #6eebff;
  text-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 36%, transparent);
  outline: none;
}
.enter:hover .enter-arrow, .enter:focus-visible .enter-arrow { transform: translateX(4px); }

.hero__alt { color: var(--cyan); text-decoration: none; font-size: 14.5px; }
.hero__alt:hover { text-decoration: underline; }
.chip {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--fs-chip); letter-spacing: .14em;
  color: #93aabf; text-transform: uppercase;
}

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

section.wrap {
  position: relative;
  padding: var(--sp-8) var(--sp-3);
  margin-top: var(--sp-7);
  scroll-margin-top: 76px;
}
section.wrap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
h2 {
  font-size: var(--fs-h2); font-weight: 300; color: var(--white);
  margin-bottom: 22px; letter-spacing: .005em;
}
.hash { color: var(--cyan); margin-right: 10px; }
p + p { margin-top: 14px; }
.muted { color: var(--muted); }
.muted strong { color: var(--text); }
.small { font-size: 13px; margin-top: 12px; }
.section-lede { max-width: 760px; font-weight: 300; }

ul.gap { list-style: none; margin: 20px 0; }
ul.gap li { padding: 10px 0 10px 30px; position: relative; color: var(--muted); }
ul.gap li::before {
  content: ""; position: absolute; left: 8px; top: 18px;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--cyan) 50%, var(--line));
}

.rule {
  border-left: 3px solid var(--amber); padding: 14px 18px; margin: 24px 0;
  background: color-mix(in srgb, var(--amber) 5%, transparent); color: var(--muted); font-style: italic;
}
.rule strong { color: var(--text); }

.gap a { color: var(--cyan); }

/* ---------- proof list / tables / guarantee / faq (copy-dense blocks) ---------- */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border: 1px solid var(--line); vertical-align: top; }
th { color: var(--cyan); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--bg2); }
th.right { text-align: right; }
td:first-child { color: var(--white); font-weight: 600; white-space: normal; overflow-wrap: break-word; }
td.warn { color: var(--amber); font-weight: 600; }
tr.us td { color: var(--cyan); }

.guarantee {
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, var(--line));
  padding: 26px; margin: 26px 0;
  background: color-mix(in srgb, var(--cyan) 4%, var(--bg2));
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hair-cyan);
}
.guarantee h3 { color: var(--cyan); margin-bottom: 10px; font-size: 18px; }
.guarantee .muted { margin-top: 14px; }
.cta-sub { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* The external reader's verdict form, rendered honestly empty. The one
   artifact the whole lab exists to earn; a facsimile, never a fake result. */
.verdict {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hair);
  padding: 24px 26px;
  margin: 26px 0;
}
.verdict__eyebrow {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.verdict__lede { color: var(--muted); font-size: 14px; max-width: 68ch; }
.verdict__form { margin: 18px 0 10px; display: grid; gap: 14px; }
.verdict__q {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px;
  color: var(--text);
}
.verdict__blank {
  flex: 1 1 180px; min-width: 120px; height: 1em;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
}
.verdict__note { color: var(--muted); font-size: 13px; font-style: italic; }

#founder { text-align: center; }
.founder { max-width: 62ch; margin: 0 auto; }
.founder p { font-size: 16px; line-height: 1.75; }
.founder a { color: var(--cyan); text-decoration: none; }
.founder__receipts {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 22px; margin-top: 20px; padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px;
}
.founder__receipts a { color: var(--cyan); }
.founder__receipts a:hover { text-decoration: underline; }

details {
  border: 1px solid var(--line); margin: 10px 0; background: var(--bg2);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: border-color .2s ease, box-shadow .2s ease;
}
summary { cursor: pointer; padding: 16px 18px; color: var(--white); font-weight: 600; list-style: none; }
summary::before { content: "+ "; color: var(--cyan); }
details[open] {
  border-color: color-mix(in srgb, var(--cyan) 28%, var(--line));
  box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--cyan) 55%, transparent);
}
details[open] summary::before { content: "− "; }
details p { padding: 0 18px 16px; color: var(--muted); }

footer { position: relative; padding: 34px 0; font-size: 13px; color: var(--muted); }
footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
footer a { color: var(--cyan); text-decoration: none; }
footer p { margin-top: 8px; }

/* ---------- reveal on scroll (garnish, never load-bearing) ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-base) ease, transform var(--dur-base) ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav { gap: 12px; padding: 12px 16px; flex-wrap: nowrap; }
  .nav__actions { gap: 8px; }
  .nav__actions .btn--ghost { display: none; }
  .nav__name { letter-spacing: .16em; font-size: 12px; }
}
@media (max-width: 420px) {
  .nav__name { display: none; }
  .nav .btn { padding: 8px 12px; font-size: 12.5px; }
}
@media (max-width: 600px) {
  .chip {
    letter-spacing: .1em;
    white-space: normal;
    line-height: 1.45;
  }
  th, td { padding: 9px 8px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
