/* Pyx site.
   Direction (see docs/DECISIONS.md D17): a near-black neutral canvas, one family at light display
   weights, an editorial grid with labels on the left, hairlines instead of cards, colour only
   where it means something (mint = held, coral = leak, amber = blocked), and liquid glass only
   where Apple's guidance puts it: the navigation layer and one lens. */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #16161a;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #ededef;
  --t2: rgba(237, 237, 239, 0.66);
  --t3: rgba(237, 237, 239, 0.56);
  --pass: #5fe0b0;
  --leak: #ff6a5c;
  --warn: #ffc457;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 255, 255, 0.2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.t-pass { color: var(--pass); } .t-leak { color: var(--leak); } .t-warn { color: var(--warn); }
.dim { color: var(--t3); }

/* ---------------- type ---------------- */
.label { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--t3); margin: 0; text-transform: none; }
h1, h2, h3 { margin: 0; font-weight: 460; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 86px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; max-width: 18ch; }
h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 560; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--t2); max-width: 52ch; margin: 28px 0 0; }
.body { color: var(--t2); max-width: 62ch; margin: 28px 0 0; }
.note { color: var(--t3); font-size: 14.5px; margin: 18px 0 0; max-width: 80ch; }
.note a, .body a, .faq a { color: var(--t2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.2s; }
.link:hover { border-color: var(--text); }
.link::after { content: " →"; color: var(--t3); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 0;
  background: #f3f3f4; color: #0a0a0b; font: 560 15.5px/1 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px -12px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 36px; padding: 0 15px; border-radius: 10px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn--block { width: 100%; }
.cmd {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 12px;
  background: var(--bg-2); color: var(--t2); border: 0; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 400 14.5px/1 var(--mono); cursor: pointer; transition: color 0.2s, box-shadow 0.2s;
}
.cmd:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.cmd__p { color: var(--t3); }
.cmd__c { font-size: 12px; color: var(--t3); border-left: 1px solid var(--line-2); padding-left: 10px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------------- nav: the one glass bar ---------------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.nav__bar {
  pointer-events: auto; width: min(var(--wrap), 100% - 32px); margin: 0 auto; height: 58px;
  display: flex; align-items: center; gap: 28px; padding: 0 11px 0 18px; border-radius: 16px;
  background: rgba(16, 16, 18, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav--top .nav__bar { background: rgba(16, 16, 18, 0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14.5px; color: var(--t2); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav__links { display: none; } .nav__bar > .btn { margin-left: auto; } }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.hero::before {
  /* One cool light from above. Not a gradient blob: a single source the lens can catch. */
  content: ""; position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(50% 50% at 62% 30%, rgba(170, 190, 255, 0.075), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; gap: 56px; } .hero { padding-top: 130px; } }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 4.5vw, 66px); line-height: 1.04; letter-spacing: -0.04em; }
.hero h1 .dim { display: block; }
.proofline { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font: 400 13px/1.4 var(--mono); }
.proofline li { position: relative; padding-left: 14px; }
.proofline li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 10px rgba(95, 224, 176, 0.6); }
.proofline a { color: var(--t2); text-decoration: none; transition: color 0.2s; }
.proofline a:hover { color: var(--text); }

/* Entrance: lines rise once, then stay put. */
.in { opacity: 0; transform: translateY(14px); animation: in 0.9s var(--ease) forwards; }
.in-1 { animation-delay: 0.05s; } .in-2 { animation-delay: 0.15s; } .in-3 { animation-delay: 0.3s; } .in-4 { animation-delay: 0.42s; } .in-5 { animation-delay: 0.55s; }
@keyframes in { to { opacity: 1; transform: none; } }

/* ---------------- the ledger and the lens ---------------- */
.ledger {
  --lx: 50%; --ly: 50%;
  position: relative; margin: 0; padding: 18px 0 0; border-radius: 20px; overflow: hidden; cursor: none; touch-action: pan-y;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
  user-select: none; -webkit-user-select: none;
}
.ledger__head, .ledger__row {
  display: grid; grid-template-columns: 0.9fr 1fr 1.25fr 0.55fr 0.85fr; gap: 10px; padding: 0 22px;
  font: 400 12.5px/1.25 var(--mono); white-space: nowrap;
}
.ledger__head { color: var(--t3); padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.ledger__row { height: 30px; align-items: center; color: rgba(237, 237, 239, 0.46); border-bottom: 1px solid rgba(255, 255, 255, 0.035); }
.ledger__row span { overflow: hidden; text-overflow: ellipsis; }
.ledger__rows { position: relative; }
.ledger figcaption { padding: 16px 22px 18px; font-size: 13.5px; color: var(--t3); border-top: 1px solid var(--line); }
.ledger figcaption b { color: var(--t2); font-weight: 500; }
.ledger::after {
  /* fade the bottom rows into the caption */
  content: ""; position: absolute; left: 0; right: 0; bottom: 52px; height: 60px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.v-ok { color: var(--t3); }
.v-held { color: rgba(237, 237, 239, 0.55); }
.v-own { color: var(--pass); }
.v-leak { color: var(--leak); font-weight: 500; }
.ledger__row--leak { background: rgba(255, 106, 92, 0.07); }

.lens {
  --r: 110px;
  position: absolute; left: 0; top: 0; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%;
  transform: translate3d(calc(var(--lx) - var(--r)), calc(var(--ly) - var(--r)), 0);
  overflow: hidden; pointer-events: none; z-index: 2;
  background: var(--bg-2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 2px 3px 2px -1px rgba(255, 255, 255, 0.55),
    inset -3px -4px 6px -2px rgba(255, 255, 255, 0.12),
    inset 0 0 30px rgba(255, 255, 255, 0.05),
    0 24px 60px -16px rgba(0, 0, 0, 0.9),
    0 0 0 8px rgba(255, 255, 255, 0.015);
}
.lens::after {
  /* specular highlight on the upper-left of the glass */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 40% at 32% 18%, rgba(255, 255, 255, 0.2), transparent 70%), radial-gradient(70% 50% at 70% 100%, rgba(170, 190, 255, 0.08), transparent 70%);
}
.lens__mag { position: absolute; transform-origin: 0 0; padding-top: 18px; }
.lens__mag .ledger__row { color: rgba(237, 237, 239, 0.86); }
.lens__mag .ledger__head { color: rgba(237, 237, 239, 0.6); }
@media (max-width: 640px) {
  .ledger__head, .ledger__row { grid-template-columns: 0.85fr 0.6fr 1.45fr 0.95fr; gap: 8px; padding: 0 12px; font-size: 12px; }
  .ledger__head span:nth-child(4), .ledger__row span:nth-child(4) { display: none; }
  .lens { --r: 84px; }
}

/* ---------------- sections ---------------- */
.sec { padding: 132px 0 0; }
.sec__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.sec__grid--tight { margin-top: 56px; }
.sec__label { padding-top: 14px; border-top: 1px solid var(--line-2); align-self: start; }
.sec__body { min-width: 0; }
@media (max-width: 900px) { .sec__grid { grid-template-columns: 1fr; gap: 22px; } .sec { padding-top: 104px; } }

/* 01 specimens */
.specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 48px; background: var(--line); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 800px) { .specimens { grid-template-columns: 1fr; } }
.specimen { background: var(--bg-2); padding: 26px 26px 22px; font: 400 13.5px/1.6 var(--mono); }
.specimen__req { color: var(--t2); }
.specimen__req span { color: var(--t3); }
.specimen__res { margin-top: 14px; color: var(--t2); word-break: break-word; }
.specimen__res .ok { color: var(--text); margin-right: 8px; }
.specimen__res code { font-size: 1em; }
.specimen__verdict { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line-2); font: 500 15px/1.4 var(--sans); }
.specimen__verdict--pass { color: var(--pass); }
.specimen__verdict--leak { color: var(--leak); }
.specimen--leak { background: linear-gradient(180deg, rgba(255, 106, 92, 0.06), rgba(255, 106, 92, 0.015)), var(--bg-2); }

/* 02 doors */
.doors { margin-top: 48px; border-top: 1px solid var(--line-2); }
.doors__row { display: grid; grid-template-columns: 1fr 1.4fr 1.6fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--t2); align-items: baseline; }
.doors__row b { color: var(--text); font-weight: 560; }
.doors__row .mono { font-size: 13px; }
.doors__row--head { padding: 14px 0; font: 400 12px/1.4 var(--mono); color: var(--t3); }
@media (max-width: 800px) {
  .doors__row { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .doors__row--head { display: none; }
  .doors__row span:nth-child(3) { grid-column: 1 / -1; }
}

/* 03 window */
.window { margin-top: 56px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 120px -50px rgba(0, 0, 0, 0.9); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.window__title { font-size: 13.5px; color: var(--t3); }
.window__title b { color: var(--t2); font-weight: 500; }
.tabs { margin-left: auto; position: relative; display: flex; padding: 3px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--t3); font: 500 13px/1 var(--sans); padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: color 0.2s; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 8px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.window__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 420px; }
@media (max-width: 820px) { .window__body { grid-template-columns: minmax(0, 1fr); } .window__title { display: none; } }
.rels { padding: 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 820px) { .rels { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; } }
.rel { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--t2); font: inherit; cursor: pointer; min-width: 172px; transition: background 0.2s, color 0.2s; }
.rel:hover { background: rgba(255, 255, 255, 0.03); }
.rel[aria-pressed="true"] { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.rel b { font-size: 14.5px; font-weight: 560; }
.rel small { grid-column: 1; font-size: 12.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--pass { background: var(--pass); } .dot--leak { background: var(--leak); box-shadow: 0 0 10px rgba(255, 106, 92, 0.7); }
.pane { padding: 28px 30px 30px; min-width: 0; }
.pane__head { display: flex; align-items: center; gap: 14px; }
.pane__head h3 { font-size: 22px; font-weight: 560; letter-spacing: -0.02em; }
.status { font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 7px; }
.status--pass { color: var(--pass); background: rgba(95, 224, 176, 0.09); }
.status--leak { color: var(--leak); background: rgba(255, 106, 92, 0.1); }
.pane__sub { margin: 8px 0 22px; font-size: 14px; color: var(--t3); }
.view { animation: fade 0.45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.changes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.change { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.change::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.change--gain::before { background: var(--leak); box-shadow: 0 0 12px rgba(255, 106, 92, 0.6); }
.change--ok::before { background: var(--pass); }
.change__text b { display: block; font-weight: 560; font-size: 15.5px; }
.change--gain b { color: #ffb3ab; }
.change__text small { display: block; margin-top: 3px; color: var(--t3); font-size: 14px; }
.route { font: 400 12.5px/1.6 var(--mono); color: var(--t3); white-space: nowrap; }
@media (max-width: 640px) { .change { grid-template-columns: 16px minmax(0, 1fr); } .route { grid-column: 2; white-space: normal; } .pane { padding: 22px 18px; } }
.paths-grid { display: grid; grid-template-columns: minmax(110px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 13.5px; }
.paths-grid .h { font: 400 12px/1.4 var(--mono); color: var(--t3); padding: 0 4px 6px; }
.paths-grid .a { color: var(--text); font-weight: 520; padding: 10px 4px; }
.paths-grid .a small { display: block; font-weight: 400; color: var(--t3); font-size: 12.5px; }
.cell { display: flex; align-items: center; justify-content: center; border-radius: 8px; font: 400 12.5px/1 var(--mono); }
.cell--pass { color: var(--t2); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.cell--own { color: var(--pass); background: rgba(95, 224, 176, 0.06); box-shadow: inset 0 0 0 1px rgba(95, 224, 176, 0.18); }
.cell--leak { color: var(--leak); background: rgba(255, 106, 92, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 106, 92, 0.35); }
.evidence-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px 20px; margin: 0; font-size: 14px; }
.evidence-dl dt { color: var(--t3); }
.evidence-dl dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--t2); word-break: break-word; }

/* terminal */
.term { border-radius: 14px; background: #08080a; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.term__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font: 400 12.5px/1.4 var(--mono); color: var(--t3); }
.term__bar span::before { content: "$ "; }
.term__copy { border: 0; background: transparent; color: var(--t3); font: inherit; cursor: pointer; }
.term__copy:hover { color: var(--text); }
.term pre { margin: 0; padding: 20px 18px 22px; overflow-x: auto; font: 400 13px/1.75 var(--mono); color: var(--t2); }

/* 04 proof (markup generated by scripts/build-benchmark.mjs) */
.score { display: flex; flex-wrap: wrap; gap: 20px 64px; margin-top: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line-2); }
.score__n { font-size: clamp(56px, 7vw, 92px); font-weight: 420; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.score__n small { font-size: 0.36em; color: var(--t3); letter-spacing: -0.01em; margin-left: 6px; }
.score__l { margin-top: 10px; font-size: 14.5px; color: var(--t2); max-width: 24ch; }
.score__item--pass .score__n { color: var(--pass); }
.score__item--warn .score__n { color: var(--warn); }
.bench { margin: 0; }
.bench__row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px; gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--t2); }
.bench__row code { color: var(--text); }
.bench__layer { font: 400 12.5px/1.4 var(--mono); color: var(--t3); }
.bench__got { font: 500 12.5px/1.4 var(--mono); text-align: right; }
.bench__got--detected { color: var(--pass); } .bench__got--blocked { color: var(--warn); } .bench__got--missed { color: var(--leak); }
@media (max-width: 640px) { .bench__row { grid-template-columns: minmax(0, 1fr) auto; } .bench__layer { display: none; } }

/* 05 facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line-2); }
.fact { padding: 30px 32px 32px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 32px; padding-right: 0; }
.fact p { color: var(--t2); margin: 10px 0 16px; font-size: 15.5px; max-width: 46ch; }
.fact a { font-size: 14.5px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.fact a::after { content: " →"; color: var(--t3); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact, .fact:nth-child(even) { padding: 26px 0; border-right: 0; } .fact:nth-child(odd) { border-right: 0; } }

/* 06 report */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.shot { display: block; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(0, 0, 0, 0.9); transition: transform 0.5s var(--ease); }
.shot:hover { transform: translateY(-3px); }
.shot img { width: 100%; height: auto; }

/* 07 pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-radius: 20px; overflow: hidden; background: var(--line); gap: 1px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--bg); padding: 34px 32px 32px; display: flex; flex-direction: column; }
.plan--main { background: var(--bg-2); }
.plan__name { margin: 0; font: 500 13px/1.4 var(--mono); color: var(--t2); }
.plan--main .plan__name { color: var(--pass); }
.plan__price { margin: 18px 0 0; font-size: 52px; font-weight: 440; letter-spacing: -0.045em; line-height: 1; }
.plan__price small { font-size: 14.5px; letter-spacing: 0; color: var(--t3); font-weight: 400; margin-left: 4px; }
.plan__for { margin: 14px 0 0; color: var(--t2); font-size: 15.5px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; flex: 1; border-top: 1px solid var(--line); }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--t2); }
.plans__note { margin-top: 22px; }

/* 08 faq */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--t3); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--t2); max-width: 64ch; }

/* close */
.close { padding: 160px 0 140px; }
.close h2 { max-width: 20ch; font-size: clamp(40px, 5.4vw, 76px); }
.close .dim { display: block; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 48px; }
.foot__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px 48px; }
.foot__brand { font-size: 64px; font-weight: 440; letter-spacing: -0.05em; line-height: 1; color: rgba(237, 237, 239, 0.9); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: start; justify-content: flex-end; }
.foot nav a { color: var(--t2); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--text); }
.foot__small { grid-column: 1 / -1; margin: 18px 0 0; color: var(--t3); font-size: 13px; }
@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } }

