/* Hallmark · macrostructure: studied-DNA (source: north.cloud, Awwwards nominee) · nav: N1b on ink · footer: Ft single strip · theme: studied-DNA (ink #111312, stone #cfd2c8, lime #c9f45a; Host Grotesk + Plex Mono) · contrast: pass (40–41) · slop: pass (42–45) · mobile: pass (34, 49, 50–57) */
/* STEADY: calm money-OS. Near-black hero and close, stone working middle on a 4-column hairline grid. */
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/host-grotesk-var.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #111312; --ink2: #1d201e; --line: #2c302d; --cream: #ede6d6; --mute: #8e948a;
  --lime: #c9f45a; --lime-hi: #e2ff8f; --stone: #cfd2c8; --stone2: #c3c7bb; --rule: rgba(17, 19, 18, .16);
  --down: #b4602a; --down-dk: #e8a25a;
  --pad: clamp(16px, 2.2vw, 40px);
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 17px/1.5 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--lime); color: var(--ink); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.stone :focus-visible { outline-color: var(--ink); }
.note { font: 400 13px/1.6 var(--mono); color: var(--mute); margin: 0; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 16px var(--pad);
  background: rgba(17, 19, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(237, 230, 214, .08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; letter-spacing: .02em; font-size: 17px; }
.brand img { border-radius: 7px; }
.menu { display: flex; gap: 28px; margin: 0 auto; font-size: 15px; }
.menu a { text-decoration: none; color: rgba(237, 230, 214, .72); transition: color .2s; }
.menu a:hover { color: var(--cream); }
.act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu + .act { margin-left: 0; }
.ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(237, 230, 214, .18); color: var(--cream); transition: border-color .2s, background .2s; }
.ico:hover { border-color: var(--lime); color: var(--lime); }
.ca { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px dashed rgba(237, 230, 214, .26); background: none; font: 500 13px var(--mono); color: var(--mute); cursor: default; white-space: nowrap; }
.ca.live { border-style: solid; color: var(--cream); cursor: copy; }
.ca.live:hover { border-color: var(--lime); }

.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 560; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .3s var(--ease), border-color .3s; }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease); }
.pill:hover::before { transform: scaleX(1); }
.pill-lg { height: 50px; padding: 0 28px; font-size: 17px; }
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-lime::before { background: var(--cream); }
.pill-line { border-color: rgba(237, 230, 214, .32); color: var(--cream); }
.pill-line::before { background: var(--lime); }
.pill-line:hover { color: var(--ink); border-color: var(--lime); }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-ink::before { background: var(--lime); }
.pill-ink:hover { color: var(--ink); }
.pill-line-ink { border-color: var(--ink); color: var(--ink); }
.pill-line-ink::before { background: var(--ink); }
.pill-line-ink:hover { color: var(--cream); }
.pill[aria-disabled="true"], .pill:disabled { opacity: .45; pointer-events: none; }

/* ---------- crosshairs ---------- */
.cross { position: absolute; width: 15px; height: 15px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: currentColor; }
.cross::before { left: 7px; top: 0; width: 1px; height: 15px; }
.cross::after { top: 7px; left: 0; height: 1px; width: 15px; }
.c-tl { left: -7px; top: -7px; } .c-tr { right: -7px; top: -7px; } .c-bl { left: -7px; bottom: -7px; } .c-br { right: -7px; bottom: -7px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(96px + 3vh) var(--pad) var(--pad); display: flex; flex-direction: column; justify-content: space-between; color: var(--mute); overflow: hidden; }
.hero .cross { color: rgba(237, 230, 214, .35); }
.hero .c-tl { left: calc(var(--pad) - 7px); top: 80px; } .hero .c-tr { right: calc(var(--pad) - 7px); top: 80px; }
.hero .c-bl { left: calc(var(--pad) - 7px); bottom: 10px; } .hero .c-br { right: calc(var(--pad) - 7px); bottom: 10px; }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-title { position: relative; z-index: 1; margin: 0; color: var(--cream); font-weight: 600; text-transform: uppercase;
  font-size: clamp(38px, 9.4vw, 250px); line-height: .9; letter-spacing: -.035em; display: grid; grid-template-columns: repeat(4, 1fr); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; }
