/* ThiqPad. DESIGN.md is the contract; tokens and components live only here. No gradients, no blur, no glow. */

:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-card: 12px; --r-btn: 10px; --r-band: 6px; --header-h: 64px; --bar-h: 72px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* block colours: the same in both themes */
  --brick: #E07A5F; --on-brick: #0C0C0F; --on-brick-muted: #4A1C08;
  --lime: #C9FF4D; --on-lime: #0C0C0F; --on-lime-muted: #3E5A00;
  --paper: #F5F2EB; --on-paper: #0C0C0F; --on-paper-muted: #5F5B54;
  --black: #0C0C0F; --on-black: #F5F2EB; --on-black-muted: #A3A09A;
  /* light */
  --bg: #F5F2EB; --surface: #FFFFFF; --surface-2: #ECE8DF; --line: #D9D4C9; --line-strong: #0C0C0F;
  --ink: #0C0C0F; --muted: #5F5B54; --brick-text: #B83A0A; --lime-text: #3E6B00; --focus: #B83A0A;
  --alt: var(--black); --on-alt: var(--on-black); --on-alt-muted: var(--on-black-muted);
  --c-pump: #55555E; --c-pool: #F5F2EB; --c-sep: #0C0C0F;
  --up: #0F7A3C; --down: #C92A2A; --warn: #8A5A00;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0C0C0F; --surface: #15151A; --surface-2: #1E1E25; --line: #2B2B33; --line-strong: #F5F2EB;
  --ink: #F5F2EB; --muted: #A3A09A; --brick-text: #E07A5F; --lime-text: #C9FF4D; --focus: #C9FF4D;
  --alt: var(--paper); --on-alt: var(--on-paper); --on-alt-muted: var(--on-paper-muted);
  --c-pump: #8E887C; --c-pool: #0C0C0F; --c-sep: #F5F2EB;
  --up: #3DE089; --down: #FF5A5A; --warn: #FFD23F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
