/* Shopstack concept. Tokens, type and colours are the live site's own (VT323 + IBM Plex Mono, black, white, signal green). */
@font-face { font-family: "VT323"; src: url("../../assets/fonts/vt323-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../../assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --void: #000; --ink: #fff; --ink-2: #bcbcbc; --ink-3: #828282; --panel: #101010; --panel-2: #0a0a0a;
  --border: #242424; --border-strong: #444; --signal: #0f6; --signal-soft: #00ff661a; --signal-border: #00ff668c;
  --amber: #ffb000; --error: #ff4d4d;
  --display: "VT323", "Courier New", monospace; --mono: "IBM Plex Mono", "Courier New", monospace;
  --top: 68px; --gut: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --void: #fff; --ink: #000; --ink-2: #333; --ink-3: #5f5f5f; --panel: #f2f2f2; --panel-2: #f7f7f7;
  --border: #d7d7d7; --border-strong: #b5b5b5; --signal: #0b713e; --signal-soft: #168f521a; --signal-border: #168f527a;
  --amber: #875a00; --error: #b42318;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body { margin: 0; background: var(--void); color: var(--ink); font-family: var(--mono); font-size: 16px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--void); padding: 10px 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50; display: flex; align-items: center; gap: 28px; padding: 0 var(--gut); background: color-mix(in srgb, var(--void) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; letter-spacing: .14em; text-decoration: none; margin-right: auto; }
.top-brand svg { width: 22px; height: 22px; color: var(--signal); }
.top-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.top-nav a { font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); transition: color .2s; }
.top-nav a:hover, .top-nav a[aria-current], .top-nav a.is-here { color: var(--ink); }
.top-nav .top-cta { color: var(--ink); border: 1px solid var(--border-strong); padding: 9px 14px; transition: background .2s, color .2s, border-color .2s; }
.top-nav .top-cta:hover { background: var(--signal); border-color: var(--signal); color: #000; }
:root[data-theme="light"] .top-nav .top-cta:hover { color: #fff; }
.top-theme { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); }
.top-theme:hover { color: var(--ink); }
.top-theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.top-menu { display: none; font-family: var(--display); font-size: 16px; letter-spacing: .1em; border: 1px solid var(--border-strong); padding: 6px 12px; }
@media (max-width: 820px) {
  .top { gap: 12px; }
  .top-menu { display: block; }
  .top-nav { position: absolute; left: 0; right: 0; top: var(--top); flex-direction: column; align-items: stretch; gap: 0; background: var(--void); border-bottom: 1px solid var(--border); display: none; }
  .top-nav.is-open { display: flex; }
  .top-nav a { padding: 18px var(--gut); border-top: 1px solid var(--border); font-size: 18px; }
  .top-nav .top-cta { border: 0; border-top: 1px solid var(--border); padding: 18px var(--gut); color: var(--signal); }
}

/* ---------- shared type ---------- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7vw, 100px); line-height: .84; letter-spacing: -.025em; text-wrap: balance; }
.textcta { display: inline-flex; align-items: center; gap: 44px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding-bottom: 14px; border-bottom: 1px solid var(--ink); transition: color .2s, border-color .2s, gap .25s; }
.textcta:hover { color: var(--signal); border-color: var(--signal); gap: 56px; }

/* ---------- 3D stage (fixed, behind the page) ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
html.gl-ready #stage { opacity: 1; }
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; display: none; }
html.gl-ready .labels { display: block; }
.lb { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.lb-node { font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: .12em; color: var(--ink); }
.lb-node small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-3); text-align: center; margin-top: 2px; }
.lb-layer i { font-style: normal; color: var(--ink-3); margin-right: 6px; }
.lb-layer.is-lit { color: var(--signal); }
.lb-layer.is-wait { color: var(--amber); }
.lb-call { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--void); background: var(--signal); padding: 3px 8px; }
.lb-approve { text-transform: none; letter-spacing: 0; background: var(--void); border: 1px solid var(--amber); padding: 10px 12px; display: grid; gap: 4px; min-width: 150px; }
.lb-approve b { font-size: 11px; font-weight: 600; color: var(--amber); letter-spacing: .04em; }
.lb-approve span { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink); }
.lb-approve em { font-style: normal; font-size: 11px; font-weight: 600; text-align: center; padding: 6px 8px; margin-top: 4px; background: var(--ink); color: var(--void); transition: background .25s, color .25s; }
.lb-approve.is-ok { border-color: var(--signal); }
.lb-approve.is-ok b { color: var(--signal); }
.lb-approve.is-ok em { background: var(--signal); color: #000; }
.lb-say { text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--void); background: var(--ink); padding: 1px 10px 2px; }
.lb-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.lb-status { text-transform: none; letter-spacing: .02em; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.lb-status.is-paid { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--signal); }
.lb-done { color: var(--signal); border: 1px solid var(--signal-border); background: var(--void); padding: 5px 9px; letter-spacing: .1em; }
@media (max-width: 820px) {
  .lb { font-size: 8px; letter-spacing: .1em; }
  .lb-node { font-size: 14px; }
  .lb-node small { display: none; }
  .lb-layer i { display: none; }
  .lb-say::after { left: 26%; }
  .lb-call { font-size: 9px; padding: 2px 5px; }
  .lb-approve { min-width: 104px; padding: 6px 8px; gap: 2px; }
  .lb-approve b { font-size: 8px; }
  .lb-approve span { font-size: 17px; }
  .lb-approve em { font-size: 8px; padding: 4px; margin-top: 2px; }
  .lb-done { font-size: 8px; padding: 3px 6px; }
  .lb-say { font-size: 14px; padding: 0 6px 1px; }
  .lb-status { font-size: 8px; }
  .lb-status.is-paid { font-size: 15px; }
}

.home { position: relative; z-index: 1; }
.home > section { position: relative; }
.solid { background: var(--void); border-top: 1px solid var(--border); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 38.2%, 640px); padding-top: var(--top); text-align: center; position: relative; }
.hero-brand { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; padding: 40px var(--gut) 96px; }
.hero-in { position: relative; width: 100%; min-width: 0; max-width: 800px; display: flex; flex-direction: column; align-items: center; padding: clamp(44px, 10vh, 104px) clamp(18px, 3vw, 44px); }
.reg { position: absolute; inset: 0; pointer-events: none; --c: var(--border-strong); --l: 32px;
  background: linear-gradient(var(--c), var(--c)) left top / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l) no-repeat; }
.hero-field { position: relative; border-left: 1px solid var(--border); overflow: hidden; min-height: 420px; background: var(--void); }
.hero-field canvas, .cta-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--mono); }
.hero-new { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border: 1px solid var(--border); transition: border-color .2s, color .2s; }
.hero-new b { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--signal); }
.hero-new span { color: var(--signal); transition: transform .25s; }
.hero-new:hover { border-color: var(--signal-border); color: var(--ink); }
.hero-new:hover span { transform: translateX(4px); }
.hero-mark { width: 100%; max-width: 680px; margin: clamp(26px, 5vh, 52px) 0 clamp(16px, 3vh, 28px); }
.hero-mark svg { width: 100%; height: auto; shape-rendering: crispEdges; }
html.gl-ready .hero-mark svg { visibility: hidden; }
.hero-tag { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .02em; color: var(--ink-3); }
.setup { width: min(100%, 460px); margin-top: clamp(26px, 4vh, 40px); scroll-margin-top: 40vh; }
.wait { display: flex; border: 1px solid var(--border-strong); background: var(--panel-2); transition: border-color .2s; }
.wait:focus-within { border-color: var(--signal); }
.wait-email { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 400 14px var(--mono); letter-spacing: .04em; padding: 15px 14px; outline: none; }
.wait-email::placeholder { color: var(--ink-3); }
.wait-btn { display: flex; align-items: center; gap: 22px; padding: 0 16px; border-left: 1px solid var(--border-strong); font-family: var(--display); font-size: 15px; letter-spacing: .06em; white-space: nowrap; transition: background .2s, color .2s; }
.wait-btn:hover { background: var(--signal); color: #000; }
:root[data-theme="light"] .wait-btn:hover { color: #fff; }
.hero-live { position: absolute; left: 18px; top: 16px; font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
.hero-live b { font-weight: 400; color: var(--ink-3); }
.hero-live b[data-s="check"] { color: var(--ink-2); }
.hero-live b[data-s="paid"] { color: var(--signal); }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .hero-brand { padding: 26px var(--gut) 30px; }
  .hero-in { padding: 34px 14px; }
  .reg { --l: 18px; }
  .hero-cue { display: none; }
  .hero-field { border-left: 0; border-top: 1px solid var(--border); min-height: 46svh; }
}
.hero-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--display); font-size: 24px; text-decoration: none; color: var(--ink-3); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px); } }

/* ---------- problem ---------- */
.problem { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding: 14vh var(--gut); border-top: 1px solid var(--border); }
.problem-in { max-width: 820px; }
.problem .h2 { margin: 26px 0 34px; }
.problem .h2 span { color: var(--signal); }
.lede { max-width: 660px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; color: var(--ink-2); margin-bottom: 44px; }
.lede strong { color: var(--ink); font-weight: 600; }
.problem-stage { align-self: stretch; }
@media (max-width: 820px) {
  .problem { grid-template-columns: 1fr; }
  .problem-stage { position: absolute; inset: 0; z-index: -1; }
}

/* ---------- how it works ---------- */
/* Base layout is the no-WebGL / reduced-motion fallback: four plain cards. html.gl turns it into the pinned scene. */
.flow { border-top: 1px solid var(--border); background: var(--void); }
.flow-sticky { padding: 12vh var(--gut); }
.flow-head .h2 { font-size: clamp(42px, 5vw, 76px); margin-top: 22px; }
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.step-k { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.step-k b { font-weight: 600; color: var(--signal); margin-right: 10px; }
.step-t { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 16px; max-width: 46ch; }
.shot { display: block; width: 100%; text-align: left; border: 1px solid var(--border-strong); background: var(--panel); position: relative; cursor: zoom-in; transition: border-color .2s; }
.shot:hover { border-color: var(--signal-border); }
html.gl .step.is-on .shot { box-shadow: 0 0 0 1px var(--signal-border), 0 0 70px -18px var(--signal); border-color: var(--signal-border); transition: box-shadow .4s, border-color .4s; }
html.gl .flow[data-wait] .step.is-on .shot { box-shadow: 0 0 0 1px var(--amber), 0 0 70px -18px var(--amber); border-color: var(--amber); }
/* live panels: the four screens rebuilt large and readable, from the words and numbers in the site's own stills */
.panel { display: block; padding: .9em; font: 400 var(--pf, 12.5px)/1.5 var(--mono); color: var(--ink); background: var(--void); text-transform: none; letter-spacing: 0; text-align: left; white-space: normal; }
.panel [data-at] { transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.panel.is-live [data-at]:not(.is-in) { opacity: 0; transform: translateY(7px); }
/* chat, request and result: a line takes no room until it arrives, so the panel is never half empty */
.panel-chat.is-live:not(.is-measure) [data-at]:not(.is-in), .panel-api.is-live:not(.is-measure) [data-at]:not(.is-in) { display: none; }
.panel-chat.is-live [data-at].is-in, .panel-api.is-live [data-at].is-in { animation: rowin .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }
.panel-chat { display: grid; gap: .7em; }
.msg { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); gap: .7em; align-items: start; }
.who { display: grid; place-items: center; width: 2.5em; height: 2.5em; border: 1px solid var(--border-strong); background: var(--panel); font-style: normal; font-size: .86em; font-weight: 600; color: var(--ink-2); }
.who svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.4; }
.say { display: block; padding: .6em .85em; border: 1px solid var(--border-strong); background: var(--panel); min-height: 2.5em; }
.say u { color: #5b9bff; text-underline-offset: 2px; }
:root[data-theme="light"] .say u { color: #1f5fd1; }
.spin { display: inline-block; width: .9em; height: .9em; margin-left: .35em; vertical-align: -.12em; border: 2px dotted var(--ink-2); border-radius: 50%; animation: spin 1.4s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-api { padding-top: 0; }
.panel-api .tabs { display: flex; margin: 0 -.9em; padding: 0 .9em; border-bottom: 1px solid var(--border); }
.panel-api .tabs b, .panel-api .tabs i { font-style: normal; font-weight: 400; padding: .55em 1.1em; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.panel-api .tabs b { color: var(--ink); border-color: var(--ink); }
.req { display: block; margin: .75em 0 .45em; font-size: 1.14em; font-weight: 500; transition: color .3s; }
.panel-api.is-sent .req { color: var(--signal); }
.json { display: block; color: var(--ink-2); }
.ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln.in1 { padding-left: 1.4em; }
.ln.in2 { padding-left: 2.8em; }
.json { font-size: .93em; }
.ln b { font-weight: 400; color: var(--ink); }
.ln em { font-style: normal; color: var(--signal); }
.panel-shop { padding: 0; background: #fff; color: #111; }
.chrome { display: flex; align-items: center; gap: .45em; padding: .5em .8em; background: #0c0c0c; color: #fff; font-size: .82em; }
.chrome i { flex: none; width: .62em; height: .62em; border-radius: 50%; background: #5a5a5a; }
.chrome b { flex: none; font-weight: 500; margin: 0 .3em 0 .5em; padding: .12em .6em; background: #262626; }
.chrome span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .2em .8em; background: #000; border: 1px solid #2a2a2a; }
.shop { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); }
.shop .left { display: grid; align-content: start; gap: .65em; padding: .85em; border-right: 1px solid #e2e2e2; }
.item { display: grid; grid-template-columns: 3.1em minmax(0, 1fr); gap: .7em; align-items: center; }
.item .cover { width: 3.1em; height: auto; }
.item b { display: block; font-weight: 600; font-size: 1.04em; line-height: 1.25; }
.qty { display: flex; justify-content: space-between; margin-top: .25em; font-size: .9em; color: #555; }
.tick { display: block; position: relative; padding: .55em 0 0 1.7em; border-top: 1px solid #e2e2e2; }
.tick::before { content: ""; position: absolute; left: .15em; top: .85em; width: .85em; height: .42em; border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(-45deg); }
.tick b { display: block; font-weight: 600; }
.tick span { display: block; font-size: .9em; color: #555; }
.shop .right { display: grid; align-content: center; justify-items: center; gap: .1em; padding: .85em; text-align: center; }
.ready { font-weight: 600; font-size: 1.1em; }
.tl { margin-top: .35em; font-size: .9em; color: #555; }
.total { font-size: 2.35em; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.await { display: block; width: 100%; margin-top: .55em; padding: .5em .3em; border: 1px solid #d5d5d5; background: #f3f3f3; font-size: .72em; font-weight: 600; letter-spacing: .01em; transition: background .25s, border-color .25s, opacity .25s; }
.confirm { display: block; width: 100%; margin-top: .4em; padding: .6em .3em; background: #1c1c1c; color: #fff; font-weight: 600; transition: background .25s, color .25s, transform .12s; }
.panel-shop.is-wait .await { background: #ffb000; border-color: #ffb000; animation: blink 1s steps(2, jump-none) infinite; }
.panel-shop.is-ok .await { opacity: .35; }
.panel-shop.is-ok .confirm { background: #00d45a; color: #000; transform: translateY(1px) scale(.985); }
@keyframes blink { 50% { opacity: .55; } }
.order { display: block; margin-top: .7em; padding: .7em; border: 1px solid var(--border-strong); background: var(--void); }
.order > b { display: block; font-weight: 500; letter-spacing: .08em; padding-bottom: .5em; margin-bottom: .6em; border-bottom: 1px solid var(--border-strong); }
.orow { display: grid; grid-template-columns: 3.3em minmax(0, 1fr); gap: .9em; align-items: center; }
.orow .cover { width: 3.3em; height: auto; border: 1px solid var(--border-strong); }
.price { display: block; font-size: 1.9em; font-weight: 500; line-height: 1.1; }
.receipt { display: inline-block; margin-top: .45em; padding: .3em .8em; border: 1px solid var(--ink-2); }
.shot .panel, .screen .panel { width: 100%; }
.panel img.cover { aspect-ratio: auto; object-fit: contain; max-width: none; max-height: none; }
.item .cover { width: 3.1em !important; height: auto !important; }
.orow .cover { width: 3.3em !important; height: auto !important; }
.shot picture[hidden], .screen img[hidden] { display: none; }
.shot-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.shot-bar i { font-style: normal; color: var(--signal); }
.shot-x { flex: none; width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.flow-stage, .flow-nav { display: none; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

html.gl .flow { height: 560vh; background: none; }
html.gl .flow-sticky { position: sticky; top: 0; height: 100svh; padding: 0; display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 59%); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head stage" "body stage"; }
html.gl .flow-head { grid-area: head; padding: calc(var(--top) + clamp(20px, 5vh, 52px)) 32px 0 var(--gut); }
html.gl .flow-head .h2 { font-size: clamp(38px, 4.1vw, 66px); margin-top: 16px; }
html.gl .flow-body { grid-area: body; padding: clamp(14px, 3vh, 30px) 32px clamp(16px, 3vh, 30px) var(--gut); display: flex; flex-direction: column; min-height: 0; }
html.gl .steps { margin: 0; display: block; position: relative; flex: 1; min-height: 0; }
html.gl .step { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s, visibility 0s .35s; display: flex; flex-direction: column; min-height: 0; }
html.gl .step.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .1s, transform .35s .1s; }
html.gl .shot { width: auto; max-width: 100%; align-self: flex-start; min-height: 0; display: flex; flex-direction: column; flex: 0 1 auto; }
html.gl .shot img { width: auto; height: auto; max-width: 100%; max-height: min(32svh, 300px); min-height: 0; }
html.gl .flow-nav { display: flex; align-items: center; gap: 14px; padding-top: 14px; }
/* desktop: the four steps are a list you can click, and the real screens float in the scene */
.screens { position: fixed; inset: 0; z-index: 2; pointer-events: none; display: none; }
.screen { position: absolute; left: 0; top: 0; width: 360px; opacity: 0; visibility: hidden; text-align: left; border: 1px solid var(--signal-border); background: var(--panel); box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 16%, transparent), 0 0 90px -24px var(--signal), 0 34px 60px -34px #000; cursor: zoom-in; will-change: transform, opacity; transition: border-color .3s, box-shadow .3s; }
.screen.is-on { visibility: visible; pointer-events: auto; }
.screen { transform-origin: 28% 100%; transform-style: preserve-3d; }
.screen[data-screen="2"] { transform-origin: 0 62%; }
.screen::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -1px; width: 14px; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(90deg, var(--signal), color-mix(in srgb, var(--signal) 25%, var(--void))); }
.screen[data-screen="2"]::before { left: auto; right: -1px; transform-origin: 100% 50%; transform: rotateY(-90deg); background: linear-gradient(270deg, var(--signal), color-mix(in srgb, var(--signal) 25%, var(--void))); }
.screen.is-wait::before { background: linear-gradient(270deg, var(--amber), color-mix(in srgb, var(--amber) 25%, var(--void))); }
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.links path { fill: none; stroke: var(--signal); stroke-width: 1; opacity: 0; shape-rendering: crispEdges; }
.links path.is-wait { stroke: var(--amber); }
.screen.is-wait { border-color: var(--amber); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 30%, transparent), 0 0 90px -24px var(--amber), 0 34px 60px -34px #000; }
.screen img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 821px) {
  html.gl-ready .screens { display: block; }
  html.gl .flow-sticky { grid-template-columns: minmax(340px, 34%) minmax(0, 1fr); }
  html.gl .flow-head .h2 { font-size: clamp(34px, 3.3vw, 54px); }
  html.gl .steps { display: flex; flex-direction: column; justify-content: center; }
  html.gl .step { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; display: block; padding: 17px 0 17px 28px; cursor: pointer; transition: none; }
  html.gl .step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border); transition: background .3s; }
  html.gl .step.is-past::before { background: var(--signal-border); }
  html.gl .step.is-on::before { background: var(--signal); }
  html.gl .step-k { display: flex; align-items: baseline; gap: 16px; }
  html.gl .step-k b { order: 1; margin: 0; font-family: var(--display); font-size: 27px; line-height: 1; font-weight: 400; letter-spacing: .06em; color: var(--ink-3); transition: color .3s; }
  html.gl .step:hover .step-k b, html.gl .step.is-past .step-k b { color: var(--ink-2); }
  html.gl .step.is-on .step-k b { color: var(--ink); }
  html.gl .step-t { margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .3s, margin .45s ease; }
  html.gl .step.is-on .step-t { max-height: 8em; opacity: 1; margin-top: 12px; }
  html.gl .shot { display: none; }
}
.flow-nav button { width: 44px; height: 44px; border: 1px solid var(--border-strong); font-size: 18px; transition: border-color .2s, color .2s; }
.flow-nav button:hover { border-color: var(--ink); }
.flow-bar { flex: 1; height: 2px; background: var(--border); position: relative; }
.flow-bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }
html.gl .flow-stage { grid-area: stage; display: block; position: relative; border-left: 1px solid var(--border); min-height: 0; }
.trace { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.trace li { font-size: 12px; padding: 5px 9px; border: 1px solid var(--border); color: var(--ink-3); background: color-mix(in srgb, var(--void) 80%, transparent); transition: color .25s, border-color .25s, background .25s; }
.trace li.is-done { color: var(--ink-2); border-color: var(--border-strong); }
.trace li.is-now { color: #000; background: var(--signal); border-color: var(--signal); }
.trace li.is-now.is-wait { background: var(--amber); border-color: var(--amber); }
:root[data-theme="light"] .trace li.is-now { color: #fff; }
@media (max-width: 820px) {
  html.gl .flow-sticky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "stage" "body"; }
  html.gl .flow-head { padding: calc(var(--top) + 14px) var(--gut) 0; }
  html.gl .flow-head .eyebrow { display: none; }
  html.gl .flow-head .h2 { font-size: 30px; margin: 0; line-height: .9; }
  html.gl .flow-body { padding: 10px var(--gut) 12px; height: 49svh; }
  html.gl .shot { width: 100%; align-self: stretch; }
  .shot .panel { --pf: 10.6px; padding: .75em; }
  html.gl .flow-stage { border-left: 0; }
  html.gl .step-t { font-size: 13px; margin: 6px 0 10px; }
  html.gl .shot img { max-height: 17svh; }
  html.gl .flow-nav { padding-top: 8px; }
  .flow-nav button { width: 38px; height: 38px; }
  .trace { left: 6px; right: 6px; bottom: 4px; gap: 3px; flex-wrap: nowrap; }
  .trace li { font-size: 7.5px; padding: 3px 4px; white-space: nowrap; }
}

/* ---------- payments ---------- */
.pay { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 62%); }
.pay-head { padding: 14vh 32px 60px var(--gut); align-self: center; }
.pay-head .h2 { font-size: clamp(42px, 5.2vw, 76px); margin-top: 22px; }
.pay-board { border-left: 1px solid var(--border); min-width: 0; }
.pay-cols { display: flex; justify-content: space-between; padding: 22px 34px; border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.pay-map { position: relative; height: 520px; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 55px 55px; background-position: -1px -1px; }
.pay-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.pay-wires path { fill: none; stroke: var(--border-strong); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pay-wires path.live { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.6, 0, .2, 1); }
.pay-wires path.live.is-on { stroke-dashoffset: 0; }
.pay-wires.m { display: none; }
.pay-src { position: absolute; left: 6%; width: 56px; height: 56px; translate: 0 -50%; display: grid; place-items: center; background: var(--void); border: 1px solid var(--border-strong); color: var(--ink-3); transition: color .2s, border-color .2s, background .2s; }
.pay-src svg { width: 30px; height: 30px; }
.pay-src:hover { color: var(--ink); border-color: var(--ink-3); }
.pay-src[aria-selected="true"] { color: var(--signal); border-color: var(--signal); background: var(--panel); }
.pay-src:nth-of-type(1) { top: 10%; } .pay-src:nth-of-type(2) { top: 30%; } .pay-src:nth-of-type(3) { top: 50%; } .pay-src:nth-of-type(4) { top: 70%; } .pay-src:nth-of-type(5) { top: 90%; }
.pay-hub { position: absolute; left: 43%; top: 50%; width: 21%; min-width: 150px; translate: 0 -50%; display: grid; justify-items: center; gap: 8px; padding: 30px 10px 22px; background: var(--void); border: 1px solid var(--signal-border); border-bottom: 3px solid var(--signal); }
.pay-hub svg { width: 32px; height: 32px; color: var(--signal); }
.pay-hub b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .06em; }
.pay-hub small { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.pay-agents { position: absolute; left: 76%; top: 50%; width: 17%; min-width: 120px; translate: 0 -50%; display: grid; justify-items: center; gap: 12px; padding: 14px 10px 12px; background: var(--void); border: 1px solid var(--border-strong); }
.pay-agents div { display: grid; grid-template-columns: repeat(2, 34px); justify-content: center; }
.pay-agents span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border-strong); margin: -.5px; background: var(--panel); }
.pay-agents span:first-child { grid-column: 1 / -1; justify-self: center; }
.pay-agents svg { width: 18px; height: 18px; fill: currentColor; --page-panel: var(--panel); }
.pay-agents b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .06em; }
/* the 3D version of the map: the canvas draws the rails, the stack and the agent; the tabs and labels ride on top of it */
.pay-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.pay-map.is-3d { background-image: none; overflow: hidden; }
.pay-map.is-3d .pay-stage { display: block; }
.pay-map.is-3d .pay-wires { display: none; }
.pay-map.is-3d .pay-src { left: 0 !important; top: 0 !important; translate: none; width: 46px; height: 46px; will-change: transform; }
.pay-map.is-3d .pay-src svg { width: 26px; height: 26px; }
.pay-map.is-3d .pay-hub, .pay-map.is-3d .pay-agents { left: 0; top: 0; width: auto; min-width: 0; translate: none; background: none; border: 0; padding: 0; gap: 4px; pointer-events: none; will-change: transform; }
.pay-map.is-3d .pay-hub svg { display: none; }
.pay-map.is-3d .pay-hub b { font-size: 21px; }
.pay-map.is-3d .pay-agents { gap: 8px; }
.pay-map.is-3d .pay-agents div { display: flex; }
.pay-map.is-3d .pay-agents span { width: 28px; height: 28px; }
.pay-map.is-3d .pay-agents svg { width: 15px; height: 15px; }
.pay-map.is-3d .pay-agents b { font-size: 19px; white-space: nowrap; }
.pl { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; pointer-events: none; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); will-change: transform, opacity; }
.pl-state[data-st="READY"] { color: var(--signal); }
.pl-approve { color: var(--amber); background: var(--void); padding: 2px 6px; }
.pl-approve.is-ok { color: var(--signal); }
.pl-beat { text-transform: none; letter-spacing: .01em; font-size: 12px; font-weight: 500; padding: 4px 9px; background: var(--void); border: 1px solid var(--signal-border); color: var(--signal); transition: color .2s, border-color .2s; }
.pl-beat[data-st="wait"] { color: var(--amber); border-color: var(--amber); }
.pl-beat[data-st="plan"] { color: var(--ink); border-color: var(--border-strong); }
.pl-beat[data-st="state"] { color: var(--amber); border-color: var(--border-strong); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.pay-desc mark { background: none; color: inherit; box-shadow: inset 0 -1px 0 var(--border-strong); transition: color .25s, box-shadow .25s; }
.pay-desc[data-beat="0"] mark[data-b="0"], .pay-desc[data-beat="1"] mark[data-b="1"], .pay-desc[data-beat="2"] mark[data-b="2"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.pl-paid { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--signal); }
@media (max-width: 980px) {
  .pay-map.is-3d .pay-src { width: 40px; height: 40px; }
  .pay-map.is-3d .pay-src svg { width: 22px; height: 22px; }
  .pl { font-size: 11px; letter-spacing: .1em; }
  .pl-paid { font-size: 19px; }
}
.pay-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-top: 1px solid var(--border); }
.pay-detail > div { padding: 30px 34px; }
.pay-detail > div + div { border-left: 1px solid var(--border); }
.pay-name { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pay-name h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.st { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--signal); }
.st[data-st="PLANNED"] { color: var(--amber); }
.st[data-st="SOON"] { color: var(--ink-3); }
.pay-desc { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-2); max-width: 48ch; min-height: 4.6em; }
.pay-code { font: 400 11px/1.5 var(--mono); color: var(--ink-3); white-space: pre; }
.pay-code b { font-weight: 400; color: var(--ink); }
.pay-code em { font-style: normal; color: var(--signal); }
.pay-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 980px) {
  .pay { grid-template-columns: 1fr; }
  .pay-head { padding: 12vh var(--gut) 40px; }
  .pay-board { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .pay-cols { display: none; }
  .pay-map { height: 470px; background-size: 39px 39px; }
  .pay-wires.d { display: none; } .pay-wires.m { display: block; }
  .pay-src { top: 24px !important; width: 50px; height: 50px; translate: -50% 0; }
  .pay-src:nth-of-type(1) { left: 12%; } .pay-src:nth-of-type(2) { left: 31%; } .pay-src:nth-of-type(3) { left: 50%; } .pay-src:nth-of-type(4) { left: 69%; } .pay-src:nth-of-type(5) { left: 88%; }
  .pay-hub { left: 50%; top: 136px; width: 190px; translate: -50% 0; padding: 22px 10px 18px; }
  .pay-agents { left: 50%; top: 326px; width: 170px; translate: -50% 0; }
  .pay-detail { grid-template-columns: 1fr; }
  .pay-detail > div { padding: 26px var(--gut); }
  .pay-detail > div + div { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- testimonials ---------- */
.said { display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 72%); }
.said-head { padding: 80px 32px 80px var(--gut); }
.said-head .h2 { font-size: clamp(42px, 5vw, 72px); }
.said-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--border); }
.said-grid figure { padding: 40px 36px 46px; border-bottom: 1px solid var(--border); }
.said-grid figure:nth-child(odd) { border-right: 1px solid var(--border); }
.said-grid figure:nth-last-child(-n+2) { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.who img { width: 52px; height: 52px; object-fit: cover; filter: grayscale(1); border: 1px solid var(--border-strong); }
.who b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.who span, .who a { font-size: 10px; letter-spacing: .08em; color: var(--ink-3); }
.said blockquote { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
@media (max-width: 980px) {
  .said { grid-template-columns: 1fr; }
  .said-head { padding: 70px var(--gut) 40px; }
  .said-grid { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .said-grid { grid-template-columns: 1fr; }
  .said-grid figure { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; padding: 32px var(--gut); }
  .said-grid figure:last-child { border-bottom: 0 !important; }
}

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 64%); }
.faq-head { padding: 54px 32px 60px var(--gut); }
.faq-head .h2 { font-size: clamp(44px, 6vw, 86px); margin-top: 30px; }
.faq-list { border-left: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px clamp(24px, 5vw, 72px); cursor: pointer; list-style: none; font-family: var(--display); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: .01em; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--ink-3); transition: transform .25s, color .2s; }
.faq-list summary:hover { color: var(--signal); }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--signal); }
.faq-list details.is-closing summary::after { transform: none; color: var(--ink-3); }
.faq-list details p { padding: 0 clamp(24px, 5vw, 72px) 40px; max-width: 78ch; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
@media (max-width: 980px) {
  .faq { grid-template-columns: 1fr; }
  .faq-head { padding: 70px var(--gut) 40px; }
  .faq-list { border-left: 0; border-top: 1px solid var(--border); }
  .faq-list summary { padding: 26px var(--gut); }
  .faq-list details p { padding: 0 var(--gut) 30px; }
}

/* ---------- small 3D visuals on the guides and docs (only shown when they can run) ---------- */
figure.viz { display: none; position: relative; height: 270px; margin: 30px 0 34px; border: 1px solid var(--border); background: var(--void); overflow: hidden; }
figure.viz.is-on { display: block; }
figure.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.guide > section:first-child > figure.viz, .guide > header > figure.viz { margin: 0; max-width: 980px; height: 290px; }
.vl { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; pointer-events: none; will-change: transform, opacity; font-family: var(--mono); font-size: 12px; line-height: 1.3; letter-spacing: .02em; color: var(--ink-3); transition: color .25s; }
.vl[data-s="done"] { color: var(--ink-2); }
.vl[data-s="now"] { color: var(--signal); }
.vl[data-s="on"] { color: var(--ink); }
.vl[data-s="wait"] { color: var(--amber); }
.vl-pair { font-family: var(--display); font-size: 19px; letter-spacing: .03em; color: var(--ink-2); text-align: center; }
.vl-pair i { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--ink-3); margin-bottom: 3px; }
.vl-pair[data-s="on"], .vl-pair[data-s="now"] { color: var(--ink); }
.vl-pair[data-s="now"] i { color: var(--signal); }
.vl-pair[data-s="wait"] { color: var(--ink); }
.vl-pair[data-s="wait"] i { color: var(--amber); }
@media (max-width: 620px) { figure.viz { height: 230px; } .vl-pair { font-size: 14px; } .vl-pair i { font-size: 11px; letter-spacing: .08em; } .vl { font-size: 11px; } }

/* ---------- final cta ---------- */
.cta { padding: 18vh var(--gut); text-align: center; display: grid; justify-items: center; background-color: var(--void); background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; background-position: center; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--void) 72%); pointer-events: none; }
.cta > * { position: relative; }
.cta .h2 { font-size: clamp(50px, 8vw, 116px); max-width: 12ch; margin: 28px 0 46px; }
.cta .setup { margin-top: 0; width: min(100%, 520px); }
.cta { padding-bottom: calc(10vh + 300px); overflow: hidden; }
.cta > .cta-field { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; }
/* the game on the strip: he runs by himself until someone takes over */
.cta-field .hero-live { left: var(--gut); top: 14px; }
.game-score { position: absolute; right: var(--gut); top: 8px; font-size: 11px; letter-spacing: .04em; color: var(--ink-2); opacity: 0; transition: opacity .3s; }
.game-score b { font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--signal); margin: 0 2px 0 8px; vertical-align: -3px; }
.cta-field.is-playing .game-score { opacity: 1; }
.game-keys { display: none; position: absolute; right: var(--gut); bottom: 14px; gap: 6px; z-index: 2; }
.cta-field:has(.field3d) .game-keys { display: flex; }
.game-keys button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--void) 82%, transparent); color: var(--ink-2); font-size: 15px; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .06s, background .12s, color .12s, border-color .12s; }
.game-keys button:hover { border-color: var(--ink-2); color: var(--ink); }
.game-keys button.is-down, .game-keys button:active { transform: translateY(2px); background: var(--signal); border-color: var(--signal); color: #000; }
.cta-field:not(.is-playing) .game-keys [data-key="right"] { animation: nudge 1.4s steps(2, jump-none) infinite; }
@keyframes nudge { 50% { border-color: var(--signal); color: var(--signal); } }
.game-cap { color: var(--amber); font-size: 11px; letter-spacing: .14em; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; background: var(--void); border-top: 1px solid var(--border); padding: 60px var(--gut) 26px; }
.foot-main { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 54px; }
.foot-word { font-family: var(--display); font-size: 36px; letter-spacing: .12em; line-height: 1; text-decoration: none; }
.foot-brand p { margin: 12px 0 6px; font-size: 13px; color: var(--ink-3); }
.foot-brand > a:last-child { font-size: 12px; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; }
.foot-brand > a:last-child:hover { color: var(--signal); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 32px 40px; }
.foot-cols p { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.foot-cols a { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); margin-bottom: 13px; line-height: 1.4; }
.foot-cols a:hover { color: var(--signal); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 640px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- lightbox ---------- */
.zoom { border: 1px solid var(--border-strong); background: var(--void); color: var(--ink); padding: 0; width: min(94vw, 1180px); max-height: 92vh; }
.zoom::backdrop { background: rgb(0 0 0 / .82); }
.zoom img { width: 100%; height: auto; }
.zoom-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--ink-2); }
.zoom-bar button { font-size: 18px; line-height: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border-strong); }
.zoom-bar button:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- inner pages: guides, docs, legal ---------- */
.prose { padding-top: var(--top); }
.prose a { color: var(--ink); text-decoration-color: var(--border-strong); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.prose a:hover { color: var(--signal); text-decoration-color: var(--signal); }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: .86; letter-spacing: -.02em; text-wrap: balance; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.prose p, .prose dd, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); }
.guide section ul li a { margin-right: 14px; }
.prose code { font-family: var(--mono); font-size: .92em; color: var(--ink); background: var(--panel); border: 1px solid var(--border); padding: 1px 5px; }
.prose h3 code { font-family: var(--display); font-size: 1em; background: none; border: 0; padding: 0; color: var(--signal); }
.prose pre { position: relative; background: var(--panel-2); border: 1px solid var(--border); padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 16px 18px; border: 1px solid var(--border); line-height: 1.55; color: var(--ink-2); }
.prose th { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.prose th span { color: var(--signal); margin-right: 10px; }
.prose caption { caption-side: top; text-align: left; font-size: 11px; color: var(--ink-3); padding-bottom: 12px; }
.prose details { border: 1px solid var(--border); }
.prose details + details { border-top: 0; }
.prose summary { cursor: pointer; padding: 16px 20px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--ink-3); }
.prose details[open] summary::after { content: "\2212"; color: var(--signal); }
.prose details > :not(summary) { margin: 0 20px 18px; }
.prose dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.prose dt code { font-size: 1em; }
.prose dl > div { padding: 14px 0; border-top: 1px solid var(--border); }
.prose dl > div:first-child { border-top: 0; }
.prose blockquote { border-left: 2px solid var(--signal); padding: 6px 0 6px 20px; font-size: 17px; color: var(--ink); }
.copy { position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--border); background: var(--void); padding: 4px 8px; }
.copy:hover { color: var(--signal); border-color: var(--signal-border); }

