/* Payline — palette and type follow rig.rs: warm off-white on black, terracotta accent, DM Sans + JetBrains Mono.
   Dark-first. Light follows the OS unless the visitor picks a theme (data-theme on <html>).
   Layout: marketing site (top nav, 1120px column) + app shell (sidebar + workspace). */
:root {
  --bg: #000; --surface: #111; --surface-2: #1a1a1a; --surface-3: #242424; --field: #000;
  --line: rgba(246,243,236,.12); --line-2: rgba(246,243,236,.2); --hover-line: rgba(246,243,236,.32);
  --fg: #f6f3ec; --body: #ddd9d1; --fg-2: #a8a8a0; --fg-3: #8f8f88; --ph: #5d5d58;
  --accent: #d97e4a; --accent-soft: rgba(217,126,74,.14);
  --cta: #d97e4a; --cta-hover: #e28d5b; --cta-text: #191f18;
  --ok: #8fc69a; --warn: #e5be77; --bad: #f19a91;
  --c-wallet: #d97e4a; --c-burn: #f19a91; --c-buyback: #8fc69a; --c-rewards: #9fb4e8; --c-social: #c4aecf; --c-charity: #e5be77;
  --code-bg: #111; --code-bar: #1a1a1a; --code-kw: #d97e4a; --code-str: #a7c4af; --code-num: #d6c096; --code-dim: #8f8f88; --code-fg: #ddd9d1;
  --nav-bg: rgba(0,0,0,.78); --overlay: rgba(0,0,0,.7); --shadow: 0 8px 24px rgba(0,0,0,.45);
  --f-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 8px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f6f3ec; --surface: #f0ece0; --surface-2: #fbf9f1; --surface-3: #fff; --field: #fff;
  --line: #e3ddcb; --line-2: #cfc9b4; --hover-line: #b5ae97;
  --fg: #191f18; --body: #393e35; --fg-2: #585f52; --fg-3: #5f6559; --ph: #9a9f92;
  --accent: #984725; --accent-soft: rgba(217,126,74,.14);
  --cta: #d97e4a; --cta-hover: #c96e3b; --cta-text: #191f18;
  --ok: #376b43; --warn: #785817; --bad: #a3362c;
  --c-wallet: #c3683a; --c-burn: #a3362c; --c-buyback: #376b43; --c-rewards: #3d5a9c; --c-social: #6f4f80; --c-charity: #9a7420;
  --code-bg: #f0ece0; --code-bar: #e9e4d6; --code-kw: #984725; --code-str: #376b43; --code-num: #765a2e; --code-dim: #5f6559; --code-fg: #393e35;
  --nav-bg: rgba(246,243,236,.82); --overlay: rgba(25,31,24,.35); --shadow: 0 8px 24px rgba(25,31,24,.12);
  color-scheme: light;
} }
:root[data-theme="light"] {
  --bg: #f6f3ec; --surface: #f0ece0; --surface-2: #fbf9f1; --surface-3: #fff; --field: #fff;
  --line: #e3ddcb; --line-2: #cfc9b4; --hover-line: #b5ae97;
  --fg: #191f18; --body: #393e35; --fg-2: #585f52; --fg-3: #5f6559; --ph: #9a9f92;
  --accent: #984725; --accent-soft: rgba(217,126,74,.14);
  --cta: #d97e4a; --cta-hover: #c96e3b; --cta-text: #191f18;
  --ok: #376b43; --warn: #785817; --bad: #a3362c;
  --c-wallet: #c3683a; --c-burn: #a3362c; --c-buyback: #376b43; --c-rewards: #3d5a9c; --c-social: #6f4f80; --c-charity: #9a7420;
  --code-bg: #f0ece0; --code-bar: #e9e4d6; --code-kw: #984725; --code-str: #376b43; --code-num: #765a2e; --code-dim: #5f6559; --code-fg: #393e35;
  --nav-bg: rgba(246,243,236,.82); --overlay: rgba(25,31,24,.35); --shadow: 0 8px 24px rgba(25,31,24,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 14px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--surface-3); }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--fg); cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); border-color: var(--hover-line); }
.btn.primary { background: var(--cta); color: var(--cta-text); border-color: var(--cta); font-weight: 600; }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { color: var(--fg); background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn.block { width: 100%; height: 44px; font-size: 14.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================================================================ SITE */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.snav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.snav-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.snav-links { display: flex; gap: 24px; font-size: 14px; color: var(--fg-2); }
.snav-links a:hover { color: var(--fg); }
.snav-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); color: var(--fg-2); }
.icon-link:hover { color: var(--fg); background: var(--surface-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px 72px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 4px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; color: var(--fg-2); background: var(--surface); }
.badge:hover { color: var(--fg); border-color: var(--hover-line); }
.badge-tag { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.hero h1 { color: var(--fg); font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 22px 0 18px; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: 50ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--fg-3); }
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23d97e4a' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--surface-2); border: 1px solid var(--line-2); }

.codewin { border: 1px solid var(--line-2); border-radius: 12px; background: var(--code-bg); overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.codewin-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--code-bar); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.tabs { display: flex; gap: 2px; }
.tabs button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--fg-3); font: 12.5px var(--f-mono); cursor: pointer; }
.tabs button.on { background: var(--code-bg); color: var(--fg); }
.codewin-note { margin-left: auto; font: 11.5px var(--f-mono); color: var(--fg-3); }
.code { margin: 0; padding: 20px 22px; font: 13px/1.75 var(--f-mono); color: var(--code-fg); overflow-x: auto; min-height: 300px; }
.code .k { color: var(--code-kw); } .code .s { color: var(--code-str); } .code .n { color: var(--code-num); } .code .c { color: var(--code-dim); } .code .p { color: var(--code-dim); }

.strip { display: flex; align-items: center; gap: 28px; padding-block: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.strip-l { font-size: 13px; color: var(--fg-3); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 15px; font-weight: 500; color: var(--fg-2); letter-spacing: -.01em; }

.sec { padding-block: 96px 0; }
.sec-h { color: var(--fg); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; margin: 0 0 40px; max-width: 30ch; text-wrap: balance; }
.sec-h span { color: var(--fg-3); }

.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fcell { padding: 28px; background: var(--surface); min-width: 0; }
.fcell.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.fcell.wide h3, .fcell.wide p { grid-column: 1; }
.fcell.wide .splitviz { grid-column: 2; grid-row: 1 / span 2; }
.fcell h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.fcell p { margin: 0; font-size: 14px; color: var(--fg-2); }
.splitviz { border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; background: var(--bg); }
.sv-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
.sv-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--fg-2); }
.sv-rows div { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; }
.sv-rows i { width: 8px; height: 8px; border-radius: 2px; }
.sv-rows b { font: 500 13px var(--f-mono); color: var(--fg); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 13px var(--f-mono); color: var(--fg-2); }
.steps h3 { font-size: 15.5px; margin: 18px 0 6px; font-weight: 600; }
.steps p { margin: 0; color: var(--fg-2); font-size: 14px; }

.compare { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable th { text-align: left; font-weight: 500; color: var(--fg-3); font-size: 13px; padding: 0 12px 12px; border-bottom: 1px solid var(--line-2); }
.ctable td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.ctable td:first-child { color: var(--fg); }
.ctable td:last-child { color: var(--fg); font-weight: 500; }
.ctable th:first-child, .ctable td:first-child { padding-left: 0; }

.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 15.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; color: var(--fg-2); max-width: 65ch; }

.cta { padding-block: 112px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta h2 { color: var(--fg); font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.1; margin: 0; font-weight: 600; text-wrap: balance; }

.sfoot { border-top: 1px solid var(--line); padding-block: 48px 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.sfoot-in { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.sfoot-brand p { color: var(--fg-3); font-size: 13.5px; margin: 12px 0 0; }
.sfoot-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.sfoot-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--fg); }
.sfoot-col a { color: var(--fg-3); }
.sfoot-col a:hover { color: var(--fg); }
.sfoot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }

/* ================================================================ APP */
.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100%; }
.side { border-right: 1px solid var(--line); padding: 16px 12px; padding-left: max(12px, env(safe-area-inset-left, 0px)); position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; display: flex; flex-direction: column; gap: 20px; background: var(--bg); }
.side-logo { padding: 6px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--fg-2); font-size: 14px; }
.nav a svg { color: var(--fg-3); }
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a.active { color: var(--fg); background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.nav a.active svg { color: var(--fg); }
.side-foot { margin-top: auto; font-size: 12.5px; color: var(--fg-3); padding: 0 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.off { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; gap: 10px; height: 56px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crumb { font-size: 14px; color: var(--fg-2); }
.top .grow { flex: 1; }
.top .menu-btn { display: none; }
.netsel { width: auto; height: 34px; font-size: 13px; }

.page { padding: 32px max(28px, env(safe-area-inset-right, 0px)) 72px max(28px, env(safe-area-inset-left, 0px)); max-width: 1240px; width: 100%; }
.page-h { margin-bottom: 24px; }
.page-h h1 { color: var(--fg); font-size: 24px; letter-spacing: -.025em; font-weight: 600; margin: 0 0 4px; }
.page-h p { margin: 0; color: var(--fg-2); }
.page-h-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h b { color: var(--fg); display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.panel-h span:not(.count):not(.grow) { display: block; font-size: 13px; color: var(--fg-3); margin-top: 1px; }
.panel-h .grow { flex: 1; }
.count { font: 12.5px var(--f-mono); color: var(--fg-3); white-space: nowrap; }
.panel-b { padding: 20px; }

.deploy { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: 13px; color: var(--fg-2); font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.field > label .dim { font-weight: 400; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
input[type=text], input[type=number], input[type=url], select, textarea {
  height: 38px; background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 12px; width: 100%; min-width: 0; font-size: 14px;
  transition: border-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--hover-line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { height: 76px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ph); }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); font: 13px var(--f-mono); pointer-events: none; }
.prefix input { padding-left: 28px; }

.logo-drop { width: 120px; height: 120px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--field); display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; color: var(--fg-2); font-size: 13px; line-height: 1.4; padding: 8px; }
.logo-drop small { color: var(--fg-3); font-size: 11px; }
.logo-drop img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.logo-drop:hover { border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--field); font-size: 13px; color: var(--fg-2); cursor: pointer; }
.chip:hover { color: var(--fg); border-color: var(--hover-line); }
.chip.on { color: var(--fg); border-color: var(--accent); background: var(--accent-soft); }
.chip-input { width: 84px !important; height: 30px !important; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button { text-align: left; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); cursor: pointer; position: relative; color: var(--body); }
.seg button:hover { border-color: var(--hover-line); }
.seg button b { display: block; font-size: 14px; font-weight: 600; color: var(--fg); }
.seg button span { display: block; font-size: 13px; color: var(--fg-3); margin-top: 3px; }
.seg button.on { border-color: var(--accent); background: var(--accent-soft); }
.seg button.on::after { content: ""; position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23191f18' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--cta); }

.toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:first-child { padding-top: 0; }
.toggle:last-child { border-bottom: 0; padding-bottom: 0; }
.toggle b { font-size: 14px; font-weight: 500; }
.toggle p { margin: 2px 0 0; font-size: 13px; color: var(--fg-3); }
.sw { position: relative; width: 36px; height: 20px; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-3); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s, background .15s; }
.sw input:checked + i { background: var(--cta); }
.sw input:checked + i::after { transform: translateX(16px); background: #fff; }

.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.presets-l { font-size: 13px; color: var(--fg-3); margin-right: 4px; }
.legs { display: flex; flex-direction: column; gap: 8px; }
.leg { display: grid; grid-template-columns: 4px 168px minmax(0, 1fr) 96px 34px; gap: 8px; align-items: center; }
.leg .sw8 { width: 4px; height: 26px; border-radius: 4px; }
.leg input.pct { text-align: right; padding-right: 28px; font-family: var(--f-mono); }
.leg .prefix > span { left: auto; right: 12px; }
.leg .x { width: 34px; height: 38px; border: 1px solid transparent; border-radius: var(--r); background: transparent; color: var(--fg-3); cursor: pointer; font-size: 18px; }
.leg .x:hover { color: var(--bad); background: var(--surface-2); }
.leg .addr[disabled] { color: var(--fg-3); background: transparent; border-style: dashed; }
.legbar { display: flex; gap: 2px; height: 6px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 18px 0 10px; }
.legbar span { display: block; height: 100%; transition: width .2s; }
.legsum { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-3); }
.legsum b { font: 500 13px var(--f-mono); }
.legsum b.bad { color: var(--bad); }
.legsum b.ok { color: var(--ok); }
.leg-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.adv { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.adv summary { cursor: pointer; font-size: 13px; color: var(--fg-2); }

/* summary card */
.wallet-card { padding: 20px; border-bottom: 1px solid var(--line); }
.tok { display: flex; gap: 12px; align-items: center; }
.tok .av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; font: 600 14px var(--f-sans); color: var(--fg-3); flex: none; }
.tok .av img { width: 100%; height: 100%; object-fit: cover; }
.tok .n { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.tok .s { font-size: 13px; color: var(--fg-3); }
.tok .bal { margin-left: auto; text-align: right; font: 500 14px var(--f-mono); }
.tok .bal small { display: block; font: 400 12px var(--f-sans); color: var(--fg-3); }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.checks li { display: flex; align-items: center; gap: 9px; color: var(--fg-2); }
.checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.checks li.yes::before { border-color: transparent; background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23ffffff' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--ok); }
.checks li.no { color: var(--fg-3); }
.summary { padding: 18px 20px; }
.summary-cta { padding: 0 20px 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; text-align: right; font-family: var(--f-mono); font-size: 13px; overflow-wrap: anywhere; }
.kv .tot { border-top: 1px solid var(--line); padding-top: 12px; color: var(--fg); font-weight: 500; }

.term { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 12.5px/1.75 var(--f-mono); max-height: 240px; overflow: auto; color: var(--fg-2); }
.term:empty { display: none; }
.term .ok { color: var(--ok); } .term .err { color: var(--bad); } .term .sig { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* routers */
.rlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.rcard .head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.rcard .head .tok { flex: 1; min-width: 0; }
.rcard .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.rcard .vault { font: 12px var(--f-mono); color: var(--fg-3); display: flex; justify-content: space-between; gap: 12px; }
.rcard .vault span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard .foot { display: flex; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.legrows { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.legrows div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.legrows i { width: 8px; height: 8px; border-radius: 2px; }
.legrows .addr { font: 12px var(--f-mono); color: var(--fg-3); }
.legrows b { font: 500 13px var(--f-mono); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.status.active::before { background: var(--ok); }
.status.paused::before { background: var(--warn); }
.empty { padding: 48px 20px; text-align: center; color: var(--fg-2); }
.empty b { display: block; color: var(--fg); font-size: 15px; margin-bottom: 6px; }
.demo-note { font-size: 13px; color: var(--fg-3); margin: -8px 0 16px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); background: var(--surface); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 13px; color: var(--fg-3); }
.stat .v { font: 600 24px/1.2 var(--f-sans); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; color: var(--fg-3); font-weight: 400; margin-left: 4px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.feed li:last-child { border-bottom: 0; }
.feed .t { font-size: 12.5px; color: var(--fg-3); }
.feed .a { font: 13px var(--f-mono); }
.feed .a a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg); margin-right: 8px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--fg-3); }
.tag.wallet::before { background: var(--c-wallet); }
.tag.burn::before { background: var(--c-burn); }
.tag.buy::before, .tag.buyback::before { background: var(--c-buyback); }
.tag.social::before { background: var(--c-social); }
.tag.charity::before { background: var(--c-charity); }
.tag.claim::before, .tag.sell::before, .tag.harvest::before { background: var(--accent); }
.tag.rewards::before { background: var(--c-rewards); }

/* docs */
.docs { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; border-left: 1px solid var(--line); }
.toc a { color: var(--fg-3); padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--fg); border-left-color: var(--fg-2); }
.prose { max-width: 70ch; }
.prose h2 { color: var(--fg); font-size: 21px; line-height: 1.3; letter-spacing: -.02em; margin: 40px 0 10px; font-weight: 600; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--body); }
.prose code { font: 12.5px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--fg-3); }
.prose td:first-child { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

.modal { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal .panel { width: min(560px, 100%); }
.toast { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; background: var(--fg); color: var(--bg); border-radius: 10px; padding: 11px 16px; font-size: 13.5px; font-weight: 500; max-width: 360px; box-shadow: var(--shadow); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .deploy { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 64px 56px; }
}
@media (max-width: 860px) {
  .snav-links { display: none; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fcell.wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .fcell.wide .splitviz { grid-column: 1; grid-row: auto; }
  .steps, .compare, .grid-2, .docs { grid-template-columns: minmax(0, 1fr); }
  .sfoot-in { grid-template-columns: 1fr 1fr; }
  .sfoot-brand { grid-column: 1 / -1; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s; height: 100%; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .top .menu-btn { display: inline-flex; }
  .toc { display: none; }
  .page { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .sec { padding-block: 72px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .row, .seg, .tok-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .leg { grid-template-columns: 4px minmax(0, 1fr) 86px 34px; }
  .leg .addr-wrap { grid-column: 2 / -1; grid-row: 2; }
  .leg .sw8 { grid-row: 1 / span 2; height: 100%; }
  .rlist { grid-template-columns: minmax(0, 1fr); }
  .snav-r .icon-link { display: none; }
  .code { font-size: 12px; }
  .netsel { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================================================================ v3 additions */
.theme-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--fg-2); cursor: pointer; }
.theme-btn:hover { color: var(--fg); background: var(--surface); }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; } :root[data-theme="light"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="dark"]) .theme-btn .i-moon { display: none; } }

/* launchpad picker */
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lp { position: relative; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); cursor: pointer; color: var(--body); min-width: 0; }
.lp b { display: block; font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp[disabled] b { padding-right: 44px; }
.lp span { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp:hover:not([disabled]) { border-color: var(--hover-line); }
.lp.on { border-color: var(--accent); background: var(--accent-soft); }
.lp[disabled] { cursor: not-allowed; opacity: .55; }
.lp .soon { position: absolute; top: 10px; right: 10px; font: 500 10.5px var(--f-mono); color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 7px; }
.lp-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.lp-note b { color: var(--fg); font-weight: 600; }

/* split editor extras */
.leg .sub { display: flex; gap: 8px; align-items: center; min-width: 0; }
.leg .sub > * { min-width: 0; }
.leg .at { position: relative; flex: 1; }
.leg .at::before { content: "@"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); font: 13px var(--f-mono); }
.leg .at input { padding-left: 28px; }
.resolve { font-size: 12px; white-space: nowrap; color: var(--fg-3); }
.resolve.ok { color: var(--ok); } .resolve.warn { color: var(--warn); }
.leg-hint { grid-column: 2 / -1; font-size: 12px; color: var(--fg-3); margin: -2px 0 2px; }
.leg-hint a { color: var(--accent); }

/* simulator */
.sim { padding: 18px 20px; border-top: 1px solid var(--line); }
.sim-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sim-h b { color: var(--fg); font-size: 14px; }
.sim-h span { font-size: 12px; color: var(--fg-3); }
.sim .row { gap: 10px; }
.sim input { height: 34px; }
.sim-out { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.sim-out div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.sim-out i { width: 8px; height: 8px; border-radius: 2px; }
.sim-out span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-out b { font: 500 12.5px var(--f-mono); color: var(--fg); }
.sim-out em { font: 12px var(--f-mono); color: var(--fg-3); font-style: normal; min-width: 70px; text-align: right; }
.sim-tot { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; }

/* after deploy */
.next { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 18px 20px; }
.next h3 { margin: 0 0 4px; font-size: 14.5px; color: var(--fg); }
.next p { margin: 0 0 12px; font-size: 13px; color: var(--fg-2); }
.next .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* router page */
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--body); font-size: 13.5px; margin-bottom: 16px; }
.banner b { color: var(--fg); }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--f-mono); background: var(--field); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; color: var(--body); }
.embedbox { font: 12px/1.6 var(--f-mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--code-fg); white-space: pre-wrap; word-break: break-all; margin: 0 0 10px; }

/* landing band */
.band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.band h3 { margin: 0 0 4px; font-size: 18px; color: var(--fg); letter-spacing: -.015em; }
.band p { margin: 0; color: var(--fg-2); max-width: 60ch; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trust div { background: var(--surface); padding: 22px; }
.trust b { display: block; color: var(--fg); font-size: 14.5px; margin-bottom: 6px; }
.trust p { margin: 0; font-size: 13.5px; color: var(--fg-2); }

@media (max-width: 860px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .leg .sub { flex-wrap: wrap; }
}

/* ================================================================ APP + SITE — OTC style
   Paper and ink, white rail, compact 13px Geist, tracked 10px labels, soft ring shadows. */
.app, .site {
  --bg: #f8f7f4; --surface: #fff; --surface-2: #f5f3ef; --surface-3: #efece5; --field: #fff;
  --line: #efece5; --line-2: #dad6cc; --hover-line: #c2beb2;
  --fg: #1a1a18; --body: #1a1a18; --fg-2: #696762; --fg-3: #85837e; --ph: #b0ada5;
  --accent: #3f6212; --accent-soft: #f7fee7; --accent-line: #d9f99d;
  --cta: #1a1a18; --cta-hover: #3c3c38; --cta-text: #f8f7f4;
  --ok: #2e7d4f; --warn: #9a6b12; --bad: #be123c;
  --c-wallet: #c2410c; --c-burn: #be123c; --c-buyback: #2e7d4f; --c-rewards: #2f5fb3; --c-social: #7a4fa3; --c-charity: #9a6b12;
  --code-bg: #f5f3ef; --code-bar: #efece5; --code-kw: #c2410c; --code-str: #2e7d4f; --code-num: #9a6b12; --code-dim: #85837e; --code-fg: #1a1a18; --overlay: rgba(26,26,24,.3); --shadow: 0 6px 12px -2px rgba(58,56,50,.05), 0 12px 24px -4px rgba(58,56,50,.08); --nav-bg: rgba(248,247,244,.94); --notice: #1a1a18; --on-notice: rgba(248,247,244,.72);
  --rest: 0 0 0 1px #efece5, 0 1px 2px rgba(58,56,50,.03), 0 2px 4px rgba(58,56,50,.04);
  --lift: 0 6px 12px -2px rgba(58,56,50,.05), 0 12px 24px -4px rgba(58,56,50,.08);
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  background: var(--bg); color: var(--body); font-size: 13px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app , :root:not([data-theme="light"]) .site {
  --bg: #121211; --surface: #1a1a18; --surface-2: #201f1d; --surface-3: #262521; --field: #121211;
  --line: #262521; --line-2: #3a3935; --hover-line: #4a4944;
  --fg: #f2f1ed; --body: #f2f1ed; --fg-2: #97958e; --fg-3: #6f6d67; --ph: #55534e;
  --accent: #a3e635; --accent-soft: rgba(163,230,53,.07); --accent-line: rgba(163,230,53,.2);
  --cta: #f2f1ed; --cta-hover: #fff; --cta-text: #121211;
  --ok: #4ade80; --warn: #e3b341; --bad: #f2555a;
  --c-wallet: #ea6a2a; --c-burn: #f2555a; --c-buyback: #4ade80; --c-rewards: #7aa2f7; --c-social: #c4a5e8; --c-charity: #e3b341;
  --code-bg: #201f1d; --code-bar: #262521; --code-kw: #ea6a2a; --code-str: #4ade80; --code-num: #e3b341; --code-dim: #6f6d67; --code-fg: #f2f1ed; --overlay: rgba(0,0,0,.6); --shadow: 0 8px 22px rgba(0,0,0,.45); --nav-bg: rgba(18,18,17,.94); --notice: #080807; --on-notice: rgba(242,241,237,.72);
  --rest: 0 0 0 1px #262521, 0 1px 2px rgba(0,0,0,.3); --lift: 0 8px 22px rgba(0,0,0,.45);
  color-scheme: dark;
} }
:root[data-theme="dark"] .app ,
:root[data-theme="dark"] .site {
  --bg: #121211; --surface: #1a1a18; --surface-2: #201f1d; --surface-3: #262521; --field: #121211;
  --line: #262521; --line-2: #3a3935; --hover-line: #4a4944;
  --fg: #f2f1ed; --body: #f2f1ed; --fg-2: #97958e; --fg-3: #6f6d67; --ph: #55534e;
  --accent: #a3e635; --accent-soft: rgba(163,230,53,.07); --accent-line: rgba(163,230,53,.2);
  --cta: #f2f1ed; --cta-hover: #fff; --cta-text: #121211;
  --ok: #4ade80; --warn: #e3b341; --bad: #f2555a;
  --c-wallet: #ea6a2a; --c-burn: #f2555a; --c-buyback: #4ade80; --c-rewards: #7aa2f7; --c-social: #c4a5e8; --c-charity: #e3b341;
  --code-bg: #201f1d; --code-bar: #262521; --code-kw: #ea6a2a; --code-str: #4ade80; --code-num: #e3b341; --code-dim: #6f6d67; --code-fg: #f2f1ed; --overlay: rgba(0,0,0,.6); --shadow: 0 8px 22px rgba(0,0,0,.45); --nav-bg: rgba(18,18,17,.94); --notice: #080807; --on-notice: rgba(242,241,237,.72);
  --rest: 0 0 0 1px #262521, 0 1px 2px rgba(0,0,0,.3); --lift: 0 8px 22px rgba(0,0,0,.45);
  color-scheme: dark;
}
.app ,
.site { min-height: 100vh; font-family: var(--f-sans); grid-template-columns: 244px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.app input, .app select, .app textarea, .app button ,
.site input, .site select, .site textarea, .site button { font-family: var(--f-sans); }

/* notice strip */
.notice { grid-column: 1 / -1; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; padding-inline: max(40px, env(safe-area-inset-left, 0px)); background: var(--notice); color: var(--on-notice); font-size: 12px; white-space: nowrap; overflow: hidden; }
.notice b { color: #f8f7f4; font-weight: 500; }
.notice span:not(.notice-dot) { overflow: hidden; text-overflow: ellipsis; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: #a3e635; flex: none; }
.notice button { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); background: none; border: 0; color: var(--on-notice); font-size: 16px; cursor: pointer; padding: 4px 8px; }

/* rail */
.app .rail { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 12px; gap: 18px; top: calc(env(safe-area-inset-top, 0px) + 32px); height: calc(100vh - 32px); }
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-weight: 600; font-size: 14px; color: var(--fg); }
.rail-brand .mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--cta); color: var(--cta-text); }
.app .nav ,
.site .nav { gap: 1px; }
.app .nav a ,
.site .nav a { padding: 7px 10px; font-size: 13px; color: var(--fg); border-radius: 6px; gap: 11px; }
.app .nav a svg ,
.site .nav a svg { color: var(--fg-2); }
.app .nav a:hover ,
.site .nav a:hover { background: var(--surface-2); }
.app .nav a.active ,
.site .nav a.active { background: var(--surface-3); box-shadow: none; }
.app .nav a.active svg ,
.site .nav a.active svg { color: var(--fg); }
.app .nav .ext ,
.site .nav .ext { margin-left: auto; color: var(--fg-3); font-size: 12px; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); padding: 18px 10px 6px; }
.app .side-foot ,
.site .side-foot { font-size: 12px; color: var(--fg-2); padding: 0 10px; }

/* topbar */
.app .top ,

/* topbar */
.site .top { height: 60px; top: calc(env(safe-area-inset-top, 0px) + 32px); background: var(--nav-bg); border-bottom: 1px solid var(--line); gap: 8px; }
.app .crumb ,
.site .crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-2); }
.app .crumb a:hover ,
.site .crumb a:hover { color: var(--fg); }
.app .crumb b ,
.site .crumb b { color: var(--fg); font-weight: 500; }
.app .theme-btn ,
.site .theme-btn { color: var(--fg-2); }
.app .theme-btn:hover ,
.site .theme-btn:hover { background: var(--surface-2); color: var(--fg); }
.app .netsel ,
.site .netsel { height: 36px; border-radius: 4px; font-size: 13px; }

