/* omnipad. The look, layered over the base components in style.css. DESIGN.md is the contract.
   Calm and technical: a near-white page (near-black in the dark theme), one indigo accent for the
   primary action and the emphasised word, a grotesk display face. Chain colours (amber BNB, green
   Robinhood Chain, violet Solana) appear only as 7px dots and chain chips, never as fills. Green
   and red only ever mean up and down. */

:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-card: 16px; --r-inner: 10px;
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef0f6; --line: #e1e4ee;
  --ink: #0f1222; --muted: #6a6f85; --accent: #5b4cff; --accent-ink: #ffffff; --accent-text: #4a3dff;
  --up: #16a34a; --down: #e0481c;
  --c-sol: #9945ff; --c-bnb: #f0b90b; --c-rh: #1fb954;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0b0c12; --surface: #13141c; --surface-2: #1a1c27; --line: #262838;
  --ink: #f3f4fa; --muted: #9a9fb6; --accent: #6b5dff; --accent-ink: #ffffff; --accent-text: #9b92ff;
  --up: #2dd36f; --down: #ff6a3d;
  color-scheme: dark;
}
body { background: var(--bg); font-family: var(--font); }
a:not(.btn):not(.btn-secondary):not(.card):not(.wordmark):not(.tag):not(.chip):not([class*='btn']) { color: var(--accent-text); }
.tape a, .nav a, .foot-right a, .wm { color: inherit; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: -0.03em; line-height: 1.02; }
.display em { font-style: normal; color: var(--accent-text); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.section-head h2, .band h2 { font-size: 44px; }
.section-head { justify-items: center; text-align: center; }
.section-head p { margin-inline: auto; }
.page-h { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.page-h em { font-style: normal; color: var(--accent-text); }
.lede { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 60ch; }
h1, h2, h3, b, strong { font-weight: 700; }

/* ---------- controls ---------- */
.btn, .btn-secondary, .btn-ghost { border-radius: var(--r-pill); }
.btn { font-weight: 600; }
.btn-secondary { background: transparent; border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.tabs { border-radius: var(--r-pill); }
.tabs button { border-radius: var(--r-pill); }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill, .icon-btn { border-radius: var(--r-pill); background: transparent; }
.meter > i { background: var(--accent); }
.meter.curve > i { background: var(--up); }
.chip { font-family: var(--font-mono); font-weight: 500; }
.chip-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.input, .textarea, .input.ro { border-radius: var(--r-inner); }
.pl i { width: 7px; height: 7px; }
.pl.sol i, .dot.sol { background: var(--c-sol); } .pl.bnb i, .dot.bnb { background: var(--c-bnb); } .pl.robinhood i, .dot.robinhood { background: var(--c-rh); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.btn.act { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
button.link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; font: inherit; }

/* ---------- header, tape, footer ---------- */
.header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.wordmark { gap: 10px; }
.header .wordmark .mark, .mark { width: 26px; height: 26px; border-radius: 8px; display: block; object-fit: cover; background: #fff; flex: none; }
.mark svg { width: 16px; height: 16px; }
.wm { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.wm em { font-style: normal; color: var(--accent-text); }
.nav a { border-radius: var(--r-pill); }

.tape { border-bottom: 1px solid var(--line); overflow: hidden; }
.tape-run { display: flex; width: max-content; animation: tape 80s linear infinite; }
.tape:hover .tape-run { animation-play-state: paused; }
.tape-set { display: flex; }
.tape a { display: inline-flex; align-items: center; gap: var(--s2); height: 34px; padding: 0 var(--s4); border-right: 1px solid var(--line); font: 500 12px/16px var(--font-mono); white-space: nowrap; }
.tape a b { font-weight: 700; }
.tape a:hover b { color: var(--accent-text); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-run { animation: none; } }

.footer .container { align-items: flex-start; padding-block: var(--s5); }
.foot-col { display: grid; gap: var(--s2); max-width: 56ch; }
.foot-right { text-align: right; justify-items: end; }
.footer a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- home: hero ---------- */
.home-hero { display: grid; justify-items: center; text-align: center; gap: var(--s5); padding-top: var(--s6); }
.home-hero h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; max-width: 17ch; }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; }
.route { display: grid; grid-template-columns: auto auto auto auto auto; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.route .stop { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font: 500 13px/1 var(--font-mono); white-space: nowrap; }
.route .arrow { width: 28px; height: 1px; background: var(--line); position: relative; }
.route .arrow::after { content: ''; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }

.home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.home-stats > div { display: grid; justify-items: center; gap: var(--s1); padding: var(--s5) var(--s3); border-left: 1px solid var(--line); text-align: center; }
.home-stats > div:first-child { border-left: 0; }
.home-stats b { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 46px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- board card ---------- */
.card.coin { border-radius: var(--r-card); gap: var(--s3); }
.card.coin:hover { border-color: var(--muted); }
.coin-pic-sq { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.coin-pic-sq img { width: 100%; height: 100%; object-fit: cover; }
.coin-pic-sq .tag { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(6px); color: var(--ink); }
.coin-pic-sq .tag.live { background: var(--accent); color: var(--accent-ink); }
.inf-title b { font-size: 16px; line-height: 22px; }
.tick { font: 500 12px/16px var(--font-mono); color: var(--muted); white-space: nowrap; }
.where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.where .ch { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 500 11px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.where .ch.live { color: var(--ink); border-color: var(--ink); }
.where .ch.busy { border-style: dashed; color: var(--ink); }
.quote { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-top: auto; padding-top: var(--s2); }
.quote-v { display: block; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.quote-l { display: block; font-size: 11px; line-height: 14px; color: var(--muted); }
.delta { height: 24px; padding: 0 8px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font: 700 12px/16px var(--font-mono); background: color-mix(in srgb, currentColor 12%, transparent); }
.curve-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); font-size: 11px; line-height: 14px; color: var(--muted); }
.curve-line .meter { height: 4px; margin: 0; }

/* ---------- home: how it works ---------- */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.how > li { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s3); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.how .n { font: 500 12px/16px var(--font-mono); color: var(--accent-text); letter-spacing: 0.1em; }
.how h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 30px; letter-spacing: -0.01em; }
.how p { color: var(--muted); font-size: 14px; line-height: 20px; }
.how .demo { min-height: 72px; display: grid; align-content: center; gap: 6px; padding: var(--s3) var(--s4); border-radius: var(--r-inner); background: var(--surface-2); font: 500 12px/16px var(--font-mono); }
.how .demo .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.how .demo .row > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.how .demo .row > :last-child { flex: none; white-space: nowrap; }
.how .demo .ok::before { content: '\2713'; color: var(--up); font-weight: 700; margin-right: 6px; }
.how .demo code { color: var(--accent-text); }

/* ---------- the fee split ---------- */
.fee-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; padding: var(--s6); border-radius: var(--r-card); }
.fee-copy { display: grid; gap: var(--s3); }
.fee-copy h2 { font-size: 42px; }
.fee-copy p { color: var(--muted); }
.splitter { display: grid; gap: var(--s4); }
.splitbar { display: flex; height: 44px; border-radius: var(--r-inner); overflow: hidden; border: 1px solid var(--line); }
.splitbar > i { display: block; min-width: 2px; }
.seg-protocol { background: var(--line); }
.seg-platform { background: var(--muted); }
.seg-creator { background: var(--ink); }
.seg-pools { background: var(--accent); }
.legend { display: grid; }
.legend > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.legend > div:first-child { border-top: 0; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); }
.legend dd { font: 700 13px/18px var(--font-mono); }
.legend small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

.details { border-radius: var(--r-card); }
.band { border-radius: var(--r-card); }
.band h2 { font-size: clamp(38px, 6vw, 76px); }

/* ---------- launch ---------- */
.sign { display: grid; border: 1px solid var(--line); border-radius: var(--r-inner); }
.sign > div { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px var(--s4); border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.sign > div:first-child { border-top: 0; }
.sign dt { color: var(--muted); }
.sign dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.chains-pick { display: grid; gap: var(--s2); }
.chain-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--surface); cursor: pointer; text-align: left; transition: border-color 120ms; }
.chain-opt:hover { border-color: var(--muted); }
.chain-opt[aria-pressed='true'] { border-color: var(--ink); }
.chain-opt .dot { width: 10px; height: 10px; margin: auto; }
.chain-opt b { display: block; font-size: 15px; line-height: 20px; }
.chain-opt small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.chain-opt .ord { font: 500 12px/1 var(--font-mono); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chain-opt[aria-pressed='true'] .ord { color: var(--ink); }
.steps-v li[data-done='true']::before { background: var(--up); border-color: var(--up); color: #fff; }

/* ---------- coin page ---------- */
.ident-text h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 38px; line-height: 42px; }
.chart-price { font-family: var(--font-display); font-weight: 700; }
.avatar { border-radius: 14px; }
.vault-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 34px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* expansion tracker */
.hub-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.hub-row .dot { width: 10px; height: 10px; margin: auto; }
.exp { display: grid; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.exp:last-of-type { border-bottom: 0; }
.exp-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.exp-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 22px; }
.stepper { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.stepper > span { display: grid; gap: 6px; min-width: 0; }
.stepper i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.stepper .done i { background: var(--accent); border-color: var(--accent); }
.stepper .now i { background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); border-color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.stepper .fail i { background: var(--down); border-color: var(--down); }
.stepper small { font: 500 10px/14px var(--font-mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper .done small, .stepper .now small { color: var(--ink); }
@keyframes pulse { 50% { opacity: 0.45; } }
.exp .kv { margin: 0; }
.exp-err { padding: var(--s3) var(--s4); border: 1px solid var(--down); border-radius: var(--r-inner); font-size: 13px; line-height: 18px; }
.exp-err pre { margin-top: 6px; max-height: 160px; overflow: auto; font: 11px/15px var(--font-mono); color: var(--muted); white-space: pre-wrap; }
.addr { font: 500 12px/16px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.events .log-row span:first-of-type { min-width: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .fee-card { grid-template-columns: minmax(0, 1fr); padding: var(--s5); gap: var(--s5); }
  .fee-copy h2 { font-size: 34px; }
  .stepper { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .stepper small { display: none; }
}
@media (max-width: 819px) {
  .section-head h2, .band h2 { font-size: 38px; }
  .home-stats b { font-size: 30px; line-height: 34px; }
  .foot-right { text-align: left; justify-items: start; }
  .route { grid-template-columns: auto; justify-items: center; gap: var(--s2); }
  .route .arrow { width: 1px; height: 18px; }
  .route .arrow::after { right: -3px; top: auto; bottom: -1px; transform: rotate(135deg); }
}
@media (max-width: 639px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 16px; line-height: 24px; }
  .home-stats > div { padding: var(--s4) var(--s1); }
  .home-stats b { font-size: 24px; line-height: 28px; }
  .how > li { padding: var(--s4); }
  .wordmark .wm { display: none; }
  .footer .wm { display: inline-flex; }
  .chart-price { font-size: 26px; }
  .ident-text h1 { font-size: 28px; line-height: 32px; }
  .page-h { font-size: 32px; line-height: 34px; }
  .header .btn, .header .btn-secondary { padding: 0 14px; height: 38px; font-size: 14px; }
  .header .btn-sm { height: 36px; padding: 0 12px; }
  .header button.pill { max-width: 104px; font-size: 12px; padding: 0 10px; }
  .hero-cta .btn, .hero-cta .btn-secondary { width: 100%; }
}
@media (max-width: 767px) { .header .wide, #theme { display: none; } }
@media (max-width: 359px) {
  .header .container { gap: 6px; }
  .nav a { padding: 0 5px; font-size: 13px; }
  .header .btn, .header .btn-secondary, .header .btn-sm { padding: 0 10px; font-size: 13px; }
}

/* fields side by side in a .fields grid start on the same line (the base sheet gives every
   following .field a top margin, which is for stacked fields only) */
.fields > .field + .field { margin-top: 0; }

/* the platform coin's address in the header: one click copies it */
.ca-pill { border: 1px solid var(--line); color: var(--ink); font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-pill:hover { border-color: var(--accent-text); color: var(--accent-text); }
@media (max-width: 639px) { .ca-pill { max-width: 112px; font-size: 12px; padding: 0 10px; } }
