:root {
  --bg: #08090c;
  --bg-2: #0d0e13;
  --surface: #11131a;
  --surface-2: #171923;
  --text: #f4f2ee;
  --text-2: #a5a6ad;
  --text-3: #696b74;
  --line: rgba(244, 242, 238, .13);
  --line-soft: rgba(244, 242, 238, .075);
  --brand: #7c5cff;
  --brand-2: #a98bff;
  --lime: #c6ff4a;
  --cyan: #78d7ff;
  --danger: #ff6f88;
  --container: min(92vw, 1500px);
  --pad: clamp(20px, 3vw, 56px);
  --header-h: 82px;
  --radius: 22px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-inout: cubic-bezier(.77, 0, .18, 1);
  --display: 'Manrope', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--display); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #0b0c0e; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }

.skip-link { position: fixed; left: 20px; top: -80px; z-index: 9999; padding: 12px 16px; background: var(--lime); color: #090a0d; border-radius: 8px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 20px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.page-transition { position: fixed; inset: 0; z-index: 9990; pointer-events: none; background: var(--brand); transform: translateY(101%); }
.page-transition::after { content: 'SCANVPN'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 clamp(36px, 8vw, 110px)/1 var(--display); letter-spacing: -.06em; opacity: 0; }
body.is-leaving .page-transition { pointer-events: auto; animation: wipe-in .7s var(--ease-inout) forwards; }
body.is-leaving .page-transition::after { animation: fade-in .25s .22s both; }
body.is-entering .page-transition { animation: wipe-out .85s .08s var(--ease-inout) both; }

.noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .52; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.74) 60%, transparent 100%); }
.ambient { position: fixed; z-index: -2; width: 50vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient--a { right: -17vw; top: -18vw; background: var(--brand); }
.ambient--b { left: -26vw; bottom: -30vw; background: #243bff; opacity: .06; }

.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: clamp(110px, 14vw, 220px) 0; border-top: 1px solid var(--line-soft); content-visibility: auto; contain-intrinsic-size: 900px; }
.section--no-border { border-top: 0; }
.section-index { display: inline-flex; align-items: center; gap: 12px; color: var(--text-3); font: 600 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.section-index b { color: var(--brand-2); font-weight: 600; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.display { margin: 0; max-width: 13ch; font-size: clamp(54px, 8.2vw, 142px); line-height: .86; letter-spacing: -.075em; font-weight: 700; }
.display--wide { max-width: none; }
.display--sm { font-size: clamp(46px, 6.1vw, 104px); line-height: .92; }
.lede { max-width: 650px; color: var(--text-2); font-size: clamp(18px, 1.55vw, 25px); line-height: 1.55; letter-spacing: -.02em; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.lime { color: var(--lime); }
.brand-color { color: var(--brand-2); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h); border-bottom: 1px solid transparent; transition: background .5s, border-color .5s, transform .5s var(--ease); }
.site-header.is-scrolled { background: rgba(8,9,12,.72); border-color: var(--line-soft); backdrop-filter: blur(18px) saturate(1.2); }
.header-inner { height: 100%; width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 36px; height: 36px; color: var(--brand); }
.menu-toggle { justify-self: center; display: inline-flex; align-items: center; gap: 11px; border: 0; background: transparent; padding: 14px; cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: .15em; }
.menu-toggle .bracket { color: var(--brand-2); transition: transform .5s var(--ease); }
.menu-toggle:hover .bracket:first-child { transform: translateX(-5px); }
.menu-toggle:hover .bracket:last-child { transform: translateX(5px); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--text-2); font: 500 10px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.header-status--trial { color: var(--lime); padding: 0; text-shadow: 0 0 16px rgba(198,255,74,.18); }
.header-status--trial i { display: none; }
.header-login { color: var(--text-2); font: 600 10px/1 var(--mono); letter-spacing: .1em; }
.header-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.header-cta::before { content: ''; position: absolute; inset: 0; background: var(--text); transform: translateY(105%); transition: transform .55s var(--ease); }
.header-cta span { position: relative; z-index: 1; }
.header-cta:hover { color: #090a0d; }
.header-cta:hover::before { transform: translateY(0); }
.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; transform-origin: left; background: var(--brand); scale: 0 1; }

/* Fullscreen menu */
.menu-overlay { position: fixed; inset: 0; z-index: 990; display: grid; visibility: hidden; opacity: 0; background: #0a0b0f; transition: visibility .8s, opacity .5s; }
.menu-overlay.is-open { visibility: visible; opacity: 1; }
.menu-overlay .grid-bg { opacity: .6; mask-image: none; }
.menu-inner { position: relative; width: var(--container); margin: auto; padding-top: var(--header-h); }
.menu-meta { display: flex; justify-content: space-between; margin-bottom: clamp(40px, 6vw, 90px); color: var(--text-3); font: 500 10px/1 var(--mono); letter-spacing: .13em; }
.menu-nav { display: grid; }
.menu-nav a { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; min-height: clamp(70px, 9vh, 110px); border-top: 1px solid var(--line); transform: translateY(50px); opacity: 0; transition: background .45s, color .45s, transform .8s var(--ease), opacity .6s; }
.menu-overlay.is-open .menu-nav a { transform: translateY(0); opacity: 1; }
.menu-overlay.is-open .menu-nav a:nth-child(2) { transition-delay: .05s; }
.menu-overlay.is-open .menu-nav a:nth-child(3) { transition-delay: .1s; }
.menu-overlay.is-open .menu-nav a:nth-child(4) { transition-delay: .15s; }
.menu-overlay.is-open .menu-nav a:nth-child(5) { transition-delay: .2s; }
.menu-overlay.is-open .menu-nav a:nth-child(6) { transition-delay: .25s; }
.menu-overlay.is-open .menu-nav a:nth-child(7) { transition-delay: .3s; }
.menu-nav a:last-child { border-bottom: 1px solid var(--line); }
.menu-nav a span { color: var(--brand-2); font: 500 11px/1 var(--mono); }
.menu-nav a strong { font-size: clamp(26px, 4vw, 72px); line-height: .9; letter-spacing: -.055em; font-weight: 650; }
.menu-nav a i { font-style: normal; font-size: 25px; transition: transform .5s var(--ease); }
.menu-nav a:hover { background: var(--text); color: #090a0d; }
.menu-nav a:hover i { transform: rotate(45deg); }
.menu-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; color: var(--text-3); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; }

/* Cursor */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; }
.cursor { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.42); mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s; }
.cursor-dot { width: 5px; height: 5px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
.cursor.is-hover { width: 78px; height: 78px; background: rgba(255,255,255,.9); }

/* Buttons */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 26px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 14px; font-weight: 700; letter-spacing: -.02em; transition: color .45s, border-color .45s, transform .45s var(--ease); }
.button::before { content: ''; position: absolute; inset: 0; background: var(--text); transform: translateY(101%); transition: transform .55s var(--ease); }
.button > * { position: relative; z-index: 1; }
.button span { position: relative; z-index: 1; }
.button:hover { color: #090a0d; border-color: var(--text); }
.button:hover::before { transform: translateY(0); }
.button--brand { color: #fff; border-color: transparent; background: var(--brand); box-shadow: 0 18px 50px rgba(124,92,255,.22); }
.button--brand::before { background: var(--lime); }
.button--lime { color: #090a0d; background: var(--lime); border-color: var(--lime); }
.button--lime::before { background: var(--text); }
.button--text { border-color: transparent; padding-inline: 4px; min-height: auto; border-radius: 0; }
.button--text::before { display: none; }
.button--text::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform .45s var(--ease); }
.button--text:hover { color: var(--text); }
.button--text:hover::after { transform-origin: left; transform: scaleX(1); }

/* Reusable reveal. Content stays visible when JavaScript is unavailable. */
[data-reveal] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal] { opacity: 0; transform: translateY(42px); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-stagger] > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-stagger] > * { opacity: 0; transform: translateY(30px); }
.js [data-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: .4s; }
.line-mask { display: block; overflow: hidden; padding-bottom: .05em; }
.line-mask > span { display: block; transform: none; transition: transform 1.2s var(--ease); }
.js .line-mask > span { transform: translateY(110%) rotate(1.5deg); }
body.is-ready .hero .line-mask > span, body.is-ready .inner-hero .line-mask > span, .is-visible .line-mask > span { transform: translateY(0) rotate(0); }
.line-mask:nth-child(2) > span { transition-delay: .08s; }
.line-mask:nth-child(3) > span { transition-delay: .16s; }

/* Home hero */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 6vh) 0 70px; display: flex; align-items: center; overflow: clip; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-soft); }
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); align-items: center; gap: clamp(30px, 6vw, 110px); }
.hero-copy { padding-top: 4vh; }
.hero-kicker { margin-bottom: clamp(28px, 4vw, 58px); }
.hero-title { margin: 0; max-width: 920px; font-size: clamp(58px, 8.7vw, 154px); line-height: .82; letter-spacing: -.082em; font-weight: 680; }
.hero-title .accent { color: var(--brand-2); }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1px rgba(244,242,238,.5); }
.hero-bottom { display: grid; grid-template-columns: minmax(220px, 430px) 1fr; gap: 30px; align-items: end; margin-top: clamp(42px, 6vw, 90px); }
.hero-copy p { margin: 0; color: var(--text-2); font-size: clamp(16px, 1.35vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; justify-content: flex-end; gap: 12px; }
.hero-stage { position: relative; min-height: min(72vh, 780px); }
.webgl-shell { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50% 50% 47% 53% / 48% 42% 58% 52%; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(124,92,255,.1), transparent 60%); transform: rotate(-4deg); }
.webgl-shell::before, .webgl-shell::after { content: ''; position: absolute; inset: 7%; z-index: 2; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.webgl-shell::after { inset: 18%; border-color: rgba(198,255,74,.16); }
.webgl-canvas { width: 100%; height: 100%; }
.orbit-label { position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,9,12,.66); backdrop-filter: blur(10px); font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.orbit-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.orbit-label--a { top: 9%; left: -3%; }
.orbit-label--b { right: -5%; top: 30%; }
.orbit-label--c { left: 9%; bottom: 5%; }
.orbit-label--d { right: 10%; bottom: 12%; }
.hero-scroll { position: absolute; left: var(--pad); bottom: 30px; z-index: 4; display: flex; align-items: center; gap: 12px; color: var(--text-3); font: 500 9px/1 var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; }
.hero-scroll::after { content: ''; width: 1px; height: 60px; background: linear-gradient(var(--brand), transparent); animation: scroll-line 2s ease-in-out infinite; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); background: rgba(255,255,255,.015); }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: marquee 26s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-item { display: flex; align-items: center; gap: 28px; padding: 23px 32px; white-space: nowrap; color: var(--text-2); font: 600 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.marquee-item::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }

/* Intro statement */
.statement { min-height: 120vh; display: grid; align-items: center; }
.statement-grid { display: grid; grid-template-columns: .7fr 2.3fr; gap: 50px; }
.statement-copy { font-size: clamp(46px, 7.8vw, 132px); line-height: .93; letter-spacing: -.065em; font-weight: 610; }
.statement-copy span { color: var(--text-3); transition: color .3s; }
.statement-copy span.is-active { color: var(--text); }