.hero-title .l1 { grid-column: 1 / -1; }
.hero-title .l2 { grid-column: 2 / -1; }
.hero-title .l3 { grid-column: 1 / -1; justify-self: end; margin-top: .14em; padding-right: 1.6em; }
.hero-title .l4 { grid-column: 1 / -1; justify-self: end; }
.lime { color: var(--lime); }
.hero-foot { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); align-items: end; margin-top: 6vh; }
.hero-cta { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { grid-column: 3 / 5; justify-self: end; max-width: 56ch; color: rgba(237, 230, 214, .66); }

/* ---------- moment: framed square grows into the lime panel ---------- */
.moment { position: relative; height: 230vh; }
.moment-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.moment-frame { position: absolute; inset: 0; display: grid; place-items: center; background: var(--lime); }
.js .moment-frame { background: var(--ink); clip-path: inset(calc(50% - min(15vmin, 130px)) calc(50% - min(15vmin, 130px))); }
.moment-box { position: absolute; left: 50%; top: 50%; width: min(30vmin, 260px); aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgba(237, 230, 214, .22); color: var(--cream); z-index: 1; }
.moment-line { margin: 0; color: var(--ink); font-weight: 600; text-transform: uppercase; text-align: center; font-size: clamp(40px, 9vw, 230px); line-height: .9; letter-spacing: -.035em; opacity: 0; }
.moment-side { position: absolute; top: 50%; margin: 0; transform: translateY(-50%); font-size: clamp(22px, 2.6vw, 54px); font-weight: 500; color: var(--cream); letter-spacing: -.02em; white-space: nowrap; }
.moment-side.left { right: calc(50% + min(15vmin, 130px) + 3vw); }
.moment-side.right { left: calc(50% + min(15vmin, 130px) + 3vw); }
.moment.done .moment-frame { clip-path: none; background: var(--lime); }
.moment.done .moment-box { display: none; }
.moment.done .moment-line { opacity: 1; }
.moment.done .moment-side { opacity: 0; }

/* ---------- stone working sections ---------- */
.stone { position: relative; background: var(--stone); color: var(--ink); }
.grid-lines { position: absolute; inset: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; z-index: 0;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.grid-lines i { border-right: 1px solid var(--rule); }
.grid-lines i:nth-child(3) { border-right: 1px solid var(--rule); }
.grid-lines::after { content: ""; }
.tool, .how { position: relative; z-index: 1; padding: clamp(80px, 11vw, 200px) var(--pad) clamp(64px, 7vw, 120px); border-top: 1px solid var(--rule); }
.tool:first-of-type { border-top: 0; }
.tool::before, .how::before { content: ""; position: absolute; top: -7px; left: calc(var(--pad) - 7px); width: 15px; height: 15px;
  background: linear-gradient(var(--ink), var(--ink)) 7px 0 / 1px 15px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 7px / 15px 1px no-repeat; }
.tool::after, .how::after { content: ""; position: absolute; top: -7px; right: calc(var(--pad) - 7px); width: 15px; height: 15px;
  background: linear-gradient(var(--ink), var(--ink)) 7px 0 / 1px 15px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 7px / 15px 1px no-repeat; }
.tool-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.h2 { grid-column: 1 / -1; margin: 0; font-weight: 600; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 140px); line-height: .92; letter-spacing: -.03em; }
.lede { grid-column: 3 / 5; max-width: 52ch; margin: 0; font-size: clamp(16px, 1.1vw, 21px); line-height: 1.45; color: rgba(17, 19, 18, .78); }
.h3 { margin: 0 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.stone .note { color: rgba(17, 19, 18, .6); }
.empty { margin: 0; padding: 28px 0; font-size: 19px; color: rgba(17, 19, 18, .66); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* fields */
.field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-size: 15px; color: rgba(17, 19, 18, .7); padding: 0; }
.field input[type="text"], .field input[type="number"] { width: 100%; height: 52px; padding: 0 16px; background: rgba(237, 230, 214, .55); border: 1px solid var(--rule); border-radius: 4px; font-size: 18px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--ink); background: var(--cream); }
.money { display: flex; align-items: center; background: rgba(237, 230, 214, .55); border: 1px solid var(--rule); border-radius: 4px; height: 52px; }
.money:focus-within { border-color: var(--ink); background: var(--cream); }
.money span { padding: 0 12px; font-size: 17px; color: rgba(17, 19, 18, .6); }
.money input { border: 0 !important; background: transparent !important; height: 50px !important; padding: 0 12px 0 0 !important; }
.money input:first-child { padding-left: 16px !important; }
input[type="number"]::-webkit-inner-spin-button { opacity: .4; }
.seg { flex-direction: row; flex-wrap: wrap; gap: 0; align-self: start; }
.seg legend { width: 100%; margin-bottom: 8px; float: left; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 52px; padding: 0 20px; border: 1px solid var(--rule); margin-left: -1px; font-size: 17px; background: rgba(237, 230, 214, .35); transition: background .2s, color .2s; }
.seg label:first-of-type span { border-radius: 4px 0 0 4px; margin-left: 0; }
.seg label:last-of-type span { border-radius: 0 4px 4px 0; }
.seg input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.picker { position: relative; }
.picker-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--cream); border: 1px solid var(--ink); border-radius: 4px; max-height: 340px; overflow: auto; box-shadow: 0 24px 48px -24px rgba(17, 19, 18, .5); }
.picker-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 3px; cursor: pointer; }
.picker-list li[aria-selected="true"], .picker-list li:hover { background: var(--stone); }
.picker-list img, .tok img { width: 26px; height: 26px; border-radius: 50%; background: var(--stone2); flex: none; object-fit: cover; }
.picker-list b { font-weight: 600; }
.picker-list small { color: rgba(17, 19, 18, .6); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-list .px { margin-left: auto; font: 13px var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; font-size: 15px; cursor: pointer; }
.chips button:hover, .chips button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pick-now { margin: 0; font-size: 15px; color: rgba(17, 19, 18, .66); display: flex; align-items: center; gap: 8px; min-height: 26px; }
.pick-now img { width: 22px; height: 22px; border-radius: 50%; }
.pick-now .warn { color: var(--down); }

/* backtest */
.bt-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: var(--pad); align-items: end; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.bt-form .token-field { gap: 8px; }
.bt-form > .pill { height: 52px; padding: 0 32px; font-size: 17px; }
.bt-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); padding: clamp(32px, 4vw, 56px) 0; }
.stat .k { margin: 0 0 8px; font-size: 16px; color: rgba(17, 19, 18, .66); }
.stat .v { margin: 0; font-weight: 600; font-size: clamp(40px, 5vw, 120px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat .d { margin: 12px 0 0; font-size: 17px; }
.lime-ink { color: var(--ink); background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); display: inline-block; }
.up { color: #2f6b1d; } .dn { color: var(--down); }
.bt-chart { position: relative; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.bt-chart canvas { display: block; width: 100%; height: clamp(180px, 22vw, 420px); }
.bt-chart figcaption { margin-top: 16px; max-width: 72ch; }
.bt-chart figcaption a { color: var(--ink); }
.bt-share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bt-out.loading .v { opacity: .3; }
.legend { display: flex; gap: 24px; margin: 0 0 8px; font-size: 15px; color: rgba(17, 19, 18, .7); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }

/* set */
.set-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2vw, 32px) var(--pad); align-items: start; }
.set-form .wide { grid-column: 1 / 3; }
.set-form #setPay { grid-column: 3; }
.set-form .field:has(#setPer) { grid-column: 4; }
.set-form #setEvery { grid-column: 1 / 3; }
.set-form .field:has(#setN) { grid-column: 3; }
.smart { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; }
.smart summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; font-size: 19px; font-weight: 560; }
.smart summary::-webkit-details-marker { display: none; }
.sw { position: relative; width: 44px; height: 24px; border-radius: 99px; background: rgba(17, 19, 18, .18); flex: none; transition: background .25s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); transition: transform .3s var(--ease); }
.smart[open] .sw { background: var(--ink); }
.smart[open] .sw::after { transform: translateX(20px); background: var(--lime); }
.smart-help { margin: 16px 0 16px; max-width: 64ch; color: rgba(17, 19, 18, .7); }
.smart-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); max-width: 50%; }
.summary { grid-column: 1 / 4; }
.sum-line { margin: 0 0 16px; font-size: clamp(22px, 2vw, 36px); line-height: 1.2; font-weight: 560; letter-spacing: -.015em; max-width: 30ch; }
.sum-line b { background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 94%, transparent 94%); font-weight: 600; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: rgba(17, 19, 18, .72); }
.rules li { padding-left: 20px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: currentColor; }
.rules li.bad { color: var(--down); font-weight: 560; }
.set-go { grid-column: 4; display: flex; flex-direction: column; gap: 12px; align-self: end; }
.set-go .pill { width: 100%; }
.status { margin: 0; font-size: 15px; min-height: 1.5em; color: rgba(17, 19, 18, .76); }
.status a { color: var(--ink); }
.status.err { color: var(--down); }

