[hidden] { display: none !important; } /* the attribute outranks every display rule: a hidden mark stays hidden */
/* One stylesheet. Tokens first, then layout, then components. No framework, no build step.
   No external font, no external image, no external anything: every URL a browser would fetch for
   this file would be a URL this project cannot promise stays up, so there are none. */

/* ── the brand ────────────────────────────────────────────────────────────────────────────────
   Four fields and one rule. Everything else on every screen is derived from them, so a change of
   brand is a change of four lines rather than a search through a stylesheet.

     --paper   the ground the product sits on, light by default
     --ink     the neutral that carries nearly all of the colour, near-black
     --accent  ONE colour, spent scarcely: the primary action and the active navigation item
     --radius  one corner radius, everywhere

   The rule is a 4px grid: --space, and every gap, pad and inset is a multiple of it.

   TEXT ON THE ACCENT IS COMPUTED, NOT PICKED BY EYE. Against #0b6e4f the near-white #f7faf8
   reaches 5.95:1 and the near-black #0d1411 reaches 2.89:1, so near-white wins; against the
   dark scheme's #35b888 the same two candidates give 2.51:1 and 7.43:1, so near-black wins and
   the choice genuinely flips. apps/web/tests/design.test.mjs recomputes both ratios from the hex
   values in THIS file and fails below 4.5:1, so the two cannot drift apart. */
:root {
  --paper: #fbfbfa;
  --ink: #14161a;
  --accent: #0b6e4f;
  --radius: 8px;
  --space: 4px;

  /* computed against --accent above; see the note. */
  --on-accent: #f7faf8;

  /* derived neutrals. One mix each, so they follow --ink and --paper into any scheme. */
  --muted: color-mix(in srgb, var(--ink) 66%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --surface: color-mix(in srgb, var(--ink) 5%, var(--paper));
  --accent-quiet: color-mix(in srgb, var(--accent) 12%, var(--paper));

  /* the 4px grid, named so a component never types a raw pixel */
  --s1: var(--space);
  --s2: calc(var(--space) * 2);
  --s3: calc(var(--space) * 3);
  --s4: calc(var(--space) * 4);
  --s5: calc(var(--space) * 5);
  --s6: calc(var(--space) * 6);
  --s8: calc(var(--space) * 8);
  --s12: calc(var(--space) * 12);

  /* the three states that are never the accent, because none of them is an invitation to act */
  --bad: #8a1c1c;
  --warn: #7a4a00;
  --exp: #4a3a7a;
}

/* The dark scheme swaps THE SAME FOUR FIELDS and nothing else. Every derived value follows,
   which is the whole reason they are derived. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101215;
    --ink: #eef1ef;
    --accent: #35b888;
    --on-accent: #0d1411;
    --bad: #ef9a9a;
    --warn: #e0b050;
    --exp: #b0a0e0;
  }
}
@media (prefers-contrast: more) { :root { --muted: var(--ink); --line: var(--ink); } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-wrap: break-word;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--accent); color: var(--on-accent);
  padding: var(--s2) var(--s4); border-radius: var(--radius); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
header.site, main, footer { max-width: 46rem; margin: 0 auto; padding: var(--s4) var(--s5); }
main { padding-bottom: calc(var(--space) * 14); }
main:focus { outline: none; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: var(--s2) 0 var(--s4); letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: var(--s8) 0 var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: var(--s4) 0 var(--s2); }
p { margin: 0 0 var(--s3); } .lead { font-size: 1.15rem; }
.sub { color: var(--muted); font-size: 0.9rem; }
a { color: inherit; text-underline-offset: 2px; }
.mark { font-weight: 700; text-decoration: none; }
ul.nav { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); padding: 0; margin: var(--s2) 0; }
ul.nav a { display: inline-block; padding: var(--s2) var(--s1); min-height: 44px; line-height: 28px; }
[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta { display: inline-block; background: var(--accent); color: var(--on-accent); border: 0;
  padding: var(--s3) var(--s4); min-height: 44px; border-radius: var(--radius); font: inherit;
  font-weight: 500; text-decoration: none; cursor: pointer; }
.cta-quiet { background: transparent; color: inherit; border: 1px solid var(--line); }
.cta[disabled] { opacity: 1; background: var(--surface); color: var(--muted);
  border: 1px dashed var(--muted); cursor: not-allowed; }
.banner { border: 1px solid var(--line); border-left: 4px solid var(--muted);
  background: var(--surface); padding: var(--s3) var(--s4); border-radius: var(--radius); margin: var(--s4) 0; }
.banner-warn { border-left-color: var(--warn); } .banner-block { border-left-color: var(--bad); }
.banner-ok { border-left-color: var(--accent); }
.banner-t { margin: 0 0 var(--s1); } .banner .mark { font-weight: 700; margin-right: var(--s2); }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: var(--s1) var(--s2); font-size: 0.85rem; background: var(--surface); }
.badge-confirmed { border-color: var(--accent); font-weight: 700; }
.badge-simulated { border-style: dashed; } .badge-mock { border-style: dotted; color: var(--muted); }
.tag { display: inline-block; border: 1px solid var(--exp); color: var(--exp); border-radius: 999px;
  padding: var(--s1) var(--s2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em;
  word-break: break-all; }
table { width: 100%; border-collapse: collapse; margin: var(--s3) 0; display: block; overflow-x: auto; }
caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: var(--s2); }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: var(--s2) var(--s2) var(--s2) 0;
  vertical-align: top; }
th[scope="row"] { font-weight: 500; white-space: nowrap; padding-right: var(--s4); }
.status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s2) var(--s3); }
.fold { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2) var(--s3); margin: var(--s3) 0; }
.fold summary { cursor: pointer; font-weight: 500; padding: var(--s2) 0; min-height: 32px; }
.modes { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.mode { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.mode-exp { border-style: dashed; }
.blockers li { margin-bottom: var(--s2); }
.evidence-key dt { margin-top: var(--s2); } .evidence-key dd { margin: var(--s1) 0 0 0; color: var(--muted); }
.evidence-json { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem;
  white-space: pre-wrap; overflow-wrap: break-word; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.field { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--muted);
  border-radius: var(--radius); padding: var(--s2) var(--s3); min-height: 44px; width: 100%; max-width: 28rem; }
.field[disabled] { background: var(--surface); color: var(--muted); border-style: dashed; }
label { font-weight: 500; }
.badge-image { width: 200px; height: 200px; max-width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); }
.registers { list-style: none; padding: 0; margin: var(--s2) 0; }
.registers li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: var(--s2) 0;
  border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .modes { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── the product surface ─────────────────────────────────────────────────────────────────────── */
/* The environment label. It sits above everything, in flow, so it cannot be scrolled past or
   covered: a page that says nothing about which network it is on is the one that costs money. */
.envbar { margin: 0; padding: var(--s2) var(--s5); background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--line); font-size: 0.85rem; text-align: center; }
.envbar strong { letter-spacing: 0.06em; }

