/* Walletarch landing page ("Pocket Companion" + "Explore & Learn"). Dark base with a pale-blue network section and a violet learning
   section. Self-hosted fonts, no external requests, no framework. */

@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #080b13;
  --text: #f5f7ff;
  --muted: #b5bfd3;
  --line: #2e3b55;
  --accent: #a3b7ff;
  --cobalt: #436be9;
  --cobalt-hover: #365bd2;
  --focus: #728eff;
  --pale: #dfe8ff;
  --pale-ink: #12264c;
  --violet: #a9a2f3;
  --violet-ink: #1a1846;
  --slate: #101b32;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, a { font: inherit; touch-action: manipulation; }
button { cursor: pointer; color: inherit; background: none; border: 1px solid transparent; min-height: 44px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -0.045em; }
h1 { font-size: clamp(42px, 6.1vw, 88px); font-weight: 650; }
h2 { font-size: clamp(38px, 4.3vw, 62px); font-weight: 600; }
h3 { font-size: 28px; font-weight: 600; }
p { color: var(--muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
.hero-stage, .install-art { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hero-stage img, .install-art img { -webkit-user-drag: none; user-select: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cobalt); color: #fff; padding: 12px 16px; border-radius: 10px; z-index: 100; transition: top 0.15s; }
.skip:focus { top: 12px; }

.wrap { width: min(1264px, calc(100% - 80px)); margin-inline: auto; }

/* ------------------------------------------------------------------ header: a floating glass bar (logo, centred links, sign in + get started) */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 70px; margin-top: 20px; padding: 0 12px 0 26px; position: relative; z-index: 6; border-radius: 99px; border: 1px solid rgba(116, 142, 212, 0.26); background: linear-gradient(180deg, rgba(24, 33, 56, 0.78), rgba(13, 19, 35, 0.78)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.brand { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.brand img { width: 158px; height: auto; }
.nav { display: flex; gap: 4px; font-size: 14px; color: #c0c8da; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.04); }
.nav a { min-height: 40px; padding: 0 18px; display: flex; align-items: center; border-radius: 99px; transition: color 0.15s, background-color 0.18s; }
.nav a:hover { color: #fff; background: rgba(140, 164, 255, 0.16); }
.tools { display: flex; align-items: center; gap: 6px; justify-self: end; grid-column: 3; }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; font-size: 14px; color: #c0c8da; transition: color 0.15s, background-color 0.18s; }
.signin:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.tools .primary { min-height: 46px; padding: 0 24px; font-size: 14px; box-shadow: 0 6px 20px rgba(48, 92, 236, 0.4); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid rgba(116, 142, 212, 0.3); border-radius: 50%; place-items: center; background: rgba(255, 255, 255, 0.05); }
.menu { display: none; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 10px; padding: 12px; position: relative; z-index: 6; border-radius: 26px; border: 1px solid rgba(116, 142, 212, 0.26); background: rgba(14, 20, 36, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.menu.open { display: flex; }
.menu a:not(.primary) { min-height: 50px; display: flex; align-items: center; padding: 0 16px; border-radius: 16px; font-size: 17px; }
.menu a:not(.primary):hover { background: rgba(140, 164, 255, 0.14); }
.menu .primary { margin: 8px 0 2px; }

/* buttons */
.primary { display: inline-flex; justify-content: center; align-items: center; background: var(--cobalt); border-radius: 99px; padding: 0 28px; font-weight: 600; font-size: 15px; min-height: 54px; color: #fff; transition: background-color 0.16s, transform 0.18s; }
.primary:hover, .primary:focus-visible { background: var(--cobalt-hover); }
.primary:active { transform: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; border-bottom: 1px solid #53658e; transition: color 0.15s, border-color 0.15s; }
.text-link:hover { color: #91aaff; border-bottom-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  html[data-motion="full"] .primary:hover { transform: translateY(-2px); }
}

/* ------------------------------------------------------------------ the scroll-linked light */
.page { position: relative; isolation: isolate; }
main { position: relative; }
/* under the cards, the phone and the install box (their z-index is 2), over the section backgrounds: the line slips behind them */
.trace { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
@media (max-width: 800px) { .trace { display: none; } }
.trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trace path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.glow { position: absolute; left: 0; top: 0; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; background: radial-gradient(circle, rgba(130, 150, 255, 0.55) 0%, rgba(150, 110, 255, 0.24) 36%, rgba(120, 110, 255, 0) 70%); opacity: 0; will-change: transform; transition: opacity 0.2s; }
.glow.on { opacity: 1; }
.glow i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #eaf0ff; box-shadow: 0 0 12px 4px rgba(190, 205, 255, 0.85); }
/* lighter backgrounds get a deeper blue / indigo light so the line and the glow stay visible there */
.glow[data-tone="pale"] { background: radial-gradient(circle, rgba(60, 84, 240, 0.6) 0%, rgba(90, 80, 232, 0.28) 36%, rgba(80, 80, 230, 0) 70%); }
.glow[data-tone="pale"] i { background: #2a3ed0; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 14px 5px rgba(60, 84, 240, 0.7); }
.glow[data-tone="violet"] { background: radial-gradient(circle, rgba(38, 28, 150, 0.62) 0%, rgba(62, 42, 175, 0.3) 36%, rgba(60, 40, 170, 0) 70%); }
.glow[data-tone="violet"] i { background: #1f1688; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 14px 5px rgba(50, 30, 170, 0.7); }
main > section > *, main > .wallet-grid { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ hero */
.hero { text-align: center; position: relative; padding: clamp(14px, 3.4vh, 40px) 0 0; overflow: hidden; background: radial-gradient(ellipse at 50% 72%, rgba(25, 50, 100, 0.4), transparent 50%); }
.hero h1 { position: relative; z-index: 3; font-size: clamp(38px, min(5.3vw, 6.7vh), 74px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .intro { max-width: 590px; margin: clamp(10px, 1.8vh, 18px) auto 0; font-size: clamp(16px, 2vh, 18px); }
.hero-stage { --sh: clamp(290px, 44vh, 450px); height: var(--sh); position: relative; max-width: 1060px; margin: clamp(8px, 2.6vh, 30px) auto 0; perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.orbit-line { position: absolute; inset: 100px 80px 45px; border: 1px solid #3d5077; border-radius: 50%; transform: rotate(-9deg); pointer-events: none; z-index: 0; }
.hero-stage[data-orbit] .orbit-line.main { display: none; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.orbit-back { z-index: 1; }
.orbit-front { z-index: 5; }
.orbit ellipse { fill: none; stroke: #4a6199; stroke-width: 1.2; }
.orbit-line.second { inset: 120px 180px 15px; transform: rotate(13deg); opacity: 0.4; }
.pocket { width: calc(var(--sh) * 1.04); position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.22s var(--ease); will-change: transform; z-index: 3; pointer-events: none; }
.pocket-body { position: relative; }
.pocket-body > img { width: 100%; height: auto; filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.4)); }
/* a click on the pocket: a quick squash and settle (its own wrapper, so it never fights the float or the tilt) */
.pocket-body.poked { animation: poke 0.55s var(--ease); }
@keyframes poke { 0% { scale: 1; } 24% { scale: 0.955 1.035; } 52% { scale: 1.035 0.985; } 78% { scale: 0.992 1.006; } 100% { scale: 1; } }
html[data-motion="full"] .pocket.floating { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

/* the eyes: attached to the front face (they are inside the same transform wrapper) */
.eyes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eyes .eye { filter: drop-shadow(0 0 14px rgba(190, 215, 255, 0.55)); }
.eyes .hit { pointer-events: all; fill: transparent; stroke: none; cursor: pointer; outline: none; }
.eyes .hit:focus-visible { stroke: var(--focus); stroke-width: 6; stroke-dasharray: 18 12; }
.eyes .ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.eyes.pulse .ring { animation: pulse 0.8s ease-out; }
@keyframes pulse { 0% { opacity: 0.6; transform: scale(0.3); } 100% { opacity: 0; transform: scale(9); } }
.eye .open, .eye .soft { transition: opacity 0.18s ease; }
.eye .soft { opacity: 0; }
.eye .lid { transform-box: fill-box; transform-origin: center; transform: scaleY(calc(var(--blink, 1) * var(--ls, 1))) rotate(var(--lr, 0deg)); transition: transform var(--blink-t, 0.11s) ease; }
.eye .gaze { transform: translate(calc(var(--gx, 0) * var(--par, 1) * 1px), calc(var(--gy, 0) * 1px)) scale(var(--gz, 1)); transition: transform 0.34s cubic-bezier(0.3, 1.45, 0.5, 1); }
.eye-l .gaze { --par: 1.12; }
.eye-r .gaze { --par: 0.88; }
.eyes[data-mood="curious"] .eye-l .lid { --ls: 1.1; --lr: -6deg; }
.eyes[data-mood="curious"] .eye-r .lid { --ls: 1.14; --lr: 4deg; }
.eyes[data-mood="attentive"] .open { opacity: 0; }
.eyes[data-mood="attentive"] .soft { opacity: 1; }
.eyes[data-mood="happy"] .open { opacity: 0; }
.eyes[data-mood="happy"] .soft { opacity: 1; }
.eyes[data-mood="happy"] .eye-l .lid { --ls: 1.12; --lr: -9deg; }
.eyes[data-mood="happy"] .eye-r .lid { --ls: 1.12; --lr: 9deg; }

/* the four network chips (real, stable click targets) */
.orb { position: absolute; display: flex; align-items: center; gap: 13px; background: rgba(20, 34, 62, 0.92); border: 1px solid #5e76b0; z-index: 4; border-radius: 22px; padding: 0 20px; min-height: 60px; min-width: 160px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.27); transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s; }
.orb img { width: 34px; height: 34px; }
.orb b { font-weight: 400; color: #afc2ff; margin-left: auto; padding-left: 4px; }
.orb:hover, .orb:focus-visible { background: #22396b; border-color: #adc1ff; }
@media (hover: hover) { html[data-motion="full"] .orb:hover { transform: translateY(-6px); } }
html[data-motion="full"] .orb:focus-visible { transform: translateY(-6px); }
.orbit-stage[data-orbit] .orb { left: 0; top: 0; right: auto; bottom: auto; translate: var(--x, 0px) var(--y, 0px); scale: var(--s, 1); will-change: translate; }
.orb-0 { left: 100px; top: 45px; }
.orb-1 { right: 55px; top: 105px; }
.orb-2 { left: 80px; bottom: 80px; }
.orb-3 { right: 115px; bottom: 34px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin: clamp(18px, 4.4vh, 46px) 0 0; padding-bottom: 80px; position: relative; z-index: 3; }

/* ------------------------------------------------------------------ pale network section */
.networks { background: var(--pale); color: var(--pale-ink); padding: 72px 0 60px; border-radius: 48px 48px 0 0; }
.networks p { color: #465b7f; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 45px; margin-bottom: 38px; }
.section-head > p { max-width: 375px; }
.network-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.network-card { position: relative; background: #edf2ff; border: 1px solid #aebfdf; border-radius: 26px; min-height: 275px; padding: 24px; text-align: left; color: var(--pale-ink); transition: transform 0.22s var(--ease), background-color 0.22s, box-shadow 0.22s; overflow: hidden; display: block; }
.network-card img { width: 72px; height: 72px; margin: 18px 0 28px; transition: transform 0.28s var(--ease); }
.network-card .num { font: 11px var(--mono); color: #566c98; }
.network-card h3 { font-size: 29px; margin-bottom: 12px; }
.network-sub { font-size: 12px; color: #445b86; display: block; }
.plus { position: absolute; right: 19px; top: 18px; border-radius: 12px; background: #dce5f8; width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; line-height: 1; transition: background-color 0.2s; }
.network-card:hover .plus, .network-card:focus-visible .plus { background: #c7d6f3; }
.network-card:hover, .network-card:focus-visible { background: #fff; box-shadow: 0 16px 30px rgba(20, 46, 106, 0.13); }
html[data-motion="full"] .network-card:hover, html[data-motion="full"] .network-card:focus-visible { transform: translateY(-6px); }
html[data-motion="full"] .network-card:hover img, html[data-motion="full"] .network-card:focus-visible img { transform: rotate(-9deg) scale(1.1); }
.underlink { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; }
.underlink button { border-bottom: 1px solid #697fa7; border-radius: 0; padding: 6px 0; color: var(--pale-ink); transition: color 0.15s; }
.underlink button:hover { color: #365bd2; border-bottom-color: currentColor; }

/* ------------------------------------------------------------------ the one wallet section */
.wallet { padding: 100px 0; }
.wallet-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 75px; align-items: center; position: relative; z-index: 2; }
.wallet h2 { font-size: clamp(40px, 4.7vw, 68px); }
.wallet-grid > div > p { margin-top: 25px; max-width: 430px; font-size: 17px; }
.features { margin-top: 35px; display: grid; border-top: 1px solid #354361; }
.features details { border-bottom: 1px solid #354361; }
.features summary { display: flex; align-items: center; gap: 15px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 17px; transition: color 0.15s, padding 0.2s; }
.features summary::-webkit-details-marker { display: none; }
.features summary:hover, .features summary:focus-visible { color: #a6bdff; }
html[data-motion="full"] .features summary:hover { padding-left: 8px; }
.features .num { font: 11px var(--mono); color: #839cc9; flex: none; }
.features .q { flex: 1; }
.features b { font-weight: 400; font-size: 22px; line-height: 1; color: #9caff1; transition: transform 0.2s var(--ease); }
.features details[open] b { transform: rotate(45deg); }
.features details[open] summary { color: #fff; }
.features details > p { margin: 0; padding: 0 34px 22px 33px; max-width: none; font-size: 15px; line-height: 1.65; }
html[data-motion="full"] .features details[open] > p { animation: faq-open 0.24s var(--ease); }
.screen-stage { margin: 0; border: 1px solid #53658f; background: radial-gradient(ellipse at 50% 25%, #314479, #162039 75%); border-radius: 45px; position: relative; padding: 38px 30px; min-width: 0; display: grid; place-items: center; }
/* a phone around the real capture: bezel, island, status bar, home bar (decorative; the screenshot stays untouched and readable) */
.phone { position: relative; width: min(100%, 383px); }
.phone-body { position: relative; border-radius: 56px; padding: 13px; background: linear-gradient(145deg, #4a5268 0%, #171b26 38%, #2c3347 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), inset 0 0 0 4px rgba(0, 0, 0, 0.55), 0 0 0 1px #0a0d14, 0 34px 70px rgba(0, 0, 0, 0.5); }
.phone-screen { position: relative; border-radius: 44px; overflow: hidden; background: #08090d; }
.status { position: relative; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; color: #f5f6f8; font: 600 14px/1 var(--font); }
.status .sys { display: inline-flex; align-items: center; gap: 6px; }
.island { position: absolute; left: 50%; top: 11px; width: 100px; height: 29px; margin-left: -50px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px #12151d; }
.screen { display: block; width: 100%; height: auto; aspect-ratio: 393 / 852; border: 0; border-radius: 0; background: #08090d; }
.home-bar { height: 22px; position: relative; background: #08090d; }
.home-bar::after { content: ""; position: absolute; left: 50%; top: 8px; width: 124px; height: 5px; margin-left: -62px; border-radius: 4px; background: rgba(245, 246, 248, 0.7); }
.phone-btn { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #2b3144, #4a526a); }
.pb-a { left: -3px; top: 96px; height: 28px; }
.pb-b { left: -3px; top: 148px; height: 52px; }
.pb-c { right: -3px; top: 176px; height: 80px; }

/* ------------------------------------------------------------------ violet learning section */
.learn { background: var(--violet); color: var(--violet-ink); padding: 75px 0; }
.learn p { color: #3f3b71; }
.learn-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.learn-card { position: relative; background: #c7c3fa; border: 1px solid #8b85ca; border-radius: 28px; padding: 26px; text-align: left; min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; color: var(--violet-ink); transition: transform 0.24s var(--ease), background-color 0.24s, box-shadow 0.24s; overflow: hidden; }
.learn-card:first-child { background: #232052; color: #fff; border-color: #514b91; }
.learn-card:first-child p { color: #c6c0ed; }
.learn-card > img { height: 190px; width: 100%; object-fit: contain; margin: 5px 0 16px; display: block; transition: transform 0.3s var(--ease); }
.learn-card h3 { font-size: 32px; margin: 12px 0 14px; }
.learn-card p { font-size: 15px; max-width: 285px; }
.learn-card .read { margin-top: auto; padding-top: 26px; font-size: 13px; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.learn-card .read b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(26, 24, 70, 0.1); font-size: 22px; font-weight: 400; line-height: 1; transition: background-color 0.2s; }
.learn-card:first-child .read b { background: rgba(255, 255, 255, 0.14); }
.learn-card:hover, .learn-card:focus-visible { background: #dad7ff; box-shadow: 0 18px 34px rgba(40, 30, 120, 0.2); }
.learn-card:first-child:hover, .learn-card:first-child:focus-visible { background: #2c2864; }
html[data-motion="full"] .learn-card:hover, html[data-motion="full"] .learn-card:focus-visible { transform: translateY(-6px); }
html[data-motion="full"] .learn-card:hover > img { transform: translateY(-8px) rotate(-4deg); }

/* the feature objects (a still image is always there; the WebGL canvas fades in over it) */
.art3d { position: relative; }
.art3d img, .art3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.art3d img { object-fit: contain; transition: opacity 0.2s ease 0.2s; }
.art3d canvas { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.art3d.is-3d canvas { opacity: 1; }
.art3d.is-3d img { opacity: 0; }

/* ------------------------------------------------------------------ install */
.install { padding: 85px 0; }
.install-box { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: var(--slate); border: 1px solid #354d7b; border-radius: 42px; padding: 48px 70px; position: relative; z-index: 2; }
.install-art { position: relative; min-height: 500px; perspective: 1200px; --rx: 0deg; --ry: 0deg; }
.phone-2d { position: absolute; left: 50%; top: -6px; width: min(510px, 118%); transform: translateX(-50%) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.22s var(--ease); z-index: 3; pointer-events: none; will-change: transform; }
.phone-2d img { width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.45)); }
html[data-motion="full"] .phone-2d.floating { animation: float 7s ease-in-out infinite; }
.orb.mini { min-height: 60px; min-width: 0; padding: 0 22px 0 12px; gap: 13px; border-radius: 20px; font-size: 16px; font-weight: 500; pointer-events: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); white-space: nowrap; }
.orb.mini .g { width: 38px; height: 38px; border-radius: 50%; background: rgba(125, 152, 255, 0.2); display: grid; place-items: center; color: #bccaff; flex: none; }
.orb.mini .g svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.orb.mini .g img { width: 23px; height: 23px; }
.install h2 { font-size: clamp(36px, 3.6vw, 52px); }
.install p { margin: 22px 0; max-width: 415px; }
.platforms { display: flex; gap: 10px; }
.platforms button { border: 1px solid #6a81b1; border-radius: 99px; padding: 0 22px; font-size: 13px; transition: background-color 0.15s, border-color 0.15s; }
.platforms button:hover { border-color: #aebfef; }
.platforms .active { background: #385bc6; border-color: #96b0ff; }
.install-steps { margin: 22px 0 0; font-size: 14px; color: #c0cce2; display: grid; gap: 8px; }
.install-steps li { padding-left: 18px; border-left: 2px solid #8ca4ff; }

/* ------------------------------------------------------------------ faq, closing, footer */
.faq { padding: 15px 0 65px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.faq h2 { font-size: clamp(34px, 3.2vw, 44px); }
.faq details { border-bottom: 1px solid #374766; }
.faq summary { display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 20px; cursor: pointer; font-size: 16px; list-style: none; transition: color 0.15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #a6bdff; }
.faq summary::after { content: "+"; color: #9cb2ff; font-size: 23px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 20px; font-size: 14px; }
html[data-motion="full"] .faq details[open] > p { animation: faq-open 0.22s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.end { text-align: center; padding: 60px 0; border-top: 1px solid var(--line); }
.end img { width: 58px; height: 58px; margin: 0 auto 24px; }
.end h2 { font-size: clamp(38px, 3.9vw, 56px); margin-bottom: 30px; }
.end .actions { display: flex; justify-content: center; gap: 25px; align-items: center; flex-wrap: wrap; }
.foot { border-top: 1px solid var(--line); padding: 26px 0; display: flex; align-items: center; gap: 35px; font-size: 12px; color: #a1afc9; position: relative; z-index: 2; }
.foot .brand img { width: 150px; }
.foot .links { margin-left: auto; display: flex; gap: 6px 20px; }
.foot .links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; transition: color 0.14s; }
.foot .links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ the explanation drawer (a bottom sheet on phones) */
.drawer { margin: 0 0 0 auto; position: fixed; inset: 0 0 0 auto; height: 100dvh; max-height: none; width: 520px; max-width: 100%; border: 0; border-left: 1px solid #7a8fba; background: #edf2ff; color: #16264a; padding: 35px; box-shadow: -30px 0 100px rgba(0, 0, 0, 0.53); overflow: auto; overscroll-behavior: contain; opacity: 0; transform: translateX(28px); transition: opacity 0.24s ease, transform 0.26s var(--ease); }
.drawer.open { opacity: 1; transform: none; }
.drawer::backdrop { background: rgba(3, 6, 18, 0.72); opacity: 0; transition: opacity 0.24s ease; }
.drawer.open::backdrop { opacity: 1; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer-head span { font: 11px var(--mono); color: #4f6590; text-transform: uppercase; letter-spacing: 0.08em; }
.close { border: 1px solid #879cc3; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: #16264a; transition: background-color 0.15s; }
.close:hover { background: #dbe5fa; }
.drawer .topic-img { width: 105px; height: 105px; object-fit: contain; margin-bottom: 30px; }
.drawer h2 { font-size: 49px; }
.drawer .lead { font-size: 19px; line-height: 1.5; margin: 25px 0; color: #30496c; }
.drawer h3 { font-size: 20px; margin: 30px 0 12px; letter-spacing: -0.5px; }
.drawer p { color: #415778; font-size: 16px; }
.takeaway { border-left: 3px solid #4d75df; background: #dbe5fa; padding: 18px; margin: 28px 0; }
.takeaway h3 { margin-top: 0; }
.drawer .source { display: inline-block; font-size: 13px; color: #31509a; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; min-height: 44px; }
.more-copy p { margin-bottom: 14px; }
.more-copy p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ reduced motion (the visitor's switch): everything stays, nothing travels */

/* ------------------------------------------------------------------ phones and small screens */
@media (max-width: 1100px) {
  .install-box { padding: 44px 40px; gap: 36px; }
  .wallet-grid { gap: 45px; }
  .faq { gap: 50px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .top { display: flex; justify-content: space-between; height: 62px; margin-top: 12px; padding: 0 8px 0 18px; gap: 15px; }
  .brand img { width: 128px; }
  .nav, .tools .primary, .tools .signin { display: none; }
  .menu-btn { display: inline-grid; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 48px); letter-spacing: -0.05em; }
  .hero .intro { font-size: 16px; padding: 0 24px; max-width: 360px; }
  .hero-stage { height: 355px; width: 100%; margin-top: 34px; }
  .pocket { width: 320px; top: 8px; }
  .orbit-line { inset: 92px 20px 58px; transform: rotate(-14deg); }
  .orbit-line.second { display: none; }
  .orb { min-width: 0; padding: 0 12px; min-height: 48px; border-radius: 15px; gap: 6px; font-size: 11px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.27); }
  .orb img { width: 25px; height: 25px; }
  .orb b { margin: 0; font-size: 15px; }
  .orb-0 { left: 13px; top: 21px; }
  .orb-1 { right: 12px; top: 65px; }
  .orb-2 { left: 12px; bottom: 74px; }
  .orb-3 { right: 18px; bottom: 35px; }
  .hero-actions { gap: 20px; margin: 6px 0 0; padding-bottom: 64px; }
  .primary { font-size: 13px; padding: 0 20px; min-height: 50px; }
  .text-link { font-size: 13px; }
  .networks { padding: 42px 0 35px; border-radius: 30px 30px 0 0; }
  .section-head { display: block; margin-bottom: 25px; }
  .section-head > p { margin-top: 18px; font-size: 15px; }
  h2 { font-size: 39px; letter-spacing: -1.8px; }
  .network-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .network-card { min-height: 222px; padding: 16px; border-radius: 20px; }
  .network-card img { width: 49px; height: 49px; margin: 22px 0 22px; }
  .network-card h3 { font-size: 22px; letter-spacing: -0.8px; }
  .network-sub { font-size: 10px; line-height: 1.4; }
  .plus { width: 29px; height: 29px; font-size: 17px; right: 12px; top: 12px; border-radius: 10px; }
  .network-card .num { font-size: 9px; }
  .underlink { display: block; font-size: 12px; }
  .underlink span { display: block; margin-bottom: 10px; }
  .wallet { padding: 50px 0; }
  .wallet-grid { display: flex; flex-direction: column; gap: 30px; align-items: stretch; }
  .wallet h2 { font-size: 43px; }
  .wallet p { font-size: 16px; margin-top: 20px; }
  .features { margin-top: 24px; }
  .features summary { font-size: 15px; padding: 12px 0; gap: 10px; }
  .features details > p { padding: 0 6px 18px 28px; font-size: 14px; }
  .screen-stage { padding: 26px 12px; border-radius: 25px; }
  .phone { width: min(100%, 360px); }
  .phone-body { border-radius: 48px; padding: 11px; }
  .phone-screen { border-radius: 38px; }
  .status { height: 42px; padding: 5px 22px 0; font-size: 13px; }
  .island { top: 9px; width: 88px; height: 26px; margin-left: -44px; }
  .learn { padding: 43px 0; }
  .learn-grid { grid-template-columns: 1fr; gap: 14px; }
  .learn-card { min-height: 0; padding: 23px; border-radius: 24px; display: grid; grid-template-columns: 1fr 100px; gap: 5px 15px; align-items: start; }
  .learn-card > img { height: 125px; width: 115px; grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
  .learn-card h3 { font-size: 25px; grid-column: 1; margin: 10px 0; }
  .learn-card p { font-size: 14px; grid-column: 1; }
  .learn-card .read { grid-column: 1 / -1; margin-top: 16px; padding-top: 0; font-size: 12px; }
  .learn-card .read b { width: 29px; height: 29px; font-size: 17px; border-radius: 10px; }
  .install { padding: 45px 0; }
  .install-box { display: flex; flex-direction: column; gap: 22px; padding: 25px 22px; border-radius: 28px; }
  .install-art { width: 100%; min-height: 340px; }
  .phone-2d { width: min(350px, 118%); }
  .orb.mini { min-height: 46px; font-size: 13px; padding: 0 14px 0 8px; gap: 8px; border-radius: 15px; }
  .orb.mini .g { width: 30px; height: 30px; }
  .orb.mini .g svg { width: 17px; height: 17px; }
  .orb.mini .g img { width: 19px; height: 19px; }
  .install h2 { font-size: 35px; }
  .install p { font-size: 15px; }
  .install-steps { font-size: 13px; }
  .faq { display: block; padding: 15px 0 40px; }
  .faq h2 { font-size: 36px; margin-bottom: 23px; }
  .faq summary { font-size: 15px; min-height: 65px; }
  .end { padding: 40px 0; }
  .end h2 { font-size: 40px; }
  .foot { flex-wrap: wrap; gap: 8px 20px; font-size: 10px; }
  .foot .brand img { width: 125px; }
  .foot .links { margin-left: 0; width: 100%; justify-content: space-between; }
  .drawer { inset: auto 0 0; width: 100%; height: auto; max-height: 91dvh; border-radius: 26px 26px 0 0; border: 1px solid #9caecc; padding: 25px; transform: translateY(40px); }
  .drawer-head { margin-bottom: 25px; }
  .drawer h2 { font-size: 36px; }
  .drawer .topic-img { width: 70px; height: 70px; margin-bottom: 20px; }
  .drawer .lead { font-size: 17px; margin: 20px 0; }
  .drawer p { font-size: 15px; }
  .drawer h3 { font-size: 19px; margin-top: 23px; }
  .takeaway { padding: 15px; margin: 22px 0; }
  .glow { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .pocket { width: 280px; top: 30px; }
  .hero-stage { height: 335px; }
  .orb { font-size: 10px; padding: 0 8px; gap: 4px; }
  .orb img { width: 23px; height: 23px; }
  .network-card { padding: 13px; }
  .network-card h3 { font-size: 19px; }
  .learn-card { grid-template-columns: 1fr 85px; padding: 20px; }
  .learn-card > img { width: 90px; }
  .learn-card h3 { font-size: 23px; }
  .learn-card p { font-size: 13px; }
  .wallet h2 { font-size: 37px; }
}

/* ------------------------------------------------------------------ legal pages (shared shell) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(32px, 7vw, 46px); letter-spacing: -0.035em; margin-bottom: 20px; }
.doc h2 { font-size: 20px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.doc p { font-size: 16px; }
.doc .meta { font: 12px/1.6 var(--mono); letter-spacing: 0.04em; color: #8fa2c9; margin-bottom: 26px; }
.doc h3 { font-size: 16px; margin: 22px 0 6px; letter-spacing: -0.005em; color: #dbe4ff; }
.doc p { margin: 0 0 12px; line-height: 1.7; }
.doc p.caps { color: var(--text); font-size: 14px; letter-spacing: 0.01em; }
.doc ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; display: grid; gap: 7px; color: var(--muted); line-height: 1.65; }
.doc li::marker { color: #6f86c8; }
.doc li strong, .doc p strong { color: var(--text); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 16px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid #2c3a57; }
.doc th { font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8fa2c9; }
.doc td { color: var(--muted); line-height: 1.6; }
.doc code { font: 13px var(--mono); color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

html.modal-open { overflow: hidden; }
