/* Orbacle. The palette and soft material of the Orbio ecosystem's newer sites (cream sheets on a greige desk, paper
   cards on hairlines, warm ink, soft lime for the one primary action and the marker, olive mono labels, DM Sans and
   DM Mono, pills), in a layout of Orbacle's own: "Horizon". A dark opening sheet where the oracle's orb rises like a
   planet under a centred headline and the ask box; centred section heads; dark bands for the protocol, the code
   and the last word. Every picture is a fine halftone drawn in the browser (js/dither.js). "noir" is a warm dark
   version of the whole page. */

:root,
[data-theme="temple"] {
  --desk: #e8e6de;
  --sheet: #f4f3ee;
  --paper: #fbfaf7;
  --paper-2: #ffffff;
  --line: #dcd8cc;
  --line-2: #c9c4b6;
  --ink: #1d1a15;
  --ink-2: rgba(29, 26, 21, .8);
  --muted: #6f6a5f;
  --faint: #a39d90;
  --on-ink: #f4f3ee;
  --lime: #d4f36a;
  --lime-ink: #1d1a15;
  --marker: #d4f36a;
  --olive: #4d6a0c;
  --ok: #4d6a0c;
  --wait: #9a6b1f;
  --bad: #b42318;
  --gold: #8a6416;
  --link: #1d1a15;
  --shadow: 0 1px 2px rgba(29, 26, 21, .05), 0 24px 48px -30px rgba(29, 26, 21, .35);
  --dither-dark: 29 26 21;
  --dither-light: 251 250 247;
  --dither-lime: 212 243 106;
  --dither-ground: .985;
  color-scheme: light;
}

[data-theme="noir"] {
  --desk: #0b0a08;
  --sheet: #14120e;
  --paper: #1b1814;
  --paper-2: #221e19;
  --line: #2e2921;
  --line-2: #443c30;
  --ink: #f4efe2;
  --ink-2: rgba(244, 239, 226, .8);
  --muted: #a39c8d;
  --faint: #6b6458;
  --on-ink: #14120e;
  --olive: #c4dc79;
  --ok: #b8d26b;
  --wait: #d9b45a;
  --bad: #ff7a6b;
  --gold: #d9b45a;
  --link: #f4efe2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 48px -30px rgba(0, 0, 0, .8);
  --dither-dark: 27 24 20;
  --dither-light: 244 239 226;
  --dither-ground: .02;
  color-scheme: dark;
}

/* A dark sheet inside the light page: the opening, the protocol, the code, the last word, each page's header. */
.dark {
  --sheet: #1a1713;
  --paper: #221e19;
  --paper-2: #2a251f;
  --line: #342e25;
  --line-2: #4a4134;
  --ink: #f4efe2;
  --ink-2: rgba(244, 239, 226, .82);
  --muted: #a8a090;
  --faint: #6f6858;
  --on-ink: #1a1713;
  --olive: #c4dc79;
  --link: #f4efe2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -30px rgba(0, 0, 0, .7);
  --dither-dark: 26 23 19;
  --dither-light: 244 239 226;
  --dither-ground: .02;
  color: var(--ink);
}
[data-theme="noir"] .dark { --sheet: #0f0d0a; --paper: #191612; --dither-dark: 15 13 10; }

:root {
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gap: 10px;
  --radius: 28px;
  --pad: max(24px, calc((100% - 1160px) / 2));
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { background: var(--desk); }
body { min-height: 100vh; padding: var(--gap); background: var(--desk); color: var(--ink); font: 400 16px/1.6 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--link); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a.link:hover, .prose a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--marker); color: var(--lime-ink); }

.mono { font-family: var(--mono); }
.muted, .dim { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.credit { color: var(--gold); }

mark, .mark-hl { position: relative; background: none; color: inherit; z-index: 0; }
mark::before, .mark-hl::before { content: ''; position: absolute; z-index: -1; inset: .14em -.06em .02em -.05em; background: var(--marker); border-radius: .08em; }
.dark mark, [data-theme="noir"] mark, [data-theme="noir"] .mark-hl { color: var(--lime-ink); }

.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--olive); }
.lbl { font: 500 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font: 400 12px/1.2 var(--mono); color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(29, 26, 21, .2); flex: none; }

