/* PolyTerminal landing - the stage. Page chrome only; the product replicas live in terminal.css / phone.css.
 * Tokens are the product's own V2 tokens (apps/terminal/src/styles/perps-ui.css). Inter + JetBrains Mono (Predict numerals). */
@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; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Inter's metrics on a system font: the swap from fallback to Inter does not move the text (no layout shift) */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107.4%; ascent-override: 90.49%; descent-override: 22.56%; line-gap-override: 0%; }

:root {
  --bg-0: #000; --bg-1: #0E0E12; --bg-2: #15151B; --bg-3: #1C1C24;
  --hair: rgba(255,255,255,.07); --hair-2: rgba(255,255,255,.12);
  --tx-1: rgba(255,255,255,.92); --tx-2: rgba(255,255,255,.64); --tx-3: rgba(255,255,255,.47);
  --tx-note: rgba(255,255,255,.6);   /* small page text (labels, legal): 7.4:1 on black; --tx-3 is the product's .44 + 3 % so the small replica labels clear 4.5:1 */
  --long: #0ECB81; --long-wash: rgba(14,203,129,.14); --long-b: rgba(14,203,129,.32); --long-ink: #06140D;
  --short: #F6465D; --short-wash: rgba(246,70,93,.14); --short-b: rgba(246,70,93,.32); --short-text: #F7596E; --short-ink: #1A0609;
  --warn: #F59E0B;
  --accent: #8B5CF6; --accent-text: #A78BFA; --accent-fill: #7C4DF0; --accent-wash: rgba(139,92,246,.16); --accent-b: rgba(139,92,246,.4);
  --focus: 0 0 0 2px #000, 0 0 0 4px var(--accent);
  --ease: cubic-bezier(.2,0,0,1); --ease-io: cubic-bezier(.4,0,.2,1);
  --gut: 40px;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; background: #000; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { background: #000; color: var(--tx-1); font: 400 16px/1.5 Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--accent-fill); color: #fff; }
.ico { width: 16px; height: 16px; flex: none; fill: currentColor; }
.ico.st { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 100; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; color: #000; font: 600 14px Inter, "Inter Fallback", sans-serif; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus-visible { top: 12px; outline: none; box-shadow: var(--focus); }

/* ---------------- buttons, socials ---------------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px Inter, "Inter Fallback", sans-serif; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .24s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s; }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.98); }
.btn.primary { background: #fff; color: #000; }
.btn.primary:hover { box-shadow: 0 0 0 6px rgba(139,92,246,.24), 0 10px 40px -8px rgba(139,92,246,.55); }
.btn.violet { background: var(--accent-fill); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 40px -10px rgba(124,77,240,.8); }
.btn.violet:hover { background: #8a5cf4; }
.btn.primary::after, .btn.violet::after { content: ""; position: absolute; inset: -1px; z-index: -1; transform: translateX(-130%); transition: transform .8s var(--ease); }
.btn.primary::after { background: linear-gradient(105deg, transparent 28%, rgba(139,92,246,.34) 50%, transparent 72%); }
.btn.violet::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.26) 50%, transparent 70%); }
.btn.primary:hover::after, .btn.violet:hover::after { transform: translateX(130%); }
.btn.ghost { color: var(--tx-1); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn .ico { width: 16px; height: 16px; }
.btn .ico.st { transition: transform .24s var(--ease); }
.btn:hover .ico.st { transform: translateX(3px); }
.btn small { font-size: 13px; font-weight: 500; color: var(--tx-2); margin-left: 2px; }
.soc { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--tx-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); text-decoration: none; transition: color .16s, background .16s, box-shadow .2s, transform .12s var(--ease); }
.soc .ico { width: 16px; height: 16px; }
.soc:hover { color: #fff; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b), 0 0 0 5px rgba(139,92,246,.14); }
.soc:active { transform: scale(.94); }
.soc:focus-visible, .btn:focus-visible, .nav a:focus-visible, footer a:focus-visible, .final a:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------------- nav ---------------- */
.nav { position: fixed; inset: 0 0 auto 0; height: 64px; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 40px); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; background: linear-gradient(180deg, #000 0, rgba(0,0,0,.88) 46%, rgba(0,0,0,0)); pointer-events: none; opacity: 0; transition: opacity .35s; }
.nav.solid::before { opacity: 1; }
.nav > * { position: relative; z-index: 1; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; text-decoration: none; }
.nav .brand img { height: 26px; width: auto; }
.nav nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(21,21,27,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--hair); }
.nav nav a { height: 30px; line-height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--tx-2); text-decoration: none; transition: background .16s var(--ease), color .16s; }
.nav nav a:hover { color: var(--tx-1); background: rgba(255,255,255,.06); }
.nav nav a.on { color: #fff; background: rgba(255,255,255,.09); }
.nav .right { display: flex; align-items: center; gap: 8px; }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------------- the story: one sticky stage ---------------- */
.story { position: relative; height: 900vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.glow { position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; z-index: -2; background: radial-gradient(closest-side, rgba(124,77,240,.30), rgba(124,77,240,.10) 45%, transparent 72%); will-change: transform; animation: glowIn 1.8s .1s var(--ease) both; }
/* film grain, only inside the glow: it dithers the gradient (no banding) and never lifts the pure black */
.glow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: url(assets/grain.png) 0 0 / 64px 64px; opacity: .055; -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 72%); mask-image: radial-gradient(closest-side, #000 25%, transparent 72%); }
.gridbg { position: absolute; inset: 0; z-index: -1; opacity: .9; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(75% 65% at 50% 38%, #000 15%, transparent 78%); mask-image: radial-gradient(75% 65% at 50% 38%, #000 15%, transparent 78%); }

.hero-copy { position: absolute; left: 0; right: 0; top: 84px; text-align: center; padding: 0 20px; will-change: transform, opacity; }
/* the same offsets the stage script applies, so the headline does not jump when the script arrives (layout shift) */
@media (max-width: 899.98px), (max-height: 519.98px) and (max-width: 1099.98px) { .hero-copy { top: 74px; } }
@media ((max-width: 899.98px), (max-height: 519.98px) and (max-width: 1099.98px)) and (min-aspect-ratio: 23/20) { .hero-copy { top: 58px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--tx-2); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair-2); }
.eyebrow u { width: 6px; height: 6px; border-radius: 50%; background: var(--long); animation: pulse 2s infinite; }
.hero-copy h1 { visibility: visible; pointer-events: none; font-size: clamp(40px, min(6.6vw, 10.6vh), 100px); line-height: .98; letter-spacing: -.055em; font-weight: 650; margin: 18px auto 16px; }
/* the headline rises line by line out of a mask, like the act captions */
.hero-copy h1 .ln { display: block; overflow: hidden; padding: 0 .06em .13em; margin: 0 -.06em -.13em; }
.hero-copy h1 .ln > span { display: block; transform: translateY(125%); animation: heroLine 1.05s var(--ease) both; }
.hero-copy h1 .ln:nth-child(1) > span { animation-delay: .1s; } .hero-copy h1 .ln:nth-child(2) > span { animation-delay: .24s; }
.hero-copy h1 .l2 > span { background: linear-gradient(92deg, #fff 0%, #cdbcff 55%, #9d7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { text-wrap: balance; max-width: 640px; margin: 0 auto; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; color: var(--tx-2); }
.cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 16px 0 0; }
.cats span { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--tx-2); box-shadow: inset 0 0 0 1px var(--hair); background: rgba(255,255,255,.02); }
.cats b { color: var(--tx-1); font-weight: 650; font-variant-numeric: tabular-nums; }
.cats em { font-style: normal; display: inline-flex; align-items: center; height: 28px; margin-right: 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-note); }
.cats + .cats { margin-top: 8px; }
.cta-row { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero-copy > :not(h1) { animation: heroIn .9s var(--ease) both; }
.hero-copy .eyebrow { animation-delay: .05s; }
.hero-copy .lead { animation-delay: .38s; } .hero-copy .cats { animation-delay: .46s; } .hero-copy .cats + .cats { animation-delay: .51s; } .hero-copy .cta-row { animation-delay: .58s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroLine { from { transform: translateY(125%); } to { transform: none; } }

/* the window the whole story is told in */
.frame { position: absolute; left: 0; top: 0; width: 960px; height: 600px; border-radius: 16px; overflow: hidden; background: #000; z-index: 3;
  box-shadow: 0 0 0 1px var(--hair-2), 0 60px 140px -30px rgba(0,0,0,.95), 0 40px 140px -50px rgba(124,77,240,.55); will-change: transform, opacity; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.09); z-index: 15; }
/* a glass rim: the light falls from the top left */
.frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 16;
  background: linear-gradient(158deg, rgba(255,255,255,.28), rgba(255,255,255,.05) 28%, rgba(139,92,246,.2) 72%, rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.stage-hint { position: absolute; left: 0; top: 0; z-index: 9; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--tx-2); background: rgba(14,14,18,.86); box-shadow: inset 0 0 0 1px var(--hair-2); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.stage-hint.on { opacity: 1; transform: none; }
.pnl-chip { position: absolute; left: 0; top: 0; z-index: 9; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 15px 0 13px; border-radius: 999px; background: rgba(7,22,16,.9); box-shadow: inset 0 0 0 1px rgba(14,203,129,.42), 0 10px 34px -8px rgba(14,203,129,.5); font-size: 12.5px; font-weight: 600; color: var(--tx-2); pointer-events: none; opacity: 0; white-space: nowrap; }
.pnl-chip u { width: 7px; height: 7px; border-radius: 50%; background: var(--long); animation: pulse 2s infinite; }
.pnl-chip b { color: var(--long); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stage-hint u { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stage-hint.me u { background: var(--long); }

/* autopilot cursor + touch dot */
.apcur { position: absolute; left: 0; top: 0; z-index: 18; width: 24px; height: 24px; pointer-events: none; opacity: 0; transition: opacity .25s; filter: drop-shadow(0 2px 5px rgba(0,0,0,.55)); }
.apcur.on { opacity: 1; }
.apcur svg { display: block; width: 24px; height: 24px; margin: -2px 0 0 -3px; }
.apcur::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent); opacity: 0; }
.apcur.press::after { animation: ripple .55s var(--ease); }
.tap { position: absolute; left: 0; top: 0; z-index: 18; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease); }
.tap.on { opacity: 1; transform: scale(1); }
.tap.press { transform: scale(.78); background: rgba(255,255,255,.34); }

/* captions: one line per act, masked reveal */
.caps { position: absolute; left: var(--cap-x, 40px); top: 0; bottom: 0; width: var(--cap-w, 360px); display: flex; align-items: center; pointer-events: none; z-index: 4; }
.cap { position: absolute; left: 0; right: 0; visibility: hidden; }
.cap.on, .cap.out { visibility: visible; }
.cap .num { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-note); }
.cap .num b { color: var(--accent-text); font-weight: 600; margin-right: 10px; }
.cap h2 { font-size: clamp(34px, 3.8vw, 60px); line-height: 1.02; letter-spacing: -.05em; font-weight: 650; margin: 14px 0 16px; }
.cap .ln { display: block; overflow: hidden; padding: 0 0 .08em; }
.cap .ln > span { display: block; transform: translateY(108%); }
.cap .ln .g { background: linear-gradient(92deg, #7CF0C2, #19D88F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cap.on .ln > span { animation: lineIn .8s var(--ease) both; }
.cap.on .ln:nth-child(2) > span { animation-delay: .08s; }
.cap.out .ln > span { animation: lineOut .45s var(--ease) both; }
.cap .sub { text-wrap: balance; font-size: 16px; line-height: 1.5; color: var(--tx-2); max-width: 30ch; opacity: 0; transform: translateY(8px); }
.cap.on .sub { animation: subIn .6s .2s var(--ease) both; }
.cap.out .sub { animation: subOut .3s var(--ease) both; }
.cap .sub b { color: var(--tx-1); font-weight: 600; font-variant-numeric: tabular-nums; }

.cap .cstat { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cap .cstat.show { opacity: 1; transform: none; } .cap.out .cstat { opacity: 0; }
.cap .cstat i { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-note); }
.cap .cstat b { font-size: clamp(30px, 2.9vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: #19D88F; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(25,216,143,.35); }

.rail { position: absolute; left: var(--cap-x, 40px); bottom: 30px; z-index: 6; display: flex; align-items: center; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.rail.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.rail button { position: relative; width: 28px; height: 22px; background: none; border: 0; cursor: pointer; padding: 0; }
.rail button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; border-radius: 2px; background: var(--hair-2); transition: background .3s; }
.rail button.done::before { background: var(--tx-3); }
.rail button.on::before { background: #fff; }
.rail button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.rail .lbl { margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-note); min-width: 96px; font-variant-numeric: tabular-nums; }

/* the phone: a titanium rim, side keys and a pane of glass - the bezel exists only when the phone floats next to the web terminal */
.phone-wrap { position: absolute; left: 0; top: 0; width: 393px; height: 852px; z-index: 7; transform-origin: 0 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.phone-wrap.armed { pointer-events: auto; }
.phone-shell { position: absolute; inset: 0; border-radius: 54px; box-shadow: 0 0 0 9px #0b0b10, 0 0 0 10px rgba(255,255,255,.1), 0 70px 130px -30px rgba(0,0,0,.95), 0 40px 150px -40px rgba(124,77,240,.6); }
.phone-shell::before { content: ""; position: absolute; inset: -11px; border-radius: 65px; padding: 1.5px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.5), rgba(255,255,255,.06) 24%, rgba(255,255,255,.02) 58%, rgba(255,255,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.phone-shell .sb { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #30303a, #17171d); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); }
.phone-shell .l1 { left: -14px; top: 112px; height: 26px; } .phone-shell .l2 { left: -14px; top: 168px; height: 50px; } .phone-shell .l3 { left: -14px; top: 230px; height: 50px; }
.phone-shell .r1 { right: -14px; top: 196px; height: 82px; background: linear-gradient(270deg, #30303a, #17171d); }
.phone-glass { position: absolute; inset: 0; z-index: 3; border-radius: 52px; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 30%, rgba(255,255,255,0) 46%); }
.phone-wrap.flat .phone-shell { border-radius: 22px; box-shadow: 0 0 0 1px var(--hair-2), 0 40px 100px -30px rgba(0,0,0,.95), 0 30px 120px -40px rgba(124,77,240,.5); }
.phone-wrap.flat .phone-shell::before, .phone-wrap.flat .phone-shell .sb, .phone-wrap.flat .phone-glass { display: none; }

/* ---------------- the last screen ---------------- */
.final { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; opacity: 0; pointer-events: none; }
.final.on { pointer-events: auto; }
.final-mark { height: clamp(46px, 8vh, 68px); width: auto; margin-bottom: clamp(14px, 3vh, 26px); filter: drop-shadow(0 0 30px rgba(121,82,253,.6)); animation: markFloat 7s ease-in-out infinite; }
.final h2 { font-size: clamp(44px, min(8.4vw, 14.5vh), 128px); line-height: .94; letter-spacing: -.06em; font-weight: 650; }
.final h2 span { display: block; }
.final h2 .l2 { padding-bottom: .16em; margin-bottom: -.16em; background: linear-gradient(92deg, #fff 0%, #cdbcff 55%, #9d7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }   /* the box reaches below the baseline, so the g keeps its tail */
.final h2 .caret { display: inline-block; width: .52em; height: .085em; margin-left: .1em; border-radius: .02em; background: linear-gradient(90deg, #cdbcff, #7952FD); box-shadow: 0 0 .3em rgba(121,82,253,.7); animation: blink 1.1s steps(1, end) infinite; }
.final p { margin: 18px 0 26px; font-size: clamp(15px, 1.5vw, 19px); color: var(--tx-2); }
.final .socs { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.final .socs .btn { height: 42px; font-size: 14px; }
.final .mail-line { margin-top: 24px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--tx-2); text-decoration: none; border-radius: 8px; transition: color .16s; }
.final .mail-line .ico { width: 16px; height: 16px; }
.final .mail-line b { color: var(--tx-1); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.28); transition: border-color .16s; }
.final .mail-line:hover { color: var(--tx-1); } .final .mail-line:hover b { border-color: var(--accent-text); }

.fine { position: absolute; right: var(--gut); bottom: 14px; z-index: 6; max-width: 46ch; text-align: right; font-size: 11px; line-height: 1.45; color: var(--tx-note); pointer-events: none; }

/* ---------------- FAQ (after the story, before the footer) ---------------- */
.faq { position: relative; padding: clamp(72px, 11vw, 140px) clamp(20px, 4vw, 56px) clamp(56px, 8vw, 96px); background: #000; color: var(--tx-2); }
.faq-in { max-width: 860px; margin: 0 auto; }
.faq-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #b9a4fd; }
.faq h2 { margin: 0 0 clamp(24px, 4vw, 40px); font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.045em; font-weight: 650; color: #fff; }
.faq-list { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: clamp(17px, 2vw, 20px); font-weight: 600; letter-spacing: -.015em; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; transition: transform .2s var(--ease, ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: #d4c8ff; }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.faq-a { padding: 0 4px 24px; max-width: 68ch; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.78); }
.faq-a p { margin: 0 0 12px; } .faq-a p:last-child { margin: 0; }
.faq-a a { color: #d4c8ff; text-underline-offset: 3px; }
.faq-more { margin: 28px 0 0; font-size: 15px; color: rgba(255,255,255,.7); }
.faq-more a { color: #fff; text-underline-offset: 4px; text-decoration-color: rgba(167,139,250,.7); }
.faq .fact { font-weight: 600; color: #fff; }

/* ---------------- footer ---------------- */
footer { position: relative; padding: 64px clamp(20px, 4vw, 56px) 52px; border-top: 1px solid var(--hair); background: #000; color: var(--tx-note); font-size: 12.5px; line-height: 1.65; }
footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(560px, 62%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(167,139,250,.65), transparent); }
footer b { color: var(--tx-2); font-weight: 600; }
.f-main { display: grid; grid-template-columns: minmax(240px, 1.1fr) 2fr; gap: 40px 72px; max-width: 1240px; margin: 0 auto; align-items: start; }
footer .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tx-1); font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; }
footer .brand img { height: 26px; width: auto; }
.f-tag { margin: 14px 0 22px; font-size: 14px; color: var(--tx-2); max-width: 30ch; }
.f-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-act .btn { height: 40px; padding: 0 18px; font-size: 14px; margin-right: 6px; }
.f-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 28px; }
.f-cols h2 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-note); }
.f-cols a { display: block; width: fit-content; padding: 5px 0; font-size: 14px; color: var(--tx-1); text-decoration: none; opacity: .88; transition: opacity .16s, color .16s; border-radius: 6px; }
.f-cols a:hover { opacity: 1; color: #fff; text-decoration: underline; text-decoration-color: rgba(167,139,250,.7); text-underline-offset: 4px; }
.f-cols .mail { overflow-wrap: anywhere; }
#contact { scroll-margin-top: 96px; }
.f-legal { max-width: 1240px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid var(--hair); display: grid; gap: 12px; }
.f-legal p { max-width: 100ch; }
.f-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.f-legal .f-base p { max-width: none; margin: 0; }
.made { white-space: nowrap; }
.heart { display: inline-block; margin: 0 -.08em 0 .04em; vertical-align: -.08em; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.12em; line-height: 1; transform-origin: 50% 62%; cursor: default; filter: drop-shadow(0 0 6px rgba(255,71,87,.45)); }
.made:hover .heart, .heart:focus-visible { animation: heartbeat 1.2s var(--ease) 1; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.22); } 70% { transform: scale(1); } }

/* ---------------- motion ---------------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,203,129,.5); } 70% { box-shadow: 0 0 0 7px rgba(14,203,129,0); } 100% { box-shadow: 0 0 0 0 rgba(14,203,129,0); } }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes lineIn { from { transform: translateY(108%); } to { transform: none; } }
@keyframes lineOut { from { transform: none; } to { transform: translateY(-108%); } }
@keyframes subIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes subOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); background: var(--accent-wash); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes glowIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes markFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------------- small screens: the phone is the whole story ---------------- */
@media (max-width: 899px) {
  :root { --gut: 20px; }
  .nav nav, .nav .btn small { display: none; }
  .nav .btn { height: 34px; padding: 0 13px; font-size: 13px; }
  .nav .soc { width: 34px; height: 34px; }
  .caps { left: 20px; right: 20px; width: auto; align-items: flex-start; top: 76px; bottom: auto; }
  .cap h2 { font-size: clamp(30px, 8.4vw, 44px); margin: 10px 0 8px; }
  .cats { gap: 6px; margin-top: 12px; } .cats span { height: 26px; padding: 0 10px; font-size: 11.5px; } .cats em { height: 26px; font-size: 10px; } .cats + .cats { margin-top: 6px; }
  .cap .sub { font-size: 15px; max-width: 34ch; }
  .rail { left: 50%; transform: translateX(-50%); bottom: 22px; }
  .rail .lbl { display: none; }
  .fine { left: 20px; right: 20px; bottom: 5px; max-width: none; text-align: center; font-size: 10px; }
  .stage-hint { display: none; }
  footer { padding-top: 52px; }
  .f-main { grid-template-columns: 1fr; gap: 36px; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-cols .contact { grid-column: 1 / -1; }
  .final .mail-line { font-size: 13px; }
}
@media (max-width: 899px) { .frame, .stage-hint, .pnl-chip, .cap .cstat { display: none; } }
.phone-wrap:not(.manual) .ph-scroll { overflow-y: hidden; touch-action: pan-y; }
/* short landscape phones: caption left, phone right */
.land .caps { left: var(--cap-x); right: auto; width: var(--cap-w); top: 0; bottom: 0; align-items: center; }
.land .cap h2 { font-size: clamp(24px, 9vh, 40px); margin: 8px 0; } .land .cap .sub { font-size: 13px; max-width: 28ch; } .land .cap .num { font-size: 11px; }
.land .hero-copy h1 { font-size: clamp(28px, 11vh, 52px); margin: 8px auto 6px; } .land .hero-copy .lead { font-size: 13px; } .land .hero-copy .cats { display: none; } .land .hero-copy .cta-row { margin-top: 12px; } .land .btn { height: 40px; font-size: 14px; }
.land .rail { left: var(--gut); transform: none; bottom: 12px; } .land .fine { left: var(--gut); right: auto; bottom: 30px; max-width: 34ch; text-align: left; font-size: 9px; }
.land .final h2 { font-size: clamp(30px, 14vh, 60px); } .land .final p { margin: 8px 0 12px; } .land .final .socs { margin-top: 10px; } .land .final-mark { display: none; } .land .final .mail-line { margin-top: 10px; font-size: 12px; }
/* short screens: the second chip row would push the hero's buttons under the terminal / phone; the mark would crowd the last screen */
@media (max-height: 700px) { .cats.kinds { display: none; } }
@media (max-width: 899px) and (max-height: 759px) { .cats.kinds { display: none; } }
@media (max-height: 600px) { .final-mark { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* learn dock: the free tools and guides, visible on the first screen */
.dock { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 14px auto 0; padding: 4px 5px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(139,92,246,.1); box-shadow: inset 0 0 0 1px rgba(139,92,246,.4); animation: lgIn .9s var(--ease) .66s both; }
.dock em { font-style: normal; padding: 0 8px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3, #d4c8ff); }
.dock a { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none; background: rgba(255,255,255,.06); transition: background .16s; }
.dock a:hover { background: rgba(255,255,255,.14); }
.dock a:focus-visible { outline: 2px solid #b9a4fd; outline-offset: 2px; }
.dock a.hl { background: #fff; color: #000; }
.dock a.hl:hover { background: #e7e0ff; }
.dock i { width: 1px; height: 16px; margin: 0 4px; background: rgba(255,255,255,.25); }
@media (max-width: 899px) { .dock { border-radius: 18px; margin-top: 12px; } .dock em { width: 100%; text-align: center; padding: 2px 0 0; } .dock i { display: none; } .dock a { height: 28px; padding: 0 10px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .dock { animation: none; } }
@media (min-width: 900px) and (max-height: 800px) { .hero-copy .cats { display: none; } .dock { margin-top: 16px; } }
@media (max-height: 700px) { .land .dock, .dock { margin-top: 10px; } .dock em { display: none; } }
@media (max-width: 899px) and (max-height: 760px) { .hero-copy .cats { display: none; } .dock { margin-top: 12px; } .dock em { display: block; } }
.dock .mo { display: none; }
@media (max-width: 899px) { .dock .dk { display: none; } .dock .mo { display: inline-flex; } .dock { flex-wrap: nowrap; border-radius: 999px; } .dock em { display: none !important; } .dock i { display: block; } }

/* language switcher: a globe pill with a small menu; plain <details>, works without scripts */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 11px; border-radius: 999px; color: var(--tx-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); font: 600 12px/1 Inter, "Inter Fallback", sans-serif; letter-spacing: .06em; text-transform: uppercase; transition: color .16s, background .16s, box-shadow .16s; -webkit-user-select: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .ico { width: 16px; height: 16px; }
.lang summary:hover, .lang[open] summary { color: #fff; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b), 0 0 0 5px rgba(139,92,246,.14); }
.lang summary:focus-visible { outline: none; box-shadow: var(--focus); }
.lang-menu { position: absolute; right: 0; top: 46px; z-index: 70; width: 232px; padding: 6px; border-radius: 18px; display: grid; gap: 1px; background: rgba(18,18,24,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--hair-2), 0 24px 60px rgba(0,0,0,.6); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--tx-2); text-decoration: none; font-size: 14px; font-weight: 550; }
.lang-menu a small { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--tx-3, #7d7d8a); text-transform: uppercase; }
.lang-menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.lang-menu a[aria-current] { color: #fff; background: rgba(139,92,246,.2); }
.lang-menu a:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 640px) { .lang summary { height: 34px; padding: 0 11px 0 9px; } .lang-menu { top: 42px; width: min(232px, calc(100vw - 32px)); } }
/* scripts without Inter glyphs fall back to the best system face for the language */
html[lang="ja"] :is(.nav, .hero-copy, .caps, .final, .faq, footer, .stage-hint, .fine, .pnl-chip) * { font-family: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", system-ui, sans-serif; }
html[lang="ko"] :is(.nav, .hero-copy, .caps, .final, .faq, footer, .stage-hint, .fine, .pnl-chip) * { font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif; }
html[lang="hi"] :is(.nav, .hero-copy, .caps, .final, .faq, footer, .stage-hint, .fine, .pnl-chip) * { font-family: Inter, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ko"] h1, html[lang="ko"] h2 { letter-spacing: 0; }
/* phones: the header keeps the language pill and the Open button; the social icons are in the footer and the closing screen */
@media (max-width: 640px) { .nav .right .soc { display: none; } .nav .right { gap: 6px; } }
@media (max-width: 420px) { .nav .brand { font-size: 0; gap: 0; } .nav .right .btn .ico { display: none; } .nav .right .btn { padding: 0 12px; } }

.f-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 22px 0 6px; }
.f-lang span { margin-right: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-note); }
.f-lang a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--tx-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--hair); transition: color .16s, background .16s, box-shadow .16s; }
.f-lang a:hover { color: #fff; background: rgba(255,255,255,.06); }
.f-lang a[aria-current] { color: #fff; background: rgba(139,92,246,.2); box-shadow: inset 0 0 0 1px var(--accent-b); }
.f-lang a:focus-visible { outline: none; box-shadow: var(--focus); }
.lang .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.final .help-line { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.final .help-line .mail-line { margin-top: 0; }

/* the support card on the closing screen */
.final .support-card { margin: 22px auto 0; width: min(560px, calc(100% - 8px)); display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; text-align: left; text-decoration: none; color: var(--tx-1); background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(139,92,246,.06)); box-shadow: inset 0 0 0 1px rgba(167,139,250,.38), 0 12px 40px rgba(0,0,0,.45); transition: box-shadow .18s, transform .18s; }
.final .support-card:hover { box-shadow: inset 0 0 0 1px rgba(167,139,250,.7), 0 0 0 5px rgba(139,92,246,.14), 0 12px 40px rgba(0,0,0,.45); transform: translateY(-1px); }
.final .support-card:focus-visible { outline: none; box-shadow: var(--focus); }
.final .support-card .sc-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(139,92,246,.28); color: #fff; }
.final .support-card .sc-ic .ico { width: 22px; height: 22px; }
.final .support-card .sc-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.final .support-card .sc-tx b { font-size: 15px; font-weight: 650; line-height: 1.25; }
.final .support-card .sc-tx small { font-size: 12.5px; color: var(--tx-2); line-height: 1.35; }
.final .support-card .sc-go { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #d4c8ff; }
.final .support-card .sc-go .ico { width: 14px; height: 14px; }
.final .help-line { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.final .help-line .mail-line { margin-top: 0; }
@media (max-width: 640px) { .final .support-card { flex-wrap: wrap; } .final .support-card .sc-go { width: 100%; padding-left: 58px; } .final .support-card .sc-tx b { font-size: 14.5px; } }
.final .help-more { color: #d4c8ff; font-weight: 550; } .final .help-more:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(167,139,250,.7); }
/* Russian words in the story captions are longer than the English ones: a smaller size keeps every line inside the caption column */
@media (min-width: 901px) { html[lang="ru"] .cap h2 { font-size: clamp(28px, 3.1vw, 50px); } }
