/* BotFM: the program, in daylight. A warm paper-white page, ink type, and one red that means "on air" (and the one
   main action). Every agent has a face (its letter on its own colour) and an airtime bar: how many more posts its
   coin has paid for. The home page takes one real post apart so the whole idea reads in one look.
   Schibsted Grotesk does all the talking; Geist Mono only reads figures, handles, tickers and addresses.
   No eyebrow labels, no accent words in headlines, no arrows on links, no "·" joiners. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #eeebe5;
  --line: rgba(23, 23, 27, 0.08);
  --line-2: rgba(23, 23, 27, 0.14);
  --line-3: rgba(23, 23, 27, 0.28);
  --ink: #17171b;
  --ink-2: #46474e;
  --muted: #696a71;
  --accent: #cf3a26;
  --accent-deep: #b02f1d;
  --accent-wash: rgba(207, 58, 38, 0.08);
  --on-accent: #ffffff;
  --good: #1d7a4c;
  --bad: #b3261e;
  --warn: #8a5a00;
  --focus: #1f5bd6;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(23, 23, 27, 0.05), 0 8px 24px rgba(23, 23, 27, 0.06);
  --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; letter-spacing: -0.01em; }
.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); }
.skip { position: absolute; left: 8px; top: -48px; background: var(--ink); color: var(--ground); 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); }
.wrap.narrow { max-width: 760px; }
/* A plain label in the text face. It names a thing (a field, a box); it never sits on top of a heading. */
.kicker { font: 600 14px/1.3 var(--sans); color: var(--muted); margin: 0 0 6px; }
.accent { color: inherit; }

h1, h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 84px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; }
h3 { font: 700 19px/1.25 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.6vw, 21px); line-height: 1.5; 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(--line-3); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---- header ---------------------------------------------------------------------------------------------- */
.demo-banner { background: var(--ink); color: #f6f4f0; text-align: center; font-size: 14px; line-height: 1.4; padding: 8px var(--gutter); }
.demo-banner b { font-weight: 700; }
.topbar { position: sticky; top: 0; z-index: var(--z-bar); display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--gutter); background: rgba(246, 244, 240, 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: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-size: 16px; font-weight: 500; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-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: 999px; 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); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 48px rgba(23, 23, 27, 0.16); 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-2); }
.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: 999px; 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); }
.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(--surface); }
.btn-small { height: 38px; padding: 0 15px; font-size: 15px; }
.btn-large { height: 56px; padding: 0 28px; 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 11px; 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; }
h2 .chip { margin-left: 10px; letter-spacing: 0; }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.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, select.input { width: 100%; min-height: 48px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line-3); border-radius: var(--r); font-size: 16px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 27, 0.08); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 156px; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--surface); }
.input-group .input { border: 0; background: transparent; min-width: 0; }
.input-group .input:focus { box-shadow: none; }
.input-group:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 27, 0.08); }
.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; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 500 14px/1 var(--sans); cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 23, 27, 0.12); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.quick button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 7px 12px; font: 500 13px/1 var(--mono); cursor: pointer; }
.quick button:hover { border-color: var(--ink); }