main { flex: 1; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.display-xl { font-size: clamp(46px, 7.4vw, 100px); }
.display-l { font-size: clamp(36px, 4.4vw, 60px); }
.display-m { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; }
.numeral { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.04em; }
.numeral-l { font-size: 72px; }
.numeral-m { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.eyebrow { font: 700 12px/16px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.lede { font-size: 20px; line-height: 30px; max-width: 52ch; }
.small, .t-sm { font-size: 14px; line-height: 20px; } .micro, .t-xs { font-size: 12px; line-height: 16px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.08em; text-decoration-color: var(--brick); }
.block-brick .u { text-decoration-color: var(--paper); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* ---------- blocks ---------- */
.block { padding-block: var(--s9); }
.block-brick { background: var(--brick); color: var(--on-brick); }
.block-brick .muted { color: var(--on-brick-muted); }
.block-alt { background: var(--alt); color: var(--on-alt); }
.block-alt .muted { color: var(--on-alt-muted); }
.block-black { background: var(--black); color: var(--on-black); }
.block-black .muted { color: var(--on-black-muted); }
.block-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 60ch; }
.block-head .eyebrow { color: var(--brick-text); }
.block-brick .block-head .eyebrow, .block-alt .block-head .eyebrow { color: inherit; opacity: 0.8; }
.block-head p { color: var(--muted); font-size: 18px; line-height: 28px; }
.block-head .lede { font-size: 20px; line-height: 30px; color: inherit; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }

/* ---------- buttons, chips ---------- */
.btn, .btn-brick, .btn-ink, .btn-outline { height: 52px; padding: 0 22px; border-radius: var(--r-btn); border: 2px solid var(--black); font: 700 16px/1 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; cursor: pointer; transition: transform 120ms, box-shadow 120ms, opacity 120ms; }
.btn-brick { background: var(--brick); color: var(--on-brick); }
.btn-ink { background: var(--black); color: var(--on-black); border-color: var(--black); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.top-right .btn-sm { gap: 0; } /* "Launch a coin" is one label; the wide part hides on phones */
.block-brick .btn-outline { color: var(--on-brick); border-color: var(--black); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-brick:hover, .btn-outline:hover { opacity: 0.9; }
.block-brick .btn-ink { box-shadow: 4px 4px 0 var(--paper); }
.block-brick .btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--paper); }
.btn-brick:disabled, .btn-ink:disabled, .btn-outline:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
[aria-busy='true'] { cursor: progress; opacity: 0.7; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 2px solid var(--line); border-radius: var(--r-btn); color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.chip, .chip-lime { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--black); font: 700 13px/1 var(--font); white-space: nowrap; }
.chip { background: var(--surface-2); color: var(--ink); }
.chip-lime { background: var(--lime); color: var(--on-lime); }
.chip-lime i { width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
.pill { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; font: 600 13px/1 var(--font-mono); white-space: nowrap; }
.pill-paper { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--paper); color: var(--on-paper); border: 2px solid var(--black); font: 700 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.delta { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 13px/1 var(--font-mono); background: var(--surface-2); }

/* ---------- forms ---------- */
.input, .textarea, .select { width: 100%; height: 48px; padding: 0 var(--s4); background: var(--surface-2); border: 2px solid var(--line); border-radius: var(--r-btn); outline: none; color: var(--ink); }
.textarea { height: 112px; padding: var(--s3) var(--s4); resize: none; line-height: 24px; }
.input:focus, .textarea:focus { border-color: var(--line-strong); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input.mono { font-family: var(--font-mono); font-size: 15px; }
.field { display: grid; gap: var(--s2); min-width: 0; align-content: start; }
.field > label, .field-label { font-size: 14px; line-height: 20px; font-weight: 600; display: flex; justify-content: space-between; gap: var(--s2); }
.field-help { font-size: 14px; line-height: 20px; color: var(--muted); }
.field-error { font-size: 14px; line-height: 20px; color: var(--down); }
.fields { display: grid; gap: var(--s5); }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-wrap { position: relative; }
.unit-wrap .input { padding-right: 64px; }
.unit-wrap .unit { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--font-mono); color: var(--muted); pointer-events: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-btn); }
.seg button { height: 40px; border-radius: 7px; font: 700 14px/1 var(--font); color: var(--muted); border: 0; }
.seg button[aria-selected='true'], .seg button[aria-checked='true'] { background: var(--ink); color: var(--bg); }
.block-alt .seg { background: transparent; border: 2px solid var(--on-alt); }
.block-alt .seg button { color: var(--on-alt-muted); }
.block-alt .seg button[aria-selected='true'], .block-alt .seg button[aria-checked='true'] { background: var(--on-alt); color: var(--alt); }
.seg.strip { display: flex; overflow-x: auto; scrollbar-width: none; width: auto; height: auto; flex: initial; }
.seg.strip::-webkit-scrollbar { display: none; }
.seg.strip button { flex: 1 0 auto; padding: 0 16px; }
.check { display: flex; align-items: center; gap: var(--s3); min-height: 40px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brick); margin: 0; }

/* ---------- stats, rows, kv ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 2px solid var(--line-strong); }
.block-brick .stats, .liq .stats { border-top-color: var(--black); }
.stats > div { padding: var(--s5) var(--s5) var(--s5) 0; display: grid; gap: var(--s2); align-content: start; border-left: 2px solid var(--line-strong); padding-left: var(--s5); min-width: 0; }
.block-brick .stats > div, .liq .stats > div { border-left-color: var(--black); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats.m b { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.stats span { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 26ch; }
.block-brick .stats span, .liq .stats span { color: var(--on-brick-muted); }
.stats-note { padding: var(--s3) 0 0; font: 500 12px/16px var(--font-mono); color: var(--muted); border-top: 2px solid var(--line-strong); }
.block-brick .stats-note { color: var(--on-brick-muted); border-top-color: var(--black); }
.rows > li, .rows > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s3); align-items: center; min-height: 48px; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.rows > :first-child { border-top: 0; }
.rows .trail { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.rows .who { font: 500 13px/18px var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .side { font: 700 12px/16px var(--font-mono); width: 44px; }
.rows .none { display: block; }
.kv { display: grid; gap: var(--s2); }
.kv > div { display: flex; justify-content: space-between; gap: var(--s3); font-size: 14px; line-height: 20px; }
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-align: right; }
.addr-rows > div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.addr-rows > div:first-child { border-top: 0; }
.addr-rows dt { color: var(--muted); }
.addr-rows dd { font-family: var(--font-mono); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.addr-rows .copy { width: 20px; height: 20px; color: var(--muted); display: inline-grid; place-items: center; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); min-height: 24px; }
.card-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 26px; letter-spacing: -0.02em; }
.coin-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; min-width: 0; transition: border-color 120ms; color: var(--ink); }
.coin-card:hover { border-color: var(--muted); }
.coin-card > * { padding-inline: var(--s4); }
.coin-card .pic { position: relative; aspect-ratio: 1; background: var(--surface-2); padding: 0; }
.coin-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.coin-card .pic .chip { position: absolute; top: var(--s3); left: var(--s3); }
.coin-card .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px/20px var(--font); color: var(--muted); text-align: center; padding: var(--s4); }
.coin-card .pic .ph.big { font-size: 72px; line-height: 1; }
.coin-card .title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-top: var(--s2); }
.coin-card .title b { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 26px; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { font: 500 13px/18px var(--font-mono); color: var(--muted); white-space: nowrap; }
.coin-card .desc { font-size: 14px; line-height: 20px; color: var(--muted); min-height: 40px; }
.coin-card .cap-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); }
.coin-card .cap-row b { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.coin-card .cap-row small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 4px; }
.coin-card .state { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s4); font: 500 12px/16px var(--font-mono); color: var(--muted); }
.block-brick .coin-card, .stage .coin-card { border: 2px solid var(--black); box-shadow: 4px 4px 0 var(--black); }
.board, .teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.strip { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; width: 88px; height: 6px; flex: none; }
.strip i { display: block; border-radius: 2px; background: var(--line); }
.strip i[data-s='filling'] { background: var(--brick); }
.strip i[data-s='filled'], .strip i[data-s='done'] { background: var(--lime); }
.strip i[data-s='passed'] { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- the ladder ---------- */
.ladder { display: grid; gap: 8px; }
.band { position: relative; height: 56px; border-radius: var(--r-band); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; overflow: hidden; }
.band .cap { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; position: relative; }
.band .word { font: 700 12px/16px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; position: relative; text-align: right; }
.band[data-state='next'] { border: 2px dashed var(--black); color: var(--on-brick); }
.band[data-state='filling'] { border: 2px solid var(--black); color: var(--on-brick); }
.band[data-state='filling']::before { content: ''; position: absolute; left: 0; bottom: 0; height: 8px; width: var(--fill); background: var(--black); }
.band[data-state='filled'], .band[data-state='done'] { background: var(--lime); color: var(--on-lime); }
.band[data-state='passed'] { border: 2px solid var(--paper); color: var(--on-brick); }
.ladder.compact .band[data-state='filling']::before { height: 5px; }
.ladder.compact .band { height: 40px; padding: 0 14px; }
.ladder.compact .band .cap { font-size: 18px; }
.ladder.compact .band .word { font-size: 10px; }
.now-row { height: 24px; display: flex; align-items: center; gap: var(--s3); }
.now-row i { flex: 1; height: 0; border-top: 3px dashed var(--black); }
.hero-art { width: 100%; max-width: 540px; }
.hero-art .cap { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.hero-art .tag { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- comparison chart ---------- */
.cmp-svg { width: 100%; height: auto; display: block; }
.cmp-svg .grid { stroke: var(--on-alt-muted); stroke-opacity: 0.4; stroke-width: 1; }
.cmp-svg .base { stroke: var(--on-alt); stroke-width: 2; }
.cmp-svg .axis { font: 500 13px var(--font-mono); fill: var(--on-alt-muted); }
.cmp-svg .val { font: 700 12px var(--font-mono); fill: var(--on-alt); }
.cmp-svg .s-pump { fill: var(--c-pump); } .cmp-svg .s-pool { fill: var(--c-pool); } .cmp-svg .s-fees { fill: var(--brick); } .cmp-svg .s-reserve { fill: var(--lime); }
.cmp-svg .s-fees, .cmp-svg .s-reserve { stroke: var(--c-sep); stroke-width: 2; }
.cmp-rows { display: none; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); font-size: 14px; line-height: 20px; color: var(--on-alt-muted); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.cmp-legend .s-pump { background: var(--c-pump); } .cmp-legend .s-pool { background: var(--c-pool); border: 1px solid var(--on-alt-muted); } .cmp-legend .s-fees { background: var(--brick); } .cmp-legend .s-reserve { background: var(--lime); }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
.cmp-side { display: grid; gap: var(--s5); }
.cmp-side .big { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cmp-side p { color: var(--on-alt-muted); }

/* ---------- header, banner, footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); }
.top .container { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.wordmark img, .wordmark svg { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: var(--s1); }
.nav a { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.banner { background: var(--surface); border-bottom: 2px solid var(--line); }
.banner .container { min-height: 40px; padding-block: var(--s2); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.banner b { color: var(--ink); font-weight: 600; }
.footer { background: var(--alt); color: var(--on-alt); }
.footer .container { padding-block: var(--s7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.footer .col { display: grid; gap: var(--s3); align-content: start; font-size: 14px; line-height: 20px; color: var(--on-alt-muted); }
.footer .col.right { justify-items: end; text-align: right; }
.footer .wordmark { color: var(--on-alt); }
.footer nav { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: flex-end; }
.footer nav a { color: var(--on-alt); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); }
.has-bar .toast { bottom: calc(var(--bar-h) + var(--s4)); }
.skeleton { background: var(--surface-2); border-radius: var(--r-card); min-height: 160px; }
.skeleton-page { padding-block: var(--s7); }
.skeleton-page .skeleton { min-height: 360px; }
.board .skeleton { min-height: 420px; }
.empty { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); display: grid; justify-items: center; gap: var(--s3); }
.empty h3 { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 30px; }

/* ---------- home ---------- */
.hero { padding-block: var(--s8) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
.hero-copy { display: grid; gap: var(--s5); align-content: center; }
.hero-top { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.hero h1 { max-width: 11ch; }
.hero-cta { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.hero-art-wrap { justify-self: end; width: 100%; max-width: 540px; }
.hero-stats { margin-top: var(--s8); }
.hero-stats-wrap { padding-bottom: var(--s6); }
.hero .stats-note { padding-bottom: var(--s6); }
.block { scroll-margin-top: var(--header-h); }
.board .empty, .teaser .empty { grid-column: 1 / -1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.steps > li { display: grid; grid-template-rows: auto auto 1fr; gap: var(--s4); padding-top: var(--s5); border-top: 2px solid var(--line-strong); min-width: 0; }
.step-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: 0.85; letter-spacing: -0.05em; color: var(--brick-text); font-variant-numeric: tabular-nums; }
.step-glyph { width: 88px; height: 88px; flex: none; }
.step-glyph .b { fill: var(--brick); } .step-glyph .l { fill: var(--lime); } .step-glyph .p { fill: var(--line); }
/* block colours for inline SVG (Brik, the glyphs, the hero art) */
.ink { fill: var(--black); } .paper { fill: var(--paper); } .lime { fill: var(--lime); } .stroke-ink { stroke: var(--black); }
.steps h3 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; }
.steps p { color: var(--muted); }
.closing { text-align: center; display: grid; justify-items: center; gap: var(--s5); }
.closing .lede { text-align: center; }

/* ---------- board page ---------- */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.board-head .input { width: 280px; }
.board-sort { margin-bottom: var(--s5); }

/* ---------- launch page ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; padding-block: var(--s7) 0; }
.stage { position: sticky; top: calc(var(--header-h) + var(--s4)); background: var(--brick); color: var(--on-brick); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s5); }
.stage .brik-wrap { display: flex; justify-content: center; margin-bottom: calc(-1 * (var(--s5) + 22px)); position: relative; z-index: 1; }
.stage .stage-title { font: 700 12px/16px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-brick-muted); margin-bottom: var(--s3); }
.stage .stage-line { font-size: 14px; line-height: 20px; color: var(--on-brick-muted); }
.stage .stage-line a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--on-brick); white-space: nowrap; }
.form-groups { display: grid; gap: var(--s7); }
.group { display: grid; gap: var(--s5); padding-top: var(--s5); border-top: 2px solid var(--line-strong); }
.group-head { display: flex; align-items: baseline; gap: var(--s4); }
.group-head .n { font: 700 12px/16px var(--font-mono); letter-spacing: 0.12em; color: var(--brick-text); }
.group-head h2 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; }
.group > details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: 600; min-height: 40px; }
.group > details[open] > summary { margin-bottom: var(--s4); }
.lookup { display: flex; gap: var(--s2); }
.lookup .input { flex: 1; min-width: 0; }
.lookup .btn-outline { height: 48px; }
.logo-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.launch-head { padding-top: var(--s7); display: grid; gap: var(--s4); }
.group > details > summary svg { transition: transform 150ms; }
.group > details[open] > summary svg { transform: rotate(180deg); }
.logo-pick { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); align-items: center; }
.logo-prev { width: 96px; height: 96px; border-radius: var(--r-card); background: var(--surface-2); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bar-h); background: var(--bg); border-top: 2px solid var(--line); }
.action-bar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.action-bar .cost { font: 500 14px/20px var(--font-mono); color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-bar main { padding-bottom: calc(var(--bar-h) + var(--s8)); }
.has-bar .footer .container { padding-bottom: calc(var(--s7) + var(--bar-h)); }
/* the dev buy: presets beside the free field, one row; the fee shares: equal rows of wallet + percent + remove */
.dev-row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: var(--s3); align-items: center; }
.dev-row .seg button { padding: 0 6px; white-space: nowrap; }
.share-rows { display: grid; gap: var(--s3); }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 40px; gap: var(--s2); align-items: center; }
.share-row .icon-btn { height: 48px; }
.share-row .unit-wrap .input { padding-right: 36px; }
.share-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; min-height: 40px; font-size: 14px; line-height: 20px; color: var(--muted); }
.addr-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.addr-note .mono, .field-help .mono { color: var(--ink); font-weight: 700; }

/* ---------- coin page ---------- */
.coin { padding-block: var(--s7) var(--s9); }
.coin-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin-bottom: var(--s6); }
.avatar { width: 80px; height: 80px; border-radius: var(--r-card); overflow: hidden; flex: none; background: var(--surface-2); border: 2px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-head h1 { font-size: clamp(32px, 4vw, 52px); display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.coin-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; margin-top: var(--s3); font-size: 14px; line-height: 20px; color: var(--muted); }
.coin-head .desc { flex-basis: 100%; }
.coin-head .links { display: flex; gap: var(--s2); }
.main-rail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); align-items: start; }
.main { display: grid; gap: var(--s7); min-width: 0; }
.rail { display: grid; gap: var(--s5); position: sticky; top: calc(var(--header-h) + var(--s4)); }
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.price-head .seg { min-width: 200px; }
.chart-svg { width: 100%; height: 280px; display: block; overflow: visible; }
.chart-svg text { font: 500 12px var(--font-mono); fill: var(--muted); }
.chart-svg .axis { stroke: var(--line); }
.chart-svg .line { stroke: var(--brick-text); fill: none; stroke-width: 3; stroke-linejoin: round; }
.chart-svg .line.done { stroke: var(--lime-text); }
.chart-svg .fill { fill: none; }
.chart-svg .rest { stroke: var(--line); fill: none; stroke-width: 2; stroke-dasharray: 3 4; }
.chart-svg .dot { fill: var(--brick-text); }
.chart-empty { min-height: 280px; }
.price-stats { margin-top: var(--s5); --n: 4; }
.price-now { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.coin-head .tick { font-size: 16px; }
.liq { background: var(--brick); color: var(--on-brick); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s5); }
.liq .block-head { margin-bottom: 0; }
.liq .block-head .eyebrow { color: var(--on-brick-muted); opacity: 1; }
.liq .block-head p { color: var(--on-brick-muted); }
.liq .note { font-size: 14px; line-height: 20px; color: var(--on-brick-muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); align-items: start; }
.two-col > section { min-width: 0; }
.two-col h3 { margin-bottom: var(--s3); }
.trade .seg { margin-bottom: var(--s4); }
.trade-amount { position: relative; }
.trade-amount .input { height: 56px; font-size: 22px; font-weight: 700; padding-right: 88px; font-variant-numeric: tabular-nums; }
.trade-amount .unit { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--font-mono); color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s3); }
.quick button { height: 36px; border-radius: 999px; border: 2px solid var(--line); font: 700 13px var(--font-mono); color: var(--muted); }
.quick button:hover { color: var(--ink); border-color: var(--line-strong); }
.trade .kv { margin-block: var(--s4); min-height: 56px; }
.trade .empty { padding: var(--s4) 0; }
.trade .note { margin-top: var(--s2); }
.trade .hold { margin-top: var(--s3); display: flex; justify-content: space-between; gap: var(--s3); }
.rail details > summary { display: flex; align-items: center; justify-content: space-between; font-weight: 600; min-height: 40px; }
.rail .addr-rows { margin-top: var(--s2); }
.rail .more { margin-top: var(--s3); }
.rail .split { margin-top: var(--s3); overflow-wrap: anywhere; }
.creator-grid { display: grid; gap: var(--s4); }
.creator-grid > div { display: grid; gap: var(--s2); }
.creator-grid h4 { font-size: 15px; line-height: 20px; }

