/* ASK Orders — shared site styles.
   Tokens follow orders/BRAND.md §5. Light by default, dark via prefers-color-scheme,
   and an explicit override through <html data-theme="light|dark">. */

:root {
  color-scheme: light;
  --paper: #f4f6ef;
  --panel: #fbfcf8;
  --ink: #14230c;
  --ink-2: #3a4832;
  --muted: #56634e;
  --rule: #cbd5c0;
  --rule-strong: #9fae93;
  --brand: #2d5016;
  --brand-ink: #f4f6ef;
  --brand-soft: #e2ead8;
  --verified: #1f6b3a;
  --asserted: #835f0e;
  --unavailable: #525c67;
  --failed: #9b2226;
  --verified-bg: #e3efe4;
  --asserted-bg: #f5ecd5;
  --unavailable-bg: #e7e9ec;
  --failed-bg: #f6e0df;
  --term-bg: #18210f;
  --term-ink: #dfe8d6;
  --term-dim: #9fb293;
  --focus: #2d5016;
  --shadow: 0 1px 0 rgba(20, 35, 12, 0.06), 0 12px 32px -18px rgba(20, 35, 12, 0.35);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f150c;
    --panel: #151d11;
    --ink: #e5ece0;
    --ink-2: #c4cfbc;
    --muted: #9eac95;
    --rule: #2b3625;
    --rule-strong: #46553d;
    --brand: #9cc97a;
    --brand-ink: #0f150c;
    --brand-soft: #1e2a18;
    --verified: #7fcf93;
    --asserted: #e3b95a;
    --unavailable: #a7b0ba;
    --failed: #f0928d;
    --verified-bg: #16301f;
    --asserted-bg: #33290f;
    --unavailable-bg: #22272d;
    --failed-bg: #3a1a19;
    --term-bg: #0a0f08;
    --term-ink: #dfe8d6;
    --term-dim: #8fa184;
    --focus: #9cc97a;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 36px -20px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f150c;
  --panel: #151d11;
  --ink: #e5ece0;
  --ink-2: #c4cfbc;
  --muted: #9eac95;
  --rule: #2b3625;
  --rule-strong: #46553d;
  --brand: #9cc97a;
  --brand-ink: #0f150c;
  --brand-soft: #1e2a18;
  --verified: #7fcf93;
  --asserted: #e3b95a;
  --unavailable: #a7b0ba;
  --failed: #f0928d;
  --verified-bg: #16301f;
  --asserted-bg: #33290f;
  --unavailable-bg: #22272d;
  --failed-bg: #3a1a19;
  --term-bg: #0a0f08;
  --term-ink: #dfe8d6;
  --term-dim: #8fa184;
  --focus: #9cc97a;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 36px -20px rgba(0, 0, 0, 0.8);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.wrap > * { min-width: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.86em; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; text-wrap: balance; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; }
img, svg { max-width: 100%; }
b, strong { font-weight: 600; }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 3px; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding-block: 16px;
}
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); flex-wrap: wrap; min-width: 0; }
.mark b { font-family: var(--display); font-stretch: 118%; font-weight: 850; font-size: 20px; letter-spacing: 0.01em; }
.mark span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; min-width: 0; }
.nav a { color: var(--ink-2); text-decoration: none; padding-block: 4px; }
.nav a:hover { color: var(--brand); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.nav a.nav-cta {
  border: 1.5px solid var(--brand); color: var(--brand); padding: 6px 12px; border-radius: 3px; font-weight: 600;
}
.nav a.nav-cta[aria-current="page"] { background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.theme-toggle {
  font: 500 13px var(--mono); color: var(--muted); background: transparent; border: 1px solid var(--rule-strong);
  border-radius: 3px; padding: 5px 8px; cursor: pointer;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }

/* status banner (what is true today) */
.status-bar { background: var(--brand-soft); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.status-bar .wrap { padding-block: 8px; }
.status-bar b { color: var(--ink); }

/* ---------- buttons ---------- */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 3px;
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink);
}
.btn.ghost { background: transparent; color: var(--brand); }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-block: 56px 64px; align-items: start; }
.hero > * { min-width: 0; }
.hero .problem-line { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); margin-top: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 850; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.bridge { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--brand); }
.bridge strong { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 20px; }
.bridge span { color: var(--ink-2); }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }

.page-hero { padding-block: 52px 40px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 850; margin-top: 12px; max-width: 18em; }
.page-hero .lede { max-width: 40em; }

/* ---------- sections ---------- */
section.block { padding-block: 64px; border-top: 1px solid var(--rule); }
section.block:first-child { border-top: 0; }
.head { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 24px; margin-bottom: 36px; }
.head > * { min-width: 0; }
.head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.head p { margin-top: 14px; color: var(--ink-2); max-width: 42em; font-size: 18px; }
.body-grid { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 24px; }
.body-grid > * { min-width: 0; }
.prose { max-width: 46em; display: grid; gap: 16px; color: var(--ink-2); }
.prose h3 { color: var(--ink); font-size: 22px; font-weight: 750; margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.prose strong, .prose b { color: var(--ink); }
.more { margin-top: 24px; font-weight: 600; }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
.card { border: 1px solid var(--rule); border-radius: 4px; padding: 22px; background: var(--panel); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 21px; font-weight: 750; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .proves { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--rule-strong); padding-top: 10px; }
.card.ours { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }

.problem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
.problem > div { padding: 22px; border-right: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; min-width: 0; }
.problem > div:last-child { border-right: 0; }
.problem h3 { font-size: 20px; font-weight: 750; }
.problem p { color: var(--ink-2); font-size: 15.5px; }
.problem .who { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--brand); padding-top: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.steps h3 { font-size: 26px; font-weight: 800; }
.steps h3 small { display: block; font-family: var(--body); font-stretch: 100%; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

/* the "data, not agent" comparison */
.contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden; background: var(--panel); }
.contrast > div { padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.contrast > div + div { border-left: 1px solid var(--rule-strong); background: var(--brand-soft); }
.contrast h3 { font-size: 22px; font-weight: 800; }
.contrast dl { margin: 0; display: grid; gap: 8px; }
.contrast dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contrast dd { margin: 0 0 6px; color: var(--ink-2); font-size: 15.5px; }

.pullquote { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--ink); border-left: 4px solid var(--brand); padding: 4px 0 4px 20px; max-width: 30em; }

.callout { border: 1px solid var(--rule-strong); border-left: 4px solid var(--asserted); border-radius: 4px; padding: 16px 18px; background: var(--panel); color: var(--ink-2); font-size: 15.5px; display: grid; gap: 6px; }
.callout strong { color: var(--ink); }
.callout.brand { border-left-color: var(--brand); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
caption { text-align: left; padding: 12px 16px 0; font-size: 13px; color: var(--muted); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tbody th { font-weight: 600; white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.ours, th.ours { background: var(--brand-soft); }

.alcoa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.alcoa li { font-family: var(--mono); font-size: 12.5px; padding: 6px 9px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink-2); background: var(--panel); }
.alcoa li b { color: var(--brand); font-weight: 600; }

/* authority chain list */
.chain-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
.chain-list li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.chain-list li > * { min-width: 0; }
.chain-list li:last-child { border-bottom: 0; }
.chain-list .addr { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.chain-list p { color: var(--ink-2); font-size: 15px; }

/* customer path */
.path { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--brand); }
.path li { padding: 4px 0 22px 26px; position: relative; display: grid; gap: 4px; min-width: 0; }
.path li:last-child { padding-bottom: 0; }
.path li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
.path h3 { font-size: 20px; font-weight: 750; font-stretch: 108%; }
.path p { color: var(--ink-2); font-size: 15.5px; max-width: 42em; }
.avail { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 3px; border: 1px solid currentColor; white-space: nowrap; font-stretch: 100%; font-weight: 500; }
.avail.now { color: var(--verified); }
.avail.pilot { color: var(--asserted); }
.avail.next { color: var(--unavailable); }

/* call-to-action band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--brand); color: var(--brand-ink); border-radius: 4px; padding: 36px; }
.cta-band > * { min-width: 0; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta-band p { margin-top: 12px; opacity: 0.92; max-width: 36em; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.cta-band .btn.ghost { background: transparent; color: var(--brand-ink); }
.cta-band .actions { margin-top: 0; }

/* ---------- origin receipt specimen ---------- */
.receipt { background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: var(--shadow); position: relative; overflow: hidden; margin: 0; min-width: 0; }
.receipt-head { padding: 18px 22px 14px; border-bottom: 3px double var(--rule-strong); display: grid; gap: 6px; }
.receipt-head .kind { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.receipt-title { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; }
.sample-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--asserted); border: 1px solid currentColor; padding: 2px 6px; border-radius: 2px; align-self: start; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meta > span { min-width: 0; overflow-wrap: anywhere; }
.meta b { color: var(--ink-2); font-weight: 500; }
.lines { list-style: none; margin: 0; padding: 6px 0; }
.line { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--rule); transition: background-color 180ms ease; }
.line > * { min-width: 0; }
.line:last-child { border-bottom: 0; }
.line .name { font-weight: 600; font-size: 15px; }
.line .what { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.line .why { grid-column: 2 / -1; font-family: var(--mono); font-size: 12px; color: var(--failed); overflow-wrap: anywhere; }
.line .why[data-tone="asserted"] { color: var(--asserted); }
.line .why[data-tone="unavailable"] { color: var(--unavailable); }
.line .why[data-tone="verified"] { color: var(--verified); }
.stamp {
  font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-2deg);
  white-space: nowrap; justify-self: end; display: inline-block; line-height: 1.3;
}
.stamp.flat { transform: none; }
.stamp[data-status="verified"] { color: var(--verified); background: var(--verified-bg); }
.stamp[data-status="asserted"] { color: var(--asserted); background: var(--asserted-bg); }
.stamp[data-status="unavailable"] { color: var(--unavailable); background: var(--unavailable-bg); }
.stamp[data-status="failed"] { color: var(--failed); background: var(--failed-bg); }
.refusal { margin: 0; padding: 18px 22px; background: var(--failed-bg); color: var(--ink); border-top: 1px solid var(--rule); display: grid; gap: 6px; }
.refusal strong { color: var(--failed); font-family: var(--display); font-stretch: 112%; font-size: 17px; }
.refusal code { color: var(--failed); }
.try { padding: 16px 22px 20px; border-top: 1px solid var(--rule); background: var(--paper); display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 13.5px/1.25 var(--body); padding: 8px 11px; border-radius: 3px; cursor: pointer;
  background: var(--panel); color: var(--ink); border: 1px solid var(--rule-strong); text-align: left;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip.reset { background: transparent; border-style: dashed; }
.receipt-foot { padding: 10px 22px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }

/* status legend */
.statuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.statuses li { border: 1px solid var(--rule); border-radius: 4px; padding: 16px; background: var(--panel); display: grid; gap: 10px; align-content: start; min-width: 0; }
.statuses .stamp { justify-self: start; }
.statuses p { font-size: 15px; color: var(--ink-2); }

/* receipt chain (keep the chain alive) */
.rchain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: stretch; }
.rchain > li { min-width: 0; }
.rnode { border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--panel); padding: 14px 16px; display: grid; gap: 6px; align-content: start; height: 100%; }
.rnode .label { font-size: 11px; }
.rnode h4 { font-size: 17px; font-weight: 750; }
.rnode p { font-size: 14px; color: var(--ink-2); }
.rnode .digest { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rlink { display: grid; place-items: center; padding-inline: 8px; color: var(--brand); font-family: var(--mono); font-size: 12px; text-align: center; gap: 4px; }
.rlink svg { width: 34px; height: 16px; }
.rlink[data-state="broken"] { color: var(--failed); }
.rlink[data-state="missing"] { color: var(--unavailable); }

/* flow diagram (how it works) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.flow li { counter-increment: flow; border: 1px solid var(--rule); border-radius: 4px; padding: 16px; background: var(--panel); display: grid; gap: 6px; align-content: start; min-width: 0; position: relative; }
.flow li::before { content: counter(flow); font-family: var(--mono); font-size: 12px; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.flow h3 { font-size: 17px; font-weight: 750; }
.flow p { font-size: 14.5px; color: var(--ink-2); }
.flow .who { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.toc a { display: inline-block; font-size: 14px; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 3px; text-decoration: none; color: var(--ink-2); background: var(--panel); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }

pre.code { margin: 0; background: var(--term-bg); color: var(--term-ink); border-radius: 4px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* hash comparison (hidden egress) */
.hashes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hashes > div { border: 1px solid var(--rule); border-radius: 4px; padding: 16px 18px; background: var(--panel); display: grid; gap: 8px; align-content: start; min-width: 0; }
.hashes h4 { font-size: 16px; font-weight: 750; }
.hashes dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-family: var(--mono); font-size: 12.5px; }
.hashes dt { color: var(--muted); }
.hashes dd { margin: 0; overflow-wrap: anywhere; }
.hashes .same { color: var(--unavailable); }
.hashes .diff { color: var(--failed); font-weight: 600; }

/* ---------- demo stage ---------- */
.moments { display: grid; grid-template-columns: 17em minmax(0, 1fr); gap: 24px; align-items: start; }
.moments > * { min-width: 0; }
.moment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.moment-list button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 4px 8px; align-items: baseline;
  font: 500 15px/1.35 var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--rule-strong);
  border-radius: 4px; padding: 10px 12px; cursor: pointer;
}
.moment-list button span:first-child { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.moment-list button:hover { border-color: var(--brand); }
.moment-list button[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); background: var(--brand-soft); }
.stage { display: grid; gap: 18px; min-width: 0; }
.stage h3 { font-size: 24px; font-weight: 800; }
.stage .why-it-matters { color: var(--ink-2); max-width: 44em; }
.term { background: var(--term-bg); color: var(--term-ink); border-radius: 4px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.55; min-height: 9em; display: grid; gap: 4px; align-content: start; }
.term .row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; }
.term .row > * { min-width: 0; overflow-wrap: anywhere; }
.term .who { color: var(--term-dim); }
.term .bad { color: #f0928d; }
.term .good { color: #8fd6a2; }
.term .note { color: #e3b95a; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stage-out { display: grid; gap: 14px; min-width: 0; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; max-width: 40em; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--panel);
  border: 1.5px solid var(--rule-strong); border-radius: 3px; padding: 10px 12px; width: 100%; min-width: 0;
}
.field textarea { min-height: 8em; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: var(--failed); }
.field .error { font-size: 13.5px; color: var(--failed); min-height: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-row > * { min-width: 0; }
.req { color: var(--failed); }
.form-status { padding: 14px 16px; border-radius: 4px; border: 1px solid var(--rule-strong); background: var(--panel); display: grid; gap: 6px; }
.form-status[hidden] { display: none; }
.form-status.ok { border-left: 4px solid var(--verified); }
.form-status.err { border-left: 4px solid var(--failed); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 72px; background: var(--panel); }
.site-footer .wrap { padding-block: 36px 44px; display: grid; gap: 18px; font-size: 14px; color: var(--muted); }
.site-footer .foot-top { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer .foot-top > * { min-width: 0; }
.site-footer b { color: var(--ink-2); }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-2); }
.site-footer .notice { max-width: 60em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moments { grid-template-columns: minmax(0, 1fr); }
  .moment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statuses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px 44px; }
  .head, .body-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .body-grid > span:empty { display: none; }
  .problem, .steps, .grid-3, .grid-2, .contrast, .hashes { grid-template-columns: minmax(0, 1fr); }
  .problem > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .problem > div:last-child { border-bottom: 0; }
  .contrast > div + div { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  section.block { padding-block: 48px; }
  .rchain { grid-template-columns: minmax(0, 1fr); }
  .rlink { padding-block: 6px; }
  .rlink svg { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .flow, .statuses, .moment-list, .form-row { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .line .what { grid-column: 1 / -1; order: 3; }
  .line .why { grid-column: 1 / -1; order: 4; }
  .receipt-head, .try, .refusal, .receipt-foot { padding-inline: 16px; }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .chain-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .term .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hashes dl { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 22px 18px; }
  .site-header .wrap { padding-block: 12px; }
  .nav { gap: 4px 14px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp { transform: none; }
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header nav, .theme-toggle, .try, .stage-actions { display: none; }
}

/* answer excerpt inside a sample receipt */
.answer { padding: 12px 22px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; background: var(--paper); }
.answer-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.answer mark { background: var(--failed-bg); color: var(--failed); font-weight: 700; outline: 1.5px solid var(--failed); border-radius: 2px; padding: 0 2px; }
@media (max-width: 560px) { .answer { padding-inline: 16px; } }

/* ---------- home: the email that is coming ---------- */
.letter { margin: 0; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: var(--shadow); display: grid; min-width: 0; }
.letter-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.letter-head dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 14.5px; }
.letter-head dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.letter-head dd { margin: 0; color: var(--ink); font-weight: 600; min-width: 0; }
.letter-body { padding: 18px 22px; display: grid; gap: 10px; color: var(--ink-2); font-size: 16px; }
.letter-body ol { padding-left: 1.3em; display: grid; gap: 4px; }
.letter-foot { padding: 12px 22px; border-top: 1px dashed var(--rule-strong); font-size: 13.5px; color: var(--muted); }

/* ---------- home: who will ask ---------- */
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ask { border-top: 3px solid var(--brand); padding-top: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.ask h3 { font-size: 22px; font-weight: 800; font-stretch: 108%; }
.ask dl { margin: 0; display: grid; gap: 6px; }
.ask dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ask dt:nth-of-type(2) { color: var(--brand); margin-top: 6px; }
.ask dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.link-card { text-decoration: none; color: inherit; }
.link-card:hover { border-color: var(--brand); }
.link-card h3 { color: var(--brand); }
@media (max-width: 900px) { .asks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .letter-head, .letter-body, .letter-foot { padding-inline: 16px; } }

.hero.home h1 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 14px; }

/* ---------- home: two different questions ---------- */
.split { margin: 0; background: var(--panel); border: 1px solid var(--rule-strong); border-radius: 4px; box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 14px; min-width: 0; }
.split-row { display: grid; gap: 12px; }
.split .oneliner { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink, inherit); max-width: 62ch; text-wrap: pretty; }
.split-row > div { border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; display: grid; gap: 6px; background: var(--paper); min-width: 0; }
.split .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.split p { font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.3; }
.split .ans { font-family: var(--mono); font-size: 12px; font-weight: 600; justify-self: start; padding: 3px 7px; border-radius: 2px; border: 1.5px solid currentColor; }
.split .ans.ok { color: var(--verified); background: var(--verified-bg); }
.split .ans.gap { color: var(--asserted); background: var(--asserted-bg); }

/* ---------- home: the explainer film ---------- */
.film { padding-block: 28px 8px; display: grid; gap: 10px; justify-items: center; }
.film-frame { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden; background: #f7f5ef; box-shadow: var(--shadow); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.film-sound { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font: 600 15px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
.film-sound:hover { filter: brightness(1.08); }
.film-note { font-size: 14px; color: var(--muted); text-align: center; }
.film + .hero.home { padding-top: 32px; }

.hero .tagline { margin: 4px 0 0; font-family: var(--mono); font-size: clamp(15px, 2.2vw, 18px); letter-spacing: 0.02em; color: var(--ink-2); }
