/* Homer: structure and components, reading only tokens.css. Light, calm surfaces for reading and trading; the brand's
   blue, waves and gold coin for the brand moments. Sections follow the page order in DESIGN.md.
   Performance: motion is transform and opacity only; no blur, no blend modes, nothing animates off screen. */

/* ---------- reset ---------- */
*, *::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; min-height: 100svh; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.on-blue :focus-visible { outline-color: #FFFFFF; }
::selection { background: #FBE3A6; color: #0B1B3F; }

/* ---------- type ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 66px); }
h1.hero-title { font-size: clamp(42px, 4.7vw, 70px); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.7vw, 48px); }
h3, .h3 { font: 700 19px/1.3 var(--font-text); letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.lede { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.lede b, .lede strong { color: var(--ink); font-weight: 700; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--muted); }
.mono, .num, .label, .chip { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { letter-spacing: -0.01em; }
.label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 9px; font: 600 12.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.on-blue .kicker { color: #FFFFFF; background: var(--pill); padding: 7px 14px 7px 12px; border-radius: var(--r-pill); letter-spacing: 0.08em; }
.on-blue .kicker-dot { background: var(--gold); box-shadow: none; }
.up { color: var(--good); }
.down { color: var(--bad); }
.warn { color: var(--warn); }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding-top: clamp(72px, 9vw, 128px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.grid-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
main { padding-bottom: 120px; min-height: 60svh; }
main.enter { animation: page-in var(--t) var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* small motion on scroll: fade up once (ui.mjs reveal); with motion off, everything is simply there */
[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(18px); }

/* ---------- header ---------- */
#top { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.top-bar { height: var(--top-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; border-radius: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 38px; height: 38px; border-radius: 11px; }
.logo-word { font: 800 26px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); padding-bottom: 2px; }
.logo.lg img { width: 46px; height: 46px; border-radius: 13px; }
.logo.lg .logo-word { font-size: 32px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 15px; font-weight: 600; transition: color var(--t-fast), background var(--t-fast); }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current] { color: var(--accent); background: var(--accent-wash); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-actions > .btn, .top-actions .wallet-btn { height: 44px; }
.brand-box { display: flex; align-items: center; gap: 10px; flex: none; }
.demo-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--warn-wash); color: var(--warn); font: 700 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: help; }
/* the tools: Motion, sound and X, one quiet group */
.top-tools { display: flex; align-items: center; gap: 2px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.top-tools .icon-btn { width: 36px; height: 36px; color: var(--ink-2); }
.motion-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 9px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font: 600 13.5px var(--font-text); cursor: pointer; }
.motion-btn:hover { color: var(--ink); background: var(--bg-2); }
.motion-track { position: relative; width: 28px; height: 16px; border-radius: var(--r-pill); background: var(--line-3); transition: background var(--t-fast); }
.motion-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(10, 18, 46, 0.3); transition: transform var(--t-fast) var(--ease); }
.motion-btn[aria-pressed="true"] .motion-track { background: var(--accent); }
.motion-btn[aria-pressed="true"] .motion-knob { transform: translateX(12px); }
.tabbar { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.btn:hover { border-color: var(--line-3); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.glass { background: var(--pill, var(--surface)); color: var(--ink); border-color: var(--line-2); }
.btn.glass:hover { background: rgba(10, 18, 46, 0.5); border-color: var(--line-3); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-wash); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); background: var(--bg-2); }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.link:hover { color: var(--ink); }
.link-arrow { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon { display: inline-flex; }

/* ---------- chips, segmented, banners ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-2); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
button.chip { cursor: pointer; }
.chip.sky { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-wash); }
.chip.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); background: var(--good-wash); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: var(--bad-wash); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-wash); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.seg button { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 600; transition: background var(--t-fast), color var(--t-fast); }
.seg button:hover { color: var(--ink); background: var(--bg-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { height: 30px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 12.5px var(--font-mono); cursor: pointer; }
.quick button:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.banner.good { border-color: color-mix(in srgb, var(--good) 35%, transparent); background: var(--good-wash); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-wash); }
.banner .otter { width: 72px; height: auto; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; box-shadow: 0 0 0 3px var(--good-wash); }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 18px; }
.field-label { display: flex; justify-content: space-between; gap: 10px; font-weight: 650; font-size: 14.5px; }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[disabled] { background: var(--bg-2); }
.affix { display: flex; align-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.affix .input { border: 0; background: none; box-shadow: none; }
.affix .unit { padding: 0 14px; color: var(--muted); font: 500 14px var(--font-mono); white-space: nowrap; }
.problem { color: var(--bad); font-size: 13.5px; font-weight: 500; }
.problem:empty { display: none; }
.hint { font-size: 13px; color: var(--muted); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
details.more-opts summary { cursor: pointer; color: var(--ink-2); font-weight: 650; list-style: none; display: 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: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 14px var(--font-mono); }
details.more-opts[open] summary::before { content: '-'; }

/* ---------- token avatar ---------- */
.tok { flex: none; border-radius: 50%; object-fit: cover; background: var(--bg-2); }
svg.tok { overflow: visible; }

/* ---------- the ticket: an offer. Amount on the left, price on the stub, a tear line between ---------- */
.ticket { position: relative; display: grid; grid-template-columns: var(--tear) 1fr; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); overflow: hidden;
  --notch: 11px; --tear: 57%;
  -webkit-mask: radial-gradient(circle var(--notch) at var(--tear) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--tear) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at var(--tear) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--tear) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
