/* GitBag: the night build. A deep blue-black page, cool white type, and one green that means a release paid a
   maintainer (and the one main action). The home page shows one real repo's vault: the line climbs as trading
   fees pile up and drops each time a release pays it out, so the idea reads in one look.
   Geist does all the talking; JetBrains Mono only reads amounts, addresses, tickers, repo names and tags.
   No eyebrow labels, no accent words in headlines, no arrows on links, no "·" joiners. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0e121b;
  --surface: #151b27;
  --surface-2: #1c2433;
  --surface-3: #263043;
  --line: rgba(226, 232, 244, 0.08);
  --line-2: rgba(226, 232, 244, 0.14);
  --line-3: rgba(226, 232, 244, 0.26);
  --ink: #e6ebf5;
  --ink-2: #aab4c6;
  --muted: #8490a6;
  --accent: #4fd69c;
  --accent-deep: #39c487;
  --accent-wash: rgba(79, 214, 156, 0.12);
  --on-accent: #06140d;
  --good: #4fd69c;
  --bad: #ff8b7b;
  --warn: #f0c35a;
  --focus: #9ab8ff;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1220px;
  --r: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --z-bar: 30;
  --z-menu: 40;
  --z-toast: 60;
  --z-dialog: 80;
  --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { display: block; min-height: 60vh; outline: none; padding-bottom: 48px; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.88em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--muted); }
.small, small { font-size: 14px; }
.fine { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.center { text-align: center; margin-top: 28px; }
.up { color: var(--good); }
.down { color: var(--bad); }
.paid { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r); z-index: var(--z-skip); }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* A plain label. It names a field or a box; it never sits on top of a heading. */
.kicker { font: 600 14px/1.3 var(--sans); color: var(--ink-2); margin: 0 0 6px; }
.accent { color: inherit; }

