/* Coinsnap Wallet page (template-wallet.php). Ported from docs/prototypes/wallet-b/style.css. */
:root {
  --primary: #1a3b8b;
  --orange: #f7931a;
  --accent: #6193c9;
  --accent-20: #e4ebf4;
  --zone: #edf2fc;
  --light: #f3f4f9;
  --steel: #2c3e6b;
  --amber: #ffb347;
  --dark: #0f132a;
  --body: #434d5a;
  --muted: #5a6478;
  --green: #2bc48a;
  --green-ink: #0e7a52;
  --orange-ink: #a85a00;
  --on-blue: #d6def0;
  --line: rgba(26, 59, 139, .12);
  --line-2: rgba(26, 59, 139, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --nav: 68px;
  --ph: min(740px, calc(100vh - var(--nav) - 56px));
  --sec: clamp(96px, 12vw, 168px);
  --display: "Inter", serif;
  --text: "Inter", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 400 17px/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--primary); text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .96; letter-spacing: -.028em; font-weight: 700; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); line-height: 1; letter-spacing: -.036em; font-weight: 700; max-width: 15ch; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 650; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--body); max-width: 52ch; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--dark); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav__brand { display: inline-flex; align-items: center; padding: 6px 12px; margin-left: -12px; border-radius: 999px; background: transparent; transition: background .35s var(--ease); }