/* guides (the three Learn pages) */
.guide > header, .guide > section:first-child { padding: clamp(60px, 11vh, 120px) var(--gut) clamp(46px, 8vh, 80px); border-bottom: 1px solid var(--border); display: grid; gap: 30px; }
.guide > header > div:first-child, .guide > header > div > p:first-child, .guide > section:first-child > div > p:first-child { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--signal); }
.guide > header h1, .guide > section:first-child h1 { margin: 18px 0 26px; max-width: 16ch; }
.guide > header h1 + p, .guide > section:first-child h1 + p { max-width: 74ch; font-size: 16px; }
.guide > header dl, .guide > header > div > div, .guide > section:first-child dl { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 30px; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.guide > header dl > div, .guide > section:first-child dl > div { border: 0; padding: 0; display: flex; gap: 10px; }
.guide > header dt, .guide > header dd, .guide > section:first-child dt, .guide > section:first-child dd { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); font-weight: 400; }
.guide > header nav, .guide > nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 12px; color: var(--ink-3); }
.guide > nav { padding: 20px var(--gut); border-bottom: 1px solid var(--border); }
/* trace summary card on the checkout API guide */
.guide > section:first-child > div[aria-label] { border: 1px solid var(--border-strong); max-width: 520px; }
.guide > section:first-child > div[aria-label] > div { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.guide > section:first-child > div[aria-label] > div span:last-child { color: var(--signal); }
.guide > section:first-child > div[aria-label] li { display: flex; gap: 16px; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.guide > section:first-child > div[aria-label] li span { color: var(--ink-3); }
.guide > section:first-child > div[aria-label] li code { background: none; border: 0; padding: 0; }
.guide > section:first-child > div[aria-label] > p { padding: 12px 16px; font-size: 11px; letter-spacing: .12em; color: var(--amber); }
/* body: sticky index + article */
.guide > div { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.guide aside { border-right: 1px solid var(--border); padding: 44px 24px 44px var(--gut); }
.guide aside > div, .guide aside > nav, .guide aside { font-size: 11px; }
.guide aside nav { position: sticky; top: calc(var(--top) + 30px); display: grid; gap: 14px; margin-top: 18px; }
.guide aside p { font-size: 11px; letter-spacing: .16em; color: var(--ink-3); }
.guide aside a { text-decoration: none; letter-spacing: .08em; color: var(--ink-2); font-size: 11px; text-transform: uppercase; }
.guide aside a span { color: var(--signal); margin-right: 10px; }
.guide article > section, .guide > section:not(:first-child) { padding: clamp(46px, 8vh, 84px) clamp(24px, 5vw, 72px); border-bottom: 1px solid var(--border); display: grid; gap: 26px; }
.guide article > section > header, .guide article > section > div:first-child:has(> span + div) { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0 10px; }
.guide article > section > header > span, .guide article > section > div:first-child > span:first-child, .guide > section:not(:first-child) > div:first-child { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--signal); }
.guide section p:has(+ h2), .guide section header p:first-child, .guide > section > p:first-of-type:has(+ p + h2), .guide > section > p:has(+ h2) { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--ink-3); margin-bottom: 12px; }
.guide section h2 + p { margin-top: 18px; max-width: 70ch; }
.guide article p { max-width: 74ch; }
.guide section > div:has(> div > h3), .guide section > div:has(> div > span + p), .guide section > ol:has(> li h3), .guide section > div > div:has(> div > code) { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--border); }
.guide section > div:has(> div > h3) > div, .guide section > div:has(> div > span + p) > div, .guide section > ol:has(> li h3) > li, .guide section > div > div:has(> div > code) > div { padding: 24px; border-right: 1px solid var(--border); margin-right: -1px; display: grid; gap: 10px; align-content: start; }
.guide section > div:has(> div > h3) > div > span, .guide section > div:has(> div > span + p) > div > span, .guide section > div > span, .guide p > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--signal); }
.guide section > ol:has(> li h3) > li { font-family: var(--display); font-size: 24px; color: var(--signal); }
.guide section > ol:has(> li h3) > li p { font-family: var(--mono); }
.guide section strong { display: block; font-size: 12px; color: var(--ink); margin-top: 6px; }
.guide section > ol:has(> li > div > code) { display: grid; border: 1px solid var(--border); }
.guide section > ol:has(> li > div > code) > li { display: grid; grid-template-columns: 60px minmax(0, 1fr); padding: 16px 20px; border-bottom: 1px solid var(--border); }
.guide section > ol:has(> li > div > code) > li:last-child { border-bottom: 0; }
.guide section > ol:has(> li > div > code) > li > div:first-child span { font-family: var(--display); font-size: 22px; color: var(--ink-3); }
.guide section > ol:has(> li > div > code) > li > div:last-child { display: grid; grid-template-columns: 90px 190px minmax(0, 1fr); gap: 6px 16px; align-items: baseline; }
.guide section > ol:has(> li > div > code) > li > div:last-child > span { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--signal); }
.guide section > ul:has(> li:only-child), .guide section ul { display: grid; gap: 10px; }
.guide section > ul > li, .guide section > ol:not(:has(h3)):not(:has(code)) > li { padding-left: 18px; position: relative; }
.guide section > ul > li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; background: var(--signal); }
.guide section ul:has(> li > code:only-child) { display: flex; flex-wrap: wrap; gap: 8px; }
.guide section ul:has(> li > code:only-child) > li { padding: 0; }
.guide section ul:has(> li > code:only-child) > li::before { display: none; }
.guide section > div:has(> a), .guide > footer { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.guide > section:not(:first-child) > a, .guide section > a { justify-self: start; }
.guide table { margin-top: 6px; }
.guide .matrix-wrap { overflow-x: auto; }
.guide > footer { padding: 26px var(--gut); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); border-bottom: 0; }
@media (max-width: 900px) {
  .guide > div { grid-template-columns: 1fr; }
  .guide aside { border-right: 0; border-bottom: 1px solid var(--border); padding: 26px var(--gut); }
  .guide aside nav { position: static; grid-template-columns: 1fr 1fr; }
  .guide article > section, .guide > section:not(:first-child) { padding-left: var(--gut); padding-right: var(--gut); }
  .guide section > ol:has(> li > div > code) > li > div:last-child { grid-template-columns: 1fr; }
  .guide table, .guide tbody, .guide tr, .guide th, .guide td { display: block; }
  .guide tr { border: 1px solid var(--border); margin-bottom: 12px; }
  .guide tr:first-child { display: none; }
  .guide th, .guide td { border: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; }
  .guide td:nth-child(2)::before { content: "Agent checkout"; } .guide td:nth-child(3)::before { content: "Browser automation"; }
  .guide td::before { display: block; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
}

/* docs */
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100svh; }
.docs-side { border-right: 1px solid var(--border); padding: 40px 24px 40px var(--gut); }
.docs-side nav, .docs-side { font-size: 13px; }
.docs-side > nav { position: sticky; top: calc(var(--top) + 30px); display: grid; gap: 28px; margin-top: 34px; }
.docs-home { font-family: var(--display); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important; }
.docs-side p { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.docs-side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 0 7px 14px; border-left: 1px solid var(--border); text-decoration: none; color: var(--ink-2); font-size: 13px; }
.docs-side nav a[aria-current] { color: var(--signal); border-left-color: var(--signal); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); border: 1px solid currentColor; padding: 1px 5px; }
.docs-skill { display: inline-block; margin-top: 34px; font-size: 12px; color: var(--ink-3) !important; }
.docs-body { padding: clamp(40px, 8vh, 84px) clamp(24px, 6vw, 96px) 80px; max-width: 980px; display: grid; gap: 34px; align-content: start; padding-top: clamp(40px, 8vh, 84px); }
.docs-body.prose { padding-top: clamp(40px, 8vh, 84px); }
.docs.prose, main.docs { padding-top: var(--top); }
.docs-body h1 { font-size: clamp(44px, 5.4vw, 76px); }
.docs-body section { display: grid; gap: 22px; }
.docs-body section section { padding-top: 26px; border-top: 1px solid var(--border); }
.docs-body ol { display: grid; gap: 34px; counter-reset: step; }
.docs-body ol > li { display: grid; gap: 14px; padding-left: 58px; position: relative; counter-increment: step; }
.docs-body ol > li::before { content: "0" counter(step); position: absolute; left: 0; top: 2px; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--signal); }
.docs-body div:has(> pre) { display: grid; }
.docs-body div:has(> pre) > div:first-child, .docs-body div:has(> pre) > span:first-child { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 9px 14px; border: 1px solid var(--border); border-bottom: 0; background: var(--panel); }
.docs-body nav { display: flex; flex-wrap: wrap; gap: 10px; }
.docs-body nav a, .docs-body > a, .docs-body li > a:only-child, .docs-body section > a { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: .06em; padding: 10px 14px; border: 1px solid var(--border-strong); text-decoration: none; justify-self: start; }
.docs-body nav a:hover, .docs-body > a:hover { border-color: var(--signal); }
.docs-body nav a[aria-current] { background: var(--ink); color: var(--void); border-color: var(--ink); }
.docs-body > a span:first-child { color: var(--signal); font-weight: 600; font-size: 11px; letter-spacing: .14em; }
.docs-body ul { display: grid; gap: 10px; }
.docs-body ul > li { padding-left: 18px; position: relative; }
.docs-body ul > li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; background: var(--signal); }
.docs-body section > div:first-child:not(:has(pre)), .docs-body h1 + div { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--amber); }
.docs-body footer { display: flex; gap: 22px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 12px; }
.docs-body details dl, .docs-body dl { display: grid; }
.docs-body .table-wrap { overflow-x: auto; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .docs-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px var(--gut); }
  .docs-side > nav { position: static; grid-template-columns: repeat(3, auto); gap: 18px; margin-top: 18px; justify-content: start; }
  .docs-skill { margin-top: 18px; }
  .docs-body { padding-left: var(--gut); padding-right: var(--gut); }
  .docs-body ol > li { padding-left: 0; padding-top: 34px; }
}
@media (max-width: 560px) { .docs-side > nav { grid-template-columns: 1fr 1fr; } }