h1, h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 76px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -0.01em; margin: 0 0 6px; text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 0 0 24px; }
.lede b { color: var(--ink); font-weight: 600; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---- header ---------------------------------------------------------------------------------------------- */
.demo-banner { background: var(--surface-2); color: var(--ink); text-align: center; font-size: 14px; line-height: 1.4; padding: 8px var(--gutter); border-bottom: 1px solid var(--line-2); }
.topbar { position: sticky; top: 0; z-index: var(--z-bar); display: flex; align-items: center; gap: 28px; height: 66px; padding: 0 var(--gutter); background: rgba(14, 18, 27, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.lockup { display: block; height: 28px; width: auto; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-size: 16px; font-weight: 500; border-radius: var(--r); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.ca-chip-inner { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px dashed var(--line-3); border-radius: var(--r); background: transparent; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.ca-chip-inner.soon { cursor: default; }
.ca-chip-inner b { font-weight: 600; color: var(--ink); }
.wallet-slot { position: relative; }
.wallet-btn.on { gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-dot.signed { background: var(--good); }
.wallet-menu { position: absolute; right: 0; top: 46px; min-width: 250px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); padding: 8px; z-index: var(--z-menu); display: grid; gap: 2px; }
.wallet-menu p { margin: 6px 10px; font-size: 13px; color: var(--muted); }
.wallet-menu button, .wallet-menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; text-align: left; padding: 10px; border: 0; background: none; border-radius: var(--r); cursor: pointer; text-decoration: none; font-size: 15px; }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--surface-3); }
.wallet-menu img { width: 22px; height: 22px; border-radius: 5px; }

/* ---- buttons, fields ------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-sell { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-small { height: 36px; padding: 0 14px; font-size: 15px; }
.btn-large { height: 54px; padding: 0 26px; font-size: 18px; }
.btn-block { width: 100%; height: 52px; font-size: 17px; }
.link-btn { font: 500 15px/1.3 var(--sans); color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); vertical-align: middle; }
.chip.done { border-color: var(--accent); color: var(--accent); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.field { display: grid; gap: 6px; margin: 0 0 18px; align-content: start; }
.field > span { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); }
.input, .textarea { width: 100%; min-height: 46px; padding: 10px 13px; background: var(--ground); border: 1px solid var(--line-3); border-radius: var(--r); font-size: 16px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--ground); }
.input-group .input { border: 0; background: transparent; min-width: 0; }
.input-group .input:focus { box-shadow: none; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.prefix, .suffix { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline { display: flex; gap: 10px; align-items: flex-end; }
.inline .field { flex: 1; margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-3); border-radius: var(--r); overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 14px; font: 500 14px/1 var(--sans); cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.quick button { border: 1px solid var(--line-3); background: var(--surface); border-radius: var(--r); padding: 7px 11px; font: 500 13px/1 var(--mono); cursor: pointer; }
.quick button:hover { border-color: var(--ink-2); }
.skeleton { background: var(--surface); border-radius: var(--r-lg); }

/* ---- the repo card: who it pays, its last release, the money -------------------------------------------- */
.repo { position: relative; margin: 0; display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); min-width: 0; }
.rc-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* a little repo glyph: a book with a spine */
.rc-icon { position: relative; flex: none; width: 16px; height: 20px; border: 2px solid var(--ink-2); border-radius: 2px 3px 3px 2px; }
.rc-icon::before { content: ""; position: absolute; left: 2px; top: -2px; bottom: -2px; border-left: 2px solid var(--ink-2); }
.rc-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 15px; }
.rc-owner { color: var(--muted); }
.rc-name b { font-weight: 700; color: var(--ink); }
.rc-ticker { flex: none; font-size: 13px; color: var(--ink-2); }
.rc-rows { display: grid; margin: 0; border-top: 1px solid var(--line-2); }
.rc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rc-row dt { font-size: 14px; color: var(--muted); white-space: nowrap; }
.rc-row dd { margin: 0; font-size: 15px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-none { color: var(--warn); }
.rc-wait { color: var(--ink); font-weight: 600; }
.rc-paid { color: var(--accent); font-weight: 600; }
.rc-demo { position: absolute; right: 14px; bottom: -22px; font-size: 12px; color: var(--muted); }
.repo-hero { padding: 22px; }
.repo-hero .rc-name { font-size: 17px; white-space: normal; }
.repo-mini { padding: 14px; gap: 10px; }
.is-lost { opacity: 0.7; }

/* Repos in a list: the card, then the market. */
.repo-grid, .rail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.rail { position: relative; }
.rail-card { display: grid; text-decoration: none; color: inherit; border-radius: var(--r-lg); transition: transform 0.15s var(--ease), border-color 0.15s; }
.rail-card .repo { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (hover: hover) and (pointer: fine) { a.rail-card:hover { transform: translateY(-2px); } a.rail-card:hover .repo, a.rail-card:hover .card-foot { border-color: var(--line-3); } }
.rail-card.skeleton { min-height: 280px; background: var(--surface); }
.card-foot { display: grid; gap: 10px; padding: 12px 18px 16px; background: var(--surface); border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title strong { font-size: 17px; }
.ticker { font-size: 13px; color: var(--ink-2); }
.card-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.card-stats b { color: var(--ink); font-weight: 600; font-family: var(--mono); }
.card-stats b.paid { color: var(--accent); }
.progress { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink-2); }
.progress.done span { background: var(--accent); }

/* ---- the vault chart -------------------------------------------------------------------------------------- */
.vault { margin: 0; display: grid; gap: 12px; min-width: 0; }
.vc { width: 100%; height: auto; overflow: visible; }
.vc-base { stroke: var(--line-3); stroke-width: 1; }
.vc-fill { fill: rgba(79, 214, 156, 0.08); }
.vc-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.vc-drop { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 4 4; }
.vc-dot { fill: var(--accent); }
.vc-now { fill: var(--ground); stroke: var(--ink); stroke-width: 2.5; }
.vc-tag { font: 600 15px var(--mono); fill: var(--ink); }
.vc-paid { font: 500 14px var(--mono); fill: var(--accent); }
.vc-wait { font: 600 14px var(--mono); fill: var(--ink); }
.vc-axis, .vc-note { font: 500 13px var(--sans); fill: var(--muted); }
.vc-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.vc-key span { display: inline-flex; align-items: center; gap: 8px; }
.vc-key i { width: 18px; height: 0; border-top: 2.5px solid var(--ink); }
.vc-key i.k-up { transform: rotate(-30deg); }
.vc-key i.k-down { width: 0; height: 16px; border-top: 0; border-left: 2.5px dashed var(--accent); }

/* ---- home ------------------------------------------------------------------------------------------------ */
/* The headline on the left and the pitch on the right, on one line; under them, one repo's panel. */
.intro { padding-top: clamp(40px, 5vw, 72px); }
.intro-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(30px, 3.6vw, 46px); }
.intro h1 { font-size: clamp(36px, 3.9vw, 56px); margin: 0; }
.intro-side .lede { margin-bottom: 20px; }
.intro-actions { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; }
.show-panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.show-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.show-head b { font-size: 16px; }
.show-ticker { margin-left: auto; color: var(--ink-2); }
.show-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.show-body .vault { padding: 22px 26px 20px; }
.show-side { display: grid; align-content: start; gap: 14px; padding: 22px 24px; border-left: 1px solid var(--line-2); background: var(--surface-2); }
.show-wait { display: grid; gap: 2px; margin: 0; }
.show-wait span { font-size: 14px; color: var(--muted); }
.show-wait b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.releases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.releases li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rel-tag { font-weight: 600; }
.rel-when { font-size: 14px; }
.rel-paid { color: var(--accent); font-weight: 600; }
.show-to { margin: 0; font-size: 14px; color: var(--ink-2); }
.show-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.steps li { position: relative; padding: 26px 28px 26px 0; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-2); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 600 14px/1 var(--mono); }
.steps p { margin: 0; color: var(--ink-2); }