/* ---------- details page ---------- */
.doc { display: grid; gap: var(--s4); max-width: 72ch; }
.doc h2 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; margin-top: var(--s5); }
.doc h3 { font-size: 18px; line-height: 24px; font-weight: 700; margin-top: var(--s3); }
.doc p, .doc li { color: var(--muted); }
.doc ul { display: grid; gap: var(--s2); padding-left: 18px; list-style: disc; }
.doc b { color: var(--ink); }
.doc code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: var(--s2); border-top: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-size: 13px; }
.fee-table th { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; border-top: 0; }
.fee-table th:first-child, .fee-table td:first-child { text-align: left; padding-left: 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero-art .band { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
  .hero-art .mascot { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: 420ms; }
  .ladder .band { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .cmp { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; }
  .band::before, .cmp-bar i { transition: width 300ms; }
  .flash-up { animation: flashUp 600ms; } .flash-down { animation: flashDown 600ms; }
  @keyframes flashUp { from { color: var(--up); } } @keyframes flashDown { from { color: var(--down); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(46px, 8.6vw, 88px); }
  .hero-grid, .launch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
  .main-rail { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .block { padding-block: var(--s8); }
  .hero.block { padding-bottom: 0; }
  .hero-grid, .launch, .cmp-grid, .main-rail { grid-template-columns: minmax(0, 1fr); }
  .hero-art-wrap { justify-self: center; max-width: 520px; }
  .stage, .rail { position: static; }
  .main, .rail { display: contents; }
  .main-rail { gap: var(--s7); }
  .main-rail > .main > :first-child { order: 1; }
  .rail > .trade { order: 2; }
  .main > .liq { order: 3; }
  .main > .two-col { order: 4; }
  .rail > :not(.trade) { order: 5; }
  .launch .stage { order: -1; }
  .nav { display: none; }
  .stats b { font-size: 56px; }
  .cmp-side .big { font-size: 56px; }
}
@media (max-width: 768px) {
  .board, .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-svg { display: none; }
  .cmp-rows { display: grid; gap: var(--s3); }
  .cmp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s3); align-items: center; }
  .cmp-cap { font: 700 13px var(--font-mono); color: var(--on-alt); }
  .cmp-bars { display: grid; gap: 4px; }
  .cmp-bar { display: flex; align-items: center; gap: 6px; height: 16px; }
  .cmp-bar i { display: block; height: 100%; border-radius: 2px; }
  .cmp-bar .s-pump { background: var(--c-pump); } .cmp-bar .s-pool { background: var(--c-pool); } .cmp-bar .s-fees { background: var(--brick); } .cmp-bar .s-reserve { background: var(--lime); }
  .cmp-bar b { font: 700 11px var(--font-mono); white-space: nowrap; }
  .cmp-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .coin-head { grid-template-columns: auto minmax(0, 1fr); }
  .coin-head .links { grid-column: 1 / -1; }
  .price-stats { --n: 2; }
  .price-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .price-stats > div:nth-child(n + 3) { border-top: 2px solid var(--line-strong); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .footer .container { grid-template-columns: minmax(0, 1fr); }
  .footer .col.right { justify-items: start; text-align: left; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .hero { padding-block: var(--s7) 0; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .lede { font-size: 17px; line-height: 26px; }
  .block-head .lede { font-size: 17px; line-height: 26px; }
  .display-m, .steps h3, .group-head h2 { font-size: 26px; line-height: 30px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); align-items: center; gap: var(--s4); border-left: 0; padding: var(--s4) 0; border-top: 2px solid var(--line-strong); }
  .block-brick .stats > div, .liq .stats > div { border-top-color: var(--black); }
  .stats > div:first-child { border-top: 0; }
  .stats b, .stats.m b { font-size: 44px; line-height: 1; }
  .stats span { max-width: none; }
  .price-stats { --n: 1; }
  .price-stats > div:nth-child(n + 2) { border-top: 2px solid var(--line-strong); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-n { font-size: 72px; }
  .step-glyph { width: 64px; height: 64px; }
  .board, .teaser { grid-template-columns: minmax(0, 1fr); }
  .board-head .input { width: 100%; }
  .fields.two, .fields.three { grid-template-columns: minmax(0, 1fr); }
  .dev-row { grid-template-columns: minmax(0, 1fr); }
  .dev-row .seg button { font-size: 13px; padding: 0 4px; }
  .share-row { grid-template-columns: minmax(0, 1fr) 88px 40px; }
  .btn, .btn-brick, .btn-ink, .btn-outline { height: 48px; }
  .btn-sm { height: 40px; }
  .stage { border-radius: 0; margin-inline: -16px; padding: var(--s5) 16px; }
  .liq { padding: var(--s5); }
  .band { height: 48px; padding: 0 14px; }
  .band .cap { font-size: 20px; }
  .band .word { font-size: 10px; letter-spacing: 0.08em; }
  .action-bar .cost { font-size: 13px; }
  .top-right .wide { display: none; }
  .top .container { gap: var(--s3); }
  .top-right { gap: var(--s2); }
  .top-right #theme { display: none; }
  .pill { height: 36px; padding: 0 10px; font-size: 12px; }
  .doc h2 { font-size: 26px; line-height: 30px; }
}