/* One accent only, on the primary action. Everything else earns attention through position. */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s4);
  margin: var(--s4) 0; background: var(--paper); }
.card > :first-child { margin-top: 0; }
.card h2, .card h3 { border-top: 0; padding-top: 0; margin-top: 0; }
.headline { font-size: 1.6rem; line-height: 1.25; margin: var(--s1) 0 var(--s2); letter-spacing: -0.01em; }
.big { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.kpis { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin: var(--s3) 0; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.kpi dt { color: var(--muted); font-size: 0.85rem; }
.kpi dd { margin: var(--s1) 0 0; font-size: 1.15rem; }
@media (min-width: 40rem) { .kpis { grid-template-columns: repeat(3, 1fr); } }

/* Asset availability. The word carries the meaning; the mark repeats it for anyone who cannot
   tell the hues apart, and neither is ever the only signal. */
.assets { list-style: none; padding: 0; margin: var(--s3) 0; }
.assets li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3);
  padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.assets .sym { font-weight: 700; min-width: 5rem; }
.availability { display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: var(--s1) var(--s2); font-size: 0.85rem; }
.availability[data-status="DIRECT"] { border-color: var(--accent); font-weight: 700; }
.availability[data-status="CONVERSION"] { border-style: dashed; }
.availability[data-status="UNAVAILABLE"] { border-style: dotted; color: var(--muted); }
.assets .why { flex-basis: 100%; color: var(--muted); font-size: 0.9rem; }

/* The customer link and its square. The square is drawn by the page; when it cannot be, the link
   is still the whole payment, and the page says which one the customer is looking at. */
.paylink { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.paylink input { flex: 1 1 18rem; }
.qr { width: 220px; height: 220px; max-width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; display: grid; place-items: center; margin: var(--s3) 0; }
.qr img, .qr canvas { display: block; max-width: 100%; height: auto; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; padding: 0 0 var(--s3) 0; }
.steps > li > h2::before { content: counter(step) ". "; color: var(--muted); }
.receipt-lines dt { color: var(--muted); font-size: 0.85rem; margin-top: var(--s2); }
.receipt-lines dd { margin: var(--s1) 0 0; }

/* ── the three layouts ────────────────────────────────────────────────────────────────────────
   One stylesheet holds all three because they share every token; what differs is the frame around
   the content, never the ink inside it. `src/shell.mjs` chooses the frame from the route path and
   stamps it on <body>, so a screen cannot pick its own. */

/* Shared frame furniture. */
.mark { display: inline-flex; align-items: center; gap: var(--s1); white-space: nowrap; }
.wchip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2);
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  padding: var(--s1) var(--s3); font-size: 0.9rem; min-height: calc(var(--space) * 9); }
.wchip-line { color: var(--muted); }
.wchip-addr { font-weight: 500; color: var(--ink); }
.wchip .cta { padding: var(--s1) var(--s3); min-height: calc(var(--space) * 8); font-size: 0.9rem; }
.wchip select { font: inherit; font-size: 0.9rem; padding: var(--s1) var(--s2); max-width: 12rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }

/* marketing — the home page, the explanations, the legal pages. Roomy, one measure, a hero band. */
.lay-marketing header.site { display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s2) var(--s4); max-width: 64rem; }
.lay-marketing header.site nav { flex: 1 1 20rem; }
/* When the navigation wraps to two lines the name must not end up floating beside its second row,
   so below the sidebar's own breakpoint the name takes a row of its own. */
@media (max-width: 51.99rem) { .lay-marketing header.site .mark { flex: 1 0 100%; } }
.hero { padding: var(--s8) 0 var(--s2); }
.hero h1 { margin: 0; font-size: 2.1rem; line-height: 1.15; max-width: 20ch; }
.lay-marketing .hero + .lead { font-size: 1.2rem; max-width: 60ch; }

/* app — the signed-in screens. Sidebar, top bar, content column. */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-business { font-weight: 500; }
.topbar .wchip { margin-left: auto; }
.appframe { display: grid; grid-template-columns: minmax(0, 1fr); }
.sidebar { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.sidenav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.sidenav a { display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius);
  padding: var(--s2) var(--s3); min-height: calc(var(--space) * 11); line-height: calc(var(--space) * 7); }
.sidenav a:hover { background: var(--surface); }
.sidenav a[aria-current="page"] { background: var(--accent-quiet); font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent); }
.pagehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4);
  border-bottom: 1px solid var(--line); padding-bottom: var(--s3); margin-bottom: var(--s4); }
.pagehead h1 { margin: 0; }
.actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s2); }
.lay-app main { max-width: 58rem; }
.lay-app footer { max-width: 58rem; }
@media (min-width: 52rem) {
  .appframe { grid-template-columns: 14rem minmax(0, 1fr); }
  .sidebar { border-bottom: 0; border-right: 1px solid var(--line); min-height: 60vh; }
  .sidenav { display: block; }
  .sidenav li + li { margin-top: var(--s1); }
}

/* checkout — one card, the least chrome that is still navigable, identity above the card. */
.lay-checkout header.site { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  max-width: 34rem; border-bottom: 1px solid var(--line); }
.lay-checkout header.site nav { flex: 1 1 auto; }
.lay-checkout main { max-width: 34rem; }
.lay-checkout footer { max-width: 34rem; }
.lay-checkout h1 { font-size: 1.35rem; text-align: center; margin-top: 0; }
.bizid { text-align: center; font-weight: 500; color: var(--muted); margin: var(--s4) 0 var(--s1); }

/* ── the component vocabulary ─────────────────────────────────────────────────────────────────
   One block, one class, one definition. apps/web/DESIGN.md shows each of these rendered, and
   apps/web/tests/design.test.mjs fails if a class named in that document is missing from here.
   The accent appears in exactly two places on a screen: the primary action, and the current item
   in the menu. Everything else earns attention through position, weight and space. */

/* buttons — primary, quiet, danger, and disabled-with-a-reason */
.cta-danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.cta-danger:hover { background: color-mix(in srgb, var(--bad) 10%, var(--paper)); }

/* status pill. Mark and word carry the meaning; the border style repeats it for anyone who cannot
   tell the hues apart, so the colour is never the only signal. */
.pill { display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--line);
  border-radius: 999px; padding: var(--s1) var(--s3); font-size: 0.85rem; background: var(--surface);
  white-space: nowrap; }
