/* AfriRadar Data API. Follows the AfriRadar brand guide v1 (Oct 2026): midnight ink with two
   signals, emerald for accents on dark (emerald deep on paper), gold for one highlight per view
   and never as text on paper. Inter, sentence-case bold headlines with tight tracking, tabular
   figures. Layout keeps the house structure: full-bleed bands, 1280px measure, hairline grids. */
:root {
  --max: 1280px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --sec: clamp(3.5rem, 8vw, 7rem);
  --ink: #0a1322;
  --night: #060c17;
  --ink-2: #0f1a2c;
  --ink-3: #15233a;
  --paper: #f6f4ef;
  --white: #fff;
  --emerald: #1dbf8b;
  --emerald-deep: #0b7a57;
  --gold: #f2b33d;
  --slate: #566275;
  --mist: #9aa7ba;
  --line: #e2ded5;
  --line-dark: #22314a;
  --bad: #ff7a6b;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1.0625rem/1.6 var(--font); font-variant-numeric: tabular-nums; }
img, video, canvas { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mono, code, pre, td, th { font-family: var(--mono); overflow-wrap: anywhere; }
code { font-size: .88em; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; padding: .6rem 1rem; background: var(--gold); color: var(--ink); }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.band { position: relative; padding: var(--sec) 0; overflow: hidden; }
.band--ink { background: var(--ink); color: var(--white); }
.band--night { background: var(--night); color: var(--white); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--white { background: var(--white); color: var(--ink); }

.eyebrow { margin: 0 0 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--emerald); }
.band--paper .eyebrow, .band--white .eyebrow { color: var(--emerald-deep); }
.h-xl { margin: 0 0 1.5rem; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.h-l { margin: 0 0 1.25rem; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.h-m { margin: 0 0 .6rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.lead { max-width: 52rem; margin: 0 0 1.75rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--mist); }
.band--paper .lead, .band--white .lead { color: var(--slate); }
.small { font-size: .875rem; }
.muted { color: var(--mist); }
.band--paper .muted, .band--white .muted { color: var(--slate); }
.signal { color: var(--emerald); }

/* honest status labels */
.tag { display: inline-block; padding: .22rem .55rem; border: 1px solid currentColor; border-radius: 999px; font: 700 .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }
.tag--live { color: var(--emerald); }
.tag--devnet { color: var(--gold); }
.tag--off { color: var(--mist); }
.band--paper .tag--live, .band--white .tag--live { color: var(--emerald-deep); }
.band--paper .tag--devnet, .band--white .tag--devnet { color: var(--slate); }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line-dark); background: rgba(6, 12, 23, .92); backdrop-filter: blur(8px); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo small { margin-left: .2rem; padding-left: .7rem; border-left: 1px solid var(--line-dark); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; }
.site-head nav a { padding: .35rem 0; font-size: .9rem; font-weight: 500; color: var(--mist); text-decoration: none; }
.site-head nav a:hover { color: var(--white); }

/* buttons and inputs */
.btn { display: inline-block; margin: .25rem .6rem .25rem 0; padding: .85rem 1.3rem; border: 1px solid var(--white); border-radius: 10px; background: var(--white); color: var(--ink); font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn--ghost:hover { border-color: var(--white); }
.btn--gold { border-color: var(--gold); background: var(--gold); color: var(--ink); font-weight: 700; }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn[disabled] { opacity: .45; cursor: wait; }
input, select, textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-dark); border-radius: 10px; background: var(--night); color: var(--white); font: 400 1rem/1.45 var(--font); }
textarea { min-height: 5.5rem; resize: vertical; }
label { display: block; margin: 0 0 .45rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }

/* hero, with the radar rings from the brand mark */
.hero { padding-top: clamp(4rem, 9vw, 8rem); }
.hero::before { content: ""; position: absolute; right: -18vw; top: 50%; width: min(90vw, 1100px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 79px, rgba(255, 255, 255, .07) 79px 80px); }
.hero::after { content: ""; position: absolute; right: -18vw; top: 50%; width: min(90vw, 1100px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, rgba(29, 191, 139, .16), transparent 18%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.proof-card { border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(15, 26, 44, .85); padding: 1.3rem 1.4rem; }
.proof-card dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: .8rem 0 0; font-size: .9rem; }
.proof-card dt { color: var(--mist); font: 600 .7rem/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.proof-card dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.blip { display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 179, 61, .2); vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--line-dark); }
.stats div { padding: 1.2rem 1.35rem; background: var(--ink-2); }
.stats b { display: block; white-space: nowrap; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.stats span { font-size: .82rem; color: var(--mist); }
.stats div > span { display: block; line-height: 1.45; margin-top: .3rem; }

/* console: the instrument */
.console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.console > div { padding: clamp(1.25rem, 2.5vw, 2rem); }
.console .controls { border-right: 1px solid var(--line-dark); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-bottom: 1.25rem; padding: 4px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--night); }
.seg button { padding: .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--mist); font: 600 .88rem/1.2 var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink-3); color: var(--white); box-shadow: inset 0 0 0 1px var(--emerald); }
.seg button[hidden] { display: none; }
.field { margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .55rem 0 0; }
.chips button { padding: .38rem .7rem; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--mist); font: 400 .82rem/1.3 var(--font); cursor: pointer; text-align: left; }
.chips button:hover { border-color: var(--emerald); color: var(--white); }
.wallet-line { margin: .6rem 0 0; font: 400 .82rem/1.5 var(--mono); color: var(--mist); overflow-wrap: anywhere; }
.out-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.out-status { font: 600 .8rem/1.5 var(--mono); color: var(--mist); }
.out-status.ok { color: var(--emerald); }
.out-status.bad { color: var(--bad); }
.answer { margin: 0 0 1.25rem; font-size: 1.02rem; line-height: 1.6; }
.answer table, .data-table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .86rem; }
.answer th, .answer td, .data-table th, .data-table td { padding: .5rem .65rem; border-bottom: 1px solid var(--line-dark); text-align: left; }
.data-table td, .data-table th { white-space: nowrap; overflow-wrap: normal; }
.table-scroll { overflow-x: auto; }
.bill { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bill td { padding: .45rem 0; border-bottom: 1px solid var(--line-dark); }
.bill td:last-child { text-align: right; }
.bill tr.total td { border-bottom: 2px solid var(--gold); font-weight: 700; color: var(--white); }
.bill tr.refund td { color: var(--emerald); }
.receipt { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--emerald); border-radius: 0 10px 10px 0; background: var(--ink-3); font: 400 .82rem/1.6 var(--mono); overflow-wrap: anywhere; }
.receipt.bad { border-left-color: var(--bad); }
.deposit-address { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.deposit-address code { flex: 1 1 16rem; padding: .7rem .8rem; border: 1px solid var(--emerald); border-radius: 10px; background: var(--night); color: var(--white); font: 600 .95rem/1.45 var(--mono); }
.deposit-address .btn { margin: 0; }
#topup-result .bill td:last-child { white-space: nowrap; overflow-wrap: normal; }
.no-topup .topup-hint { display: none; }
pre.json { max-height: 22rem; overflow: auto; margin: 0; padding: 1rem; border: 1px solid var(--line-dark); border-radius: 10px; background: var(--night); font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }
.disclaimer { margin-top: 1.25rem; font-size: .8rem; color: var(--mist); }
.disclaimer b { color: var(--gold); font-weight: 600; }

/* paper sections: steps, products, audiences, boundary */
.steps, .grid3, .who, .cols2 { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; counter-reset: s; }
.steps li { list-style: none; padding: 1.6rem 1.45rem 1.8rem; background: var(--white); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: .8rem; font: 700 1.9rem/1 var(--font); letter-spacing: -.03em; color: var(--emerald-deep); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid3 > * { padding: 1.6rem 1.45rem; background: var(--white); }
.price { display: block; margin: .4rem 0 .5rem; font: 700 2rem/1 var(--font); letter-spacing: -.03em; }
.route { font: 400 .8rem/1.5 var(--mono); color: var(--slate); overflow-wrap: anywhere; }
.who { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.who > div { padding: 1.6rem 1.45rem; background: var(--white); }
.who .n { font: 700 2rem/1 var(--mono); color: var(--emerald-deep); }
.who .role { margin: .9rem 0 .3rem; font: 600 .7rem/1.2 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols2 > div { padding: 1.6rem 1.45rem; background: var(--white); }
.band--ink .cols2, .band--night .cols2 { border-color: var(--line-dark); background: var(--line-dark); }
.band--ink .cols2 > div, .band--night .cols2 > div { background: var(--ink-2); }
.cols2 ul { margin: 0; padding-left: 1.1rem; }
.cols2 li { margin: .4rem 0; }
.band--paper code, .band--white code { color: var(--emerald-deep); }

/* markets: what is covered now and next */
.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.markets > div { padding: 1.4rem 1.45rem; background: var(--white); }
.markets .who-reg { font-size: .85rem; color: var(--slate); }

.cols2 + .cols2 { margin-top: 1rem; }

/* proof: the attack board */
.trials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: var(--line-dark); }
.trial { padding: 1.4rem 1.45rem; background: var(--ink-2); }
.trial .claim { display: block; margin: .8rem 0 .2rem; font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.05 var(--font); letter-spacing: -.03em; }
.verdict { margin: 1rem 0 0; font: 700 .95rem/1.4 var(--mono); color: var(--mist); }
.verdict.ok { color: var(--emerald); }
.verdict.no { color: var(--gold); }
.trial .log { margin: .4rem 0 0; font: 400 .76rem/1.5 var(--mono); color: var(--mist); overflow-wrap: anywhere; }

/* ledger */
.panels { margin: 0 0 1.5rem; }
.panels select { margin-bottom: .6rem; }
.progress { height: 4px; margin: .9rem 0 .4rem; border-radius: 2px; overflow: hidden; background: var(--line-dark); }
.progress i { display: block; width: 0; height: 100%; background: var(--emerald); transition: width .2s; }
.ok-text { color: var(--emerald); }
.bad-text { color: var(--bad); }
.ledger-totals { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0 0 1.25rem; font: 600 .9rem/1.4 var(--mono); color: var(--mist); }
.ledger-totals b { color: var(--white); font-size: 1.35rem; }
.data-table th { color: var(--mist); font: 600 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.st-settled { color: var(--emerald); }
.st-deposit { color: var(--mist); }
.st-refunded { color: #8ab4ff; }
.st-failed, .st-pending { color: var(--bad); }

pre.code { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 10px; background: var(--night); color: var(--white); font-size: .85rem; line-height: 1.6; }

.site-foot { padding: 2.75rem 0; background: var(--night); color: var(--mist); font-size: .88rem; border-top: 1px solid var(--line-dark); }
.site-foot a { color: var(--white); }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }

@media (max-width: 960px) {
  .hero-grid, .console { grid-template-columns: minmax(0, 1fr); }
  .console .controls { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .steps, .stats, .grid3, .who, .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .stats b { font-size: 1.35rem; }
  .steps, .cols2, .grid3, .who, .markets, .trials { grid-template-columns: minmax(0, 1fr); }
  .site-head { position: static; }
  .site-head nav { gap: .2rem 1rem; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