a.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.ticket::after { content: ''; position: absolute; top: 16px; bottom: 16px; left: var(--tear); border-left: 2px dashed var(--line-2); }
.ticket-main { padding: 18px 20px; display: grid; gap: 12px; min-width: 0; }
.ticket-stub { padding: 18px 14px 18px 20px; display: grid; gap: 6px; align-content: center; justify-items: start; min-width: 0; background: var(--surface-2); }
.ticket-stub .fine { font-size: 12.5px; white-space: nowrap; }
.ticket-stub .held { white-space: nowrap; font-size: 11.5px; }
.ticket-tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ticket-id { min-width: 0; }
.ticket-sym { font: 800 17px/1.2 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-amount { font: 600 22px/1.1 var(--font-mono); letter-spacing: -0.02em; }
.ticket-amount small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.ticket-price { font: 600 17px/1.15 var(--font-mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ticket-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 3px; white-space: nowrap; }
.ticket-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.held { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font-mono); color: var(--accent); }
.held svg { width: 16px; height: 16px; }
.fill { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.fill span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #3B5BB0); }
.ticket.preview { box-shadow: var(--shadow-sm); }
.ticket.skeleton { min-height: 154px; }
.sk { border-radius: 8px; background: linear-gradient(90deg, var(--bg-2), var(--surface-2), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- decor: dots, ripples, waves ---------- */
.dots { position: absolute; top: 22px; left: 22px; width: 200px; height: 150px; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 2.2px, transparent 2.8px) 0 0 / 24px 24px; -webkit-mask: linear-gradient(135deg, #000 30%, transparent 75%); mask: linear-gradient(135deg, #000 30%, transparent 75%); }
.waves { display: block; width: 100%; height: 100%; }
.waves.flip { transform: rotate(180deg); }
.ripples { width: 100%; height: 100%; overflow: visible; }

/* ---------- home: hero ---------- */
/* the words over Homer's sea (css/sea.css, js/sea.mjs), then the numbers and a live offer on the front band's navy */
.hero { position: relative; isolation: isolate; background: var(--blue); overflow: hidden; }
[data-motion="off"] .walk-loop { display: none; }
.hero-top { position: relative; }
/* the headline block sits in the sky, above the waves (which start 34% up from the bottom on wide screens) */
.hero-in { position: relative; z-index: 1; min-height: clamp(600px, calc(100svh - var(--top-h) - 150px), 860px); display: grid; align-content: start; padding: clamp(56px, 8vh, 104px) 0 clamp(170px, 24vh, 240px); }
.hero-copy { display: grid; justify-items: start; gap: 20px; max-width: 640px; }
.hero-copy .lede { max-width: 32em; }
@media (min-width: 861px) { h1.hero-title { white-space: nowrap; } }
.hero .lede { font-weight: 500; color: #FFFFFF; }
.hero .lede b { color: #FFFFFF; font-weight: 800; }
.hero-copy .ctas { margin-top: 6px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; }
.proof span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: var(--r-pill); background: var(--pill); font: 600 13px var(--font-text); color: #FFFFFF; }
.proof .icon { color: var(--gold); flex: none; }
/* the front wave's navy: the desk's numbers (left) and a live offer (right), labels on one line, cards one height */
.hero-base { position: relative; background: #0F2461; padding-top: 4px; }
.hero-base-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px 40px; align-items: stretch; }
.hero-desk, .hero-live { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.hero-base-in > .hero-proof { grid-column: 1 / -1; }
.hero-desk > .label, .hero-live > .label { color: rgba(255, 255, 255, 0.78); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding: 22px 0; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.hero-stats .stat { padding: 0 26px; }
.hero-stats .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat { display: grid; gap: 3px; }
.stat-value { font: 600 26px/1.1 var(--font-mono); letter-spacing: -0.02em; }
.hero-stats .label, .hero-stats .fine { color: rgba(255, 255, 255, 0.78); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .icon { color: var(--gold); }
.hero-ticket .ticket { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55); }
.hero-edge { height: clamp(34px, 4.5vw, 64px); padding-top: 26px; box-sizing: content-box; background: #0F2461; }
.hero-edge .waves, .page-hero .hero-wave .waves, .navy-edge .waves, .foot-wave .waves { height: 100%; }

/* ---------- page heads (every page but home) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(70% 120% at 92% 0%, #2A4386 0%, rgba(42, 67, 134, 0) 60%), var(--blue-field); }
.page-ripples { position: absolute; z-index: -1; right: -120px; top: -150px; width: 520px; height: 520px; pointer-events: none; }
.page-hero-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding: clamp(40px, 5.5vw, 72px) 0 clamp(18px, 2vw, 26px); }
.page-hero-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.page-hero .lede { color: #FFFFFF; font-weight: 500; }
.page-hero .lede b { color: #FFFFFF; }
.page-hero-aside { justify-self: end; }
.page-hero-aside .otter { width: clamp(150px, 16vw, 230px); height: auto; }
.page-hero .hero-wave { height: clamp(40px, 5vw, 72px); }
.page-hero .chip { background: #FFFFFF; color: #0B1B3F; border-color: transparent; }
.page-hero .chip.sky { color: var(--accent); }
.page-hero .chip.warn { background: var(--warn-wash); color: var(--warn); }
.page-hero .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--pill); font: 500 13px var(--font-mono); color: #FFFFFF; }
.pull-up { margin-top: clamp(-40px, -3vw, -20px); position: relative; }

/* ---------- home: the walk-through ---------- */
.walk { display: grid; grid-template-columns: minmax(300px, 0.82fr) 1.18fr; gap: 20px; align-items: start; }
.walk-steps { display: grid; gap: 10px; }
.walk-step { position: relative; overflow: hidden; display: grid; gap: 8px; text-align: left; padding: 18px 20px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color var(--t), box-shadow var(--t), opacity var(--t); }
.walk-step:hover { border-color: var(--line-2); }
.walk-step[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow); }
.walk-step:not([aria-selected="true"]) { opacity: 0.78; }
.walk-step p { color: var(--ink-2); font-size: 15px; }
.walk-step .signs { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 9px 12px; border-radius: var(--r-sm); background: var(--accent-wash); }
.walk-step .signs .icon { color: var(--accent); margin-top: 2px; flex: none; }
.walk-n { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px var(--font-mono); color: var(--accent); letter-spacing: 0.06em; }
.walk-n span { text-transform: uppercase; color: var(--muted); }
.walk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.walk-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.walk:not(.auto) .walk-bar { display: none; }
.walk-stage { position: sticky; top: calc(var(--top-h) + 20px); border-radius: var(--r-xl); overflow: hidden; background: #0F1E4B; box-shadow: var(--shadow-lg); }
.walk-pics { position: relative; aspect-ratio: 3 / 2; background: var(--blue); }
.walk-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0; transition: opacity 600ms var(--ease); }
.walk-pics img.on { opacity: 1; }
.walk-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transition: opacity 600ms var(--ease); }
.walk-loop.on.here { opacity: 1; }
.walk-diagram { position: relative; background: #0F1E4B; padding: 26px 10px 20px; }
.walk-map { position: relative; }
.walk-svg { width: 100%; height: auto; overflow: visible; }
.wl { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; transition: stroke var(--t), stroke-width var(--t); }
.walk[data-phase="1"] .l-list, .walk[data-phase="3"] .l-tok { stroke: var(--gold); stroke-width: 3.5; }
.walk[data-phase="2"] .l-buy, .walk[data-phase="3"] .l-sol, .walk[data-phase="3"] .l-fee { stroke: var(--teal); stroke-width: 3.5; }
.wn-dot { fill: #1C3272; stroke: rgba(255, 255, 255, 0.4); stroke-width: 2; }
.wn-ring { fill: none; stroke: transparent; stroke-width: 3; transition: stroke var(--t); }
.walk[data-phase="1"] :is(.wn-seller, .wn-house) .wn-ring { stroke: var(--gold); }
.walk[data-phase="2"] :is(.wn-buyer, .wn-checkout) .wn-ring { stroke: var(--teal); }
.walk[data-phase="3"] .wn .wn-ring { stroke: #FFFFFF; stroke-opacity: 0.85; }
.wc { transform-box: view-box; transform-origin: 0 0; }
.wlab { position: absolute; transform: translate(-50%, -50%); font: 650 12.5px/1.2 var(--font-text); color: #FFFFFF; white-space: nowrap; pointer-events: none; }
.walk-badge { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 6px 13px; border-radius: var(--r-pill); font: 700 12.5px/1.2 var(--font-text); white-space: nowrap; color: #0B1B3F; background: #FFFFFF; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); }
.walk[data-phase="2"] .walk-badge { background: var(--teal); }
.walk[data-phase="3"] .walk-badge { background: var(--gold); }
[data-motion="on"] .walk.auto .walk-badge { animation: badge-in 420ms var(--ease) both; }
@keyframes badge-in { from { opacity: 0; transform: translate(-50%, -30%) scale(0.94); } }
.after-steps { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 20px 14px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.after-icon .otter { width: 76px; height: auto; flex: none; }

/* ---------- home: why not just swap ---------- */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.calc-in, .calc-out { padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 20px; align-content: start; }
.range { width: 100%; accent-color: var(--accent); height: 28px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.range-val { font: 600 20px var(--font-mono); }
.vs { display: grid; gap: 16px; }
.vs-row { display: grid; gap: 8px; }
.vs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vs-name { font-weight: 700; }
.vs-get { font: 600 22px var(--font-mono); letter-spacing: -0.02em; }
.vs-bar { height: 12px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.vs-bar span { display: block; height: 100%; border-radius: 6px; transition: width var(--t) var(--ease); }
.vs-row.pool .vs-bar span { background: var(--line-3); }
.vs-row.Homer .vs-bar span { background: linear-gradient(90deg, var(--accent), #3B5BB0); }
.vs-lost { font: 500 13px var(--font-mono); }
.vs-save { padding: 12px 16px 12px 12px; border-radius: var(--r); background: var(--accent-wash); color: var(--ink); display: flex; gap: 12px; align-items: center; }
.vs-save b { font-family: var(--font-mono); color: var(--accent); }
.vs-coin .otter { width: 64px; height: auto; flex: none; }

/* ---------- home: prices that keep up ---------- */
.dyn { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; align-items: stretch; }
.dyn-list { display: grid; gap: 4px; align-content: start; }
.dyn-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); padding: 14px 4px; border-bottom: 1px solid var(--line); }
.dyn-list li:last-child { border-bottom: 0; }
.dyn-list li b { color: var(--ink); font-weight: 700; }
.dyn-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font: 700 13px var(--font-mono); flex: none; }
.dyn-card { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px; display: grid; gap: 14px; align-content: start; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font: 500 12px var(--font-mono); color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend .l-market { background: var(--line-3); }
.legend .l-offer { background: var(--accent); }
.legend .l-floor { background: repeating-linear-gradient(90deg, var(--gold-2) 0 4px, transparent 4px 7px); }

/* ---------- charts ---------- */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .c-market { fill: none; stroke: var(--line-3); stroke-width: 1.8; }
.chart .c-offer { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; }
.chart .c-area { fill: var(--accent-wash); }
.chart .c-floor { stroke: var(--gold-2); stroke-width: 1.6; stroke-dasharray: 5 5; }
.chart .c-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.chart .c-text { fill: var(--muted); font: 500 11px var(--font-mono); }
.chart.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- home: the house wallet on the navy band ---------- */
.navy-band { position: relative; margin-top: clamp(72px, 9vw, 128px); background: var(--navy-2); padding-bottom: 8px; }
.navy-edge { height: clamp(30px, 4vw, 60px); }
.navy-edge:first-child { background: var(--navy-2); }
.navy-edge:last-child { background: var(--navy-2); }
.custody-head { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px 48px; align-items: center; padding: clamp(24px, 4vw, 48px) 0 32px; }
.custody-head > div { display: grid; gap: 14px; justify-items: start; }
.custody-art { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.custody-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 70%; }
.navy-band .house { padding-bottom: clamp(40px, 5vw, 72px); }
.house { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 16px; }
.house-card { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.on-navy .house-card { box-shadow: none; }
.house-card > .otter { width: 140px; height: auto; }
.addr-box { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.addr-box .mono { font-size: 13.5px; overflow-wrap: anywhere; user-select: all; flex: 1; min-width: 0; }
.held-list { display: grid; gap: 2px; }
.held-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.held-row:last-child { border-bottom: 0; }
.held-row .grow { flex: 1; min-width: 0; }
.promise { display: grid; gap: 10px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.promise .icon { color: var(--good); margin-top: 3px; flex: none; }
.feed { display: grid; }
.feed-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.feed-row:last-child { border-bottom: 0; }
.feed-text { color: var(--ink-2); min-width: 0; }
.feed-meta { display: grid; justify-items: end; gap: 2px; font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.tx { display: inline-flex; gap: 4px; align-items: center; color: var(--ink-2); }
a.tx:hover { color: var(--accent); }

/* ---------- home: built in public ---------- */
.built { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.built-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.built-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.built-card p { color: var(--ink-2); font-size: 15px; }
.built-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--good-wash); color: var(--good); }
.built-links { margin-top: 20px; gap: 12px 28px; }
@media (max-width: 1020px) { .built { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .built { grid-template-columns: 1fr; } }

/* ---------- questions, closing band ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 18px 22px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font: 600 17px var(--font-mono); flex: none; transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { content: '-'; }
.faq p { margin-top: 10px; color: var(--ink-2); max-width: 46em; }
.band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(30px, 4.5vw, 60px); border-radius: var(--r-xl); background: radial-gradient(60% 100% at 18% 50%, #2A4386 0%, rgba(42, 67, 134, 0) 70%), var(--blue-field); box-shadow: var(--shadow-lg); }
.band-art { position: relative; width: clamp(180px, 22vw, 300px); }
.band-ripples { position: absolute; inset: -30%; z-index: -1; }
.band-art .otter { width: 100%; height: auto; position: relative; }
.band-copy { display: grid; gap: 18px; justify-items: start; }
.band .lede { color: #FFFFFF; font-weight: 500; }

/* ---------- market ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.controls .search { margin-left: auto; width: min(340px, 100%); }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 42px; height: 44px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 16px; }
.empty .otter { width: 200px; height: auto; margin-bottom: 4px; }
.empty p { max-width: 30em; }

/* ---------- offer page ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr 390px; gap: 18px; align-items: start; }
.offer-hero .page-hero-copy { justify-items: stretch; }
.offer-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.offer-head .tok { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }
.offer-head h1 { font-size: clamp(34px, 4.4vw, 56px); }
.offer-id { display: grid; gap: 10px; min-width: 0; }
.offer-mint { margin-left: auto; }
.panel { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 22px; display: grid; gap: 16px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big-price { font: 600 clamp(30px, 3.6vw, 44px)/1 var(--font-mono); letter-spacing: -0.03em; }
.big-price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.tile .num { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; overflow-wrap: anywhere; }
.buy-box { position: sticky; top: calc(var(--top-h) + 18px); }
.buy-box .panel { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.costs { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; font-size: 14px; }
.costs dt { color: var(--ink-2); }
.costs dd { text-align: right; font-family: var(--font-mono); }
.costs .total { font-weight: 700; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.notes { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.notes li { display: flex; gap: 8px; align-items: flex-start; }
.notes .icon { color: var(--good); margin-top: 2px; flex: none; }
.todo { font-size: 13.5px; color: var(--ink-2); min-height: 1.4em; }

/* ---------- dashboard ---------- */
.desk-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.desk-tiles .tile { background: var(--surface); padding: 18px; box-shadow: var(--shadow); border-color: var(--line); }
.desk-tiles .num { font-size: 22px; }
.tabs { display: flex; gap: 4px; margin: 30px 0 18px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 48px; padding: 0 16px; border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: 15px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .count { font: 500 12px var(--font-mono); color: var(--muted); margin-left: 6px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--bg-2); }
.rows { display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: minmax(180px, 1.3fr) 1fr 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.orow .grow { min-width: 0; display: grid; gap: 6px; }
.orow .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.orow .tok-line { display: flex; gap: 12px; align-items: center; min-width: 0; }
.list-grid { display: grid; grid-template-columns: 1fr 390px; gap: 18px; align-items: start; }
.form-step { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 22px; }
.form-step + .form-step { margin-top: 14px; }
.step-title { display: flex; align-items: center; gap: 12px; font: 750 19px/1.2 var(--font-text); margin-bottom: 16px; }
.step-title .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font: 700 13px var(--font-mono); flex: none; transition: background var(--t-fast), color var(--t-fast); }
.step-title .n.ok { background: var(--good); color: #FFFFFF; }
.picker { display: grid; gap: 8px; max-height: 360px; overflow: auto; padding-right: 4px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; transition: border-color var(--t-fast), background var(--t-fast); }
.pick:hover:not([disabled]) { border-color: var(--line-3); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent) inset; }
.pick[disabled] { cursor: not-allowed; background: var(--bg-2); }
.pick[disabled] > :not(.grow) { opacity: 0.6; }
.pick .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pick .why { font-size: 12.5px; font-weight: 600; color: var(--warn); }
.side { position: sticky; top: calc(var(--top-h) + 18px); display: grid; gap: 14px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; 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: 750; }
.mode-card span { font-size: 13px; color: var(--muted); }
.mode-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---------- how it works ---------- */
.how-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.how-step { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.how-step .body { display: grid; gap: 10px; }
.how-step h2 { font-size: clamp(24px, 2.6vw, 32px); }
.step-n { font: 600 12.5px var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
.signs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signs-grid .panel h3 { margin-top: -6px; }
.prose { display: grid; gap: 14px; color: var(--ink-2); max-width: 46em; }
.prose b { color: var(--ink); }
ul.prose li { position: relative; padding: 16px 20px 16px 48px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
ul.prose li::before { content: '!'; position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--warn-wash); color: var(--warn); font: 800 12px/1 var(--font-text); }

/* ---------- wallet ---------- */
.wallet-box { position: relative; }
.wallet-btn.on { padding: 0 14px; gap: 10px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); display: grid; gap: 2px; z-index: 30; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; color: var(--ink-2); }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); border: 0; background: none; text-align: left; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.menu-item:hover { background: var(--bg-2); }
.wallet-list { display: grid; gap: 8px; }
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.wallet-row:hover:not([disabled]) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.wallet-row[disabled] { opacity: 0.6; cursor: default; }
.wallet-row img { border-radius: 8px; }
.wallet-name { flex: 1; font-weight: 700; }
.wallet-tag { font: 500 12px var(--font-mono); color: var(--muted); }
.wallet-help { display: grid; gap: 10px; margin-top: 6px; }

/* ---------- modal, flow, toasts ---------- */
.modal-veil { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 30, 94, 0.55); animation: fade var(--t) var(--ease); }
.modal-panel { width: min(480px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 80px -30px rgba(10, 18, 46, 0.55); padding: 24px; 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: 26px; }
.modal-panel.locked .modal-x { visibility: hidden; }
.modal-body { display: grid; gap: 14px; }
.modal-art { display: grid; place-items: center; }
.modal-art .otter { width: 180px; height: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
.flow { display: grid; gap: 10px; margin: 4px 0 8px; }
.flow li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 15px; }
.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: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); 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: #FFFFFF; border-color: transparent; }
.flow li.bad .flow-mark { border-color: var(--bad); }
.big-line { font-size: 18px; line-height: 1.45; }
.countdown { font: 600 13px var(--font-mono); color: var(--accent); }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100% - 32px); }
.toast { padding: 11px 18px; border-radius: var(--r-pill); background: var(--navy-2); color: #FFFFFF; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop var(--t) var(--ease); }
.toast.bad { background: var(--bad); color: #FFFFFF; }

/* ---------- loading, the otter ---------- */
[data-motion="on"] .otter-float .otter-body, [data-motion="on"] .otter-float .otter-coin { animation: bob 4s ease-in-out infinite; transform-box: view-box; transform-origin: 50% 50%; }
@keyframes bob { 50% { transform: translateY(5px) rotate(-1.2deg); } }
[data-motion="on"] .otter-sleep .otter-z { animation: drift 3.2s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-5px); opacity: 0.6; } }
.loading { display: grid; justify-items: center; gap: 8px; padding: 48px 0; color: var(--muted); }
.loading .otter { width: 170px; height: auto; }

/* ---------- footer: deep navy under a wave ---------- */
#foot { background: var(--navy-2); color: var(--ink); padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.foot-wave { height: clamp(44px, 6vw, 96px); background: var(--page); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding-top: 28px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .logo-word { color: #FFFFFF; }
.foot-brand p { max-width: 30em; font-size: 14.5px; }
.foot-col { display: grid; gap: 10px; align-content: start; color: var(--ink-2); font-size: 14.5px; }
.foot-col .label { color: var(--gold); margin-bottom: 2px; }
.foot-col a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-base .link { color: var(--ink-2); }

.dyn-list .icon, .promise .icon, .proof .icon { flex: none; }

/* ---------- trust pages: transparency, terms, privacy, risks ---------- */
.tp-top { align-items: start; }
.tp-table { display: grid; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.tp-row { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 110px; grid-template-areas: "tok held list state"; gap: 8px 20px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.tp-row:last-child { border-bottom: 0; }
.tp-head { padding-block: 11px; background: var(--bg-2); }
.a-tok { grid-area: tok; }
.a-held { grid-area: held; }
.a-list { grid-area: list; }
.a-state { grid-area: state; }
.tp-tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tp-sym { font-weight: 750; }
.tp-cell { display: grid; gap: 2px; min-width: 0; }
.tp-num { font: 500 14.5px var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tp-cl { display: none; }
.tp-state { justify-self: start; }
.tp-feed .sig { display: inline-flex; align-items: center; gap: 2px; }
.icon-btn.tiny { width: 26px; height: 26px; }
.tp-steps { display: grid; gap: 18px; }
.tp-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.tp-steps p { font-size: 14.5px; margin-top: 2px; }
.tp-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-wash); font: 700 13px var(--font-mono); color: var(--accent); }
.tp-art { width: clamp(220px, 26vw, 360px); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55); }
.tp-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 70%; }

.draft { display: inline-flex; padding: 5px 12px; border-radius: var(--r-pill); background: var(--warn-wash); color: var(--warn) !important; font-weight: 650; }
.legal { display: grid; gap: 22px; justify-items: start; }
.legal > * { width: 100%; max-width: 48em; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-toc .chip { height: 32px; font-family: var(--font-text); font-size: 13.5px; font-weight: 600; background: var(--surface); transition: color var(--t-fast), border-color var(--t-fast); }
.legal-toc .chip:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.legal-body { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 8px clamp(20px, 3.5vw, 40px); }
.legal-sec { display: grid; gap: 12px; padding: 30px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.legal-sec:first-child { border-top: 0; }
.legal-sec h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .chip { text-decoration: none; color: var(--ink-2); }
.legal-list { display: grid; gap: 8px; }
.legal-list li { position: relative; padding-left: 20px; }
.legal-list li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost .page-hero-in { grid-template-columns: 1fr; justify-items: center; }
.lost .page-hero-copy { justify-items: center; }
.lost .otter { width: clamp(220px, 30vw, 340px); height: auto; }

/* ---------- motion switch: when off, nothing moves ---------- */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav a[href="/transparency"] { display: none; }
}
/* laptops and sideways tablets: the words keep to the left of Homer */
@media (min-width: 861px) and (max-width: 1200px) {
  .hero-copy { max-width: min(640px, 54vw); }
}
/* phones and small tablets: the words, then the sea under them (sea.css draws its phone layout from 860 px down) */
@media (max-width: 860px) {
  .hero-top { display: flex; flex-direction: column; }
  .hero-in { order: -1; min-height: 0; padding: 36px 0 0; }
  .hero-top .sea { position: relative; inset: auto; height: min(112vw, 560px); }
}
@media (max-width: 1020px) {
  .offer-grid, .list-grid, .calc, .dyn, .house, .custody-head, .walk { grid-template-columns: 1fr; }
  .buy-box, .side, .walk-stage { position: static; }
  .walk-stage { order: -1; }
  .desk-tiles { grid-template-columns: repeat(2, 1fr); }
  .orow { grid-template-columns: 1fr 1fr; }
  .orow .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-base-in { grid-template-columns: 1fr; }
  .hero-live { max-width: 460px; }
  .how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .top-cta { display: none; }
  .tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; display: flex; justify-content: space-around; padding: 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-lg); }
  .tabbar a { padding: 9px 12px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 700; }
  .tabbar a[aria-current] { background: var(--accent-wash); color: var(--accent); }
  .controls .search { margin-left: 0; width: 100%; }
  .signs-grid { grid-template-columns: 1fr; }
  .page-hero-in { grid-template-columns: 1fr; }
  .page-hero-aside { justify-self: start; }
  .page-hero-aside .otter, .tp-art { display: none; }
  #foot { padding-bottom: 110px; }
}
@media (max-width: 700px) {
  .hero-base { padding-top: 4px; }
  .hero-stats { padding: 16px 0; }
  .hero-stats .stat { padding: 0 12px; }
  .hero-stats .stat-value { font-size: 19px; }
  .hero-stats .fine { font-size: 12px; }
  .hero-live { max-width: none; }
}
@media (max-width: 560px) {
  .ctas .btn { flex: 1 1 100%; }
  .band { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .band-copy { justify-items: center; }
  .band-art { width: 200px; }
  .desk-tiles { gap: 10px; }
  .desk-tiles .tile { padding: 14px; }
  .orow { grid-template-columns: 1fr; }
  .mode-cards { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .wallet-btn.on .muted { display: none; }
  .ticket { --tear: 55%; }
  .grid-tickets { grid-template-columns: 1fr; }
  .after-steps { flex-direction: column; text-align: center; padding: 18px; }
  .offer-mint { margin-left: 0; }
  .walk-step { padding: 16px; }
  .wlab { font-size: 11px; }
  .walk-badge { font-size: 11px; padding: 5px 10px; }
  .walk-diagram { padding: 14px 4px 16px; }
  .proof span { font-size: 12.5px; }
  .kicker { font-size: 11px; letter-spacing: 0.06em; }
  .page-ripples { width: 300px; height: 300px; right: -150px; top: -110px; }
  .x-btn, .motion-word, .top-tools .sound-btn { display: none; }
  .motion-btn { padding: 0 9px; }
  .hero-stats .stat-value { font-size: 17px; }
  .hero-stats .label { font-size: 10px; letter-spacing: 0.04em; }
  .on-blue .kicker { letter-spacing: 0.04em; padding: 6px 12px 6px 10px; }
  .logo-word { font-size: 23px; }
  .logo img { width: 34px; height: 34px; }
  .top-bar { gap: 12px; }
}
@media (max-width: 700px) {
  .tp-head { display: none; }
  .tp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tok state" "held list"; padding: 16px; }
  .tp-state { justify-self: end; }
  .tp-cl { display: block; }
}
@media (max-width: 560px) {
  .tp-feed .feed-row { grid-template-columns: 36px 1fr; }
  .tp-feed .feed-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
}

/* ---------- motion and sound polish: the loops, the walk-through's landings, things settling in as they arrive ----------
   Everything here moves only with motion on, and only transform and opacity (no layout, no repaint of big areas). */

/* the hero's words rise in one after another on the first paint */
[data-motion="on"] .hero-copy > * { animation: rise 760ms var(--ease) backwards; }
[data-motion="on"] .hero-copy > :nth-child(2) { animation-delay: 70ms; }
[data-motion="on"] .hero-copy > :nth-child(3) { animation-delay: 140ms; }
[data-motion="on"] .hero-copy > :nth-child(4) { animation-delay: 210ms; }
[data-motion="on"] .hero-copy > :nth-child(5) { animation-delay: 280ms; }
[data-motion="on"] .hero-copy > :nth-child(6) { animation-delay: 350ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* the walk-through: the handoff still and its loop share one framing, so the loop fades in with no jump */
.walk-pics img.sq, .walk-loop { object-position: 50% 40%; }
/* each step's picture settles in from a touch closer (the loop with its still, so they stay in register) */
[data-motion="on"] .walk-pics img.on, [data-motion="on"] .walk-loop.here { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.05); } }
/* a ripple where a coin lands: gold for a token, teal for SOL */
.wripple { fill: none; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.wripple.tok { stroke: var(--gold); }
.wripple.sol { stroke: var(--teal); }

/* sections: the cards in a block come in one after another as the block arrives (backwards fill only, so hover still works) */
[data-motion="on"] .reveal.in > :is(.built-card, details, .house-card), [data-motion="on"] .reveal.in .dyn-list > li { animation: rise 640ms var(--ease) backwards; }
[data-motion="on"] .reveal.in > :is(.built-card, details, .house-card):nth-child(2), [data-motion="on"] .reveal.in .dyn-list > li:nth-child(2) { animation-delay: 80ms; }
[data-motion="on"] .reveal.in > :is(.built-card, details, .house-card):nth-child(3), [data-motion="on"] .reveal.in .dyn-list > li:nth-child(3) { animation-delay: 160ms; }
[data-motion="on"] .reveal.in > :is(.built-card, details, .house-card):nth-child(4), [data-motion="on"] .reveal.in .dyn-list > li:nth-child(4) { animation-delay: 240ms; }
[data-motion="on"] .reveal.in > :is(.built-card, details, .house-card):nth-child(5), [data-motion="on"] .reveal.in .dyn-list > li:nth-child(5) { animation-delay: 320ms; }
[data-motion="on"] .reveal.in > :is(.built-card, details, .house-card):nth-child(6), [data-motion="on"] .reveal.in .dyn-list > li:nth-child(6) { animation-delay: 400ms; }

/* the glass vault catches the light now and then */
.custody-art { position: relative; }
.custody-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%); transform: translateX(-130%); }
[data-motion="on"] .reveal.in .custody-art::after { animation: glint 7s var(--ease) 0.6s infinite; }
@keyframes glint { 0% { transform: translateX(-130%); } 24%, 100% { transform: translateX(130%); } }

/* the sound switch: header icon and footer words */
.sound-btn[aria-pressed="false"] { color: var(--muted); }
.foot-switches { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ---------- early access: the list under the home hero, and what a wallet that isn't in yet sees instead of Buy or List ---------- */
.early-section { padding-top: clamp(40px, 5vw, 64px); }
.early-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.early-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, var(--gold), var(--gold-2)); }
.early-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.early-follow a { color: var(--accent); font-weight: 700; }
.early-panel { display: grid; gap: 14px; align-content: center; min-width: 0; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.early-form { display: grid; gap: 16px; }
.early-form .field + .field { margin-top: 0; }
.early-form .input.mono { font-family: var(--font-mono); font-size: 15px; }
.early-done { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 6px 0; }
.early-badge { display: grid; place-items: center; min-width: 84px; height: 84px; padding: 0 18px; border-radius: var(--r-pill); background: var(--gold); color: #0B1B3F; font: 800 34px/1 var(--font-display); letter-spacing: -0.03em; box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 28%, transparent); }
.early-badge.in { background: var(--good-wash); color: var(--good); box-shadow: 0 0 0 8px color-mix(in srgb, var(--good) 14%, transparent); }
[data-motion="on"] .early-badge { animation: pop 520ms var(--ease) both; }
.early-another { justify-self: center; font-size: 13.5px; }
.early-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); }
.early-action { display: grid; gap: 8px; }
.early-btn { background: #FFF6DC; border-color: color-mix(in srgb, var(--gold-2) 60%, transparent); color: var(--gold-ink); }
.early-btn:hover { background: #FFEFC2; border-color: var(--gold-2); }
.early-banner { border-color: color-mix(in srgb, var(--gold-2) 45%, transparent); background: #FFF8E6; }
.early-banner .fine { margin-top: 2px; }
@media (max-width: 860px) { .early-card { grid-template-columns: 1fr; } }
/* ---------- Homer's little life (js/life.mjs): only on real desk events, only with motion on ---------- */
.top-bar .logo { position: relative; }
.logo.homer-gulp img { animation: homer-gulp 640ms var(--ease); transform-origin: 50% 88%; }
.logo.homer-hop img { animation: homer-hop 560ms var(--ease); transform-origin: 50% 90%; }
@keyframes homer-gulp { 0% { transform: none; } 45% { transform: scale(1.07, 0.93); } 72% { transform: scale(0.97, 1.05); } 100% { transform: none; } }
@keyframes homer-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-4px) rotate(-5deg); } 72% { transform: translateY(0) rotate(2deg); } }
.homer-drop, .homer-spark { position: absolute; pointer-events: none; z-index: 2; }
.homer-drop { left: 21px; top: -16px; width: 11px; height: 11px; animation: homer-drop 720ms cubic-bezier(0.55, 0, 0.85, 0.35) forwards; }
@keyframes homer-drop { 0% { opacity: 0; transform: translateY(-6px); } 20% { opacity: 1; } 78% { opacity: 1; transform: translateY(30px) scale(0.9); } 100% { opacity: 0; transform: translateY(32px) scale(0.55); } }
.homer-spark { left: 24px; top: -9px; width: 14px; height: 14px; animation: homer-spark 900ms var(--ease) forwards; }
@keyframes homer-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"] .homer-drop, [data-motion="off"] .homer-spark { display: none; }
[data-motion="off"] .logo.homer-gulp img, [data-motion="off"] .logo.homer-hop img { animation: none; }