@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* Reply: a product film on black (the trade plays inside a phone as you scroll), then light pages for the details.
   The sunrise gradient is the one colour moment; amber is only where you act; green only means filled. */
:root {
  --black: #000; --ink: #1d1d1f; --paper: #f5f5f7; --white: #fff;
  --dim: #6e6e73; --dim-dark: #a1a1a6; --rule: #d2d2d7; --rule-dark: rgba(255,255,255,.14);
  --sun: linear-gradient(100deg, #ffd25e 0%, #ff9a3c 45%, #ff5e7a 100%);
  --amber: #ffb020; --amber-hover: #ffc04d; --green: #30d158; --green-ink: #1f8f46;
  --ease: cubic-bezier(.28,.11,.32,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 17px/1.47 'Satoshi', system-ui, -apple-system, sans-serif; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
body.light { background: var(--paper); color: var(--ink); }
/* short pages: main takes the spare height so the footer always sits at the bottom */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .foot { flex-shrink: 0; }
a { color: inherit; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
@view-transition { navigation: auto; }

/* nav: frosted, and it takes the colour of the section under it */
.nav { position: sticky; top: 0; z-index: 50; height: 52px; view-transition-name: nav;
  background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.nav.on-light, body.light .nav { background: rgba(245,245,247,.8); color: var(--ink); border-bottom-color: rgba(0,0,0,.08); }
.nav-in { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav a.link { text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .8; transition: opacity .2s; }
.nav a.link:hover, .nav a.link[aria-current] { opacity: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border: 0; border-radius: 980px;
  background: var(--amber); color: #000; font: 700 16px 'Satoshi', sans-serif; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--amber-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.small { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.quiet { background: rgba(255,255,255,.12); color: var(--white); }
.btn.quiet:hover { background: rgba(255,255,255,.2); }
body.light .btn.quiet, .light-sec .btn.quiet { background: rgba(0,0,0,.06); color: var(--ink); }
body.light .btn.quiet:hover, .light-sec .btn.quiet:hover { background: rgba(0,0,0,.1); }
.textlink { color: var(--amber); text-decoration: none; font-weight: 500; font-size: 17px; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
body.light .textlink, .light-sec .textlink { color: #b36b00; }
.xmark { width: 15px; height: 15px; flex: none; }

/* ---------- the film: a tall track with a sticky stage ---------- */
.film { position: relative; height: 640vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.intro { position: absolute; inset: 0 0 auto; padding: 15vh 24px 0; text-align: center; will-change: transform, opacity; }
.display { margin: 0; font-weight: 900; font-size: clamp(56px, 10vw, 128px); line-height: .98; letter-spacing: -.055em;
  background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lede { text-wrap: balance; margin: 18px auto 0; max-width: 26em; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: var(--white); }
.cta { margin-top: 30px; display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* wide screens: the headline holds the left column (where the step captions take over) and the phone is whole on the right */
@media (min-width: 901px) {
  .intro { inset: auto; left: max(24px, calc(50% - 520px)); top: 50%; width: min(520px, 42vw); padding: 0; text-align: left; transform: translateY(-50%); }
  .intro .cta { justify-content: flex-start; }
  .intro .display { font-size: clamp(64px, 7.4vw, 112px); }
  .intro .lede { margin-left: 0; }
}

/* the phone rises from below the intro, then holds while the trade plays */
.device { position: absolute; left: 50%; top: 50%; height: min(80vh, 760px); height: min(80svh, 760px); aspect-ratio: 9 / 19.3;
  transform: translate(-50%, -50%); will-change: transform; }
.phone { animation: phone-in 1.1s var(--ease) .15s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(48px); } }
.phone { position: absolute; inset: 0; border-radius: 15% / 7%; padding: 3.4%; background: linear-gradient(145deg, #3a3a3d, #121214 40%, #2a2a2d);
  box-shadow: 0 0 0 1.5px #4a4a4e inset, 0 50px 120px -30px rgba(255,140,60,.28), 0 30px 60px rgba(0,0,0,.6); }
.screen { position: relative; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #000; container-type: inline-size;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; color: #e7e9ea; }
.island { position: absolute; z-index: 5; top: 2.4%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.sbar { display: flex; justify-content: space-between; padding: 4.6cqw 8cqw 0; font-size: 4cqw; font-weight: 600; height: 12cqw; }
.xhead { display: flex; align-items: center; gap: 7cqw; padding: 2cqw 5cqw 3cqw; font-size: 5cqw; font-weight: 700; border-bottom: 1px solid #2f3336; }
.tw { display: grid; grid-template-columns: 11cqw 1fr; gap: 3cqw; padding: 4cqw 5cqw; font-size: 4.1cqw; line-height: 1.35; }
.tw .av { width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 4.4cqw; }
.tw .nm { display: flex; gap: 1.6cqw; align-items: baseline; white-space: nowrap; overflow: hidden; }
.tw .nm b { color: #e7e9ea; } .tw .nm span { color: #71767b; overflow: hidden; text-overflow: ellipsis; }
.tw p { margin: 1cqw 0 0; overflow-wrap: anywhere; }
.tw .ca { display: inline-block; margin-top: 1.5cqw; padding: .6cqw 2cqw; border-radius: 2cqw; background: #16181c; color: #c5cbd1; font-size: 3.5cqw; word-break: break-all; }
.tw .rto { color: #71767b; font-size: 3.6cqw; } .tw .rto b { color: #1d9bf0; font-weight: 400; }
.tw .tag { color: #1d9bf0; }
.main .av { background: linear-gradient(135deg, #3d6b35, #8fbf4d); color: #fff; }
.meta { padding: 0 5cqw 3cqw; color: #71767b; font-size: 3.7cqw; border-bottom: 1px solid #2f3336; }
.acts span { display: inline-flex; align-items: center; gap: 1.4cqw; } .acts svg { width: 4cqw; height: 4cqw; }
.acts { display: flex; justify-content: space-around; padding: 3cqw 5cqw; color: #71767b; font-size: 3.6cqw; border-bottom: 1px solid #2f3336; }
.mine .av { background: #333639; color: #e7e9ea; }
.botp .av { background: var(--sun); color: #000; }
.fillline { display: inline-flex; align-items: center; gap: 2cqw; }
.ok { width: 5cqw; height: 5cqw; border-radius: 1.4cqw; background: var(--green); display: inline-grid; place-items: center; flex: none; }
.dots { display: inline-flex; gap: 1.2cqw; } .dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #71767b; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { position: absolute; left: 0; right: 0; bottom: 0; padding: 3cqw 5cqw 8cqw; background: #000; border-top: 1px solid #2f3336;
  display: grid; grid-template-columns: 9cqw 1fr auto; gap: 3cqw; align-items: center; transition: transform .5s var(--ease), opacity .4s; }
.composer .av { width: 9cqw; height: 9cqw; border-radius: 50%; background: #333639; display: grid; place-items: center; font-size: 3.6cqw; font-weight: 700; }
.composer .field { font-size: 4.3cqw; color: #71767b; white-space: nowrap; overflow: hidden; }
.composer .field.has { color: #e7e9ea; }
.composer .field .tag { color: #1d9bf0; }
.composer .caret { display: inline-block; width: .5cqw; height: 4.6cqw; background: #1d9bf0; vertical-align: -.8cqw; margin-left: .3cqw; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer .send { padding: 1.8cqw 4cqw; border-radius: 99px; background: #eff3f4; color: #0f1419; font-weight: 700; font-size: 3.7cqw; opacity: .5; transition: opacity .3s; }
.composer .send.go { opacity: 1; }
.sheet { position: absolute; left: 2.5cqw; right: 2.5cqw; bottom: 2.5cqw; padding: 5cqw; border-radius: 7cqw; background: #1c1c1e; color: #fff;
  box-shadow: 0 -20px 60px rgba(0,0,0,.6); transition: transform .6s var(--ease), opacity .4s; font-family: 'Satoshi', system-ui, sans-serif; }
.sheet .k { color: #a1a1a6; font-size: 3.6cqw; font-weight: 500; }
.sheet .big { font-size: 9cqw; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; margin-top: 1.5cqw; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet .row { display: flex; justify-content: space-between; margin-top: 3cqw; padding-top: 3cqw; border-top: 1px solid rgba(255,255,255,.1); font-size: 3.7cqw; color: #d1d1d6; }
.sheet .row b { color: var(--green); font-weight: 700; }
/* what the phone shows at each step (set on .device as data-step) */
/* your reply and the bot's take no room until they're posted, then open in above the other replies */
.reveal { max-height: 40cqw; overflow: hidden; transition: opacity .45s var(--ease), max-height .5s var(--ease), padding .5s var(--ease); }
.device[data-step="0"] .s2, .device[data-step="1"] .s2 { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.tw.other { color: #c4c9ce; }
.tw.other .av { color: #fff; }
.device:not([data-step="1"]) .composer { transform: translateY(105%); opacity: 0; }
.device:not([data-step="4"]) .sheet { transform: translateY(115%); opacity: 0; }
.device .ans .done, .device[data-step="3"] .ans .wait, .device[data-step="4"] .ans .wait { display: none; }
.device[data-step="3"] .ans .done, .device[data-step="4"] .ans .done { display: inline-flex; }

/* captions: one at a time beside the phone */
.caps { position: absolute; left: max(24px, calc(50% - 520px)); top: 50%; width: min(400px, 36vw); transform: translateY(-50%); pointer-events: none; }
.cap { position: absolute; left: 0; top: 0; transform: translateY(-50%); opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cap.on { opacity: 1; }
.cap h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.cap p { margin: 14px 0 0; color: var(--dim-dark); font-size: 19px; line-height: 1.4; max-width: 22em; }
.cap .step { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 700; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- the statement: words light up as you read down ---------- */
.statement { max-width: 980px; margin: 0 auto; padding: 18vh 24px 22vh; }
.statement p { margin: 0; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -.045em; }
.statement .w { color: #3a3a3c; transition: color .25s linear; }
.statement .w.lit { color: var(--white); }
.statement .w.sun.lit { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- light sections ---------- */
.light-sec { background: var(--paper); color: var(--ink); }
.wrap { max-width: 980px; margin: 0 auto; padding: 120px 24px; }
.wrap + .wrap { padding-top: 0; }
.h-sec { margin: 0 0 48px; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.steps3 > div { padding: 28px 28px 8px 0; }
.steps3 > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps3 .n { font-size: 56px; font-weight: 900; letter-spacing: -.05em; line-height: 1; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps3 h3 { margin: 18px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.steps3 p { margin: 0; color: var(--dim); }
.steps3 code, .doc code { font: inherit; font-weight: 700; color: var(--ink); background: rgba(0,0,0,.06); border-radius: 6px; padding: 1px 7px; }
.livegrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.feed li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.feed li span:last-child { color: var(--dim); white-space: nowrap; }
.feed .empty { color: var(--dim); }
.burnbox strong { border-top: 1px solid var(--rule); padding-top: 22px; display: block; font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 900; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.burnbox span:not(.label) { display: block; margin-top: 12px; color: var(--dim); }
.label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* closing */
.close { text-align: center; padding: 160px 24px; }
.close h2 { margin: 0 auto; max-width: 14em; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -.05em; }
.close .cta { margin-top: 36px; }

/* footer */
.foot { background: var(--paper); color: var(--dim); font-size: 12px; }
.foot-in { max-width: 980px; margin: 0 auto; padding: 22px 24px 40px; display: flex; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.foot a { text-decoration: none; letter-spacing: .12em; text-transform: uppercase; } .foot a:hover { color: var(--ink); }
.foot .fine { margin-left: auto; }

/* skeleton */
.skel { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #e8e8ed 25%, #f2f2f5 50%, #e8e8ed 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin: 8px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- app ---------- */
.app { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.gate { max-width: 560px; margin: 72px auto 40px; text-align: center; }
.gate h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -.05em; line-height: 1.02; margin: 0; }
.gate p { color: var(--dim); margin: 16px 0 30px; font-size: 19px; }
.note { color: var(--dim); font-size: 14px; margin-top: 12px; min-height: 1.4em; }
.note.err { color: #c4262e; }
.grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--white); border-radius: 18px; padding: 26px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { margin: 0 0 14px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.bal { font-size: 52px; font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bal small { font-size: 21px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.addr { display: flex; gap: 10px; align-items: center; margin-top: 20px; background: var(--paper); border-radius: 12px; padding: 10px 10px 10px 14px; }
.addr code { font: 500 14px 'Satoshi', sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; flex: 1; }
.qr { margin-top: 14px; width: 168px; height: 168px; } .qr svg { width: 168px; height: 168px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: 500 15px 'Satoshi', sans-serif; color: #b36b00; margin-top: 8px; }
.linkbtn:hover { text-decoration: underline; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-top: 1px solid #e8e8ed; }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.rows .sym { font-weight: 700; }
.rows .sub { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.rows .acts2 { display: flex; gap: 8px; grid-row: span 2; }
.rows .empty { display: block; color: var(--dim); border: 0; }
.side { font-weight: 700; } .side.buy { color: var(--green-ink); } .side.sell { color: #c4262e; }
.fieldset { display: block; margin-bottom: 20px; }
.fieldset > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.fieldset small { display: block; color: var(--dim); font-size: 13px; margin-top: 6px; }
.input { width: 100%; height: 44px; border: 1px solid #d2d2d7; border-radius: 12px; padding: 0 14px; font: 500 16px 'Satoshi', sans-serif; color: var(--ink); background: #fff; transition: border-color .2s; }
.input:focus { outline: none; border-color: var(--ink); }
.suffix { position: relative; } .suffix::after { content: attr(data-suffix); position: absolute; right: 14px; top: 11px; color: var(--dim); font-size: 15px; pointer-events: none; }
.seg { display: inline-flex; background: var(--paper); border-radius: 980px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; height: 34px; padding: 0 15px; border-radius: 980px; font: 500 14px 'Satoshi', sans-serif; color: var(--dim); cursor: pointer; transition: background .25s var(--ease), color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.toggle { position: relative; width: 51px; height: 31px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle i { position: absolute; inset: 0; border-radius: 99px; background: #e5e5ea; transition: background .25s var(--ease); pointer-events: none; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.toggle input:checked + i { background: var(--green); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 2px solid var(--amber); outline-offset: 3px; }
.row2 { display: flex; gap: 8px; } .row2 .input { flex: 1; }
.who-am { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.who-am h1 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -.045em; }

/* ---------- guide ---------- */
.doc { max-width: 740px; margin: 0 auto; padding: 72px 24px 100px; }
.doc h1 { font-size: clamp(48px, 7vw, 80px); font-weight: 900; letter-spacing: -.055em; line-height: 1; margin: 0 0 18px; }
.doc .lede2 { color: var(--dim); font-size: 21px; line-height: 1.38; margin: 0 0 48px; }
.doc h2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; margin: 52px 0 12px; }
.doc p { color: #424245; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 17px; }
.doc td { padding: 14px 0; border-top: 1px solid var(--rule); vertical-align: top; color: #424245; }
.doc td:first-child { width: 40%; padding-right: 16px; }

@media (max-width: 900px) {
  .grid, .livegrid { grid-template-columns: 1fr; }
  .livegrid { gap: 48px; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  /* the phone stays centred and smaller; the caption sits above it */
  .device { height: min(64vh, 620px); height: min(64svh, 620px); top: 58%; }
  .caps { left: 24px; right: 24px; width: auto; top: 76px; transform: none; text-align: center; }
  .cap { left: 0; right: 0; transform: none; }
  .cap h2 { font-size: clamp(26px, 6.4vw, 36px); }
  .cap p { display: none; }
  .cap .step { margin-bottom: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-in { gap: 18px; padding: 0 16px; }
  .intro { padding-top: 11vh; }
  .wrap { padding: 88px 16px; }
  .close { padding: 110px 16px; }
  .statement { padding-left: 16px; padding-right: 16px; }
  .app, .doc { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 20px; }
  .foot .fine { margin-left: 0; }
}
/* reduced motion: no pinning, the phone shows the finished trade */
.film.still { height: auto; }
.film.still .stage { position: relative; height: auto; padding-bottom: 60px; }
.film.still .intro { position: relative; }
.film.still .device { position: relative; left: auto; top: auto; transform: none; margin: 48px auto 0; }
.film.still .caps { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