/* ---------- Sheets ---------- */
.sheet, main.col, main.wide, .foot { background: var(--sheet); border-radius: var(--radius); margin-bottom: var(--gap); }
.sheet { padding: 96px var(--pad) 104px; }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 780px; margin: 0 auto 48px; }
.h2 { font: 700 clamp(36px, 4.6vw, 64px)/1.02 var(--sans); letter-spacing: -.048em; text-wrap: balance; }
.head .h2 { margin-top: 16px; }
.h2 small { float: right; margin-top: .9em; font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.h2 small a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.intro { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 620px; text-wrap: pretty; }
.lede { color: var(--ink-2); max-width: 620px; font-size: 17px; }

/* ---------- The bar: logo, pages, the network, Connect ---------- */
.topbar { position: relative; z-index: 6; display: flex; align-items: center; gap: 6px; height: 68px; padding: 0 14px 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; }
/* The logo: the halftone orb (an SVG per ground, see js/mark.js) and the wordmark in the headlines' type. */
.mark { display: block; flex: none; color: var(--ink); }
.mark.on-dark { display: none; }
.dark .mark.on-light, [data-theme="noir"] .mark.on-light { display: none; }
.dark .mark.on-dark, [data-theme="noir"] .mark.on-dark { display: block; }
.wm { font: 700 29px/1 var(--sans); letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.topbar .links { display: flex; gap: 2px; }
.topbar .links a { padding: 9px 14px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--muted); }
.topbar .links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.topbar .links a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.topbar .grow { flex: 1; }
.net-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font: 400 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.net-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.net-chip.is-live::before { background: #8fc21b; box-shadow: 0 0 0 3px rgba(143, 194, 27, .22); }
.net-chip.is-demo::before { background: var(--wait); }
.net-chip b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.theme-toggle { height: 38px; padding: 0 12px; border-radius: 999px; font: 400 12px/1 var(--mono); color: var(--muted); }
.theme-toggle:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.menu-btn, .menu { display: none; }

/* ---------- Buttons and chips: pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 500 14px/1 var(--sans); color: var(--ink); white-space: nowrap; letter-spacing: -.01em; transition: border-color .15s, background .15s, filter .15s, transform .1s; }
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.lime { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn.primary:hover, .btn.lime:hover { filter: brightness(.95); }
.btn.ink { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.big { height: 50px; padding: 0 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: 500 12.5px/1 var(--sans); }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.tag { display: inline-flex; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font: 400 11.5px/1 var(--mono); color: var(--ink-2); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs button { padding: 9px 14px; border-radius: 999px; font: 500 13px/1 var(--sans); color: var(--muted); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- Plates: the paper's faint hexagonal dots; the halftone canvas draws over them ---------- */
.plate, [data-dither] {
  position: relative; overflow: hidden; background-color: var(--paper);
  background-image: radial-gradient(rgb(var(--dither-dark) / .13) .75px, transparent 1.05px), radial-gradient(rgb(var(--dither-dark) / .13) .75px, transparent 1.05px);
  background-size: 9px 7.8px; background-position: 0 0, 4.5px 3.9px;
}
.dark .plate, .dark [data-dither], [data-theme="noir"] .plate, [data-theme="noir"] [data-dither] {
  background-image: radial-gradient(rgb(var(--dither-light) / .11) .75px, transparent 1.05px), radial-gradient(rgb(var(--dither-light) / .11) .75px, transparent 1.05px);
}
canvas.dither { position: absolute; left: 0; top: 0; pointer-events: none; }
[data-dither] { cursor: crosshair; }

/* ---------- The opening: dark, the orb rising under the headline ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: clamp(760px, calc(100svh - 2 * var(--gap)), 1000px); margin-bottom: var(--gap); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.hero-center { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px 0; }
.hero h1 { margin-top: 18px; font: 700 clamp(46px, 6.6vw, 100px)/.95 var(--sans); letter-spacing: -.055em; text-wrap: balance; }
.hero .lede { margin-top: 18px; max-width: 560px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.horizon { position: relative; z-index: 1; flex: 1; min-height: 300px; margin-top: -18px; }
.horizon .plate { position: absolute; inset: 0; background-color: transparent; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.horizon .stage { position: absolute; inset: 0; }

/* The ask box: the question, then its controls in the same rounded box. */
.askbox { width: min(720px, 100%); margin-top: 28px; padding: 8px; text-align: left; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.askbox:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 40%, transparent), var(--shadow); }
.askbox input#hq { width: 100%; border: 0; background: transparent; padding: 14px 16px 10px; font: 400 18px/1.4 var(--sans); color: var(--ink); outline: none; box-shadow: none; }
.askbox input#hq::placeholder { color: var(--faint); }
.askbox .row { display: flex; align-items: center; gap: 6px; padding: 4px; flex-wrap: wrap; }
.askbox .grow { flex: 1; }
.kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 500 12.5px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.kinds input:checked + span { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.kinds input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.paymini { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 500 12.5px/1 var(--sans); color: var(--ink-2); }
.paymini input { width: 36px; border: 0; padding: 0; background: transparent; font: 500 13px/1 var(--mono); color: var(--ink); box-shadow: none; }
.paymini input:focus { outline: none; box-shadow: none; }
.quote-line { font-size: 12.5px; color: var(--muted); margin: 0 6px; }
.quote-line b { font: 500 12.5px/1 var(--mono); color: var(--ink); }

/* The tape: the latest answers, on glass, along the bottom of the opening. */
.tape { position: absolute; z-index: 4; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 8px; }
.tape .t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); font: 400 13px/1.3 var(--sans); color: var(--ink-2); }
.tape a.t:hover { border-color: var(--line-2); }
.tape .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape .t i { font: normal 400 12px/1 var(--mono); color: var(--faint); }
.tape .t b { margin-left: auto; font: 700 15px/1.1 var(--sans); color: var(--ink); white-space: nowrap; }
.tape .live { flex: none; gap: 8px; background: var(--lime); color: var(--lime-ink); border-color: transparent; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.tape .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-ink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- The film ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.player .plate { position: absolute; inset: 0; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player .play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; padding: 9px 24px 9px 9px; border-radius: 999px; background: var(--lime); color: #1d1a15; box-shadow: 0 0 0 10px rgba(212, 243, 106, .25), 0 18px 40px -12px rgba(29, 26, 21, .45); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.player .play:hover { transform: translate(-50%, -50%) scale(1.04); }
.player .play .k { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #1d1a15; color: #d4f36a; }
.player .play .k svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.player .play .t { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.player .play .t b { font: 700 17px/1 var(--sans); letter-spacing: -.02em; }
.player .play .t span { font: 400 12px/1 var(--mono); }
.player.playing .play, .player.playing .plate { display: none; }
.chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.chapters > div { padding: 14px 16px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.chapters b { display: block; margin-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .07em; color: var(--olive); }

/* ---------- Built on Orbio ---------- */
.route { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.route span { padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 500 13.5px/1 var(--sans); }
.route span.hl { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.route i { font-style: normal; color: var(--faint); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 36px; }
.reason { padding: 24px 24px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); }
.reason .lbl { color: var(--olive); }
.reason h3 { font: 700 21px/1.2 var(--sans); letter-spacing: -.03em; margin: 14px 0 10px; }
.reason p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: var(--gap); padding: 28px 30px; border-radius: 22px; background: var(--sheet); color: var(--ink); }
.cta-band h3 { font: 700 24px/1.2 var(--sans); letter-spacing: -.03em; }
.cta-band p { margin-top: 6px; color: var(--muted); font-size: 14px; max-width: 540px; }
.cta-band .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- The protocol, on a dark band ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.step { display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.step .art { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line); }
.step .txt { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 20px; flex: 1; }
.step .lbl { color: var(--olive); }
.step h3 { font: 700 19px/1.2 var(--sans); letter-spacing: -.03em; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.step .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 6px; }

/* ---------- The quorum demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr); min-height: 330px; border-radius: 24px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.demo > div { display: flex; flex-direction: column; padding: 24px 26px; min-width: 0; }
.demo > div + div { border-left: 1px solid var(--line); }
.dq { background: linear-gradient(150deg, color-mix(in srgb, var(--lime) 22%, var(--paper)) 0%, var(--paper) 72%); }
.typed { font: 500 28px/1.22 var(--sans); letter-spacing: -.025em; margin: 18px 0 auto; min-height: 3.7em; text-wrap: pretty; }
.typed::after { content: ''; display: inline-block; width: 3px; height: .95em; background: var(--olive); margin-left: 4px; vertical-align: -3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dq .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.dq .meta span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 400 12px/1 var(--mono); color: var(--ink-2); }
.pill-live { padding: 4px 8px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 500 10.5px/1 var(--mono); letter-spacing: .04em; margin-left: 8px; }
.dnodes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.dnode { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sheet); font: 400 12.5px/1.3 var(--mono); transition: border-color .3s, background .3s; }
.dnode .who { color: var(--muted); }
.dnode .s { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dnode.voted { border-color: transparent; background: color-mix(in srgb, var(--lime) 30%, var(--paper)); }
.dnode.voted .s { color: var(--ink); }
.dnode.voted .s b { font-weight: 500; }
.dnode.late .s { color: var(--faint); }
.dsettle { margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dsettle strong { font: 700 60px/.95 var(--sans); letter-spacing: -.05em; color: var(--ink); word-break: break-word; }
.dsettle .waiting { font: 400 12.5px/1.5 var(--mono); color: var(--faint); }
.strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: var(--gap); padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.cost { display: flex; gap: 10px; align-items: baseline; margin-left: auto; font: 400 14px/1 var(--mono); flex-wrap: wrap; }
.cost .muted { font: 400 12px/1 var(--sans); }
.cost s { color: var(--faint); }
.cost b { font: 500 18px/1 var(--mono); }
.save { font-size: 13px; color: var(--muted); }
.save b { margin-left: 6px; padding: 5px 9px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 500 13px/1 var(--mono); }

/* ---------- The chain, now ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.metric-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.metric-card b { font: 400 34px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-card b small { margin-left: 4px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.metric-card span:last-child { font-size: 13px; color: var(--muted); }
.book { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.bcard { padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); }
.bhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bhead .faint { font: 400 12px/1 var(--mono); }
.bcols { display: flex; justify-content: space-between; padding: 0 10px 10px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.bbar { position: relative; display: flex; justify-content: space-between; padding: 13px 10px; font: 400 14px/1 var(--mono); border-bottom: 1px solid var(--line); }
.bbar:last-child { border-bottom: 0; }
.bbar i { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 9px; background: color-mix(in srgb, var(--lime) 55%, transparent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bbar span { position: relative; }
.bbar .k { color: var(--ink-2); }
.rrow { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 13px/1.3 var(--mono); }
.rrow:last-child { border-bottom: 0; }
.rrow .t { color: var(--muted); }
.rrow .q { font: 400 14px/1.35 var(--sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow b { font: 700 14px/1 var(--sans); }
.rrow:hover .q { color: var(--ink); }

/* ---------- The models ---------- */
.mlist { border-radius: 22px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.mhead, .mrow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 84px; gap: 16px; align-items: center; padding: 15px 24px; }
.mhead { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sheet); }
.mhead span:not(:first-child) { text-align: right; }
.mrow { border-top: 1px solid var(--line); }
.mrow .n b { font: 600 15px/1.3 var(--sans); }
.mrow .n span { display: block; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.mrow s { color: var(--faint); font: 400 14px/1 var(--mono); text-align: right; }
.mrow .via { font: 500 15px/1 var(--mono); text-align: right; }
.mrow .badge { justify-self: end; padding: 5px 9px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 500 12px/1 var(--mono); }

/* ---------- Code, on a dark card ---------- */
.codecard { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.codecard .tabs { padding: 10px; border-bottom: 1px solid var(--line); }
.codecard pre.code { border: 0; border-radius: 0; background: transparent; }

/* ---------- FAQ, by the pythia ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: var(--gap); align-items: stretch; }
.faq-grid .art { border-radius: 22px; border: 1px solid var(--line); min-height: 480px; }
.faq { border-radius: 22px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 19px 22px; font: 500 17px/1.35 var(--sans); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font: normal 400 12px/1 var(--mono); color: var(--faint); }
.faq summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px 66px; color: var(--muted); max-width: 720px; }

/* ---------- The last word: the sibyl, in halftone, and the line ---------- */
.finale { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 640px; padding: 80px var(--pad); overflow: hidden; }
.finale .art { position: absolute; inset: 0; background-color: var(--sheet); }
.finale::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent 35%, color-mix(in srgb, var(--sheet) 85%, transparent) 62%); }
.finale .copy { position: relative; z-index: 2; max-width: 520px; }
.finale h2 { margin-top: 20px; font: 700 clamp(46px, 5.6vw, 84px)/.95 var(--sans); letter-spacing: -.055em; }
.finale p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.finale .btns { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Inner pages: a dark header sheet with its plate, then the content sheet ---------- */
.page-hero { position: relative; margin-bottom: var(--gap); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.page-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: stretch; min-height: 300px; padding-left: var(--pad); }
.page-hero-in > .page-head { padding: 40px 24px 44px 0; justify-content: flex-end; margin: 0; }
.page-plate { margin: 0 14px 14px 0; border-radius: 20px; }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.page-head h1 { font: 700 clamp(44px, 5.4vw, 76px)/.98 var(--sans); letter-spacing: -.05em; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.page-head .lede { font-size: 18px; color: var(--muted); }
.col { max-width: 900px; margin: 0 auto; padding: 48px 24px 72px; }
.wide { padding: 44px var(--pad) 72px; }
main.col { max-width: none; padding: 52px var(--pad) 88px; }
main.col > * { max-width: 900px; }
main.wide { max-width: none; padding: 52px var(--pad) 88px; }
.col > section + section, .wide > section + section { margin-top: 56px; }
main .h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 18px; }

.card { padding: 20px 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.cards { display: grid; gap: var(--gap); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.step .n { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metric .k { color: var(--muted); font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.metric .v { font: 400 30px/1.2 var(--mono); letter-spacing: -.03em; margin-top: 10px; }
.metric .v small { font-size: 13px; color: var(--muted); margin-left: 4px; }

/* ---------- Status ---------- */
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st.ok { color: var(--ok); }
.st.wait { color: var(--wait); }
.st.wait::before { animation: pulse 1.4s ease-in-out infinite; }
.st.x { color: var(--bad); }
.answer { font-weight: 700; }

/* ---------- Rows ---------- */
.rows { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 56px 56px; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; transition: background .12s; }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--sheet); }
.row .id { font: 400 13px/1 var(--mono); color: var(--muted); }
.row .q { font: 500 14px/1.35 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .a { justify-self: end; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.row .v, .row .t { font: 400 13px/1 var(--mono); color: var(--muted); text-align: right; }
.rows .empty { padding: 26px 22px; color: var(--muted); }
.row.node { grid-template-columns: minmax(0, 1fr) 160px 140px 100px; }
.row.head { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 13px; padding-bottom: 13px; background: var(--sheet); }
.filters { display: flex; gap: 6px; margin-bottom: 12px; }

/* ---------- Key / value ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 13px; }
.kv dt { color: var(--muted); font: 500 11px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kv dd { font-family: var(--mono); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv dd a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- Code and prose ---------- */
pre.code { padding: 22px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font: 400 12.5px/1.75 var(--mono); color: var(--ink-2); overflow: auto; }
pre.code .c { color: var(--faint); } pre.code .k { color: var(--ink); font-weight: 500; } pre.code .s { color: var(--olive); }
code.inline { font: 400 .88em var(--mono); background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 700px; }
.prose p + p, .prose p + pre, .prose pre + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th { text-align: left; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px; border-bottom: 1px solid var(--line-2); }
table.spec td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.spec td:first-child { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 20px; }
.field > label, .field > .label { color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; }
.field > label span, .field > .label span { text-transform: none; letter-spacing: 0; font-size: 12px; }
textarea, input[type="text"], input[type="number"], select { width: 100%; padding: 13px 15px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); font: 400 15px/1.5 var(--sans); }
input[type="number"] { font: 500 22px/1.2 var(--mono); }
textarea { min-height: 96px; resize: vertical; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 55%, transparent); }
.seg, .toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choices .ch { display: grid; grid-template-columns: 22px 1fr 36px; gap: 8px; align-items: center; }
.choices .ch span { color: var(--muted); font: 400 12px/1 var(--mono); text-align: right; }
.hint { color: var(--muted); font-size: 13px; }
.err { color: var(--bad); font-size: 13px; }

/* ---------- Request page ---------- */
.req-meta { color: var(--muted); font: 400 13px/1.4 var(--mono); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.question { font: 500 20px/1.45 var(--sans); letter-spacing: -.015em; white-space: pre-wrap; word-break: break-word; }
.choice-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.choice-list div { display: flex; gap: 10px; color: var(--ink-2); }
.choice-list div span { color: var(--muted); width: 18px; font-family: var(--mono); }
.choice-list div.win { color: var(--ink); font-weight: 600; }
.answer-big { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.answer-big strong { font: 700 64px/1.05 var(--sans); letter-spacing: -.05em; word-break: break-word; }
.answer-big strong.pending { color: var(--muted); font-size: 36px; }
.answer-big span { color: var(--muted); }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.vote { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vote .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vote .who { font-family: var(--mono); font-size: 13px; }
.vote .hash { color: var(--faint); font: 400 12px/1 var(--mono); }
.vote .check { margin-left: auto; font-size: 13px; }
.vote .check.ok { color: var(--ok); } .vote .check.bad { color: var(--bad); } .vote .check.na { color: var(--faint); }
.vote .open { margin-top: 8px; font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.transcript { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); max-height: 380px; overflow: auto; font: 400 12.5px/1.6 var(--mono); }
.transcript .msg + .msg { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.transcript .role { color: var(--olive); }
.transcript .body { white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.transcript .meta { color: var(--muted); margin-bottom: 8px; }

/* ---------- Ask ---------- */
.ask-grid { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 24px; align-items: start; }
.quote { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sheet); font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.quote b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.submit { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.console { border-radius: 22px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 540px; overflow: hidden; }
.console .bar { display: flex; align-items: center; gap: 10px; height: auto; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 400 12px/1 var(--mono); }
.console .bar .dots { display: flex; gap: 6px; } .console .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.console .out { flex: 1; padding: 18px 20px; font: 400 13px/1.8 var(--mono); overflow: auto; }
.console .ln { white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.console .ln .p { color: var(--olive); }
.console .ln .ok { color: var(--ok); }
.console .ln .bad { color: var(--bad); }
.console .ln .dim { color: var(--muted); }
.console .big { font: 700 54px/1.15 var(--sans); letter-spacing: -.045em; color: var(--ink); margin: 14px 0 6px; }

/* ---------- Footer ---------- */
.foot { padding: 56px var(--pad) 28px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .6fr)); gap: 40px; }
.foot .about p { margin-top: 18px; max-width: 420px; line-height: 1.65; }
.foot .about p + p { margin-top: 10px; }
.foot h4 { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--ink); }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot .logo { display: inline-flex; align-items: center; gap: 9px; }
.foot .logo .wm { font-size: 33px; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 44px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); font: 400 12px/1.4 var(--mono); }
.foot-bar .grow { flex: 1; }
.foot-bar button { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); font: 400 11px/1 var(--mono); color: var(--muted); }
.foot-bar button:hover { color: var(--ink); border-color: var(--line-2); }
.foot .fine { margin-top: 16px; font-size: 12px; color: var(--faint); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; box-shadow: var(--shadow); }

@media (max-width: 1120px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo { grid-template-columns: 1fr 1fr; }
  .demo .ds { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .book { grid-template-columns: 1fr; }
  .mhead, .mrow { grid-template-columns: minmax(0, 1fr) 90px 72px; }
  .mhead span:nth-child(2), .mrow s { display: none; }
  .cost { margin-left: 0; }
  .strip { border-radius: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .topbar .net-chip .blk { display: none; }
}
@media (max-width: 860px) {
  :root { --gap: 6px; --radius: 22px; }
  .topbar { height: 60px; padding: 0 10px 0 16px; }
  .topbar .links, .topbar > .net-chip, .topbar > .theme-toggle { display: none; }
  .menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); margin-left: 4px; }
  .menu-btn svg { width: 18px; height: 18px; }
  .topbar.open .menu { display: flex; flex-direction: column; position: absolute; left: 10px; right: 10px; top: calc(100% + 4px); padding: 8px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu a { padding: 13px 14px; border-radius: 14px; font: 500 16px/1 var(--sans); }
  .menu a[aria-current="page"] { background: var(--sheet); }
  .menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 14px 6px; border-top: 1px solid var(--line); }
  .hero { height: auto; }
  .hero-center { padding: 22px 18px 0; }
  .hero .lede { font-size: 16px; }
  .horizon { flex: none; height: 300px; margin-top: 4px; }
  .askbox input#hq { font-size: 16px; }
  .tape { position: relative; left: auto; right: auto; bottom: auto; margin: -78px 10px 10px; flex-direction: column; }
  .tape .t:nth-child(n + 3) { display: none; }
  .tape .live { align-self: flex-start; }
  .sheet { padding: 64px 18px 72px; }
  .head { margin-bottom: 32px; }
  .reasons, .chapters { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .art { min-height: 320px; }
  .faq details p { padding: 0 18px 18px 56px; }
  .finale { min-height: 0; flex-direction: column; align-items: stretch; padding: 0 18px 44px; }
  .finale .art { position: relative; inset: auto; height: 320px; margin: 0 -18px 28px; }
  .finale::after { display: none; }
  .page-hero-in { grid-template-columns: 1fr; min-height: 0; padding-left: 0; }
  .page-hero-in > .page-head { padding: 26px 18px 30px; }
  .page-plate { display: none; }
  .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 48px minmax(0, 1fr) 96px; padding: 13px 16px; }
  .row .v, .row .t { display: none; }
  .row.node { grid-template-columns: minmax(0, 1fr) 100px; }
  main.col, main.wide { padding: 32px 16px 56px; }
  .req-grid, .ask-grid { grid-template-columns: 1fr; }
  .answer-big strong { font-size: 46px; }
  .cta-band { padding: 24px; }
}
@media (max-width: 560px) {
  .reasons, .chapters, .steps, .metrics, .cards.three, .cards.four { grid-template-columns: 1fr; }
  .step { flex-direction: row; }
  .step .art { width: 120px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .askbox .row .grow { display: none; }
  .askbox .btn.big { width: 100%; }
  .player .play { padding: 7px 18px 7px 7px; }
  .player .play .k { width: 40px; height: 40px; }
  .player .play .t span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tape .live::before, .st.wait::before, .typed::after { animation: none; }
}