/* Feature chapters */
.chapters { padding-bottom: 0; }
.chapter { position: relative; min-height: 110vh; display: grid; align-items: center; border-top: 1px solid var(--line-soft); }
.chapter:first-of-type { margin-top: 80px; }
.chapter-inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 9vw, 160px); align-items: center; }
.chapter-copy { position: sticky; top: 26vh; align-self: start; }
.chapter-copy h3 { margin: 25px 0 24px; max-width: 8ch; font-size: clamp(48px, 6.3vw, 112px); line-height: .91; letter-spacing: -.065em; font-weight: 650; }
.chapter-copy p { max-width: 470px; color: var(--text-2); font-size: clamp(17px, 1.2vw, 21px); line-height: 1.6; }
.chapter-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.glass-card { position: relative; width: min(100%, 680px); aspect-ratio: 1.05; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.glass-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(124,92,255,.2), transparent 42%); }
.card-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle, #000 20%, transparent 75%); }
.device-orbit { position: absolute; inset: 13%; display: grid; place-items: center; }
.device-orbit::before, .device-orbit::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; animation: spin 22s linear infinite; }
.device-orbit::after { inset: 17%; border-color: rgba(124,92,255,.42); animation-direction: reverse; animation-duration: 16s; }
.central-node { position: relative; z-index: 3; width: 130px; height: 130px; display: grid; place-items: center; border-radius: 34px; background: linear-gradient(145deg, var(--brand-2), #5232dd); box-shadow: 0 28px 70px rgba(124,92,255,.35); font-size: 40px; font-weight: 800; }
.satellite { position: absolute; z-index: 4; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 17px; background: #151821; color: var(--text-2); font: 500 10px/1 var(--mono); }
.satellite--1 { top: 11%; left: 46%; }
.satellite--2 { right: 7%; top: 48%; }
.satellite--3 { bottom: 8%; left: 42%; }
.satellite--4 { left: 8%; top: 46%; }
.route-map { position: absolute; inset: 0; }
.route-map svg { width: 100%; height: 100%; }
.route-map path { fill: none; stroke: rgba(124,92,255,.55); stroke-width: 1.4; stroke-dasharray: 6 9; animation: dash 8s linear infinite; }
.route-map path:nth-child(2) { stroke: rgba(198,255,74,.55); animation-direction: reverse; }
.route-map circle { fill: var(--text); filter: drop-shadow(0 0 10px #fff); }
.location-stack { position: absolute; inset: 8%; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.location-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,9,12,.66); backdrop-filter: blur(10px); transform: translateX(var(--shift)); }
.location-row:nth-child(1) { --shift: 5%; }
.location-row:nth-child(2) { --shift: -3%; }
.location-row:nth-child(3) { --shift: 7%; }
.location-row:nth-child(4) { --shift: -6%; }
.location-row b { font-size: 15px; }
.location-row small { color: var(--text-3); font: 500 9px/1 var(--mono); letter-spacing: .08em; }
.location-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }

/* Payment section */
.payments-showcase { position: relative; overflow: hidden; background: var(--text); color: #0a0b0e; }
.payments-showcase .section-index { color: #686970; }
.payments-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.payments-head .display { color: #0a0b0e; }
.payments-head p { max-width: 480px; color: #66676d; font-size: 18px; line-height: 1.6; }
.payment-river {
  position: relative;
  isolation: isolate;
  margin-top: 90px;
  overflow: hidden;
  transform: rotate(-3deg) scale(1.06);
  transform-origin: center;
}
.payment-track { display: flex; width: max-content; animation: marquee 30s linear infinite reverse; }
.payment-river::before, .payment-river::after {
  content: '';
  position: absolute;
  z-index: 8;
  top: -12px;
  bottom: -12px;
  width: clamp(18px, 2vw, 38px);
  pointer-events: none;
}
.payment-river::before {
  left: 0;
  background: linear-gradient(90deg, rgba(244,242,238,.72) 0%, rgba(244,242,238,.28) 42%, rgba(244,242,238,0) 100%);
}
.payment-river::after {
  right: 0;
  background: linear-gradient(270deg, rgba(244,242,238,.72) 0%, rgba(244,242,238,.28) 42%, rgba(244,242,238,0) 100%);
}
.payment-pill { min-width: 250px; height: 150px; margin-right: 16px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid rgba(10,11,14,.18); border-radius: 18px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.payment-pill:nth-child(even) { background: #e8e5ff; }
.payment-pill:nth-child(3n) { background: #dfff91; }
.payment-pill strong { font-size: 28px; letter-spacing: -.05em; }
.payment-pill span { color: #6b6c72; font: 500 10px/1 var(--mono); letter-spacing: .1em; }

/* Device panorama */
.device-panorama { overflow: clip; }
.device-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.device-head p { max-width: 430px; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.device-cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 80px; }
.device-card { position: relative; min-height: 540px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.device-card--mobile { grid-column: span 5; }
.device-card--desktop { grid-column: span 7; }
.device-card--router { grid-column: span 12; min-height: 400px; }
.device-card .label { color: var(--brand-2); font: 600 10px/1 var(--mono); letter-spacing: .1em; }
.device-card h3 { margin: 22px 0 12px; font-size: clamp(30px, 3vw, 50px); line-height: 1; letter-spacing: -.055em; }
.device-card p { max-width: 500px; color: var(--text-2); line-height: 1.6; }
.phone-mock { position: absolute; width: 270px; aspect-ratio: .49; left: 50%; bottom: -25%; transform: translateX(-50%) rotate(-7deg); border: 2px solid #343744; border-radius: 45px; background: #0b0c11; box-shadow: 0 30px 90px rgba(0,0,0,.6); overflow: hidden; }
.phone-mock::before { content: ''; position: absolute; top: 13px; left: 50%; width: 80px; height: 22px; border-radius: 20px; background: #050608; transform: translateX(-50%); z-index: 3; }
.mock-screen { position: absolute; inset: 8px; border-radius: 37px; overflow: hidden; background: radial-gradient(circle at 50% 55%, rgba(124,92,255,.35), transparent 36%), linear-gradient(#141725, #090a0e); }
.mock-screen::after { content: 'ON'; position: absolute; left: 50%; top: 53%; width: 86px; height: 86px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 22px rgba(124,92,255,.08), 0 0 0 44px rgba(124,92,255,.04); font-weight: 800; }
.desktop-mock { position: absolute; left: 8%; right: -8%; bottom: -4%; height: 58%; border: 1px solid #363947; border-radius: 18px 18px 0 0; background: #090a0e; box-shadow: 0 25px 80px rgba(0,0,0,.5); }
.desktop-mock::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 38px; border-bottom: 1px solid var(--line); background: #11131a; }
.graph-bars { position: absolute; left: 10%; right: 8%; bottom: 11%; height: 46%; display: flex; align-items: end; gap: 14px; }
.graph-bars i { flex: 1; height: var(--h); background: linear-gradient(var(--brand-2), var(--brand)); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: bars 3s var(--ease) infinite alternate; }
.graph-bars i:nth-child(6) { background: linear-gradient(var(--lime), #79b900); }
.router-visual { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 8%; }
.router-box { position: relative; width: min(100%, 440px); height: 150px; border: 1px solid #353844; border-radius: 26px; background: linear-gradient(#1a1d27, #10121a); box-shadow: 0 35px 80px rgba(0,0,0,.45); }
.router-box::before, .router-box::after { content: ''; position: absolute; bottom: 100%; width: 4px; height: 150px; background: #333642; border-radius: 5px; transform-origin: bottom; }
.router-box::before { left: 16%; transform: rotate(-8deg); }
.router-box::after { right: 16%; transform: rotate(8deg); }
.router-lights { position: absolute; left: 32px; bottom: 30px; display: flex; gap: 10px; }
.router-lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.router-lights i:first-child { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.router-copy { max-width: 500px; }

/* Locations table */
.locations-block { background: #0a0b0f; }
.locations-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.locations-head p { max-width: 460px; color: var(--text-2); line-height: 1.6; font-size: 18px; }
.locations-table { margin-top: 75px; border-top: 1px solid var(--line); }
.location-item { display: grid; grid-template-columns: 100px 1fr 1fr 1fr auto; align-items: center; gap: 25px; min-height: 95px; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), background .4s; }
.location-item:hover { padding-inline: 20px; background: rgba(255,255,255,.025); }
.location-item .num { color: var(--text-3); font: 500 10px/1 var(--mono); }
.location-item strong { font-size: clamp(20px, 2vw, 32px); letter-spacing: -.04em; }
.location-item span { color: var(--text-2); font-size: 13px; }
.location-item .status { display: flex; align-items: center; gap: 10px; color: var(--lime); font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.location-item .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.flag { width: 28px; height: 19px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.flag-de { background: linear-gradient(#111 0 33%,#d12f35 33% 66%,#f4c438 66%); }
.flag-nl { background: linear-gradient(#ae1c28 0 33%,#fff 33% 66%,#21468b 66%); }
.flag-pl { background: linear-gradient(#fff 0 50%,#dc143c 50%); }
.flag-fi { background: linear-gradient(90deg,transparent 0 28%,#003580 28% 43%,transparent 43%),linear-gradient(transparent 0 40%,#003580 40% 58%,transparent 58%),#fff; }
.flag-us { background: repeating-linear-gradient(#b22234 0 1.5px,#fff 1.5px 3px); }

/* Pricing preview */
.pricing-preview { overflow: hidden; }
.pricing-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(45px, 8vw, 130px); align-items: center; }
.pricing-copy h2 { margin: 26px 0 24px; font-size: clamp(54px, 7vw, 118px); line-height: .9; letter-spacing: -.07em; font-weight: 650; }
.pricing-copy p { color: var(--text-2); font-size: 18px; line-height: 1.6; }
.pricing-panel { position: relative; padding: clamp(28px, 4vw, 58px); border: 1px solid rgba(124,92,255,.45); border-radius: 28px; background: linear-gradient(145deg, rgba(124,92,255,.08), rgba(255,255,255,.02)); box-shadow: 0 40px 110px rgba(0,0,0,.35); }
.pricing-panel::before { content: ''; position: absolute; width: 280px; height: 280px; right: -80px; top: -100px; background: var(--brand); filter: blur(100px); opacity: .2; }
.plan-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 38px 0; }
.plan-switch button { min-height: 62px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer; transition: .4s; }
.plan-switch button.is-active { color: var(--text); border-color: var(--brand); background: rgba(124,92,255,.11); box-shadow: inset 0 -2px 0 var(--brand); }
.price-line { display: flex; justify-content: space-between; align-items: end; padding-block: 28px; border-block: 1px solid var(--line); }
.price-line span { color: var(--text-3); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.price-line strong { font-size: clamp(44px, 5vw, 78px); line-height: .9; letter-spacing: -.06em; }
.pricing-panel .button { width: 100%; margin-top: 30px; }

/* CTA */
.final-cta { min-height: 90vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.final-cta .grid-bg { mask-image: radial-gradient(circle at center, #000, transparent 76%); }
.final-cta-orb { position: absolute; width: min(70vw, 820px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(124,92,255,.3); animation: spin 35s linear infinite; }
.final-cta-orb::before, .final-cta-orb::after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(198,255,74,.2); border-radius: 50%; }
.final-cta-orb::after { inset: 27%; border-color: rgba(255,255,255,.12); }
.final-cta-inner { position: relative; z-index: 3; }
.final-cta h2 { margin: 25px auto 40px; max-width: 13ch; font-size: clamp(58px, 9vw, 152px); line-height: .86; letter-spacing: -.075em; }
.final-cta-actions { display: flex; justify-content: center; gap: 12px; }

/* Footer */
.site-footer { padding: 70px 0 34px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 40px; }
.footer-brand p { max-width: 400px; margin: 25px 0 0; color: var(--text-2); line-height: 1.6; }
.footer-col h4 { margin: 0 0 22px; color: var(--text-3); font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; margin: 12px 0; color: var(--text-2); transition: color .3s, transform .3s; }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--text-3); font: 500 9px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Inner hero */
.inner-hero { position: relative; min-height: 92svh; padding: calc(var(--header-h) + 11vh) 0 10vh; overflow: clip; display: flex; align-items: end; }
.inner-hero .grid-bg { mask-image: linear-gradient(#000 0 75%, transparent); }
.inner-hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: end; }
.inner-hero h1 { margin: 30px 0 0; max-width: 11ch; font-size: clamp(70px, 11vw, 190px); line-height: .82; letter-spacing: -.085em; font-weight: 660; }
.inner-hero-copy { padding-bottom: 15px; }
.inner-hero-copy p { color: var(--text-2); font-size: clamp(18px, 1.5vw, 25px); line-height: 1.55; }
.inner-hero-copy .button { margin-top: 28px; }
.inner-orb { position: absolute; right: -7vw; top: 9vh; width: min(58vw, 850px); aspect-ratio: 1; border: 1px solid rgba(124,92,255,.2); border-radius: 50%; pointer-events: none; }
.inner-orb::before, .inner-orb::after { content: ''; position: absolute; inset: 13%; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.inner-orb::after { inset: 31%; border-color: rgba(198,255,74,.25); }

/* Pricing page */
.pricing-page-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 18px; align-items: start; }
.ready-plans { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 30px); }
.ready-plan { padding: 24px; text-align: left; color: var(--text); background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .35s, background .35s, transform .35s var(--ease); }
.ready-plan:hover, .ready-plan.is-active { border-color: var(--brand); background: rgba(124,92,255,.07); transform: translateX(6px); }
.ready-plan small { color: var(--text-3); font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.ready-plan strong { display: block; margin: 12px 0 8px; font-size: 22px; }
.ready-plan span { color: var(--text-2); font-size: 14px; }
.calculator { padding: clamp(28px, 5vw, 66px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.025); }
.calculator h2 { margin: 0 0 12px; font-size: clamp(40px, 4.5vw, 72px); letter-spacing: -.06em; }
.calculator > p { color: var(--text-2); }
.calc-field { margin-top: 52px; }
.calc-field-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.calc-field-head span { color: var(--text-2); font: 500 clamp(13px,1.1vw,18px)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.calc-field-head strong { font-size: clamp(26px, 3vw, 46px); }
.range { width: 100%; height: 34px; margin: 24px 0 8px; appearance: none; background: transparent; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--range-progress,0%), #383940 var(--range-progress,0%)); }
.range::-webkit-slider-thumb { appearance: none; width: 27px; height: 27px; margin-top: -9px; border: 2px solid var(--brand); border-radius: 50%; background: var(--text); box-shadow: 0 0 0 5px rgba(124,92,255,.12); cursor: grab; }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: #383940; }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--brand); }
.range::-moz-range-thumb { width: 24px; height: 24px; border: 2px solid var(--brand); border-radius: 50%; background: var(--text); }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-row button { min-width: 54px; height: 45px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); background: transparent; cursor: pointer; }
.option-row button.is-active { color: var(--text); border-color: var(--brand); background: rgba(124,92,255,.1); }
.calc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; padding-block: 26px; border-block: 1px solid var(--line); }
.calc-summary span { display: block; margin-bottom: 10px; color: var(--text-3); font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.calc-summary strong { font-size: 22px; }
.calc-total { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 26px; }
.calc-total span { color: var(--text-3); font: 500 10px/1 var(--mono); letter-spacing: .1em; }
.calc-total strong { font-size: clamp(50px, 6vw, 90px); line-height: .9; letter-spacing: -.07em; }
.calculator .button { width: 100%; margin-top: 28px; }

/* Devices page */
.device-selector { display: grid; grid-template-columns: .48fr 1.52fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: 650px; }
.device-tabs { border-right: 1px solid var(--line); }
.device-tab { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; min-height: 104px; padding: 0 24px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; cursor: pointer; color: var(--text-2); transition: background .4s, color .4s; }
.device-tab.is-active { color: var(--text); background: rgba(124,92,255,.08); }
.device-tab span { color: var(--brand-2); font: 500 10px/1 var(--mono); }
.device-tab strong { font-size: 20px; }
.device-tab i { font-style: normal; }
.device-panel { position: relative; display: none; min-height: 650px; padding: clamp(35px,5vw,70px); overflow: hidden; }
.device-panel.is-active { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; align-items: center; animation: panel-in .65s var(--ease); }
.device-panel h2 { margin: 20px 0; font-size: clamp(46px,5vw,84px); line-height: .92; letter-spacing: -.065em; }
.device-panel p { color: var(--text-2); line-height: 1.65; }
.feature-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.feature-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.device-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.device-art .phone-mock { position: relative; left: auto; bottom: auto; transform: rotate(-8deg); }
.device-art .desktop-mock { position: relative; inset: auto; width: 100%; height: 360px; }
.device-art .router-box { width: 90%; }

/* Tech page */
.protocol-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; margin-top: 70px; }
.protocol-card { grid-column: span 4; min-height: 360px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); overflow: hidden; }
.protocol-card--wide { grid-column: span 8; }
.protocol-card .num { color: var(--brand-2); font: 500 10px/1 var(--mono); }
.protocol-card h3 { margin: 80px 0 18px; font-size: clamp(30px,3vw,48px); letter-spacing: -.05em; }
.protocol-card p { color: var(--text-2); line-height: 1.6; }
.protocol-wave { height: 100px; margin-top: 30px; position: relative; overflow: hidden; }
.protocol-wave::before { content: ''; position: absolute; left: -20%; right: -20%; top: 50%; height: 70px; border: 2px solid var(--brand); border-radius: 50%; transform: translateY(-50%); animation: wave 3s ease-in-out infinite alternate; }
.pipeline { display: grid; grid-template-columns: repeat(7,auto); align-items: center; gap: 16px; margin-top: 70px; overflow-x: auto; padding-bottom: 10px; }
.pipeline-node { min-width: 150px; padding: 25px 18px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.pipeline-node span { color: var(--brand-2); font: 500 9px/1 var(--mono); }
.pipeline-node strong { display: block; margin-top: 12px; }
.pipeline-arrow { color: var(--lime); font-size: 24px; }

/* Guides page */
.guide-feature { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 640px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.guide-feature-copy { padding: clamp(35px,5vw,70px); display: flex; flex-direction: column; justify-content: space-between; }
.guide-feature-copy h2 { margin: 30px 0; font-size: clamp(45px,5vw,88px); line-height: .92; letter-spacing: -.06em; }
.guide-feature-copy p { color: var(--text-2); line-height: 1.6; }
.guide-feature-art { position: relative; background: radial-gradient(circle at 50% 50%, rgba(124,92,255,.28), transparent 50%), #101219; }
.guide-feature-art .webgl-canvas { position: absolute; inset: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 18px; }
.guide-card { min-height: 360px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.02); transition: transform .55s var(--ease), border-color .4s; }
.guide-card:hover { transform: translateY(-8px); border-color: rgba(124,92,255,.55); }
.guide-card .tag { color: var(--brand-2); font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.guide-card h3 { margin: 0; font-size: clamp(28px,2.4vw,42px); line-height: 1.02; letter-spacing: -.05em; }
.guide-card footer { display: flex; justify-content: space-between; color: var(--text-3); font: 500 9px/1 var(--mono); }

/* About */
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 70px; }
.principle { min-height: 420px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; justify-content: space-between; }
.principle .num { color: var(--brand-2); font: 500 10px/1 var(--mono); }
.principle h3 { margin: 0; font-size: clamp(34px,3.5vw,60px); line-height: .95; letter-spacing: -.06em; }
.principle p { color: var(--text-2); line-height: 1.6; }
.status-board { margin-top: 70px; border-top: 1px solid var(--line); }
.status-row { display: grid; grid-template-columns: 80px 1fr 1fr auto; gap: 25px; align-items: center; min-height: 90px; border-bottom: 1px solid var(--line); }
.status-row .num { color: var(--text-3); font: 500 9px/1 var(--mono); }
.status-row span { color: var(--text-2); }
.status-row .ok { display: flex; align-items: center; gap: 9px; color: var(--lime); font: 500 10px/1 var(--mono); }
.status-row .ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(50px,8vw,130px); }
.faq-intro h2 { margin: 24px 0; font-size: clamp(52px,6vw,100px); line-height: .9; letter-spacing: -.07em; }
.faq-intro p { color: var(--text-2); line-height: 1.6; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item button { width: 100%; min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: clamp(17px,1.5vw,23px); font-weight: 700; }
.accordion-item button i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: transform .4s var(--ease); }
.accordion-item button[aria-expanded="true"] i { transform: rotate(45deg); }
.accordion-panel { color: var(--text-2); line-height: 1.65; padding: 0 70px 30px 0; }

/* 404 */
.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin: 0; font-size: clamp(130px,30vw,460px); line-height: .7; letter-spacing: -.1em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); }
.not-found p { margin: 50px auto 30px; color: var(--text-2); font-size: 20px; }

/* Animations */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -120; } }
@keyframes scroll-line { 0%,100% { transform: scaleY(.2); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@keyframes bars { to { transform: scaleY(.55); filter: brightness(1.3); } }
@keyframes wave { to { transform: translateY(-50%) scaleX(.75) rotate(4deg); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes wipe-in { to { transform: translateY(0); } }
@keyframes wipe-out { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes fade-in { to { opacity: 1; } }

/* Responsive */
@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .header-status { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { min-height: 650px; margin-top: 50px; }
  .hero-title { font-size: clamp(68px, 12vw, 140px); }
  .hero-bottom { max-width: 780px; }
  .statement-grid, .chapter-inner, .pricing-grid, .faq-layout, .pricing-page-grid { grid-template-columns: 1fr; }
  .statement-grid { gap: 45px; }
  .chapter-copy { position: relative; top: auto; }
  .chapter { min-height: auto; padding: 120px 0; }
  .chapter-visual { min-height: 600px; }
  .payments-head, .device-head, .locations-head, .inner-hero-grid { grid-template-columns: 1fr; }
  .device-card--mobile, .device-card--desktop { grid-column: span 6; }
  .pricing-copy { max-width: 680px; }
  .ready-plans { position: static; grid-template-columns: repeat(4,1fr); }
  .device-selector { grid-template-columns: 1fr; }
  .device-tabs { display: grid; grid-template-columns: repeat(4,1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .device-tab { grid-template-columns: auto 1fr; min-height: 82px; border-bottom: 0; border-right: 1px solid var(--line); }
  .device-tab i { display: none; }
  .protocol-card { grid-column: span 6; }
  .protocol-card--wide { grid-column: span 12; }
  .guide-grid { grid-template-columns: repeat(2,1fr); }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --container: calc(100vw - 32px); --header-h: 66px; --radius: 16px; }
  .site-header { height: var(--header-h); }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { justify-self: end; }
  .header-actions { display: none; }
  .brand { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .menu-inner { padding-top: 100px; }
  .menu-meta { margin-bottom: 30px; }
  .menu-nav a { grid-template-columns: 42px 1fr auto; min-height: 72px; }
  .menu-nav a strong { font-size: clamp(24px,8vw,40px); }
  .menu-footer { flex-direction: column; }
  .cursor, .cursor-dot { display: none; }
  .section { padding: 95px 0; }
  .display { font-size: clamp(48px,15vw,82px); line-height: .9; }
  .display--sm { font-size: clamp(43px,13vw,72px); }
  .hero { min-height: auto; padding: calc(var(--header-h) + 75px) 0 40px; }
  .hero-title { font-size: clamp(55px,17.5vw,96px); line-height: .84; }
  .hero-bottom { grid-template-columns: 1fr; margin-top: 34px; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; }
  .hero-actions .button { flex: 1; min-width: 155px; padding-inline: 18px; }
  .hero-stage { min-height: 440px; margin-top: 50px; }
  .webgl-shell { inset: 10px; }
  .orbit-label { font-size: 7px; padding: 8px 10px; }
  .orbit-label--a { left: 0; }
  .orbit-label--b { right: 0; }
  .hero-scroll { display: none; }
  .marquee-item { padding: 18px 20px; }
  .statement { min-height: auto; }
  .statement-copy { font-size: clamp(42px,13vw,74px); }
  .chapter { padding: 90px 0; }
  .chapter-copy h3 { font-size: clamp(48px,14vw,76px); }
  .chapter-visual { min-height: 430px; }
  .glass-card { aspect-ratio: .9; }
  .central-node { width: 100px; height: 100px; border-radius: 26px; font-size: 30px; }
  .satellite { width: 48px; height: 48px; font-size: 8px; }
  .location-stack { inset: 7%; }
  .location-row { grid-template-columns: 35px 1fr auto; padding: 13px; }
  .payments-head p, .device-head p, .locations-head p { font-size: 16px; }
  .payment-river { margin-top: 60px; }
  .payment-pill { min-width: 200px; height: 128px; }
  .device-cards { grid-template-columns: 1fr; }
  .device-card--mobile, .device-card--desktop, .device-card--router { grid-column: auto; min-height: 490px; }
  .device-card--router { min-height: 530px; }
  .router-visual { grid-template-columns: 1fr; gap: 50px; padding: 22% 8% 8%; }
  .router-box { height: 115px; }
  .router-box::before, .router-box::after { height: 105px; }
  .location-item { grid-template-columns: 48px 1fr auto; min-height: 88px; }
  .location-item .num, .location-item > span:not(.status) { display: none; }
  .location-item strong { font-size: 21px; }
  .pricing-grid { gap: 55px; }
  .pricing-copy h2 { font-size: clamp(52px,15vw,82px); }
  .pricing-panel { padding: 24px; }
  .plan-switch { grid-template-columns: repeat(2,1fr); }
  .final-cta { min-height: 75vh; }
  .final-cta h2 { font-size: clamp(55px,15.5vw,90px); }
  .final-cta-actions { flex-direction: column; align-items: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; }
  .inner-hero { min-height: 78svh; padding-top: calc(var(--header-h) + 90px); }
  .inner-hero h1 { font-size: clamp(65px,20vw,110px); }
  .inner-orb { width: 95vw; right: -45vw; top: 10vh; opacity: .6; }
  .pricing-page-grid { gap: 35px; }
  .ready-plans { grid-template-columns: 1fr 1fr; }
  .ready-plan { padding: 18px; }
  .calculator { padding: 24px; }
  .calc-field { margin-top: 38px; }
  .calc-summary { grid-template-columns: 1fr 1fr; }
  .calc-summary > div:first-child { grid-column: 1/-1; }
  .calc-total { align-items: start; flex-direction: column; }
  .device-tabs { grid-template-columns: 1fr 1fr; }
  .device-tab { min-height: 70px; border-bottom: 1px solid var(--line); }
  .device-panel.is-active { grid-template-columns: 1fr; padding: 28px; }
  .device-panel, .device-selector { min-height: 900px; }
  .device-art { min-height: 400px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-card, .protocol-card--wide { grid-column: auto; }
  .guide-feature { grid-template-columns: 1fr; }
  .guide-feature-art { min-height: 380px; }
  .guide-grid { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 45px 1fr auto; }
  .status-row > span:nth-child(3) { display: none; }
  .accordion-item button { min-height: 76px; font-size: 17px; }
  .accordion-panel { padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .webgl-canvas { display: none; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ===== v4 refinements: seamless loops, single calculator, clearer hero ===== */

/* Keep the outlined third hero line as one deliberate typographic unit. */
.hero-title .line-mask--outline { overflow: visible; padding-top: .05em; padding-bottom: .12em; }
.hero-title .outline {
  display: inline-block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(54px, 5.7vw, 104px);
  line-height: .9;
  letter-spacing: -.065em;
  -webkit-text-stroke: 1px rgba(244,242,238,.54);
  text-stroke: 1px rgba(244,242,238,.54);
}

/* The two equal groups make both tickers continuous from the very first frame. */
.marquee-track,
.payment-track { display: flex; width: max-content; }
.marquee-group {
  flex: 0 0 auto;
  min-width: 100vw;
  justify-content: space-around;
}
.payment-group {
  display: flex;
  flex: 0 0 auto;
  min-width: max(110vw, 1420px);
  justify-content: space-around;
  padding-inline: 18px;
}
.payment-track { animation: marquee 30s linear infinite; }

/* Single, focused calculator layout. */
.pricing-page-grid--single {
  display: block;
  max-width: 1120px;
}
.pricing-page-grid--single .calculator {
  width: 100%;
  margin-inline: auto;
}

/* Home hero: a readable network route rather than an abstract globe. */
.route-stage {
  min-height: min(72vh, 760px);
  display: grid;
  place-items: center;
}
.route-field {
  position: absolute;
  inset: 2% 0;
  overflow: hidden;
  isolation: isolate;
}
.route-field::before {
  content: '';
  position: absolute;
  inset: 8% 4%;
  background:
    radial-gradient(circle at 50% 48%, rgba(124,92,255,.2), transparent 26%),
    radial-gradient(circle at 72% 28%, rgba(198,255,74,.08), transparent 22%);
  filter: blur(8px);
  pointer-events: none;
}
.route-field-grid {
  position: absolute;
  inset: 0;
  opacity: .58;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,.78) 52%, transparent 84%);
}
.route-network {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  overflow: visible;
}
.route-path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.route-path--primary {
  stroke: url(#routePurple);
  stroke-width: 3;
  filter: url(#routeGlow);
}
.route-path--secondary {
  stroke: rgba(124,92,255,.5);
  stroke-width: 1.4;
  stroke-dasharray: 8 12;
  animation: dash 10s linear infinite;
}
.route-path--ghost {
  stroke: rgba(255,255,255,.13);
  stroke-width: 1;
  stroke-dasharray: 3 11;
  animation: dash 16s linear infinite reverse;
}
.route-packet { fill: var(--lime); filter: drop-shadow(0 0 10px var(--lime)); }
.route-packet--b { fill: #fff; opacity: .8; }
.route-core {
  position: absolute;
  left: 48%;
  top: 48%;
  z-index: 4;
  width: clamp(116px, 10vw, 154px);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 34%;
  background: linear-gradient(145deg, rgba(156,125,255,.98), rgba(82,50,221,.9));
  box-shadow: 0 34px 90px rgba(124,92,255,.38), inset 0 1px 0 rgba(255,255,255,.35);
  animation: route-core-float 5s ease-in-out infinite;
}
.route-core::before,
.route-core::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(124,92,255,.28);
  border-radius: 50%;
  inset: -34%;
  animation: route-ring 5s ease-out infinite;
}
.route-core::after { inset: -66%; animation-delay: -2.5s; }
.route-core span { font: 600 9px/1 var(--mono); letter-spacing: .18em; color: rgba(255,255,255,.72); }
.route-core strong { margin-top: 8px; font-size: clamp(26px, 2.5vw, 42px); letter-spacing: -.05em; }
.route-core i {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}
.route-endpoint {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10,11,15,.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(0,0,0,.24);
}
.route-endpoint span { display: block; color: var(--text-3); font: 500 8px/1 var(--mono); letter-spacing: .14em; }
.route-endpoint strong { display: block; margin-top: 7px; font-size: 13px; letter-spacing: .02em; }
.route-endpoint small { display: block; margin-top: 5px; color: var(--lime); font: 600 8px/1 var(--mono); letter-spacing: .1em; }
.route-endpoint i { position: absolute; right: 14px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.route-endpoint--device { left: 1%; bottom: 16%; }
.route-endpoint--location { right: 4%; top: 17%; }
.route-endpoint--internet { right: 0; bottom: 16%; }
.route-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,9,12,.72);
  backdrop-filter: blur(10px);
  font: 500 8px/1 var(--mono);
  letter-spacing: .1em;
  white-space: nowrap;
}
.route-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.route-chip--a { left: 18%; top: 20%; }
.route-chip--b { right: 13%; bottom: 28%; }

@keyframes route-core-float {
  0%,100% { transform: translate(-50%,-50%) translateY(-4px) rotate(-1deg); }
  50% { transform: translate(-50%,-50%) translateY(7px) rotate(1deg); }
}
@keyframes route-ring {
  0% { transform: scale(.78); opacity: .55; }
  75%,100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 980px) {
  .hero-title .outline { font-size: clamp(48px, 8.6vw, 82px); }
  .route-stage { min-height: 590px; }
  .route-field { inset: 0; }
  .route-endpoint--device { left: 2%; bottom: 9%; }
  .route-endpoint--internet { right: 2%; bottom: 9%; }
  .route-endpoint--location { right: 2%; top: 13%; }
  .route-chip--a { left: 4%; top: 17%; }
  .route-chip--b { right: 4%; bottom: 27%; }
}

@media (max-width: 620px) {
  .hero-title .line-mask--outline { overflow: hidden; }
  .hero-title .outline {
    font-size: clamp(42px, 13vw, 66px);
    white-space: normal;
    max-width: 8.2ch;
  }
  .route-stage { min-height: 470px; }
  .route-network { inset: 8% 0; width: 100%; height: 84%; }
  .route-core { width: 104px; }
  .route-endpoint { min-width: 112px; padding: 12px 13px; }
  .route-endpoint--device { left: 0; bottom: 3%; }
  .route-endpoint--internet { right: 0; bottom: 3%; }
  .route-endpoint--location { right: 0; top: 5%; }
  .route-chip--a { left: 0; top: 11%; }
  .route-chip--b { right: 0; bottom: 24%; }
  .payment-group { min-width: max(125vw, 1180px); }
}

/* ===== v5 refinements: compact loops, world network hero, staggered side menu ===== */

/* Header/menu inspired by the provided staggered-panel reference, adapted to the static site. */
.header-inner {
  grid-template-columns: 1fr auto;
}
.header-actions { gap: 18px; }
.menu-toggle {
  justify-self: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px 12px 12px;
  color: var(--text);
  border: 0;
  background: transparent;
  font: 600 10px/1 var(--mono);
  letter-spacing: .12em;
  cursor: pointer;
}
.menu-toggle-text { min-width: 58px; text-align: right; }
.menu-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  transition: transform .75s var(--ease);
}
.menu-toggle-icon i {
  position: absolute;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle-icon i:last-child { transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { transform: rotate(225deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: block;
  visibility: hidden;
  opacity: 1;
  pointer-events: none;
  background: transparent;
  transition: visibility 0s linear .85s;
}
.menu-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3,4,7,.62);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .55s ease;
  cursor: default;
}
.menu-overlay.is-open .menu-backdrop { opacity: 1; }
.menu-prelayers,
.menu-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: clamp(390px, 43vw, 660px);
  height: 100%;
}
.menu-prelayers { pointer-events: none; z-index: 2; }
.menu-prelayer {
  position: absolute;
  inset: 0;
  transform: translateX(105%);
  will-change: transform;
}
.menu-prelayer--a { background: #9c7dff; transition: transform .58s .02s var(--ease); }
.menu-prelayer--b { background: #4f2ed8; transition: transform .62s .09s var(--ease); }
.menu-overlay.is-open .menu-prelayer--a { transform: translateX(0); transition-delay: 0s; }
.menu-overlay.is-open .menu-prelayer--b { transform: translateX(0); transition-delay: .07s; }
.menu-panel {
  z-index: 3;
  overflow-y: auto;
  background: #f2f0eb;
  color: #0a0b0e;
  transform: translateX(105%);
  transition: transform .68s .16s var(--ease);
  box-shadow: -28px 0 80px rgba(0,0,0,.28);
}
.menu-overlay.is-open .menu-panel { transform: translateX(0); }
.menu-panel-inner {
  min-height: 100%;
  padding: calc(var(--header-h) + 34px) clamp(28px,4vw,64px) 32px;
  display: flex;
  flex-direction: column;
}
.menu-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(34px,6vh,70px);
  color: #6d6d73;
  font: 600 9px/1 var(--mono);
  letter-spacing: .13em;
}
.menu-nav { display: grid; }
.menu-nav a {
  min-height: auto;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 10px;
  padding: 7px 0;
  border: 0;
  color: #0a0b0e;
  background: transparent !important;
  opacity: 1;
  transform: none;
  overflow: hidden;
}
.menu-nav a span {
  padding-top: .55em;
  color: #6f48ff;
  font: 600 10px/1 var(--mono);
  opacity: 0;
  transition: opacity .45s ease;
}
.menu-nav a strong {
  overflow: hidden;
  display: block;
  font-size: clamp(38px,5vw,78px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 700;
}
.menu-nav a strong em {
  display: inline-block;
  font-style: normal;
  transform: translateY(120%) rotate(7deg);
  transform-origin: 0 100%;
  transition: transform .85s var(--ease), color .3s ease;
}
.menu-nav a:hover strong em { color: #6f48ff; }
.menu-overlay.is-open .menu-nav a span { opacity: 1; }
.menu-overlay.is-open .menu-nav a strong em { transform: translateY(0) rotate(0); }
.menu-overlay.is-open .menu-nav a:nth-child(1) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(1) span { transition-delay: .27s; }
.menu-overlay.is-open .menu-nav a:nth-child(2) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(2) span { transition-delay: .33s; }
.menu-overlay.is-open .menu-nav a:nth-child(3) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(3) span { transition-delay: .39s; }
.menu-overlay.is-open .menu-nav a:nth-child(4) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(4) span { transition-delay: .45s; }
.menu-overlay.is-open .menu-nav a:nth-child(5) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(5) span { transition-delay: .51s; }
.menu-overlay.is-open .menu-nav a:nth-child(6) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(6) span { transition-delay: .57s; }
.menu-overlay.is-open .menu-nav a:nth-child(7) strong em,
.menu-overlay.is-open .menu-nav a:nth-child(7) span { transition-delay: .63s; }
.menu-footer {
  margin-top: auto;
  padding-top: 42px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  color: #15161a;
  font: 500 11px/1.5 var(--mono);
}
.menu-footer div { display: flex; flex-direction: column; gap: 8px; }
.menu-footer div > span { color: #8b8b91; font-size: 9px; letter-spacing: .12em; }
.menu-footer a:hover { color: #6f48ff; }

/* Hero copy requested for v5. */
.hero-title .line-mask--outline { overflow: visible; }
.hero-title .outline {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* World network map: one visual layer only, so the page grid does not duplicate inside the artwork. */
.world-stage {
  min-height: min(68vh, 720px);
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.world-scene {
  position: relative;
  width: min(100%, 900px);
  aspect-ratio: 2 / 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform .25s ease-out;
  isolation: isolate;
}
.world-scene::before {
  content: '';
  position: absolute;
  inset: 3% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 48%, rgba(124,92,255,.20), transparent 30%),
    radial-gradient(circle at 38% 55%, rgba(198,255,74,.07), transparent 24%);
  filter: blur(34px);
  z-index: -2;
}
.world-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54%;
  aspect-ratio: 1;
  border: 1px solid rgba(156,125,255,.14);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 90px rgba(124,92,255,.10), inset 0 0 90px rgba(124,92,255,.06);
}
.world-halo::before,
.world-halo::after {
  content: '';
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.world-halo::after { inset: 31%; border-color: rgba(198,255,74,.08); }
.world-dots,
.world-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.world-dots {
  opacity: .78;
  filter: drop-shadow(0 0 5px rgba(124,92,255,.18));
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.world-routes { overflow: visible; }
.world-route {
  fill: none;
  stroke: url(#worldRouteGradient);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pathLength: 1;
  filter: url(#worldGlow);
  animation: world-route-draw 5.8s var(--route-delay,0s) ease-in-out infinite;
}
.world-packet { fill: var(--lime); filter: drop-shadow(0 0 8px var(--lime)); }
.world-node > circle:first-child { fill: var(--brand-2); filter: drop-shadow(0 0 8px rgba(156,125,255,.9)); }
.world-node--hub > circle:first-child { fill: var(--lime); filter: drop-shadow(0 0 12px var(--lime)); }
.world-node-pulse { fill: none; stroke: var(--brand-2); stroke-width: 1; opacity: .7; animation: world-node-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.world-node--hub .world-node-pulse { stroke: var(--lime); }
.world-caption {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(8,9,12,.72);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.world-caption span { color: var(--text-3); font: 600 8px/1 var(--mono); letter-spacing: .14em; }
.world-caption strong { font: 700 11px/1.2 var(--mono); letter-spacing: .08em; }
.world-caption--top { right: 8%; top: 10%; }
.world-caption--bottom { left: 8%; bottom: 9%; }
.world-axis { position: absolute; pointer-events: none; opacity: .22; }
.world-axis--x { left: 4%; right: 4%; top: 50%; border-top: 1px dashed rgba(255,255,255,.12); }
.world-axis--y { top: 5%; bottom: 5%; left: 50%; border-left: 1px dashed rgba(255,255,255,.10); }
@keyframes world-route-draw {
  0%,12% { stroke-dashoffset: 1; opacity: .12; }
  52%,78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: .12; }
}
@keyframes world-node-pulse {
  0% { transform: scale(.8); opacity: .75; }
  100% { transform: scale(3.8); opacity: 0; }
}

/* Denser infinite strips with no initial empty tail. */
.marquee-group,
.payment-group {
  justify-content: flex-start;
  min-width: auto;
  width: max-content;
}
.marquee-item {
  gap: 13px;
  padding: 20px 17px;
}
.marquee-item::after { width: 6px; height: 6px; }
.payment-group { gap: 9px; padding-inline: 4px; }
.payment-pill {
  min-width: 232px;
  height: 142px;
  margin-right: 0;
}

/* Added locations. */
.flag-ee { background: linear-gradient(#4891d9 0 33%,#111 33% 66%,#fff 66%); }
.flag-ru { background: linear-gradient(#fff 0 33%,#2458a6 33% 66%,#d52b1e 66%); }

@media (max-width: 980px) {
  .header-status { display: none; }
  .menu-prelayers,
  .menu-panel { width: min(86vw, 620px); }
  .world-stage { min-height: 560px; }
  .world-scene { width: 108%; }
}

@media (max-width: 680px) {
  .header-login { display: none; }
  .header-actions { gap: 10px; }
  .header-cta { padding: 11px 12px; }
  .menu-toggle-text { display: none; }
  .menu-prelayers,
  .menu-panel { width: 100%; }
  .menu-panel-inner { padding: calc(var(--header-h) + 26px) 22px 24px; }
  .menu-nav a { grid-template-columns: 38px 1fr; padding: 5px 0; }
  .menu-nav a strong { font-size: clamp(34px,12vw,58px); }
  .menu-footer { grid-template-columns: 1fr 1fr; }
  .menu-footer div:last-child { display: none; }
  .hero-title .outline { white-space: nowrap; max-width: none; font-size: inherit; }
  .world-stage { min-height: 420px; margin-top: 28px; }
  .world-scene { width: 118%; }
  .world-caption { padding: 9px 10px; }
  .world-caption--top { right: 5%; top: 6%; }
  .world-caption--bottom { left: 5%; bottom: 5%; }
  .payment-pill { min-width: 188px; height: 122px; padding: 20px; }
  .marquee-item { padding: 17px 13px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .world-route { stroke-dashoffset: 0; animation: none; }
  .world-node-pulse { display: none; }
  .world-scene { transform: none !important; }
}


/* ===== v6 refinements: fitted hero type, centered menu trigger, larger clean world map ===== */

/* Restore the original centered header trigger while keeping the staggered side-panel menu. */
.header-inner {
  position: relative;
  grid-template-columns: 1fr auto 1fr;
}
.header-inner > .menu-toggle {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  color: var(--text);
  border: 0;
  background: transparent;
  font: 600 11px/1 var(--mono);
  letter-spacing: .15em;
  cursor: pointer;
  white-space: nowrap;
}
.header-inner > .menu-toggle .bracket {
  color: var(--brand-2);
  transition: transform .5s var(--ease), color .35s ease;
}
.header-inner > .menu-toggle:hover .bracket:first-child { transform: translateX(-5px); }
.header-inner > .menu-toggle:hover .bracket:last-child { transform: translateX(5px); }
.header-inner > .menu-toggle[aria-expanded="true"] .bracket { color: var(--lime); }
.header-actions { grid-column: 3; justify-self: end; }

/* Fit the long Russian hero words inside the left column without clipping. */
.hero-title {
  max-width: none;
  font-size: clamp(56px, 6.15vw, 118px);
  line-height: .84;
  letter-spacing: -.074em;
}
.hero-title .line-mask:not(.line-mask--outline) > span {
  white-space: nowrap;
}
.hero-title .line-mask--outline .outline {
  font-size: .78em;
}

/* Remove the decorative orbit circles and let the actual network map occupy more of the stage. */
.world-halo,
.world-halo::before,
.world-halo::after { display: none !important; }
.world-stage {
  min-height: min(72vh, 790px);
}
.world-scene {
  width: min(116%, 1080px);
}
.world-scene::before {
  inset: 8% 2%;
  background:
    radial-gradient(ellipse at 58% 46%, rgba(124,92,255,.16), transparent 34%),
    radial-gradient(ellipse at 42% 56%, rgba(198,255,74,.045), transparent 28%);
  filter: blur(42px);
}
.world-dots {
  opacity: .9;
  transform: scale(1.08);
  transform-origin: center;
}
.world-routes {
  transform: scale(1.08);
  transform-origin: center;
}

@media (max-width: 1100px) {
  .hero-title { font-size: clamp(64px, 10.8vw, 116px); }
  .world-stage { min-height: 650px; }
  .world-scene { width: min(112%, 1050px); }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .header-inner > .menu-toggle { grid-column: 2; justify-self: center; padding: 12px 10px; }
  .header-inner > .menu-toggle [data-menu-label] { display: inline; }
  .header-actions { display: none; }
  .hero-title {
    font-size: clamp(46px, 12.2vw, 84px);
    line-height: .86;
    letter-spacing: -.066em;
  }
  .hero-title .line-mask--outline .outline { font-size: .82em; }
  .world-stage { min-height: 470px; }
  .world-scene { width: 124%; }
  .world-dots, .world-routes { transform: scale(1.12); }
}

@media (max-width: 430px) {
  .header-inner > .menu-toggle { font-size: 9px; letter-spacing: .11em; gap: 6px; }
  .hero-title { font-size: clamp(43px, 12vw, 58px); }
  .world-stage { min-height: 410px; }
}

/* ===== v7 refinements: no platform ticker, labeled world map, continuous feature flow ===== */

/* Hero message requested for v7. */
.hero-title {
  font-size: clamp(50px, 5.55vw, 106px);
  line-height: .86;
  letter-spacing: -.068em;
}
.hero-title .line-mask:not(.line-mask--outline) > span,
.hero-title .line-mask--outline .outline {
  white-space: nowrap;
}

/* Remove the now-unused platform ticker from layout entirely. */
.marquee { display: none !important; }

/* Let the feature section begin as a continuation of the hero instead of a detached empty chapter. */
.chapters {
  padding-top: clamp(72px, 7vw, 110px);
}
.chapters > .container {
  margin-bottom: clamp(20px, 3vw, 42px);
}
.chapter:first-of-type {
  margin-top: 0;
  min-height: auto;
  padding: clamp(72px, 8vw, 130px) 0 clamp(110px, 11vw, 180px);
}

/* Larger clean world map with explicit location labels. */
.world-stage {
  min-height: min(74vh, 820px);
}
.world-scene {
  width: min(126%, 1140px);
}
.world-scene::before {
  inset: 0;
  background:
    radial-gradient(circle at 58% 48%, rgba(124,92,255,.16), transparent 34%),
    radial-gradient(circle at 43% 54%, rgba(198,255,74,.045), transparent 28%);
}
.world-label {
  pointer-events: none;
}
.world-label line {
  stroke: rgba(244,242,238,.22);
  stroke-width: .7;
  stroke-dasharray: 2 3;
}
.world-label text {
  fill: rgba(244,242,238,.9);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
  paint-order: stroke;
  stroke: rgba(8,9,12,.92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

@media (max-width: 1180px) {
  .hero-title { font-size: clamp(48px, 6.7vw, 88px); }
  .world-scene { width: 136%; }
}

@media (max-width: 980px) {
  .world-stage { min-height: 610px; }
  .world-scene { width: 118%; }
  .chapter:first-of-type { padding-top: 56px; }
}

@media (max-width: 680px) {
  .hero-title { font-size: clamp(43px, 13vw, 72px); line-height: .9; }
  .hero-title .line-mask:not(.line-mask--outline) > span,
  .hero-title .line-mask--outline .outline { white-space: normal; }
  .world-stage { min-height: 440px; }
  .world-scene { width: 132%; }
  .world-label text { font-size: 7px; }
  .chapters { padding-top: 64px; }
  .chapter:first-of-type { padding: 48px 0 100px; }
}


/* ===== v8 refinements: four-line hero, equal CTA buttons, tighter features intro ===== */
.hero-title {
  font-size: clamp(50px, 6.15vw, 116px);
  line-height: .84;
  letter-spacing: -.07em;
}
.hero-title .line-mask:not(.line-mask--outline) > span,
.hero-title .line-mask--outline .outline {
  white-space: nowrap;
}
.hero-title .line-mask--outline .outline {
  font-size: .86em;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 390px);
  justify-self: end;
}
.hero-actions .button {
  width: 100%;
  min-width: 0;
  padding-inline: 18px;
  white-space: nowrap;
}

.chapters {
  border-top: 0;
  padding-top: clamp(46px, 4.5vw, 72px);
}
.chapters > .container {
  margin-bottom: 0;
}
.chapter:first-of-type {
  border-top: 0;
  padding-top: clamp(20px, 2vw, 34px);
}

@media (max-width: 1180px) {
  .hero-title { font-size: clamp(48px, 7.25vw, 90px); }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(44px, 12.4vw, 76px);
    line-height: .87;
  }
  .hero-title .line-mask:not(.line-mask--outline) > span,
  .hero-title .line-mask--outline .outline {
    white-space: nowrap;
  }
  .hero-actions {
    width: 100%;
    max-width: 390px;
    justify-self: start;
  }
  .hero-actions .button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 13px;
  }
  .chapters { padding-top: 42px; }
  .chapter:first-of-type { padding-top: 18px; }
}

@media (max-width: 430px) {
  .hero-title { font-size: clamp(39px, 11.7vw, 52px); }
  .hero-actions { gap: 8px; }
  .hero-actions .button {
    min-height: 54px;
    padding-inline: 10px;
    font-size: 12px;
  }
}

/* =========================================================
   v63 — digit-only rolling price and device counters
   ========================================================= */
[data-plan-total],
[data-plan-monthly],
[data-device-count] {
  font-variant-numeric: tabular-nums;
}

.animated-counter {
  display: inline-grid !important;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;
}

.subscription-plan__price .animated-counter {
  justify-items: end;
}

.subscription-plan__price .counter-frame {
  justify-content: flex-end;
}

.subscription-stepper .animated-counter {
  justify-items: center;
}

.subscription-stepper .counter-frame {
  justify-content: center;
}

.counter-frame {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: inherit;
  white-space: pre;
  will-change: transform, opacity;
}

.counter-char {
  display: inline-block;
}

.counter-char--digit {
  min-width: 0.58em;
  text-align: center;
  will-change: transform, opacity, filter;
}

.counter-frame--old.counter-frame--up .counter-char--digit {
  animation: counter-digit-out-up 900ms cubic-bezier(.16, 1, .3, 1) var(--counter-delay, 0ms) both;
}

.counter-frame--new.counter-frame--up .counter-char--digit {
  animation: counter-digit-in-up 900ms cubic-bezier(.16, 1, .3, 1) var(--counter-delay, 0ms) both;
}

.counter-frame--old.counter-frame--down .counter-char--digit {
  animation: counter-digit-out-down 900ms cubic-bezier(.16, 1, .3, 1) var(--counter-delay, 0ms) both;
}

.counter-frame--new.counter-frame--down .counter-char--digit {
  animation: counter-digit-in-down 900ms cubic-bezier(.16, 1, .3, 1) var(--counter-delay, 0ms) both;
}

.counter-frame--old .counter-char--static {
  opacity: 0;
}

.counter-frame--new .counter-char--static {
  opacity: 1;
}

@keyframes counter-digit-out-up {
  from { transform: translateY(0); opacity: 1; filter: blur(0); }
  to { transform: translateY(-105%); opacity: 0; filter: blur(1px); }
}

@keyframes counter-digit-in-up {
  from { transform: translateY(105%); opacity: 0; filter: blur(1px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}

@keyframes counter-digit-out-down {
  from { transform: translateY(0); opacity: 1; filter: blur(0); }
  to { transform: translateY(105%); opacity: 0; filter: blur(1px); }
}

@keyframes counter-digit-in-down {
  from { transform: translateY(-105%); opacity: 0; filter: blur(1px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .counter-char {
    animation: none !important;
  }
}

/* =========================================================
   v60 — homepage alignment, unified uppercase page heroes.
   ========================================================= */
.inner-hero h1,
.article-hero h1 {
  text-transform: uppercase;
}

@media (min-width: 1181px) {
  body[data-page="home"] .chapter--locations .chapter-visual {
    justify-items: end;
  }
}

/* ===== v9 refinements: safe Cyrillic hero metrics and final copy ===== */
.hero-title {
  /* One consistent type size for all four lines. */
  font-size: clamp(48px, 5.75vw, 106px);
  line-height: .88;
  letter-spacing: -.066em;
}

/* The reveal mask used to crop the top diacritic of Й. Keep the animation,
   but give every line enough optical space above and below the glyphs. */
.hero-title .line-mask {
  overflow: hidden;
  padding-top: .16em;
  padding-bottom: .08em;
  margin-top: -.16em;
}

.hero-title .line-mask:not(.line-mask--outline) > span,
.hero-title .line-mask--outline .outline {
  font-size: 1em;
  line-height: inherit;
  white-space: nowrap;
}

/* The fourth line is no longer an outline treatment. */
.hero-title .line-mask--outline {
  overflow: hidden;
}
.hero-title .line-mask--outline .outline {
  color: var(--text);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

@media (max-width: 1180px) {
  .hero-title { font-size: clamp(46px, 6.8vw, 88px); }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(42px, 11.6vw, 70px);
    line-height: .9;
    letter-spacing: -.058em;
  }
}

@media (max-width: 430px) {
  .hero-title { font-size: clamp(38px, 10.9vw, 49px); }
}

/* ===== v10 refinements: map label spacing, feature divider, multi-device visual ===== */

/* Keep the familiar divider above the capabilities section, but no line below its heading. */
.chapters {
  border-top: 1px solid var(--line-soft);
}
.chapters > .container {
  padding-top: clamp(34px, 3.5vw, 58px);
}
.chapter:first-of-type {
  border-top: 0 !important;
}

/* New visual for “Одна подписка для всех устройств”. */
.device-ecosystem {
  position: relative;
  width: min(100%, 760px);
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(124,92,255,.15), transparent 25%),
    linear-gradient(145deg, rgba(20,22,30,.94), rgba(10,11,15,.98));
}
.device-ecosystem::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0 48%, transparent 80%);
  opacity: .42;
  pointer-events: none;
}
.device-ecosystem-glow {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.24), rgba(124,92,255,.05) 42%, transparent 70%);
  filter: blur(8px);
  animation: ecosystem-breathe 5.5s ease-in-out infinite;
}
.device-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.device-links path {
  fill: none;
  stroke: rgba(156,125,255,.36);
  stroke-width: 1.25;
  stroke-dasharray: 5 8;
  filter: drop-shadow(0 0 5px rgba(124,92,255,.45));
}
.device-packet {
  fill: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime));
}
.subscription-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 176px;
  aspect-ratio: 1;
  border-radius: 42px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  background:
    linear-gradient(145deg, rgba(156,125,255,.96), rgba(95,62,226,.94));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 28px 70px rgba(67,43,170,.42),
    inset 0 1px 0 rgba(255,255,255,.28);
  z-index: 4;
}
.subscription-core::after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(156,125,255,.22);
  border-radius: 54px;
  animation: ecosystem-ring 3.8s ease-out infinite;
}
.subscription-core span {
  color: rgba(255,255,255,.72);
  font: 700 9px/1 var(--mono);
  letter-spacing: .16em;
}
.subscription-core strong {
  font-size: 68px;
  line-height: .85;
  letter-spacing: -.08em;
}
.subscription-core small {
  color: rgba(255,255,255,.82);
  font: 600 13px/1 var(--sans);
}
.subscription-core i {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--lime);
  font: 700 8px/1 var(--mono);
  letter-spacing: .12em;
  font-style: normal;
}
.subscription-core i::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.ecosystem-device-card {
  position: absolute;
  width: 190px;
  min-height: 122px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(13,15,21,.82);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.ecosystem-device-card:hover {
  transform: translateY(-5px);
  border-color: rgba(156,125,255,.42);
  background: rgba(18,20,29,.93);
}
.ecosystem-device-card span {
  display: block;
  margin-top: 14px;
  color: var(--text-3);
  font: 700 8px/1 var(--mono);
  letter-spacing: .14em;
}
.ecosystem-device-card strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.2;
}
.ecosystem-device-card--phone { left: 6%; top: 8%; }
.ecosystem-device-card--desktop { right: 6%; top: 8%; }
.ecosystem-device-card--tv { left: 6%; bottom: 8%; }
.ecosystem-device-card--router { right: 6%; bottom: 8%; }

.device-icon {
  position: relative;
  width: 34px;
  height: 28px;
  color: var(--text);
  opacity: .92;
}
.device-icon--phone {
  width: 17px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 5px;
}
.device-icon--phone::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}
.device-icon--desktop {
  width: 38px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.device-icon--desktop::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  background: currentColor;
}
.device-icon--desktop::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 7px;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  background: currentColor;
}
.device-icon--tv {
  width: 38px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.device-icon--tv::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  background: currentColor;
}
.device-icon--router {
  width: 40px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 7px;
  margin-top: 8px;
}
.device-icon--router::before,
.device-icon--router::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 18px;
  top: -17px;
  background: currentColor;
  transform-origin: bottom;
}
.device-icon--router::before { left: 7px; transform: rotate(-10deg); }
.device-icon--router::after { right: 7px; transform: rotate(10deg); }

@keyframes ecosystem-breathe {
  0%,100% { transform: translate(-50%, -50%) scale(.94); opacity: .62; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@keyframes ecosystem-ring {
  0% { transform: scale(.92); opacity: .58; }
  75%,100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 980px) {
  .device-ecosystem { min-height: 600px; }
  .ecosystem-device-card { width: 175px; }
}
@media (max-width: 620px) {
  .device-ecosystem { min-height: 520px; }
  .subscription-core { width: 132px; border-radius: 32px; }
  .subscription-core strong { font-size: 50px; }
  .ecosystem-device-card { width: 145px; min-height: 104px; padding: 14px; border-radius: 18px; }
  .ecosystem-device-card strong { font-size: 12px; }
  .ecosystem-device-card--phone, .ecosystem-device-card--tv { left: 3%; }
  .ecosystem-device-card--desktop, .ecosystem-device-card--router { right: 3%; }
}


/* ===== v11 refinements: restored device panorama + animated expandable locations ===== */

/* Interactive 03 / LOCATIONS list. The visual language stays ScanVPN; only the motion
   model borrows spring expansion and subtle perspective tilt from the supplied reference. */
.location-selector-card {
  width: min(100%, 760px);
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18,20,28,.96), rgba(9,10,14,.99));
}
.location-stack--expandable {
  inset: 7%;
  justify-content: center;
  gap: 9px;
}
.location-stack--expandable .location-row {
  --shift: 0 !important;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 0fr;
  gap: 0;
  align-items: stretch;
  font: inherit;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition:
    grid-template-rows .62s cubic-bezier(.22,1,.36,1),
    min-height .62s cubic-bezier(.22,1,.36,1),
    border-color .32s ease,
    background .32s ease,
    box-shadow .45s ease,
    transform .16s ease-out;
}
.location-stack--expandable .location-row:hover {
  border-color: rgba(156,125,255,.38);
  background: rgba(15,17,24,.92);
}
.location-stack--expandable .location-row.is-expanded {
  min-height: 112px;
  grid-template-rows: auto 1fr;
  border-color: rgba(156,125,255,.55);
  background:
    radial-gradient(circle at 88% 30%, rgba(124,92,255,.14), transparent 34%),
    rgba(15,17,24,.96);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.location-summary {
  min-height: 56px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 13px;
}
.location-summary > i,
.location-detail em i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}
.location-summary b { font-size: 15px; }
.location-detail {
  min-height: 0;
  overflow: hidden;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity .28s ease,
    transform .55s cubic-bezier(.22,1,.36,1),
    padding .55s cubic-bezier(.22,1,.36,1);
}
.location-row.is-expanded .location-detail {
  padding: 7px 16px 18px;
  opacity: 1;
  transform: translateY(0);
}
.location-detail > span { display: grid; gap: 6px; }
.location-detail strong {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.025em;
}
.location-detail small {
  color: var(--text-3);
  font: 600 9px/1.2 var(--mono);
  letter-spacing: .055em;
}
.location-detail em {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font: 700 11px/1 var(--mono);
  font-style: normal;
  white-space: nowrap;
}
.location-detail em i { width: 7px; height: 7px; }

/* The ecosystem visual has its own card class so the original section 04 cards retain
   their intended 12-column layout and dimensions. */
.ecosystem-device-card {
  position: absolute;
}

@media (max-width: 620px) {
  .location-stack--expandable { inset: 5%; gap: 7px; }
  .location-stack--expandable .location-row { min-height: 52px; }
  .location-stack--expandable .location-row.is-expanded { min-height: 105px; }
  .location-summary { min-height: 50px; padding-inline: 12px; }
  .location-detail { padding-inline: 12px; }
  .location-row.is-expanded .location-detail { padding: 5px 12px 14px; }
  .location-detail strong { font-size: 16px; }
  .location-detail small { font-size: 7px; }
}

/* =========================================================
   ISOLATED SECTION 04 / DEVICES
   Fully namespaced to prevent collisions with other visuals.
   ========================================================= */
.platform-showcase {
  content-visibility: visible;
  contain: none;
  overflow: hidden;
}
.platform-showcase__inner { width: var(--container); margin-inline: auto; }
.platform-showcase__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: end;
}
.platform-showcase__head > * { min-width: 0; }
.platform-showcase__head p {
  max-width: 430px;
  margin: 0 0 10px auto;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
}
.platform-showcase__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 18px;
  margin-top: 80px;
}
.platform-showcase__grid > * { min-width: 0; width: auto; }
.platform-card {
  position: relative;
  min-width: 0;
  min-height: 540px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.platform-card--mobile { grid-column: 1 / span 5; }
.platform-card--desktop { grid-column: 6 / span 7; }
.platform-card--router { grid-column: 1 / -1; min-height: 400px; }
.platform-card__label {
  color: var(--brand-2);
  font: 600 10px/1 var(--mono);
  letter-spacing: .1em;
}
.platform-card h3 {
  margin: 22px 0 12px;
  font-size: clamp(30px, 3vw, 50px);
  line-height: 1;
  letter-spacing: -.055em;
}
.platform-card p {
  max-width: 500px;
  color: var(--text-2);
  line-height: 1.6;
}
.platform-phone {
  position: absolute;
  width: 270px;
  aspect-ratio: .49;
  left: 50%;
  bottom: -25%;
  transform: translateX(-50%) rotate(-7deg);
  border: 2px solid #343744;
  border-radius: 45px;
  background: #0b0c11;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  overflow: hidden;
}
.platform-phone::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 80px;
  height: 22px;
  border-radius: 20px;
  background: #050608;
  transform: translateX(-50%);
  z-index: 3;
}
.platform-phone__screen {
  position: absolute;
  inset: 8px;
  border-radius: 37px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, rgba(124,92,255,.35), transparent 36%), linear-gradient(#141725, #090a0e);
}
.platform-phone__screen::after {
  content: 'ON';
  position: absolute;
  left: 50%;
  top: 53%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 22px rgba(124,92,255,.08), 0 0 0 44px rgba(124,92,255,.04);
  font-weight: 800;
}
.platform-desktop {
  position: absolute;
  left: 8%;
  right: -8%;
  bottom: -4%;
  height: 58%;
  border: 1px solid #363947;
  border-radius: 18px 18px 0 0;
  background: #090a0e;
  box-shadow: 0 25px 80px rgba(0,0,0,.5);
}
.platform-desktop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38px;
  border-bottom: 1px solid var(--line);
  background: #11131a;
}
.platform-desktop__bars {
  position: absolute;
  left: 10%;
  right: 8%;
  bottom: 11%;
  height: 46%;
  display: flex;
  align-items: end;
  gap: 14px;
}
.platform-desktop__bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(var(--brand-2), var(--brand));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: bars 3s var(--ease) infinite alternate;
}
.platform-desktop__bars i:nth-child(6) { background: linear-gradient(var(--lime), #79b900); }
.platform-router {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: 8%;
  padding: 8%;
}
.platform-router__device {
  position: relative;
  width: min(100%, 440px);
  height: 150px;
  border: 1px solid #353844;
  border-radius: 26px;
  background: linear-gradient(#1a1d27, #10121a);
  box-shadow: 0 35px 80px rgba(0,0,0,.45);
}
.platform-router__device::before,
.platform-router__device::after {
  content: '';
  position: absolute;
  bottom: 100%;
  width: 4px;
  height: 150px;
  background: #333642;
  border-radius: 5px;
  transform-origin: bottom;
}
.platform-router__device::before { left: 16%; transform: rotate(-8deg); }
.platform-router__device::after { right: 16%; transform: rotate(8deg); }
.platform-router__lights {
  position: absolute;
  left: 32px;
  bottom: 30px;
  display: flex;
  gap: 10px;
}
.platform-router__lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.platform-router__lights i:first-child { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.platform-router__copy { max-width: 500px; }

@media (max-width: 1100px) {
  .platform-showcase__head { grid-template-columns: 1fr; gap: 38px; }
  .platform-showcase__head p { margin-left: 0; }
  .platform-card--mobile { grid-column: 1 / span 6; }
  .platform-card--desktop { grid-column: 7 / span 6; }
}
@media (max-width: 760px) {
  .platform-showcase__head p { font-size: 16px; }
  .platform-showcase__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 55px; }
  .platform-card--mobile,
  .platform-card--desktop,
  .platform-card--router { grid-column: 1; min-height: 490px; }
  .platform-card--router { min-height: 530px; }
  .platform-router { grid-template-columns: 1fr; gap: 50px; padding: 22% 8% 8%; }
  .platform-router__device { height: 115px; }
  .platform-router__device::before,
  .platform-router__device::after { height: 105px; }
}


/* v13 — location selector data/status refinements */
.flag-emoji {
  width: 22px;
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}
.location-summary > i {
  transition: opacity .22s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.location-row.is-expanded .location-summary > i {
  opacity: 0;
  transform: scale(.35);
}


/* =========================================================
   v14 — SECTION 06 / SUBSCRIPTION CARD
   Isolated, interactive period selector inspired by the motion
   principles from the supplied pricing-card reference.
   ========================================================= */
.subscription-card {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 3.4vw, 48px);
  border: 1px solid rgba(124,92,255,.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(124,92,255,.16), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 44px 120px rgba(0,0,0,.38);
  overflow: hidden;
}
.subscription-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -160px;
  border-radius: 50%;
  background: var(--brand);
  filter: blur(120px);
  opacity: .18;
  pointer-events: none;
}
.subscription-card__header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.subscription-card__header h3 {
  margin: 24px 0 10px;
  font-size: clamp(34px, 3.7vw, 58px);
  line-height: .95;
  letter-spacing: -.055em;
}
.subscription-card__header p {
  max-width: 560px;
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
}
.subscription-refund {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  white-space: nowrap;
}
.subscription-refund span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--brand-2);
  font-size: 18px;
  animation: subscription-refund-spin 8s linear infinite;
}
.subscription-refund strong { font-size: 12px; font-weight: 650; }
.subscription-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.subscription-option {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  background: rgba(5,6,9,.34);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color .34s var(--ease),
    background .34s var(--ease),
    transform .34s var(--ease),
    box-shadow .34s var(--ease);
}
.subscription-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.025);
}
.subscription-option.is-active {
  border-color: var(--brand);
  background: rgba(124,92,255,.075);
  box-shadow: inset 0 0 0 1px rgba(124,92,255,.14), 0 18px 55px rgba(0,0,0,.16);
}
.subscription-option__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 18px 20px;
}
.subscription-option__identity {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.subscription-option__identity > span,
.subscription-option__price {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.subscription-option__identity strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.025em;
}
.subscription-option__identity small,
.subscription-option__price small {
  color: var(--text-3);
  font-size: 12px;
}
.subscription-radio {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.19);
  border-radius: 50%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.subscription-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand);
  transform: scale(0);
  opacity: 0;
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .24s ease;
}
.subscription-option.is-active .subscription-radio {
  border-color: var(--brand);
  box-shadow: 0 0 0 5px rgba(124,92,255,.08);
}
.subscription-option.is-active .subscription-radio::after { transform: scale(1); opacity: 1; }
.subscription-option__price {
  position: relative;
  align-items: flex-end;
  text-align: right;
  min-width: 145px;
}
.subscription-option__price strong {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.035em;
}
.subscription-option__price em {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  padding: 4px 7px;
  border: 1px solid rgba(198,255,74,.28);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(198,255,74,.055);
  font: 700 8px/1 var(--mono);
  font-style: normal;
  letter-spacing: .07em;
}
.subscription-option__details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .52s cubic-bezier(.32,.72,0,1),
    opacity .3s ease;
}
.subscription-option.is-active .subscription-option__details {
  grid-template-rows: 1fr;
  opacity: 1;
}
.subscription-option__details-inner { min-height: 0; overflow: hidden; }
.subscription-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px 22px;
  margin: 0 20px;
  padding: 20px 0 22px 37px;
  border-top: 1px solid var(--line-soft);
}
.subscription-features span {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
  transform: translateY(7px);
  opacity: 0;
  transition: transform .36s var(--ease), opacity .36s ease;
}
.subscription-option.is-active .subscription-features span { transform: translateY(0); opacity: 1; }
.subscription-option.is-active .subscription-features span:nth-child(2) { transition-delay: .025s; }
.subscription-option.is-active .subscription-features span:nth-child(3) { transition-delay: .05s; }
.subscription-option.is-active .subscription-features span:nth-child(4) { transition-delay: .075s; }
.subscription-option.is-active .subscription-features span:nth-child(5) { transition-delay: .1s; }
.subscription-option.is-active .subscription-features span:nth-child(6) { transition-delay: .125s; }
.subscription-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: end;
  margin-top: 24px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.subscription-summary > div { min-width: 0; }
.subscription-summary span {
  display: block;
  color: var(--text-3);
  font: 600 9px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.subscription-summary > div > strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}
.subscription-summary small {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 11px;
}
.subscription-summary__price { text-align: right; }
.subscription-summary__price strong {
  font-size: clamp(44px,4.6vw,72px) !important;
  line-height: .88;
  letter-spacing: -.065em;
  transform-origin: right center;
}
.subscription-summary__price.is-updating strong,
.subscription-summary__price.is-updating small {
  animation: subscription-price-pop .34s cubic-bezier(.22,1,.36,1);
}
.subscription-cta { width: 100%; margin-top: 26px; }

@keyframes subscription-price-pop {
  0% { opacity: .28; transform: translateY(7px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes subscription-refund-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .subscription-card { padding: 22px 16px; border-radius: 22px; }
  .subscription-card__header { grid-template-columns: 1fr; gap: 18px; }
  .subscription-refund { width: max-content; }
  .subscription-option__head { min-height: 84px; padding: 16px 14px; gap: 12px; }
  .subscription-option__identity { gap: 11px; }
  .subscription-option__identity strong { font-size: 18px; }
  .subscription-option__price { min-width: 108px; }
  .subscription-option__price strong { font-size: 19px; }
  .subscription-option__price small { font-size: 10px; }
  .subscription-features { grid-template-columns: 1fr; margin: 0 14px; padding: 17px 0 19px 33px; gap: 10px; }
  .subscription-summary { grid-template-columns: 1fr; gap: 20px; }
  .subscription-summary__price { text-align: left; }
  .subscription-summary__price strong { transform-origin: left center; }
}

/* =========================================================
   v15 — COMPACT SECTION 06 / SUBSCRIPTION PICKER
   Three periods; selected plan expands; shared 3–7 device stepper.
   ========================================================= */
.subscription-picker {
  width: min(100%, 590px);
  justify-self: end;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: radial-gradient(circle at 100% 0%, rgba(124,92,255,.12), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
}
.subscription-picker__header { margin-bottom: 18px; }
.subscription-picker__header h3 { margin: 14px 0 7px; font-size: clamp(28px,2.8vw,40px); line-height: 1; letter-spacing: -.045em; }
.subscription-picker__header p { margin: 0; color: var(--text-2); font-size: 13px; }
.subscription-picker__plans { display: grid; gap: 10px; }
.subscription-plan { position: relative; border: 1px solid rgba(255,255,255,.115); border-radius: 16px; background: rgba(7,8,11,.42); overflow: hidden; cursor: pointer; outline: none; transition: border-color .34s var(--ease), background .34s var(--ease), transform .34s var(--ease), box-shadow .34s var(--ease); }
.subscription-plan:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.2); }
.subscription-plan:focus-visible { box-shadow: 0 0 0 3px rgba(124,92,255,.24); }
.subscription-plan.is-active { border-color: rgba(160,124,255,.9); background: rgba(124,92,255,.07); box-shadow: inset 0 0 0 1px rgba(124,92,255,.12), 0 16px 42px rgba(0,0,0,.18); }
.subscription-plan__summary { min-height: 76px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.subscription-plan__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.subscription-plan__identity > span, .subscription-plan__price { display: flex; flex-direction: column; gap: 4px; }
.subscription-plan__identity strong { font-size: 17px; line-height: 1; letter-spacing: -.02em; }
.subscription-plan__identity small, .subscription-plan__price small { color: var(--text-3); font-size: 10px; }
.subscription-plan__radio { position: relative; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.subscription-plan__radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand); transform: scale(0); opacity: 0; transition: transform .36s cubic-bezier(.22,1,.36,1), opacity .22s ease; }
.subscription-plan.is-active .subscription-plan__radio { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,.08); }
.subscription-plan.is-active .subscription-plan__radio::after { transform: scale(1); opacity: 1; }
.subscription-plan__price { position: relative; align-items: flex-end; text-align: right; min-width: 132px; }
.subscription-plan__price strong { font-size: 20px; line-height: 1; letter-spacing: -.03em; }
.subscription-plan__price em { position: absolute; right: 0; bottom: calc(100% + 3px); color: var(--lime); font: 700 8px/1 var(--mono); font-style: normal; letter-spacing: .06em; }
.subscription-plan__details { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .48s cubic-bezier(.32,.72,0,1), opacity .24s ease; }
.subscription-plan.is-active .subscription-plan__details { grid-template-rows: 1fr; opacity: 1; }
.subscription-plan__details-inner { min-height: 0; overflow: hidden; }
.subscription-plan__features { display: grid; gap: 9px; margin: 0 16px; padding: 15px 0 16px 32px; border-top: 1px solid var(--line-soft); }
.subscription-plan__features span { color: var(--text-2); font-size: 12px; line-height: 1.35; opacity: 0; transform: translateY(5px); transition: opacity .28s ease, transform .32s var(--ease); }
.subscription-plan.is-active .subscription-plan__features span { opacity: 1; transform: translateY(0); }
.subscription-plan.is-active .subscription-plan__features span:nth-child(2) { transition-delay: .025s; }
.subscription-plan.is-active .subscription-plan__features span:nth-child(3) { transition-delay: .05s; }
.subscription-plan.is-active .subscription-plan__features span:nth-child(4) { transition-delay: .075s; }
.subscription-plan.is-active .subscription-plan__features span:nth-child(5) { transition-delay: .1s; }
.subscription-device-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 16px; padding: 15px 0 16px; border-top: 1px solid var(--line-soft); }
.subscription-device-control__label { display: flex; align-items: center; min-width: 0; }
.subscription-device-control__label > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.subscription-device-control__label strong { font-size: 14px; }
.subscription-device-control__label small { color: var(--text-3); font-size: 10px; }
.subscription-device-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: var(--brand-2); background: rgba(255,255,255,.035); font-size: 16px; }
.subscription-stepper { display: grid; grid-template-columns: 34px 32px 34px; align-items: center; min-height: 38px; padding: 3px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.035); }
.subscription-stepper button { width: 34px; height: 30px; border: 0; border-radius: 9px; color: var(--text-2); background: transparent; font-size: 18px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .18s ease, opacity .2s ease; }
.subscription-stepper button:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,.07); }
.subscription-stepper button:active:not(:disabled) { transform: scale(.92); }
.subscription-stepper button:disabled { opacity: .25; cursor: not-allowed; }
.subscription-stepper strong { text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.subscription-picker__cta { width: 100%; margin-top: 16px; min-height: 52px; }
.subscription-picker__note { margin: 9px 0 0; color: var(--text-3); text-align: center; font-size: 10px; }
@media (max-width: 980px) { .subscription-picker { justify-self: stretch; width: min(100%, 650px); } }
@media (max-width: 620px) {
  .subscription-picker { padding: 17px; border-radius: 20px; }
  .subscription-picker__header h3 { font-size: 30px; }
  .subscription-plan__summary { min-height: 72px; padding: 13px 12px; gap: 10px; }
  .subscription-plan__identity { gap: 9px; }
  .subscription-plan__identity strong { font-size: 16px; }
  .subscription-plan__price { min-width: 105px; }
  .subscription-plan__price strong { font-size: 18px; }
  .subscription-plan__features { margin: 0 12px; padding: 14px 0 15px 29px; }
  .subscription-device-control { margin: 0 12px; gap: 10px; }
  .subscription-device-icon { width: 34px; height: 34px; }
  .subscription-stepper { grid-template-columns: 30px 28px 30px; }
  .subscription-stepper button { width: 30px; }
}


/* v17: restored original payment-rail geometry + subtle edge fade */
@media (max-width: 720px) {
  .payment-river::before, .payment-river::after { width: 22px; }
  .subscription-device-control__label strong { font-size: 13px; }
}

/* v18: swap the complete Devices and One Access sections without sharing layout state. */
.platform-showcase--swapped {
  padding: 0 0 clamp(100px, 10vw, 170px);
  overflow: hidden;
}
.platform-showcase--swapped .platform-showcase__grid {
  margin-top: clamp(54px, 6vw, 80px);
}
.one-access-showcase {
  padding: 0;
}
.one-access-showcase > .chapter {
  margin-top: 0;
  min-height: 110vh;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 900px) {
  .platform-showcase--swapped {
    padding-bottom: 90px;
  }
  .one-access-showcase > .chapter {
    min-height: auto;
    padding: 90px 0;
  }
}


/* Devices v20: Apple TV and Android TV */
.device-art .tv-mock {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.tv-mock__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #393d4b;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 58%, rgba(124,92,255,.34), transparent 31%),
    linear-gradient(145deg, #11131b, #08090d 72%);
  box-shadow: 0 36px 90px rgba(0,0,0,.5), inset 0 0 50px rgba(124,92,255,.06);
  transform: rotateX(2deg) rotateY(-3deg);
}
.tv-mock--android .tv-mock__screen {
  background:
    radial-gradient(circle at 50% 58%, rgba(198,255,74,.18), transparent 30%),
    linear-gradient(145deg, #11151a, #08090d 72%);
}
.tv-mock__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .45;
  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: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.tv-mock__screen > * { position: relative; z-index: 1; }
.tv-mock__eyebrow {
  color: var(--brand-2);
  font: 600 10px/1 var(--mono);
  letter-spacing: .18em;
  text-align: center;
}
.tv-mock--android .tv-mock__eyebrow { color: var(--lime); }
.tv-mock__screen strong {
  font-size: clamp(38px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.06em;
}
.tv-mock__signal { display: flex; justify-content: center; align-items: end; gap: 7px; height: 38px; margin-top: 10px; }
.tv-mock__signal i { width: 7px; border-radius: 5px; background: linear-gradient(to top, var(--brand), #c4a8ff); animation: tv-signal 1.8s ease-in-out infinite alternate; }
.tv-mock__signal i:nth-child(1) { height: 35%; animation-delay: -.4s; }
.tv-mock__signal i:nth-child(2) { height: 72%; animation-delay: -.8s; }
.tv-mock__signal i:nth-child(3) { height: 100%; background: linear-gradient(to top, #84d600, var(--lime)); }
.tv-mock__stand {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34%;
  height: 8%;
  border-radius: 50%;
  background: #171923;
  box-shadow: 0 15px 35px rgba(0,0,0,.55);
  transform: translateX(-50%);
}
.tv-mock__stand::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 55%;
  width: 12%;
  height: 95px;
  background: linear-gradient(#343744, #181a22);
  transform: translateX(-50%);
}
@keyframes tv-signal { to { transform: scaleY(.55); opacity: .62; } }

@media (max-width: 1100px) {
  .device-tabs { grid-template-columns: repeat(3, 1fr); }
  .device-tab:nth-child(3n) { border-right: 0; }
  .device-tab:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .device-tabs { grid-template-columns: repeat(2, 1fr); }
  .device-tab { min-height: 76px; padding: 0 16px; }
  .device-tab:nth-child(3n) { border-right: 1px solid var(--line); }
  .device-tab:nth-child(2n) { border-right: 0; }
  .device-tab:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .device-tab strong { font-size: 15px; }
  .device-panel.is-active { grid-template-columns: 1fr; }
  .device-art { min-height: 360px; }
  .device-art .tv-mock { width: min(100%, 480px); }
}
@media (prefers-reduced-motion: reduce) {
  .tv-mock__signal i { animation: none; }
}

/* v20 tab label spacing */
.device-tab { column-gap: 10px; }

/* =========================================================
   v21 — TV platforms in the main devices showcase
   + dedicated supported-clients section.
   ========================================================= */

.platform-card--apple-tv {
  grid-column: 1 / span 6;
  min-height: 390px;
}
.platform-card--android-tv {
  grid-column: 7 / span 6;
  min-height: 390px;
}
.platform-card--tv {
  background:
    radial-gradient(circle at 72% 78%, rgba(124,92,255,.15), transparent 35%),
    linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.platform-tv {
  position: absolute;
  right: 6%;
  bottom: -9%;
  width: min(62%, 430px);
  aspect-ratio: 16 / 10;
  filter: drop-shadow(0 28px 58px rgba(0,0,0,.5));
  transform: perspective(900px) rotateX(4deg) rotateY(-7deg);
  transform-origin: center bottom;
}
.platform-tv--android {
  left: 7%;
  right: auto;
  transform: perspective(900px) rotateX(4deg) rotateY(7deg);
}
.platform-tv__screen {
  position: absolute;
  inset: 0 0 10%;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 1px solid #3a3d49;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(124,92,255,.34), transparent 31%),
    linear-gradient(145deg, #151824, #08090d 74%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.platform-tv--android .platform-tv__screen {
  background:
    radial-gradient(circle at 50% 52%, rgba(198,255,74,.12), transparent 30%),
    linear-gradient(145deg, #151824, #08090d 74%);
}
.platform-tv__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.platform-tv__screen span,
.platform-tv__screen strong {
  position: relative;
  z-index: 1;
  text-align: center;
}
.platform-tv__screen span {
  color: var(--text-3);
  font: 700 9px/1 var(--mono);
  letter-spacing: .16em;
}
.platform-tv__screen strong {
  color: var(--brand-2);
  font-size: clamp(26px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -.045em;
}
.platform-tv--android .platform-tv__screen strong { color: var(--lime); }
.platform-tv__stand {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26%;
  height: 11%;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(#2d303a, #161820);
}
.platform-tv__stand::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 190%;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #242731;
}

.client-showcase {
  padding: 0;
}
.client-showcase > .chapter {
  margin-top: 0;
  min-height: 110vh;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.client-compatibility {
  position: relative;
  width: min(100%, 760px);
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(124,92,255,.18), transparent 26%),
    linear-gradient(145deg, rgba(20,22,30,.96), rgba(9,10,14,.99));
}
.client-compatibility::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0 50%, transparent 82%);
  opacity: .42;
}
.client-compatibility__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.25), rgba(124,92,255,.05) 44%, transparent 72%);
  filter: blur(10px);
  animation: ecosystem-breathe 5.5s ease-in-out infinite;
}
.client-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.client-links path {
  fill: none;
  stroke: rgba(156,125,255,.42);
  stroke-width: 1.3;
  stroke-dasharray: 5 8;
  filter: drop-shadow(0 0 6px rgba(124,92,255,.42));
}
.client-packet {
  fill: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime));
}
.client-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(156,125,255,.98), rgba(91,57,222,.95));
  box-shadow: 0 30px 80px rgba(70,45,180,.45), inset 0 1px 0 rgba(255,255,255,.25);
  z-index: 4;
}
.client-core::after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(156,125,255,.2);
  border-radius: 54px;
  animation: ecosystem-ring 3.8s ease-out infinite;
}
.client-core span,
.client-card span {
  color: rgba(255,255,255,.7);
  font: 700 8px/1 var(--mono);
  letter-spacing: .15em;
}
.client-core strong {
  font-size: 46px;
  line-height: .9;
  letter-spacing: -.06em;
}
.client-core small {
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.client-core i {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--lime);
  font: 700 8px/1 var(--mono);
  letter-spacing: .1em;
  font-style: normal;
}
.client-card {
  position: absolute;
  width: 210px;
  min-height: 132px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(13,15,21,.86);
  box-shadow: 0 20px 52px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.client-card:hover {
  transform: translateY(-5px);
  border-color: rgba(156,125,255,.45);
  background: rgba(18,20,29,.95);
}
.client-card strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}
.client-card small {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.35;
}
.client-card i {
  width: max-content;
  margin-top: 2px;
  padding: 6px 8px;
  border: 1px solid rgba(198,255,74,.23);
  border-radius: 999px;
  color: var(--lime);
  font: 700 8px/1 var(--mono);
  letter-spacing: .1em;
  font-style: normal;
}
.client-card--happ { left: 5%; top: 8%; }
.client-card--v2ray { right: 5%; top: 8%; }
.client-card--icny { left: 50%; bottom: 7%; transform: translateX(-50%); }
.client-card--icny:hover { transform: translateX(-50%) translateY(-5px); }

@media (max-width: 1100px) {
  .platform-card--apple-tv { grid-column: 1 / span 6; }
  .platform-card--android-tv { grid-column: 7 / span 6; }
}
@media (max-width: 900px) {
  .client-showcase > .chapter {
    min-height: auto;
    padding: 90px 0;
  }
}
@media (max-width: 760px) {
  .platform-card--apple-tv,
  .platform-card--android-tv {
    grid-column: 1;
    min-height: 410px;
  }
  .platform-tv,
  .platform-tv--android {
    left: 50%;
    right: auto;
    bottom: -7%;
    width: min(78%, 390px);
    transform: translateX(-50%) perspective(900px) rotateX(4deg);
  }
  .client-compatibility { min-height: 590px; }
  .client-core { width: 132px; border-radius: 32px; }
  .client-core strong { font-size: 36px; }
  .client-card { width: 160px; min-height: 112px; padding: 15px; border-radius: 18px; }
  .client-card strong { font-size: 22px; }
  .client-card small { font-size: 10px; }
  .client-card--happ { left: 3%; top: 6%; }
  .client-card--v2ray { right: 3%; top: 6%; }
  .client-card--icny { bottom: 5%; }
}
@media (max-width: 440px) {
  .client-compatibility { min-height: 560px; }
  .client-card { width: 142px; padding: 13px; }
  .client-card strong { font-size: 20px; }
  .client-card span { font-size: 7px; }
}

/* =========================================================
   v22 — platform mosaic for "Подключайтесь там, где удобно"
   Reference geometry, ScanVPN visual language.
   ========================================================= */
.platform-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(270px, 21vw) minmax(230px, 18vw) minmax(230px, 18vw);
  gap: 18px;
  margin-top: clamp(54px, 6vw, 82px);
}
.platform-tile {
  --tile-accent: 156, 125, 255;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 2.4vw, 38px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 14%, rgba(var(--tile-accent), .17), transparent 34%),
    radial-gradient(circle at 82% 92%, rgba(var(--tile-accent), .08), transparent 38%),
    linear-gradient(145deg, rgba(22,24,33,.98), rgba(9,10,14,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 26px 70px rgba(0,0,0,.24);
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.platform-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom right, #000, transparent 74%);
}
.platform-tile::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 52%;
  aspect-ratio: 1;
  right: -18%;
  bottom: -42%;
  border-radius: 50%;
  background: rgba(var(--tile-accent), .18);
  filter: blur(52px);
  transition: transform .65s var(--ease), opacity .65s var(--ease);
}
.platform-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--tile-accent), .55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 34px 90px rgba(0,0,0,.34),
    0 0 0 1px rgba(var(--tile-accent), .07);
}
.platform-tile:hover::after { transform: scale(1.2); opacity: .9; }
.platform-tile img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(58px, 5.2vw, 88px);
  height: clamp(58px, 5.2vw, 88px);
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 0 18px rgba(var(--tile-accent), .17));
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.platform-tile:hover img {
  transform: translate3d(4px,-4px,0) scale(1.04);
  filter: drop-shadow(0 0 25px rgba(var(--tile-accent), .32));
}
.platform-tile h3 {
  position: absolute;
  left: clamp(24px, 2.4vw, 38px);
  right: clamp(24px, 2.4vw, 38px);
  bottom: clamp(22px, 2.2vw, 36px);
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 3.45vw, 64px);
  font-weight: 520;
  line-height: .94;
  letter-spacing: -.06em;
}
.platform-tile--ios { grid-column: 1 / span 2; grid-row: 1; }
.platform-tile--android { --tile-accent: 198, 255, 74; grid-column: 3 / span 2; grid-row: 1; }
.platform-tile--macos { --tile-accent: 196, 185, 255; grid-column: 5 / span 2; grid-row: 1; }
.platform-tile--windows {
  --tile-accent: 124, 92, 255;
  grid-column: 1 / span 4;
  grid-row: 2 / span 2;
}
.platform-tile--windows img { width: clamp(82px, 7vw, 124px); height: clamp(82px, 7vw, 124px); }
.platform-tile--windows h3 { font-size: clamp(58px, 6.5vw, 112px); }
.platform-tile--apple-tv {
  --tile-accent: 191, 178, 255;
  grid-column: 5 / span 2;
  grid-row: 2;
}
.platform-tile--android-tv {
  --tile-accent: 198, 255, 74;
  grid-column: 5 / span 2;
  grid-row: 3;
}
.platform-tile--android-tv img { image-rendering: auto; }
.platform-tile--apple-tv h3,
.platform-tile--android-tv h3 { font-size: clamp(30px, 3vw, 52px); }

@media (max-width: 1100px) {
  .platform-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .platform-tile--ios,
  .platform-tile--android,
  .platform-tile--macos,
  .platform-tile--apple-tv,
  .platform-tile--android-tv {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }
  .platform-tile--windows {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 460px;
  }
  .platform-tile--macos { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .platform-mosaic { grid-template-columns: 1fr; gap: 14px; }
  .platform-tile--ios,
  .platform-tile--android,
  .platform-tile--macos,
  .platform-tile--windows,
  .platform-tile--apple-tv,
  .platform-tile--android-tv {
    grid-column: 1;
    grid-row: auto;
    min-height: 235px;
    border-radius: 20px;
  }
  .platform-tile--windows { min-height: 330px; }
  .platform-tile h3,
  .platform-tile--windows h3,
  .platform-tile--apple-tv h3,
  .platform-tile--android-tv h3 { font-size: clamp(38px, 13vw, 58px); }
  .platform-tile img,
  .platform-tile--windows img { width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-tile,
  .platform-tile img,
  .platform-tile::after { transition: none; }
}

/* =========================================================
   v23 — compact platform mosaic
   Keeps the v22 composition while reducing the visual mass.
   ========================================================= */
.platform-mosaic {
  max-width: 1160px;
  margin: clamp(36px, 4vw, 54px) auto 0;
  grid-template-rows:
    minmax(180px, 14vw)
    minmax(150px, 11.5vw)
    minmax(150px, 11.5vw);
  gap: 14px;
}
.platform-tile {
  padding: clamp(18px, 1.75vw, 28px);
  border-radius: 19px;
}
.platform-tile::before { background-size: 32px 32px; }
.platform-tile img {
  width: clamp(46px, 3.8vw, 64px);
  height: clamp(46px, 3.8vw, 64px);
}
.platform-tile h3 {
  left: clamp(18px, 1.75vw, 28px);
  right: clamp(18px, 1.75vw, 28px);
  bottom: clamp(17px, 1.65vw, 26px);
  font-size: clamp(27px, 2.55vw, 44px);
}
.platform-tile--windows img {
  width: clamp(64px, 5.2vw, 88px);
  height: clamp(64px, 5.2vw, 88px);
}
.platform-tile--windows h3 { font-size: clamp(45px, 4.85vw, 78px); }
.platform-tile--apple-tv h3,
.platform-tile--android-tv h3 { font-size: clamp(25px, 2.3vw, 38px); }

@media (max-width: 1100px) {
  .platform-mosaic { max-width: 820px; gap: 12px; }
  .platform-tile--ios,
  .platform-tile--android,
  .platform-tile--macos,
  .platform-tile--apple-tv,
  .platform-tile--android-tv { min-height: 210px; }
  .platform-tile--windows { min-height: 320px; }
}
@media (max-width: 640px) {
  .platform-mosaic { margin-top: 30px; gap: 11px; }
  .platform-tile--ios,
  .platform-tile--android,
  .platform-tile--macos,
  .platform-tile--windows,
  .platform-tile--apple-tv,
  .platform-tile--android-tv {
    min-height: 180px;
    border-radius: 17px;
  }
  .platform-tile--windows { min-height: 250px; }
  .platform-tile h3,
  .platform-tile--windows h3,
  .platform-tile--apple-tv h3,
  .platform-tile--android-tv h3 { font-size: clamp(32px, 10vw, 46px); }
  .platform-tile img,
  .platform-tile--windows img { width: 58px; height: 58px; }
}


/* =========================================================
   v24 — separator after platform mosaic + client directory
   ========================================================= */
.platform-showcase--swapped {
  border-bottom: 1px solid var(--line-soft);
}

.clients-directory {
  position: relative;
  padding-block: clamp(96px, 10vw, 170px);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 88% 16%, rgba(124,92,255,.08), transparent 28%),
    var(--bg);
}
.clients-directory__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: end;
  margin-bottom: clamp(54px, 6vw, 86px);
}
.clients-directory__head .display {
  max-width: 10ch;
  margin-top: 22px;
}
.clients-directory__head p {
  max-width: 480px;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.6;
}
.clients-table {
  border-top: 1px solid var(--line);
}
.clients-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 150px minmax(220px, 1fr) minmax(150px, .65fr) minmax(170px, .65fr);
  min-height: 136px;
  align-items: center;
  gap: clamp(18px, 2vw, 38px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background .38s var(--ease), border-color .38s var(--ease);
}
.clients-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(124,92,255,.10), rgba(198,255,74,.025) 58%, transparent);
  opacity: 0;
  transform: translateX(-12%);
  transition: opacity .4s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.clients-row:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.clients-row > * {
  position: relative;
  z-index: 1;
}
.clients-row__index {
  color: var(--text-3);
  font: 700 10px/1 var(--mono);
  letter-spacing: .12em;
}
.clients-row__logo {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.clients-row__logo img {
  display: block;
  width: auto;
  max-width: 92px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.07));
  transition: transform .42s var(--ease), filter .42s var(--ease);
}
.clients-row:nth-child(2) .clients-row__logo img { max-width: 110px; max-height: 38px; }
.clients-row:nth-child(3) .clients-row__logo img { max-width: 72px; max-height: 58px; }
.clients-row:hover .clients-row__logo img {
  transform: translateX(4px) scale(1.035);
  filter: drop-shadow(0 0 20px rgba(156,125,255,.2));
}
.clients-row h3 {
  margin: 0;
  font-size: clamp(25px, 2vw, 35px);
  font-weight: 520;
  letter-spacing: -.045em;
}
.clients-row__store {
  width: max-content;
  color: var(--text);
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}
.clients-row__store::after {
  content: ' ↗';
  color: var(--brand-2);
  font-size: .72em;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.clients-row__store:hover {
  color: var(--brand-2);
  transform: translateX(3px);
}
.clients-row__store:hover::after { opacity: 1; }

@media (max-width: 980px) {
  .clients-directory__head { grid-template-columns: 1fr; gap: 28px; }
  .clients-directory__head .display { max-width: 13ch; }
  .clients-row {
    grid-template-columns: 48px 100px minmax(150px, 1fr) minmax(115px, auto) minmax(130px, auto);
    min-height: 118px;
    gap: 18px;
  }
  .clients-row__logo { height: 62px; }
  .clients-row__logo img { max-width: 78px; max-height: 48px; }
  .clients-row:nth-child(2) .clients-row__logo img { max-width: 90px; max-height: 34px; }
  .clients-row:nth-child(3) .clients-row__logo img { max-width: 62px; max-height: 50px; }
}

@media (max-width: 700px) {
  .clients-directory { padding-block: 86px; }
  .clients-table { border-top-color: var(--line-soft); }
  .clients-row {
    grid-template-columns: 34px 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 132px;
    padding: 20px 0;
    gap: 8px 14px;
  }
  .clients-row__index { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
  .clients-row__logo { grid-column: 2; grid-row: 1 / span 2; height: 52px; align-self: start; }
  .clients-row__logo img { max-width: 52px; max-height: 42px; }
  .clients-row:nth-child(2) .clients-row__logo img { max-width: 58px; max-height: 30px; }
  .clients-row:nth-child(3) .clients-row__logo img { max-width: 46px; max-height: 42px; }
  .clients-row h3 { grid-column: 3; grid-row: 1; font-size: 25px; }
  .clients-row__store {
    grid-row: 2;
    font-size: 14px;
    color: var(--text-2);
  }
  .clients-row__store:nth-of-type(1) { grid-column: 3; }
  .clients-row__store:nth-of-type(2) { grid-column: 3; margin-left: 112px; }
}

@media (max-width: 430px) {
  .clients-row__store:nth-of-type(2) { margin-left: 100px; }
}

/* =========================================================
   v25 — calmer platform typography + logo-only client rows
   ========================================================= */
.platform-mosaic {
  max-width: 1080px;
}
.platform-tile {
  padding: clamp(24px, 2vw, 34px);
}
.platform-tile h3 {
  left: clamp(26px, 2.15vw, 36px);
  right: clamp(26px, 2.15vw, 36px);
  bottom: clamp(23px, 1.9vw, 31px);
  max-width: calc(100% - clamp(52px, 4.3vw, 72px));
  font-size: clamp(25px, 2.15vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.platform-tile--windows h3 {
  font-size: clamp(42px, 4.25vw, 64px);
}
.platform-tile--apple-tv h3,
.platform-tile--android-tv h3 {
  font-size: clamp(23px, 1.9vw, 31px);
}
.platform-tile img {
  width: clamp(44px, 3.4vw, 58px);
  height: clamp(44px, 3.4vw, 58px);
}
.platform-tile--windows img {
  width: clamp(58px, 4.6vw, 78px);
  height: clamp(58px, 4.6vw, 78px);
}

.clients-row {
  grid-template-columns: 70px minmax(180px, 1.15fr) minmax(150px, .7fr) minmax(170px, .7fr);
}
.clients-row__logo {
  height: 76px;
}
.clients-row__logo img {
  max-width: 118px;
  max-height: 58px;
}
.clients-row:nth-child(2) .clients-row__logo img {
  max-width: 130px;
  max-height: 42px;
}
.clients-row:nth-child(3) .clients-row__logo img {
  max-width: 82px;
  max-height: 62px;
}

@media (max-width: 1100px) {
  .platform-tile h3,
  .platform-tile--windows h3,
  .platform-tile--apple-tv h3,
  .platform-tile--android-tv h3 {
    font-size: clamp(27px, 4.4vw, 40px);
  }
  .platform-tile--windows h3 { font-size: clamp(38px, 6vw, 54px); }

  .clients-row {
    grid-template-columns: 48px minmax(125px, 1fr) minmax(115px, auto) minmax(130px, auto);
  }
}

@media (max-width: 700px) {
  .platform-tile h3,
  .platform-tile--windows h3,
  .platform-tile--apple-tv h3,
  .platform-tile--android-tv h3 {
    left: 24px;
    right: 24px;
    bottom: 22px;
    max-width: calc(100% - 48px);
    font-size: clamp(30px, 9vw, 42px);
  }

  .clients-row {
    grid-template-columns: 34px 82px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 112px;
    padding: 18px 0;
    gap: 10px 14px;
  }
  .clients-row__index {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-top: 0;
  }
  .clients-row__logo {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    height: 58px;
  }
  .clients-row__logo img {
    max-width: 68px;
    max-height: 48px;
  }
  .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 76px;
    max-height: 34px;
  }
  .clients-row:nth-child(3) .clients-row__logo img {
    max-width: 54px;
    max-height: 48px;
  }
  .clients-row__store {
    grid-row: 1 !important;
    align-self: center;
    margin-left: 0 !important;
    font-size: 13px;
    white-space: nowrap;
  }
  .clients-row__store:nth-of-type(1) { grid-column: 3; }
  .clients-row__store:nth-of-type(2) { grid-column: 4; }
}

@media (max-width: 430px) {
  .clients-row {
    grid-template-columns: 28px 62px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
  }
  .clients-row__store { font-size: 12px; }
}

/* =========================================================
   v26 — balanced device showcase, persistent location state,
   and corrected side-menu interaction.
   ========================================================= */

/* Keep the copy and the platform mosaic in one balanced row on desktop. */
.platform-showcase--swapped {
  padding: clamp(92px, 8vw, 132px) 0 clamp(104px, 9vw, 150px);
}
.platform-showcase__layout {
  display: grid;
  grid-template-columns: minmax(340px, .76fr) minmax(600px, 1.24fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: center;
}
.platform-showcase__copy {
  min-width: 0;
  max-width: 560px;
}
.platform-showcase__copy .display {
  margin-top: 24px;
  max-width: 8.2ch;
}
.platform-showcase__copy p {
  max-width: 460px;
  margin: clamp(28px, 3vw, 42px) 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.58;
}
.platform-showcase__layout .platform-mosaic {
  width: 100%;
  max-width: 790px;
  margin: 0 0 0 auto;
  grid-template-rows:
    minmax(138px, 9.5vw)
    minmax(116px, 7.7vw)
    minmax(116px, 7.7vw);
  gap: 11px;
}
.platform-showcase__layout .platform-tile {
  padding: clamp(16px, 1.35vw, 22px);
  border-radius: 17px;
}
.platform-showcase__layout .platform-tile img {
  width: clamp(42px, 3vw, 54px);
  height: clamp(42px, 3vw, 54px);
}
.platform-showcase__layout .platform-tile h3 {
  left: clamp(16px, 1.35vw, 22px);
  right: clamp(16px, 1.35vw, 22px);
  bottom: clamp(15px, 1.25vw, 21px);
  font-size: clamp(25px, 2.15vw, 36px);
}
.platform-showcase__layout .platform-tile--windows img {
  width: clamp(54px, 4vw, 70px);
  height: clamp(54px, 4vw, 70px);
}
.platform-showcase__layout .platform-tile--windows h3 {
  font-size: clamp(38px, 3.8vw, 62px);
}
.platform-showcase__layout .platform-tile--apple-tv h3,
.platform-showcase__layout .platform-tile--android-tv h3 {
  font-size: clamp(22px, 1.85vw, 31px);
}

/* The overlay remains under the header close control, but header links are inert. */
.site-header .header-actions,
.site-header .brand {
  transition: opacity .3s ease;
}
body.menu-open .site-header .header-actions,
body.menu-open .site-header .brand {
  pointer-events: none;
  opacity: .24;
}
body.menu-open .site-header .menu-toggle {
  pointer-events: auto;
}
.menu-prelayers,
.menu-panel {
  width: clamp(440px, 48vw, 760px);
}
.menu-panel-inner {
  padding-inline: clamp(28px, 3.2vw, 52px);
}
.menu-nav a {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 5px 0;
}
.menu-nav a strong {
  font-size: clamp(34px, 3.25vw, 58px);
  letter-spacing: -.055em;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .platform-showcase__layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .platform-showcase__copy {
    max-width: 820px;
  }
  .platform-showcase__copy .display {
    max-width: none;
  }
  .platform-showcase__copy p {
    max-width: 620px;
  }
  .platform-showcase__layout .platform-mosaic {
    max-width: 820px;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .platform-showcase--swapped {
    padding: 72px 0 84px;
  }
  .platform-showcase__layout {
    gap: 32px;
  }
  .platform-showcase__copy p {
    margin-top: 22px;
    font-size: 15px;
  }
  .platform-showcase__layout .platform-mosaic {
    margin-top: 0;
  }
  .platform-showcase__layout .platform-tile,
  .platform-showcase__layout .platform-tile--windows {
    min-height: 172px;
  }
  .platform-showcase__layout .platform-tile--windows {
    min-height: 230px;
  }
  .platform-showcase__layout .platform-tile h3,
  .platform-showcase__layout .platform-tile--windows h3,
  .platform-showcase__layout .platform-tile--apple-tv h3,
  .platform-showcase__layout .platform-tile--android-tv h3 {
    font-size: clamp(29px, 9vw, 42px);
  }
  .menu-prelayers,
  .menu-panel {
    width: 100%;
  }
  .menu-panel-inner {
    padding-inline: 20px;
  }
  .menu-nav a {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .menu-nav a strong {
    font-size: clamp(31px, 10.3vw, 48px);
    letter-spacing: -.06em;
  }
}

/* Final desktop typography balance for the two-column devices section. */
.platform-showcase__copy .display {
  font-size: clamp(58px, 5.2vw, 88px);
  line-height: .94;
}
@media (max-width: 680px) {
  .platform-showcase__copy .display {
    font-size: clamp(46px, 13vw, 66px);
  }
}

/* =========================================================
   v27 — fully hide header actions while the side menu is open
   and lift the Devices copy to the intended visual baseline.
   ========================================================= */

/* The fixed header sits above the menu overlay. Fade its non-menu controls
   completely so fragments such as "...на" and "ВОЙТИ" cannot show through
   at the panel edge. The centered menu/close control remains available. */
.site-header .brand,
.site-header .header-actions {
  transition: opacity .18s ease, visibility 0s linear .18s;
}
body.menu-open .site-header .brand,
body.menu-open .site-header .header-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, visibility 0s linear 0s;
}
body.menu-open .site-header .menu-toggle {
  position: relative;
  z-index: 4;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* On desktop the text starts at the top of the section while the card mosaic
   begins around the headline baseline. This removes the low/sunken copy look. */
@media (min-width: 1181px) {
  .platform-showcase__layout {
    align-items: start;
  }
  .platform-showcase__copy {
    align-self: start;
    transform: translateY(-18px);
  }
  .platform-showcase__layout .platform-mosaic {
    margin-top: clamp(42px, 3vw, 58px);
  }
}

/* On the full-width mobile menu the close control sits on the light panel. */
@media (max-width: 680px) {
  body.menu-open .site-header .menu-toggle {
    color: #0a0b0e;
  }
  body.menu-open .site-header .menu-toggle .bracket {
    color: #6f48ff;
  }
}


/* =========================================================
   v28 — five-page navigation, full-width menu typography,
   restored Devices copy position and unified pricing widget.
   ========================================================= */

/* Make the side navigation use almost the entire available panel width. */
.menu-prelayers,
.menu-panel {
  width: clamp(540px, 56vw, 920px);
}
.menu-panel-inner {
  padding-inline: clamp(24px, 3vw, 48px);
}
.menu-nav {
  width: 100%;
}
.menu-nav a {
  width: 100%;
  grid-template-columns: clamp(32px, 3vw, 46px) minmax(0, 1fr);
  gap: clamp(8px, 1vw, 14px);
  padding: 6px 0;
}
.menu-nav a strong {
  width: 100%;
  font-size: clamp(48px, 5.45vw, 92px);
  line-height: .88;
  letter-spacing: -.072em;
  white-space: nowrap;
}
.menu-nav a strong em {
  width: 100%;
}

/* Restore the Devices copy to its v26 vertically centered position. */
@media (min-width: 1181px) {
  .platform-showcase__layout {
    align-items: center;
  }
  .platform-showcase__copy {
    align-self: center;
    transform: none;
  }
  .platform-showcase__layout .platform-mosaic {
    margin-top: 0;
  }
}

/* The pricing page now uses the same selector as the homepage. */
.pricing-page-grid--single .subscription-picker {
  width: min(100%, 720px);
  max-width: 720px;
  justify-self: center;
}

/* Footer now has brand + three useful columns, with no retired-page links. */
.footer-top {
  grid-template-columns: 1.35fr repeat(3, .72fr);
}

@media (max-width: 980px) {
  .menu-prelayers,
  .menu-panel {
    width: min(94vw, 760px);
  }
  .menu-nav a strong {
    font-size: clamp(45px, 7.7vw, 72px);
  }
}

@media (max-width: 680px) {
  .menu-prelayers,
  .menu-panel {
    width: 100%;
  }
  .menu-panel-inner {
    padding-inline: 18px;
  }
  .menu-nav a {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
  }
  .menu-nav a strong {
    font-size: clamp(38px, 12.2vw, 66px);
    letter-spacing: -.074em;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   v29 — wider side-menu lettering and a cleaner adaptive-route scene.
   ========================================================= */

/* Use the menu panel width more efficiently and avoid clipping accented glyphs. */
.menu-prelayers,
.menu-panel {
  width: min(96vw, 1120px);
}
.menu-panel-inner {
  padding-inline: clamp(18px, 2.25vw, 32px);
}
.menu-nav a {
  grid-template-columns: clamp(26px, 2vw, 34px) minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 20px);
  padding: 8px 0;
}
.menu-nav a strong {
  width: 100%;
  font-size: clamp(56px, 7vw, 118px);
  line-height: .96;
  letter-spacing: -.06em;
  overflow: visible;
}
.menu-nav a strong em {
  display: block;
  width: 100%;
  padding-right: .1em;
  overflow: visible;
}

@media (max-width: 980px) {
  .menu-prelayers,
  .menu-panel {
    width: min(100vw, 900px);
  }
  .menu-nav a strong {
    font-size: clamp(50px, 9vw, 88px);
  }
}

@media (max-width: 680px) {
  .menu-prelayers,
  .menu-panel {
    width: 100%;
  }
  .menu-panel-inner {
    padding-inline: 16px;
  }
  .menu-nav a {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
  }
  .menu-nav a strong {
    font-size: clamp(50px, 13.6vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
  }
}

/* Recompose the adaptive routing section so the headline and the visual no longer collide. */
.chapter--adaptive .chapter-inner {
  grid-template-columns: minmax(0, .74fr) minmax(600px, 1.26fr);
  gap: clamp(82px, 8vw, 160px);
  align-items: center;
}
.chapter--adaptive .chapter-copy {
  position: relative;
  top: auto;
  align-self: center;
  z-index: 2;
}
.chapter--adaptive .chapter-copy h3 {
  max-width: 7.3ch;
  margin: 24px 0 22px;
  font-size: clamp(50px, 5.55vw, 104px);
  line-height: .92;
}
.chapter--adaptive .chapter-copy p {
  max-width: 430px;
}
.chapter--adaptive .chapter-visual {
  min-height: 690px;
  justify-content: end;
  padding-left: clamp(16px, 2vw, 34px);
}
.glass-card--adaptive {
  width: min(100%, 760px);
  aspect-ratio: 1.08;
  margin-left: auto;
  transform: translateX(clamp(18px, 2vw, 42px));
}

.glass-card--adaptive .adaptive-scene {
  position: absolute;
  inset: 0;
}
.adaptive-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.adaptive-line {
  fill: none;
  stroke-width: 2.1;
  stroke-dasharray: 7 11;
  animation: dash 9s linear infinite;
}
.adaptive-line--purple { stroke: url(#adaptivePurple); }
.adaptive-line--green { stroke: url(#adaptiveGreen); animation-direction: reverse; }
.adaptive-orb {
  fill: var(--text);
  opacity: .95;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.72));
}
.adaptive-packet { filter: drop-shadow(0 0 12px currentColor); }
.adaptive-packet--purple { fill: #a78dff; color: #a78dff; }
.adaptive-packet--green { fill: #c6ff4a; color: #c6ff4a; }
.adaptive-chip {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  padding: 13px 15px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(9, 10, 14, .62);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}
.adaptive-chip span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-3);
  font: 600 10px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.adaptive-chip strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.04em;
}
.adaptive-chip--wifi { left: 38px; top: 36px; }
.adaptive-chip--lte { left: 38px; bottom: 38px; }
.adaptive-chip--smart { right: 34px; top: 28px; min-width: 172px; }
.adaptive-chip--secure { right: 34px; bottom: 32px; min-width: 164px; }
.adaptive-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 38px;
  background: linear-gradient(155deg, #8f6cff 0%, #6b4dff 65%, #5941d9 100%);
  box-shadow: 0 28px 80px rgba(124,92,255,.38), 0 0 0 1px rgba(255,255,255,.06) inset;
  text-align: center;
}
.adaptive-core::before {
  content: '';
  position: absolute;
  inset: -26px;
  border-radius: 54px;
  background: radial-gradient(circle, rgba(124,92,255,.22), rgba(124,92,255,0) 72%);
  z-index: -1;
}
.adaptive-core small {
  color: rgba(244,242,238,.72);
  font: 600 10px/1 var(--mono);
  letter-spacing: .18em;
}
.adaptive-core strong {
  font-size: 45px;
  line-height: .9;
  letter-spacing: -.05em;
}
.adaptive-core em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(244,242,238,.76);
  letter-spacing: .08em;
}
.adaptive-status {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9,10,14,.72);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.adaptive-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

@media (max-width: 1180px) {
  .chapter--adaptive .chapter-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .chapter--adaptive .chapter-copy p {
    max-width: 620px;
  }
  .chapter--adaptive .chapter-visual {
    min-height: 620px;
    padding-left: 0;
  }
  .glass-card--adaptive {
    transform: none;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .chapter--adaptive .chapter-copy h3 {
    max-width: 8ch;
    font-size: clamp(44px, 12.2vw, 68px);
  }
  .chapter--adaptive .chapter-visual {
    min-height: 480px;
  }
  .glass-card--adaptive {
    width: 100%;
    aspect-ratio: .94;
  }
  .adaptive-chip {
    min-width: 112px;
    padding: 10px 11px 12px;
    border-radius: 15px;
  }
  .adaptive-chip strong {
    font-size: 18px;
  }
  .adaptive-chip span,
  .adaptive-core small,
  .adaptive-core em {
    letter-spacing: .14em;
  }
  .adaptive-chip--wifi { left: 16px; top: 16px; }
  .adaptive-chip--lte { left: 16px; bottom: 16px; }
  .adaptive-chip--smart { right: 16px; top: 16px; min-width: 124px; }
  .adaptive-chip--secure { right: 16px; bottom: 16px; min-width: 124px; }
  .adaptive-core {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    gap: 5px;
  }
  .adaptive-core strong { font-size: 33px; }
  .adaptive-status {
    bottom: 14px;
    padding: 8px 12px;
    font-size: 10px;
  }
}


/* =========================================================
   v30 — routing visual visibility fix + menu size from v17 (+5px).
   This block intentionally comes last and is the source of truth.
   ========================================================= */

/* Menu: exact v17 geometry, widened by five pixels. */
.menu-prelayers,
.menu-panel {
  width: clamp(395px, calc(43vw + 5px), 665px);
}
.menu-panel-inner {
  padding: calc(var(--header-h) + 34px) clamp(28px, 4vw, 64px) 32px;
}
.menu-panel-top {
  padding-bottom: clamp(34px, 6vh, 70px);
}
.menu-nav a {
  min-height: auto;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 7px 0;
  overflow: hidden;
}
.menu-nav a span {
  padding-top: .55em;
}
.menu-nav a strong {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: clamp(38px, 5vw, 78px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 700;
}
.menu-nav a strong em {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding-right: .08em;
  overflow: visible;
}

/* The routing artwork must remain visible even before JS reveal runs. */
.chapter-visual--adaptive,
.chapter--adaptive .chapter-visual--adaptive {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: grid !important;
  place-items: center end;
  min-height: 690px;
  z-index: 1;
}
.chapter-visual--adaptive .glass-card--adaptive {
  display: block !important;
  position: relative;
  width: min(100%, 760px);
  min-width: 520px;
  min-height: 620px;
  height: auto;
  aspect-ratio: 1.08;
  opacity: 1 !important;
  visibility: visible !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 48%, rgba(124,92,255,.17), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.chapter-visual--adaptive .adaptive-scene,
.chapter-visual--adaptive .adaptive-network,
.chapter-visual--adaptive .adaptive-core,
.chapter-visual--adaptive .adaptive-chip,
.chapter-visual--adaptive .adaptive-status {
  opacity: 1 !important;
  visibility: visible !important;
}
.chapter-visual--adaptive .adaptive-scene {
  display: block !important;
  z-index: 2;
}
.chapter-visual--adaptive .card-grid {
  display: block !important;
  opacity: .62;
  z-index: 0;
}
.chapter-visual--adaptive .adaptive-network {
  display: block !important;
  z-index: 1;
  overflow: visible;
}
.chapter-visual--adaptive .adaptive-line--purple {
  stroke: #9275ff;
  stroke-opacity: .72;
}
.chapter-visual--adaptive .adaptive-line--green {
  stroke: #c6ff4a;
  stroke-opacity: .62;
}
.chapter-visual--adaptive .adaptive-core {
  z-index: 5;
}
.chapter-visual--adaptive .adaptive-chip,
.chapter-visual--adaptive .adaptive-status {
  z-index: 6;
}

@media (max-width: 980px) {
  .menu-prelayers,
  .menu-panel {
    width: min(86vw, 625px);
  }
  .menu-nav a strong {
    font-size: clamp(38px, 7vw, 68px);
  }
  .chapter-visual--adaptive .glass-card--adaptive {
    min-width: 0;
    min-height: 560px;
  }
}

@media (max-width: 680px) {
  .menu-prelayers,
  .menu-panel {
    width: 100%;
  }
  .menu-panel-inner {
    padding: calc(var(--header-h) + 26px) 22px 24px;
  }
  .menu-nav a {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
  }
  .menu-nav a strong {
    font-size: clamp(34px, 12vw, 58px);
    line-height: .92;
  }
  .chapter-visual--adaptive,
  .chapter--adaptive .chapter-visual--adaptive {
    min-height: 470px;
    place-items: center;
  }
  .chapter-visual--adaptive .glass-card--adaptive {
    min-height: 450px;
    aspect-ratio: .94;
  }
}

/* =========================================================
   v31 — mobile fit pass, hidden mobile hero map, menu +2px.
   This block intentionally comes last and is the source of truth.
   ========================================================= */

/* The v30 panel is widened by exactly two additional pixels on desktop. */
.menu-prelayers,
.menu-panel {
  width: clamp(397px, calc(43vw + 7px), 667px);
}

/* Do not crop Cyrillic diacritics (especially Й) in the animated menu. */
.menu-nav,
.menu-nav a,
.menu-nav a strong,
.menu-nav a strong em {
  overflow: visible;
}
.menu-nav a strong {
  box-sizing: border-box;
  padding-top: .13em;
  margin-top: -.13em;
  padding-right: .12em;
  line-height: .96;
}
.menu-nav a strong em {
  box-sizing: border-box;
  padding-top: .13em;
  margin-top: -.13em;
  padding-right: .08em;
}

@media (max-width: 980px) {
  .menu-prelayers,
  .menu-panel {
    width: min(86vw, 627px);
  }
}

@media (max-width: 680px) {
  /* A full-width panel is the only safe mobile geometry; no horizontal overflow. */
  .menu-prelayers,
  .menu-panel {
    width: 100%;
  }
  .menu-panel {
    overflow-x: hidden;
  }
  .menu-panel-inner {
    padding-inline: 18px;
  }
  .menu-nav a {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 5px 0;
  }
  .menu-nav a strong {
    font-size: clamp(37px, 11.65vw, 55px);
    line-height: .97;
    letter-spacing: -.072em;
    padding-right: .16em;
  }

  /* The homepage map is intentionally desktop/tablet-only. */
  body[data-page="home"] .hero-stage.world-stage {
    display: none !important;
  }
  body[data-page="home"] .hero-inner {
    display: block;
  }
  body[data-page="home"] .hero {
    min-height: 100svh;
    padding-bottom: 72px;
  }
  body[data-page="home"] .hero-copy {
    width: 100%;
  }
  body[data-page="home"] .hero-scroll {
    display: none;
  }

  /* Devices: a deterministic two-column mobile mosaic with no overlapping rows. */
  .platform-showcase--swapped {
    overflow: hidden;
  }
  .platform-showcase__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .platform-showcase__copy,
  .platform-showcase__copy .display,
  .platform-showcase__copy p {
    max-width: 100%;
  }
  .platform-showcase__copy .display {
    font-size: clamp(42px, 11.8vw, 58px);
    line-height: .94;
    overflow-wrap: normal;
  }
  .platform-showcase__layout .platform-mosaic {
    display: grid;
    width: 100%;
    max-width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(154px, auto);
    gap: 10px;
  }
  .platform-showcase__layout .platform-tile,
  .platform-showcase__layout .platform-tile--windows,
  .platform-showcase__layout .platform-tile--apple-tv,
  .platform-showcase__layout .platform-tile--android-tv {
    min-width: 0;
    min-height: 154px;
    grid-column: auto;
    grid-row: auto;
    padding: 18px;
    border-radius: 16px;
  }
  .platform-showcase__layout .platform-tile--ios { grid-column: 1; grid-row: 1; }
  .platform-showcase__layout .platform-tile--android { grid-column: 2; grid-row: 1; }
  .platform-showcase__layout .platform-tile--macos { grid-column: 1; grid-row: 2; }
  .platform-showcase__layout .platform-tile--apple-tv { grid-column: 2; grid-row: 2; }
  .platform-showcase__layout .platform-tile--windows {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 190px;
  }
  .platform-showcase__layout .platform-tile--android-tv {
    grid-column: 1 / -1;
    grid-row: 4;
    min-height: 154px;
  }
  .platform-showcase__layout .platform-tile img,
  .platform-showcase__layout .platform-tile--windows img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
  .platform-showcase__layout .platform-tile h3,
  .platform-showcase__layout .platform-tile--windows h3,
  .platform-showcase__layout .platform-tile--apple-tv h3,
  .platform-showcase__layout .platform-tile--android-tv h3 {
    left: 18px;
    right: 18px;
    bottom: 17px;
    max-width: calc(100% - 36px);
    font-size: clamp(25px, 7.4vw, 34px);
    line-height: 1;
    white-space: nowrap;
  }
  .platform-showcase__layout .platform-tile--windows h3 {
    font-size: clamp(34px, 10vw, 46px);
  }

  /* Clients: keep the title and every logo/store label inside the viewport. */
  .clients-directory {
    overflow: hidden;
    padding-block: 78px;
  }
  .clients-directory__head {
    gap: 22px;
    margin-bottom: 38px;
  }
  .clients-directory__head .display {
    width: 100%;
    max-width: 100%;
    font-size: clamp(42px, 11.5vw, 57px);
    line-height: .96;
    overflow-wrap: normal;
  }
  .clients-directory__head p {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
  }
  .clients-row {
    grid-template-columns: 24px 76px minmax(0, 1fr);
    grid-template-rows: minmax(28px, auto) minmax(28px, auto);
    min-height: 116px;
    padding: 18px 0;
    gap: 6px 12px;
    overflow: visible;
  }
  .clients-row__index {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    padding-top: 0;
  }
  .clients-row__logo {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 76px;
    height: 64px;
    align-self: center;
    justify-content: center;
    overflow: visible;
  }
  .clients-row__logo img {
    max-width: 66px;
    max-height: 50px;
    object-position: center;
  }
  .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 72px;
    max-height: 34px;
  }
  .clients-row:nth-child(3) .clients-row__logo img {
    max-width: 52px;
    max-height: 48px;
  }
  .clients-row__store,
  .clients-row__store:nth-of-type(1),
  .clients-row__store:nth-of-type(2) {
    grid-column: 3;
    width: max-content;
    max-width: 100%;
    margin-left: 0 !important;
    align-self: center;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .clients-row__store:nth-of-type(1) { grid-row: 1 !important; }
  .clients-row__store:nth-of-type(2) { grid-row: 2 !important; }

  /* Generic media safety for the homepage. */
  body[data-page="home"] img,
  body[data-page="home"] svg,
  body[data-page="home"] canvas {
    max-width: 100%;
  }
  body[data-page="home"] .display,
  body[data-page="home"] h1,
  body[data-page="home"] h2,
  body[data-page="home"] h3,
  body[data-page="home"] p {
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  .platform-showcase__layout .platform-mosaic {
    grid-template-columns: 1fr;
  }
  .platform-showcase__layout .platform-tile--ios,
  .platform-showcase__layout .platform-tile--android,
  .platform-showcase__layout .platform-tile--macos,
  .platform-showcase__layout .platform-tile--windows,
  .platform-showcase__layout .platform-tile--apple-tv,
  .platform-showcase__layout .platform-tile--android-tv {
    grid-column: 1;
    grid-row: auto;
    min-height: 150px;
  }
  .platform-showcase__layout .platform-tile--windows {
    min-height: 180px;
  }
  .clients-row {
    grid-template-columns: 22px 64px minmax(0, 1fr);
    gap-inline: 9px;
  }
  .clients-row__logo {
    width: 64px;
  }
  .clients-row__store {
    font-size: 13px;
  }
}

/* =========================================================
   v32 — unified navigation, restored staggered menu reveal,
   compact mobile client rows and fixed text-only devices table.
   ========================================================= */

/* Restore the original rising/rotating text reveal without clipping Й. */
.menu-nav a strong {
  overflow: visible;
  padding-top: .18em;
  margin-top: -.18em;
  line-height: .98;
}
.menu-nav a strong em {
  opacity: 0;
  transform: translateY(120%) rotate(7deg);
  transform-origin: 0 100%;
  clip-path: inset(100% -.22em -.18em -.22em);
  transition:
    transform .85s var(--ease),
    clip-path .85s var(--ease),
    opacity .32s ease,
    color .3s ease;
  will-change: transform, clip-path, opacity;
}
.menu-overlay.is-open .menu-nav a strong em {
  opacity: 1;
  transform: translateY(0) rotate(0);
  clip-path: inset(-.28em -.22em -.18em -.22em);
}

/* Devices page: stable selector dimensions and text-only panels. */
.device-selector--fixed {
  grid-template-columns: minmax(285px, .44fr) minmax(0, 1fr);
  height: 620px;
  min-height: 620px;
}
.device-selector--fixed .device-tabs {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}
.device-selector--fixed .device-tab {
  min-height: 0;
  height: 100%;
}
.device-selector--fixed .device-panels--text-only {
  position: relative;
  height: 620px;
  min-width: 0;
  overflow: hidden;
}
.device-selector--fixed .device-panel--text-only {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 620px;
  min-height: 620px;
  padding: clamp(42px, 5.5vw, 78px);
  overflow: auto;
  align-items: center;
}
.device-selector--fixed .device-panel--text-only.is-active {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  gap: 0;
}
.device-selector--fixed .device-panel--text-only h2 {
  max-width: 820px;
}
.device-selector--fixed .device-panel--text-only p,
.device-selector--fixed .device-panel--text-only .feature-list {
  max-width: 680px;
}

@media (max-width: 980px) {
  .device-selector--fixed {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .device-selector--fixed .device-tabs {
    height: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
  .device-selector--fixed .device-tab {
    min-height: 94px;
    height: auto;
    padding-inline: 15px;
  }
  .device-selector--fixed .device-panels--text-only,
  .device-selector--fixed .device-panel--text-only {
    height: 560px;
    min-height: 560px;
  }
}

@media (max-width: 680px) {
  /* App Store and Google Play remain in one horizontal row, as in the reference. */
  .clients-row {
    grid-template-columns: 24px minmax(68px, 1fr) auto auto;
    grid-template-rows: 1fr;
    min-height: 112px;
    padding: 20px 0;
    column-gap: 8px;
    row-gap: 0;
  }
  .clients-row__index {
    grid-column: 1;
    grid-row: 1;
  }
  .clients-row__logo {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 62px;
  }
  .clients-row__logo img {
    max-width: 66px;
    max-height: 48px;
  }
  .clients-row__store,
  .clients-row__store:nth-of-type(1),
  .clients-row__store:nth-of-type(2) {
    grid-row: 1 !important;
    width: auto;
    max-width: none;
    font-size: clamp(11px, 3.35vw, 14px);
    white-space: nowrap;
  }
  .clients-row__store:nth-of-type(1) {
    grid-column: 3;
  }
  .clients-row__store:nth-of-type(2) {
    grid-column: 4;
  }

  .device-selector--fixed .device-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
  }
  .device-selector--fixed .device-tab {
    min-height: 76px;
  }
  .device-selector--fixed .device-tab:last-child {
    grid-column: 1 / -1;
  }
  .device-selector--fixed .device-panels--text-only,
  .device-selector--fixed .device-panel--text-only {
    height: 590px;
    min-height: 590px;
  }
  .device-selector--fixed .device-panel--text-only {
    padding: 28px 22px;
  }
  .device-selector--fixed .device-panel--text-only h2 {
    font-size: clamp(42px, 12vw, 60px);
  }
}

@media (max-width: 390px) {
  .clients-row {
    grid-template-columns: 20px minmax(56px, 1fr) auto auto;
    column-gap: 6px;
  }
  .clients-row__store,
  .clients-row__store:nth-of-type(1),
  .clients-row__store:nth-of-type(2) {
    font-size: 10.5px;
  }
  .clients-row__logo img {
    max-width: 58px;
  }
}

/* v32.1 — protect client-logo sizing from the generic homepage media rule. */
@media (max-width: 680px) {
  body[data-page="home"] .clients-row__logo img {
    width: auto;
    height: auto;
    max-width: 66px;
    max-height: 48px;
  }
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 72px;
    max-height: 34px;
  }
  body[data-page="home"] .clients-row:nth-child(3) .clients-row__logo img {
    max-width: 52px;
    max-height: 48px;
  }
}
@media (max-width: 390px) {
  body[data-page="home"] .clients-row__logo img {
    max-width: 58px;
  }
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 62px;
  }
  body[data-page="home"] .clients-row:nth-child(3) .clients-row__logo img {
    max-width: 48px;
  }
}

/* =========================================================
   v33 — mobile-safe inner-page heroes and revised Devices copy.
   ========================================================= */
@media (max-width: 680px) {
  /* Internal page heroes must never exceed the viewport width. */
  body[data-page="pricing"] .inner-hero,
  body[data-page="devices"] .inner-hero,
  body[data-page="locations"] .inner-hero,
  body[data-page="guides"] .inner-hero {
    min-height: 100svh;
    height: auto;
    padding: calc(var(--header-h) + 82px) 0 58px;
    align-items: stretch;
    overflow: hidden;
  }

  body[data-page="pricing"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid,
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="guides"] .inner-hero-grid {
    width: var(--container);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 44px;
  }

  body[data-page="pricing"] .inner-hero-grid > div,
  body[data-page="devices"] .inner-hero-grid > div,
  body[data-page="locations"] .inner-hero-grid > div,
  body[data-page="guides"] .inner-hero-grid > div {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
    font-size: clamp(44px, 13.5vw, 58px);
    line-height: .9;
    letter-spacing: -.068em;
    overflow: visible;
  }

  body[data-page="pricing"] .inner-hero .line-mask,
  body[data-page="devices"] .inner-hero .line-mask,
  body[data-page="locations"] .inner-hero .line-mask,
  body[data-page="guides"] .inner-hero .line-mask {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-right: .08em;
  }

  body[data-page="pricing"] .inner-hero .line-mask > span,
  body[data-page="devices"] .inner-hero .line-mask > span,
  body[data-page="locations"] .inner-hero .line-mask > span,
  body[data-page="guides"] .inner-hero .line-mask > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-page="pricing"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="guides"] .inner-hero-copy {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
  }

  body[data-page="pricing"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p,
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="guides"] .inner-hero-copy p {
    max-width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  body[data-page="pricing"] .inner-hero-copy .button,
  body[data-page="devices"] .inner-hero-copy .button,
  body[data-page="locations"] .inner-hero-copy .button,
  body[data-page="guides"] .inner-hero-copy .button {
    max-width: 100%;
    margin-top: 26px;
  }

  body[data-page="pricing"] .inner-orb,
  body[data-page="devices"] .inner-orb,
  body[data-page="locations"] .inner-orb,
  body[data-page="guides"] .inner-orb {
    width: 118vw;
    right: -72vw;
    opacity: .45;
  }
}

@media (max-width: 390px) {
  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    font-size: clamp(42px, 13.1vw, 51px);
    letter-spacing: -.064em;
  }
}

/* =========================================================
   v34 — Locations ping column + centered mobile subpage heroes.
   ========================================================= */

/* Desktop locations table: number, flag, country, protocol, ping. */
body[data-page="locations"] .locations-table {
  margin-top: 72px;
}
body[data-page="locations"] .location-item {
  grid-template-columns: 54px 48px minmax(180px, .9fr) minmax(300px, 1.35fr) 72px;
  gap: clamp(16px, 2vw, 32px);
  min-height: 92px;
}
body[data-page="locations"] .location-item .location-flag {
  display: block;
  justify-self: start;
}
body[data-page="locations"] .location-item .flag-emoji {
  width: 28px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
body[data-page="locations"] .location-item .location-protocol {
  min-width: 0;
  color: var(--text-2);
  font: 500 11px/1.35 var(--mono);
  letter-spacing: -.01em;
  white-space: normal;
}
body[data-page="locations"] .location-item .location-latency {
  justify-self: end;
  color: var(--lime);
  font: 650 12px/1 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(198,255,74,.22);
}

@media (max-width: 900px) and (min-width: 681px) {
  body[data-page="locations"] .location-item {
    grid-template-columns: 38px 36px minmax(150px, .8fr) minmax(220px, 1.25fr) 62px;
    gap: 14px;
  }
  body[data-page="locations"] .location-item strong {
    font-size: clamp(19px, 2.4vw, 26px);
  }
}

@media (max-width: 680px) {
  /* Locations and Devices hero copy is deliberately centered on phones. */
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid {
    text-align: center;
    justify-items: center;
    gap: 34px;
  }
  body[data-page="locations"] .inner-hero-grid > div,
  body[data-page="devices"] .inner-hero-grid > div,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy {
    width: 100%;
    margin-inline: auto;
  }
  body[data-page="locations"] .inner-hero .kicker,
  body[data-page="devices"] .inner-hero .kicker {
    justify-content: center;
  }
  body[data-page="locations"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1 {
    margin-inline: auto;
    text-align: center;
  }
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p {
    max-width: 34ch;
    margin-inline: auto;
    text-align: center;
  }
  body[data-page="locations"] .inner-hero-copy .button,
  body[data-page="devices"] .inner-hero-copy .button {
    margin-inline: auto;
  }

  /* Keep the fixed Devices lines inside 320–390 px screens. */
  body[data-page="devices"] .inner-hero h1 {
    font-size: clamp(37px, 11.5vw, 45px);
    line-height: .94;
    letter-spacing: -.058em;
  }
  body[data-page="devices"] .inner-hero .line-mask {
    padding-inline: .06em;
  }

  body[data-page="locations"] .inner-hero h1 {
    font-size: clamp(40px, 12.2vw, 48px);
    line-height: .94;
    letter-spacing: -.06em;
  }

  /* Phone table: only country flag, name and latency. */
  body[data-page="locations"] .locations-table {
    margin-top: 48px;
  }
  body[data-page="locations"] .location-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 76px;
    padding-inline: 0;
  }
  body[data-page="locations"] .location-item:hover {
    padding-inline: 0;
  }
  body[data-page="locations"] .location-item .num,
  body[data-page="locations"] .location-item .location-protocol {
    display: none;
  }
  body[data-page="locations"] .location-item .location-flag,
  body[data-page="locations"] .location-item .flag-emoji {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
  }
  body[data-page="locations"] .location-item strong {
    grid-column: 2;
    min-width: 0;
    font-size: clamp(18px, 5.7vw, 22px);
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  body[data-page="locations"] .location-item .location-latency {
    display: block;
    grid-column: 3;
    justify-self: end;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  body[data-page="devices"] .inner-hero h1 {
    font-size: clamp(34px, 11vw, 40px);
  }
  body[data-page="locations"] .inner-hero h1 {
    font-size: clamp(37px, 11.7vw, 43px);
  }
  body[data-page="locations"] .location-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
  }
  body[data-page="locations"] .location-item strong {
    font-size: 18px;
  }
  body[data-page="locations"] .location-item .location-latency {
    font-size: 10px;
  }
}


/* =========================================================
   v35 — true viewport centering, mobile-safe principle copy,
   and live-status dots for location latency.
   ========================================================= */

body[data-page="locations"] .location-item .location-latency {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
body[data-page="locations"] .location-item .location-latency::after {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(198,255,74,.95), 0 0 24px rgba(198,255,74,.28);
}

@media (max-width: 680px) {
  /* The first-screen copy is centered in the actual phone viewport,
     rather than merely centered inside one grid column. */
  body[data-page="locations"] .inner-hero,
  body[data-page="devices"] .inner-hero {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 36px;
    align-items: center;
  }

  body[data-page="locations"] .inner-hero .container,
  body[data-page="devices"] .inner-hero .container {
    width: 100%;
  }

  body[data-page="locations"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid {
    width: 100%;
    min-height: calc(100svh - var(--header-h) - 60px);
    align-content: center;
    justify-content: center;
    justify-items: center;
    gap: 28px;
    text-align: center;
  }

  body[data-page="locations"] .inner-hero-grid > div,
  body[data-page="devices"] .inner-hero-grid > div,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  body[data-page="locations"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p {
    margin-inline: auto;
    text-align: center;
  }

  body[data-page="locations"] .inner-hero-copy .button,
  body[data-page="devices"] .inner-hero-copy .button {
    margin-left: auto;
    margin-right: auto;
  }

  /* Devices / “02 Принцип”: stack both columns and keep every line on-screen. */
  body[data-page="devices"] .device-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    justify-items: center;
    text-align: center;
    width: 100%;
  }

  body[data-page="devices"] .device-head > div,
  body[data-page="devices"] .device-head > p {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
  }

  body[data-page="devices"] .device-head .section-index {
    justify-content: center;
  }

  body[data-page="devices"] .device-head .display {
    max-width: 10.5ch;
    margin: 18px auto 0;
    font-size: clamp(42px, 12.2vw, 54px);
    line-height: .92;
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  body[data-page="devices"] .device-head > p {
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-2);
  }

  body[data-page="locations"] .location-item .location-latency {
    gap: 7px;
  }
  body[data-page="locations"] .location-item .location-latency::after {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 390px) {
  body[data-page="devices"] .device-head .display {
    font-size: clamp(38px, 11.4vw, 45px);
    max-width: 10.2ch;
  }
}

@media (max-width: 350px) {
  body[data-page="devices"] .device-head .display {
    font-size: 36px;
  }
}

/* =========================================================
   v36 — one mobile hero system across every internal page.
   Position is centered in the usable viewport; typography stays
   left-aligned and all copy is constrained to the phone width.
   ========================================================= */
@media (max-width: 680px) {
  body[data-page="pricing"] .inner-hero,
  body[data-page="devices"] .inner-hero,
  body[data-page="locations"] .inner-hero,
  body[data-page="guides"] .inner-hero {
    min-height: 100svh;
    height: auto;
    padding: var(--header-h) 0 0;
    display: grid;
    align-items: center;
    overflow: hidden;
  }

  body[data-page="pricing"] .inner-hero .container,
  body[data-page="devices"] .inner-hero .container,
  body[data-page="locations"] .inner-hero .container,
  body[data-page="guides"] .inner-hero .container {
    width: var(--container);
    min-width: 0;
  }

  body[data-page="pricing"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid,
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="guides"] .inner-hero-grid {
    width: 100%;
    min-width: 0;
    min-height: calc(100svh - var(--header-h));
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: start;
    justify-content: stretch;
    justify-items: start;
    gap: 30px;
    padding: 28px 0 34px;
    text-align: left;
  }

  body[data-page="pricing"] .inner-hero-grid > div,
  body[data-page="devices"] .inner-hero-grid > div,
  body[data-page="locations"] .inner-hero-grid > div,
  body[data-page="guides"] .inner-hero-grid > div,
  body[data-page="pricing"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="guides"] .inner-hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding-bottom: 0;
    text-align: left;
  }

  body[data-page="pricing"] .inner-hero .kicker,
  body[data-page="devices"] .inner-hero .kicker,
  body[data-page="locations"] .inner-hero .kicker,
  body[data-page="guides"] .inner-hero .kicker {
    justify-content: flex-start;
    max-width: 100%;
    font-size: 10px;
    letter-spacing: .1em;
    white-space: nowrap;
  }

  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 26px 0 0;
    font-size: clamp(36px, 10.5vw, 44px);
    line-height: .96;
    letter-spacing: -.058em;
    text-align: left;
    overflow: visible;
  }

  body[data-page="pricing"] .inner-hero .line-mask,
  body[data-page="devices"] .inner-hero .line-mask,
  body[data-page="locations"] .inner-hero .line-mask,
  body[data-page="guides"] .inner-hero .line-mask {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0 .08em 0 0;
    overflow: hidden;
  }

  body[data-page="pricing"] .inner-hero .line-mask > span,
  body[data-page="devices"] .inner-hero .line-mask > span,
  body[data-page="locations"] .inner-hero .line-mask > span,
  body[data-page="guides"] .inner-hero .line-mask > span {
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-page="pricing"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p,
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="guides"] .inner-hero-copy p {
    width: 100%;
    max-width: 35ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: break-word;
  }

  body[data-page="pricing"] .inner-hero-copy .button,
  body[data-page="devices"] .inner-hero-copy .button,
  body[data-page="locations"] .inner-hero-copy .button,
  body[data-page="guides"] .inner-hero-copy .button {
    width: fit-content;
    max-width: 100%;
    margin: 26px 0 0;
  }

  /* Keep the decorative orbit subordinate to the copy on every page. */
  body[data-page="pricing"] .inner-orb,
  body[data-page="devices"] .inner-orb,
  body[data-page="locations"] .inner-orb,
  body[data-page="guides"] .inner-orb {
    width: 116vw;
    right: -74vw;
    top: 17vh;
    opacity: .42;
  }
}

@media (max-width: 390px) {
  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    font-size: clamp(35px, 10.3vw, 41px);
  }
}

@media (max-width: 350px) {
  body[data-page="pricing"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid,
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="guides"] .inner-hero-grid {
    gap: 24px;
    padding-block: 22px 28px;
  }

  body[data-page="pricing"] .inner-hero .kicker,
  body[data-page="devices"] .inner-hero .kicker,
  body[data-page="locations"] .inner-hero .kicker,
  body[data-page="guides"] .inner-hero .kicker {
    font-size: 9px;
    letter-spacing: .075em;
  }

  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    margin-top: 22px;
    font-size: 34px;
  }

  body[data-page="pricing"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p,
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="guides"] .inner-hero-copy p {
    font-size: 15px;
  }
}

/* =========================================================
   v37 — left-aligned Devices principle + COBE globe for the
   Locations global-network section.
   ========================================================= */

/* Locations / 01 Global network */
body[data-page="locations"] .locations-network__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
  gap: clamp(52px, 7vw, 118px);
  align-items: center;
}

body[data-page="locations"] .locations-globe-card {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 48%, rgba(124,92,255,.18), transparent 46%),
    linear-gradient(145deg, rgba(255,255,255,.026), rgba(255,255,255,.006));
  box-shadow: 0 42px 120px rgba(0,0,0,.34), inset 0 0 80px rgba(124,92,255,.04);
  isolation: isolate;
}

body[data-page="locations"] .locations-globe-card::before {
  content: '';
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.09), transparent 67%);
  filter: blur(18px);
  pointer-events: none;
}

body[data-page="locations"] .locations-globe-card__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .36;
  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: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0 62%, transparent 86%);
  pointer-events: none;
}

body[data-page="locations"] .locations-globe-root {
  position: absolute;
  inset: 5.5%;
  z-index: 2;
  display: grid;
  place-items: center;
}

.cobe-globe-pulse {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  user-select: none;
  isolation: isolate;
}

.globe-pulse-marker {
  position: absolute;
  z-index: 8;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .35s ease, filter .35s ease;
}

.globe-pulse-marker__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(198,255,74,.94);
  border-radius: 50%;
  opacity: 0;
  animation: scanvpn-globe-pulse 2.2s ease-out infinite;
}

.globe-pulse-marker__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(8,9,12,.9), 0 0 0 4px rgba(198,255,74,.9), 0 0 18px var(--lime);
}

@keyframes scanvpn-globe-pulse {
  0% { transform: scale(.28); opacity: .86; }
  100% { transform: scale(1.5); opacity: 0; }
}

body[data-page="locations"] .locations-globe-chip {
  position: absolute;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(8,9,12,.74);
  backdrop-filter: blur(14px);
  color: rgba(244,242,238,.82);
  font: 600 9px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
}

body[data-page="locations"] .locations-globe-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 11px var(--lime);
}

body[data-page="locations"] .locations-globe-chip--top {
  top: 7%;
  left: 7%;
}

body[data-page="locations"] .locations-globe-chip--bottom {
  right: 7%;
  bottom: 7%;
}

@media (prefers-reduced-motion: reduce) {
  .globe-pulse-marker__ring { animation: none; }
}

@media (max-width: 980px) {
  body[data-page="locations"] .locations-network__grid {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 44px;
  }
}

@media (max-width: 760px) {
  body[data-page="locations"] .locations-network__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  body[data-page="locations"] .locations-globe-card {
    width: min(100%, 580px);
    justify-self: center;
  }
}

@media (max-width: 680px) {
  /* Devices / 02 Principle: center the block in the viewport,
     but keep the actual typography left-aligned. */
  body[data-page="devices"] #principle .device-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    justify-items: stretch;
    align-items: start;
    text-align: left;
  }

  body[data-page="devices"] #principle .device-head > div,
  body[data-page="devices"] #principle .device-head > p {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  body[data-page="devices"] #principle .device-head .section-index {
    justify-content: flex-start;
  }

  body[data-page="devices"] #principle .device-head .display {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 0;
    font-size: clamp(37px, 11.2vw, 46px);
    line-height: .94;
    letter-spacing: -.058em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  body[data-page="devices"] #principle .device-head > p {
    max-width: 35ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-2);
  }

  body[data-page="locations"] .locations-network {
    overflow: hidden;
  }

  body[data-page="locations"] .locations-network__grid {
    gap: 36px;
  }

  body[data-page="locations"] .locations-globe-card {
    width: 100%;
    border-radius: 24px;
  }

  body[data-page="locations"] .locations-globe-root {
    inset: 3.5%;
  }

  body[data-page="locations"] .locations-globe-chip {
    padding: 8px 10px;
    font-size: 7.5px;
  }

  body[data-page="locations"] .locations-globe-chip--top {
    top: 5%;
    left: 5%;
  }

  body[data-page="locations"] .locations-globe-chip--bottom {
    right: 5%;
    bottom: 5%;
  }
}

@media (max-width: 390px) {
  body[data-page="devices"] #principle .device-head .display {
    font-size: clamp(35px, 10.6vw, 41px);
  }

  .globe-pulse-marker {
    width: 28px;
    height: 28px;
  }

  .globe-pulse-marker__dot {
    width: 6px;
    height: 6px;
  }
}

/* v37.1 — visible SVG globe fallback when WebGL is unavailable. */
body[data-page="locations"] .locations-globe-fallback {
  position: absolute;
  inset: 7%;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity .8s ease;
  pointer-events: none;
}
body[data-page="locations"] .locations-globe-card.is-globe-ready .locations-globe-fallback {
  opacity: .16;
}
body[data-page="locations"] .locations-globe-fallback svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 42px rgba(124,92,255,.22));
  animation: fallback-globe-float 7s ease-in-out infinite;
}
body[data-page="locations"] .globe-fallback__outline,
body[data-page="locations"] .globe-fallback__grid ellipse,
body[data-page="locations"] .globe-fallback__grid path {
  fill: none;
  stroke: rgba(160,134,255,.44);
  stroke-width: 1.2;
}
body[data-page="locations"] .globe-fallback__grid {
  transform-origin: 300px 300px;
  animation: fallback-globe-grid 15s linear infinite;
}
body[data-page="locations"] .globe-fallback__routes path {
  fill: none;
  stroke: url(#fallbackRoute);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  filter: drop-shadow(0 0 8px rgba(124,92,255,.7));
  animation: fallback-route-dash 4.8s linear infinite;
}
body[data-page="locations"] .globe-fallback__points circle {
  fill: var(--lime);
  stroke: rgba(8,9,12,.92);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px var(--lime));
  transform-box: fill-box;
  transform-origin: center;
  animation: fallback-point-pulse 2.2s ease-in-out infinite alternate;
}
body[data-page="locations"] .globe-fallback__points circle:nth-child(2n) { animation-delay: -.7s; }
body[data-page="locations"] .globe-fallback__points circle:nth-child(3n) { animation-delay: -1.3s; }
@keyframes fallback-globe-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.012); }
}
@keyframes fallback-globe-grid {
  from { transform: rotate(-2deg); }
  to { transform: rotate(358deg); }
}
@keyframes fallback-route-dash { to { stroke-dashoffset: -60; } }
@keyframes fallback-point-pulse {
  from { transform: scale(.82); opacity: .78; }
  to { transform: scale(1.22); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="locations"] .locations-globe-fallback svg,
  body[data-page="locations"] .globe-fallback__grid,
  body[data-page="locations"] .globe-fallback__routes path,
  body[data-page="locations"] .globe-fallback__points circle { animation: none; }
}


/* =========================================================
   v38 — connected Russia globe, guide globe, synchronized
   route trails and consistent transition branding.
   ========================================================= */

/* The globe should read as an object, not a framed dashboard card. */
body[data-page="locations"] .locations-globe-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}
body[data-page="locations"] .locations-globe-card::before {
  opacity: .72;
}
body[data-page="locations"] .locations-globe-chip {
  display: none !important;
}

/* Reuse the same interactive globe in the featured guide. */
.guide-globe-card {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(124,92,255,.22), transparent 54%),
    #08090d;
}
.guide-globe-card .locations-globe-card__grid,
.guide-globe-card .locations-globe-fallback,
.guide-globe-card .locations-globe-root {
  position: absolute;
  inset: 0;
}
.guide-globe-card .locations-globe-root {
  z-index: 3;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(90%, 560px);
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%);
}
.guide-globe-card .locations-globe-fallback {
  z-index: 2;
  display: grid;
  place-items: center;
  transition: opacity .55s ease;
}
.guide-globe-card.is-globe-ready .locations-globe-fallback {
  opacity: 0;
}
.guide-globe-card .locations-globe-fallback svg {
  width: min(90%, 560px);
  height: auto;
  aspect-ratio: 1;
  animation: fallback-globe-float 7s ease-in-out infinite;
}
.guide-globe-card .globe-fallback__outline,
.guide-globe-card .globe-fallback__grid ellipse,
.guide-globe-card .globe-fallback__grid path {
  fill: none;
  stroke: rgba(156,125,255,.38);
  stroke-width: 1.15;
}
.guide-globe-card .globe-fallback__routes path {
  fill: none;
  stroke: url(#guideFallbackRoute);
  stroke-width: 2;
  stroke-dasharray: 8 12;
  animation: fallback-route-dash 4.8s linear infinite;
}
.guide-globe-card .globe-fallback__points circle {
  fill: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime));
}

/* v39: the route is the packet trail. It grows exactly behind the packet,
   then retracts toward the destination instead of snapping off. */
.world-route {
  stroke-dasharray: 0 1;
  stroke-dashoffset: 0;
  animation: world-route-flow 7.2s var(--route-delay, 0s) linear infinite both;
}
.world-packet {
  opacity: 0;
  animation: world-packet-flow 7.2s var(--route-delay, 0s) linear infinite both;
}
@keyframes world-route-flow {
  0% {
    stroke-dasharray: 0 1;
    stroke-dashoffset: 0;
    opacity: 0;
  }
  1% {
    opacity: .18;
  }
  /* The route head reaches the destination at the same 80% point as the packet. */
  80% {
    stroke-dasharray: 1 0;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  83% {
    stroke-dasharray: 1 0;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  /* Move the tail forward so the remaining line is absorbed by the country node. */
  97% {
    stroke-dasharray: 0 1;
    stroke-dashoffset: -1;
    opacity: .12;
  }
  100% {
    stroke-dasharray: 0 1;
    stroke-dashoffset: -1;
    opacity: 0;
  }
}
@keyframes world-packet-flow {
  0% { opacity: 0; }
  1%, 80% { opacity: 1; }
  84% { opacity: 0; }
  100% { opacity: 0; }
}

/* Show SCANVPN on both halves of the page transition. */
body.is-entering .page-transition::after {
  animation: transition-logo-out .76s .05s both;
}
@keyframes transition-logo-out {
  0%, 58% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 680px) {
  .guide-globe-card {
    min-height: 400px;
  }
  .guide-globe-card .locations-globe-root,
  .guide-globe-card .locations-globe-fallback svg {
    width: min(88%, 360px);
    height: auto;
    aspect-ratio: 1;
  }
}

/* =========================================================
   v40 — anchored location labels for COBE globes.
   The labels follow the real marker anchors, fade on the back
   side of the globe and preserve the existing pulse treatment.
   ========================================================= */
.globe-location-label {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 7px 9px 6px;
  border: 1px solid rgba(168, 137, 255, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, .13), rgba(8, 9, 12, .02) 62%),
    rgba(8, 9, 12, .88);
  color: rgba(244, 242, 238, .93);
  font: 700 8px/1 var(--mono);
  letter-spacing: .105em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(12px);
  transform:
    translate(var(--globe-label-x, 0), var(--globe-label-y, -44px))
    scale(.96);
  transform-origin: center;
  transition:
    opacity .55s ease,
    filter .55s ease,
    transform .55s cubic-bezier(.2, .8, .2, 1);
}

.globe-location-label::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 9px;
  background: linear-gradient(to bottom, rgba(198, 255, 74, .66), transparent);
  transform: translateX(-50%);
  opacity: .72;
}

.globe-location-label__signal {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 74, .9);
}

@media (hover: hover) {
  .cobe-globe-pulse:hover .globe-location-label {
    transform:
      translate(var(--globe-label-x, 0), var(--globe-label-y, -44px))
      scale(1);
  }
}

@media (max-width: 760px) {
  .globe-location-label {
    min-height: 21px;
    padding: 6px 7px 5px;
    gap: 5px;
    border-radius: 7px;
    font-size: 6.5px;
    letter-spacing: .085em;
    transform:
      translate(calc(var(--globe-label-x, 0) * .72), calc(var(--globe-label-y, -44px) * .72))
      scale(.92);
  }

  .globe-location-label__signal {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 520px) {
  .globe-location-label {
    min-height: 19px;
    padding: 5px 6px 4px;
    gap: 4px;
    border-radius: 6px;
    font-size: 5.75px;
    letter-spacing: .075em;
    transform:
      translate(var(--globe-label-x, 0), calc(var(--globe-label-y, -46px) * .66))
      scale(.84);
  }

  .globe-location-label::after {
    height: calc(var(--globe-label-stem, 26px) * .66);
  }

  .globe-location-label__signal {
    width: 3px;
    height: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-location-label {
    transition: none;
  }
}


/* =========================================================
   v41 — precise globe labels, stable mobile final CTA and
   smoothly animated pricing FAQ.
   ========================================================= */

/* COBE labels remain centred over the real marker anchor. The variable
   stem reaches back toward the marker even when vertical staggering is used. */
.globe-location-label {
  transform:
    translate(var(--globe-label-x, 0), var(--globe-label-y, -46px))
    scale(.96);
  transform-origin: center bottom;
}
.globe-location-label::after {
  height: var(--globe-label-stem, 26px);
}
@media (hover: hover) {
  .cobe-globe-pulse:hover .globe-location-label {
    transform:
      translate(var(--globe-label-x, 0), var(--globe-label-y, -46px))
      scale(1);
  }
}
@media (max-width: 760px) {
  .globe-location-label {
    transform:
      translate(var(--globe-label-x, 0), calc(var(--globe-label-y, -46px) * .78))
      scale(.92);
  }
  .globe-location-label::after {
    height: calc(var(--globe-label-stem, 26px) * .78);
  }
}

/* The closing CTA must never clip or create awkward oversized lines on phones. */
@media (max-width: 680px) {
  .final-cta {
    min-height: 82svh;
    padding-inline: 0;
  }
  .final-cta-inner {
    width: 100%;
    padding-inline: clamp(18px, 6vw, 28px);
  }
  .final-cta h2 {
    width: 100%;
    max-width: 11ch;
    margin: 22px auto 34px;
    font-size: clamp(42px, 11.8vw, 54px);
    line-height: .91;
    letter-spacing: -.062em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  .final-cta-actions {
    width: 100%;
  }
  .final-cta-actions .button {
    width: min(100%, 260px);
    justify-content: center;
  }
}
@media (max-width: 390px) {
  .final-cta h2 {
    max-width: 10.8ch;
    font-size: clamp(39px, 11.2vw, 46px);
  }
}

/* FAQ motion adapted from the supplied component: mounted content, animated
   grid rows and opacity, plus a geometrically centred CSS plus icon. */
.accordion-item button {
  position: relative;
  padding: 0;
}
.accordion-item button > span {
  min-width: 0;
  padding-right: 16px;
}
.accordion-item button i {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: block;
  font-size: 0;
  line-height: 0;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    border-color .28s ease,
    background-color .28s ease;
}
.accordion-item button i::before,
.accordion-item button i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.accordion-item button i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.accordion-item button[aria-expanded="true"] i {
  transform: rotate(45deg);
  border-color: rgba(198,255,74,.42);
  background: rgba(198,255,74,.035);
}
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  padding: 0;
  color: var(--text-2);
  line-height: 1.65;
  transition:
    grid-template-rows .36s cubic-bezier(.4,0,.2,1),
    opacity .24s ease;
}
.accordion-panel__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 70px 0 0;
  transform: translateY(-8px);
  transition:
    padding-bottom .36s cubic-bezier(.4,0,.2,1),
    transform .36s cubic-bezier(.4,0,.2,1);
}
.accordion-item button[aria-expanded="true"] + .accordion-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.accordion-item button[aria-expanded="true"] + .accordion-panel .accordion-panel__inner {
  padding-bottom: 30px;
  transform: translateY(0);
}
@media (max-width: 760px) {
  .accordion-item button {
    min-height: 78px;
    gap: 18px;
  }
  .accordion-item button i {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
  .accordion-panel__inner {
    padding-right: 46px;
  }
  .accordion-item button[aria-expanded="true"] + .accordion-panel .accordion-panel__inner {
    padding-bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .accordion-item button i,
  .accordion-panel,
  .accordion-panel__inner {
    transition: none;
  }
}

/* =========================================================
   v42 — collision-aware COBE labels.
   JavaScript chooses a free label slot around every visible marker;
   the connector rotates back toward the real location point.
   ========================================================= */
.globe-location-label::after {
  top: 50%;
  left: 50%;
  width: var(--globe-label-stem, 26px);
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--globe-label-stem-angle, 90deg));
  background: linear-gradient(to right, rgba(198, 255, 74, .68), rgba(198, 255, 74, .08));
}
.globe-location-label {
  will-change: transform;
  transition:
    opacity .45s ease,
    filter .45s ease,
    transform .42s cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   v44 — Spur-style trial hover and unified desktop hero type.
   ========================================================= */

/* The header trial label uses a duplicated glyph track. On hover every
   character rolls upward with a short stagger, matching the compact motion
   language of Spur's [ Free Trial ] control without adding another library. */
.header-status--trial {
  --trial-line-height: 1.08em;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--trial-line-height);
  overflow: hidden;
  cursor: default;
  isolation: isolate;
}

.trial-hover-label {
  display: inline-flex;
  align-items: flex-start;
  height: var(--trial-line-height);
  overflow: hidden;
}

.trial-hover-char {
  display: inline-block;
  height: var(--trial-line-height);
  overflow: hidden;
  perspective: 500px;
}

.trial-hover-char__track {
  display: flex;
  flex-direction: column;
  height: calc(var(--trial-line-height) * 2);
  transform: translate3d(0, 0, 0);
  transition: transform .54s cubic-bezier(.77, 0, .18, 1);
  transition-delay: calc(var(--trial-index) * 14ms);
  will-change: transform;
}

.trial-hover-char__face {
  display: block;
  flex: 0 0 var(--trial-line-height);
  height: var(--trial-line-height);
  line-height: var(--trial-line-height);
  white-space: pre;
  backface-visibility: hidden;
}

.trial-hover-char__face--clone {
  color: var(--lime);
  filter: brightness(1.22);
  text-shadow: 0 0 14px rgba(198, 255, 74, .28);
}

.header-status--trial:hover .trial-hover-char__track,
.header-status--trial:focus-visible .trial-hover-char__track {
  transform: translate3d(0, -50%, 0);
}

/* Match every internal first screen to the established homepage scale.
   These values are exactly the final desktop metrics used by .hero-title
   and .hero-copy p on index.html. */
@media (min-width: 761px) {
  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(48px, 5.75vw, 106px);
    line-height: .88;
    letter-spacing: -.066em;
    font-weight: 680;
  }

  body[data-page="pricing"] .inner-hero .line-mask,
  body[data-page="devices"] .inner-hero .line-mask,
  body[data-page="locations"] .inner-hero .line-mask,
  body[data-page="guides"] .inner-hero .line-mask {
    overflow: hidden;
    padding-top: .16em;
    padding-bottom: .08em;
    margin-top: -.16em;
  }

  body[data-page="pricing"] .inner-hero .line-mask > span,
  body[data-page="devices"] .inner-hero .line-mask > span,
  body[data-page="locations"] .inner-hero .line-mask > span,
  body[data-page="guides"] .inner-hero .line-mask > span {
    font-size: 1em;
    line-height: inherit;
    white-space: nowrap;
  }

  body[data-page="pricing"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p,
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="guides"] .inner-hero-copy p {
    margin: 0;
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-hover-char__track {
    transition: none;
  }
  .header-status--trial:hover .trial-hover-char__track,
  .header-status--trial:focus-visible .trial-hover-char__track {
    transform: none;
  }
}


/* =========================================================
   v45 — align internal desktop heroes with the homepage and
   replace the trial label roll with a hover-triggered hyper text.
   ========================================================= */

.trial-hyper-text {
  display: inline-block;
  min-width: 20ch;
  white-space: pre;
  overflow: visible;
  cursor: default;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  text-align: left;
}

.trial-hyper-text.is-scrambling {
  color: var(--lime);
  text-shadow: 0 0 16px rgba(198, 255, 74, .28);
}

@media (min-width: 761px) {
  body[data-page="pricing"] .inner-hero,
  body[data-page="devices"] .inner-hero,
  body[data-page="locations"] .inner-hero,
  body[data-page="guides"] .inner-hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 6vh) 0 70px;
    display: flex;
    align-items: center;
  }

  body[data-page="pricing"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid,
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="guides"] .inner-hero-grid {
    align-items: center;
    transform: translateY(-10vh);
  }

  body[data-page="pricing"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="guides"] .inner-hero-copy {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-hyper-text {
    text-shadow: none;
  }
}

/* =========================================================
   v46 — longer five-stage trial scramble and homepage-style
   placement for copy/actions on all internal desktop heroes.
   ========================================================= */

/* Keep the status width completely stable while the five intermediate
   strings are shown. The animation itself is controlled in script.js. */
.trial-hyper-text {
  min-width: 20ch;
  transition: color .18s ease, text-shadow .18s ease;
}

@media (min-width: 761px) {
  body[data-page="pricing"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid,
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="guides"] .inner-hero-grid {
    display: block;
    width: var(--container);
    margin-inline: auto;
    transform: translateY(-10vh);
  }

  body[data-page="pricing"] .inner-hero-grid > div:first-child,
  body[data-page="devices"] .inner-hero-grid > div:first-child,
  body[data-page="locations"] .inner-hero-grid > div:first-child,
  body[data-page="guides"] .inner-hero-grid > div:first-child {
    width: min(100%, 980px);
  }

  body[data-page="pricing"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="guides"] .inner-hero-copy {
    display: grid;
    grid-template-columns: minmax(220px, 430px) max-content;
    align-items: end;
    gap: 30px;
    width: min(100%, 860px);
    max-width: none;
    margin-top: clamp(42px, 6vw, 90px);
    padding: 0;
  }

  body[data-page="pricing"] .inner-hero-copy .button,
  body[data-page="devices"] .inner-hero-copy .button,
  body[data-page="locations"] .inner-hero-copy .button,
  body[data-page="guides"] .inner-hero-copy .button {
    justify-self: start;
    align-self: end;
    margin-top: 0;
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page="pricing"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="guides"] .inner-hero-copy {
    grid-template-columns: minmax(0, 430px) max-content;
    width: 100%;
  }
}

/* =========================================================
   v47 — unified tablet layout (1200×800, 1024×768, 768×1024)
   and deterministic fast trial-label scramble.
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
}

/* Every major layout child is allowed to shrink instead of forcing horizontal scroll. */
.hero-inner > *,
.platform-showcase__layout > *,
.chapter-inner > *,
.pricing-grid > *,
.inner-hero-grid > *,
.device-selector > *,
.device-tabs > *,
.device-panels > * {
  min-width: 0;
}

.trial-hyper-text {
  min-width: 22.5ch;
  width: 22.5ch;
  max-width: 22.5ch;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* Common compact desktop/tablet system. */
@media (min-width: 681px) and (max-width: 1280px) {
  :root {
    --container: calc(100vw - 64px);
    --header-h: 72px;
  }

  .section {
    padding-block: clamp(92px, 10vw, 132px);
  }

  /* Home hero: the route map is intentionally removed on common laptop/tablet widths. */
  body[data-page="home"] .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 58px) 0 64px;
  }
  body[data-page="home"] .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  body[data-page="home"] .hero-copy {
    width: min(100%, 900px);
    padding-top: 0;
  }
  body[data-page="home"] .hero-stage {
    display: none !important;
  }
  body[data-page="home"] .hero-title {
    max-width: 850px;
    font-size: clamp(70px, 10.2vw, 116px);
  }
  body[data-page="home"] .hero-bottom {
    width: min(100%, 790px);
  }

  /* 01 / Devices: stable reference mosaic with no overlapping rows. */
  body[data-page="home"] .platform-showcase--swapped {
    padding-block: clamp(88px, 9vw, 124px);
    overflow: hidden;
  }
  body[data-page="home"] .platform-showcase__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }
  body[data-page="home"] .platform-showcase__copy {
    width: min(100%, 760px);
    max-width: 760px;
    align-self: start;
    transform: none;
  }
  body[data-page="home"] .platform-showcase__copy .display {
    max-width: 11ch;
    font-size: clamp(58px, 7.5vw, 84px);
  }
  body[data-page="home"] .platform-showcase__copy p {
    width: min(100%, 620px);
    max-width: 620px;
  }
  body[data-page="home"] .platform-showcase__layout .platform-mosaic {
    display: grid;
    width: min(100%, 940px);
    max-width: 940px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, 170px);
    gap: 12px;
  }
  body[data-page="home"] .platform-showcase__layout .platform-tile,
  body[data-page="home"] .platform-showcase__layout .platform-tile--windows,
  body[data-page="home"] .platform-showcase__layout .platform-tile--apple-tv,
  body[data-page="home"] .platform-showcase__layout .platform-tile--android-tv {
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
    padding: 20px;
    border-radius: 17px;
  }
  body[data-page="home"] .platform-showcase__layout .platform-tile--ios { grid-column: 1; grid-row: 1; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--android { grid-column: 2; grid-row: 1; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--macos { grid-column: 3; grid-row: 1; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--windows { grid-column: 1 / span 2; grid-row: 2 / span 2; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--apple-tv { grid-column: 3; grid-row: 2; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--android-tv { grid-column: 3; grid-row: 3; }
  body[data-page="home"] .platform-showcase__layout .platform-tile img,
  body[data-page="home"] .platform-showcase__layout .platform-tile--windows img {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }
  body[data-page="home"] .platform-showcase__layout .platform-tile h3,
  body[data-page="home"] .platform-showcase__layout .platform-tile--windows h3,
  body[data-page="home"] .platform-showcase__layout .platform-tile--apple-tv h3,
  body[data-page="home"] .platform-showcase__layout .platform-tile--android-tv h3 {
    left: 20px;
    right: 20px;
    bottom: 18px;
    max-width: calc(100% - 40px);
    font-size: clamp(26px, 3.2vw, 38px);
    white-space: nowrap;
  }
  body[data-page="home"] .platform-showcase__layout .platform-tile--windows h3 {
    font-size: clamp(44px, 5.4vw, 68px);
  }

  /* 02 / Adaptive route and 03 / Locations use one non-overlapping stack. */
  body[data-page="home"] .chapter {
    min-height: auto;
    padding-block: clamp(96px, 10vw, 140px);
  }
  body[data-page="home"] .chapter-inner,
  body[data-page="home"] .chapter--adaptive .chapter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    align-items: start;
  }
  body[data-page="home"] .chapter-copy,
  body[data-page="home"] .chapter--adaptive .chapter-copy {
    position: static;
    top: auto;
    width: min(100%, 700px);
    max-width: 700px;
  }
  body[data-page="home"] .chapter-copy h3,
  body[data-page="home"] .chapter--adaptive .chapter-copy h3 {
    max-width: 10ch;
    font-size: clamp(58px, 7.2vw, 88px);
  }
  body[data-page="home"] .chapter-copy p,
  body[data-page="home"] .chapter--adaptive .chapter-copy p {
    width: min(100%, 620px);
    max-width: 620px;
  }
  body[data-page="home"] .chapter-visual,
  body[data-page="home"] .chapter--adaptive .chapter-visual,
  body[data-page="home"] .chapter-visual--adaptive {
    width: min(100%, 900px);
    min-height: 560px;
    margin-inline: auto;
    justify-self: center;
  }
  body[data-page="home"] .chapter-visual .glass-card,
  body[data-page="home"] .chapter-visual--adaptive .glass-card--adaptive {
    width: min(100%, 820px);
    max-width: 820px;
    margin-inline: auto;
  }

  /* 05 / Pricing: copy above a centered calculator, never clipped. */
  body[data-page="home"] .pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    align-items: start;
  }
  body[data-page="home"] .pricing-copy {
    width: min(100%, 720px);
    max-width: 720px;
  }
  body[data-page="home"] .pricing-grid .subscription-picker {
    width: min(100%, 680px);
    max-width: 680px;
    justify-self: center;
  }

  /* Devices page selector: one fixed-width tab strip and one stable panel. */
  body[data-page="devices"] .device-selector--fixed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: auto;
    min-height: 0;
  }
  body[data-page="devices"] .device-selector--fixed .device-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  body[data-page="devices"] .device-selector--fixed .device-tab {
    min-width: 0;
    min-height: 108px;
    height: auto;
    padding: 18px 14px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  body[data-page="devices"] .device-selector--fixed .device-tab:last-child {
    border-right: 0;
  }
  body[data-page="devices"] .device-selector--fixed .device-tab strong {
    min-width: 0;
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }
  body[data-page="devices"] .device-selector--fixed .device-panels--text-only,
  body[data-page="devices"] .device-selector--fixed .device-panel--text-only {
    width: 100%;
    height: 500px;
    min-height: 500px;
  }
  body[data-page="devices"] .device-selector--fixed .device-panel--text-only {
    padding: clamp(42px, 6vw, 68px);
  }

  /* Side menu: enough usable width for ИНСТРУКЦИИ and one aligned grid. */
  .menu-prelayers,
  .menu-panel {
    width: min(72vw, 760px);
    max-width: 100vw;
  }
  .menu-panel-inner {
    padding-inline: clamp(28px, 4vw, 46px);
  }
  .menu-nav a {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }
  .menu-nav a strong {
    width: 100%;
    max-width: 100%;
    font-size: clamp(46px, 5.2vw, 64px);
    letter-spacing: -.066em;
    white-space: nowrap;
  }
  .menu-nav a strong em {
    width: max-content;
    max-width: 100%;
  }
}

/* 768 px portrait tablet: switch the menu to a clean full-width sheet and
   keep the homepage tiles compact enough for the available width. */
@media (min-width: 681px) and (max-width: 820px) {
  :root {
    --container: calc(100vw - 48px);
  }

  .menu-prelayers,
  .menu-panel {
    width: 100vw;
  }
  .menu-panel-inner {
    padding-inline: 44px;
  }
  .menu-nav a strong {
    font-size: clamp(48px, 7.5vw, 58px);
  }

  body[data-page="home"] .platform-showcase__layout .platform-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, 164px);
  }
  body[data-page="home"] .platform-showcase__layout .platform-tile--ios { grid-column: 1; grid-row: 1; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--android { grid-column: 2; grid-row: 1; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--macos { grid-column: 1; grid-row: 2; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--apple-tv { grid-column: 2; grid-row: 2; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--windows { grid-column: 1 / -1; grid-row: 3; }
  body[data-page="home"] .platform-showcase__layout .platform-tile--android-tv { grid-column: 1 / -1; grid-row: 4; }

  body[data-page="devices"] .device-selector--fixed .device-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
  }
  body[data-page="devices"] .device-selector--fixed .device-tab {
    min-height: 90px;
    border-bottom: 1px solid var(--line);
  }
  body[data-page="devices"] .device-selector--fixed .device-tab:nth-child(3) {
    border-right: 0;
  }
  body[data-page="devices"] .device-selector--fixed .device-tab:nth-child(4),
  body[data-page="devices"] .device-selector--fixed .device-tab:nth-child(5) {
    grid-column: span 1;
  }
}

/* Do not let the 1024 px breakpoint inherit old four-column tab rules. */
@media (min-width: 821px) and (max-width: 1100px) {
  body[data-page="devices"] .device-selector--fixed .device-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Tablet portrait cleanup: use the compact header and the same one-column
   first-screen rhythm on every internal page. */
@media (min-width: 681px) and (max-width: 900px) {
  .header-actions {
    display: none !important;
  }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  body[data-page="pricing"] .inner-hero,
  body[data-page="devices"] .inner-hero,
  body[data-page="locations"] .inner-hero,
  body[data-page="guides"] .inner-hero {
    min-height: 100svh;
    padding: var(--header-h) 0 0;
    display: grid;
    align-items: center;
    overflow: hidden;
  }

  body[data-page="pricing"] .inner-hero-grid,
  body[data-page="devices"] .inner-hero-grid,
  body[data-page="locations"] .inner-hero-grid,
  body[data-page="guides"] .inner-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 34px;
    width: var(--container);
    min-height: calc(100svh - var(--header-h));
    margin-inline: auto;
    padding-block: 44px;
    transform: none;
  }

  body[data-page="pricing"] .inner-hero-grid > div:first-child,
  body[data-page="devices"] .inner-hero-grid > div:first-child,
  body[data-page="locations"] .inner-hero-grid > div:first-child,
  body[data-page="guides"] .inner-hero-grid > div:first-child {
    width: min(100%, 700px);
  }

  body[data-page="pricing"] .inner-hero h1,
  body[data-page="devices"] .inner-hero h1,
  body[data-page="locations"] .inner-hero h1,
  body[data-page="guides"] .inner-hero h1 {
    width: min(100%, 760px);
    max-width: 760px;
    margin-top: 28px;
    font-size: clamp(58px, 9vw, 74px);
    line-height: .92;
    letter-spacing: -.064em;
  }

  body[data-page="pricing"] .inner-hero .line-mask > span,
  body[data-page="devices"] .inner-hero .line-mask > span,
  body[data-page="locations"] .inner-hero .line-mask > span,
  body[data-page="guides"] .inner-hero .line-mask > span {
    white-space: normal;
  }

  body[data-page="pricing"] .inner-hero-copy,
  body[data-page="devices"] .inner-hero-copy,
  body[data-page="locations"] .inner-hero-copy,
  body[data-page="guides"] .inner-hero-copy {
    display: block;
    width: min(100%, 620px);
    max-width: 620px;
    margin: 0;
    padding: 0;
  }

  body[data-page="pricing"] .inner-hero-copy p,
  body[data-page="devices"] .inner-hero-copy p,
  body[data-page="locations"] .inner-hero-copy p,
  body[data-page="guides"] .inner-hero-copy p {
    max-width: 540px;
    font-size: 17px;
    line-height: 1.55;
  }

  body[data-page="pricing"] .inner-hero-copy .button,
  body[data-page="devices"] .inner-hero-copy .button,
  body[data-page="locations"] .inner-hero-copy .button,
  body[data-page="guides"] .inner-hero-copy .button {
    margin-top: 26px;
  }

  body[data-page="pricing"] .inner-orb,
  body[data-page="devices"] .inner-orb,
  body[data-page="locations"] .inner-orb,
  body[data-page="guides"] .inner-orb {
    width: 86vw;
    right: -46vw;
    top: 13vh;
    opacity: .46;
  }
}


/* =========================================================
   v49 — Articles index and editorial pages.
   ========================================================= */
.article-main { position: relative; }
.article-hero { position: relative; overflow: hidden; min-height: min(880px, 92svh); padding: calc(var(--header-h) + clamp(90px, 10vw, 150px)) 0 clamp(80px, 9vw, 140px); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.article-hero .grid-bg { mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.82) 72%, transparent 100%); }
.article-orb { position: absolute; right: -14vw; top: 11%; width: min(58vw, 920px); aspect-ratio: 1; border: 1px solid rgba(124,92,255,.24); border-radius: 50%; box-shadow: inset 0 0 120px rgba(124,92,255,.05); }
.article-orb::before, .article-orb::after { content: ''; position: absolute; inset: 14%; border: 1px solid rgba(244,242,238,.10); border-radius: 50%; }
.article-orb::after { inset: 31%; border-color: rgba(198,255,74,.22); }
.article-breadcrumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(42px,6vw,80px); color: var(--text-3); font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.article-breadcrumbs a:hover { color: var(--lime); }
.article-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .45fr); gap: clamp(60px,10vw,170px); align-items: end; }
.article-hero h1 { max-width: 15ch; margin: 24px 0 28px; font-size: clamp(56px,7.3vw,128px); line-height: .91; letter-spacing: -.07em; font-weight: 690; text-wrap: balance; }
.article-dek { max-width: 820px; margin: 0; color: var(--text-2); font-size: clamp(18px,1.55vw,25px); line-height: 1.55; letter-spacing: -.02em; }
.article-meta { margin: 0; display: grid; border-top: 1px solid var(--line); }
.article-meta > div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-meta dt { color: var(--text-3); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.article-meta dd { margin: 0; font-size: 14px; line-height: 1.5; }
.article-hero-grid--single { grid-template-columns: minmax(0, 1fr); }
.article-meta-end { margin-top: clamp(70px, 9vw, 120px); }
.article-meta-end .article-meta { max-width: none; }
.article-section { padding: clamp(90px,11vw,170px) 0; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 860px); justify-content: center; gap: clamp(55px,8vw,130px); align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-toc > span { padding: 18px 0; color: var(--lime); font: 600 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.article-toc a { padding: 13px 0; color: var(--text-3); font-size: 13px; line-height: 1.4; border-bottom: 1px solid var(--line-soft); transition: color .25s, transform .25s; }
.article-toc a:hover { color: var(--text); transform: translateX(5px); }
.article-content { min-width: 0; font-size: clamp(17px,1.2vw,20px); line-height: 1.78; color: var(--text-2); }
.article-content > p:first-child { margin-top: 0; color: var(--text); font-size: clamp(21px,1.75vw,28px); line-height: 1.55; letter-spacing: -.025em; }
.article-content h2 { scroll-margin-top: calc(var(--header-h) + 30px); margin: 2.5em 0 .7em; color: var(--text); font-size: clamp(34px,4vw,64px); line-height: 1; letter-spacing: -.055em; }
.article-content h3 { margin: 2em 0 .65em; color: var(--text); font-size: clamp(24px,2.4vw,38px); line-height: 1.15; letter-spacing: -.035em; }
.article-content p { margin: 0 0 1.25em; }
.article-content ul, .article-content ol { margin: 0 0 1.6em; padding-left: 1.25em; }
.article-content li { margin: .45em 0; padding-left: .3em; }
.article-content li::marker { color: var(--lime); }
.article-content strong { color: var(--text); }
.article-content a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(198,255,74,.3); text-underline-offset: .2em; }
.article-content code { padding: .14em .38em; border: 1px solid var(--line); border-radius: 6px; background: rgba(124,92,255,.09); color: var(--text); font: .88em/1.4 var(--mono); }
.article-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .82em; line-height: 1.5; }
.article-content th, .article-content td { padding: 16px 18px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.article-content th { color: var(--text); background: rgba(124,92,255,.10); }
.article-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 2px solid var(--lime); background: rgba(198,255,74,.035); color: var(--text); }
.article-cta { margin-top: clamp(70px,9vw,120px); padding: clamp(30px,5vw,62px); border: 1px solid rgba(124,92,255,.45); border-radius: var(--radius); background: radial-gradient(circle at 84% 15%, rgba(124,92,255,.24), transparent 44%), linear-gradient(135deg, rgba(124,92,255,.10), rgba(17,19,26,.88)); }
.article-cta h2 { margin: 22px 0 18px; max-width: 12ch; }
.article-cta p { max-width: 620px; }
.article-cta .button { margin-top: 12px; color: var(--text); text-decoration: none; }
.article-related { padding-top: clamp(90px,10vw,150px); }
.article-related-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin: 28px 0 42px; }
.article-related-head h2 { margin: 0; font-size: clamp(42px,6vw,90px); line-height: .92; letter-spacing: -.065em; }
.article-related-head a { color: var(--lime); font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.article-related-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.article-related-card { min-height: 310px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s, transform .35s var(--ease); }
.article-related-card:hover { background: rgba(124,92,255,.08); transform: translateY(-5px); }
.article-related-card > span { color: var(--brand-2); font: 600 9px/1.4 var(--mono); letter-spacing: .1em; }
.article-related-card strong { margin: auto 0; font-size: clamp(25px,2.1vw,36px); line-height: 1.05; letter-spacing: -.045em; }
.article-related-card i { color: var(--text-3); font: 500 10px/1 var(--mono); font-style: normal; }

@media (max-width: 1100px) {
  .article-hero { min-height: auto; }
  .article-hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .article-meta { max-width: 700px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-toc > span { grid-column: 1/-1; }
  .article-toc a { padding-right: 20px; }
}
@media (max-width: 760px) {
  .article-hero { min-height: auto; padding: calc(var(--header-h) + 62px) 0 72px; }
  .article-orb { width: 115vw; right: -72vw; top: 8%; opacity: .72; }
  .article-breadcrumbs { margin-bottom: 42px; font-size: 8px; }
  .article-hero h1 { max-width: none; margin: 18px 0 24px; font-size: clamp(44px,13.2vw,66px); line-height: .94; overflow-wrap: anywhere; text-wrap: pretty; }
  .article-dek { font-size: 17px; }
  .article-meta > div { grid-template-columns: 76px 1fr; }
  .article-section { padding: 72px 0; }
  .article-toc { grid-template-columns: 1fr; }
  .article-content { font-size: 17px; line-height: 1.7; }
  .article-content > p:first-child { font-size: 20px; }
  .article-content h2 { font-size: clamp(34px,10.5vw,48px); overflow-wrap: anywhere; }
  .article-content table { display: block; overflow-x: auto; font-size: 13px; }
  .article-content th, .article-content td { min-width: 180px; padding: 13px; }
  .article-cta { padding: 28px 22px; }
  .article-related-head { display: block; }
  .article-related-head a { display: inline-block; margin-top: 20px; }
  .article-related-grid { grid-template-columns: 1fr; }
  .article-related-card { min-height: 230px; }
}


/* v51: current article section in the table of contents. */
.article-toc a {
  position: relative;
  padding-left: 0;
  transition: color .25s, transform .25s, padding-left .25s var(--ease), background-color .25s;
}
.article-toc a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(198,255,74,.45);
  transform: translateY(-50%);
  transition: width .25s var(--ease);
}
.article-toc a.is-active,
.article-toc a[aria-current="location"] {
  color: var(--lime);
  padding-left: 16px;
  transform: none;
}
.article-toc a.is-active::before,
.article-toc a[aria-current="location"]::before {
  width: 8px;
}
.article-toc a.is-active:hover,
.article-toc a[aria-current="location"]:hover {
  color: var(--lime);
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .article-toc a.is-active,
  .article-toc a[aria-current="location"] {
    background: linear-gradient(90deg, rgba(198,255,74,.055), transparent 72%);
  }
}


/* =========================================================
   v52 — verified external client links and balanced INCY logo.
   ========================================================= */
.clients-row__logo {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
}
.clients-row__logo:focus-visible,
.clients-row__store:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 5px;
}
/* INCY is a wide wordmark, so a slightly smaller box gives it the same
   perceived visual weight as the compact HAPP and V2RayTun marks. */
.clients-row:nth-child(2) .clients-row__logo img {
  max-width: 104px;
  max-height: 34px;
}
@media (max-width: 1100px) {
  .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 94px;
    max-height: 31px;
  }
}
@media (max-width: 680px) {
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 62px;
    max-height: 28px;
  }
}
@media (max-width: 390px) {
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 56px;
    max-height: 25px;
  }
}

/* =========================================================
   v53 — make supported-client logos visibly interactive.
   ========================================================= */
.clients-row__logo {
  position: relative;
  box-sizing: border-box;
  padding: 8px 24px 8px 8px;
  transform-origin: left center;
  transition:
    transform .22s var(--ease),
    background-color .22s ease,
    box-shadow .22s ease;
}
.clients-row__logo::after {
  content: '↗';
  position: absolute;
  top: 7px;
  right: 7px;
  color: var(--brand-2);
  font: 700 12px/1 var(--mono);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .22s ease, transform .22s var(--ease);
  pointer-events: none;
}
.clients-row__logo:hover,
.clients-row__logo:focus-visible {
  transform: translateY(-1px) scale(1.035);
  background: rgba(156, 125, 255, .055);
  box-shadow: 0 0 28px rgba(124, 92, 255, .16);
}
.clients-row__logo:hover::after,
.clients-row__logo:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}
.clients-row__logo:hover img,
.clients-row__logo:focus-visible img {
  transform: translateX(3px) scale(1.045);
  filter: drop-shadow(0 0 21px rgba(156, 125, 255, .25));
}

@media (hover: none) {
  .clients-row__logo::after {
    opacity: .9;
    transform: none;
  }
}

@media (max-width: 680px) {
  .clients-row__logo {
    padding: 5px 12px 5px 2px;
    overflow: visible;
  }
  .clients-row__logo::after {
    top: -3px;
    right: -2px;
    font-size: 10px;
  }
}

/* =========================================================
   v54 — compact client-logo interaction.
   Glow stays around the mark; the external-link arrow sits
   directly beside the logo instead of at the row edge.
   ========================================================= */
.clients-row:hover::before {
  opacity: 0;
  transform: translateX(-12%);
}

.clients-row__logo {
  width: max-content;
  max-width: 100%;
  padding: 8px 2px 8px 8px;
  gap: 9px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.clients-row__logo::after {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  margin-left: 1px;
  opacity: 0;
  transform: translateX(-5px);
}

.clients-row__logo:hover,
.clients-row__logo:focus-visible {
  transform: translateY(-1px);
  background: transparent;
  box-shadow: none;
}

.clients-row__logo:hover::after,
.clients-row__logo:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.clients-row__logo:hover img,
.clients-row__logo:focus-visible img {
  transform: scale(1.045);
  filter:
    drop-shadow(0 0 9px rgba(156, 125, 255, .34))
    drop-shadow(0 0 18px rgba(124, 92, 255, .18));
}

@media (hover: none) {
  .clients-row__logo::after {
    opacity: .9;
    transform: none;
  }
}

@media (max-width: 680px) {
  .clients-row__logo {
    width: max-content;
    padding: 5px 2px;
    gap: 7px;
  }
  .clients-row__logo::after {
    position: relative;
    inset: auto;
    margin-left: 0;
    font-size: 10px;
  }
}
/* v55 — clickable Telegram trial link. */
.header-status--trial {
  cursor: pointer;
  text-decoration: none;
}
.header-status--trial:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 5px;
}


/* =========================================================
   v56 — fine-tune HAPP and INCY logo sizes by 0.5px.
   ========================================================= */
body[data-page="home"] .clients-row:nth-child(1) .clients-row__logo img {
  width: 31.5px;
  max-width: 31.5px;
}
body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
  max-width: 103.5px;
  max-height: 33.5px;
}
@media (max-width: 1100px) {
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 93.5px;
    max-height: 30.5px;
  }
}
@media (max-width: 680px) {
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 61.5px;
    max-height: 27.5px;
  }
}
@media (max-width: 390px) {
  body[data-page="home"] .clients-row:nth-child(2) .clients-row__logo img {
    max-width: 55.5px;
    max-height: 24.5px;
  }
}

/* =========================================================
   v57 — align the desktop adaptive-route artwork with the
   right edge used by the surrounding homepage sections.
   ========================================================= */
@media (min-width: 1281px) {
  body[data-page="home"] .chapter-visual--adaptive .glass-card--adaptive {
    transform: translateX(0);
  }
}

/* =========================================================
   v58 — consistent vertical rhythm between the homepage
   device, adaptive-route and locations feature blocks.
   Each neighbouring visual now has the same amount of space
   below the previous block and above the next one.
   ========================================================= */
body[data-page="home"] {
  --home-feature-section-space: clamp(104px, 6.6vw, 128px);
}

@media (min-width: 1281px) {
  body[data-page="home"] .platform-showcase--swapped {
    padding-bottom: var(--home-feature-section-space);
  }

  body[data-page="home"] .chapter,
  body[data-page="home"] .chapter:first-of-type {
    min-height: auto;
    padding-top: var(--home-feature-section-space);
    padding-bottom: var(--home-feature-section-space);
  }
}

@media (min-width: 681px) and (max-width: 1280px) {
  body[data-page="home"] {
    --home-feature-section-space: clamp(88px, 8vw, 108px);
  }

  body[data-page="home"] .platform-showcase--swapped {
    padding-bottom: var(--home-feature-section-space);
  }

  body[data-page="home"] .chapter,
  body[data-page="home"] .chapter:first-of-type {
    padding-top: var(--home-feature-section-space);
    padding-bottom: var(--home-feature-section-space);
  }
}

@media (max-width: 680px) {
  body[data-page="home"] {
    --home-feature-section-space: 72px;
  }

  body[data-page="home"] .platform-showcase--swapped {
    padding-bottom: var(--home-feature-section-space);
  }

  body[data-page="home"] .chapter,
  body[data-page="home"] .chapter:first-of-type {
    min-height: auto;
    padding-top: var(--home-feature-section-space);
    padding-bottom: var(--home-feature-section-space);
  }
}

/* =========================================================
   v64 — slower counters and a viewport-safe Pricing headline.
   Keep this block last so it overrides the shared hero system.
   ========================================================= */
.counter-frame--old.counter-frame--up .counter-char--digit,
.counter-frame--new.counter-frame--up .counter-char--digit,
.counter-frame--old.counter-frame--down .counter-char--digit,
.counter-frame--new.counter-frame--down .counter-char--digit {
  animation-duration: 1000ms;
}

@media (min-width: 901px) {
  body[data-page="pricing"] .inner-hero-grid > div:first-child {
    width: min(100%, 1120px);
  }

  body[data-page="pricing"] .inner-hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(48px, 5.35vw, 100px);
    letter-spacing: -.068em;
  }

  body[data-page="pricing"] .inner-hero .line-mask {
    padding-right: .08em;
  }
}

/* =========================================================
   v65 — simple Smart Routing diagram.
   RU services stay available directly while VPN remains on.
   ========================================================= */
.smart-routing-card {
  overflow: hidden;
}

.smart-routing-flow {
  position: absolute;
  inset: 22px;
  z-index: 2;
}

.smart-routing-network {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.smart-routing-network--mobile {
  display: none;
}

.smart-routing-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smart-routing-path--base {
  stroke: rgba(244, 242, 238, .13);
  stroke-width: 1.25;
}

.smart-routing-path--direct,
.smart-routing-path--vpn {
  stroke-width: 2.2;
  opacity: .16;
}

.smart-routing-path--direct {
  stroke: var(--lime);
  animation: smart-route-direct 8s linear infinite;
}

.smart-routing-path--vpn {
  stroke: var(--brand-2);
  animation: smart-route-vpn 8s linear infinite;
}

.smart-routing-packet--input {
  fill: var(--text);
  filter: drop-shadow(0 0 8px rgba(244, 242, 238, .72));
}

.smart-routing-packet--direct {
  fill: var(--lime);
  filter: drop-shadow(0 0 10px var(--lime));
}

.smart-routing-packet--vpn {
  fill: var(--brand-2);
  filter: drop-shadow(0 0 10px var(--brand-2));
}

.smart-routing-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(244, 242, 238, .13);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 16, 22, .96), rgba(8, 9, 12, .9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.smart-routing-node > span {
  color: var(--text-3);
  font: 600 9px/1 var(--mono);
  letter-spacing: .16em;
}

.smart-routing-node > strong {
  margin-top: 9px;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.smart-routing-node > small {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.25;
}

.smart-routing-node > i {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  font: 700 10px/1 var(--mono);
  font-style: normal;
}

.smart-routing-node--device {
  left: 3.2%;
  top: 41%;
  width: 25.5%;
  height: 18%;
}

.smart-routing-node--engine {
  left: 36%;
  top: 34%;
  width: 29%;
  height: 32%;
  align-items: center;
  text-align: center;
  border-color: rgba(156, 125, 255, .48);
  background:
    radial-gradient(circle at 50% 18%, rgba(124, 92, 255, .22), transparent 55%),
    linear-gradient(145deg, rgba(18, 17, 29, .97), rgba(8, 9, 12, .94));
  box-shadow: 0 24px 70px rgba(72, 46, 170, .24), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.smart-routing-node--engine > span {
  color: var(--brand-2);
}

.smart-routing-node--engine > strong {
  margin-top: 11px;
  font-size: clamp(21px, 2vw, 31px);
  color: var(--text);
}

.smart-routing-node--engine > em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--text-3);
  font: 500 9px/1 var(--mono);
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.smart-routing-node--engine > em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.smart-routing-status-stack {
  position: relative;
  width: 100%;
  height: 16px;
  margin-top: 12px;
}

.smart-routing-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font: 600 9px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.smart-routing-status--direct {
  color: var(--lime);
  animation: smart-status-direct 8s linear infinite;
}

.smart-routing-status--vpn {
  color: var(--brand-2);
  opacity: 0;
  animation: smart-status-vpn 8s linear infinite;
}

.smart-routing-status--static {
  display: none;
}

.smart-routing-node--direct {
  right: 3.2%;
  top: 12%;
  width: 25.5%;
  height: 23%;
  animation: smart-node-direct 8s linear infinite;
}

.smart-routing-node--direct > span,
.smart-routing-node--direct > strong {
  color: var(--lime);
}

.smart-routing-node--direct > i {
  border: 1px solid rgba(198, 255, 74, .32);
  color: var(--lime);
  background: rgba(198, 255, 74, .08);
}

.smart-routing-node--vpn {
  right: 3.2%;
  bottom: 12%;
  width: 25.5%;
  height: 23%;
  animation: smart-node-vpn 8s linear infinite;
}

.smart-routing-node--vpn > span,
.smart-routing-node--vpn > strong {
  color: var(--brand-2);
}

.smart-routing-node--vpn > i {
  border: 1px solid rgba(169, 139, 255, .35);
  color: var(--brand-2);
  background: rgba(124, 92, 255, .10);
}

@keyframes smart-route-direct {
  0%, 8%, 46%, 100% { opacity: .16; }
  16%, 39% { opacity: 1; filter: drop-shadow(0 0 8px rgba(198, 255, 74, .42)); }
}

@keyframes smart-route-vpn {
  0%, 51%, 91%, 100% { opacity: .16; }
  60%, 84% { opacity: 1; filter: drop-shadow(0 0 8px rgba(169, 139, 255, .44)); }
}

@keyframes smart-status-direct {
  0%, 44% { opacity: 1; transform: translateY(0); }
  49%, 95% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes smart-status-vpn {
  0%, 47% { opacity: 0; transform: translateY(5px); }
  53%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(5px); }
}

@keyframes smart-node-direct {
  0%, 8%, 46%, 100% { border-color: rgba(244, 242, 238, .13); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
  16%, 39% { border-color: rgba(198, 255, 74, .62); box-shadow: 0 20px 54px rgba(0, 0, 0, .3), 0 0 28px rgba(198, 255, 74, .10); }
}

@keyframes smart-node-vpn {
  0%, 51%, 91%, 100% { border-color: rgba(244, 242, 238, .13); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
  60%, 84% { border-color: rgba(169, 139, 255, .64); box-shadow: 0 20px 54px rgba(0, 0, 0, .3), 0 0 30px rgba(124, 92, 255, .14); }
}

@media (max-width: 700px) {
  .chapter-visual--adaptive .smart-routing-card {
    min-height: 560px;
    aspect-ratio: auto;
  }

  .smart-routing-flow {
    inset: 16px;
  }

  .smart-routing-network--desktop {
    display: none;
  }

  .smart-routing-network--mobile {
    display: block;
  }

  .smart-routing-node {
    padding: 14px 15px;
    border-radius: 17px;
  }

  .smart-routing-node > span {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .smart-routing-node > strong {
    margin-top: 7px;
    font-size: 18px;
  }

  .smart-routing-node > small {
    margin-top: 6px;
    font-size: 10px;
  }

  .smart-routing-node--device {
    left: 10%;
    top: 4%;
    width: 80%;
    height: 15%;
    align-items: center;
    text-align: center;
  }

  .smart-routing-node--engine {
    left: 10%;
    top: 29%;
    width: 80%;
    height: 25%;
  }

  .smart-routing-node--engine > strong {
    font-size: 25px;
  }

  .smart-routing-status-stack {
    margin-top: 9px;
  }

  .smart-routing-node--engine > em {
    margin-top: 8px;
  }

  .smart-routing-node--direct,
  .smart-routing-node--vpn {
    top: auto;
    bottom: 4%;
    width: 44%;
    height: 24%;
  }

  .smart-routing-node--direct {
    left: 1%;
    right: auto;
  }

  .smart-routing-node--vpn {
    left: auto;
    right: 1%;
  }

  .smart-routing-node--direct > strong,
  .smart-routing-node--vpn > strong {
    font-size: 17px;
  }

  .smart-routing-node > i {
    top: 9px;
    right: 9px;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 390px) {
  .chapter-visual--adaptive .smart-routing-card {
    min-height: 530px;
  }

  .smart-routing-node--direct,
  .smart-routing-node--vpn {
    padding: 13px 11px;
  }

  .smart-routing-node--direct > span,
  .smart-routing-node--vpn > span {
    max-width: calc(100% - 22px);
    font-size: 7px;
  }

  .smart-routing-node--direct > strong,
  .smart-routing-node--vpn > strong {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-routing-motion {
    display: none;
  }

  .smart-routing-path--direct,
  .smart-routing-path--vpn,
  .smart-routing-node--direct,
  .smart-routing-node--vpn,
  .smart-routing-status {
    animation: none !important;
  }

  .smart-routing-path--direct,
  .smart-routing-path--vpn {
    opacity: .72;
  }

  .smart-routing-status--direct,
  .smart-routing-status--vpn {
    display: none;
  }

  .smart-routing-status--static {
    display: grid;
    color: var(--text-2);
    opacity: 1;
  }
}

/* =========================================================
   v66 — strict Smart Routing diagram inspired by Rig.
   Technical geometry, restrained signals, no card-like glow.
   ========================================================= */
body[data-page="home"] .chapter--adaptive .chapter-copy h3 {
  max-width: 10.5ch;
  font-size: clamp(48px, 5.15vw, 96px);
}

body[data-page="home"] .chapter--adaptive .chapter-visual,
body[data-page="home"] .chapter-visual--adaptive {
  min-height: 720px;
}

.chapter-visual--adaptive .smart-routing-card {
  width: min(100%, 800px);
  min-width: 0;
  min-height: 680px;
  aspect-ratio: 1.16;
  border: 1px solid rgba(244, 242, 238, .16);
  border-radius: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, .018), rgba(255, 255, 255, 0) 32%),
    #07080a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.chapter-visual--adaptive .smart-routing-card::before {
  content: "ROUTING MAP / 02";
  position: absolute;
  inset: 22px auto auto 26px;
  z-index: 5;
  width: auto;
  height: auto;
  color: rgba(244, 242, 238, .42);
  background: none;
  font: 600 8px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.chapter-visual--adaptive .smart-routing-card::after {
  content: "SYSTEM / ACTIVE";
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 5;
  padding: 5px 7px;
  border: 1px solid rgba(198, 255, 74, .2);
  color: rgba(198, 255, 74, .72);
  font: 600 7px/1 var(--mono);
  letter-spacing: .16em;
}

.chapter-visual--adaptive .smart-routing-card .card-grid {
  display: block !important;
  z-index: 0;
  opacity: .36;
  background-image:
    linear-gradient(rgba(244, 242, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 238, .035) 1px, transparent 1px),
    radial-gradient(circle, rgba(244, 242, 238, .11) .7px, transparent .8px);
  background-size: 64px 64px, 64px 64px, 8px 8px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.smart-routing-flow {
  inset: 56px 36px 40px;
}

.smart-routing-flow::before {
  content: "";
  position: absolute;
  inset: 8px 1px 2px;
  z-index: 0;
  border: 1px dashed rgba(244, 242, 238, .095);
  pointer-events: none;
}

.smart-routing-flow::after {
  content: "VPN ACTIVE / SMART ROUTING";
  position: absolute;
  top: 2px;
  left: 17px;
  z-index: 2;
  padding-inline: 7px;
  color: rgba(244, 242, 238, .3);
  background: #07080a;
  font: 500 7px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}

.smart-routing-network {
  z-index: 1;
}

.smart-routing-path {
  vector-effect: non-scaling-stroke;
}

.smart-routing-path--base {
  stroke: rgba(244, 242, 238, .15);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.smart-routing-path--direct,
.smart-routing-path--vpn {
  stroke-width: 1.25;
  stroke-dasharray: 3 6;
  opacity: .18;
}

.smart-routing-path--direct {
  animation: smart-route-direct 8s linear infinite;
}

.smart-routing-path--vpn {
  animation: smart-route-vpn 8s linear infinite;
}

.smart-routing-packet {
  rx: 0;
}

.smart-routing-packet--input,
.smart-routing-packet--direct,
.smart-routing-packet--vpn {
  filter: none;
}

.smart-routing-node {
  padding: 16px 18px;
  border: 1px solid rgba(244, 242, 238, .15);
  border-radius: 0;
  background: rgba(7, 8, 10, .97);
  box-shadow: none;
}

.smart-routing-node::before,
.smart-routing-node::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
}

.smart-routing-node::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(244, 242, 238, .46);
  border-left: 1px solid rgba(244, 242, 238, .46);
}

.smart-routing-node::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(244, 242, 238, .46);
  border-bottom: 1px solid rgba(244, 242, 238, .46);
}

.smart-routing-node > span {
  color: rgba(244, 242, 238, .38);
  font: 600 8px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.smart-routing-node > strong {
  margin-top: 11px;
  color: rgba(244, 242, 238, .94);
  font-family: var(--mono);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.smart-routing-node > small {
  margin-top: 9px;
  color: rgba(244, 242, 238, .42);
  font: 500 8px/1.35 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.smart-routing-node > i {
  top: 11px;
  right: 11px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 10px;
}

.smart-routing-node--device {
  left: 3.2%;
  top: 41%;
  width: 25.5%;
  height: 18%;
}

.smart-routing-node--engine {
  left: 36%;
  top: 34%;
  width: 29%;
  height: 32%;
  border-color: rgba(244, 242, 238, .28);
  background: rgba(8, 9, 11, .985);
  box-shadow: inset 2px 0 0 rgba(124, 92, 255, .62);
}

.smart-routing-node--engine > span {
  color: rgba(169, 139, 255, .74);
}

.smart-routing-node--engine > strong {
  margin-top: 13px;
  color: var(--text);
  font-size: clamp(16px, 1.5vw, 23px);
}

.smart-routing-node--engine > em {
  gap: 7px;
  margin-top: 13px;
  color: rgba(244, 242, 238, .34);
  font: 500 7px/1 var(--mono);
  letter-spacing: .12em;
}

.smart-routing-node--engine > em i {
  width: 5px;
  height: 5px;
  border-radius: 0;
  box-shadow: none;
}

.smart-routing-status-stack {
  height: 14px;
  margin-top: 13px;
}

.smart-routing-status {
  font: 600 8px/1 var(--mono);
  letter-spacing: .1em;
}

.smart-routing-node--direct {
  right: 3.2%;
  top: 12%;
  width: 25.5%;
  height: 23%;
  animation: smart-node-direct 8s linear infinite;
}

.smart-routing-node--vpn {
  right: 3.2%;
  bottom: 12%;
  width: 25.5%;
  height: 23%;
  animation: smart-node-vpn 8s linear infinite;
}

.smart-routing-node--direct > span,
.smart-routing-node--vpn > span {
  color: rgba(244, 242, 238, .38);
}

.smart-routing-node--direct > strong,
.smart-routing-node--vpn > strong {
  color: rgba(244, 242, 238, .94);
}

.smart-routing-node--direct > i {
  color: rgba(198, 255, 74, .78);
}

.smart-routing-node--vpn > i {
  color: rgba(169, 139, 255, .78);
}

@keyframes smart-route-direct {
  0%, 8%, 46%, 100% { opacity: .18; }
  16%, 39% { opacity: .9; filter: none; }
}

@keyframes smart-route-vpn {
  0%, 51%, 91%, 100% { opacity: .18; }
  60%, 84% { opacity: .9; filter: none; }
}

@keyframes smart-status-direct {
  0%, 45%, 100% { opacity: 1; transform: none; }
  50%, 95% { opacity: 0; transform: none; }
}

@keyframes smart-status-vpn {
  0%, 48%, 96%, 100% { opacity: 0; transform: none; }
  53%, 92% { opacity: 1; transform: none; }
}

@keyframes smart-node-direct {
  0%, 8%, 46%, 100% { border-color: rgba(244, 242, 238, .15); box-shadow: none; }
  16%, 39% { border-color: rgba(198, 255, 74, .48); box-shadow: inset 2px 0 0 rgba(198, 255, 74, .68); }
}

@keyframes smart-node-vpn {
  0%, 51%, 91%, 100% { border-color: rgba(244, 242, 238, .15); box-shadow: none; }
  60%, 84% { border-color: rgba(169, 139, 255, .5); box-shadow: inset 2px 0 0 rgba(124, 92, 255, .7); }
}

@media (max-width: 980px) {
  body[data-page="home"] .chapter--adaptive .chapter-copy h3 {
    max-width: 10.5ch;
  }

  .chapter-visual--adaptive .smart-routing-card {
    width: min(100%, 760px);
    min-height: 650px;
  }
}

@media (max-width: 700px) {
  body[data-page="home"] .chapter--adaptive .chapter-visual,
  body[data-page="home"] .chapter-visual--adaptive {
    min-height: 600px;
  }

  .chapter-visual--adaptive .smart-routing-card {
    min-height: 600px;
    aspect-ratio: auto;
  }

  .chapter-visual--adaptive .smart-routing-card::before {
    top: 18px;
    left: 18px;
  }

  .chapter-visual--adaptive .smart-routing-card::after {
    top: 15px;
    right: 16px;
  }

  .smart-routing-flow {
    inset: 52px 18px 26px;
  }

  .smart-routing-flow::before {
    inset: 3px 0 0;
  }

  .smart-routing-flow::after {
    display: none;
  }

  .smart-routing-node {
    padding: 13px 14px;
    border-radius: 0;
  }

  .smart-routing-node > span {
    font-size: 7px;
    letter-spacing: .13em;
  }

  .smart-routing-node > strong {
    margin-top: 8px;
    font-size: 15px;
  }

  .smart-routing-node > small {
    margin-top: 7px;
    font-size: 7px;
  }

  .smart-routing-node--device {
    left: 10%;
    top: 4%;
    width: 80%;
    height: 15%;
  }

  .smart-routing-node--engine {
    left: 10%;
    top: 29%;
    width: 80%;
    height: 25%;
  }

  .smart-routing-node--engine > strong {
    font-size: 19px;
  }

  .smart-routing-node--engine > em {
    margin-top: 9px;
    font-size: 6px;
  }

  .smart-routing-status-stack {
    margin-top: 9px;
  }

  .smart-routing-node--direct,
  .smart-routing-node--vpn {
    top: auto;
    bottom: 4%;
    width: 44%;
    height: 24%;
  }

  .smart-routing-node--direct {
    left: 1%;
    right: auto;
  }

  .smart-routing-node--vpn {
    left: auto;
    right: 1%;
  }

  .smart-routing-node--direct > strong,
  .smart-routing-node--vpn > strong {
    font-size: 13px;
  }

  .smart-routing-node > i {
    top: 8px;
    right: 8px;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .chapter-visual--adaptive .smart-routing-card {
    min-height: 570px;
  }

  .smart-routing-flow {
    inset-inline: 12px;
  }

  .smart-routing-node--direct,
  .smart-routing-node--vpn {
    padding-inline: 10px;
  }

  .smart-routing-node--direct > strong,
  .smart-routing-node--vpn > strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-routing-path--direct,
  .smart-routing-path--vpn,
  .smart-routing-node--direct,
  .smart-routing-node--vpn,
  .smart-routing-status {
    animation: none !important;
  }

  .smart-routing-path--direct,
  .smart-routing-path--vpn {
    opacity: .68;
  }
}

/* v67 — crisp 90-degree routing geometry. */
.smart-routing-path {
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
}

/* =========================================================
   v68 — mobile visibility hardening for Smart Routing.
   This final override wins over all legacy chapter rules.
   ========================================================= */
@media (max-width: 700px) {
  body[data-page="home"] .chapter--adaptive {
    content-visibility: visible !important;
    contain: none !important;
    overflow: visible !important;
  }

  body[data-page="home"] .chapter--adaptive .chapter-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 48px !important;
  }

  body[data-page="home"] .chapter--adaptive .chapter-visual,
  body[data-page="home"] .chapter-visual--adaptive {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 620px !important;
    height: 620px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body[data-page="home"] .chapter-visual--adaptive .smart-routing-card {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 600px !important;
    height: 600px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    isolation: isolate !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .chapter-visual--adaptive .smart-routing-card::before,
  .chapter-visual--adaptive .smart-routing-card::after,
  .chapter-visual--adaptive .smart-routing-card .card-grid {
    display: block !important;
    visibility: visible !important;
  }

  .smart-routing-flow {
    display: block !important;
    position: absolute !important;
    inset: 52px 14px 26px !important;
    z-index: 2 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .smart-routing-flow::before {
    display: block !important;
    visibility: visible !important;
  }

  .smart-routing-network {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .smart-routing-network--desktop {
    display: none !important;
  }

  .smart-routing-network--mobile {
    display: block !important;
  }

  .smart-routing-node {
    display: flex !important;
    z-index: 3 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .smart-routing-node--device {
    left: 10% !important;
    top: 4% !important;
    width: 80% !important;
    height: 15% !important;
  }

  .smart-routing-node--engine {
    left: 10% !important;
    top: 29% !important;
    width: 80% !important;
    height: 25% !important;
  }

  .smart-routing-node--direct,
  .smart-routing-node--vpn {
    top: auto !important;
    bottom: 4% !important;
    width: 44% !important;
    height: 24% !important;
  }

  .smart-routing-node--direct {
    left: 1% !important;
    right: auto !important;
  }

  .smart-routing-node--vpn {
    left: auto !important;
    right: 1% !important;
  }
}

@media (max-width: 350px) {
  body[data-page="home"] .chapter--adaptive .chapter-visual,
  body[data-page="home"] .chapter-visual--adaptive {
    min-height: 590px !important;
    height: 590px !important;
  }

  body[data-page="home"] .chapter-visual--adaptive .smart-routing-card {
    min-height: 570px !important;
    height: 570px !important;
  }

  .smart-routing-flow {
    inset-inline: 10px !important;
  }
}

/* =========================================================
   v70 — supplied PNG brand mark in the site header.
   Footer branding remains unchanged.
   ========================================================= */
.site-header .brand .brand-mark,
.site-footer .brand .brand-mark {
  display: none;
}

.site-header .brand::before,
.site-footer .brand::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: url("assets/scanvpn-logo.png") center / contain no-repeat;
}

@media (max-width: 680px) {
  .site-header .brand::before,
  .site-footer .brand::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

/* =========================================================
   v75 — iOS 18 globe overlays and mobile icon refinements.
   ========================================================= */

/* COBE's native overlay uses CSS Anchor Positioning, which Safari on iOS 18
   does not implement. The component now mirrors the generated anchor
   coordinates into left/top, while these transforms centre the overlays on
   the marker before applying the collision-safe label offset. */
.globe-pulse-marker {
  transform: translate(-50%, -50%);
}

.globe-location-label {
  transform:
    translate(
      calc(-50% + var(--globe-label-x, 0px)),
      calc(-50% + var(--globe-label-y, -46px))
    )
    scale(.96);
}

@media (hover: hover) {
  .cobe-globe-pulse:hover .globe-location-label {
    transform:
      translate(
        calc(-50% + var(--globe-label-x, 0px)),
        calc(-50% + var(--globe-label-y, -46px))
      )
      scale(1);
  }
}

/* A taller stage and a slightly lower globe provide enough room for the dense
   European label cluster on narrow iPhone screens. */
@media (max-width: 680px) {
  body[data-page="locations"] .locations-globe-card {
    width: 100%;
    height: clamp(440px, 122vw, 500px);
    aspect-ratio: auto;
  }

  body[data-page="locations"] .locations-globe-root {
    inset: auto;
    top: 55%;
    left: 50%;
    width: min(88vw, 360px);
    height: auto;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
  }

  .guide-globe-card {
    min-height: 470px;
  }

  .guide-globe-card .locations-globe-root,
  .guide-globe-card .locations-globe-fallback svg {
    width: min(82%, 340px);
  }

  .guide-globe-card .locations-globe-root {
    top: 55%;
  }
}

/* The first menu item receives programmatic focus when the drawer opens.
   Touch Safari treats that as focus-visible, so suppress only the touch-only
   focus rectangle while preserving keyboard focus on desktop. */
@media (hover: none) and (pointer: coarse) {
  .menu-nav a:focus,
  .menu-nav a:focus-visible {
    outline: none;
  }
}

/* Draw the US flag in CSS instead of relying on the platform emoji font. */
.flag-us {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 1.46px,
    #fff 1.46px 2.92px
  );
}

.flag-us::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 43%;
  height: 54%;
  background: #3c3b6e;
}

/* Force text-style arrows; the variation selector prevents iOS from replacing
   the symbol with the blue square emoji. */
.clients-row__store::after {
  content: ' ↗︎';
  font-family: var(--mono);
  font-variant-emoji: text;
}

.clients-row__logo::after {
  content: '↗︎';
  font-family: var(--mono);
  font-variant-emoji: text;
}

.button,
.button *,
.menu-footer,
.clients-row__store,
.clients-row__logo {
  font-variant-emoji: text;
}

/* The HAPP shield is optically denser than the neighbouring wordmarks. */
body[data-page="home"] .clients-row:nth-child(1) .clients-row__logo img {
  width: 28px;
  max-width: 28px;
  max-height: 35px;
}

@media (max-width: 680px) {
  body[data-page="home"] .clients-row:nth-child(1) .clients-row__logo img {
    width: 26px;
    max-width: 26px;
    max-height: 32px;
  }
}