.section { padding-top: clamp(76px, 9vw, 116px); }
.section-intro { max-width: 680px; margin-bottom: 26px; }
.section-intro h2 { margin-bottom: 12px; }
.section-intro p { margin: 0; color: var(--ink-2); font-size: 18px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row h2 { margin-bottom: 6px; }
.head-row p { margin: 0; color: var(--ink-2); max-width: 40em; }
.tally { display: flex; flex-wrap: wrap; column-gap: 0.35em; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.tally > span { white-space: nowrap; }
.tally b { color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 0.95em; }
.tally b.paid { color: var(--accent); }

/* Who it's for: three rows, the person on the left. Then the fee split. */
.roles { margin: 0; border-bottom: 1px solid var(--line-2); }
.role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.role dt { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.role dd { margin: 0; }
.role p { margin: 0 0 10px; color: var(--ink-2); max-width: 40em; }
.fees { margin-top: 40px; max-width: 760px; }
.fees h3 { margin-bottom: 14px; }

/* ---- tables --------------------------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
.trade-list { max-height: 520px; overflow-y: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.ledger td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger th.num, .ledger td.num { text-align: right; }
.ledger tr.fresh td { animation: fresh 1.6s var(--ease); }
@keyframes fresh { from { background: var(--accent-wash); } to { background: transparent; } }
[data-motion="off"] .ledger tr.fresh td { animation: none; }
.manifest th:first-child, .manifest td:first-child { padding-left: 0; }
.outcome { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-3); }
.outcome.paid { color: var(--accent); border-color: var(--accent); }
.outcome.waiting { color: var(--warn); border-color: var(--warn); border-style: dashed; }
.outcome.empty { color: var(--muted); }

/* ---- the fee split -------------------------------------------------------------------------------------- */
.split { display: grid; gap: 14px; }
.split-bar { display: flex; height: 46px; border-radius: var(--r); overflow: hidden; gap: 2px; }
.split-bar span { display: flex; align-items: center; padding: 0 12px; min-width: 0; }
.split-bar b { font-size: 14px; font-weight: 600; }
.split-repo { background: var(--accent); color: var(--on-accent); }
.split-launcher { background: var(--ink-2); color: var(--ground); }
.split-house { background: var(--surface-3); color: var(--ink); }
.split-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.split-legend li { display: flex; align-items: center; gap: 10px; }
.split-legend li.split-repo, .split-legend li.split-launcher, .split-legend li.split-house { background: none; color: var(--ink-2); }
.split-legend i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.split-legend .split-repo i { background: var(--accent); }
.split-legend .split-launcher i { background: var(--ink-2); }
.split-legend .split-house i { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-3); }

.closing { padding: clamp(88px, 11vw, 140px) var(--gutter) 40px; }
.closing h2 { font-size: clamp(40px, 5.4vw, 72px); max-width: 12em; margin: 0 0 28px; }
.assure { color: var(--ink-2); font-size: 15px; max-width: 34em; margin: 14px 0 24px; }
.closing .assure { margin: 18px 0 0; }
.faq-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 40px; align-items: start; }
.faq-home .faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq-home .faq summary { font-size: 18px; }
.faq-home .faq p { color: var(--ink-2); max-width: 46em; }

.ca-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; max-width: 640px; }
.ca-box .kicker { margin: 0; }
.ca-box code { font-family: var(--mono); font-size: 14px; user-select: all; overflow-wrap: anywhere; background: none; padding: 0; }
.ca-box.soon code { font-weight: 600; }
.ca-box small { width: 100%; color: var(--muted); }
.empty { padding: 36px 20px; text-align: center; border: 1px dashed var(--line-3); border-radius: var(--r-lg); grid-column: 1 / -1; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); margin: 0 0 14px; }
.empty-page { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; padding-top: 64px; }