/* legal */
.legal { max-width: 900px; margin: 0 auto; padding: calc(var(--top) + clamp(50px, 10vh, 110px)) var(--gut) 100px; display: grid; gap: 30px; }
.legal > header { display: none; }
.legal article { display: grid; gap: 34px; }
.legal article > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .16em; color: var(--ink-3); }
.legal article > div:first-child span:last-child { color: var(--amber); }
.legal h1 + p { font-size: 16px; max-width: 64ch; }
.legal section { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px 10px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal section > div, .legal section > span { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--signal); grid-row: span 2; }
.legal section h2 { font-size: 30px; }
.legal section p { grid-column: 2; }

/* ---------- phones: readable text, tappable targets, and the steps always clear of their arrows ---------- */
@media (max-width: 820px) {
  .wait-email { font-size: 16px; }                              /* under 16px, iPhone Safari zooms the page on focus */
  .foot a { display: block; padding: 13px 0; }
  .said-grid a { display: inline-block; padding: 10px 0; }
  .pay-name .st, .st { font-size: 11px; }
  .foot-cols p { font-size: 11px; }
  .lb { font-size: 11px; letter-spacing: .06em; }
  .lb-call, .lb-status, .lb-done { font-size: 11px; }
  .lb-approve b, .lb-approve em { font-size: 11px; }
  .pl, .game-cap { font-size: 11px; letter-spacing: .08em; }
  .pl-beat { font-size: 12px; letter-spacing: .01em; }
  .pay-map.is-3d .pay-hub small { font-size: 11px; letter-spacing: .14em; }
  .pay-map.is-3d .pay-hub { justify-items: start; }
  .pay-map.is-3d .pay-hub b { font-size: 18px; }
  .shot-bar { font-size: 11px; }
  .shot .panel { --pf: 12px; }
  .who { font-size: .92em; }
  .chrome, .qty, .tick span, .tl, .await { font-size: .9em; }
  .trace { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 4px; left: 6px; right: 6px; bottom: 6px; }
  .trace li { font-size: 11px; padding: 4px 7px; text-align: center; white-space: nowrap; }
  /* the step arrows sit beside the step's name, so nothing below can cover them */
  html.gl .flow-body { position: relative; height: auto; padding: 6px var(--gut) 12px; }
  html.gl .steps { flex: none; height: var(--steps-h, 320px); }
  html.gl .step-k { min-height: 44px; display: flex; align-items: center; padding-right: 104px; }
  html.gl .step-t { margin: 2px 0 10px; }
  html.gl .flow-nav { position: absolute; right: var(--gut); top: 6px; padding: 0; gap: 8px; z-index: 3; }
  .flow-nav button { width: 44px; height: 44px; }
  .flow-bar { display: none; }
}
@media (max-width: 820px) and (max-height: 700px) {
  html.gl .flow-head { padding-top: calc(var(--top) + 8px); }
  html.gl .flow-head .h2 { font-size: 21px; white-space: nowrap; }
  html.gl .step-t { font-size: 12px; line-height: 1.45; margin: 0 0 6px; }
  .shot .panel { --pf: 10px; padding: .65em; }
  .who, .chrome, .qty, .tick span, .tl, .await, .json { font-size: 1em; }
  .shot-bar { padding: 4px 8px; }
  .panel-chat { gap: .5em; }
  .say { padding: .45em .7em; }
}
@media (max-width: 820px) {
  .wait-email { letter-spacing: 0; padding: 15px 10px; }
  .wait-btn { padding: 0 12px; gap: 12px; }
}