/* orders */
.orders { display: grid; gap: 0; }
.ord { display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(5, minmax(0, 1fr)) auto; gap: 20px var(--pad); align-items: center; padding: 24px 0; border-top: 1px solid var(--rule); }
.ord:last-child { border-bottom: 1px solid var(--rule); }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok b { font-size: 21px; font-weight: 600; display: block; }
.tok span { font-size: 15px; color: rgba(17, 19, 18, .66); display: block; }
.cell .k { margin: 0 0 2px; font-size: 14px; color: rgba(17, 19, 18, .6); }
.cell .v { margin: 0; font-size: 20px; font-weight: 560; font-variant-numeric: tabular-nums; }
.ord-act { display: flex; gap: 8px; justify-content: flex-end; }
.bar { grid-column: 1 / -1; height: 6px; display: grid; grid-auto-flow: column; gap: 4px; }
.bar i { background: rgba(17, 19, 18, .14); border-radius: 2px; }
.bar i.f { background: var(--ink); }
.bar i.n { background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.orders-past { margin-top: 48px; }
.orders-past .ord { opacity: .78; }
#ordSource { margin-top: 28px; }

/* popular */
.pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.pop .empty { grid-column: 1 / -1; border-top: 0; }
.pcard { padding: 24px 20px 28px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 16px; }
.pcard .n { font-size: clamp(30px, 3vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pcard p { margin: 0; font-size: 15px; color: rgba(17, 19, 18, .7); }
.pcard .pill { justify-self: start; height: 34px; font-size: 14px; }

/* how it runs: plate stack + accordion */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); align-items: start; }
.how-stack { grid-column: 1 / 3; position: sticky; top: 90px; height: min(76vh, 640px); display: grid; place-items: center; }
.plates { position: relative; width: min(30vw, 420px); aspect-ratio: 1; transform: rotateX(58deg) rotateZ(-42deg); transform-style: preserve-3d; }
.plate { position: absolute; inset: 0; border: 1px solid var(--ink); background: rgba(237, 230, 214, .5); transition: transform .7s var(--ease), background .4s; }
.plate span { position: absolute; left: 12px; bottom: 10px; font-size: 15px; font-weight: 560; }
.plate[data-i="0"] { transform: translateZ(0); }
.plate[data-i="1"] { transform: translateZ(54px); }
.plate[data-i="2"] { transform: translateZ(108px); }
.plate[data-i="3"] { transform: translateZ(162px); }
.plate.on { background: var(--lime); }
.plates[data-on="0"] .plate[data-i="0"] { transform: translateZ(-30px); }
.plates[data-on="1"] .plate[data-i="1"] { transform: translateZ(84px) translate(-14px, -14px); }
.plates[data-on="2"] .plate[data-i="2"] { transform: translateZ(138px) translate(-14px, -14px); }
.plates[data-on="3"] .plate[data-i="3"] { transform: translateZ(206px) translate(-14px, -14px); }
.how-text { grid-column: 3 / 5; }
.how .h2 { margin-bottom: clamp(32px, 4vw, 64px); }
.acc details { border-top: 1px solid var(--rule); }
.acc details:last-child { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: clamp(24px, 2.2vw, 40px); font-weight: 560; letter-spacing: -.02em; }
.acc summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 18px; height: 18px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
.acc details[open] .pm::after { transform: rotate(0); }
.acc details p { margin: 0 0 28px; max-width: 52ch; font-size: 18px; color: rgba(17, 19, 18, .76); }

/* ---------- close ---------- */
.close { position: relative; background: var(--ink); padding: clamp(92px, 12vw, 220px) var(--pad) var(--pad); overflow: hidden; }
.close-title { margin: 0; font-weight: 600; text-transform: uppercase; font-size: clamp(36px, 7.6vw, 210px); line-height: .9; letter-spacing: -.035em; display: grid; }
.close-title .a { justify-self: start; }
.close-title .b { justify-self: end; color: var(--lime); text-align: right; }
.close-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); margin: clamp(60px, 8vw, 140px) 0 clamp(60px, 7vw, 120px); }
.close-stats > div { border-top: 1px solid var(--line); padding-top: 16px; }
.close-stats > div:first-child { grid-column: 2; }
.close-stats .v { margin: 0; font-size: clamp(40px, 4.6vw, 110px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.close-stats .k { margin: 8px 0 0; font-size: 16px; color: var(--mute); }
.foot { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--pad); align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.foot-brand img { border-radius: 5px; }
.foot-icons { display: flex; gap: 8px; justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; max-width: min(560px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 6px;
  background: var(--cream); color: var(--ink); font-size: 15px; transition: transform .45s var(--ease); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- motion states (JS adds .js; reduced motion skips them) ---------- */
.js .reveal .ln > span, .js .hero-title .ln > span { transform: translateY(105%); }
.js .reveal.in .ln > span { transform: none; transition: transform 1s var(--ease); }
.js .reveal.in .ln:nth-child(2) > span { transition-delay: .08s; }

/* ---------- widths ---------- */
@media (min-width: 2000px) { body { font-size: 19px; } .note { font-size: 15px; } .top { padding-top: 20px; padding-bottom: 20px; } }
@media (max-width: 1180px) {
  .menu { display: none; }
  .ord { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .ord .tok { grid-column: 1 / -1; }
  .ord-act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 980px) {
  .tool-head { grid-template-columns: 1fr; }
  .h2, .lede { grid-column: 1; }
  .lede { max-width: 52ch; }
  .bt-form { grid-template-columns: 1fr 1fr; }
  .bt-form .token-field { grid-column: 1 / -1; }
  .set-form { grid-template-columns: 1fr 1fr; }
  .set-form .wide, .set-form #setEvery, .smart, .summary, .set-go { grid-column: 1 / -1 !important; }
  .set-form #setPay, .set-form .field:has(#setPer), .set-form .field:has(#setN) { grid-column: auto; }
  .smart-row { max-width: none; }
  .pop { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .how-stack { position: relative; top: 0; grid-column: 1; height: 360px; }
  .plates { width: 240px; }
  .how-text { grid-column: 1; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-cta { grid-column: 1 / -1; }
  .hero-note { grid-column: 1 / -1; max-width: 46ch; text-align: left; }
  .close-stats { grid-template-columns: repeat(3, 1fr); }
  .close-stats > div:first-child { grid-column: auto; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .note { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  .top { gap: 8px; }
  .brand span, .ca { display: none; }
  .ca.live { display: inline-flex; align-items: center; }
  .pill { padding: 0 12px; font-size: 14px; }
  .pill-lg { height: 48px; padding: 0 24px; font-size: 16px; }
  #buyBtn { display: none; }
  .hero-title { grid-template-columns: 1fr; }
  .hero-title .l2 { grid-column: 1; padding-left: 1.2em; }
  .hero-title .l3 { padding-right: 1.4em; }
  .moment-side { top: auto; transform: none; position: absolute; left: 0 !important; right: 0 !important; text-align: center; }
  .moment-side.left { top: 18%; } .moment-side.right { bottom: 18%; }
  .bt-nums { grid-template-columns: 1fr; gap: 28px; }
  .ord { grid-template-columns: 1fr 1fr; }
  .pop { grid-template-columns: 1fr; }
  .close-stats { grid-template-columns: 1fr; gap: 24px; }
  .close-title .b { justify-self: start; text-align: left; }
}
@media (max-width: 420px) {
  .ico { width: 34px; height: 34px; }
  .bt-form, .set-form, .smart-row { grid-template-columns: 1fr; }
  .seg span { padding: 0 16px; }
  .foot { grid-template-columns: 1fr; }
  .foot-icons { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .moment { height: 100svh; }
  .js .reveal .ln > span, .js .hero-title .ln > span { transform: none !important; }
  * { transition-duration: .01ms !important; }
}
.moment.done .cross { display: none; }
.how-stack { overflow: hidden; }
.hero .pill-line { background: rgba(17, 19, 18, .72); }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; row-gap: 12px; }
  .brand span { display: inline; }
  .act { display: contents; }
  #connectBtn { order: 1; margin-left: auto; }
  .ca, .ca.live { display: inline-flex; align-items: center; order: 2; height: 34px; padding: 0 12px; font-size: 12px; }
  #buyBtn { display: inline-flex; order: 3; height: 34px; }
  .top .ico { order: 4; }
  #xLink { margin-left: auto; }
  .hero { padding-top: 152px; }
  .hero .c-tl, .hero .c-tr { top: 128px; }
  .hero-title { font-size: 12vw; }
  .hero-note { background: rgba(17, 19, 18, .85); padding: 12px 0; }
}
@media (max-width: 360px) { .ca, .ca.live { padding: 0 8px; } #buyBtn { padding: 0 12px; } .top .ico { width: 32px; height: 32px; } }
@media (max-width: 720px) {
  .brand { margin-right: auto; }
  .top .ico { order: 1; }
  #xLink { margin-left: 0; }
  #connectBtn { margin-left: 0; }
  .hero { padding-top: 140px; }
  .hero .c-tl, .hero .c-tr { top: 116px; }
}
@media (max-width: 380px) { .brand span { display: none; } #connectBtn { padding: 0 12px; } }

.pill:active { transform: translateY(1px); }
.chips button:active, .seg span:active { opacity: .8; }
.field input:disabled { opacity: .5; cursor: not-allowed; }
.chips button:focus-visible, .pill:focus-visible, .ico:focus-visible, .ca:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; transition: none; }
.stone .pill:focus-visible, .stone .chips button:focus-visible { outline-color: var(--ink); }