/* reveal on scroll */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal--armed { opacity: 0; transform: translateY(18px); }

/* ---------------- document pages (trust, verify, terms, privacy) ---------------- */
.doc { padding: 150px 0 120px; }
.doc__head h1 { max-width: 20ch; }
.doc__head .lede { max-width: 60ch; }
.doc__head h1 { font-size: clamp(40px, 5vw, 68px); }
.doc__head .lede { margin-top: 24px; }
.doc .sec { padding-top: 96px; }
.doc .sec:first-of-type { padding-top: 72px; }
.prose { max-width: 70ch; color: var(--t2); }
.prose h2 { font-size: clamp(26px, 3vw, 36px); max-width: none; color: var(--text); margin: 0 0 18px; }
.prose h3 { color: var(--text); margin: 30px 0 8px; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose code { color: var(--text); }
.kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1px solid var(--line-2); margin: 24px 0; }
.kv dt, .kv dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv dt { color: var(--t3); }
.kv dd { color: var(--t2); }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 2px; } }
.table-wrap { overflow-x: auto; margin: 24px 0; border-top: 1px solid var(--line-2); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 400 12px/1.4 var(--mono); color: var(--t3); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--t2); vertical-align: top; }
.table td.mono { font-size: 12.5px; white-space: nowrap; }
.table td.url { white-space: normal; word-break: break-all; min-width: 260px; }
.prose .table-wrap { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in { animation: none; opacity: 1; transform: none; }
  .reveal, .reveal--armed { opacity: 1; transform: none; transition: none; }
  .view { animation: none; }
}
.lens__in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.ledger--static { cursor: default; }
.prose * + h2 { margin-top: 44px; }