/* ---------- micro-interactions: quick, quiet, stepped like pixels ---------- */
.top-brand svg { transition: transform .2s steps(3); }
.top-brand:hover svg { transform: translateY(-2px) rotate(-8deg); }
.top-theme svg { transition: transform .3s steps(4); }
.top-theme:hover svg { transform: rotate(-24deg); }
.top-theme:active svg { transform: rotate(-24deg) scale(.86); }
@media (min-width: 821px) {
  .top-nav a:not(.top-cta) { position: relative; }
  .top-nav a:not(.top-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .22s steps(5); }
  .top-nav a:not(.top-cta):hover::after, .top-nav a.is-here::after, .top-nav a[aria-current]::after { transform: scaleX(1); }
}
.top-cta:active, .wait-btn:active, .flow-nav button:active, .prose .copy:active, .zoom-bar button:active { transform: translateY(2px); }
.wait-btn span, .textcta span, .hero-new span, .receipt { transition: transform .18s steps(3); }
.wait-btn:hover span { transform: translateX(5px); }
.wait { transition: border-color .2s, box-shadow .25s; }
.wait:focus-within { box-shadow: 0 0 0 1px var(--signal), 0 0 46px -20px var(--signal); }
.wait-email { caret-color: var(--signal); }
.flow-nav button { transition: border-color .2s, color .2s, transform .08s, background .2s; }
.flow-nav button:hover { color: var(--signal); border-color: var(--signal); }
.flow-nav [data-flow-prev]:hover { transform: translateX(-2px); }
.flow-nav [data-flow-next]:hover { transform: translateX(2px); }
/* the steps: the bar thickens under the pointer, and the current step has a blinking cursor */
html.gl .step::before { transition: background .3s, width .15s steps(2); }
html.gl .step:hover::before { width: 4px; background: var(--signal-border); }
html.gl .step.is-on .step-k b::after { content: ""; display: inline-block; width: .42em; height: .78em; margin-left: .38em; background: var(--signal); vertical-align: -.02em; animation: blink 1s steps(2, jump-none) infinite; }
/* status chips explain themselves, in the words of the site's own reference table */
.trace li { position: relative; cursor: help; }
.trace li:hover, .trace li:focus-visible { color: var(--ink); border-color: var(--ink-2); }
.trace li.is-now:hover, .trace li.is-now:focus-visible { color: #000; }
.trace li[data-tip]::after { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 9px); width: max-content; max-width: 260px; padding: 7px 10px; background: var(--ink); color: var(--void); font-size: 11px; line-height: 1.45; text-align: left; white-space: normal; transform: translateX(-50%); pointer-events: none; z-index: 5; }
.trace li[data-tip]:hover::after, .trace li[data-tip]:focus-visible::after { display: block; animation: fadein .15s both; }
.trace li:first-child[data-tip]::after { left: 0; transform: none; }
.trace li:last-child[data-tip]::after { left: auto; right: 0; transform: none; }
@media (max-width: 820px) {
  .trace li[data-tip]::after { max-width: 220px; }
  .trace li:nth-child(3n+1)[data-tip]::after { left: 0; right: auto; transform: none; }
  .trace li:nth-child(3n)[data-tip]::after { left: auto; right: 0; transform: none; }
}
/* the live panels */
.screen { transition: border-color .3s, box-shadow .3s, transform .2s ease-out; }
.shot .shot-x, .screen .shot-x { transition: color .2s, transform .2s steps(3); }
.shot:hover .shot-x, .screen:hover .shot-x, .shot:focus-visible .shot-x, .screen:focus-visible .shot-x { color: var(--signal); transform: scale(1.35); }
.say { transition: border-color .2s; }
.shot:hover .say, .screen:hover .say { border-color: var(--ink-3); }
.shot:hover .receipt, .screen:hover .receipt { transform: translateX(3px); }
/* payments */
.pay-src { transition: color .2s, border-color .2s, background .2s, scale .12s steps(2); }
.pay-src:hover { scale: 1.08; }
.pay-src:active { scale: .94; }
.pay-detail.is-swap [data-pay-name], .pay-detail.is-swap [data-pay-desc], .pay-detail.is-swap [data-pay-code] { animation: rowin .3s cubic-bezier(.2, .8, .2, 1) both; }
.pay-detail.is-swap [data-pay-st] { animation: blink .5s steps(2, jump-none) 2; }
/* testimonials: corner marks arrive under the pointer */
.said-grid figure { position: relative; transition: background .25s; }
.said-grid figure::after { content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0; --c: var(--signal); --l: 14px; transition: opacity .2s, inset .2s steps(3);
  background: linear-gradient(var(--c), var(--c)) left top / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l) no-repeat; }