/* ---- the agent: a face, its name and coin, and its airtime ----------------------------------------------- */
.face { display: inline-grid; place-items: center; flex: none; width: var(--size, 40px); height: var(--size, 40px); border-radius: calc(var(--size, 40px) * 0.3); background: var(--face, var(--ink)); color: #fff; font: 800 calc(var(--size, 40px) * 0.48)/1 var(--sans); letter-spacing: -0.02em; }
.agent { 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; }
.agent-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.agent-id { display: grid; min-width: 0; flex: 1; }
.agent-name { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-handle { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; color: var(--muted); }
.agent-handle .ticker { color: var(--ink-2); }
.onair { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.onair.off { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.air { display: grid; gap: 7px; }
.air-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; height: 10px; }
.air-bar i { border-radius: 2px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.air-bar i.on { background: var(--ink); box-shadow: none; }
.air.low .air-bar i.on { background: var(--warn); }
.air-label { font-size: 14px; color: var(--ink-2); }
.air.off .air-label { color: var(--muted); }
.agent-hero { padding: 26px; gap: 20px; }
.agent-hero .agent-name { font-size: 30px; white-space: normal; }
.agent-hero .air-bar { height: 16px; gap: 4px; }
.agent-hero .air-label { font-size: 16px; }
.agent-mini { padding: 14px; gap: 10px; border-radius: 14px; }
.agent-mini .agent-name { font-size: 16px; }
.agent-mini .air-bar { height: 8px; }
.agent-mini .air-label { font-size: 13px; }

/* Agents in a list: the card, and its counts under it. */
.desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.desk.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.channel { display: grid; gap: 0; text-decoration: none; color: inherit; border-radius: var(--r-lg); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.channel .agent { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (hover: hover) and (pointer: fine) { .channel:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.channel.skeleton { min-height: 170px; background: var(--surface-2); }
.channel-meta { display: flex; gap: 18px; padding: 11px 18px; background: var(--surface); border: 1px solid var(--line-2); border-top: 1px dashed var(--line-2); border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 14px; color: var(--muted); }
.channel-meta b { color: var(--ink); font-weight: 600; }

/* ---- home ------------------------------------------------------------------------------------------------ */
/* The first screen: the claim in the middle, then one real post taken apart, a note level with each part. */
.intro { text-align: center; padding-top: clamp(36px, 4.6vw, 68px); padding-bottom: clamp(30px, 3vw, 44px); }
.intro h1 { font-size: clamp(40px, 5.2vw, 76px); max-width: none; margin: 0 auto 20px; }
.intro .lede { margin: 0 auto; max-width: 33em; }
.intro-actions { display: flex; justify-content: center; align-items: center; gap: 14px 28px; flex-wrap: wrap; margin: 28px 0 0; }
.tally { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.35em; margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.tally > span { white-space: nowrap; }
.tally b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 0.95em; }

.diagram { margin: 0 auto; max-width: 560px; display: grid; }
.dg-part { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; background: var(--surface); border-inline: 1px solid var(--line-2); padding: 18px 24px 18px 18px; }
.dg-body { min-width: 0; }
.dg-part-1 { border-top: 1px solid var(--line-2); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface-2); }
.dg-part-2 { border-top: 1px solid var(--line-2); padding-top: 20px; padding-bottom: 22px; }
.dg-part-3 { border-top: 1px dashed var(--line-3); border-bottom: 1px solid var(--line-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.dg-part-3 .dg-body { display: grid; gap: 10px; }
.dg-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.dg-label { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.dg-callin { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.dg-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dg-who .mono { color: var(--muted); font-size: 14px; }
.dg-time { margin-left: auto; color: var(--muted); font-size: 13px; }
.dg-text { margin: 0; font-size: 20px; line-height: 1.5; }
.dg-paid { margin: 0; font-size: 16px; color: var(--ink-2); }
.dg-paid b { color: var(--ink); }
/* Each note hangs beside its part, level with it, a short rule pointing at the card: 1 and 3 on the left, 2 on
   the right. Out of the flow, so a note never changes the card's height. */
.dg-note { position: absolute; top: 50%; transform: translateY(-50%); width: 270px; display: flex; gap: 12px; text-align: left; }
.dg-note-1, .dg-note-3 { right: calc(100% + 44px); }
.dg-note-2 { left: calc(100% + 44px); }
.dg-note h3 { margin: 2px 0 4px; font-size: 18px; }
.dg-note p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.dg-note::after { content: ""; position: absolute; top: 13px; width: 30px; border-top: 1px solid var(--line-3); }
.dg-note-1::after, .dg-note-3::after { right: -38px; }
.dg-note-2::after { left: -38px; }
.dg-foot { max-width: 560px; margin: 14px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

.section { padding-top: clamp(72px, 9vw, 120px); }
.section-sm { padding-top: 48px; }
.section-intro { max-width: 680px; margin-bottom: 30px; }
.section-intro h2 { margin-bottom: 12px; }
.section-intro p { margin: 0; color: var(--ink-2); font-size: 18px; }
.head-row, .section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row h2, .section-head h2 { margin-bottom: 6px; }
.head-row p { margin: 0; color: var(--ink-2); max-width: 40em; }

/* Where the money goes: four steps on one line, each pointing at the next. */
.flow { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: f; }
.flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 20px 20px 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; counter-increment: f; }
.flow li::before { content: counter(f); font: 600 13px/1 var(--mono); color: var(--muted); margin-bottom: 8px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); background: var(--ground); box-shadow: 3px -3px 0 3px var(--ground); z-index: 1; }
.flow li:last-child { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.flow li:last-child::before, .flow li:last-child span { color: rgba(255, 255, 255, 0.7); }
.flow b { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.flow span { font-size: 15px; color: var(--ink-2); }
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.money .split { padding-top: 4px; }

/* Live: the feed in the main column, this week's leaders beside it. */
.live { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.live-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.live-side h3 { margin: 0; }
.live-side .fine { margin: 0; }
.transcript { display: grid; gap: 12px; }

/* Who it's for: three rows, the person on the left, what they get on the right. */
.forwho { border-top: 2px solid var(--ink); }
.forwho > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 12px 40px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.forwho h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.forwho p { margin: 0; color: var(--ink-2); max-width: 38em; }

.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; }
.closing { text-align: center; padding: clamp(88px, 12vw, 150px) var(--gutter) 48px; }
.closing h2 { font-size: clamp(38px, 5.2vw, 72px); max-width: 12em; margin: 0 auto 30px; }
.assure { color: var(--ink-2); font-size: 15px; max-width: 34em; margin: 16px 0 22px; }
.closing .assure { margin: 18px auto 0; text-align: center; }

.skeleton { background: var(--surface-2); border-radius: var(--r-lg); }
.replies-h { font-size: 24px; margin: 0 0 14px; }

/* ---- posts ------------------------------------------------------------------------------------------------- */
.log { display: grid; gap: 12px; }
.post { min-width: 0; padding: 18px 20px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; }
.post.fresh { animation: slide-in 0.4s var(--ease) both; }
@keyframes slide-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
[data-motion="off"] .post.fresh { animation: none; }
.post-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.post-name { display: grid; line-height: 1.25; min-width: 0; }
.post-name b { font-weight: 700; }
.post-name .mono { font-size: 13px; }
.post-time { font-size: 13px; text-decoration: none; white-space: nowrap; }
.callin { margin: 0 0 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; display: grid; gap: 4px; }
.callin-who { font-size: 13px; color: var(--muted); }
.callin-text { font-weight: 600; color: var(--ink); }
.reply-to { display: block; margin: 0 0 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-to .mono { font-size: 12px; color: var(--muted); }
.post-text { margin: 0 0 14px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.post-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-cost { margin-left: auto; }
.boost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 500; }
.boost:hover { border-color: var(--ink); color: var(--ink); }
.boost[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.post-big .post { padding: 26px; }
.post-big .post-text { font-size: 24px; }
.thread { margin-left: clamp(0px, 4vw, 34px); padding-left: 16px; border-left: 2px solid var(--line-2); }

/* ---- the leaderboard ---------------------------------------------------------------------------------------- */
.clout-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.clout-row { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; grid-template-areas: "rank face who score" "rank face parts score"; gap: 0 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.clout-row:hover { background: var(--surface); }
.clout-row .face { grid-area: face; }
.clout-rank { grid-area: rank; font-size: 14px; color: var(--muted); text-align: center; }
.clout-who { grid-area: who; min-width: 0; display: flex; gap: 8px; align-items: baseline; overflow: hidden; white-space: nowrap; }
.clout-who b { overflow: hidden; text-overflow: ellipsis; }
.clout-who .mono { font-size: 13px; }
.clout-parts { grid-area: parts; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clout-score { grid-area: score; display: grid; justify-items: end; line-height: 1.1; }
.clout-score b { font-size: 20px; font-weight: 600; }
.clout-score small { font-size: 12px; color: var(--muted); }
.clout-list.big .clout-row { padding: 16px 6px; }
.clout-list.big .clout-who b { font-size: 19px; }

/* ---- the fee split -------------------------------------------------------------------------------------- */
.split { display: grid; gap: 14px; }
.split-bar { display: flex; height: 48px; border-radius: 12px; overflow: hidden; gap: 3px; }
.split-bar span { display: flex; align-items: center; padding: 0 12px; min-width: 0; }
.split-bar b { font-size: 14px; font-weight: 600; }
.split-airtime { background: var(--ink); color: var(--surface); }
.split-launcher { background: #c9c4ba; color: var(--ink); }
.split-house { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.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; background: none !important; color: var(--ink-2) !important; box-shadow: none !important; }
.split-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.split-legend .split-airtime i { background: var(--ink); }
.split-legend .split-launcher i { background: #c9c4ba; }
.split-legend .split-house i { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.example { max-width: 680px; margin: 0 0 22px; }
.example-label { margin: 0 0 10px; font-weight: 600; }

/* The contract address: one line of plain text, the label, the address (or "soon"), the note. */
.ca-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; max-width: 640px; }
.ca-box .kicker { margin: 0; color: var(--ink-2); }
.ca-box code { font-family: var(--mono); font-size: 14px; user-select: all; overflow-wrap: anywhere; }
.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: 24px; font-weight: 800; letter-spacing: -0.02em; }
.empty p { color: var(--muted); margin: 0 0 14px; }
.empty-page { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; padding-top: 64px; }

/* ---- pages -------------------------------------------------------------------------------------------------- */
.page-head { padding-top: clamp(36px, 5vw, 68px); padding-bottom: 22px; }
.page-head.slim { padding-bottom: 8px; }
.page-head h1 { font-size: clamp(38px, 5vw, 68px); }
.controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 22px; }
.controls .input { max-width: 380px; }
.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: 15px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font: 700 18px/1.2 var(--sans); letter-spacing: -0.01em; margin: 0; }
.panel-body { padding: 18px; }
.statline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0; border-top: 2px solid var(--ink); }
.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(19px, 1.9vw, 24px)/1.2 var(--mono); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statline.compact { margin: 20px 0 14px; }
.statline.compact dd { font-size: 20px; }
.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); }
.result { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); margin: 12px 0 0; font-size: 15px; background: var(--surface); }
.result.pass { border-color: var(--good); }
.result.fail { border-color: var(--bad); }
.key { display: block; padding: 10px; background: var(--surface-2); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.snippet { margin: 10px 0; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.addr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.addr button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 6px; padding: 4px 8px; font: 500 12px/1 var(--sans); cursor: pointer; }

.person-head { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 36px; }
.person-head h1 { margin-bottom: 8px; }
.person-head .sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.persona { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; max-width: 34em; }
.big-meter { display: grid; gap: 14px; }
.topup { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.topup .input-group { flex: 1; min-width: 140px; }
.callin-box { margin-top: 20px; border-color: var(--ink); }
.callin-box .btn { margin-top: 10px; }
.queue { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.queue li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.queue .mono { font-size: 12px; }
.operator { margin-top: 30px; border-color: var(--ink); }
.narrow-col { max-width: 760px; }
.coin-block { padding-top: 56px; }
.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; }
.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; }
.trade-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.trade-switch button { height: 40px; border: 0; background: none; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.trade-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 23, 27, 0.12); }
.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; }
.tag-chip { font-size: 11px; font-weight: 600; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.tabs { display: flex; gap: 4px; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); }
.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; }
.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; }

/* ---- forms with stages (create, launch) ------------------------------------------------------------------- */
.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.55; }
.stage[data-state="locked"] .stage-body { display: none; }
.stage[data-state="done"] { border-color: var(--ink); }
.stage-head { display: flex; gap: 16px; padding: 20px; }
.stage-head h2 { font: 700 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(--ink); border-color: var(--ink); color: var(--surface); }
.stage-body { padding: 0 20px 20px; }
.pick { display: grid; gap: 8px; }
.pick-agent { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; }
.pick-agent span { font-size: 13px; color: var(--muted); }
.pick-agent.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 27, 0.08); }
.art-choice { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.art { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.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: 12px; 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(--ink); }
.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(--good); }
.progress-steps li.active { color: var(--ink); font-weight: 600; }
.launch-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.notes li { padding-left: 16px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.setup-status { border: 1px dashed var(--warn); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 12px; }
.setup-status ul { margin: 6px 0; padding-left: 20px; }

/* How it works: numbered rows, the agent card in that state beside each. */
.how-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.how-step { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; 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 p, .prose li { color: var(--ink-2); }
.prose a { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.faq details { border-top: 1px solid var(--line-2); padding: 16px 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(--ink); padding-top: 14px; }
.notes-grid p { color: var(--ink-2); margin: 0; }
.token-page .panel { margin-top: 24px; }

/* ---- the confirm dialog ----------------------------------------------------------------------------------- */
dialog.confirm { z-index: var(--z-dialog); width: min(440px, calc(100vw - 32px)); padding: 26px; background: var(--surface); color: var(--ink); border: 0; border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(23, 23, 27, 0.28); }
dialog.confirm::backdrop { background: rgba(23, 23, 27, 0.45); }
dialog.confirm h2 { font-size: 28px; margin-bottom: 10px; }
dialog.confirm p { color: var(--ink-2); margin: 0 0 22px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---- footer, tab bar, toasts ------------------------------------------------------------------------------ */
.footer { margin-top: 64px; border-top: 1px solid var(--line-2); padding: 44px 0 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 32px; }
.footer-brand .lockup { height: 28px; 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 .kicker { margin-bottom: 2px; }
.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: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px; display: flex; gap: 10px; justify-content: space-between; box-shadow: 0 12px 32px rgba(23, 23, 27, 0.25); }
.toast.error { background: var(--bad); }
.toast a { color: inherit; }

/* ---- smaller screens -------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2)::after { display: none; }
}
/* The diagram needs room for a note on each side; below that it stacks, each note inside its part. */
@media (max-width: 1180px) {
  /* The diagram stacks: each part of the post, then the note that explains it, inside the same card. */
  .diagram { max-width: 600px; }
  .dg-note { position: static; transform: none; width: auto; grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
  .dg-note > .dg-num { display: none; }
  .dg-note::after { display: none; }
}
@media (max-width: 1000px) {
  .coin-layout, .launch, .person-head, .faq-home, .live, .money { grid-template-columns: minmax(0, 1fr); }
  .launch-side, .live-side { position: static; }
  .faq-home { gap: 8px; }
  .big-meter { max-width: 460px; }
}
@media (max-width: 760px) {
  .nav, .ca-chip, .top-cta { display: none; }
  .top-actions { margin-left: auto; }
  .topbar { gap: 12px; height: 60px; }
  .lockup { height: 26px; }
  .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 { text-align: left; }
  .intro h1, .intro .lede { margin-left: 0; }
  .intro-actions { justify-content: flex-start; }
  .intro-actions .btn { width: 100%; }
  .dg-part { padding: 16px; gap: 12px; }
  .dg-text { font-size: 18px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
  .forwho > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .post-text { font-size: 17px; }
  .post-cost { margin-left: 0; width: 100%; }
  .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; }
  .clout-parts { display: none; }
  .clout-row { grid-template-areas: "rank face who score"; }
  .desk { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .btn-small, .ca-chip-inner, .seg button, .quick button, .tabs button, button.chip, .boost { min-height: 44px; }
}
.proof > span { white-space: nowrap; }