/* ================= Minimal homepage (v3.1): one idea per screen ================= */
.home .sec { padding-top: 200px; }
.center { text-align: center; }
.center h2 { margin-inline: auto; max-width: 16ch; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.045em; }
.sub { margin: 18px 0 0; color: var(--t3); font-size: clamp(17px, 1.6vw, 20px); }
.home .hero { padding: 200px 0 0; }
.hero__center { text-align: center; }
.hero__center h1 { font-size: clamp(48px, 7.4vw, 108px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 470; }
.hero__center .lede { margin: 26px auto 0; color: var(--t3); font-size: clamp(18px, 1.9vw, 24px); letter-spacing: -0.015em; }
.hero__center .ctas { justify-content: center; margin-top: 40px; }
.home .ledger { max-width: 920px; margin: 96px auto 0; }
.home .ledger figcaption { text-align: center; }
@media (max-width: 900px) { .home .sec { padding-top: 140px; } .home .hero { padding-top: 150px; } .home .ledger { margin-top: 64px; } }

.home .specimens { max-width: 920px; margin: 64px auto 0; text-align: left; }
.home .specimen__verdict { font-size: 14px; font-family: var(--mono); font-weight: 500; }

.doors { max-width: 920px; margin: 64px auto 0; border-top: 1px solid var(--line-2); text-align: left; }
.door { display: grid; grid-template-columns: 1fr 1.1fr 150px; gap: 24px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--line); }
.door__name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.door__path { font: 400 13.5px/1.4 var(--mono); color: var(--t3); }
.door__tag { font: 500 13px/1.4 var(--mono); text-align: right; }
@media (max-width: 700px) { .door { grid-template-columns: 1fr auto; gap: 6px 16px; } .door__path { grid-column: 1 / -1; order: 3; } }