.nav__brand img { display: block; width: 128px; height: auto; }
.nav { transition: background .35s var(--ease), border-color .35s; }
.js .nav.is-over { background: var(--primary); border-bottom-color: rgba(255, 255, 255, .14); backdrop-filter: none; -webkit-backdrop-filter: none; }
.js .nav.is-over .nav__brand { background: #fff; }
.js .nav.is-over .nav__links a { color: #fff; }
.js .nav.is-over .nav__links a:hover { color: var(--amber); }
.js .nav.is-over .btn { background: var(--orange); color: var(--dark); }
.js .nav.is-over .btn:hover { background: var(--amber); }
.js .nav.is-over :focus-visible { outline-color: var(--orange); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .96rem; font-weight: 500; }
.nav__links a { color: var(--steel); text-decoration: none; padding: 6px 0; }
.nav__links a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 900px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .98rem/1 var(--text); text-decoration: none; border-radius: 999px; padding: 13px 22px; background: var(--primary); color: #fff; transition: background .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--steel); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 22px 10px 18px; border-radius: 16px; background: var(--dark); color: #fff; text-decoration: none; font: 600 1.12rem/1.1 var(--text); box-shadow: 0 10px 24px -12px rgba(15, 19, 42, .5); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .7rem; font-weight: 500; opacity: .82; letter-spacing: .01em; margin-bottom: 2px; }
.store:hover { color: #fff; background: #1b2140; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(15, 19, 42, .55); }
.alt-dl { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* ---------- icon sprite ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- phone ---------- */
.phone { position: relative; height: var(--ph); aspect-ratio: 620 / 1130; padding: 10px; border-radius: 48px; background: var(--dark); box-shadow: 0 2px 0 1px #2a3152 inset, 0 40px 80px -30px rgba(15, 19, 42, .45), 0 18px 36px -18px rgba(26, 59, 139, .35); }
.phone::before { content: ""; position: absolute; top: 3px; left: 50%; width: 18%; height: 4px; transform: translateX(-50%); border-radius: 4px; background: #2a3152; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; container-type: inline-size; isolation: isolate; }
.scr { position: absolute; inset: 0; background: #fff; }
.scr > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph-tag { position: absolute; z-index: 4; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; font: 600 .72rem/1 var(--text); letter-spacing: .01em; color: #3a2d00; background: #ffd84d; padding: 7px 11px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(58, 45, 0, .5); }

/* JS-driven screen transitions */
.js .stage .scr { opacity: 0; clip-path: inset(0 0 100% 0 round 0); transform: scale(1.03); transition: clip-path .75s var(--ease), opacity .4s linear, transform .9s var(--ease), filter .6s var(--ease); }
.js .stage .scr.is-on { opacity: 1; clip-path: inset(0 0 0 0); transform: none; z-index: 2; }
.js .stage .scr.is-off { opacity: 0; clip-path: inset(0 0 0 0); transform: scale(.94); filter: blur(6px); z-index: 1; }
.stage .ph-tag { opacity: 0; transition: opacity .4s var(--ease); }
.stage[data-mock="1"] .ph-tag { opacity: 1; }
.no-js .stage .scr:not(:first-child) { display: none; }

/* ---------- app mock (drawn in the app's own style) ---------- */
.mk { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 13cqw 5.5cqw 5cqw; font: 500 4cqw/1.3 var(--text); color: var(--dark); background: #fff; }
.mk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5cqw; }
.mk-top img { width: 30cqw; }
.mk-top .ico { width: 6.4cqw; height: 6.4cqw; color: var(--primary); stroke-width: 2; }
.mk-chip { align-self: center; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.6cqw 3.4cqw; border-radius: 99px; background: var(--light); color: var(--primary); font-size: 3.4cqw; font-weight: 600; margin-bottom: 4cqw; }
.mk-chip i { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--orange); }
.mk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; padding: 1cqw; border-radius: 3.4cqw; background: var(--light); margin-bottom: 7cqw; }
.mk-tabs span { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; padding: 2.4cqw 0; border-radius: 2.6cqw; color: var(--muted); font-size: 3.6cqw; font-weight: 600; }
.mk-tabs span.on { background: #fff; color: var(--dark); box-shadow: 0 1px 4px rgba(15, 19, 42, .12); }
.mk-tabs .ico { width: 4cqw; height: 4cqw; }
.mk-bal { text-align: center; font: 700 12cqw/1 var(--display); letter-spacing: -.03em; color: var(--orange); }
.mk-bal em { font: 500 5cqw/1 var(--text); font-style: normal; color: #9aa3b5; letter-spacing: 0; }
.mk-bal--usd { color: var(--dark); }
.mk-bal--usd sup { font-size: 6cqw; vertical-align: 4cqw; color: var(--green-ink); margin-right: .6cqw; }
.mk-fiat { text-align: center; color: var(--muted); font-size: 3.8cqw; margin: 2.4cqw 0 8cqw; }
.mk-acts { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 3cqw; align-items: center; margin-bottom: 8cqw; }
.mk-acts span { display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; font-size: 3.3cqw; font-weight: 600; color: var(--primary); }
.mk-acts .ico { width: 6cqw; height: 6cqw; stroke-width: 2; }
.mk-acts .main { background: var(--primary); color: #fff; padding: 4cqw 0; border-radius: 5cqw; box-shadow: 0 3cqw 6cqw -3cqw rgba(26, 59, 139, .6); }
.mk-h { display: flex; justify-content: space-between; font-size: 3.4cqw; color: var(--muted); font-weight: 600; margin-bottom: 2cqw; }
.mk-h b { color: var(--primary); font-weight: 600; }
.mk-row { display: grid; grid-template-columns: 9cqw 1fr auto; gap: 3cqw; align-items: center; padding: 2.8cqw 0; border-top: 1px solid var(--light); }
.mk-row i { width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: #fff4e5; color: var(--orange); }
.mk-row i.usd { background: #e3f8ef; color: var(--green-ink); }
.mk-row i .ico { width: 4.6cqw; height: 4.6cqw; stroke-width: 2.2; }
.mk-row span { font-weight: 600; font-size: 3.7cqw; }
.mk-row span small { display: block; font-weight: 500; color: var(--muted); font-size: 3.1cqw; }
.mk-row b { font-size: 3.8cqw; color: var(--orange); font-weight: 700; }
.mk-row b.usd { color: var(--green-ink); }
.mk-row b.neg { color: var(--dark); }
.mk-title { text-align: center; font-weight: 700; font-size: 4.6cqw; margin-bottom: 6cqw; }
.mk-card { border: 1px solid var(--accent-20); border-radius: 4cqw; padding: 4cqw; background: #fbfcfe; }
.mk-card small { display: block; color: var(--muted); font-size: 3.2cqw; font-weight: 600; margin-bottom: 2cqw; }
.mk-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; }
.mk-card .row strong { font: 700 8.6cqw/1 var(--display); letter-spacing: -.03em; color: var(--orange); }
.mk-card .row strong.usd { color: var(--dark); }
.mk-card .row em { font-style: normal; font-size: 3.4cqw; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 1.4cqw; }
.mk-card .row em i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--orange); }
.mk-card .row em i.usd { background: var(--green); }
.mk-swap { align-self: center; width: 12cqw; height: 12cqw; margin: -2.4cqw 0; z-index: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--accent-20); color: var(--primary); box-shadow: 0 2cqw 4cqw -2cqw rgba(15, 19, 42, .25); }
.mk-swap .ico { width: 5.4cqw; height: 5.4cqw; stroke-width: 2; }
.mk-rate { text-align: center; color: var(--muted); font-size: 3.2cqw; margin: 4cqw 0 auto; }
.mk-btn { display: block; text-align: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 4.2cqw; padding: 4.2cqw; border-radius: 4cqw; margin-top: 4cqw; }
.mk-w { display: grid; grid-template-columns: 10cqw 1fr auto; gap: 3cqw; align-items: center; padding: 3.2cqw 3cqw; border-radius: 3.6cqw; background: #fbfcfe; border: 1px solid var(--accent-20); margin-bottom: 2.4cqw; }
.mk-w > i { width: 10cqw; height: 10cqw; border-radius: 3cqw; display: grid; place-items: center; background: var(--zone); color: var(--primary); }
.mk-w > i .ico { width: 5cqw; height: 5cqw; }
.mk-w span { font-weight: 700; font-size: 3.8cqw; min-width: 0; }
.mk-w span small { display: block; font-weight: 500; font-size: 3cqw; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-w b { font-size: 2.8cqw; font-weight: 700; padding: 1.2cqw 2.2cqw; border-radius: 99px; white-space: nowrap; }
.mk-w b.btc { background: #fff1de; color: var(--orange-ink); }
.mk-w b.usd { background: #dff6ec; color: var(--green-ink); }
.mk-w.is-new { background: #fff; border-style: dashed; border-color: var(--line-2); color: var(--muted); }
.mk-w.is-new > i { background: #fff; border: 1px dashed var(--line-2); }
.mk-w.is-new span { color: var(--muted); font-weight: 600; }
.mk-sub { text-align: center; color: var(--muted); font-size: 3.3cqw; margin: -3cqw 0 5cqw; }

/* ---------- STORY (pinned phone) ---------- */
.story { position: relative; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(64px, 8vw, 140px); }
.stage { position: sticky; top: calc(var(--nav) + (100vh - var(--nav) - var(--ph)) / 2); align-self: start; display: flex; align-items: center; gap: 96px; height: var(--ph); margin: 0 0 8px; }
.steps { min-width: 0; padding-bottom: .5vh; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 12vh 0; }
/* Desktop only (the pinned-phone layout is disabled below 961px, see .stage { display:none }
   in the 960px media query further down). The last step has no following step to transition
   into, so it doesn't need the same trailing pacing space as the others — trimming it removes
   the dead band before the next section while the phone still settles centred on this step. */
@media (min-width: 961px) {
  .step:last-child { min-height: 36vh; }
}
.step__copy { max-width: 520px; }
.step__copy > * + * { margin-top: 20px; }
.step__copy h2 + .lead { margin-top: 24px; }
.step__fig { display: none; }
.js .step__copy { transition: opacity .6s var(--ease), filter .6s var(--ease), transform .8s var(--ease); }
.js .story--pinned .step:not(.is-active) .step__copy { opacity: .28; filter: blur(1.5px); transform: translateY(8px); }

.verb { display: flex; align-items: center; gap: 14px; }
.verb .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--zone); color: var(--primary); stroke-width: 2; }
.defs { display: grid; gap: 22px; margin: 32px 0 0; padding: 0; }
.defs div { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start; }
.defs dt { grid-row: span 2; }
.defs dt .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; stroke-width: 2; }
.defs dt .ico.btc { background: #fff1de; color: var(--orange-ink); }
.defs dt .ico.usd { background: #dff6ec; color: var(--green-ink); }
.defs b { display: block; font: 650 1.2rem/1.3 var(--display); color: var(--dark); }
.defs dd { margin: 2px 0 0; }

/* hero step */
.story { position: relative; isolation: isolate; overflow-x: clip; }
.step--hero { position: relative; }
.step--hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; z-index: -1; background:
    radial-gradient(900px 600px at 68% 42%, rgba(97, 147, 201, .55), transparent 62%),
    radial-gradient(600px 400px at 20% 100%, rgba(44, 62, 107, .9), transparent 70%),
    var(--primary); }
.step--hero h1 { color: #fff; }
.h1-line { display: block; }
.h1-accent { color: var(--orange); }
.js .h1-line { animation: lineUp 1s var(--ease) both; }
.js .h1-line:nth-child(2) { animation-delay: .1s; }
.js .h1-line:nth-child(3) { animation-delay: .2s; }
@keyframes lineUp { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
.hero__verbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px !important; }
.hero__verbs span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 17px; }
.hero__verbs .ico { color: var(--orange); stroke-width: 2.4; width: 20px; height: 20px; }
.step--hero .lead { margin-top: 24px; color: var(--on-blue); }
.step--hero .stores { margin-top: 34px; }
.step--hero .store { background: #fff; color: var(--dark); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .45); }
.step--hero .store:hover { background: var(--zone); color: var(--dark); }
.step--hero .alt-dl { color: var(--on-blue); }
.step--hero .alt-dl a { color: #fff; font-weight: 600; }
.step--hero .alt-dl a:hover { color: var(--amber); }
.step--hero :focus-visible { outline-color: var(--orange); }

/* progress rail */
.rail { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.rail::before, .rail::after { content: ""; position: absolute; left: 5px; top: 8px; width: 2px; bottom: 8px; background: var(--accent-20); border-radius: 2px; }
.rail::after { background: var(--primary); height: calc(100% - 16px); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform .6s var(--ease); }
.rail a { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 500; padding: 2px 0; white-space: nowrap; }
.rail a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-20); box-sizing: border-box; flex: none; z-index: 1; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.rail a.is-done::before { border-color: var(--primary); background: var(--primary); }
.rail a.is-current { color: var(--primary); font-weight: 700; }
.rail a.is-current::before { border-color: var(--primary); background: #fff; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(26, 59, 139, .12); }
.rail a:hover { color: var(--primary); }
.stage[data-step="0"] .rail::before { background: rgba(255, 255, 255, .22); }
.stage[data-step="0"] .rail a { color: var(--on-blue); }
.stage[data-step="0"] .rail a::before { background: transparent; border-color: rgba(255, 255, 255, .4); }
.stage[data-step="0"] .rail a.is-current { color: #fff; }
.stage[data-step="0"] .rail a.is-current::before { border-color: #fff; background: var(--primary); box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }

/* ---------- BITCOIN & DOLLARS CHART (plays once on view) ---------- */
.band { background: var(--primary); color: #e4ebf4; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #dce5f5; }
.volat { background: linear-gradient(var(--zone), #fff 70%); }
.volat__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.volat__head h2 { max-width: 17ch; }
.volat__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.volat__side h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.03em; font-weight: 700; }
.volat__side .lead { margin-top: 18px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.volat__side .legend { margin-top: 28px; }
.legend li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
.legend li > i { margin-top: .7em; height: 4px; border-radius: 2px; }
.legend li > i.btc { background: #e07800; }
.legend li > i.usd { background: #22a775; }
.legend li > i.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: .4em; }
.legend b { color: var(--dark); font-weight: 650; display: block; font-family: var(--display); font-size: 1.1rem; }
.legend span { color: var(--body); font-size: .96rem; }
.note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--body); max-width: 50ch; font-size: .98rem; }
.note strong { color: var(--dark); }
.note p + p, .faq__more p + p { margin-top: .6em; }
.chart { position: relative; margin: 0; padding: clamp(18px, 2.4vw, 32px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(26, 59, 139, .45); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; font-size: .88rem; color: var(--muted); }
.tag-illus { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--steel); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 12px var(--text); }
.chart .l-btc { fill: none; stroke: #e07800; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .l-usd { fill: none; stroke: #22a775; stroke-width: 3.5; stroke-linecap: round; }
.chart .area-btc { fill: url(#gBtc); }
.chart .lbl { font: 700 13px var(--text); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.chart .lbl--btc { fill: var(--orange-ink); }
.chart .lbl--usd { fill: var(--green-ink); }
.chart .tip { stroke: #fff; }
.chart .conn { stroke: #22a775; stroke-width: 1.5; stroke-dasharray: 3 4; }
.chart .pay { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 4px rgba(15, 19, 42, .25)); }
.chart .pay.btc { fill: var(--orange); }
.chart .pay.usd { fill: var(--green); }
.chart .ring { fill: none; stroke: #22a775; stroke-width: 2; }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.tally div { padding: 14px 16px; border-radius: 16px; background: var(--light); }
.tally small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.tally small i { width: 10px; height: 10px; border-radius: 50%; }
.tally strong { display: block; margin-top: 4px; font: 700 2rem/1.1 var(--display); color: var(--primary); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tally strong em { font-style: normal; }
.tally strong span { font: 500 .9rem var(--text); color: var(--muted); letter-spacing: 0; margin-left: 6px; }

/* ---------- generic sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--zone { background: var(--zone); }
.sec__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec__head h2 { max-width: 15ch; }

/* reveal */
.js [data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); filter: blur(6px); }

/* ---------- POS extras: reporting chart ---------- */
.pos-more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.report { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(26, 59, 139, .35); }
.report__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report__top h3 { font-size: 1.3rem; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.report__top h3 .ico { color: var(--primary); }
.report__top p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.tag-illus--ink { color: var(--steel); border-color: var(--line-2); }
.report__total { margin-top: 26px; font: 700 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--display); color: var(--primary); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.report__total small { display: block; font: 500 .9rem var(--text); color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.bars { margin-right: 60px; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1.6vw, 18px); height: 220px; align-items: end; margin-top: 30px; padding-bottom: 28px; position: relative; border-bottom: 1px solid var(--line-2); }
.bars::before { content: ""; position: absolute; inset: 0 0 28px; background: repeating-linear-gradient(to top, transparent 0 54px, var(--line) 54px 55px); pointer-events: none; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar__stack { display: flex; flex-direction: column; justify-content: flex-end; height: var(--h); border-radius: 8px 8px 3px 3px; overflow: hidden; transform-origin: bottom; }
.bar__stack i { display: block; }
.bar__stack i.usd { background: var(--green); height: var(--u); }
.bar__stack i.btc { background: var(--orange); flex: 1; }
.bar > span { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.js .report:not(.is-in) .bar__stack { transform: scaleY(0); }
.js .report .bar__stack { transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + .2s); }
.report__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; font-size: .88rem; color: var(--body); }
.report__legend span { display: inline-flex; align-items: center; gap: 8px; }
.report__legend i { width: 12px; height: 12px; border-radius: 3px; }
.report .mini { position: absolute; right: -64px; bottom: -64px; width: 132px; transform: rotate(4deg); border-radius: 24px; padding: 6px; background: var(--dark); box-shadow: 0 30px 50px -24px rgba(15, 19, 42, .5); }
.report .mini img { border-radius: 19px; }
.feats { list-style: none; margin: 0; padding: 0; }
.feats li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.feats li:last-child { border-bottom: 1px solid var(--line); }
.feats .ico { width: 24px; height: 24px; color: var(--primary); margin-top: 3px; grid-row: span 2; }
.feats b { font: 650 1.15rem/1.3 var(--display); color: var(--dark); }
.feats span { color: var(--body); }

/* ---------- GATEWAY ---------- */
.gw { display: grid; grid-template-columns: minmax(200px, 250px) minmax(80px, 1fr) auto minmax(60px, 180px) minmax(200px, 250px); align-items: center; }
.gw__src { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gw__src li { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--dark); }
.gw__src .ico { width: 22px; height: 22px; color: var(--primary); }
.gw__wires { width: 100%; height: 310px; overflow: visible; }
.gw__wires path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.gw__wires path.pulse { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .06 .94; animation: pulse 2.6s linear infinite; animation-delay: var(--d, 0s); }
@keyframes pulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .gw:not(.is-in) .gw__wires path:not(.pulse) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .gw .gw__wires path:not(.pulse) { stroke-dasharray: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: var(--d, 0s); }
.gw__hub { display: grid; justify-items: center; gap: 8px; padding: 26px 28px; border-radius: 24px; background: #fff; color: var(--primary); font-weight: 600; font-size: .88rem; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(26, 59, 139, .6); }
.gw__hub img { width: 120px; }
.gw__dest { padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -34px rgba(26, 59, 139, .5); }
.gw__dest small { color: var(--muted); font-size: .86rem; display: block; }
.gw__dest strong { display: block; font: 700 2rem/1.1 var(--display); color: var(--orange-ink); letter-spacing: -.02em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.gw__dest strong .unit { font: 500 .95rem var(--text); color: var(--muted); letter-spacing: 0; }
.gw__dest b { color: var(--primary); display: flex; align-items: center; gap: 8px; }
.gw__dest b .ico { width: 20px; height: 20px; }
.reports { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-top: clamp(96px, 11vw, 150px); }
.reports h3 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.03em; }
.reports p { margin-top: 20px; max-width: 42ch; }
.shots { position: relative; padding-bottom: 12%; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(15, 19, 42, .4); }
.shot__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--light); border-bottom: 1px solid var(--line); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6e4; }
.shot--back { width: 88%; }
.shot--front { position: absolute; right: 0; bottom: 0; width: 62%; }

/* ---------- SELF-CUSTODY (ported from variant C) ---------- */
.sec--light { background: var(--light); }
.bento { display: grid; gap: 18px; }
.tile { position: relative; border-radius: 28px; padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-width: 0; }
.tile h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
.tile__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.t--blue { background: var(--primary); color: var(--on-blue); }
.t--blue h3 { color: #fff; }
.t--zone { color: var(--body); background: #e6edfb; border: 1px solid #dce6f7; }
.bento--sec { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "seed seed dev"; }
.tile--seed { grid-area: seed; gap: 22px; }
.tile--device { grid-area: dev; gap: 20px; }
.tile--seed h3 { display: inline-flex; align-items: center; gap: 12px; }
.tile--seed h3 .ico { color: var(--orange); width: 28px; height: 28px; }
.seed__count { color: #fff; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.seed__count b { font-size: 34px; color: var(--orange); }
.seed__ex { align-self: flex-start; margin-top: -8px; font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: #3a2d00; background: #ffd84d; padding: 5px 10px; border-radius: 99px; }
.seed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: w; }
.seed li { counter-increment: w; display: flex; align-items: center; gap: 12px; min-width: 0; background: rgba(255, 255, 255, .09); border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 18px 16px; transition: background .4s, border-color .4s; }
.seed li::before { content: counter(w); font-weight: 700; font-size: 14px; color: var(--on-blue); width: 20px; flex: none; font-variant-numeric: tabular-nums; }
.seed li span { color: #fff; font-weight: 600; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; transition: opacity .45s var(--ease), transform .5s var(--ease), filter .45s var(--ease); }
.seed li.is-f { background: rgba(255, 255, 255, .16); border-color: var(--orange); }
.js .tile--seed .seed li:not(.is-f) span { opacity: 0; transform: translateY(6px); filter: blur(4px); }
.seed__done { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: var(--dark); background: var(--green); font-weight: 700; padding: 10px 16px; border-radius: 999px; transition: opacity .5s, transform .5s var(--ease); }
.seed__done .ico { stroke-width: 2.6; width: 20px; height: 20px; }
.seed__done.is-hidden { opacity: 0; transform: translateY(8px); }
.cvault { position: relative; height: 250px; display: grid; place-items: center; }
.cvault__phone { width: 130px; height: 226px; border-radius: 30px; border: 8px solid var(--primary); background: #fff; display: grid; place-items: center; box-shadow: 0 22px 44px -26px rgba(26, 59, 139, .5); }
.cvault__lock { width: 58px; height: 58px; color: var(--primary); stroke-width: 1.6; }
.cvault__coin { position: absolute; width: 74px; height: 74px; filter: drop-shadow(0 12px 14px rgba(15, 19, 42, .22)); animation: floatA 5s ease-in-out infinite; }
.cvault__coin svg { width: 100%; height: 100%; }
.cvault__coin--btc { left: calc(50% - 118px); bottom: 26px; }
.cvault__coin--usd { right: calc(50% - 118px); top: 20px; animation-duration: 6s; animation-delay: 1s; }
@keyframes floatA { 50% { transform: translateY(-10px) rotate(-4deg); } }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--body); }
.facts .ico { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; }
.facts b { color: var(--dark); }

/* ---------- DOWNLOAD ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cta .lead { margin-top: 20px; }
.cta .stores { margin-top: 36px; }
.band .store { background: #fff; color: var(--dark); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .45); }
.band .store:hover { background: var(--zone); color: var(--dark); }
.band .alt-dl { color: #c9d6ee; }
.band a:not(.store) { color: #fff; }
.band a:not(.store):hover { color: var(--amber); }
.qr { margin: 0; padding: 22px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.qr img { width: 176px; height: 176px; }
.qr figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 96px); }
.faq__more { margin-top: 20px; color: var(--body); }
.faq__more p { margin: 0; }
.faq__list details { border-top: 1px solid var(--line-2); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--display); color: var(--dark); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ico { width: 22px; height: 22px; color: var(--primary); transition: transform .4s var(--ease); }
.faq__list details[open] summary .ico { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--primary); }
.faq__list details p { padding: 0 48px 26px 0; max-width: 62ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot__inner img { width: 112px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.foot a { color: var(--steel); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .rail { display: none; }
  .gw { grid-template-columns: minmax(180px, 220px) minmax(50px, 1fr) auto minmax(40px, 1fr) minmax(180px, 220px); }
}
@media (max-width: 960px) {
  :root { --ph: 560px; }
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .step, .step--hero { min-height: 0; padding: 72px 0 24px; }
  .step--hero { padding-top: 48px; }
  .step__fig { display: block; position: relative; margin: 44px auto 0; width: fit-content; }
  .step__fig .phone { height: min(var(--ph), 150vw); }
  .step__fig .phone__screen .mk, .step__fig .scr { position: absolute; }
  .js .story--pinned .step:not(.is-active) .step__copy { opacity: 1; filter: none; transform: none; }
  .volat__grid, .volat__head { grid-template-columns: minmax(0, 1fr); }
  .bento--sec { grid-template-columns: minmax(0, 1fr); grid-template-areas: "seed" "dev"; }
  .sec__head, .pos-more, .reports, .custody, .faq, .cta { grid-template-columns: minmax(0, 1fr); }
  .gw { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; }
  .gw__src { display: flex; flex-wrap: wrap; justify-content: center; }
  .gw__src li { height: 46px; padding: 0 14px; }
  .gw__wires { display: none; }
  .gw__hub, .gw__dest { position: relative; margin-top: 56px; }
  .gw__hub::before, .gw__dest::before { content: ""; position: absolute; left: 50%; top: -48px; height: 40px; width: 2px; background: var(--accent); }
  .report .mini { display: none; }
  .bars { margin-right: 0; }
  .qr { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .tally { grid-template-columns: 1fr; }
  .seed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .seed li { padding: 12px; }
  .cvault { height: 220px; }
  .dl-coin--usd { right: 0; }
  .phone--dl { right: 14px; }
  .dl-scene { overflow-x: clip; overflow-y: visible; }
  .bars { height: 180px; }
  .faq__list details p { padding-right: 0; }
  .foot nav { margin-left: 0; }
}


/* ---------- verb headings ---------- */
.verb--xl { font-size: clamp(2.4rem, 4.8vw, 4.4rem); letter-spacing: -.036em; font-weight: 700; gap: 18px; }
.verb--xl .ico { width: clamp(52px, 5vw, 68px); height: clamp(52px, 5vw, 68px); padding: clamp(12px, 1.2vw, 16px); border-radius: 20px; }

/* ---------- stage phone + floating chips ---------- */
.stage__phone { position: relative; }
.chips { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.chip { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 20px; background: #fff; color: var(--dark); white-space: nowrap; box-shadow: 0 22px 44px -20px rgba(15, 19, 42, .38), 0 2px 6px rgba(15, 19, 42, .06); border: 1px solid rgba(26, 59, 139, .06); }
.chip > i { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff1de; color: var(--orange-ink); }
.chip > i.out { background: var(--zone); color: var(--primary); }
.chip--usd > i { background: #dff6ec; color: var(--green-ink); }
.chip > i .ico { width: 20px; height: 20px; stroke-width: 2.2; }
.chip small { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.chip strong { display: block; font: 700 1.02rem/1.25 var(--text); }
.chip strong b { font-weight: 700; }
.chip--big { padding: 14px 22px 14px 14px; border-radius: 24px; }
.chip--big > i { width: 48px; height: 48px; }
.chip--big strong { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.coin { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); filter: drop-shadow(0 14px 16px rgba(15, 19, 42, .28)); }
.chips.is-on .chip, .chips.is-on .coin { animation: bob 7s ease-in-out infinite alternate; }
.chips.is-on > :nth-child(2) { animation-delay: -2.5s; }
.chips.is-on > :nth-child(3) { animation-delay: -4s; animation-duration: 9s; }
.chips.is-on > :nth-child(4) { animation-delay: -1s; animation-duration: 8s; }
@keyframes bob { from { translate: 0 -6px; } to { translate: 0 8px; } }
.no-js .stage .chips:not(.is-on) { display: none; }
.js .stage .chips > * { transition: opacity .5s var(--ease), transform .8s var(--ease), filter .6s var(--ease); }
.js .stage .chips:not(.is-on) > * { opacity: 0; transform: translateY(22px) scale(.86); filter: blur(8px); transition-duration: .3s; }
.js .stage .chips.is-on > :nth-child(1) { transition-delay: .25s; }
.js .stage .chips.is-on > :nth-child(2) { transition-delay: .4s; }
.js .stage .chips.is-on > :nth-child(3) { transition-delay: .52s; }
.js .stage .chips.is-on > :nth-child(4) { transition-delay: .62s; }
.stage .ph-tag { bottom: -16px; }
.step__fig .ph-tag { bottom: -12px; }

/* ---------- download scene ---------- */
.dl-scene { position: relative; justify-self: end; width: min(100%, 460px); height: 500px; }
.phone--dl { --ph: 480px; position: absolute; right: 0; top: 0; transform: rotate(6deg); }
.phone--dl::before { display: none; }
.dl-scene .qr { position: absolute; left: 0; bottom: 0; transform: rotate(-4deg); z-index: 2; }

/* ---------- download coins ---------- */
.dl-coin { position: absolute; z-index: 3; animation: floatA 6s ease-in-out infinite; }
.dl-coin--btc { --s: 96px; left: 30%; top: -24px; }
.dl-coin--usd { --s: 74px; right: -18px; bottom: 60px; animation-duration: 7s; animation-delay: -2s; }

/* ---------- FAQ art ---------- */
.faq__art { position: relative; height: 230px; margin-top: 48px; }
.faq__art .chip { position: absolute; }
.faq__art .chip:nth-child(1) { left: 0; top: 0; transform: rotate(-3deg); }
.faq__art .chip:nth-child(2) { left: 22%; top: 80px; transform: rotate(2deg); }
.faq__art .chip:nth-child(3) { left: 6%; top: 160px; transform: rotate(-1.5deg); }

/* ---------- very tall viewports (e.g. full-page captures): unpin ---------- */
@media (min-height: 1400px) and (min-width: 961px) {
  :root { --ph: 740px; }
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .step, .step--hero { min-height: 0; padding: 100px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 160px; }
  .step__fig { display: block; position: relative; margin: 0; }
  .step__fig .phone { height: 720px; }
  .step__fig { margin-right: 150px; }
  .js .story--pinned .step:not(.is-active) .step__copy { opacity: 1; filter: none; transform: none; }
}
@media (max-width: 960px) {
  .step__fig .phone { height: min(560px, 140vw); }
  .step__fig .chip { left: auto; top: auto; font-size: .9em; }
  .step__fig .chip:nth-child(1) { left: -14%; top: 14%; }
  .step__fig .chip:nth-child(2) { right: -14%; bottom: 16%; }
  .step__fig .coin { display: none; }
  .step__fig .chip--big { padding: 10px 16px 10px 10px; }
  .step__fig .chip--big > i { width: 40px; height: 40px; }
  .step__fig .chip--big strong { font-size: 1.05rem; }
  .dl-scene { justify-self: center; height: 460px; }
  .phone--dl { --ph: 440px; }
}
@media (max-width: 560px) {
  .step__fig .chip:nth-child(1) { left: -6%; }
  .step__fig .chip:nth-child(2) { right: -6%; }
  .step__fig .chip small { font-size: .7rem; }
  .step__fig .chip strong { font-size: .9rem !important; }
  .faq__art { display: none; }
  .dl-scene { height: 420px; width: 100%; }
  .phone--dl { --ph: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal]:not(.is-in), .js .report:not(.is-in) .bar__stack { opacity: 1; transform: none; filter: none; }
  .js .tile--seed .seed li:not(.is-f) span { opacity: 1; transform: none; filter: none; }
  .js .gw:not(.is-in) .gw__wires path:not(.pulse) { stroke-dashoffset: 0; }
  .gw__wires path.pulse { display: none; }
}