/* buttons and inputs */
.app .btn, .site .btn { border-radius: 4px; height: 36px; font-size: 13px; background: var(--surface); border-color: var(--line-2); color: var(--fg); box-shadow: 0 1px 2px rgba(58,56,50,.04); }
.app .btn:hover ,
.site .btn:hover { background: var(--surface-2); border-color: var(--hover-line); }
.app .btn.sm ,
.site .btn.sm { height: 30px; font-size: 12.5px; }
.app .btn.ghost ,
.site .btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--fg-2); }
.app .btn.ghost:hover ,
.site .btn.ghost:hover { color: var(--fg); background: var(--surface-2); }
.app .btn.ink, .app .btn.primary ,
.site .btn.ink, .site .btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-text); font-weight: 500; }
.app .btn.ink:hover, .app .btn.primary:hover ,
.site .btn.ink:hover, .site .btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.app input[type=text], .app input[type=number], .app input[type=url], .app select, .app textarea ,
.site input[type=text], .site input[type=number], .site input[type=url], .site select, .site textarea { height: 36px; border-radius: 6px; font-size: 13px; background: var(--field); border-color: var(--line-2); }
.app textarea ,
.site textarea { height: 76px; }
.app input:focus, .app select:focus, .app textarea:focus ,
.site input:focus, .site select:focus, .site textarea:focus { border-color: var(--fg-3); box-shadow: 0 0 0 3px var(--line); }
.app :focus-visible ,
.site :focus-visible { outline-color: var(--fg); }
.app .field > label ,
.site .field > label { font-size: 12px; font-weight: 400; color: var(--fg-2); }
.app .chip ,
.site .chip { height: 28px; border-radius: 6px; font-size: 12px; background: var(--surface); color: var(--fg-2); }
.app .chip.on ,
.site .chip.on { color: var(--fg); border-color: var(--fg); background: var(--surface-2); }
.app .logo-drop ,
.site .logo-drop { width: 112px; height: 112px; border-radius: 8px; background: var(--surface-2); }
.app .logo-drop:hover ,
.site .logo-drop:hover { border-color: var(--fg-3); }
.app .seg button ,
.site .seg button { border-radius: 8px; background: var(--surface); padding: 12px 14px; }
.app .seg button b ,
.site .seg button b { font-size: 13px; font-weight: 500; }
.app .seg button span ,
.site .seg button span { font-size: 12px; }
.app .seg button.on ,
.site .seg button.on { border-color: var(--fg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--fg); }
.app .seg button.on::after ,
.site .seg button.on::after { width: 8px; height: 8px; top: 16px; right: 14px; background: var(--fg); }
.app .sw input:checked + i ,
.site .sw input:checked + i { background: var(--fg); }
.app .sw input:checked + i::after ,
.site .sw input:checked + i::after { background: var(--bg); }
.app .toggle ,
.site .toggle { padding: 11px 0; }
.app .toggle b ,
.site .toggle b { font-size: 13px; }
.app .toggle p ,
.site .toggle p { font-size: 12px; }

