/* Vopiko VPN — сайт приложения. Токены, шрифты и движения — из приложения (docs/design.md, lib/core/theme). */

@font-face { font-family: "VK Serif"; src: url("fonts/vk-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VK Serif"; src: url("fonts/vk-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "VK Sans"; src: url("fonts/vk-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VK Sans"; src: url("fonts/vk-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "VK Sans"; src: url("fonts/vk-sans-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "VK Mono"; src: url("fonts/vk-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VK Mono"; src: url("fonts/vk-mono-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --bg: #EFEFEF; --card: #FFFFFF; --ink: #25262A; --muted: #6B6E75; --line: #E3E3E3; --soft: #F3F3F3; --inverse: #FFFFFF;
  --ytint: #FDF0C9; --gtint: #D8F1E2; --rtint: #FFE3D4; --idle: #DADADA;
  --i1: #DADADA; --i2: #ECECEC; --i3: #E2E2E2;
  --yellow: #F9C846; --orange: #FD7E40; --pink: #F39BC7; --green: #2CB46C; --mint: #B9E4CC; --peach: #FBD9A6; --onbrand: #25262A;
  --bezel: #1B1D23;
  --serif: "VK Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "VK Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "VK Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .25, 1);
  --std: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 30px 70px -40px rgba(37, 38, 42, .45);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #25262A; --card: #30323A; --ink: #F4F4F2; --muted: #A8ABB2; --line: #3E4049; --soft: #3A3C45; --inverse: #25262A;
    --ytint: #4A3F1E; --gtint: #1F4231; --rtint: #4A3122; --idle: #44464F;
    --i1: #44464F; --i2: #4C4E57; --i3: #3F414A;
    --bezel: #111216;
    --shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
em { font-style: italic; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--inverse); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.frame { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---------- glyphs and marks ---------- */
.g { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 32px; height: 32px; flex: none; }
.mark .q-y { fill: var(--yellow); } .mark .q-o { fill: var(--orange); }
.mark .q-g { fill: var(--green); } .mark .q-p { fill: var(--pink); }
.mark .disc { fill: var(--ink); }
.mark .pw { fill: none; stroke: var(--inverse); stroke-width: 2.4; stroke-linecap: round; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--std); }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font: 400 30px/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.pill:active { transform: scale(.97); }
.pill-ink { background: var(--ink); color: var(--inverse); }
.pill-wide { width: 100%; }

/* ---------- type ---------- */
.display { font: 400 clamp(58px, 8.6vw, 118px)/.92 var(--serif); letter-spacing: -.015em; margin: 18px 0 26px; }
.display em { color: var(--muted); }
.display-sm { font-size: clamp(48px, 6.6vw, 88px); margin: 26px 0 14px; }
.h1 { font: 400 clamp(48px, 7vw, 92px)/.95 var(--serif); letter-spacing: -.012em; margin: 12px 0 20px; }
.h1 em, .h2 em { color: var(--muted); }
.h2 { font: 400 clamp(40px, 5.2vw, 68px)/1 var(--serif); letter-spacing: -.01em; margin: 10px 0 18px; }
.h3 { font: 400 32px/1.05 var(--serif); margin: 0 0 12px; }
.h4 { font: 600 16px/1.4 var(--sans); margin: 26px 0 8px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 34em; }
.kicker { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--card); font-weight: 500; font-size: 14px; }
.eyebrow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(44, 180, 108, .5); animation: beacon 2.4s var(--std) infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(44, 180, 108, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(44, 180, 108, 0); } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin: 30px 0 26px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 24px 8px 18px; border-radius: 18px; background: var(--ink); color: var(--inverse); text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.1; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: .75; }
.store .g { width: 26px; height: 26px; }
.store.is-soon { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 13px/1 var(--mono); padding: 9px 14px; border-radius: 999px; background: var(--card); }

.hero-demo { position: relative; display: flex; justify-content: center; }
.try { position: absolute; right: calc(50% + 228px); top: 57%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; transform: rotate(-4deg); pointer-events: none; }
.try svg { width: 60px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-right: -12px; }
.try { transition: opacity .4s var(--std); }
.hero-demo.is-touched .try { opacity: 0; }

/* ---------- the app, scaled by --u (1 design point) ---------- */
.demo { --u: 1px; --accent: var(--idle); position: relative; }
.app { width: calc(390 * var(--u)); padding: calc(22 * var(--u)) calc(20 * var(--u)) calc(24 * var(--u)); background: var(--bg); border-radius: calc(54 * var(--u)); box-shadow: 0 0 0 calc(11 * var(--u)) var(--bezel), var(--shadow), 0 50px 90px -50px rgba(37, 38, 42, .55); }
.app-top { display: flex; align-items: center; gap: calc(9 * var(--u)); height: calc(46 * var(--u)); }
.app-dot { width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; background: var(--accent); transition: background .7s var(--std); }
.app-word { font: 400 calc(28 * var(--u))/1.1 var(--serif); letter-spacing: calc(-.28 * var(--u)); }
.app-gear { margin-left: auto; width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.app-gear .g { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }

.hc { --c0: var(--yellow); --c1: var(--i1); --c2: var(--i2); --c3: var(--i3); --c4: var(--pink);
  position: relative; width: calc(350 * var(--u)); height: calc(224 * var(--u)); margin-top: calc(12 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--card); overflow: hidden; isolation: isolate; }
.hc-s { position: absolute; transition: background-color .9s var(--std), border-radius .9s var(--std); }
.hc-s.s0 { left: 0; top: 0; width: calc(117 * var(--u)); height: calc(113 * var(--u)); background: var(--c0); }
.hc-s.s1 { left: calc(116 * var(--u)); top: 0; width: calc(118 * var(--u)); height: calc(113 * var(--u)); background: var(--c1); border-radius: 0 0 calc(118 * var(--u)) calc(118 * var(--u)); }
.hc-s.s2 { left: calc(234 * var(--u)); top: calc(-30 * var(--u)); width: calc(210 * var(--u)); height: calc(210 * var(--u)); background: var(--c2); border-radius: 50%; }
.hc-s.s3 { left: 0; bottom: 0; width: calc(250 * var(--u)); height: calc(132 * var(--u)); background: var(--c3); border-top-right-radius: calc(250 * var(--u)); }
.hc-s.s4 { right: 0; bottom: 0; width: calc(70 * var(--u)); height: calc(60 * var(--u)); background: var(--c4); }
.hc[data-up] .s1 { border-radius: calc(118 * var(--u)) calc(118 * var(--u)) 0 0; }
.hc[data-corner] .s0 { border-bottom-right-radius: calc(117 * var(--u)); }
.hc[data-tail] .s4 { border-top-left-radius: calc(60 * var(--u)); }

.hc-orb { position: absolute; left: calc(52 * var(--u)); top: calc(46 * var(--u)); width: calc(92 * var(--u)); height: calc(92 * var(--u)); border-radius: 50%; background: var(--ink); color: var(--inverse); display: grid; place-items: center; z-index: 2; transition: left .9s var(--std); }
.hc-orb .g { grid-area: 1 / 1; width: calc(36 * var(--u)); height: calc(36 * var(--u)); stroke-width: 2.1; opacity: 0; transition: opacity .5s var(--std); }
.hc-ip { position: absolute; right: calc(14 * var(--u)); bottom: calc(14 * var(--u)); z-index: 2; display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); border-radius: calc(20 * var(--u)); background: var(--card); font: 500 calc(12 * var(--u))/1.3 var(--mono); white-space: nowrap; }
.hc-ipdot { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--accent); transition: background .7s var(--std); }

/* phase text */
.ph { display: none; }
.demo[data-phase="off"] .ph-off, .demo[data-phase="connecting"] .ph-connecting, .demo[data-phase="on"] .ph-on { display: inline; }
.demo:not(.js):has(#power:checked) .ph-off { display: none; }
.demo:not(.js):has(#power:checked) .ph-on { display: inline; }

/* phase: off (default) */
.hc .o-off { opacity: 1; }
/* phase: connecting */
.demo[data-phase="connecting"] { --accent: var(--yellow); }
.demo[data-phase="connecting"] .hc { --c0: var(--yellow); --c1: var(--orange); --c2: var(--ytint); --c3: var(--yellow); --c4: var(--orange); }
.demo[data-phase="connecting"] .hc-orb { animation: breathe 1.2s ease-in-out infinite alternate; }
.demo[data-phase="connecting"] .o-off { opacity: 0; }
.demo[data-phase="connecting"] .o-connecting { opacity: 1; animation: spin 1.2s linear infinite; }
@keyframes breathe { to { transform: scale(1.045); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* phase: on */
.demo[data-phase="on"], .demo:not(.js):has(#power:checked) { --accent: var(--green); }
.demo[data-phase="on"] .hc-orb, .demo:not(.js):has(#power:checked) .hc-orb, .hc-static[data-phase="on"] .hc-orb { left: calc(170 * var(--u)); }
.demo[data-phase="on"] .o-off, .demo:not(.js):has(#power:checked) .o-off, .hc-static[data-phase="on"] .o-off { opacity: 0; }
.demo[data-phase="on"] .o-on, .demo:not(.js):has(#power:checked) .o-on, .hc-static[data-phase="on"] .o-on { opacity: 1; }
/* the session's arrangement: home_look.dart, six orders of the brand colors */
.demo[data-phase="on"] .hc[data-pal="0"], .demo:not(.js):has(#power:checked) .hc, .hc-static[data-phase="on"][data-pal="0"] { --c0: var(--yellow); --c1: var(--orange); --c2: var(--pink); --c3: var(--green); --c4: var(--yellow); }
.demo[data-phase="on"] .hc[data-pal="1"], .hc-static[data-phase="on"][data-pal="1"] { --c0: var(--pink); --c1: var(--yellow); --c2: var(--green); --c3: var(--orange); --c4: var(--pink); }
.demo[data-phase="on"] .hc[data-pal="2"], .hc-static[data-phase="on"][data-pal="2"] { --c0: var(--green); --c1: var(--pink); --c2: var(--yellow); --c3: var(--orange); --c4: var(--green); }
.demo[data-phase="on"] .hc[data-pal="3"], .hc-static[data-phase="on"][data-pal="3"] { --c0: var(--orange); --c1: var(--green); --c2: var(--pink); --c3: var(--yellow); --c4: var(--orange); }
.demo[data-phase="on"] .hc[data-pal="4"], .hc-static[data-phase="on"][data-pal="4"] { --c0: var(--yellow); --c1: var(--pink); --c2: var(--orange); --c3: var(--green); --c4: var(--pink); }
.demo[data-phase="on"] .hc[data-pal="5"], .hc-static[data-phase="on"][data-pal="5"] { --c0: var(--pink); --c1: var(--orange); --c2: var(--yellow); --c3: var(--green); --c4: var(--orange); }
.hc-static[data-phase="off"] { --accent: var(--idle); }

.app-status { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); margin-top: calc(24 * var(--u)); }
.app-titles { min-width: 0; }
.app-title { font: 400 calc(40 * var(--u))/1 var(--serif); letter-spacing: calc(-.4 * var(--u)); margin: 0; }
.app-sub { font: 500 calc(14 * var(--u))/1.5 var(--sans); color: var(--muted); margin: calc(8 * var(--u)) 0 0; min-height: 1.5em; }
.app-sub .mono { font-size: calc(14 * var(--u)); color: var(--ink); }
.psw { position: relative; flex: none; width: calc(132 * var(--u)); height: calc(72 * var(--u)); border-radius: calc(40 * var(--u)); background: var(--accent); cursor: pointer; transition: background .7s var(--std), transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.psw:active { transform: scale(.97); }
.psw-knob { position: absolute; left: calc(6 * var(--u)); top: calc(6 * var(--u)); width: calc(60 * var(--u)); height: calc(60 * var(--u)); border-radius: 50%; background: var(--ink); color: var(--inverse); display: grid; place-items: center; transition: left .7s var(--std); }
.psw-knob .g { width: calc(24 * var(--u)); height: calc(24 * var(--u)); stroke-width: 2.3; }
.demo[data-phase="connecting"] .psw-knob { left: calc(36 * var(--u)); }
.demo[data-phase="connecting"] .psw-knob .g { animation: spin 1.6s linear infinite; }
.demo[data-phase="on"] .psw-knob, .demo:not(.js):has(#power:checked) .psw-knob { left: calc(66 * var(--u)); }
#power:focus-visible ~ .app .psw { outline: 3px solid var(--orange); outline-offset: 4px; }

.app-card { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(22 * var(--u)); background: var(--card); }
.app-status + .app-card { margin-top: calc(22 * var(--u)); }
.app-card-txt { display: flex; flex-direction: column; min-width: 0; }
.app-card-txt b { font: 600 calc(15 * var(--u))/1.4 var(--sans); }
.app-card-txt small { font: 500 calc(12 * var(--u))/1.4 var(--sans); color: var(--muted); }
.app .badge { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.app .badge .g { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.tgl { margin-left: auto; flex: none; position: relative; width: calc(51 * var(--u)); height: calc(31 * var(--u)); border-radius: 999px; background: var(--idle); }
.tgl i { position: absolute; top: calc(2 * var(--u)); left: calc(2 * var(--u)); width: calc(27 * var(--u)); height: calc(27 * var(--u)); border-radius: 50%; background: #FFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.tgl.is-on { background: var(--green); }
.tgl.is-on i { left: calc(22 * var(--u)); }
.chev { margin-left: auto; color: var(--muted); }
.chev .g { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }

.badge { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--onbrand); }
.badge-mint { background: var(--mint); } .badge-yellow { background: var(--yellow); } .badge-green { background: var(--green); color: #FFF; } .badge-pink { background: var(--pink); }

/* ---------- every connection, its own picture ---------- */
.picture { padding: clamp(30px, 5vw, 60px) 0; }
.picture-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: 34px; }
.picture-head .muted { margin: 0 0 18px; max-width: 34em; }
.pic-row { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pic-row li { container-type: inline-size; }
.hc-mini { --u: calc(100cqw / 350); margin: 0; box-shadow: 0 1px 0 var(--line); }
.pic-row li:nth-child(2n) .hc-mini { transform: translateY(18px); }

/* ---------- how ---------- */
.how { padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; counter-reset: s; }
.step { position: relative; padding: 30px 28px 26px; border-radius: 28px; background: var(--card); counter-increment: s; }
.step::before { content: "0" counter(s); position: absolute; right: 26px; top: 26px; font: 500 13px/1 var(--mono); color: var(--muted); }
.step-disc { display: block; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 70px; }
.disc-yellow { background: var(--yellow); } .disc-pink { background: var(--pink); } .disc-green { background: var(--green); }
.step .h3 { font-size: 34px; }
.step p { color: var(--muted); margin: 0; }
.how-note { margin: 26px 0 0; color: var(--muted); max-width: 46em; }

/* ---------- features bento ---------- */
.features { padding: clamp(30px, 5vw, 60px) 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 22px 22px 26px; border-radius: 28px; background: var(--card); }
.tile-kill, .tile-route { grid-column: span 3; }
.tile p { color: var(--muted); margin: 0; }
.tile .h3 { font-size: 30px; margin-top: 4px; }
.tile-art { position: relative; height: 220px; margin-bottom: 22px; border-radius: 20px; background: var(--soft); overflow: hidden; }

/* kill switch */
.kill-art { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 24px 40px; }
.k-node { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--card); }
.k-node .g { width: 26px; height: 26px; }
.k-shield { background: var(--mint); color: var(--onbrand); width: 70px; height: 70px; }
.k-shield .g { width: 32px; height: 32px; }
.k-line { position: relative; flex: 1; max-width: 120px; height: 4px; margin: 0 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.k-line i { position: absolute; top: 0; left: -14px; width: 14px; height: 4px; border-radius: 2px; background: var(--green); animation: flow 1.6s linear infinite; }
.k-line i:nth-child(2) { animation-delay: .53s; } .k-line i:nth-child(3) { animation-delay: 1.06s; }
@keyframes flow { to { left: 100%; } }
.k-pill { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); font-size: 12px; white-space: nowrap; }
.k-pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: kdot 9s var(--std) infinite; }
.k-ok, .k-held { grid-area: 1 / 2; }
.k-held { opacity: 0; }
.tile-kill .k-line-2 { animation: kline 9s steps(1) infinite; }
.tile-kill .k-line-2 i { animation: flow 1.6s linear infinite, khide 9s steps(1) infinite; }
.tile-kill .k-ok { animation: kshow 9s steps(1) infinite; }
.tile-kill .k-held { animation: khide2 9s steps(1) infinite; }
.tile-kill .k-shield { animation: kshield 9s var(--std) infinite; }
@keyframes kline { 0%, 55% { background: var(--line); } 56%, 84% { background: var(--rtint); } 85%, 100% { background: var(--line); } }
@keyframes khide { 0%, 55% { visibility: visible; } 56%, 84% { visibility: hidden; } 85%, 100% { visibility: visible; } }
@keyframes kshow { 0%, 55% { opacity: 1; } 56%, 84% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes khide2 { 0%, 55% { opacity: 0; } 56%, 84% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes kdot { 0%, 54% { background: var(--green); } 56%, 84% { background: var(--orange); } 86%, 100% { background: var(--green); } }
@keyframes kshield { 0%, 54% { box-shadow: 0 0 0 0 rgba(253, 126, 64, 0); } 58% { box-shadow: 0 0 0 10px rgba(253, 126, 64, .25); } 62%, 82% { box-shadow: 0 0 0 6px rgba(253, 126, 64, .2); } 86%, 100% { box-shadow: 0 0 0 0 rgba(253, 126, 64, 0); } }

/* fastest route */
.route-art { display: grid; place-items: center; }
.sonar { width: 100%; max-width: 360px; height: 100%; }
.sonar .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.sonar .sweep { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 60 600; stroke-linecap: round; transform-origin: 160px 100px; animation: spin 3.2s linear infinite; }
.sonar .pt { fill: var(--idle); animation: blip 3.2s var(--std) infinite; }
.sonar .p1 { animation-delay: .3s; } .sonar .p2 { animation-delay: 2.3s; } .sonar .p3 { animation-delay: .9s; } .sonar .p4 { animation-delay: 1.6s; } .sonar .p5 { animation-delay: 2s; }
.sonar .pbest { fill: var(--green); animation: best 3.2s var(--std) infinite; transform-origin: 190px 118px; }
.sonar .me { fill: var(--ink); }
@keyframes blip { 0%, 100% { fill: var(--idle); } 8% { fill: var(--peach); } 30% { fill: var(--idle); } }
@keyframes best { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.35); } 40% { transform: scale(1); } }
.ping { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--onbrand); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* pause */
.pause-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.pause-choices { display: flex; gap: 10px; }
.pz { width: 84px; height: 96px; border: 0; border-radius: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--onbrand); font-weight: 600; font-size: 13px; transition: transform .25s var(--ease), box-shadow .25s; }
.pz .g { width: 22px; height: 22px; stroke-width: 2.4; }
.pz:hover { transform: translateY(-3px); }
.pz-yellow { background: var(--yellow); } .pz-pink { background: var(--pink); } .pz-green { background: var(--green); color: #FFF; }
.pz.is-active { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.pause-state { margin: 0; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--card); }
.pause-state.is-paused { background: var(--pink); color: var(--onbrand); }

/* always at hand */
.hand-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.island { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: #000; color: #FFF; font-size: 13px; font-weight: 500; animation: island 6s var(--ease) infinite; }
.island .mark { width: 24px; height: 24px; }
.island-time { color: var(--green); font-size: 12px; }
@keyframes island { 0%, 100% { padding-right: 14px; } 50% { padding-right: 22px; } }
.widgets { display: flex; gap: 12px; align-items: stretch; }
.wdg { width: 150px; padding: 12px 14px; border-radius: 22px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.wdg .mark { width: 22px; height: 22px; margin-bottom: 6px; }
.wdg b { font: 400 20px/1.1 var(--serif); }
.wdg .mono { font-size: 12px; color: var(--muted); }
.wdg-btn { margin-top: 8px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--inverse); font-size: 11px; font-weight: 600; }
.cc { width: 92px; border-radius: 22px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cc-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #FFF; display: grid; place-items: center; }
.cc small { font-size: 12px; font-weight: 500; }

/* no account */
.id-art { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 0 24px; }
.id-label { font-size: 12px; color: var(--muted); }
.id-value { font-size: clamp(15px, 1.7vw, 19px); font-weight: 500; padding: 10px 14px; border-radius: 12px; background: var(--card); letter-spacing: .02em; }
.id-cross { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.id-cross s { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* ---------- browser ---------- */
.browser { padding: clamp(60px, 8vw, 110px) 0; }
.browser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--onbrand); border-bottom: 2px solid var(--onbrand); transform: rotate(-45deg); }
.br { position: relative; max-width: 440px; margin: 0 auto; padding: 22px 22px 18px; border-radius: 36px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.br-title { font: 400 34px/1 var(--serif); margin: 4px 0 6px; }
.br-sub { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 0 16px; }
.br-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 16px; background: var(--soft); color: var(--muted); font-size: 15px; }
.br-search .g { width: 18px; height: 18px; }
.br-count { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 12px 14px; border-radius: 18px; background: var(--soft); font-size: 14px; }
.br-count small { display: block; color: var(--muted); font-size: 12px; }
.br-count b { font-weight: 500; }
.br-label { margin: 16px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.br-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.br-tiles li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.br-tiles small { font-size: 12px; font-weight: 500; }
.tl { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font: 400 26px/1 var(--serif); color: var(--onbrand); }
.tl-yellow { background: var(--yellow); } .tl-green { background: var(--green); color: #FFF; } .tl-pink { background: var(--pink); } .tl-orange { background: var(--orange); }
.tl-mint { background: var(--mint); } .tl-peach { background: var(--peach); } .tl-add { background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--muted); font-family: var(--sans); }
.br-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.br-tabs { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.burn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--orange); color: var(--onbrand); font-weight: 600; cursor: pointer; transition: transform .2s var(--ease); }
.burn:active { transform: scale(.96); }
.burn .g { width: 18px; height: 18px; }
.toast { position: absolute; left: 50%; bottom: 74px; transform: translate(-50%, 12px); margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--inverse); font-size: 14px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.flame { position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(0deg, var(--orange), var(--pink) 45%, var(--yellow) 80%, transparent); opacity: .0; pointer-events: none; }
.br.is-burning .flame { animation: flame .9s var(--std); }
@keyframes flame { 0% { height: 0; opacity: .0; } 30% { opacity: .85; } 60% { height: 100%; opacity: .55; } 100% { height: 100%; opacity: 0; } }
.br.is-burning .br-tiles li { animation: burnaway .55s var(--std) forwards; }
.br.is-burning .br-tiles li:nth-child(2) { animation-delay: .04s; } .br.is-burning .br-tiles li:nth-child(3) { animation-delay: .08s; }
.br.is-burning .br-tiles li:nth-child(4) { animation-delay: .12s; } .br.is-burning .br-tiles li:nth-child(5) { animation-delay: .06s; }
.br.is-burning .br-tiles li:nth-child(6) { animation-delay: .1s; } .br.is-burning .br-tiles li:nth-child(7) { animation-delay: .14s; }
.br.is-burning .br-tiles li:nth-child(8) { animation: none; }
@keyframes burnaway { to { opacity: 0; transform: translateY(-14px) scale(.6); filter: blur(3px); } }
.br.is-back .br-tiles li { animation: popin .5s var(--ease) both; }
@keyframes popin { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- agreement sheet ---------- */
.agree { padding: clamp(40px, 6vw, 80px) 0; }
.agree-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.sheet { position: relative; padding: 30px 26px 24px; border-radius: 36px; background: var(--card); box-shadow: var(--shadow); }
.grab { display: block; width: 40px; height: 5px; margin: -14px auto 20px; border-radius: 3px; background: var(--line); }
.sheet-title { font: 400 34px/1.05 var(--serif); margin-bottom: 8px; }
.sheet .muted { font-size: 14px; }
.sheet-points { list-style: none; display: grid; gap: 14px; margin: 22px 0 24px; }
.sheet-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }

/* ---------- get the app ---------- */
.get { padding: clamp(60px, 9vw, 130px) 0 clamp(70px, 10vw, 140px); text-align: center; }
.get-inner { display: flex; flex-direction: column; align-items: center; }
.get .muted { margin-bottom: 26px; }
.mark-splash { width: clamp(150px, 18vw, 210px); height: auto; }
.mark-splash .quarters { transform-origin: 116px 116px; animation: spin 7s linear infinite; }
.mark-splash .disc { transform-origin: 116px 116px; animation: breathe2 1.2s ease-in-out infinite alternate; }
.mark-splash .pw { stroke-width: 2.2; }
@keyframes breathe2 { from { transform: scale(1); } to { transform: scale(1.08); } }
.js .splash:not(.in) .q, .js .splash:not(.in) .disc, .js .splash:not(.in) .pw { opacity: 0; }
.splash.in .q { animation: pop .7s var(--ease) both; }
.splash.in .q-o { animation-delay: .12s; } .splash.in .q-p { animation-delay: .24s; } .splash.in .q-g { animation-delay: .36s; }
.splash.in .q-y { transform-origin: 116px 116px; } .splash.in .q-o, .splash.in .q-g, .splash.in .q-p { transform-origin: 116px 116px; }
.splash.in .pw-ring { stroke-dasharray: 48; stroke-dashoffset: 48; animation: ring .9s ease .8s forwards; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ring { to { stroke-dashoffset: 0; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(50px, 8vw, 100px) 0 clamp(24px, 4vw, 40px); }
.meta { font-size: 13px; color: var(--muted); margin-top: 18px; }
.legal { padding: 10px 0 clamp(60px, 8vw, 100px); }
.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.legal-nav { position: sticky; top: 100px; padding: 22px; border-radius: 24px; background: var(--card); }
.legal-nav .foot-h { margin-bottom: 12px; }
.track { list-style: none; position: relative; display: grid; gap: 2px; }
.track::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.track a { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 0; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.track a:hover, .track a.is-here { color: var(--ink); }
.tdot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--idle); box-shadow: 0 0 0 3px var(--card); }
.tdot-ink { background: var(--ink); } .tdot-idle { background: var(--idle); } .tdot-yellow { background: var(--yellow); } .tdot-green { background: var(--green); }
.tdot-pink { background: var(--pink); } .tdot-orange { background: var(--orange); } .tdot-mint { background: var(--mint); } .tdot-peach { background: var(--peach); }
.legal-body { max-width: 760px; }
.legal-body p, .legal-body li { color: var(--ink); }
.legal-body ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.legal-body ul li { position: relative; padding-left: 24px; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.legal-body a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pos, .part { padding: 30px 30px 18px; margin-bottom: 14px; border-radius: 28px; background: var(--card); }
.pos-h, .part-h { display: flex; align-items: center; gap: 14px; font: 400 32px/1.1 var(--serif); margin-bottom: 16px; }
.pos-h .tdot, .part-h .tdot { width: 18px; height: 18px; box-shadow: none; }
.pos .h4:first-of-type { margin-top: 6px; }
.terms > p { margin-bottom: 18px; }
.clause { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.clause:first-of-type { border-top: 0; padding-top: 4px; }
.gist { font: italic 400 24px/1.2 var(--serif); color: var(--muted); margin: 0 0 6px; }
.clause .h4 { margin-top: 0; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }

/* support */
.support { padding: 10px 0 clamp(60px, 8vw, 100px); }
.contact-card { padding: 28px; border-radius: 28px; background: var(--card); }
.contact-wide { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(24px, 5vw, 70px); padding: clamp(26px, 4vw, 44px); }
.contact-wide .nums { margin-bottom: 0; max-width: 40em; }
.contact-wide .publisher { padding: 0 0 0 clamp(24px, 4vw, 44px); border-top: 0; border-left: 1px solid var(--line); align-self: start; }
.mail-big { font: 400 clamp(26px, 2.6vw, 32px)/1.15 var(--serif); text-decoration-color: var(--orange); text-underline-offset: 5px; word-break: break-word; }
.nums { list-style: none; counter-reset: n; display: grid; gap: 12px; margin: 0 0 24px; }
.nums li { counter-increment: n; position: relative; padding-left: 38px; font-size: 15px; color: var(--muted); }
.nums li b { color: var(--ink); font-weight: 600; }
.nums li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--onbrand); display: grid; place-items: center; font: 500 12px/1 var(--mono); }
.nums li:nth-child(2)::before { background: var(--pink); } .nums li:nth-child(3)::before { background: var(--green); color: #FFF; }
.publisher { padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.publisher p { margin: 0 0 4px; }
.publisher b { color: var(--ink); font-weight: 600; }
/* 404 */
.nf { padding: clamp(60px, 9vw, 120px) 0; }
.nf-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-card { --u: .8px; margin-bottom: 18px; }
.nf .lead { margin: 0 auto 28px; }

/* ---------- footer ---------- */
.foot { margin-top: 20px; padding: 56px 0 34px; border-radius: 40px 40px 0 0; background: var(--card); }
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.brand-lg .mark { width: 48px; height: 48px; }
.brand-lg .brand-word { font-size: 52px; }
.foot-tag { margin: 0; font: italic 400 26px/1.2 var(--serif); color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 0; }
.foot-h { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; font-size: 15px; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.foot-co { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.foot-col address { font-size: 15px; color: var(--muted); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-base p { margin: 0; }

/* ---------- reveal on scroll (only for blocks below the first screen) ---------- */
.rv-wait { opacity: 0; transform: translateY(22px); }
.rv-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media print { .rv-wait { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .try { right: calc(50% + 226px); }
  .pic-row { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-kill, .tile-route { grid-column: span 1; }
  .tile-nolog { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .bar-cta { margin-left: auto; }
  .picture-head, .browser-grid, .agree-grid, .legal-grid, .contact-wide { grid-template-columns: 1fr; }
  .contact-wide .publisher { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .legal-nav { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step-disc { margin-bottom: 30px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .try { display: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-kill, .tile-route, .tile-nolog { grid-column: span 1; }
  .pic-row { grid-template-columns: repeat(2, 1fr); }
  .pos, .part { padding: 24px 20px 12px; }
  .pos-h, .part-h { font-size: 27px; }
  .bar-row { height: 64px; }
  .brand-word { font-size: 27px; }
  .bar-cta { height: 40px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 460px) {
  .demo { --u: calc((100vw - 66px) / 390); }
  .nf-card { --u: calc((100vw - 60px) / 350); }
  .pause-choices { gap: 8px; }
  .pz { width: 76px; }
  .widgets { transform: scale(.92); }
}
@media (min-width: 1240px) { .demo { --u: 1.04px; } }
/* 02.12.2026: подпись «Try the switch» наезжала на конец абзаца на всех ширинах ≥ 1081 px — абзац уже, чем свободное место слева от подписи (замер: 443 px на 1100, 521 px от 1224) */
@media (min-width: 1081px) { .hero-copy .lead { max-width: 24.5em; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .k-line i, .sonar .sweep { display: none; }
  .rv-wait { opacity: 1; transform: none; }
}