.home .window { max-width: 1040px; margin: 64px auto 0; }
.home .window__body { min-height: 340px; }
.home .pane__head { margin-bottom: 22px; }
.home .change { padding: 20px 0; align-items: center; }
.home .change::before { margin-top: 0; }

.score { justify-content: center; gap: 24px 96px; margin: 72px auto 0; border-bottom: 0; padding-bottom: 0; }
.score__item { text-align: center; }
.score__n { font-size: clamp(64px, 8vw, 112px); }
.score__l { margin: 12px auto 0; max-width: 18ch; color: var(--t3); }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; margin: 64px auto 0; border-top: 1px solid var(--line-2); text-align: left; }
.pillar { display: block; padding: 28px 24px 30px 0; text-decoration: none; border-bottom: 1px solid var(--line); transition: opacity 0.2s; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.pillar span { display: block; margin-top: 6px; color: var(--t3); font-size: 14.5px; }
.pillar span::after { content: " →"; }
.pillar:hover b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar + .pillar { padding-left: 0; border-left: 0; } }

.home .shot { max-width: 1040px; margin: 56px auto 0; }

.home .plans { max-width: 1040px; margin: 64px auto 0; text-align: left; }
.home .plan { padding: 36px 32px; }
.home .plan__price { font-size: 64px; margin-top: 20px; }
.plan__per { margin: 8px 0 0; color: var(--t3); font-size: 14.5px; }
.home .plan ul { margin: 30px 0 32px; }
.fine { margin: 26px auto 0; color: var(--t3); font-size: 14px; max-width: 60ch; }

.home .close { padding: 220px 0 200px; }
.home .close h2 { font-size: clamp(44px, 6.4vw, 96px); max-width: none; }
.home .close .ctas { justify-content: center; }

.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
.foot__brand-sm { font-weight: 560; letter-spacing: -0.02em; }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot__row nav a { color: var(--t3); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.foot__row nav a:hover { color: var(--text); }

/* Reserve the ledger's height before the script fills it (no layout shift). */
#ledger-base, #ledger-mag { min-height: 540px; }
.label, .door__path, .route, .bench__layer, .term__bar, .doors__row--head, .table th { font-size: max(12px, 1em); }