/* cards */
.card { background: var(--surface); border-radius: 10px; box-shadow: var(--rest); min-width: 0; }
.app .panel ,
.site .panel { background: var(--surface); border: 0; border-radius: 10px; box-shadow: var(--rest); }
.app .panel-h ,
.site .panel-h { padding: 14px 18px; }
.app .panel-h b ,
.site .panel-h b { font-size: 14px; font-weight: 500; }
.app .panel-h span:not(.count):not(.grow) ,
.site .panel-h span:not(.count):not(.grow) { font-size: 12px; color: var(--fg-2); }
.app .panel-b ,
.site .panel-b { padding: 18px; }
.app .page ,
.site .page { max-width: 76rem; margin: 0 auto; padding-top: 16px; padding-bottom: 96px; }
.app .page-h h1 ,
.site .page-h h1 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.app .page-h p ,
.site .page-h p { font-size: 13px; color: var(--fg-2); }
.app .kv ,
.site .kv { font-size: 12.5px; gap: 9px 12px; }
.app .kv dt ,
.site .kv dt { color: var(--fg-2); }
.app .kv dd ,
.site .kv dd { font-family: var(--f-sans); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.app .kv .tot ,
.site .kv .tot { font-weight: 600; }
.app .stats ,
.site .stats { border: 0; box-shadow: var(--rest); border-radius: 10px; gap: 0; }
.app .stat ,
.site .stat { background: var(--surface); }
.app .stat .k ,
.site .stat .k { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.app .stat .v ,
.site .stat .v { font-size: 22px; font-weight: 500; }
.app .term ,
.site .term { background: var(--surface-2); border-color: var(--line); border-radius: 8px; font-size: 12px; }
.app .feed li ,
.site .feed li { font-size: 13px; }
.app .count ,
.site .count { font-family: var(--f-sans); font-size: 12px; color: var(--fg-2); }

/* launcher */
.launcher { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.wizard { padding: 20px 20px 16px; }
.wz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wz-head b { font-size: 14px; font-weight: 500; color: var(--fg); letter-spacing: -.005em; }
.wz-head span { font-size: 12px; color: var(--fg-2); }
.wz-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 0; }
.wz-bar i { height: 3px; border-radius: 99px; background: var(--line); transition: background .2s; }
.wz-bar i.on { background: var(--accent); }
.wz-desc { margin: 14px 0 20px; color: var(--fg-2); font-size: 13px; }
.blk { margin-bottom: 24px; }
.lbl { margin: 0 0 9px; font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.note { margin: 10px 0 0; font-size: 12.5px; color: var(--fg-2); line-height: 1.55; }
.note b { color: var(--fg); font-weight: 500; }
.lp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lpc { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 6px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13px; color: var(--fg); box-shadow: 0 1px 2px rgba(58,56,50,.03); }
.lpc:hover:not([disabled]) { border-color: var(--hover-line); }
.lpc.on { background: var(--surface-2); border-color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--fg-3); font-weight: 500; }
.lpc[disabled] { opacity: .45; cursor: not-allowed; }
.lpc .ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font: 600 12px var(--f-sans); color: #fff; }
.lpc small { color: var(--fg-3); font-size: 11.5px; font-weight: 400; }
.wz-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.wz-foot .grow { flex: 1; }
.app .presets ,
.site .presets { margin-bottom: 12px; }
.app .leg ,
.site .leg { grid-template-columns: 4px 150px minmax(0, 1fr) 88px 30px; }
.app .leg .x ,
.site .leg .x { width: 30px; height: 36px; }
.app .leg-actions ,
.site .leg-actions { margin-top: 12px; }
.app .legsum b.ok ,
.site .legsum b.ok { color: var(--ok); }
.app .adv ,
.site .adv { border-top: 0; padding-top: 0; }
.app .adv summary ,
.site .adv summary { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.app .sim ,
.site .sim { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.app .sim .field input ,
.site .sim .field input { background: var(--field); }

/* summary card */
.summary-card { padding: 18px; }
.sc-title { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--fg); }
.sc-tok { padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.sc-tok .av { width: 36px; height: 36px; border-radius: 6px; background: var(--surface-2); border: 0; font-size: 12px; }
.sc-tok .n { font-size: 13px; font-weight: 500; }
.sc-tok .s { font-size: 12px; color: var(--fg-2); }
.sc-sec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.sc-sec .lbl { margin-bottom: 8px; }
.summary-card .kv dt { display: flex; align-items: center; gap: 7px; min-width: 0; }
.summary-card .kv dt i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.summary-card .checks { margin: 14px 0 0; gap: 6px; font-size: 12px; }
.summary-card .checks li::before { width: 14px; height: 14px; }
.sc-note { margin: 14px 0; font-size: 12px; color: var(--fg-2); line-height: 1.55; }
.btn.launch { width: 100%; height: 40px; border-radius: 99px; letter-spacing: .14em; font-weight: 500; background: var(--line-2); border-color: var(--line-2); color: var(--fg-2); box-shadow: none; }
.btn.launch.ready { background: var(--cta); border-color: var(--cta); color: var(--cta-text); box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }
.btn.launch.ready:hover { background: var(--cta-hover); }
.app .next ,
.site .next { background: var(--surface); border: 0; box-shadow: var(--rest); border-radius: 10px; }
.app .banner ,
.site .banner { border-radius: 8px; }
.app .docs .toc ,
.site .docs .toc { border-left-color: var(--line); }

@media (max-width: 1080px) { .launcher { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .app ,
  .site { grid-template-columns: minmax(0, 1fr); }
  .app .rail { top: 0; height: 100%; }
  .notice { justify-content: flex-start; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: 40px; }
}
@media (max-width: 560px) {
  .app .leg ,
  .site .leg { grid-template-columns: 4px minmax(0, 1fr) 80px 30px; }
  .app .crumb a, .app .crumb > span ,
  .site .crumb a, .site .crumb > span { display: none; }
}
.summary-card .kv .tot { border-top: 0; padding-top: 6px; }
.app .sticky ,
.site .sticky { top: calc(env(safe-area-inset-top, 0px) + 108px); }

/* ================================================================ SITE — OTC-style landing */
.site { min-height: 100vh; background: var(--bg); color: var(--body); font-family: var(--f-sans); }
.notice-site { position: relative; }
.site .snav { top: env(safe-area-inset-top, 0px); background: var(--nav-bg); border-bottom-color: var(--line); }
.site .snav-in { height: 60px; }
.site .logo { font-size: 15px; font-weight: 600; color: var(--fg); }
.site .logo svg { width: 26px; height: 26px; padding: 6px; border-radius: 6px; background: var(--cta); color: var(--cta-text); }
.site .snav-links { font-size: 13px; color: var(--fg-2); }
.site .icon-link { color: var(--fg-2); border-radius: 6px; }
.site .icon-link:hover { background: var(--surface-2); color: var(--fg); }
.site .btn.lg { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 6px; }
.site .badge { background: var(--surface); border: 1px solid var(--line-2); color: var(--fg-2); box-shadow: 0 1px 2px rgba(58,56,50,.04); font-size: 12.5px; }
.site .badge-tag { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-size: 11.5px; }
.site .hero { padding-block: 72px 64px; gap: 48px; }
.site .hero h1 { font-family: var(--f-sans); font-weight: 600; letter-spacing: -.045em; font-size: clamp(38px, 5vw, 58px); }
.site .lede { font-size: 16px; color: var(--fg-2); }
.site .hero-meta { color: var(--fg-2); font-size: 12.5px; }
.site .hero-meta li::before { background: no-repeat center/9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23ffffff' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--ok); border: 0; }
.hero-mock { position: relative; min-width: 0; padding-bottom: 104px; }
.hero-card { padding: 20px; box-shadow: var(--rest), var(--lift); max-width: 420px; margin-left: auto; }
.hero-card .kv { font-size: 12.5px; }
.hero-card .kv dt { display: flex; align-items: center; gap: 7px; }
.hero-card .kv dt i { width: 7px; height: 7px; border-radius: 2px; }
.hero-card .lpc { cursor: default; height: 36px; font-size: 12.5px; }
.hero-card .lpc .ic { width: 24px; height: 24px; }
.hero-card .btn.launch { display: flex; align-items: center; justify-content: center; }
.hero-log { position: absolute; left: 0; bottom: 0; width: min(330px, 80%); padding: 10px 14px; box-shadow: var(--rest), var(--lift); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.hl-row { display: grid; grid-template-columns: 38px 76px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hl-row span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.hl-row b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg); }
.site .strip { border-color: var(--line); }
.site .strip ul { font-size: 14px; color: var(--fg-2); font-weight: 500; }
.site .strip-l { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.site .sec-h { font-family: var(--f-sans); font-weight: 600; letter-spacing: -.035em; font-size: clamp(24px, 3vw, 32px); }
.site .sec-h span { color: var(--fg-3); }
.site .fgrid { border: 0; box-shadow: var(--rest); background: var(--line); border-radius: 10px; }
.site .fcell { background: var(--surface); }
.site .fcell h3, .site .steps h3 { font-size: 14px; font-weight: 500; }
.site .fcell p, .site .steps p, .site .trust p { font-size: 13px; color: var(--fg-2); }
.site .splitviz { background: var(--surface-2); border-color: var(--line); }
.site .steps li { border: 0; box-shadow: var(--rest); border-radius: 10px; background: var(--surface); }
.site .step-n { border-color: var(--line-2); font-family: var(--f-sans); background: var(--surface-2); color: var(--fg); }
.site .band { border: 0; box-shadow: var(--rest); border-radius: 10px; background: var(--surface); }
.site .band h3 { font-size: 16px; font-weight: 500; }
.site .band p { font-size: 13px; }
.site .trust { border: 0; box-shadow: var(--rest); border-radius: 10px; }
.site .trust b { font-size: 14px; font-weight: 500; }
.site .ctable { font-size: 13px; }
.site .ctable th { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); font-weight: 400; border-bottom-color: var(--line-2); }
.site .ctable td { border-bottom-color: var(--line); }
.site .faq { border-top-color: var(--line); }
.site .faq details { border-bottom-color: var(--line); }
.site .faq summary { font-size: 14px; font-weight: 500; color: var(--fg); }
.site .faq p { font-size: 13px; color: var(--fg-2); }
.site .cta h2 { font-family: var(--f-sans); letter-spacing: -.04em; font-weight: 600; }
.site .sfoot { border-top-color: var(--line); background: var(--surface); }
.site .sfoot-col h4 { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); font-weight: 400; }
.site .sfoot-col a, .site .sfoot-brand p, .site .sfoot-bot { font-size: 13px; }
.site .sfoot-bot { border-top-color: var(--line); }
@media (max-width: 1080px) { .hero-card { margin: 0 auto; } .hero-log { left: 50%; transform: translateX(-50%); } }
@media (max-width: 560px) { .hero-log { position: static; transform: none; width: 100%; margin-top: 12px; } .hero-mock { padding-bottom: 0; } }

.grp { margin: 22px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -.01em; }
.wz-step:first-of-type .grp { margin-top: 18px; }
.wizard { padding-bottom: 4px; }

/* locked launchpad rows, send supply, logo slot */
.locked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.locked > div { background: var(--surface-2); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.locked span { font-size: 11.5px; color: var(--fg-2); }
.locked b { font-size: 13px; font-weight: 500; color: var(--fg); display: flex; align-items: center; gap: 6px; }
.locked b::before { content: ""; width: 11px; height: 11px; flex: none; background: no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='%2385837e' stroke-width='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4' fill='none' stroke='%2385837e' stroke-width='2'/%3E%3C/svg%3E"); }
.locked b.good { color: var(--ok); }
.sends { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.sends:empty { display: none; }
.send { display: grid; grid-template-columns: minmax(0, 1fr) 96px 30px; gap: 8px; align-items: center; }
.send .pct { text-align: right; padding-right: 28px; font-family: var(--f-mono); }
.send .prefix > span { left: auto; right: 12px; }
.send .x { width: 30px; height: 36px; border: 0; background: transparent; color: var(--fg-3); cursor: pointer; font-size: 18px; border-radius: 6px; }
.send .x:hover { color: var(--bad); background: var(--surface-2); }
.lpc .ic { position: relative; overflow: hidden; }
.lpc .ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.app input:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 560px) { .locked { grid-template-columns: minmax(0, 1fr); } }

.app input[readonly] { background: var(--surface-2); color: var(--fg-2); }
.app .sim .field input[readonly] { background: var(--surface-3); color: var(--fg-2); cursor: default; }
.locked:has(> div:only-child) { grid-template-columns: minmax(0, 1fr); }

.site .codewin { border: 0; border-radius: 10px; box-shadow: var(--rest), var(--lift); }
.site .codewin-bar { border-bottom-color: var(--line); }
.site .code { font-size: 12.5px; }

/* charity search */
.cpick { position: relative; }
.app .cpick input[type=text] { padding-left: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%2385837e' stroke-width='2'/%3E%3Cpath d='M16 16l4 4' stroke='%2385837e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; background-size: 14px; }
.cpick-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--lift, var(--shadow)); padding: 4px; }
.cpick-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.cpick-item b { font-size: 13px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-item span { grid-column: 1; font-size: 12px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-item em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 11px; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.cpick-item:hover, .cpick-item.on { background: var(--surface-2); }
.cpick-empty { padding: 10px; font-size: 12.5px; color: var(--fg-2); }

.soon-box { display: flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--surface-2); font-size: 12.5px; min-width: 0; }
.soon-box b { font-weight: 500; color: var(--fg); white-space: nowrap; }
.soon-box span { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbadge { font-size: 11.5px; border-radius: 99px; padding: 2px 9px; border: 1px solid var(--line-2); white-space: nowrap; }
.vbadge.yes { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.vbadge.no { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* ================================================================ LANDING v4 */
.integr { display: grid; grid-template-columns: max(280px, calc((100vw - 1120px) / 2 + 250px)) minmax(0, 1fr); min-height: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.integr-head { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 28px 18px max(28px, calc((100vw - 1120px) / 2)); border-right: 1px solid var(--line); background: var(--bg); }
.integr-l { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--fg); font-weight: 500; }
.integr-s { margin: 0; font-size: 12px; line-height: 1.45; color: var(--fg-2); }
.marquee { display: flex; align-items: stretch; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex: none; animation: mq 70s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }
.mq-item { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; align-content: center; justify-items: start; padding: 0 34px; border-right: 1px solid var(--line); white-space: nowrap; transition: background .2s; }
.mq-item:hover { background: var(--surface-2); }
.mq-g { grid-row: 1 / 3; color: var(--fg-2); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: color .2s; }
.mq-item:hover .mq-g { color: var(--accent); }
.mq-n { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--fg); }
.mq-c { font: 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); }
@media (max-width: 760px) {
  .integr { grid-template-columns: minmax(0, 1fr); }
  .integr-head { padding: 18px 20px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mq-item { min-height: 68px; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; flex-wrap: wrap; justify-content: center; } .mq-track[aria-hidden] { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; } }

.sec-h.center { text-align: center; margin-left: auto; margin-right: auto; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 12px; }
.bcard { background: var(--surface); border-radius: 12px; box-shadow: var(--rest); padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bcard.big { grid-row: span 2; }
.bcard h3 { margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.bcard p { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.bcard .splitviz { margin-top: auto; padding-top: 16px; background: none; border: 0; }
.bcard.big .splitviz { padding: 16px; margin-top: 18px; background: var(--surface-2); border-radius: 10px; }
.bic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); }
.soon-pill { font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 8px; }
.bento .bcard:nth-child(2) { grid-column: 2; } 

.flow3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow3 li { position: relative; padding: 22px; border-radius: 12px; background: var(--surface); box-shadow: var(--rest); }
.f3n { font: 500 12px var(--f-mono); color: var(--accent); letter-spacing: .06em; }
.flow3 h3 { margin: 12px 0 6px; font-size: 15px; font-weight: 500; color: var(--fg); }
.flow3 p { margin: 0; font-size: 13px; color: var(--fg-2); }
.flow3 li:not(:last-child)::after { content: ""; position: absolute; top: 31px; right: -12px; width: 12px; height: 1px; background: var(--line-2); }

.trust4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tcard { background: var(--surface); border-radius: 12px; box-shadow: var(--rest); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tcard b { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--fg); }
.tcard p { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.55; }

.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 880px; margin: 0 auto; }
.vs-card { border-radius: 14px; padding: 24px; background: var(--surface); box-shadow: var(--rest); }
.vs-card.dim-card { background: var(--surface-2); box-shadow: none; border: 1px solid var(--line); }
.vs-card.hi-card { box-shadow: var(--rest), var(--lift); outline: 1px solid var(--fg-3); outline-offset: -1px; }
.vs-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.vs-h b { font-size: 16px; font-weight: 600; color: var(--fg); }
.vs-h > span { font-size: 12px; color: var(--fg-2); }
.vs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vs li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; color: var(--body); border-bottom: 1px dashed var(--line); }
.vs li:last-child { border-bottom: 0; }
.vs li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 10px; }
.vs li.y::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23ffffff' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.vs li.n { color: var(--fg-2); }
.vs li.n::before { background-color: var(--line-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }

.faq-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.faq-sec .sec-h { margin-bottom: 10px; }
.faq-side { margin: 0; font-size: 13.5px; color: var(--fg-2); }
.faq-side a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.site .faq { max-width: none; border-top: 0; display: flex; flex-direction: column; gap: 8px; }
.site .faq details { background: var(--surface); border-radius: 10px; box-shadow: var(--rest); border: 0; padding: 0 18px; }
.site .faq summary { padding: 16px 0; }
.site .faq summary::after { color: var(--fg-2); }
.site .faq p { margin: -4px 0 16px; }

.cta-band { margin-block: 96px 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 16px; background: var(--cta); color: var(--cta-text); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.03em; color: var(--cta-text); }
.cta-band p { margin: 0; font-size: 14px; opacity: .7; }
.site .btn.cta-btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.site .btn.cta-btn:hover { background: var(--surface); }

.site .sfoot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 28px; }
.sfoot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.sfoot-brand { max-width: 280px; }
.sfoot-brand p { margin: 12px 0 16px; font-size: 13px; color: var(--fg-2); }
.sfoot-social { display: flex; gap: 4px; margin-left: -8px; }
.sfoot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 48px; }
.site .sfoot-col { display: flex; flex-direction: column; gap: 10px; }
.site .sfoot-col h4 { margin: 0 0 4px; }
.site .sfoot-col a { color: var(--fg-2); font-size: 13.5px; }
.site .sfoot-col a:hover { color: var(--fg); }
.site .sfoot-bot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--fg-2); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard.big { grid-column: 1 / -1; grid-row: auto; }
  .bento .bcard:nth-child(2) { grid-column: auto; }
  .trust4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .bento, .flow3, .trust4, .vs { grid-template-columns: minmax(0, 1fr); }
  .flow3 li::after { display: none; }
  .cta-band { padding: 28px 22px; }
  .sfoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; }
}

/* ================================================================ SKIN: AETHER (experimental)
   Holographic mesh gradient, frosted glass surfaces, black ink, extended display type, construction-grid hairlines.
   Single light look by design: it ignores the light/dark toggle. */
.skins { display: inline-flex; align-items: center; gap: 4px; }
.skins > span { margin-right: 4px; }
.skin-btn { background: none; border: 1px solid transparent; border-radius: 99px; padding: 2px 10px; font: inherit; color: var(--fg-2); cursor: pointer; }
.skin-btn:hover { color: var(--fg); }
.skin-btn.on { color: var(--fg); border-color: var(--line-2); }
:root[data-skin="aether"] { color-scheme: light; }
:root[data-skin="aether"] { background-color: #c4c3cb; }
:root[data-skin="aether"] body { background: transparent; }
:root[data-skin="aether"]::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(42% 48% at 100% 0%, rgba(132,232,196,.95) 0%, rgba(132,232,196,0) 70%),
    radial-gradient(55% 60% at 10% 62%, rgba(172,165,224,.95) 0%, rgba(172,165,224,0) 65%),
    radial-gradient(40% 45% at 0% 95%, rgba(140,182,226,.95) 0%, rgba(140,182,226,0) 65%),
    radial-gradient(38% 50% at 80% 82%, rgba(244,172,166,.92) 0%, rgba(244,172,166,0) 65%),
    radial-gradient(36% 48% at 93% 58%, rgba(247,206,148,.9) 0%, rgba(247,206,148,0) 65%),
    radial-gradient(30% 60% at 104% 92%, rgba(238,238,218,.95) 0%, rgba(238,238,218,0) 70%),
    radial-gradient(70% 55% at 45% 8%, rgba(192,200,208,.95) 0%, rgba(192,200,208,0) 70%);
}
:root[data-skin="aether"] body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-skin="aether"] .site, :root[data-skin="aether"] .app {
  --bg: transparent; --surface: rgba(255,255,255,.5); --surface-2: rgba(255,255,255,.34); --surface-3: rgba(255,255,255,.66); --field: rgba(255,255,255,.7);
  --line: rgba(10,10,12,.09); --line-2: rgba(10,10,12,.17); --hover-line: rgba(10,10,12,.32);
  --fg: #0a0a0c; --body: #17171b; --fg-2: rgba(10,10,12,.62); --fg-3: rgba(10,10,12,.46); --ph: rgba(10,10,12,.34);
  --accent: #0a0a0c; --accent-soft: rgba(255,255,255,.55); --accent-line: rgba(10,10,12,.16);
  --cta: #0a0a0c; --cta-hover: #26262b; --cta-text: #fff;
  --ok: #1d7a4b; --warn: #855712; --bad: #b0213a;
  --c-wallet: #c4501a; --c-burn: #b0213a; --c-buyback: #1d7a4b; --c-rewards: #3654b0; --c-social: #6b3fa0; --c-charity: #8a6a10;
  --code-bg: rgba(255,255,255,.5); --code-bar: rgba(255,255,255,.32); --code-kw: #8a2f10; --code-str: #1d6b44; --code-num: #6b4a12; --code-dim: rgba(10,10,12,.45); --code-fg: #17171b;
  --nav-bg: rgba(255,255,255,.26); --notice: #0a0a0c; --on-notice: rgba(255,255,255,.75);
  --rest: 0 0 0 1px rgba(10,10,12,.08), 0 10px 30px -14px rgba(48,36,96,.22);
  --lift: 0 24px 60px -24px rgba(48,36,96,.35);
  --f-display: "Archivo", "Geist", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light; background: transparent;
}
:root[data-skin="aether"] [data-theme-toggle] { display: none; }
:root[data-skin="aether"] :is(.card, .bcard, .tcard, .vs-card, .codewin, .flow3 li, .band, .faq details, .panel, .snav, .app .rail, .app .top, .mq-item, .integr, .sfoot, .lpc, .seg button, .chip, .btn:not(.ink):not(.primary):not(.launch), .locked > div, .cpick-list) {
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
:root[data-skin="aether"] .integr { background: rgba(255,255,255,.22); border-color: rgba(10,10,12,.08); }
:root[data-skin="aether"] .mq-item { background: rgba(255,255,255,.45); border-color: rgba(10,10,12,.07); }
:root[data-skin="aether"] .site .sfoot { background: rgba(255,255,255,.28); }
:root[data-skin="aether"] .vs-card.dim-card { background: rgba(255,255,255,.22); }
:root[data-skin="aether"] .vs-card.hi-card { outline-color: #0a0a0c; }
:root[data-skin="aether"] .bcard.big .splitviz { background: rgba(255,255,255,.4); }
:root[data-skin="aether"] .bic { background: rgba(255,255,255,.6); }
:root[data-skin="aether"] .cta-band { background: #0a0a0c; }
:root[data-skin="aether"] .site .btn.cta-btn { background: #fff; color: #0a0a0c; border-color: #fff; }
/* extended display type */
:root[data-skin="aether"] .site .hero h1, :root[data-skin="aether"] .site .sec-h, :root[data-skin="aether"] .cta-band h2, :root[data-skin="aether"] .app .page-h h1 {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: -.015em;
}
:root[data-skin="aether"] .site .hero h1 { text-transform: uppercase; font-size: clamp(30px, 4.1vw, 54px); line-height: 1.02; position: relative; padding-block: 14px; }
:root[data-skin="aether"] .site .sec-h { font-size: clamp(22px, 2.6vw, 30px); max-width: 36ch; }
:root[data-skin="aether"] .site .sec-h span { color: rgba(10,10,12,.42); }
/* construction guides: hairlines above and below the headline, grid behind the hero */
:root[data-skin="aether"] .site .hero h1::before, :root[data-skin="aether"] .site .hero h1::after { content: ""; position: absolute; left: -24px; right: -24px; height: 1px; background: rgba(10,10,12,.28); }
:root[data-skin="aether"] .site .hero h1::before { top: 0; }
:root[data-skin="aether"] .site .hero h1::after { bottom: 0; }
:root[data-skin="aether"] .site .hero { position: relative; }
:root[data-skin="aether"] .site .hero::before { content: ""; position: absolute; inset: 24px 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(10,10,12,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(10,10,12,.07) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 50%, #000 0%, transparent 75%); }
:root[data-skin="aether"] .site main { position: relative; z-index: 1; }
:root[data-skin="aether"] .lpc .ic, :root[data-skin="aether"] .mq-ic { filter: saturate(.85); }
@media (max-width: 640px) { :root[data-skin="aether"] .site .hero h1::before, :root[data-skin="aether"] .site .hero h1::after { left: 0; right: 0; } }

/* ================================================================ SKIN: SPECTRUM (experimental)
   Warm near-black, spectral light streaks rising from below (canvas), white type, dark glass surfaces. Single dark look. */
.spec { display: none; }
:root[data-skin="spectrum"] { color-scheme: dark; background: #0c0908; }
:root[data-skin="spectrum"] body { background: #0c0908; }
:root[data-skin="spectrum"] .site, :root[data-skin="spectrum"] .app {
  --bg: #0c0908; --surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.07); --surface-3: rgba(255,255,255,.1); --field: rgba(0,0,0,.35);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --hover-line: rgba(255,255,255,.28);
  --fg: #f5f3ef; --body: #dcd8d2; --fg-2: rgba(245,243,239,.6); --fg-3: rgba(245,243,239,.42); --ph: rgba(245,243,239,.3);
  --accent: #bcd6ee; --accent-soft: rgba(188,214,238,.1); --accent-line: rgba(188,214,238,.25);
  --cta: #f5f3ef; --cta-hover: #fff; --cta-text: #0c0908;
  --ok: #7fd3a6; --warn: #f2b56b; --bad: #f2836b;
  --c-wallet: #ff8a4c; --c-burn: #f2675a; --c-buyback: #6fd0b0; --c-rewards: #7f9cff; --c-social: #b48cf2; --c-charity: #f2c46b;
  --code-bg: rgba(0,0,0,.45); --code-bar: rgba(255,255,255,.04); --code-kw: #ff9a62; --code-str: #9fd2ea; --code-num: #c9a2ff; --code-dim: rgba(245,243,239,.4); --code-fg: #dcd8d2;
  --nav-bg: rgba(12,9,8,.6); --notice: #000; --on-notice: rgba(245,243,239,.7);
  --rest: 0 0 0 1px rgba(255,255,255,.07), 0 10px 30px -16px rgba(0,0,0,.8);
  --lift: 0 24px 60px -24px rgba(0,0,0,.9);
  color-scheme: dark; background: transparent;
}
:root[data-skin="spectrum"] [data-theme-toggle] { display: none; }
:root[data-skin="spectrum"] .spec { display: block; pointer-events: none; filter: blur(1.8px) saturate(1.2); }
:root[data-skin="spectrum"] .hero-band { position: relative; overflow: hidden; padding-bottom: 260px; }
:root[data-skin="spectrum"] .hero-band .spec { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 92%; z-index: 0; -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
:root[data-skin="spectrum"] .hero-band .hero { position: relative; z-index: 1; }
:root[data-skin="spectrum"] .site .sfoot { position: relative; overflow: hidden; background: transparent; padding-bottom: 140px; }
:root[data-skin="spectrum"] .spec-foot { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; opacity: .75; z-index: 0; }
:root[data-skin="spectrum"] .sfoot > .wrap { position: relative; z-index: 1; }
:root[data-skin="spectrum"] .spec-app { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; opacity: .45; z-index: 0; }
:root[data-skin="spectrum"] .app .main { position: relative; z-index: 1; }
:root[data-skin="spectrum"] .app .rail { z-index: 2; }
:root[data-skin="spectrum"] .app .rail { background: rgba(12,9,8,.7); }
:root[data-skin="spectrum"] :is(.card, .bcard, .tcard, .vs-card, .codewin, .flow3 li, .band, .faq details, .panel, .snav, .app .rail, .app .top, .mq-item) {
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
:root[data-skin="spectrum"] .integr { background: rgba(255,255,255,.02); }
:root[data-skin="spectrum"] .mq-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
:root[data-skin="spectrum"] .vs-card.dim-card { background: rgba(255,255,255,.02); }
:root[data-skin="spectrum"] .vs-card.hi-card { outline-color: rgba(255,255,255,.35); }
:root[data-skin="spectrum"] .cta-band { background: linear-gradient(100deg, rgba(127,156,255,.18), rgba(180,140,242,.14) 45%, rgba(255,138,76,.18)); border: 1px solid rgba(255,255,255,.1); }
:root[data-skin="spectrum"] .cta-band h2 { color: #f5f3ef; }
:root[data-skin="spectrum"] .cta-band p { color: rgba(245,243,239,.7); opacity: 1; }
:root[data-skin="spectrum"] .site .btn.cta-btn { background: #f5f3ef; color: #0c0908; border-color: #f5f3ef; }
:root[data-skin="spectrum"] .site .hero h1 { font-weight: 500; letter-spacing: -.05em; font-size: clamp(40px, 5.4vw, 66px); }
:root[data-skin="spectrum"] .site .sec-h { font-weight: 500; letter-spacing: -.04em; }
:root[data-skin="spectrum"] .site .sec-h span { color: rgba(245,243,239,.42); }
:root[data-skin="spectrum"] .lpc .ic, :root[data-skin="spectrum"] .mq-ic { filter: saturate(.9) brightness(.95); }
:root[data-skin="spectrum"] .vs li.n::before { background-color: rgba(255,255,255,.18); }
:root[data-skin="spectrum"] .sw input:checked + i::after { background: #0c0908; }
@media (max-width: 640px) { :root[data-skin="spectrum"] .hero-band { padding-bottom: 160px; } }

/* ================================================================ SHARP CORNERS (classic)
   Every box is square. Only tiny status dots and check marks stay round. */
*, *::before, *::after { border-radius: 0 !important; }
.dot, .notice-dot, .status::before, .checks li::before, .hero-meta li::before, .vs li::before, .app .seg button.on::after, .seg button.on::after { border-radius: 50% !important; }

/* router page: chart + links */
.rgrid { align-items: start; }
.chart-panel { overflow: hidden; }
.chart-frame { display: block; width: 100%; height: 440px; border: 0; background: var(--surface-2); }
.chart-empty { height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 20px; color: var(--fg-3); background: repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), var(--surface-2); }
.chart-empty svg { width: 100%; height: 140px; color: var(--accent); opacity: .7; }
.chart-empty span { font-size: 13px; color: var(--fg-2); }
.linkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lnk { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font-size: 13px; font-weight: 500; min-width: 0; }
.lnk:hover { border-color: var(--hover-line); background: var(--surface-2); }
.lnk-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: #fff; font: 600 12px var(--f-sans); }
.lnk-arrow { margin-left: auto; color: var(--fg-3); font-size: 12px; }
.ca-copy { background: none; border: 0; padding: 0; font: 13px var(--f-mono); color: var(--fg-2); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.ca-copy:hover { color: var(--fg); }
@media (max-width: 560px) { .chart-frame { height: 360px; } }

/* ================================================================ RAIL v2 (OTC-width, collapsible) */
@media (min-width: 861px) { .app { grid-template-columns: 208px minmax(0, 1fr); } }
.app .rail { padding: 0; gap: 0; }
.app .rail-brand { flex: none; height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); gap: 11px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.app .rail-brand .mark { width: 22px; height: 22px; }
.app .nav { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px; gap: 2px; }
.app .nav a { min-height: 36px; padding: 0 10px; font-size: 13px; }
.app .nav-label { padding: 16px 10px 6px; }
.app .side-foot { margin-top: 0; padding: 12px 20px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-toggle { display: flex; align-items: center; gap: 11px; width: 100%; height: 44px; padding: 0 20px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg-2); font: 12.5px var(--f-sans); cursor: pointer; text-align: left; white-space: nowrap; }
.rail-toggle:hover { color: var(--fg); }
@media (min-width: 861px) {
  .app.rail-min { grid-template-columns: 60px minmax(0, 1fr); }
  .app.rail-min .rail-brand { padding: 0; justify-content: center; }
  .app.rail-min .rail-brand > span:not(.mark) { display: none; }
  .app.rail-min .nav { padding: 12px 8px; }
  .app.rail-min .nav a { font-size: 0; justify-content: center; padding: 0; }
  .app.rail-min .nav a .ext { display: none; }
  .app.rail-min .nav-label { font-size: 0; height: 1px; padding: 0; margin: 10px 6px; background: var(--line); }
  .app.rail-min .side-foot { font-size: 0; padding: 14px 0; text-align: center; }
  .app.rail-min .side-foot .dot { margin: 0; }
  .app.rail-min .rail-toggle { justify-content: center; padding: 0; }
  .app.rail-min .rail-toggle span { display: none; }
  .app.rail-min .rail-toggle svg { transform: scaleX(-1); }
}
@media (max-width: 860px) { .rail-toggle { display: none; } }

/* ================================================================ LANDING spec strip + docs extras */
.rspec { margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: var(--rest); }
.rspec > div { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rspec > div > span { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.rspec b { font: 500 14px var(--f-mono); color: var(--fg); }
.flow3 code, .bcard code { font: 12px var(--f-mono); color: var(--fg); background: var(--surface-2); padding: 0 4px; }
@media (max-width: 900px) { .rspec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rspec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc-h { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); padding: 14px 0 4px 14px; }
.toc-h:first-child { padding-top: 0; }
.prose .eyebrow { margin: 0 0 6px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.callout { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; padding: 14px 16px; background: var(--surface); box-shadow: var(--rest); border-left: 2px solid var(--accent) !important; }
.callout b { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); font-weight: 500; }
.callout span { font: 12.5px/1.6 var(--f-mono); color: var(--fg); }
.steps-doc { padding-left: 0; list-style: none; counter-reset: sd; display: flex; flex-direction: column; gap: 8px; }
.steps-doc li { counter-increment: sd; position: relative; padding: 10px 14px 10px 46px; background: var(--surface); box-shadow: var(--rest); }
.steps-doc li::before { content: counter(sd, decimal-leading-zero); position: absolute; left: 14px; top: 10px; font: 500 12px var(--f-mono); color: var(--accent); }
.steps-doc b { color: var(--fg); font-weight: 500; }
.doc-code { margin: 14px 0; padding: 16px 18px; background: var(--code-bg); box-shadow: var(--rest); font: 12.5px/1.75 var(--f-mono); color: var(--code-fg); overflow-x: auto; }
.doc-code code { font: inherit; background: none; border: 0; padding: 0; }
.prose .soon-pill { vertical-align: middle; }

/* ================================================================ ROUTER PAGE (OTC coin layout) */
.cp { display: flex; flex-direction: column; gap: 12px; }
.cp .up { color: var(--ok); } .cp .down { color: var(--bad); }
.cp-l { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.cp-l.dim { color: var(--fg-3); }
.cp-l-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cp-big { font: 600 26px/1.15 var(--f-sans); letter-spacing: -.025em; color: var(--fg); font-variant-numeric: tabular-nums; }
.cp-big small { font-size: 13px; color: var(--fg-2); font-weight: 500; letter-spacing: 0; }
.cp-sub { font-size: 12px; color: var(--fg-2); }
.cp-sub b { font-weight: 500; }
.cp-note { font-size: 12px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.cp-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.cp-head { padding: 0; overflow: hidden; }
.cp-id { display: flex; align-items: center; gap: 14px; padding: 18px 20px; flex-wrap: wrap; }
.cp-av { width: 48px; height: 48px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); box-shadow: var(--rest); font: 600 15px var(--f-sans); color: var(--fg); }
.cp-av img { width: 100%; height: 100%; object-fit: cover; }
.cp-name { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cp-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-title > b { font: 600 20px/1.2 var(--f-sans); letter-spacing: -.02em; color: var(--fg); }
.cp-title > span:not(.status):not(.vbadge):not(.cp-flag) { font: 500 12px var(--f-sans); color: var(--fg-2); }
.cp-flag { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); border: 1px dashed var(--line-2); padding: 2px 6px; }
.cp-ca { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 11.5px var(--f-mono); color: var(--fg-3); cursor: pointer; }
.cp-ca:hover { color: var(--fg); }
.cp-pills { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.cp-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; color: var(--fg); }
.cp-pill:hover { background: var(--surface-2); border-color: var(--hover-line); }
.cp-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.cp-stats > div { background: var(--surface); padding: 12px 20px; min-width: 0; }
.cp-stats span { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); }
.cp-stats b { display: block; margin-top: 4px; font: 600 15px var(--f-sans); color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-stats b.up { color: var(--ok); } .cp-stats b.down { color: var(--bad); }

.cp-mid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cp-side { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cp-side > [data-cpp] { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cp-side > [data-cpp][hidden] { display: none; }
.cp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.cp-seg button { height: 32px; border: 0; background: none; color: var(--fg-2); font: 500 13px var(--f-sans); cursor: pointer; }
.cp-seg button:hover { color: var(--fg); }
.cp-seg button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cp-seg.sm button { height: 28px; font-size: 12.5px; }
.cp-box { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.cp-addr { padding: 0; border: 0; background: none; text-align: left; font: 11.5px/1.5 var(--f-mono); color: var(--fg); overflow-wrap: anywhere; cursor: pointer; }
.cp-addr:hover { color: var(--accent); }
.cp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: baseline; margin: 0; font-size: 12.5px; }
.cp-kv dt { color: var(--fg-2); }
.cp-kv dd { margin: 0; text-align: right; font: 12px var(--f-mono); color: var(--fg); }
.cp-side .cp-note { margin-top: auto; }
.cp-pay { display: flex; align-items: center; gap: 8px; }
.cp-pay input { flex: 1; width: 0; min-width: 0; border: 0; background: none; outline: none; padding: 4px 0; font: 600 26px var(--f-sans); color: var(--fg); }
.cp-pay input::placeholder { color: var(--ph); }
.cp-unit { border: 1px solid var(--line-2); padding: 3px 8px; font: 500 11.5px var(--f-mono); color: var(--fg); }
.cp-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cp-chips[hidden] { display: none; }
.cp-chips button { height: 28px; border: 1px solid var(--line-2); background: var(--surface); font: 12px var(--f-sans); color: var(--fg); cursor: pointer; }
.cp-chips button:hover { background: var(--surface-2); }
.app .btn.cp-go { width: 100%; justify-content: center; height: 40px; }

.cp-chart { padding: 16px 18px 10px; display: flex; flex-direction: column; min-height: 520px; }
.cp-chart-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cp-tf { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.cp-tf button { height: 26px; padding: 0 10px; border: 0; background: none; font: 500 11.5px var(--f-mono); color: var(--fg-2); cursor: pointer; }
.cp-tf button:hover { color: var(--fg); }
.cp-tf button.on { background: var(--surface); color: var(--fg); box-shadow: var(--rest); }
.cp-frame { flex: 1; width: 100%; min-height: 440px; border: 0; display: block; }
.chart-empty.cp-frame { height: auto; }
.chart-empty.cp-frame svg { flex: 1; height: auto; min-height: 280px; opacity: 1; }
.cp-foot { font-size: 11px; color: var(--fg-3); padding-top: 8px; }

.cp-bot { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.cp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cp-card-h b { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.cp-split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.cp-split-in > div { padding: 16px 18px; min-width: 0; }
.cp-split-in > div + div { border-left: 1px solid var(--line); }
.cp-line { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cp-line li { display: grid; grid-template-columns: 20px 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--fg); }
.cp-line .n { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 500 11px var(--f-mono); color: var(--fg-2); }
.cp-line i { width: 8px; height: 8px; }
.cp-line .t { overflow-wrap: anywhere; }
.cp-line em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); margin-left: 6px; }
.cp-line b { font: 500 12.5px var(--f-mono); }
.cp-tot { display: flex; flex-direction: column; gap: 6px; }
.cp-tot .cp-big { margin-top: 6px; }
.cp-tot .cp-kv { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cp-flow { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cp-fr { display: grid; grid-template-columns: minmax(0, 1.4fr) 40px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--fg); }
.cp-fr > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-fr i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; }
.cp-fr .pct { font: 12px var(--f-mono); color: var(--fg-2); text-align: right; }
.cp-fr .bar { height: 4px; background: var(--line); }
.cp-fr .bar span { display: block; height: 100%; }
.cp-fr b { font: 500 12px var(--f-mono); text-align: right; }
.cp-split > .cp-note { padding: 0 18px 16px; }
.cp-po { list-style: none; margin: 0; padding: 0; }
.cp-po li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cp-po li > div { min-width: 0; }
.cp-po b { display: block; font: 600 14px var(--f-sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.cp-po li span:not(.tagdot):not(.v) { display: block; font-size: 12px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-po a, .cp-po .v { font: 12px var(--f-mono); color: var(--fg); }
.cp-po a:hover { color: var(--accent); }
.cp-po li.empty { display: block; font-size: 13px; color: var(--fg-2); }
.tagdot { width: 8px; height: 8px; background: var(--fg-3); }
.tagdot.wallet { background: var(--c-wallet); } .tagdot.social { background: var(--c-social); } .tagdot.burn { background: var(--c-burn); }
.tagdot.buyback, .tagdot.buy { background: var(--c-buyback); } .tagdot.rewards { background: var(--c-rewards); } .tagdot.charity { background: var(--c-charity); } .tagdot.claim, .tagdot.harvest { background: var(--fg-2); }
.cp-end { margin: 0; padding: 14px; text-align: center; font-size: 12px; color: var(--fg-3); }
@media (max-width: 1180px) { .cp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .cp-mid, .cp-bot { grid-template-columns: minmax(0, 1fr); } .cp-chart { min-height: 460px; } }
@media (max-width: 560px) {
  .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-pills { margin-left: 0; width: 100%; }
  .cp-split-in { grid-template-columns: minmax(0, 1fr); }
  .cp-split-in > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cp-fr { grid-template-columns: minmax(0, 1fr) 36px 60px; } .cp-fr .bar { display: none; }
}
.wizard .wz-step > h2.grp:first-child { display: none; }
.wizard .wz-step > .blk:first-of-type { margin-top: 20px; }

/* ================================================================ v3: search, wallet menu, steps, success, explore, claims, mobile bar */
/* top search */
.tsearch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg-3); width: 240px; }
.tsearch:focus-within { border-color: var(--hover-line); color: var(--fg); }
.tsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 13px var(--f-sans); color: var(--fg); padding: 0; height: 100%; }
.tsearch input::placeholder { color: var(--ph); }
@media (max-width: 1080px) { .tsearch { width: 180px; } }
@media (max-width: 720px) { .tsearch { display: none; } }

/* wallet menu */
.wwrap { position: relative; }
.wmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 260px; background: var(--surface); box-shadow: var(--lift), 0 0 0 1px var(--line); padding: 6px; display: flex; flex-direction: column; }
.wmenu[hidden] { display: none; }
.wm-h { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wm-h code { font: 11.5px/1.45 var(--f-mono); color: var(--fg); overflow-wrap: anywhere; }
.wmenu > button, .wmenu > a { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 0; background: none; font: 13px var(--f-sans); color: var(--fg); text-align: left; cursor: pointer; }
.wmenu > button:hover, .wmenu > a:hover { background: var(--surface-2); }
.wmenu .wm-out { color: var(--bad); border-top: 1px solid var(--line); margin-top: 4px; }

/* launch progress steps */
.term.steps { background: var(--surface); box-shadow: var(--rest); border: 0; padding: 14px 16px; font: 13px/1.5 var(--f-sans); color: var(--fg); max-height: none; display: flex; flex-direction: column; gap: 10px; }
.term.steps:empty { display: none; }
.st { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.st i { width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--line-2); position: relative; }
.st.run i { border-color: var(--fg-3); border-top-color: var(--fg); animation: spin .8s linear infinite; border-radius: 50% !important; }
.st.done i { background: var(--ok); border-color: var(--ok); }
.st.done i::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.st.err i { background: var(--bad); border-color: var(--bad); }
.st.err i::after { content: "×"; position: absolute; inset: -3px 0 0; text-align: center; color: #fff; font-size: 14px; line-height: 18px; }
.st.done span { color: var(--fg-2); }
.st.err span { color: var(--bad); }
.st span { overflow-wrap: anywhere; }
.st .sig, .st-note .sig { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; font-family: var(--f-mono); font-size: 12px; }
.st-note { margin-left: 28px; font-size: 12px; color: var(--fg-2); overflow-wrap: anywhere; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success card */
.next.win { border: 0; box-shadow: var(--rest); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--ok) !important; }
.win-h { display: flex; gap: 12px; align-items: center; }
.win-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--ok); color: #fff; }
.win-h b { display: block; font-size: 16px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.win-h span { font-size: 12.5px; color: var(--fg-2); }
.win-note { margin: 0; font-size: 12.5px; color: var(--fg-2); line-height: 1.55; }
.win-note b { color: var(--fg); font-weight: 500; }
.win-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.next.win .copyrow { margin: 0; }

/* router page: countdown + share */
.cp-next { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font: 11px var(--f-mono); color: var(--fg-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.cp-next::before { content: ""; width: 6px; height: 6px; background: var(--ok); border-radius: 50% !important; }
.cp-next.run { color: var(--accent); }
.cp-next.run::before { animation: pulse 1s ease-in-out infinite; }
.cp-next:empty { display: none; }
@keyframes pulse { 50% { opacity: .25; } }
.cp-pill.share { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.cp-pill.share:hover { background: var(--cta-hover); border-color: var(--cta-hover); }

/* explore */
.ex-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.ex-q { flex: 1; min-width: 240px; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: var(--surface); box-shadow: var(--rest); color: var(--fg-3); }
.ex-q:focus-within { box-shadow: 0 0 0 1px var(--hover-line); color: var(--fg); }
.ex-q input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 13.5px var(--f-sans); color: var(--fg); height: 100%; padding: 0; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ex-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; color: inherit; transition: box-shadow .15s, transform .15s; }
.ex-card:hover { box-shadow: var(--lift), 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.ex-top { display: flex; align-items: center; gap: 12px; }
.cp-av.sm { width: 38px; height: 38px; font-size: 13px; }
.ex-id { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ex-id b { font-size: 14.5px; font-weight: 600; color: var(--fg); }
.ex-id span { font-size: 12px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-big { font: 600 26px/1.1 var(--f-sans); letter-spacing: -.025em; color: var(--fg); font-variant-numeric: tabular-nums; }
.ex-big small { font-size: 12px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }
.ex-split span { display: flex; gap: 2px; height: 5px; }
.ex-split i { display: block; height: 100%; }
.ex-pays { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ex-pays .cp-l { margin-right: 2px; }
.ex-pays em { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font-style: normal; font-size: 11.5px; color: var(--fg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-pays em i { width: 7px; height: 7px; flex: none; }
.ex-foot { display: flex; gap: 12px; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font: 11px var(--f-mono); color: var(--fg-3); }

/* claims */
.claim-form { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 16px; max-width: 640px; }
.claim-form .cp-seg { width: 150px; flex: none; }
.cl-in { flex: 1; }
.cl-in input { width: 100%; height: 38px; padding-left: 28px; }
.claim-form .btn { height: 38px; }
.cl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.cl-stats .card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cp-big.hl { color: var(--accent); }
.banner.ok-b { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.banner a:not(.btn) { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cl-list .cp-po b a { color: var(--fg); }
.cl-list .cp-po b a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .claim-form { flex-wrap: wrap; } .claim-form .cp-seg { width: 100%; } .claim-form .btn { width: 100%; justify-content: center; }
  .cl-stats { grid-template-columns: minmax(0, 1fr); }
}

/* mobile launch bar */
.mbar { display: none; }
@media (max-width: 1080px) {
  .view[data-view="deploy"]:not([hidden]) .mbar { display: flex; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--nav-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mbar b { font: 600 14px var(--f-sans); color: var(--fg); }
  .mbar .btn { height: 40px; padding: 0 20px; }
  .view[data-view="deploy"] { padding-bottom: 72px; }
  .wz-foot { display: none; }
}
.cl-list .cp-po b a { font: inherit; color: var(--fg); }

/* ================================================================ LANDING v4 */
/* hero payflow */
.pf { background: var(--surface); box-shadow: var(--rest); display: flex; flex-direction: column; min-width: 0; }
.pf-head, .pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font: 11.5px var(--f-mono); color: var(--fg-2); }
.pf-head { border-bottom: 1px solid var(--line); }
.pf-foot { border-top: 1px solid var(--line); color: var(--fg-3); }
.pf-tok b { color: var(--fg); font-weight: 500; }
.pf-live { display: inline-flex; align-items: center; gap: 7px; }
.pf-live i { width: 6px; height: 6px; background: var(--ok); border-radius: 50% !important; animation: pulse 1.4s ease-in-out infinite; }
.pf-body { position: relative; height: 384px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1.15fr); }
.pf-svg { position: absolute; left: 0; top: 0; width: 56%; height: 100%; overflow: visible; }
.pf-svg path { fill: none; }
.pf-lines use { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.pf-node { fill: var(--accent); }
.pf-dot { fill: var(--accent); }
.pf-in { position: absolute; left: 16px; top: 140px; display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.pf-in span { font: 10px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.pf-in b { font: 600 15px var(--f-sans); color: var(--fg); font-variant-numeric: tabular-nums; }
.pf-rows { position: absolute; left: 57%; right: 0; top: 0; bottom: 0; }
.pf-row { position: absolute; left: 0; right: 16px; height: 44px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pf-row i { width: 10px; height: 10px; }
.pf-row b { display: block; font-size: 13.5px; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row span { display: block; font: 10.5px var(--f-mono); color: var(--fg-3); white-space: nowrap; }
.pf-row em { font: normal 500 13px var(--f-mono); color: var(--fg); font-variant-numeric: tabular-nums; transition: color .3s; }
.pf-row em.bump, .pf-in b.bump { color: var(--accent); }
@media (max-width: 900px) { .pf-body { height: 360px; } }
@media (max-width: 460px) { .pf-in { top: 150px; } .pf-in b { font-size: 13px; } .pf-row b { font-size: 12.5px; } .pf-row em { font-size: 11.5px; } }

/* shared section head */
.lp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.lp-head h2, .lp-what h2, .lp-cycle h2, .lp-end h2 { margin: 0; font: 600 clamp(24px, 2.6vw, 30px)/1.15 var(--f-sans); letter-spacing: -.03em; color: var(--fg); }
.lp-head p { margin: 6px 0 0; color: var(--fg-2); font-size: 14px; }
.lp-more { font-size: 13.5px; color: var(--fg); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.lp-more:hover { border-color: var(--fg); }

/* live routers */
.lp-live { padding-top: 88px; }
.lp-live-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-feed { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.lp-feed-list { list-style: none; margin: 0; padding: 0; flex: 1; overflow: hidden; }
.lp-feed-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); animation: feedIn .4s ease-out; }
.lp-feed-list li div { min-width: 0; }
.lp-feed-list b { display: block; font: 500 13px var(--f-sans); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-feed-list span:not(.tagdot) { display: block; font-size: 11.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-feed-list em { font: normal 12px var(--f-mono); color: var(--fg); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); background: var(--accent-soft); } }
@media (max-width: 1000px) { .lp-live-grid { grid-template-columns: minmax(0, 1fr); } .lp-feed { max-height: 420px; } }
@media (max-width: 640px) { .lp-cards { grid-template-columns: minmax(0, 1fr); } }

/* what it does: doc-style rows */
.lp-what { padding-top: 112px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.lp-what-l { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lp-what-l p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.lp-what-r { border-top: 1px solid var(--fg); }
.lp-f { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lp-f h3 { margin: 0; font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -.01em; }
.lp-f p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.lp-f p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .lp-what { grid-template-columns: minmax(0, 1fr); gap: 28px; } .lp-what-l { position: static; } }
@media (max-width: 560px) { .lp-f { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* cycle band (always dark) */
.lp-band { margin-top: 112px; padding-block: 88px 72px; background: #121211; color: #f2f1ed; --fg: #f2f1ed; --fg-2: #97958e; --fg-3: #6f6d67; --line: #262521; --line-2: #3a3935; --surface: #1a1a18; --rest: 0 0 0 1px #262521; --accent: #a3e635; }
.lp-cycle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.lp-cycle-l > p { margin: 12px 0 28px; color: var(--fg-2); font-size: 15px; line-height: 1.6; max-width: 42ch; }
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-left: 1px solid var(--line-2); }
.lp-steps li { counter-increment: s; position: relative; padding: 0 0 22px 28px; display: flex; flex-direction: column; gap: 4px; }
.lp-steps li:last-child { padding-bottom: 0; }
.lp-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: -12px; top: -1px; width: 24px; height: 22px; display: grid; place-items: center; background: #121211; font: 500 11px var(--f-mono); color: var(--accent); }
.lp-steps b { font-size: 15px; font-weight: 500; color: var(--fg); }
.lp-steps span { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.lp-term { background: #0b0b0a; box-shadow: 0 0 0 1px #262521; min-width: 0; }
.lp-term-h { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #262521; font: 11.5px var(--f-mono); color: #6f6d67; }
.lp-term pre { margin: 0; padding: 18px 16px; font: 12.5px/1.85 var(--f-mono); color: #f2f1ed; overflow-x: auto; }
.lp-term .c { color: #6f6d67; } .lp-term .k { color: #ea6a2a; } .lp-term .n { color: #e3b341; } .lp-term .s { color: #a3e635; }
.lp-cursor { display: inline-block; width: 8px; height: 14px; margin-left: 6px; vertical-align: -2px; background: #a3e635; animation: pulse 1s steps(1) infinite; }
.lp-spec { margin-top: 48px; box-shadow: none; background: #262521; }
.lp-spec > div { background: #121211; }
@media (max-width: 900px) { .lp-cycle { grid-template-columns: minmax(0, 1fr); gap: 36px; } .lp-band { padding-block: 64px 56px; } }

/* compare */
.lp-cmp { padding-top: 112px; }
.lp-cmp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-cmp-t th, .lp-cmp-t td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.lp-cmp-t thead th { font: 500 10.5px var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); border-bottom: 1px solid var(--fg); }
.lp-cmp-t thead th:last-child, .lp-cmp-t td:last-child { color: var(--fg); background: var(--surface); }
.lp-cmp-t tbody th { font-weight: 400; color: var(--fg); width: 38%; }
.lp-cmp-t td { color: var(--fg-2); }
.lp-cmp-t td.y { color: var(--ok); font-weight: 600; }
.lp-cmp-t td.n { color: var(--fg-3); }
.lp-attach { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: var(--surface); box-shadow: var(--rest); font-size: 14px; color: var(--fg-2); }
.lp-attach b { color: var(--fg); font-weight: 500; }
.lp-attach span { flex: 1; min-width: 260px; }

/* end: the payline runs into the button */
.lp-end { position: relative; margin-top: 112px; padding-block: 64px; border-top: 1px solid var(--line); overflow: hidden; }
.lp-end-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--accent); opacity: .9; }
.lp-end-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-end-in > div { background: var(--bg); padding-right: 24px; }
.lp-end-in p { margin: 8px 0 0; color: var(--fg-2); font-size: 15px; }
.lp-end-in .btn { position: relative; box-shadow: 0 0 0 8px var(--bg); }
@media (max-width: 640px) { .lp-end-line { display: none; } }
@media (max-width: 560px) {
  .pf-svg { width: 38%; }
  .pf-rows { left: 39%; }
  .pf-row { right: 12px; gap: 8px; }
  .pf-row span { font-size: 9.5px; }
  .pf-in { left: 12px; top: 128px; }
  .pf-in span { font-size: 9px; }
  .pf-head, .pf-foot { padding: 10px 12px; font-size: 10.5px; }
  .lp-cards > :nth-child(n+3) { display: none; }
  .lp-feed-list li:nth-child(n+6) { display: none; }
  .lp-live { padding-top: 64px; } .lp-what, .lp-cmp { padding-top: 80px; } .lp-band, .lp-end { margin-top: 80px; }
  .lp-cmp-t th, .lp-cmp-t td { padding: 11px 10px; font-size: 13px; }
}
.cp-av { position: relative; } .cp-av img { position: absolute; inset: 0; }

.faucet-btn { border-style: dashed !important; color: var(--accent) !important; }
@media (max-width: 720px) { .faucet-btn { display: none; } }

/* payout schedule */
.sched { display: flex; flex-direction: column; gap: 14px; }
.sched .field { margin: 0; }
.sched .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sched .chip:disabled { opacity: .4; cursor: not-allowed; }
.sched-sum { margin: 0; padding: 10px 12px; background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); font-size: 12.5px; line-height: 1.55; color: var(--fg-2); }
.sched-sum b { color: var(--fg); font-weight: 500; }
.sched .adv summary { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); cursor: pointer; }