/* ---- pages -------------------------------------------------------------------------------------------------- */
.page-head { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 22px; }
.page-head h1 { font-size: clamp(38px, 5vw, 62px); }
.controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 22px; }
.controls .input { max-width: 380px; }
.banner { padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); margin: 18px 0 0; }
.banner.good { border-color: var(--accent); background: var(--accent-wash); }
.coin-head { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 34px; }
.coin-id h1 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 10px; }
.sub { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.sub .ticker { font-size: 15px; }
.addr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.addr button { border: 1px solid var(--line-3); background: var(--surface); border-radius: 4px; padding: 4px 8px; font: 500 12px/1 var(--sans); cursor: pointer; }
.coin-desc { color: var(--ink-2); max-width: 38em; }
.coin-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.coin-vault { margin: 8px 0 28px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.coin-vault:empty { display: none; }
.coin-vault h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
.coin-vault .vault { max-width: 820px; }
.statline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 28px 0; border-top: 1px solid var(--line-3); }
.statline > div { padding: 14px 16px 4px 0; min-width: 0; }
.statline dt { font-size: 14px; color: var(--muted); }
.statline dd { margin: 4px 0 0; font: 600 clamp(18px, 1.8vw, 22px)/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statline dd.paid, .statline .paid dd { color: var(--accent); }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px; align-items: start; }
.col { display: grid; gap: 24px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font: 600 18px/1.2 var(--sans); letter-spacing: -0.01em; margin: 0; }
.panel-body { padding: 18px; }
.chart-wrap { position: relative; height: 280px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.chart-readout { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.chart-readout b { font-weight: 600; margin-left: 4px; }
.panel-body > .progress { margin-top: 14px; }
.facts { list-style: none; margin: 14px 0 10px; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.facts li > span:first-child { color: var(--muted); }
.facts li > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.repo-desc { margin: 0 0 12px; color: var(--ink-2); }
.claim-help { border: 1px dashed var(--line-3); border-radius: var(--r-lg); padding: 12px 14px; margin: 0 0 12px; }
.claim-help summary { cursor: pointer; }
.claim-help ol { padding-left: 20px; margin: 10px 0; color: var(--ink-2); font-size: 14px; }
.result { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); margin: 12px 0 0; font-size: 15px; background: var(--surface-2); }
.result.pass { border-color: var(--good); }
.result.fail { border-color: var(--bad); }
.result.info { border-color: var(--line-3); }
.trade-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.trade-switch button { height: 42px; border: 1px solid var(--line-3); background: var(--surface); border-radius: var(--r); font-weight: 600; cursor: pointer; }
.trade-switch button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.quote { display: grid; gap: 4px; min-height: 44px; margin-bottom: 12px; font-size: 15px; }
.holders { list-style: none; margin: 0; padding: 0; }
.holders li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.who { display: inline-flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: var(--r); cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); }
.comments { list-style: none; margin: 0; padding: 0 18px 18px; }
.comments li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comments .by { font-size: 13px; color: var(--muted); }
.comments p { margin: 4px 0 0; overflow-wrap: anywhere; }
.comment-form { padding: 18px; display: grid; gap: 10px; }

/* ---- tag a repo (stages) ----------------------------------------------------------------------------------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.stages { display: grid; gap: 18px; }
.stage { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.stage[data-state="locked"] { opacity: 0.5; }
.stage[data-state="locked"] .stage-body { display: none; }
.stage[data-state="done"] { border-color: var(--accent); }
.stage-head { display: flex; gap: 16px; padding: 20px; }
.stage-head h2 { font: 600 21px/1.2 var(--sans); letter-spacing: -0.015em; margin: 0 0 4px; }
.stage-head p { margin: 0; color: var(--muted); font-size: 15px; }
.stage-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-3); font-weight: 600; font-size: 13px; }
.stage[data-state="done"] .stage-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stage-body { padding: 0 20px 20px; }
.repo-card { margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--ground); font-size: 14px; }
.repo-card p { margin: 0 0 6px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: 14px; }
.checklist li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 8px; }
.checklist li.no::before { content: "✕"; color: var(--bad); }
.art-choice { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.art { width: 120px; height: 120px; border-radius: var(--r-lg); overflow: hidden; background: var(--ground); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-choice input[type="file"] { margin-top: 8px; font-size: 14px; max-width: 100%; }
.links summary { cursor: pointer; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.quote-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.quote-table tr.total td { font-weight: 700; border-bottom: 0; }
.wallet-ask { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); font-size: 15px; margin: 14px 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 0 0 14px; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.todo { color: var(--warn); }
.progress-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 15px; counter-reset: s; }
.progress-steps li { counter-increment: s; color: var(--muted); }
.progress-steps li::before { content: counter(s) ". "; font-family: var(--mono); }
.progress-steps li.done { color: var(--ink); }
.progress-steps li.done::before { content: "✓ "; color: var(--accent); }
.progress-steps li.active { color: var(--ink); font-weight: 600; }
.launch-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.side-split .split-bar { height: 40px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.notes li { position: relative; padding-left: 16px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.setup-status { border: 1px dashed var(--warn); border-radius: var(--r-lg); padding: 12px 14px; font-size: 15px; margin-top: 12px; }
.setup-status ul { margin: 6px 0; padding-left: 20px; }

.how-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-3); }
.how-step { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 360px); gap: 48px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line-2); }
.how-step p { color: var(--ink-2); max-width: 36em; }
.step-n { font-size: 14px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--ink); }
.cases { display: grid; gap: 12px; margin: 16px 0; }
.case { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.faq details { border-top: 1px solid var(--line-2); padding: 15px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; }
.notes-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; }
.notes-grid li { border-top: 2px solid var(--accent); padding-top: 14px; }
.notes-grid p { color: var(--ink-2); margin: 0; }
.token-page .statline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.token-page .panel { margin-top: 24px; }

/* ---- footer, tab bar, toasts ------------------------------------------------------------------------------ */
.footer { margin-top: 64px; border-top: 1px solid var(--line-2); padding: 44px 0 32px; background: #0a0d14; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 32px; }
.footer-brand .lockup { height: 26px; color: var(--ink); }
.footer-brand p { color: var(--ink-2); max-width: 32em; font-size: 15px; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.footer-base p { margin: 0; max-width: 60em; }
.tabbar { display: none; }
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-toast); display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: var(--r-lg); font-size: 15px; display: flex; gap: 10px; justify-content: space-between; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.toast.error { background: var(--bad); color: #1a0703; }
.toast a { color: inherit; }

/* ---- smaller screens -------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .intro-row, .show-body, .coin-layout, .launch, .coin-head, .faq-home { grid-template-columns: minmax(0, 1fr); }
  .show-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .launch-side { position: static; }
  .coin-tag .repo { max-width: 460px; }
  .statline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav, .ca-chip, .top-cta { display: none; }
  .top-actions { margin-left: auto; }
  .topbar { gap: 12px; height: 58px; }
  .lockup { height: 24px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; place-items: center; height: 56px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
  .tabbar a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); }
  body { padding-bottom: 64px; }
  html { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(68px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
  .intro-actions .btn { width: 100%; }
  .show-head { padding: 12px 16px; }
  .show-body .vault { padding: 16px; }
  .show-side { padding: 16px; }
  .vc-tag, .vc-paid, .vc-wait { font-size: 20px; }
  .vc-axis, .vc-note { font-size: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line-2); }
  .role { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .notes-grid, .footer-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .how-step { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .empty-page { grid-template-columns: minmax(0, 1fr); }
  .statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; }
}
@media (pointer: coarse) {
  .btn-small, .ca-chip-inner, .seg button, .quick button, .tabs button, button.chip { min-height: 44px; }
}
.proof > span { white-space: nowrap; }
