/* Pouch, app-first (29 Oct 2026). The homepage is the desk: an app shell (risk strip, sidebar, top bar), live numbers
   and live offers on the first screen, explanations in Docs. Every component reads tokens.css. Motion is on by default
   (the header's Motion switch turns it off); [data-motion="off"] stills everything. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(124, 108, 255, 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
b, strong { font-weight: 700; }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fine.warn, p.warn { color: var(--warn); }
.lede { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.label { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.num, .stat-value, .tp-num, .big-price, .ticket-price, .ot-price b, .costs dd { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.icon { display: inline-flex; flex: none; }
.icon svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the shell ---------- */
.strip { position: relative; z-index: 31; height: var(--strip-h); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: #0D0B26; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; }
.strip b { color: var(--ink); font-weight: 650; }
.strip .strip-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex: none; }
.strip a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.strip a:hover { text-decoration-color: var(--accent); }
.strip .strip-demo { color: var(--accent); font-weight: 650; }
.strip .strip-phone { display: none; }
/* $POUCH's address (from launch day; web/data/coin.json, empty = not shown): the whole address as text, then Copy */
.strip .strip-ca { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.strip .strip-ca b { color: var(--accent); }
.strip .strip-ca code { font: 500 12px/1 var(--font-mono); color: var(--ink); letter-spacing: 0.01em; }
.strip .strip-copy { height: 20px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-3); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; cursor: pointer; }
.strip .strip-copy:hover { border-color: var(--accent); }
.strip .strip-ca .ca-short { display: none; }
@media (max-width: 1320px) { .strip.has-ca .strip-more { display: none; } }
@media (max-width: 350px) { .strip .strip-ca code { font-size: 8.8px !important; } }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100svh - var(--strip-h)); }

/* the sidebar: brand, the pages, the vault */
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 14px; background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; z-index: 30; }
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--ink); }
.brand .logo { position: relative; display: inline-flex; flex: none; }
.brand .logo svg { width: 30px; height: 30px; border-radius: 8px; }
.brand .logo-word { font-weight: 800; font-size: 21px; letter-spacing: -0.035em; line-height: 1; }
.demo-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--accent); font: 600 10px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: help; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 14px; transition: background var(--t-fast), color var(--t-fast); }
.side-nav a .icon { color: var(--muted); transition: color var(--t-fast); }
.side-nav a:hover { background: var(--surface); color: var(--ink); }
.side-nav a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side-nav a[aria-current] .icon { color: var(--accent); }
.side-nav .out { margin-left: auto; color: var(--faint); }
.side-label { margin: 18px 10px 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; }
.vault-card { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.vault-card .pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vault-card .pc-addr { display: flex; align-items: center; gap: 6px; font: 500 12.5px var(--font-mono); color: var(--ink); }
.vault-card .pc-addr .icon-btn { margin-left: auto; }
.vault-card .pc-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.vault-card .pc-check .ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); flex: none; }
.vault-card .pc-check .ok-dot.wait { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-wash); }
.vault-card .pc-check .ok-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-wash); }
.side-switches { display: flex; gap: 12px; padding: 0 4px; }

/* the top bar: search, the switches, the wallet, the one action */
.frame { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 var(--gut); background: rgba(9, 7, 32, 0.86); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top .brand { display: none; padding: 0; }
.top-search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; }
.top-search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.top-search input { width: 100%; height: 38px; padding: 0 44px 0 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-size: 13.5px; transition: border-color var(--t-fast), background var(--t-fast); }
.top-search input::placeholder { color: var(--muted); }
.top-search input:focus { outline: none; border-color: var(--line-3); background: var(--surface); }
.top-search kbd { position: absolute; right: 10px; height: 20px; min-width: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); font: 500 11px var(--font-mono); pointer-events: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-tools { display: flex; align-items: center; gap: 4px; padding-right: 4px; }
.top .menu-btn { display: none; }