.pill[data-status="verified"] { border-color: var(--accent); font-weight: 700; }
.pill[data-status="active"] { border-color: var(--accent); }
.pill[data-status="pending"] { border-style: dashed; }
.pill[data-status="unknown"] { border-style: dotted; color: var(--muted); }
.pill[data-status="refused"] { border-color: var(--bad); color: var(--bad); font-weight: 500; }
.pill[data-status="revoked"] { border-style: dotted; color: var(--muted); text-decoration: line-through; }

/* data table. The WRAPPER scrolls sideways, never the page. */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  margin: var(--s3) 0; }
.dtable { width: 100%; display: table; margin: 0; border-collapse: collapse; }
.dtable th, .dtable td { padding: var(--s3); border-bottom: 1px solid var(--line); }
.dtable thead th { background: var(--surface); font-weight: 500; font-size: 0.9rem;
  color: var(--muted); white-space: nowrap; }
.dtable tbody tr:last-child td { border-bottom: 0; }

/* form field */
.formfield { display: block; margin: 0 0 var(--s4); }
.formfield label { display: block; margin-bottom: var(--s1); }
.help { display: block; color: var(--muted); font-size: 0.9rem; margin-top: var(--s1); }
.error { display: block; color: var(--bad); font-size: 0.9rem; font-weight: 500; margin-top: var(--s1); }
.error:empty { margin: 0; }
select.field { appearance: none; background-image: none; }

/* empty state — what a list says when it holds nothing, instead of showing a row nobody entered */
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--s6) var(--s5);
  text-align: center; margin: var(--s3) 0; }
.empty-t { font-weight: 500; margin-bottom: var(--s1); }

/* a message that arrives after load. Empty in the served HTML, and announced when it fills. */
.toast { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: var(--radius); padding: var(--s3) var(--s4); margin: var(--s3) 0; }

/* products */
.product-list { list-style: none; margin: var(--s3) 0; padding: 0; }
.product { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.product-name { flex: 1 1 12rem; font-weight: 500; }
.product-price { font-variant-numeric: tabular-nums; }

/* one payment in a list */
.order-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line); list-style: none; }
.order-ref { flex: 1 1 10rem; font-weight: 500; }
.order-when { color: var(--muted); font-size: 0.9rem; }
.order-amount { font-variant-numeric: tabular-nums; margin-left: auto; }

/* the register: a display you can read across a counter, and keys you can hit without looking */
.register { max-width: 24rem; }
.amount-display { display: block; width: 100%; text-align: right; font-size: 2.5rem; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); padding: var(--s3) var(--s4);
  margin-bottom: var(--s3); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.keypad .key { font: inherit; font-size: 1.25rem; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: calc(var(--space) * 14); cursor: pointer; }
.keypad .key:hover { background: var(--surface); }
.keypad .key:active { background: var(--accent-quiet); }
.charge { display: block; width: 100%; margin-top: var(--s3); font-size: 1.1rem;
  min-height: calc(var(--space) * 14); }

/* the customer's card */
.checkout { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: var(--s5); margin: var(--s3) 0; }
.checkout-head { text-align: center; padding-bottom: var(--s3); border-bottom: 1px solid var(--line);
  margin-bottom: var(--s3); }
.checkout-business { font-size: 1.25rem; font-weight: 700; margin: 0; }
.checkout-lines { margin-bottom: var(--s3); }
.checkout-line { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; }
.checkout-total { display: flex; justify-content: space-between; gap: var(--s4); font-weight: 700;
  font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: var(--s3); margin-bottom: var(--s4); }
.asset-choice { margin-bottom: var(--s4); }
.asset-choice label { display: block; margin-bottom: var(--s1); }
.checkout-status { color: var(--muted); text-align: center; margin: var(--s3) 0 0; }

/* the join flow's progress. The state is an attribute; the colour only agrees with it. */
.stepper { list-style: none; counter-reset: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  padding: 0; margin: var(--s3) 0; }
.stepper li { display: flex; align-items: center; gap: var(--s2); color: var(--muted); }
.stepper .step-mark { display: inline-grid; place-items: center; width: calc(var(--space) * 6);
  height: calc(var(--space) * 6); border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 500; }
.stepper li[data-state="done"] { color: var(--ink); }
.stepper li[data-state="done"] .step-mark { border-color: var(--accent); }
.stepper li[data-state="current"] { color: var(--ink); font-weight: 700; }
.stepper li[data-state="current"] .step-mark { background: var(--accent); color: var(--on-accent);
  border-color: var(--accent); }
.stepper li[data-state="todo"] .step-mark { border-style: dashed; }