.said-grid figure:hover { background: var(--panel-2); }
.said-grid figure:hover::after { opacity: 1; inset: 8px; }
.said-grid figure img { transition: transform .2s steps(3); }
.said-grid figure:hover img { transform: translateY(-3px); }
/* questions */
.faq-list summary { transition: color .2s, box-shadow .2s steps(3), padding-left .2s steps(3); }
.faq-list summary:hover, .faq-list details[open] summary { box-shadow: inset 3px 0 0 var(--signal); }
.faq-list summary:hover::after { transform: rotate(90deg); color: var(--signal); }
.faq-list details[open] summary:hover::after { transform: rotate(45deg); }
/* links, footer, docs */
.textcta:hover span, .hero-new:hover span { transform: translateX(5px); }
.foot a { transition: color .2s, translate .15s steps(2); }
.foot a:hover { color: var(--signal); translate: 3px 0; }
.docs-side a { transition: color .2s, padding-left .15s steps(2); }
.docs-side nav a:hover { padding-left: 4px; color: var(--ink); }
.prose tbody tr { transition: background .15s; }
.prose tbody tr:hover { background: var(--panel-2); }
.prose .copy { transition: color .2s, border-color .2s, background .2s, transform .08s; }
.prose .copy.is-done { color: #000; background: var(--signal); border-color: var(--signal); }
dialog.zoom[open] { animation: rowin .22s cubic-bezier(.2, .8, .2, 1); }
dialog.zoom::backdrop { animation: fadein .22s both; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
