/* BURNBACK: one flat grey page, ink outlines, ember as the only accent. See brand/STYLE.md. */
:root {
  --page: #d9d9d9;
  --ink: #111111;
  --ember: #ff6a2b;
  --cream: #ede6d6;
  --card: #1c1c1c;
  --dot: #3a3a3a;
  --muted: #555555;
  --hair: #b5b5b5;
  --sans: 'Poppins', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--ink); font-weight: 500; font-size: 16px; cursor: pointer; white-space: nowrap; background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"] { cursor: default; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 16px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 18px; }
.btn-black { background: var(--ink); color: var(--cream); }
.btn-ember { background: var(--ember); color: var(--ink); }
.btn-line { background: transparent; }
.btn-line:hover:not(:disabled) { background: rgba(17,17,17,.06); }
.btn-black:hover { background: #2a2a2a; }
.btn-ember:hover:not(:disabled) { background: #ff7b42; }
.wide { width: 100%; }

/* header: one outlined pill-rectangle */
.bar { position: sticky; top: 16px; z-index: 20; display: flex; align-items: center; gap: 32px; margin: 16px 16px 0; height: 78px; padding: 0 16px 0 22px; border: 1px solid var(--ink); border-radius: 14px; background: var(--page); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 34px; letter-spacing: -0.04em; line-height: 1; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 34px; font-size: 15px; font-weight: 400; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-link { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; }
.icon-link:hover { background: rgba(17,17,17,.06); }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: transparent; font: 400 14px var(--mono); cursor: pointer; }
.ca-k { font-weight: 500; }
.ca:disabled { cursor: default; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 700px 1fr; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 56px 65px 40px; min-height: 790px; }
.hero-left { position: relative; z-index: 1; }
.chips { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 6px; font-size: 15px; }
.rpc { display: inline-flex; align-items: center; gap: 8px; font: 400 13px var(--mono); color: var(--muted); }
.rpc i { width: 8px; height: 8px; border-radius: 2px; background: var(--hair); }
.rpc.up i { background: var(--ember); }
.rpc.down i { background: var(--ink); }
h1 { margin: 34px 0 0; font-weight: 700; font-size: 84px; line-height: 1.04; letter-spacing: -0.055em; white-space: nowrap; }
.h1-mark { width: 80px; height: 80px; vertical-align: -6px; margin-right: 14px; }
.sub { margin: 30px 0 0; font-size: 22px; line-height: 1.5; color: #333; max-width: 600px; }

/* dot-matrix card */
.matrix { margin-top: 22px; width: 564px; background: var(--card); color: var(--cream); border-radius: 12px; padding: 22px 26px 20px; }
.matrix-top { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 500; }
.matrix-top .sq { display: inline-block; width: 12px; height: 12px; background: var(--ember); border-radius: 2px; margin-right: 12px; vertical-align: -1px; }
.live { color: var(--ember); font-weight: 600; }
.matrix-digits { margin: 18px 0 14px; height: 90px; }
.matrix-digits svg { display: block; width: 100%; height: 100%; }
.matrix-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
#mf-1 { font-size: 15px; }
#mf-2 { font-size: 14px; color: #9a958b; }

.hero-cta { display: flex; gap: 12px; margin-top: 22px; }
.hero-art { position: relative; }
.hero-art img { position: absolute; top: 0; left: 10px; width: 600px; height: auto; }

/* sections */
.block { max-width: 1440px; margin: 0 auto; padding: 72px 65px 24px; scroll-margin-top: 110px; }
.block-head { display: flex; align-items: baseline; gap: 28px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 26px; }
h2 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.block-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* scan */
.scan-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.tools-left { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 42px; height: 24px; border: 1px solid var(--ink); border-radius: 12px; position: relative; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: left .15s; }
.toggle input:checked + span { background: var(--ember); }
.toggle input:checked + span::after { left: 21px; }
.toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.table-wrap { border: 1px solid var(--ink); border-radius: 12px; overflow: auto; max-height: 620px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { position: sticky; top: 0; background: var(--page); text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--ink); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.table th.num { font-family: var(--sans); font-size: 13px; }
.table tr.empty td { text-align: center; color: var(--muted); padding: 48px 16px; }
.table tr.picked td { background: rgba(255,106,43,.12); }
.table tr.locked td { color: var(--muted); }
.c-check { width: 48px; }
.tick { appearance: none; width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 4px; display: grid; place-content: center; cursor: pointer; margin: 0; background: transparent; }
.tick:checked { background: var(--ember); }
.tick:checked::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.tick:disabled { opacity: .35; cursor: not-allowed; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.tok-img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink); background: var(--cream); object-fit: cover; flex: none; display: grid; place-content: center; font: 700 12px var(--sans); }
.tok-name { font-weight: 500; line-height: 1.2; }
.tok-sub { font: 400 12px var(--mono); color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag-burn { background: var(--ink); color: var(--cream); }
.tag-close { background: transparent; }
.tag-unwrap { background: var(--cream); }
.tag-skip { border-color: var(--hair); color: var(--muted); }
.tag-val { border-color: var(--ember); color: var(--ink); margin-left: 6px; }
.scan-sum { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px 16px 14px 20px; border: 1px solid var(--ink); border-radius: 12px; font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { border: 1px solid var(--ink); border-radius: 12px; padding: 26px; }
.step-n { display: inline-block; font: 700 14px var(--mono); background: var(--ink); color: var(--ember); padding: 4px 10px; border-radius: 6px; }
.step h3 { margin: 18px 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.step p { margin: 0; color: #333; }

/* reclaims */
.rec { border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; }
.rec-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hair); align-items: center; font-size: 15px; }
.rec-row:last-child { border-bottom: 0; }
.rec-row.head { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--ink); }
.rec-row .mono { font-size: 14px; }
.rec-row a { text-decoration: underline; text-underline-offset: 3px; }
.rec-row b { color: var(--ink); }
.rec-empty { padding: 44px 20px; text-align: center; color: var(--muted); }

/* docs */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--ink); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; font: 500 20px var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 18px; color: #333; max-width: 860px; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1440px; margin: 56px auto 0; padding: 26px 65px 40px; border-top: 1px solid var(--ink); font-size: 14px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand b { font-size: 20px; letter-spacing: -0.03em; }
.foot-brand span { color: var(--muted); margin-left: 8px; }
.foot-links { display: flex; gap: 24px; }

/* review drawer */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer-back { position: absolute; inset: 0; background: rgba(17,17,17,.45); }
.drawer-card { position: absolute; top: 16px; right: 16px; bottom: 16px; width: min(460px, calc(100% - 32px)); background: var(--page); border: 1px solid var(--ink); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { margin: 0; font-size: 30px; letter-spacing: -0.03em; }
.x { border: 1px solid var(--ink); background: transparent; width: 38px; height: 38px; border-radius: 8px; font-size: 22px; cursor: pointer; }
.lines { border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 15px; }
.line:last-child { border-bottom: 0; }
.line .mono { font-size: 14px; }
.line.net { background: var(--card); color: var(--cream); font-weight: 600; }
.line.net .mono { color: var(--ember); font-size: 18px; }
.drawer-note { font-size: 13px; color: var(--muted); margin: 0; }
.confirm { display: grid; gap: 8px; font-size: 14px; }
.confirm input { height: 46px; border: 1px solid var(--ink); border-radius: 8px; background: var(--cream); padding: 0 14px; font: 500 16px var(--mono); letter-spacing: .1em; }
.drawer-msg { font-size: 14px; min-height: 20px; }
.drawer-msg.err { color: #b42b00; }
.drawer-msg a { text-decoration: underline; }
.progress { display: grid; gap: 6px; font: 400 13px var(--mono); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.toast.show { opacity: 1; }

/* narrower screens */
@media (max-width: 1360px) {
  .nav { gap: 26px; }
  .bar { gap: 26px; }
  .hero { grid-template-columns: 600px 1fr; }
  .hero-art img { width: 560px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; }
  .hero-art img { position: static; width: min(520px, 100%); display: block; margin: 0 auto -20px; }
}
@media (max-width: 760px) {
  .bar { margin: 12px 10px 0; top: 8px; height: 64px; padding: 0 10px 0 12px; gap: 10px; }
  .brand { font-size: 22px; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .bar-right { gap: 4px; }
  .ca, #buy { display: none; }
  .icon-link { width: 30px; height: 30px; }
  .icon-link svg { width: 18px; height: 18px; }
  #connect { height: 38px; padding: 0 10px; font-size: 13px; margin-left: 4px; }
  .hero { padding: 24px 18px 20px; }
  h1 { font-size: 46px; margin-top: 22px; white-space: normal; }
  .h1-mark { width: 44px; height: 44px; vertical-align: -4px; margin-right: 8px; }
  .sub { font-size: 17px; margin-top: 18px; }
  .sub br { display: none; }
  .matrix { width: 100%; padding: 18px; }
  .matrix-digits { height: 56px; }
  .matrix-foot { flex-direction: column; align-items: stretch; }
  .hero-cta { flex-direction: column; }
  .block { padding: 48px 18px 12px; }
  .block-head { flex-direction: column; gap: 6px; }
  h2 { font-size: 34px; }
  .steps { grid-template-columns: 1fr; }
  .rec-row { grid-template-columns: 1fr 1fr; }
  .rec-row.head { display: none; }
  .scan-sum { flex-direction: column; gap: 12px; align-items: stretch; }
  .foot { padding: 22px 18px 32px; }
  .foot-brand span { display: none; }
  .table .hide-sm { display: none; }
}

/* ===== motion, live band, tools ===== */
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: 16px; transform: translateY(-200%); visibility: hidden; z-index: 80; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { transform: none; visibility: visible; }

/* boot: dot-matrix wordmark, once per session */
.boot { position: fixed; inset: 0; z-index: 90; background: var(--card); display: grid; place-content: center; gap: 28px; pointer-events: none; transition: clip-path .6s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); }
.boot.gone { clip-path: inset(0 0 100% 0); }
.boot-word { width: min(720px, 80vw); }
.boot-word svg { display: block; width: 100%; height: auto; }
.boot-word circle.w { opacity: 0; animation: dotOn .35s ease-out forwards; }
.boot-bar { height: 2px; background: #333; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }
.boot.run .boot-bar i { transition: transform 1s cubic-bezier(.4,0,.2,1); transform: scaleX(1); }
@keyframes dotOn { from { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; } to { opacity: 1; transform: none; } }

/* hero entrance */
.split .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .ln > span { display: inline-block; }
.js .split .ln > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.js .split .h1-mark { transform: scale(.4) rotate(-40deg); opacity: 0; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .9s cubic-bezier(.2,.8,.2,1); }
.js body.ready .split .ln > span, .js body.ready .split .h1-mark, .js body.ready .rise { transform: none; opacity: 1; }
.js body.ready .split .ln:nth-of-type(2) > span { transition-delay: .09s; }
.js body.ready .sub.rise { transition-delay: .18s; }
.js body.ready .matrix.rise { transition-delay: .28s; }
.js body.ready .hero-cta.rise { transition-delay: .38s; }

.hero-art { --mx: 0; --my: 0; }
.hero-art img { translate: calc(var(--mx) * -26px) calc(var(--my) * -20px); transition: translate .5s cubic-bezier(.2,.8,.2,1); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.halo { position: absolute; top: 40px; left: 70px; width: 480px; height: 480px; border-radius: 50%; border: 1px dashed rgba(17,17,17,.35); translate: calc(var(--mx) * 18px) calc(var(--my) * 14px); animation: spin 60s linear infinite; pointer-events: none; }
.halo::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 2px; background: var(--ember); }
.halo::after { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(17,17,17,.12); }
@keyframes spin { to { rotate: 360deg; } }
.scroll-cue { position: absolute; right: 65px; bottom: 6px; width: 26px; height: 42px; border: 1px solid var(--ink); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ember); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.bar { transition: box-shadow .3s, background .3s; }
.bar.stuck { box-shadow: 0 10px 30px -18px rgba(17,17,17,.6); }

/* live band */
.ticker { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; border-block: 1px solid var(--ink); margin-top: 10px; scroll-margin-top: 110px; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.t-run { display: flex; align-items: center; flex: none; padding: 16px 0; font: 400 14px var(--mono); white-space: nowrap; }
.t-run span { padding: 0 22px; }
.t-run b { font-weight: 600; }
.t-run em { font-style: normal; color: var(--ember); }
.t-sep { width: 8px; height: 8px; border-radius: 2px; background: var(--ember); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform 1s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal] .block-head { border-bottom-color: transparent; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat; transition: background-size 1.2s cubic-bezier(.2,.8,.2,1) .15s; }
.js [data-reveal].in .block-head { background-size: 100% 1px; }

/* section index */
.idx { align-self: center; font: 500 13px var(--mono); padding: 3px 8px; border: 1px solid var(--ink); border-radius: 6px; }
.block-head h2 { margin: 0; }

/* check any wallet */
.lookup { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 14px; margin-bottom: 18px; padding: 10px 10px 10px 18px; border: 1px solid var(--ink); border-radius: 12px; background: var(--cream); }
.lookup-k { font-weight: 600; font-size: 15px; white-space: nowrap; }
.lookup input { height: 44px; min-width: 0; border: 0; border-left: 1px solid var(--hair); background: transparent; padding: 0 14px; font: 400 14px var(--mono); color: var(--ink); }
.lookup input:focus { outline: none; }
.lookup:focus-within { box-shadow: 0 0 0 2px var(--ember); }
.lookup-hint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: none; }
.lookup:focus-within .lookup-hint { display: block; }

/* filters, search, sort */
.scan-filter { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 12px; border-radius: 7px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button:hover { background: rgba(17,17,17,.06); }
.seg button.on { background: var(--ink); color: var(--cream); }
.seg em { font: normal 500 12px var(--mono); color: var(--muted); }
.seg button.on em { color: var(--ember); }
.search { height: 42px; width: 300px; max-width: 100%; border: 1px solid var(--ink); border-radius: 10px; background: transparent; padding: 0 14px; font: 400 14px var(--sans); color: var(--ink); }
.search::placeholder, .lookup input::placeholder { color: #6b6b6b; }
.sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sort::after { content: '↕'; font-size: 11px; opacity: .45; }
.sort[data-dir="asc"]::after { content: '↑'; opacity: 1; color: var(--ink); }
.sort[data-dir="desc"]::after { content: '↓'; opacity: 1; color: var(--ink); }
.sort:hover { color: var(--ink); }
.table tbody tr { transition: background .15s; }
.table tbody tr:not(.empty):hover td { background: rgba(17,17,17,.04); }
.table tbody tr.picked:hover td { background: rgba(255,106,43,.18); }
.js .table tbody tr:not(.empty) { animation: rowIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.scan-sum { position: sticky; bottom: 16px; z-index: 5; background: var(--page); }
.sum-usd { color: var(--muted); margin-left: 4px; }
.scan-sum.ro #review { background: var(--ink); color: var(--cream); }
.loading { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--ember); animation: blink .8s steps(2) infinite; vertical-align: -1px; }
@keyframes blink { 50% { opacity: .2; } }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 564px; gap: 18px; align-items: stretch; }
.calc-in { border: 1px solid var(--ink); border-radius: 12px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.calc-in > label { font-weight: 500; }
.calc-n { display: flex; align-items: baseline; gap: 12px; }
.calc-n output { font: 700 96px/1 var(--sans); letter-spacing: -0.06em; }
.calc-n span { font-size: 18px; color: var(--muted); }
#calc-n { --p: 7.8%; appearance: none; -webkit-appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 6px 0 0; }
#calc-n::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ember) var(--p), var(--ink) var(--p)); }
#calc-n::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ember) var(--p), var(--ink) var(--p)); }
#calc-n::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 6px; background: var(--cream); border: 2px solid var(--ink); }
#calc-n::-moz-range-thumb { width: 22px; height: 22px; border-radius: 6px; background: var(--cream); border: 2px solid var(--ink); }
.calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.calc-tip { margin: auto 0 0; color: #333; max-width: 520px; }
.calc-card { background: var(--card); color: var(--cream); border-radius: 12px; padding: 22px 26px; display: flex; flex-direction: column; }
.calc-lines { display: grid; gap: 0; font-size: 13px; border-top: 1px solid #333; margin-top: auto; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #2c2c2c; color: #b9b2a3; }
.calc-lines .net { color: var(--cream); font-weight: 600; border-bottom: 0; }
.calc-lines .net span:last-child { color: var(--ember); }

/* steps + stats */
.step { transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s; }
.step:hover { transform: translateY(-4px); background: rgba(237,230,214,.5); }
.step-n { display: block; width: 92px; height: 50px; padding: 8px 10px; background: var(--card); border-radius: 8px; }
.step-n svg { display: block; width: 100%; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.stat { padding: 20px 22px; display: grid; gap: 6px; border-right: 1px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.rec-row:not(.head) { transition: background .2s; }
.rec-row:not(.head):hover { background: rgba(237,230,214,.6); }

/* docs */
.docs-grid { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.faq details { transition: background .2s; }
.faq details[open] { background: rgba(237,230,214,.45); }
.spec { position: sticky; top: 112px; background: var(--card); color: var(--cream); border-radius: 12px; padding: 24px 26px; }
.spec h3 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.spec h3::before { content: ''; width: 12px; height: 12px; border-radius: 2px; background: var(--ember); }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; font-size: 13px; }
.spec dt, .spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #2c2c2c; }
.spec dt { color: #9a958b; padding-right: 14px; }
.spec dd { text-align: right; }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }

/* footer */
.foot { display: block; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega { display: block; margin: 30px 0 10px; line-height: .8; overflow: hidden; }
.mega span { display: block; font-weight: 700; font-size: clamp(80px, 19.5vw, 282px); letter-spacing: -0.065em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); text-align: center; background: linear-gradient(var(--ember), var(--ember)) left / 0 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size .9s cubic-bezier(.2,.8,.2,1); padding-bottom: .04em; }
.mega:hover span { background-size: 100% 100%; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 16px; flex-wrap: wrap; }

/* floating total */
.dock { position: fixed; left: 50%; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; background: var(--ink); color: var(--cream); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: translate(-50%, 140%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s; font-size: 15px; }
.dock.on { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.dock .mono { color: var(--ember); }

/* drawer motion + receipt */
.drawer.open .drawer-back { animation: fade .3s both; }
.drawer.open .drawer-card { animation: slideIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.line.net small { color: #9a958b; font-size: 12px; margin-left: 6px; }
.receipt { background: var(--card); color: var(--cream); border-radius: 12px; padding: 22px; display: grid; gap: 12px; }
.rc-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rc-top .mono { margin-left: auto; font-size: 12px; color: #9a958b; }
.rc-k { font-size: 13px; color: #9a958b; }
.rc-digits { height: 70px; }
.rc-digits svg { display: block; width: 100%; height: 100%; }
.rc-digits circle.w { animation: dotOn .35s ease-out both; }
.rc-lines { font-size: 13px; }
.rc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2c2c2c; }
.rc-lines a { color: var(--ember); text-decoration: underline; }
.rc-act { display: flex; gap: 10px; }
.rc-act .btn { flex: 1; }
.receipt .btn-line { border-color: var(--cream); color: var(--cream); }

@media (max-width: 1360px) {
  .halo { width: 440px; height: 440px; left: 60px; }
  .calc { grid-template-columns: 1fr 480px; }
}
@media (max-width: 1180px) {
  .halo { left: 50%; top: 10px; margin-left: -200px; width: 400px; height: 400px; }
  .scroll-cue { display: none; }
  .calc, .docs-grid { grid-template-columns: 1fr; }
  .spec { position: static; }
}
@media (max-width: 760px) {
  .halo { width: 300px; height: 300px; margin-left: -150px; }
  .ticker { margin-top: 0; }
  .t-run { padding: 12px 0; font-size: 12px; }
  .lookup { grid-template-columns: 1fr auto; padding: 10px; }
  .lookup-k { grid-column: 1 / -1; }
  .lookup input { border-left: 0; padding: 0 4px; }
  .seg { width: 100%; }
  .seg button { padding: 0 9px; font-size: 13px; }
  .search { width: 100%; }
  .scan-sum { bottom: 8px; }
  .calc-in, .calc-card { padding: 20px; }
  .calc-n output { font-size: 64px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .stat b { font-size: 22px; }
  .dock { gap: 10px; padding-left: 14px; font-size: 13px; width: calc(100% - 20px); justify-content: space-between; }
  .rc-act { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .t-run[aria-hidden] { display: none; }
  .t-run { flex-wrap: wrap; white-space: normal; row-gap: 8px; }
}