/* ── the viewer's own choice of scheme ────────────────────────────────────────────────────────
   The media query above answers "what does this machine prefer". These two blocks answer "what
   did this person pick", and a pick outranks a preference: `:root[data-theme="…"]` carries one
   more attribute than the bare `:root` inside the media query, so it wins in BOTH directions
   without the media block needing a guard — a light pick survives a dark machine.

   They MIRROR that block exactly: the same seven fields, the same values, and nothing else.
   Everything derived — --muted, --line, --surface, --accent-quiet — is mixed from --ink and
   --paper at computed-value time, so redefining the four brand fields carries the whole scheme
   with it, which is the entire reason they are derived.

   The attribute is stamped on <html> by a script in the head, BEFORE the first paint, from one
   localStorage key. No stamp means no pick, and the media query answers on its own. */
:root[data-theme="light"] {
  --paper: #fbfbfa;
  --ink: #14161a;
  --accent: #0b6e4f;
  --on-accent: #f7faf8;
  --bad: #8a1c1c;
  --warn: #7a4a00;
  --exp: #4a3a7a;
}
:root[data-theme="dark"] {
  --paper: #101215;
  --ink: #eef1ef;
  --accent: #35b888;
  --on-accent: #0d1411;
  --bad: #ef9a9a;
  --warn: #e0b050;
  --exp: #b0a0e0;
}

/* ── the mark, and the only animation in this stylesheet ──────────────────────────────────────
   assets/mark.svg is filled shapes with no motion of its own; the motion is here, so the favicon
   and the link-preview images made from the same file stay still while the hero's copy turns.

   Calm means slow: one turn a minute, and a breath that never fully fades. Nothing flashes, and
   nothing moves more than a hair per frame. Under prefers-reduced-motion the mark is simply a
   mark — the shapes are the identity, the motion was never carrying meaning. */
@keyframes unica-mark-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes unica-mark-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.unica-mark { display: block; width: 100%; height: auto; }
.unica-mark .mark-core { transform-box: fill-box; transform-origin: 50% 50%;
  animation: unica-mark-turn 60s linear infinite; }
.unica-mark .mark-ring { animation: unica-mark-breathe 12s ease-in-out infinite; }
/* Nothing is repeated here for prefers-reduced-motion: the `* { animation: none !important }` rule
   above already answers for every animation in this stylesheet, and a second, weaker copy of a rule
   that already holds is the kind of duplicate that survives the day the original is edited. */

/* ── the hero ─────────────────────────────────────────────────────────────────────────────────
   The heading is the shell's; everything under it is the home route's. The mark sits beside the
   lead rather than above the heading, so the first thing read is still a sentence.

   THE THREE QUIET BUTTONS CARRY AN INTEGRATION'S OWN COLOUR AS A 3px RULE, AND NOTHING ELSE.
   The hexes are Uniswap's, ENS's and The Graph's exactly as assets/brand.js records them, and
   apps/web/tests/home.test.mjs reads them back out of this file and fails on a digit's drift.
   A rule is attribution, not an affordance: the button's boundary is its 1px --line border and
   its label is --ink on --paper, both of which carry their own contrast in both schemes. That
   matters because ENS blue measures 2.78:1 on the light paper — below the 3:1 floor a control's
   own boundary must clear, and the reason none of these colours is ever a border, a background
   or a letterform. */
.hero-lede { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s3) var(--s5);
  margin-bottom: var(--s5); }
.hero-art { flex: 0 0 auto; width: calc(var(--space) * 18); }
.hero-lede .lead { flex: 1 1 24rem; font-size: 1.2rem; max-width: 60ch; margin: 0; }
.hero-ctas { align-items: stretch; margin-bottom: var(--s2); }
.hero-ctas .cta { display: inline-flex; align-items: center; }
.rule-uniswap { border-bottom: 3px solid #FF007A; }
.rule-ens { border-bottom: 3px solid #5298FF; }
.rule-graph { border-bottom: 3px solid #6F4CFF; }

/* phone: the primary navigation is one row that scrolls sideways, not three stacked rows */
@media (max-width: 39.99rem) {
  header.site ul.nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: var(--s1); }
  header.site ul.nav::-webkit-scrollbar { display: none; }
  /* a flex item's minimum width is its content unless told otherwise: without these two lines the row
     is as wide as its links, the header grows to fit it, and the WHOLE page scrolls sideways */
  header.site nav { min-width: 0; max-width: 100%; }
  header.site ul.nav { min-width: 0; max-width: 100%; }
  header.site ul.nav a { white-space: nowrap; }
}