/* the Motion switch */
.motion-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; transition: border-color var(--t-fast), color var(--t-fast); }
.motion-btn:hover { border-color: var(--line-3); color: var(--ink); }
.motion-track { position: relative; width: 26px; height: 15px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background var(--t-fast), border-color var(--t-fast); }
.motion-knob { position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.motion-btn[aria-pressed="true"] .motion-track { background: var(--accent-wash); border-color: var(--accent-line); }
.motion-btn[aria-pressed="true"] .motion-knob { transform: translateX(11px); background: var(--accent); }

main { flex: 1; padding: 24px 0 64px; }
main:focus { outline: none; }

/* the footer: one quiet row */
.foot { border-top: 1px solid var(--line); padding: 22px var(--gut) 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 12.5px; }
.foot .foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.foot .foot-brand svg { width: 18px; height: 18px; border-radius: 5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot nav a:hover, .foot .link:hover { color: var(--ink); }
.foot .foot-switches { margin-left: auto; display: flex; gap: 14px; }
.foot .foot-risk { flex-basis: 100%; color: var(--faint); font-size: 12px; }

/* the phone's tab bar and drawer */
.tabbar { display: none; }
.veil { display: none; }

/* ---------- buttons, chips, controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 650; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.glass { background: transparent; }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 122, 0.35); background: transparent; }
.btn.danger:hover { background: var(--bad-wash); }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.tiny { width: 24px; height: 24px; border-radius: 6px; }
.icon-btn[aria-pressed="false"].sound-btn { color: var(--muted); }
.link { padding: 0; border: 0; background: none; color: var(--ink-2); font-size: inherit; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 13.5px; transition: color var(--t-fast), gap var(--t-fast); }
.link-arrow:hover { color: var(--accent); gap: 8px; }
.link-arrow .icon { color: currentColor; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 550; white-space: nowrap; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--line-3); color: var(--ink); }
.chip.sky { color: var(--sky); border-color: rgba(124, 180, 255, 0.3); background: var(--sky-wash); }
.chip.good { color: var(--good); border-color: rgba(61, 214, 140, 0.3); background: var(--good-wash); }
.chip.bad { color: var(--bad); border-color: rgba(255, 107, 122, 0.3); background: var(--bad-wash); }
.chip.warn { color: var(--warn); border-color: rgba(255, 159, 67, 0.3); background: var(--warn-wash); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); flex: none; }
[data-motion="on"] .live-dot { animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(61, 214, 140, 0); } }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 11px; border-radius: 6px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; transition: background var(--t-fast), color var(--t-fast); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font: 500 12px var(--font-mono); }
.quick button:hover { color: var(--accent); border-color: var(--accent-line); }
.tabs { display: flex; gap: 2px; margin: 26px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 650; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .count { font: 500 11px var(--font-mono); color: var(--muted); margin-left: 7px; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); }

.field { display: grid; gap: 7px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-wash); background: var(--surface); }
.input:disabled { opacity: 0.7; }
.affix { display: flex; align-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.affix:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-wash); }
.affix .input { border: 0; background: none; box-shadow: none; font-variant-numeric: tabular-nums; }
.affix .unit { padding: 0 12px; color: var(--muted); font: 500 13px var(--font-mono); white-space: nowrap; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.toggle input { width: 17px; height: 17px; accent-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); }
.problem { font-size: 13px; color: var(--bad); }
.problem:empty, .todo:empty { display: none; }
.todo { font-size: 13px; color: var(--warn); }
details.more-opts > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 13.5px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details.more-opts > summary::-webkit-details-marker { display: none; }
details.more-opts > summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2); font: 500 12px var(--font-mono); color: var(--muted); }
details.more-opts[open] > summary::before { content: '−'; }

/* ---------- cards and states ---------- */
.panel { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel h3 { font-size: 17px; }
.house { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.house-card { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.addr-box { display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); min-width: 0; }
.addr-box .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink); }
.promise, .notes { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.promise li, .notes li { display: flex; gap: 9px; align-items: flex-start; }
.promise .icon, .notes .icon { color: var(--good); margin-top: 2px; flex: none; }
.banner { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); }
.banner.good { border-color: rgba(61, 214, 140, 0.3); background: var(--good-wash); }
.banner.warn { border-color: rgba(255, 159, 67, 0.3); background: var(--warn-wash); }
.banner .markimg { width: 52px; height: 52px; flex: none; margin: -8px 0; }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 20px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: rgba(13, 20, 40, 0.5); }
.empty h1, .empty h3 { font-size: 17px; }
.empty p { max-width: 46ch; }
.empty .btn { margin-top: 6px; }
/* Pouch, still: each picture is one pose in one frame (the frame has room around him, so it sits a little wide) */
.art { display: inline-grid; place-items: center; }
.markimg { display: block; width: 120px; height: 120px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.art .markimg { width: 112px; height: 112px; }
.empty .art .markimg { width: 128px; height: 128px; margin-bottom: -6px; }
.loading { display: grid; justify-items: center; gap: 12px; padding: 48px 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); }
[data-motion="on"] .spinner { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sk { border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; }
[data-motion="on"] .sk { animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.boot { display: grid; gap: 16px; padding: 0 var(--gut); max-width: var(--wrap); margin: 0 auto; }
.boot .sk:nth-child(1) { height: 210px; border-radius: var(--r-lg); }
.boot .sk:nth-child(2) { height: 84px; border-radius: var(--r-lg); }
.boot .sk:nth-child(3) { height: 320px; border-radius: var(--r-lg); }

/* ---------- page heads (every page but the desk) ---------- */
.page-head { padding-bottom: 6px; }
.page-head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.page-head-copy { display: grid; gap: 10px; min-width: 0; max-width: 760px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.page-head .lede { font-size: 15px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.pull-up { margin-top: 22px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head > div { display: grid; gap: 8px; max-width: 680px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.025em; }
.section-head .lede { font-size: 14.5px; }

/* ---------- the desk (home) ---------- */
.desk { display: grid; gap: 16px; }
/* three parts: the words and the buttons, Pouch in the diagram, what you sign (a phone stacks them in that order) */
.hero-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: 'copy viz' 'sign viz'; grid-template-rows: auto 1fr; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(900px 420px at 88% 30%, rgba(79, 59, 246, 0.3), transparent 62%), linear-gradient(180deg, #151238, #0F0C2C); overflow: hidden; }
.hero-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.hero-copy { grid-area: copy; display: grid; align-content: end; gap: 16px; padding: 34px 8px 0 34px; position: relative; z-index: 1; }
.hero-sign { grid-area: sign; display: grid; align-content: start; gap: 12px; padding: 20px 8px 30px 34px; position: relative; z-index: 1; }
.hero-title { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; max-width: 17ch; }
.hero-title span { color: var(--ink-2); }
.hero-copy .lede { font-size: 15.5px; max-width: 44ch; color: var(--ink-2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts .icon { color: var(--good); }
.hero-viz { grid-area: viz; position: relative; display: grid; align-items: center; padding: 18px 22px 16px 8px; min-height: 300px; }
/* what you sign: three short rows, the never in red */
.sign-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(8, 13, 27, 0.55); max-width: 560px; }
.sign-rows > .label { width: 100%; }
.sign-row { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sign-row b { color: var(--ink); font-weight: 650; }
.sign-row .icon { color: var(--good); flex: none; }
.sign-row.never .icon { color: var(--bad); }
.sign-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.sign-note .icon { color: var(--good); flex: none; margin-top: 1px; }

/* the handoff diagram: a real handoff, looped (transform and opacity only), with Pouch holding the bag. His poses and
   the token's flight are written by handoff.mjs from its geometry (@keyframes hv-pz-*, hv-tok); the rest is here. */
.hv { position: relative; width: 100%; aspect-ratio: 520 / 344; }
.hv svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv .hv-grid { stroke: rgba(124, 150, 220, 0.07); stroke-width: 1; }
.hv .hv-path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.hv .hv-act { fill: none; stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.hv .hv-act.tok { stroke: var(--accent); }
.hv .hv-act.sol { stroke: var(--sol); }
.hv .hv-node circle.ring { fill: #0B1225; stroke: var(--line-3); stroke-width: 1.5; }
.hv .hv-amt { font: 600 13px var(--font-mono); letter-spacing: -0.01em; paint-order: stroke; stroke: #0B1225; stroke-width: 4px; stroke-linejoin: round; }
.hv .hv-amt.tok { fill: var(--accent); }
.hv .hv-amt.sol { fill: var(--sol); }
/* Pouch: one picture per pose in one frame, and the empty vault's front lip over the coin he holds */
.hv .hv-pz { opacity: 0; }
.hv .hv-pz.pz-empty, .hv .hv-pz.pz-lip { opacity: 1; }
[data-motion="on"] .hv .hv-pz.pz-empty, [data-motion="on"] .hv .hv-pz.pz-lip { animation: hv-pz-empty 10s linear infinite; }
[data-motion="on"] .hv .hv-pz.pz-catch { animation: hv-pz-catch 10s linear infinite; }
[data-motion="on"] .hv .hv-pz.pz-guard { animation: hv-pz-guard 10s linear infinite; }
[data-motion="on"] .hv .hv-pz.pz-give { animation: hv-pz-give 10s linear infinite; }
.hv-lab.pel b { color: var(--accent); }
[data-motion="on"] .hv .hv-act.a1 { animation: hv-a1 10s linear infinite; }
[data-motion="on"] .hv .hv-act.a2 { animation: hv-a2 10s linear infinite; }
[data-motion="on"] .hv .hv-act.a3 { animation: hv-a3 10s linear infinite; }
@keyframes hv-a1 { 0%, 6% { opacity: 0; } 9%, 22% { opacity: 0.85; } 28%, 100% { opacity: 0; } }
@keyframes hv-a2 { 0%, 33% { opacity: 0; } 36%, 48% { opacity: 0.85; } 56%, 100% { opacity: 0; } }
@keyframes hv-a3 { 0%, 63% { opacity: 0; } 65%, 80% { opacity: 0.85; } 92%, 100% { opacity: 0; } }
[data-motion="off"] .hv .hv-act.a3 { opacity: 0.6; }
/* the amounts ride the coins: the tokens as they leave the seller and as they fly to the buyer, the SOL as it moves */
[data-motion="on"] .hv .hv-amt.tok { animation: hv-amt-tok 10s linear infinite; }
[data-motion="on"] .hv .hv-amt.sol { animation: hv-amt-sol 10s linear infinite; }
@keyframes hv-amt-tok { 0%, 3% { opacity: 0; } 5%, 10% { opacity: 1; } 12%, 65% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hv-amt-sol { 0%, 31% { opacity: 0; } 34%, 45% { opacity: 1; } 49%, 65% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }
.hv .hv-node .glyph { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv .hv-coin { opacity: 0; }
.hv-lab { position: absolute; transform: translate(-50%, 0); display: grid; justify-items: center; gap: 2px; text-align: center; white-space: nowrap; pointer-events: none; }
.hv-lab b { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.hv-lab span { font: 500 10.5px var(--font-mono); color: var(--muted); letter-spacing: 0.02em; }
.hv-wrap { display: grid; gap: 6px; }
.hv-steps { display: grid; place-items: center; height: 30px; }
.hv-step { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(13, 11, 38, 0.94); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; opacity: 0; }
.hv-step b { color: var(--ink); font-weight: 650; }
.hv-step .n { font: 600 10.5px var(--font-mono); color: var(--accent); }
.hv-real { justify-self: end; display: inline-flex; align-items: center; gap: 7px; height: 18px; font: 500 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* one 10 s loop: list (token into the vault), pay (SOL to checkout), handoff (all three at once) */
[data-motion="on"] .hv .hv-coin.c-tok { animation: hv-tok 10s var(--ease) infinite; }
[data-motion="on"] .hv .hv-coin.c-sol { animation: hv-sol 10s var(--ease) infinite; }
[data-motion="on"] .hv .hv-coin.c-fee { animation: hv-fee 10s var(--ease) infinite; }
[data-motion="on"] .hv-step.s1 { animation: hv-s1 10s linear infinite; }
[data-motion="on"] .hv-step.s2 { animation: hv-s2 10s linear infinite; }
[data-motion="on"] .hv-step.s3 { animation: hv-s3 10s linear infinite; }
[data-motion="on"] .hv .hv-node.hold .pulse { animation: hv-pulse 10s ease-out infinite; }
[data-motion="on"] .hv .hv-node.buyer .pulse { animation: hv-pulse-b 10s ease-out infinite; }
[data-motion="on"] .hv .hv-node.seller .pulse { animation: hv-pulse-b 10s ease-out infinite; }
.hv .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hv .hv-node.seller .pulse { stroke: var(--sol); }
@keyframes hv-sol {
  0%, 28% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(0.6); }
  32% { opacity: 1; transform: translate(var(--bx), var(--by)) scale(1); }
  36% { transform: translate(var(--bx), var(--by)); }
  50%, 64% { opacity: 1; transform: translate(var(--kx), var(--ky)); }
  78% { transform: translate(var(--sx), var(--sy)); opacity: 1; }
  92% { transform: translate(var(--sx), var(--sy)); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)); opacity: 0; }
}
@keyframes hv-fee {
  0%, 63.9% { opacity: 0; transform: translate(var(--kx), var(--ky)) scale(0.5); }
  64% { opacity: 1; transform: translate(var(--kx), var(--ky)) scale(0.8); }
  78% { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(0.8); }
  92% { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(0.8); }
  100% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(0.8); }
}
@keyframes hv-s1 { 0% { opacity: 0; } 3%, 27% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes hv-s2 { 0%, 29% { opacity: 0; } 32%, 59% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes hv-s3 { 0%, 61% { opacity: 0; } 64%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hv-pulse { 0%, 22.9% { opacity: 0; transform: scale(1); } 23% { opacity: 0.9; transform: scale(1); } 33% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; } }
@keyframes hv-pulse-b { 0%, 76% { opacity: 0; transform: scale(1); } 77% { opacity: 0.9; transform: scale(1); } 87% { opacity: 0; transform: scale(1.8); } 100% { opacity: 0; } }
/* motion off: the finished handoff, still */
[data-motion="off"] .hv .hv-coin.c-tok { opacity: 1; transform: translate(var(--bx), var(--by)); }
[data-motion="off"] .hv .hv-coin.c-sol { opacity: 1; transform: translate(var(--sx), var(--sy)); }
[data-motion="off"] .hv .hv-coin.c-fee { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(0.8); }
[data-motion="off"] .hv-step.s3 { opacity: 1; }

/* pool exit vs Pouch: the desk's real-coin example (one at a time) and the ticket on offers and the list form */
.exm { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.exm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.exm-dots { display: flex; gap: 4px; }
.exm-dots button { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.exm-dots button::before { content: ''; width: 16px; height: 4px; border-radius: 2px; background: var(--line-3); }
.exm-dots button i { position: absolute; left: 3px; top: 9px; width: 16px; height: 4px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.exm-dots button[aria-selected="true"] i { transform: none; }
[data-motion="on"] .exm-dots button[aria-selected="true"] i { animation: exm-fill 5.2s linear forwards; }
@keyframes exm-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.exm-body { display: grid; gap: 12px; }
.exm-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; align-items: center; }
.exm-what { display: flex; align-items: center; gap: 12px; min-width: 0; }
.exm-what .tok { border-radius: 50%; flex: none; }
.exm-what b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.exm-col, .ex-col { display: grid; gap: 3px; align-content: start; min-width: 0; }
.ex-name { font: 500 10.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ex-big { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pool .ex-big { color: var(--bad); }
.pouch .ex-big { color: var(--good); }
.ex-line { font-size: 12.5px; color: var(--ink-2); }
.ex-bar { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(124, 150, 220, 0.12); overflow: hidden; }
.ex-fill { display: block; height: 100%; border-radius: 3px; transform-origin: left center; }
.ex-fill.pouch { background: var(--good); }
.ex-fill.pool { background: var(--bad); }
.exm-note { color: var(--muted); }
/* a new example slides in, and its bars grow to what each way pays (the motion shows the cut) */
[data-motion="on"] .exm-body.in .exm-row { animation: rise 420ms var(--ease) backwards; }
[data-motion="on"] .exm-body.in .ex-fill { animation: grow 900ms var(--ease) 120ms backwards; }
@keyframes grow { from { transform: scaleX(0); } }
.ex-ticket { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex-what { font-size: 14px; font-weight: 650; color: var(--ink); }
.ex-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ex-col { padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.ex-col.pool { border-color: rgba(255, 107, 122, 0.28); }
.ex-col.pouch { border-color: rgba(61, 214, 140, 0.28); }
.ex-col .ex-big { font-size: 21px; }
.ex-buy { font-size: 13px; color: var(--ink-2); }
.vault-art { display: inline-grid; width: 30px; height: 30px; margin: -4px 0; }
.vault-art .markimg { width: 30px; height: 30px; }

/* the stats strip */
.statbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.stat { display: grid; gap: 5px; align-content: start; padding: 16px 18px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stat-value .unit { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat .fine { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .ok { color: var(--good); }
.stat .flash { animation: none; }
[data-motion="on"] .stat-value.changed { animation: flash 900ms var(--ease); }
@keyframes flash { 0% { color: var(--accent); } 100% { color: var(--ink); } }

/* offers and the side column */
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.desk-col { display: grid; gap: 16px; min-width: 0; }
.board { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); min-width: 0; overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.board-head h2 { font-size: 16px; letter-spacing: -0.015em; display: inline-flex; align-items: center; gap: 10px; }
.board-head h2 .count { font: 500 11px var(--font-mono); color: var(--muted); padding: 2px 7px; border-radius: 5px; background: var(--surface-3); }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* the offers table */
.ot { display: grid; }
.ot-head, .ot-row { display: grid; grid-template-columns: minmax(150px, 2.1fr) minmax(104px, 1.2fr) minmax(120px, 1.4fr) minmax(76px, 0.85fr) minmax(86px, 0.95fr) minmax(96px, 1.05fr) 82px; align-items: center; gap: 12px; padding: 0 16px; }
/* the pool exit for what's left in an offer: red when the pool would take 5% or more */
.ot-exit { display: grid; justify-items: end; text-align: right; gap: 2px; min-width: 0; }
.ot-exit b { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ot-exit b.bad { color: var(--bad); }
.ot-exit b.warn { color: var(--warn); }
.ot-exit b.ok { color: var(--ink-2); }
.ot-exit span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.exit-phone { display: none; }
/* the desk's table sits beside the moves, so it leaves the price rule to the market page and the offer itself */
.desk .ot-head, .desk .ot-row { grid-template-columns: minmax(140px, 2fr) minmax(96px, 1.1fr) minmax(124px, 1.4fr) minmax(70px, 0.8fr) minmax(80px, 0.9fr) 76px; }
.desk .ot-rule, .desk .ot-head .label.l-rule { display: none; }
.ot-head { height: 36px; border-bottom: 1px solid var(--line); }
.ot-head .label:nth-child(n + 3) { text-align: right; }
.ot-row { min-height: 62px; border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.ot-row:last-child { border-bottom: 0; }
.ot-row:hover { background: var(--surface-2); }
.ot-tok { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ot-tok .tok { border-radius: 50%; flex: none; }
.ot-id { display: grid; min-width: 0; }
.ot-id b { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.ot-id span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-left { display: grid; gap: 6px; min-width: 0; }
.ot-left b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ot-price, .ot-vs, .ot-rule { display: grid; justify-items: end; text-align: right; gap: 2px; min-width: 0; }
.ot-price b { font-size: 14px; font-weight: 650; }
.ot-price span, .ot-rule span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ot-rule b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.vs { font: 600 12.5px var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot-price .vs { display: none; }
.vs.under { color: var(--good); }
.vs.over { color: var(--bad); }
.vs.at { color: var(--ink-2); }
.ot-act { display: flex; justify-content: flex-end; }
.ot-act .btn { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
.ot-row:hover .ot-act .btn { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.ot-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.ot-empty .art .markimg { width: 120px; height: 120px; margin-bottom: -4px; }
.ot-empty h3 { font-size: 16px; }
.ot-empty p { color: var(--muted); max-width: 48ch; font-size: 13.5px; }
.ot-last { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); }
.ot-sk .sk { height: 14px; }
.fill { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.fill span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }

/* the feed of every move */
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed-row:last-child { border-bottom: 0; }
.feed-ico { position: relative; display: inline-flex; flex: none; }
.feed-ico .tok { border-radius: 50%; }
.feed-kind { position: absolute; right: -4px; bottom: -3px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface); color: var(--ink-2); }
.feed-kind.k-settle { background: var(--good); color: #062014; }
.feed-kind.k-list { background: var(--accent); color: var(--on-accent); }
.feed-kind.k-return, .feed-kind.k-refund { background: var(--sky); color: #071830; }
.feed-text { color: var(--ink-2); line-height: 1.4; overflow-wrap: anywhere; }
.feed-text b { color: var(--ink); }
.feed-meta { display: grid; justify-items: end; gap: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed-meta .sig { display: inline-flex; align-items: center; gap: 4px; }
.tx { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px var(--font-mono); color: var(--ink-2); }
.tx:hover { color: var(--accent); }
.feed .fine { padding: 14px 16px; }
.house-mini { display: grid; gap: 12px; padding: 14px 16px; }
.held-list { display: grid; gap: 8px; }
.held-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.held-row .tok { border-radius: 50%; }
.held-row .mono { color: var(--ink); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.check-line .ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); flex: none; }
.check-line .ok-dot.wait { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-wash); }
.check-line .ok-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-wash); }

/* the three facts under the desk, each a link into Docs */
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-fast), background var(--t-fast); }
.fact:hover { border-color: var(--line-3); background: var(--surface-2); }
.fact .fact-n { font: 600 11px var(--font-mono); color: var(--accent); letter-spacing: 0.06em; }
.fact h3 { font-size: 15.5px; letter-spacing: -0.015em; }
.fact p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* early access (only while Pouch lets wallets in a wave at a time, and in the demo as the list for the launch) */
.early-card { display: grid; gap: 12px; padding: 16px; }
.early-card h2 { font-size: 16px; }
.early-card p.lede { font-size: 13.5px; }
.early-points { font-size: 13px; }
.early-form { display: grid; gap: 12px; }
.early-done { display: grid; gap: 10px; justify-items: start; }
.early-badge { display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--accent); font: 600 18px var(--font-mono); }
.early-badge.in { background: var(--good-wash); border-color: rgba(61, 214, 140, 0.35); color: var(--good); }
.big-line { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.big-line b { color: var(--ink); }
.early-follow a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.early-action { display: grid; gap: 8px; }
.early-btn { border-color: var(--accent-line); color: var(--accent); background: var(--accent-wash); }
.early-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.early-banner { align-items: flex-start; }
.early-another { justify-self: start; font-size: 12.5px; }

/* ---------- the offer as a card (the market grid, the listing form's preview) ---------- */
.grid-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); min-width: 0; }
a.ticket:hover { border-color: var(--line-3); background: var(--surface-2); }
.ticket-main { display: grid; gap: 12px; padding: 16px; min-width: 0; }
.ticket-tok { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ticket-tok .tok { border-radius: 50%; flex: none; }
.ticket-id { min-width: 0; }
.ticket-sym { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; }
.ticket-name { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-amount { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ticket-amount small { font-size: 12px; color: var(--muted); font-weight: 500; }
.ticket-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.ticket-stub { display: grid; align-content: start; justify-items: end; gap: 6px; padding: 16px; min-width: 132px; border-left: 1px dashed var(--line-2); text-align: right; }
.ticket-price { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; display: grid; justify-items: end; }
.ticket-price small { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.held { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 11.5px; color: var(--muted); }
.ticket.skeleton { min-height: 150px; }
.ticket.preview { border-style: dashed; }

/* ---------- market ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.controls .search { position: relative; flex: 1; min-width: 220px; display: flex; align-items: center; }
.controls .search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.controls .search .input { padding-left: 36px; height: 38px; font-size: 14px; }

/* ---------- one offer ---------- */
.offer-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.offer-head .tok { border-radius: 50%; }
.offer-id { display: grid; gap: 8px; }
.offer-id h1 { font-size: clamp(26px, 3vw, 34px); }
.offer-mint { margin-left: auto; align-self: flex-start; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.big-price { font-size: 34px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.big-price small { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 6px -18px -18px; }
.tile { display: grid; gap: 4px; padding: 14px 18px; min-width: 0; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile .num { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-box { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 14px; }
.buy-box .panel { gap: 14px; }
.costs { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 13.5px; }
.costs dt { color: var(--ink-2); }
.costs dd { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.costs .total { font-weight: 700; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.costs dd.total { font-size: 14px; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; }
.chart.empty { display: grid; place-items: center; min-height: 160px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 20px; }
.c-market { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.c-offer { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.c-area { fill: var(--accent); fill-opacity: 0.07; stroke: none; }
.c-floor { stroke: var(--bad); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: 0.7; }
.c-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid; }
.legend .l-market { border-color: var(--muted); }
.legend .l-offer { border-color: var(--accent); }
.legend .l-floor { border-color: var(--bad); border-top-style: dashed; }

/* ---------- dashboard ---------- */
.desk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.desk-tiles .tile { padding: 16px 18px; }
.desk-tiles .tile .num { font-size: 22px; letter-spacing: -0.025em; }
.rows { display: grid; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.orow { display: grid; grid-template-columns: minmax(170px, 1.6fr) minmax(150px, 1.3fr) minmax(120px, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.orow:last-child { border-bottom: 0; }
.orow .grow { display: grid; gap: 5px; }
.tok-line { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tok-line .tok { border-radius: 50%; }
.tok-line .grow { display: grid; gap: 1px; }
.acts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
/* the list form as a swap: You list over You get, the price under them, the button at the foot */
.swap { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.swap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.swap-top h2 { font-size: 17px; letter-spacing: -0.015em; }
.swap-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color var(--t-fast); min-width: 0; }
.swap-box:focus-within { border-color: var(--accent-line); }
.swap-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.swap-label > span:last-child { letter-spacing: 0.02em; text-transform: none; }
.swap-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.swap-in { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; background: none; color: var(--ink); font: 700 30px var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.swap-in:focus { outline: none; }
.swap-in::placeholder { color: var(--faint); }
.swap-tok { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 15px; white-space: nowrap; flex: none; transition: border-color var(--t-fast); }
.swap-tok:hover { border-color: var(--line-3); }
.swap-tok .tok { border-radius: 50%; }
.swap-tok .icon { color: var(--muted); transform: rotate(90deg); }
.swap-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); min-height: 28px; }
.swap-picker { margin-top: 4px; }
.picker[hidden] { display: none; }
.swap-mid { justify-self: center; display: grid; margin: -19px 0; position: relative; z-index: 1; }
.swap-mid span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 4px solid var(--surface); background: var(--surface-3); color: var(--ink-2); }
.swap-mid .icon { transform: rotate(90deg); }
.swap-get { flex: 1; min-width: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 46px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap-unit { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; font-weight: 650; flex: none; }
.swap-price { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.swap-fields { display: grid; gap: 14px; }
.swap-more { padding: 2px 4px; }
.swap-more .swap-fields { margin-top: 12px; }
.swap-go { display: grid; gap: 10px; }
.list-grid > aside.side { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 12px; }
.form-step { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px; }
.step-title { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15.5px; }
.step-title .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-3); font: 600 12px var(--font-mono); color: var(--ink-2); }
.step-title .n.ok { background: var(--good); border-color: transparent; color: #062014; }
.picker { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); text-align: left; width: 100%; transition: border-color var(--t-fast), background var(--t-fast); }
.pick .tok { border-radius: 50%; }
.pick:hover:not([disabled]) { border-color: var(--line-3); }
.pick[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-wash); }
.pick[disabled] { cursor: not-allowed; }
.pick[disabled] > :not(.grow) { opacity: 0.55; }
.pick .grow { display: grid; gap: 1px; }
.pick .why { font-size: 12px; font-weight: 600; color: var(--warn); }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-card { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); text-align: left; transition: border-color var(--t-fast), background var(--t-fast); }
.mode-card:hover { border-color: var(--line-3); }
.mode-card b { font-weight: 700; font-size: 14px; }
.mode-card span { font-size: 12.5px; color: var(--muted); }
.mode-card[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-wash); }

/* ---------- docs (how it works) ---------- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 2px; }
.docs-toc a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 13.5px; font-weight: 550; border-left: 2px solid transparent; }
.docs-toc a:hover { color: var(--ink); background: var(--surface); }
.docs-body { display: grid; gap: 0; min-width: 0; }
.docs-body > section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.docs-body > section:first-child { padding-top: 4px; }
.docs-body > section:last-child { border-bottom: 0; }
.docs-body h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 8px; }
.docs-body h3 { font-size: 15.5px; }
.docs-body p { color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.docs-body p + p { margin-top: 10px; }
.docs-body .label { display: block; margin-bottom: 8px; }
.how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.how-step { padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.how-step .body { display: grid; gap: 8px; }
.how-step h2 { font-size: 16px; margin: 0; }
.how-step p.ink2 { font-size: 13.5px; line-height: 1.55; }
.step-n { font: 600 11px var(--font-mono); color: var(--accent); letter-spacing: 0.06em; }
.signs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.signs-grid .panel h3 { font-size: 15px; }
.signs-grid .panel p { font-size: 13.5px; }
.faq { display: grid; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; cursor: pointer; font-weight: 650; font-size: 14.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 16px var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.prose { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 16px; }
.prose li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-top: 14px; }
.calc-in, .calc-out { display: grid; gap: 16px; align-content: start; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-val { font: 600 13px var(--font-mono); color: var(--ink); }
.range { width: 100%; accent-color: var(--accent); }
.vs-row { display: grid; gap: 7px; }
.vs-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.vs-name { color: var(--ink-2); }
.vs-get { font: 600 14px var(--font-mono); }
.vs-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.vs-bar span { display: block; height: 100%; border-radius: 4px; background: var(--muted); }
.vs-row.Pouch .vs-bar span { background: var(--accent); }
.vs-lost { font-size: 12px; }
.vs-save { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.vs-save b { color: var(--good); }

/* the walk-through diagram (Docs): seller, house wallet, checkout, buyer, fees; the coins move on the step you pick */
.walk { display: grid; gap: 12px; margin-top: 14px; }
.walk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.walk-step { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; overflow: hidden; transition: border-color var(--t-fast), background var(--t-fast); }
.walk-step:hover { border-color: var(--line-3); }
.walk-step[aria-selected="true"] { border-color: var(--accent-line); background: var(--surface-2); }
.walk-n { display: flex; gap: 8px; font: 600 11px var(--font-mono); color: var(--accent); letter-spacing: 0.06em; }
.walk-n span { color: var(--muted); }
.walk-step h3 { font-size: 15px; }
.walk-step p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.walk-step p.signs { display: flex; gap: 7px; align-items: flex-start; color: var(--ink-2); }
.walk-step p.signs .icon { color: var(--accent); margin-top: 1px; }
.walk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.walk-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.walk-stage { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(600px 260px at 50% 40%, rgba(30, 54, 120, 0.35), transparent 70%), var(--surface); overflow: hidden; }
.walk-pics { display: none; }
.walk-diagram { position: relative; padding: 18px; }
.walk-map { position: relative; width: 100%; max-width: 720px; margin: 0 auto; aspect-ratio: 640 / 256; }
.walk-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.walk-svg .wl { fill: none; stroke: var(--line-3); stroke-width: 1.5; stroke-dasharray: 3 6; }
.walk-svg .wn-ring { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.walk-svg .wn-dot { fill: #0B1225; stroke: var(--line-3); stroke-width: 1.5; }
.walk-svg .wn-house .wn-dot { stroke: var(--accent-line); }
.walk-svg .wripple { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.walk-svg .wripple.tok { stroke: var(--accent); }
.walk-svg .wripple.sol { stroke: var(--sol); }
.walk[data-phase="1"] .walk-svg .l-list, .walk[data-phase="2"] .walk-svg .l-buy, .walk[data-phase="3"] .walk-svg :is(.l-tok, .l-sol, .l-fee) { stroke: var(--accent-line); stroke-dasharray: none; }
.wlab { position: absolute; transform: translate(-50%, 0); font: 500 11px var(--font-mono); color: var(--muted); white-space: nowrap; letter-spacing: 0.02em; }
.walk-badge { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(13, 11, 38, 0.94); font-size: 12px; color: var(--ink); white-space: nowrap; }
[data-motion="on"] .walk.auto .walk-badge { animation: badge-in 420ms var(--ease) both; }
@keyframes badge-in { from { opacity: 0; transform: translate(-50%, -4px); } }

/* ---------- transparency ---------- */
.tp-top { margin-bottom: 4px; }
.tp-table { display: grid; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.tp-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr) 120px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tp-row:last-child { border-bottom: 0; }
.tp-head { padding-top: 10px; padding-bottom: 10px; }
.tp-tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-tok .tok { border-radius: 50%; }
.tp-sym { font-weight: 700; }
.tp-cell { display: grid; gap: 2px; }
.tp-cl { display: none; }
.tp-num { font: 500 13px var(--font-mono); }
.tp-state { justify-self: end; }
.tp-feed { padding: 0; }
.tp-steps { display: grid; gap: 14px; }
.tp-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tp-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-3); font: 600 12px var(--font-mono); color: var(--accent); flex: none; }
.tp-steps p { font-size: 13.5px; margin-top: 3px; }

/* ---------- terms, privacy, risks ---------- */
.legal { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--top-h) + 20px); display: grid; gap: 6px; justify-items: start; }
.legal-toc .chip { height: auto; min-height: 26px; padding: 4px 10px; white-space: normal; }
.legal-body { display: grid; gap: 0; min-width: 0; max-width: 760px; }
.legal-sec { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.legal-sec:first-child { padding-top: 0; }
.legal-sec h2 { font-size: 19px; }
.legal-sec p, .legal-list li { color: var(--ink-2); line-height: 1.65; }
.legal-sec a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.legal-list { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }

/* ---------- the wallet: picker, menu ---------- */
.wallet-box { position: relative; }
.wallet-btn { gap: 8px; }
.wallet-btn.on { background: var(--surface); }
.wallet-btn.on .muted { font-size: 12px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; display: grid; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 550; text-align: left; }
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.wallet-list { display: grid; gap: 8px; }
.wallet-row { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); text-align: left; transition: border-color var(--t-fast), background var(--t-fast); }
.wallet-row:hover:not([disabled]) { border-color: var(--accent-line); background: var(--surface-2); }
.wallet-row img { border-radius: 7px; }
.wallet-name { flex: 1; font-weight: 650; }
.wallet-tag { font: 500 11px var(--font-mono); color: var(--muted); }
.wallet-help { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--bg-2); }

/* ---------- one modal ---------- */
.modal-veil { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 14, 0.72); animation: fade var(--t) var(--ease); }
.modal-panel { width: min(470px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); padding: 20px; animation: pop var(--t) var(--ease); overflow-wrap: anywhere; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { font-size: 18px; }
.modal-panel.locked .modal-x { visibility: hidden; }
.modal-body { display: grid; gap: 14px; }
.modal-body .row { justify-content: flex-end; }
.modal-art { display: grid; place-items: center; padding: 6px 0; }
.modal-art .markimg { width: 132px; height: 132px; margin: -8px 0 -10px; }
.countdown { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--sky-wash); color: var(--sky); font: 600 12px var(--font-mono); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.985); } }
.flow { display: grid; gap: 10px; margin: 4px 0 6px; }
.flow li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14.5px; }
.flow li.now, .flow li.done { color: var(--ink); }
.flow li.now { font-weight: 650; }
.flow li.bad { color: var(--bad); }
.flow-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-3); font: 600 12px var(--font-mono); flex: none; }
.flow li.now .flow-mark { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
[data-motion="on"] .flow li.now .flow-mark { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.flow li.done .flow-mark { background: var(--good); color: #062014; border-color: transparent; }
.flow li.bad .flow-mark { border-color: var(--bad); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100% - 32px); }
.toast { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop var(--t) var(--ease); }
.toast.bad { background: #3A1520; border-color: rgba(255, 107, 122, 0.4); }

/* ---------- motion: page in, reveal, and the mark's life on real desk events ---------- */
main.enter { animation: page-in var(--t) var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }
[data-motion="on"] .reveal { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
[data-motion="on"] .reveal.below:not(.in) { opacity: 0; transform: translateY(14px); }
[data-motion="on"] .hero-copy > * { animation: rise 640ms var(--ease) backwards; }
[data-motion="on"] .hero-copy > :nth-child(2) { animation-delay: 60ms; }
[data-motion="on"] .hero-copy > :nth-child(3) { animation-delay: 120ms; }
[data-motion="on"] .hero-copy > :nth-child(4) { animation-delay: 180ms; }
[data-motion="on"] .hero-copy > :nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
[data-motion="on"] .ot-row.new { animation: row-in 900ms var(--ease); }
@keyframes row-in { 0% { background: var(--accent-wash); } 100% { background: transparent; } }
[data-motion="on"] .feed-row.new { animation: row-in 900ms var(--ease); }
.brand .logo.pouch-gulp svg { animation: pouch-gulp 620ms var(--ease); }
.brand .logo.pouch-hop svg { animation: pouch-hop 720ms var(--ease); }
@keyframes pouch-gulp { 0% { transform: none; } 45% { transform: scale(1.08, 0.92); } 72% { transform: scale(0.97, 1.04); } 100% { transform: none; } }
@keyframes pouch-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-4px) rotate(-6deg); } 72% { transform: translateY(0) rotate(2deg); } }
.pouch-drop, .pouch-spark { position: absolute; pointer-events: none; z-index: 2; }
.pouch-drop { left: 15px; top: -14px; width: 10px; height: 10px; animation: pouch-drop 720ms cubic-bezier(0.55, 0, 0.85, 0.35) forwards; }
@keyframes pouch-drop { 0% { opacity: 0; transform: translateY(-6px); } 20% { opacity: 1; } 78% { opacity: 1; transform: translateY(24px) scale(0.9); } 100% { opacity: 0; transform: translateY(26px) scale(0.55); } }
.pouch-spark { left: 22px; top: -8px; width: 13px; height: 13px; animation: pouch-spark 900ms var(--ease) forwards; }
@keyframes pouch-spark { 0% { opacity: 0; transform: scale(0.3) rotate(0deg); } 30% { opacity: 1; transform: scale(1.15) rotate(20deg); } 100% { opacity: 0; transform: translateY(-10px) scale(0.8) rotate(45deg); } }
[data-motion="off"] .pouch-drop, [data-motion="off"] .pouch-spark { display: none; }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* ---------- smaller screens ---------- */
@media (max-width: 1240px) {
  .desk-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .ot-head, .ot-row { grid-template-columns: minmax(140px, 2fr) minmax(96px, 1.1fr) minmax(110px, 1.3fr) minmax(72px, 0.8fr) minmax(80px, 0.9fr) 76px; }
  .ot-rule { display: none; }
  .ot-head .label.l-rule { display: none; }
}
@media (max-width: 1060px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100%; transform: translateX(-102%); transition: transform var(--t) var(--ease); box-shadow: var(--shadow-lg); z-index: 50; }
  body.drawer .sidebar { transform: none; }
  body.drawer .veil { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(3, 6, 14, 0.6); }
  .top .brand { display: inline-flex; }
  .top .brand .logo svg { width: 28px; height: 28px; }
  .top .brand .logo-word { font-size: 19px; }
  .top .menu-btn { display: inline-grid; }
  .top-search { display: none; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .desk-col.side-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .offer-grid, .list-grid { grid-template-columns: minmax(0, 1fr); }
  .buy-box, .list-grid > aside.side { position: static; }
  .docs, .legal { grid-template-columns: minmax(0, 1fr); }
  .docs-toc, .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-toc a { border: 1px solid var(--line); padding: 4px 10px; font-size: 12.5px; }
}
@media (max-width: 860px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'viz' 'sign'; grid-template-rows: auto; }
  .hero-copy { padding: 26px 22px 6px; }
  .hero-viz { padding: 4px 14px 6px; min-height: 0; }
  .hero-sign { padding: 6px 22px 22px; }
  .exm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .exm-what { grid-column: 1 / -1; }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --top-h: 56px; --strip-h: 28px; }
  body { font-size: 14px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  main { padding: 16px 0 40px; }
  .strip { font-size: 11px; justify-content: flex-start; }
  .strip .strip-more { display: none; }
  .top { gap: 8px; padding: 0 12px; }
  .top-actions { gap: 6px; }
  .top-cta { display: none; }
  .motion-btn { padding: 0 8px; }
  .motion-word { display: none; }
  .top-tools .sound-btn { display: none; }
  .wallet-btn { height: 36px; padding: 0 11px; font-size: 13px; }
  .wallet-btn.on .muted { display: none; }
  .hero-title { font-size: 31px; max-width: 16ch; }
  .hero-copy { gap: 12px; padding: 20px 18px 4px; }
  .hero-copy .lede { font-size: 14.5px; }
  .hero-copy .ctas .btn { flex: 1; }
  .hero-viz { padding: 0 6px 4px; }
  .hero-sign { padding: 4px 18px 18px; }
  .sign-rows { display: grid; gap: 7px; }
  .hero-facts { font-size: 12px; gap: 4px 12px; }
  .strip .strip-phone { display: inline; }
  /* on a phone the address gets the whole strip: "CA", the whole address, Copy (fits 360 px; smaller below 350) */
  .strip.has-ca { padding: 0 10px; justify-content: center; }
  .strip.has-ca > :not(.strip-ca) { display: none; }
  .strip .strip-ca { gap: 6px; }
  .strip .strip-ca .ca-long { display: none; }
  .strip .strip-ca .ca-short { display: inline; }
  .strip .strip-ca code { font-size: 10px; letter-spacing: 0; }
  .strip .strip-copy { padding: 0 6px; height: 19px; }
  .hv-lab b { font-size: 11px; }
  .hv-lab span { font-size: 9.5px; }
  .hv-lab.pel span { display: none; }
  .hv-step { font-size: 11.5px; padding: 0 9px; height: 28px; }
  .hv .hv-amt { display: none; }
  .hv-real { display: none; }
  .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 11px 14px; gap: 3px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 19px; }
  .desk { gap: 12px; }
  .board-head { padding: 12px 14px; }
  .board-head .seg { width: 100%; }
  .board-head .seg button { flex: 1; }
  .ot-head { display: none; }
  .ot-row, .desk .ot-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'tok price' 'left act'; gap: 8px 12px; padding: 12px 14px; }
  .ot-tok { grid-area: tok; }
  .ot-price { grid-area: price; }
  .ot-left { grid-area: left; grid-template-columns: auto minmax(40px, 90px) auto; align-items: center; gap: 8px; }
  .ot-left .fill { width: 100%; }
  .ot-vs, .ot-exit { display: none; }
  .exit-phone { display: inline; font: 500 11px var(--font-mono); color: var(--muted); white-space: nowrap; }
  .exit-phone.bad { color: var(--bad); }
  .exit-phone.warn { color: var(--warn); }
  .ot-act { grid-area: act; }
  .ot-price .vs { display: inline; font-size: 11.5px; }
  .ot-price .usd { display: none; }
  .desk-col.side-col { grid-template-columns: minmax(0, 1fr); }
  .grid-tickets { grid-template-columns: minmax(0, 1fr); }
  .ticket-stub { min-width: 118px; padding: 14px; }
  .ticket-main { padding: 14px; }
  .tiles, .desk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .orow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .acts { justify-content: flex-start; }
  .mode-cards, .how-steps, .signs-grid { grid-template-columns: minmax(0, 1fr); }
  .walk-steps { grid-template-columns: minmax(0, 1fr); }
  .tp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tp-head { display: none; }
  .tp-cell { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .tp-cl { display: block; }
  .tp-state { grid-row: 1; grid-column: 2; }
  .facts { grid-template-columns: 110px 1fr; }
  .big-price { font-size: 28px; }
  /* the offer on a phone: the price, then the buy box, then the chart and the details */
  .offer-grid > .stack { display: contents; }
  .offer-grid > .stack > .panel:first-child { order: 1; }
  .offer-grid > .buy-box { order: 2; }
  .offer-grid > .stack > .panel:nth-child(n + 2) { order: 3; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(13, 11, 38, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0 4px; border-radius: 8px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
  .tabbar a[aria-current] { color: var(--ink); }
  .tabbar a[aria-current] .icon { color: var(--accent); }
  .foot { padding-bottom: 30px; }
  .foot .foot-switches { margin-left: 0; }
}
@media (max-width: 380px) {
  .top .brand .logo-word { display: none; }
}

a[href*="trypouch"] { display: none !important; }
