/* ═══════════════════════════════════════════════════════
   TendoVPN — Landing v4
   Белые поверхности · глубокий фиолетовый · одна тёмная сцена
   ═══════════════════════════════════════════════════════ */

:root {
  /* brand */
  --violet-950: #150d22;
  --violet-900: #1f1433;
  --violet-800: #33205c;
  --violet-700: #5d39ad;
  --violet-600: #7550c8;
  --violet-500: #8b64e0;
  --violet-300: #c3b0f2;
  --violet-100: #f1ebfd;
  --violet-50:  #f8f5fe;

  /* neutrals */
  --ink: #1b1424;
  --ink-2: #4b4257;
  --muted: #80768c;
  --line: #ebe5f1;
  --line-2: #ddd3e8;
  --bg: #ffffff;
  --bg-soft: #f7f4fb;
  --green: #22995f;
  --green-soft: #e5f6ec;

  /* aliases used by landing.js inline styles */
  --text-secondary: var(--ink-2);
  --text-muted: var(--muted);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(31, 20, 51, .05), 0 4px 14px rgba(31, 20, 51, .05);
  --shadow: 0 2px 4px rgba(31, 20, 51, .04), 0 18px 48px rgba(31, 20, 51, .08);
  --shadow-lg: 0 30px 80px rgba(46, 24, 92, .18);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--violet-600); outline-offset: 3px; border-radius: 8px; }

.accent { color: var(--violet-600); }
.accent-light { color: var(--violet-300); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,153,95,.15); flex: none; }

/* ─────────── Buttons ─────────── */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .ico use[href="#i-arrow"] { }
.btn:hover svg.ico:last-child { transform: translateX(2px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary { background: var(--violet-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -6px rgba(93,57,173,.55); }
.btn-primary:hover { background: var(--violet-700); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 26px -8px rgba(93,57,173,.7); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--violet-300); background: var(--violet-50); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--violet-700); }
.btn-light:hover { background: var(--violet-50); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-onink { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-onink:hover { background: #fff; color: var(--ink); }

/* ─────────── Header ─────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(255,255,255,.78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: rgba(221,211,232,.6); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.logo-mark { width: 32px; height: 32px; }
.logo-word span { color: var(--violet-600); }
.main-nav { display: flex; gap: 4px; margin: 0 auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav a.is-active { color: var(--violet-700); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu { position: absolute; inset: var(--header-h) 0 auto 0; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); animation: menuIn .3s var(--ease); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.mobile-nav > a { padding: 14px 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.mobile-actions { display: grid; gap: 10px; padding-top: 18px; }

/* ─────────── Hero ─────────── */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); }
.hero::before { /* тонкая сетка, гаснущая к краям */
  content: ""; position: absolute; inset: calc(var(--header-h) * -1) 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.status-pill .dot { width: 7px; height: 7px; animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(34,153,95,0); } }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 5.3vw, 70px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; }
.lead { margin-top: 22px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin: 44px 0 0; display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 22px; max-width: 520px; }
.hero-facts div { flex: 1; padding-right: 16px; }
.hero-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.hero-facts dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.35; }

/* hero visual */
.hero-visual { position: relative; height: 600px; display: grid; place-items: center; }
.halo { position: absolute; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139,100,224,.32), rgba(139,100,224,.08) 45%, transparent 70%); filter: blur(10px); }
.phone {
  position: relative; width: 292px; height: 594px; border-radius: 52px; padding: 11px;
  background: linear-gradient(160deg, #2a2236, #0f0b16); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(-2deg); justify-self: end; margin-right: 6%;
}
.phone::after { content: ""; position: absolute; inset: 1px; border-radius: 51px; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #fbf9ff 0%, #f3eefc 100%); padding: 14px 18px 0; display: flex; flex-direction: column; }
.ps-status { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; height: 22px; }
.ps-island { width: 86px; height: 24px; border-radius: 20px; background: #0f0b16; }
.ps-bars { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.ps-bars i { width: 3px; background: var(--ink); border-radius: 1px; }
.ps-bars i:nth-child(1){height:4px}.ps-bars i:nth-child(2){height:6px}.ps-bars i:nth-child(3){height:8px}.ps-bars i:nth-child(4){height:11px}
.ps-head { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.ps-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.ps-brand svg { width: 24px; height: 24px; }
.ps-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-700); font-weight: 700; font-size: 13px; }
.ps-avatar.sm { width: 28px; height: 28px; background: none; } .ps-avatar.sm svg { width: 28px; height: 28px; }
.ps-connect { position: relative; margin: 34px auto 0; width: 150px; height: 150px; display: grid; place-items: center; }
.ps-connect .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(117,80,200,.22); }
.ps-connect .r1 { animation: ringOut 3.2s var(--ease) infinite; }
.ps-connect .r2 { animation: ringOut 3.2s var(--ease) 1.6s infinite; }
@keyframes ringOut { 0% { transform: scale(.72); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
.power { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #9c7bea, var(--violet-700)); box-shadow: 0 16px 34px -8px rgba(93,57,173,.6), 0 0 0 10px rgba(255,255,255,.7), 0 0 0 11px rgba(117,80,200,.14); }
.power svg { width: 38px; height: 38px; }
.ps-state { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.ps-state .dot { width: 7px; height: 7px; }
.ps-timer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.ps-card { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.ps-card small, .ps-mini small { display: block; font-size: 11px; color: var(--muted); }
.ps-card b { font-size: 13px; font-weight: 600; }
.ps-card .chev { width: 16px; height: 16px; color: var(--muted); }
.ps-row { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-mini { padding: 10px 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.ps-mini b { font-size: 16px; font-weight: 600; }
.ps-tabbar { margin: auto -18px 0; height: 62px; background: rgba(255,255,255,.85); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; padding-bottom: 8px; }
.ps-tabbar span { width: 22px; height: 22px; border-radius: 7px; background: var(--line-2); }
.ps-tabbar span.on { background: var(--violet-600); }

.float-card, .float-chip { position: absolute; background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); }
.sub-card { left: -6%; bottom: 12%; width: 222px; padding: 16px 18px; border-radius: 22px; animation: floatY 7s ease-in-out infinite; }
.fc-top { display: flex; justify-content: space-between; align-items: center; }
.fc-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.badge-green { font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 999px; }
.fc-title { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.fc-bar { margin-top: 12px; height: 6px; border-radius: 6px; background: var(--violet-100); overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-500), var(--violet-700)); }
.fc-meta { margin-top: 9px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.app-chip { left: 0; top: 33%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; animation: floatY 8s ease-in-out -3s infinite; }
.app-chip b { display: block; font-size: 14px; line-height: 1.2; } .app-chip small { font-size: 12px; color: var(--muted); }
.app-chip .ok { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #fff; background: var(--green); }
@keyframes floatY { 50% { transform: translateY(-10px); } }
.app-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; background: linear-gradient(145deg, #8b64e0, #5d39ad); }
.app-ic.lg { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
.app-ic.alt { background: linear-gradient(145deg, #4a4458, #1f1a29); }

/* ─────────── Sections ─────────── */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-600); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.section-head h2 { margin-top: 16px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.section-head .btn { margin-top: 28px; }

/* ─────────── Bento ─────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

.tile-speed { grid-column: span 4; display: flex; flex-direction: column; min-height: 380px; background: linear-gradient(180deg, #fff 40%, var(--violet-50)); }
.tile-speed .tile-copy { max-width: 440px; }
.speed-chart { margin: auto -28px 0; width: calc(100% + 56px); height: 170px; }
.speed-chart .grid-lines path { stroke: var(--line); stroke-dasharray: 4 6; }
.speed-chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.speed-chart .tip { fill: #fff; stroke: var(--violet-600); stroke-width: 3; opacity: 0; }
.visible .speed-chart .line, .no-reveal .speed-chart .line { animation: draw 1.8s var(--ease) .2s forwards; }
.visible .speed-chart .tip, .no-reveal .speed-chart .tip { animation: fadeIn .4s 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.tile-foot { position: absolute; left: 28px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 13px !important; color: var(--ink-2); margin: 0 !important; }
.tile-foot .dot { width: 7px; height: 7px; }

.tile-infinity { grid-column: span 2; background: var(--violet-600); color: #fff; border-color: transparent; display: flex; flex-direction: column; justify-content: flex-end; }
.tile-infinity p { color: rgba(255,255,255,.78); }
.tile-infinity .inf { position: absolute; top: -18px; right: 6px; font-size: 200px; line-height: 1; font-weight: 300; letter-spacing: -.05em; color: rgba(255,255,255,.16); transition: transform .6s var(--ease); }
.tile-infinity:hover .inf { transform: rotate(-6deg) scale(1.04); }
.tile-infinity:hover { box-shadow: 0 24px 50px -16px rgba(93,57,173,.6); }

.tile-devices, .tile-secure, .tile-setup { grid-column: span 2; display: flex; flex-direction: column; }
.dev-slots { display: flex; gap: 8px; margin-bottom: 28px; }
.dev-slots span { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: var(--muted); transition: transform .3s var(--ease), background-color .3s; }
.dev-slots span svg { width: 22px; height: 22px; }
.dev-slots span.on { border: 1px solid transparent; background: var(--violet-100); color: var(--violet-700); }
.tile-devices:hover .dev-slots span { transform: translateY(-3px); }
.tile-devices:hover .dev-slots span:nth-child(2) { transition-delay: .04s; } .tile-devices:hover .dev-slots span:nth-child(3) { transition-delay: .08s; }
.tile-devices:hover .dev-slots span:nth-child(4) { transition-delay: .12s; } .tile-devices:hover .dev-slots span:nth-child(5) { transition-delay: .16s; }

.tile-secure { background: var(--violet-950); color: #fff; border-color: transparent; }
.tile-secure p { color: rgba(255,255,255,.66); }
.shield-wrap { position: relative; width: 72px; height: 72px; margin-bottom: 28px; display: grid; place-items: center; }
.shield-wrap .shield { width: 40px; height: 40px; color: var(--violet-300); position: relative; }
.shield-wrap span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(195,176,242,.3); }
.shield-wrap .sr2 { inset: -14px; border-color: rgba(195,176,242,.14); }
.tile-secure:hover .sr1 { animation: ringOut 1.6s var(--ease); }

.mini-flow { display: grid; gap: 8px; margin-bottom: 28px; }
.mini-flow li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 14px; font-weight: 500; transition: background-color .3s; }
.mini-flow li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; }
.tile-setup:hover .mini-flow li:last-child { background: var(--violet-600); color: #fff; }
.tile-setup:hover .mini-flow li:last-child span { border-color: transparent; color: var(--violet-700); }

.tile-support { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: linear-gradient(120deg, #fff 30%, var(--violet-50)); }
.tile-support .btn { margin-top: 22px; }
.chat { display: grid; gap: 10px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px !important; line-height: 1.45; margin: 0 !important; }
.msg.in { background: #fff; border: 1px solid var(--line); color: var(--ink) !important; border-bottom-left-radius: 6px; }
.msg.out { justify-self: end; background: var(--violet-600); color: #fff !important; border-bottom-right-radius: 6px; }
.msg.short { max-width: max-content; }

/* ─────────── Dark interface section ─────────── */
.section-dark { padding: 0; }
.dark-shell { margin: 0 clamp(8px, 1.5vw, 20px); padding: clamp(72px, 9vw, 120px) 0; border-radius: var(--radius-xl); background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(117,80,200,.35), transparent 70%), var(--violet-950); color: #fff; overflow: hidden; }
.section-head.on-dark .eyebrow { color: var(--violet-300); }
.section-head.on-dark .section-sub { color: rgba(255,255,255,.66); }
.ui-demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.ui-tabs { display: grid; gap: 6px; }
.ui-tabs button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; border-radius: 16px; border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.ui-tabs button b { display: block; font-size: 16px; font-weight: 600; color: inherit; }
.ui-tabs button small { font-size: 13px; color: rgba(255,255,255,.45); }
.ui-tabs .n { font-size: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); flex: none; }
.ui-tabs button:hover { color: #fff; background: rgba(255,255,255,.04); }
.ui-tabs button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.ui-tabs button[aria-selected="true"] .n { background: var(--violet-600); border-color: transparent; }
.ui-tabs button:focus-visible { outline-color: var(--violet-300); }

.ui-window { border-radius: 24px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.uw-bar { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.uw-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.uw-url { margin-left: 14px; font-size: 12px; color: var(--muted); padding: 5px 12px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.uw-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 430px; }
.uw-side { padding: 20px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.uw-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin: 0 6px 16px; } .uw-brand svg { width: 24px; height: 24px; }
.uw-nav { padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.uw-nav.on { background: var(--violet-100); color: var(--violet-700); font-weight: 600; }
.uw-panels { padding: clamp(20px, 3vw, 34px); }
.uw-panel { animation: panelIn .45s var(--ease); }
.uw-panel:focus-visible { outline-offset: 8px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.uw-kicker { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-600); }
.uw-title { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.uw-sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.uw-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.app-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.app-card b { display: block; font-size: 16px; } .app-card small { font-size: 12.5px; color: var(--muted); }
.app-card.sel { border-color: var(--violet-500); box-shadow: 0 0 0 3px var(--violet-100); }
.app-card .tag { position: absolute; top: -9px; right: 12px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--violet-600); color: #fff; }
.connect-demo { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.cd-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--violet-600); color: #fff; font-weight: 600; box-shadow: 0 12px 28px -10px rgba(93,57,173,.7); }
.cd-btn svg { width: 20px; height: 20px; }
.cd-steps { display: grid; gap: 12px; }
.cd-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.cd-steps svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; }
.cd-steps .cur { color: var(--ink); font-weight: 600; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--violet-100); border-top-color: var(--violet-600); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.sub-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kv { padding: 14px; border-radius: 14px; background: var(--bg-soft); }
.kv small { display: block; font-size: 12px; color: var(--muted); }
.kv b { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 16px; font-weight: 600; }
.kv b.green { color: var(--green); } .kv .dot { width: 7px; height: 7px; }
.days { margin-top: 18px; } .days-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.uw-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; margin-top: 20px; border-radius: 999px; background: var(--violet-600); color: #fff; font-weight: 600; font-size: 14px; }
.uw-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.dev-list { margin-top: 18px; display: grid; gap: 8px; }
.dev-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.dev-list li > div { flex: 1; min-width: 0; }
.dev-list b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-list small { font-size: 12.5px; color: var(--muted); }
.dl-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-700); flex: none; } .dl-ic svg { width: 20px; height: 20px; }
.dl-act { font-size: 12.5px; font-weight: 600; color: #c2475d; padding: 6px 10px; border-radius: 8px; background: #fff0f2; flex: none; }
.dev-list .free { border-style: dashed; } .dev-list .free .dl-ic { background: var(--bg-soft); color: var(--muted); }
.qr-row { margin-top: 20px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; }
.qr { padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.qr svg { width: 100%; height: auto; shape-rendering: crispEdges; }
.link-field { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); min-width: 0; }
.link-field .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-field .copy { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); flex: none; } .link-field .copy svg { width: 16px; height: 16px; }

/* ─────────── How it works ─────────── */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.how-steps { display: grid; gap: 10px; }
.how-step { position: relative; display: flex; gap: 18px; width: 100%; text-align: left; padding: 22px 24px 26px; border-radius: 22px; border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; transition: border-color .3s, box-shadow .3s var(--ease), opacity .3s; }
.how-step:not(.is-active) { opacity: .62; }
.how-step:hover { opacity: 1; border-color: var(--line-2); }
.how-step.is-active { opacity: 1; border-color: var(--violet-300); box-shadow: var(--shadow); }
.hs-n { font-size: 13px; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--bg-soft); color: var(--ink-2); transition: background-color .3s, color .3s; }
.how-step.is-active .hs-n { background: var(--violet-600); color: #fff; }
.hs-body b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.hs-body span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.hs-bar { position: absolute; left: 24px; right: 24px; bottom: 12px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.how-step.is-active .hs-bar { opacity: 1; }
.hs-bar i { display: block; height: 100%; width: 0; background: var(--violet-600); }
.how-step.is-active.is-playing .hs-bar i { animation: stepFill var(--step-ms, 5000ms) linear forwards; }
@keyframes stepFill { to { width: 100%; } }

.how-stage { position: relative; aspect-ratio: 1 / .86; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 40%, rgba(139,100,224,.18), transparent 65%), var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.how-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.hv { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.hv.is-active { opacity: 1; transform: none; }
.hv-card { position: relative; width: min(340px, 100%); padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hv-card.center { display: grid; justify-items: center; padding: 30px 22px; }
.hv-card.center .ps-connect { margin-top: 0; }
.hv-plans { margin-top: 14px; display: grid; gap: 8px; }
.hv-plans span { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.hv-plans span.sel { border-color: var(--violet-500); background: var(--violet-50); box-shadow: 0 0 0 3px var(--violet-100); }
.hv-card .uw-btn { width: 100%; justify-content: center; }
.hv-card.tg { background: #fff; }
.tg-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tg-head small { margin-left: auto; color: var(--muted); font-size: 12px; }
.hv-card .msg { max-width: 100%; justify-self: start; }
.tg-btn { display: block; margin-top: 10px; padding: 11px; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--violet-700); background: var(--violet-100); }

/* ─────────── Pricing ─────────── */
.included { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.included li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.included svg { width: 16px; height: 16px; color: var(--violet-600); }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-300); }
.plan h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.plan-note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 4px; }
.price .num { font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.price .cur { font-size: 22px; font-weight: 500; color: var(--ink-2); }
.per { margin-top: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.plan .btn { margin-top: auto; }
.save { position: absolute; top: 22px; right: 18px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 4px 9px; border-radius: 999px; }
.plan-featured { background: linear-gradient(165deg, var(--violet-500), var(--violet-700)); color: #fff; border-color: transparent; box-shadow: 0 24px 50px -20px rgba(93,57,173,.7); }
.plan-featured:hover { border-color: transparent; box-shadow: 0 30px 60px -20px rgba(93,57,173,.8); }
.plan-featured .plan-note, .plan-featured .per { color: rgba(255,255,255,.72); }
.plan-featured .price .cur { color: rgba(255,255,255,.8); }
.plan-badge { position: absolute; top: 20px; right: 16px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.plan-forever { background: var(--violet-950); color: #fff; border-color: transparent; }
.plan-forever:hover { border-color: transparent; }
.plan-forever .plan-note, .plan-forever .per { color: rgba(255,255,255,.6); }
.plan-forever .price .cur { color: rgba(255,255,255,.7); }
.pay-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; font-size: 14px; color: var(--ink-2); text-align: center; }
.pay-row p { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.pay-row .ico { width: 18px; height: 18px; color: var(--violet-600); }
.pay-row ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-row li { padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.pay-row .muted { flex-basis: 100%; justify-content: center; font-weight: 400; color: var(--muted); }

/* ─────────── FAQ ─────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; padding: 24px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.faq-question:hover { color: var(--violet-700); }
.pm { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq-item.open .pm { background: var(--violet-600); border-color: var(--violet-600); color: #fff; transform: rotate(180deg); }
.faq-item.open .pm::after { transform: rotate(0deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 52px 26px 0; color: var(--ink-2); font-size: 16.5px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { opacity: 1; transform: none; }

/* ─────────── Final CTA ─────────── */
.final { padding: 0 0 clamp(56px, 8vw, 96px); }
.final-card {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(ellipse 50% 90% at 100% 100%, rgba(195,176,242,.4), transparent 70%), linear-gradient(135deg, var(--violet-600), var(--violet-800));
}
.final-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.final-copy { position: relative; max-width: 560px; }
.final-copy h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }
.final-copy p { margin-top: 14px; font-size: 18px; color: rgba(255,255,255,.78); }
.final-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ─────────── Footer ─────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.site-footer nav a { font-size: 15px; color: var(--ink-2); width: fit-content; transition: color .2s; }
.site-footer nav a:hover { color: var(--violet-700); }
.footer-bottom { position: relative; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }

.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }

/* ─────────── Modal (landing.js) ─────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(21,13,34,.48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px 28px 28px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform .4s var(--ease); text-align: center; }
.modal-overlay.active .modal { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); transition: background-color .2s; }
.modal-close:hover { background: var(--bg-soft); }
.modal-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--violet-100); color: var(--violet-700); }
.modal-icon svg { width: 26px; height: 26px; }
.success-icon { background: var(--green-soft); color: var(--green); }
.error-icon { background: #fff0f2; color: #c2475d; }
.modal-kicker { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-600); }
.modal h3 { margin-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.modal p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.tg-login-wrap { margin: 20px auto 8px; min-height: 40px; display: flex; justify-content: center; }
#tg-wait-note { font-size: 13px; color: var(--muted); }
#guest-checkout-wrap { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--bg-soft); }
#guest-checkout-wrap p { margin-top: 0; font-size: 14px; }
.payment-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-plan-info { margin-top: 18px; text-align: left; font-size: 15px; }
.modal-plan-info input { accent-color: var(--violet-600); }
.confirm-user { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg-soft); text-align: left; }
.confirm-user img { width: 44px; height: 44px; border-radius: 50%; }
.confirm-user-name { font-weight: 600; } .confirm-user-id { font-size: 13px; color: var(--muted); }
.confirm-plan { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.plan-price-confirm { font-weight: 700; color: var(--ink); }
#change-account { margin-top: 12px; }
.spinner { width: 46px; height: 46px; margin: 4px auto 18px; border-radius: 50%; border: 3px solid var(--violet-100); border-top-color: var(--violet-600); animation: spin 1s linear infinite; }
.processing-status { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
#step-success .btn, #step-error .btn { margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─────────── Reveal (класс из landing.js) ─────────── */
.js .gradual-blur-item { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.js .gradual-blur-item.visible { opacity: 1; transform: none; filter: none; }
.hero-copy .gradual-blur-item:nth-child(2) { transition-delay: .06s; }
.hero-copy .gradual-blur-item:nth-child(3) { transition-delay: .12s; }
.hero-copy .gradual-blur-item:nth-child(4) { transition-delay: .18s; }
.hero-copy .gradual-blur-item:nth-child(5) { transition-delay: .24s; }
.plans .plan:nth-child(2) { transition-delay: .05s; } .plans .plan:nth-child(3) { transition-delay: .1s; }
.plans .plan:nth-child(4) { transition-delay: .15s; } .plans .plan:nth-child(5) { transition-delay: .2s; }
.js .hero-visual { animation: heroIn 1.1s var(--ease) .15s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

/* ═════════ Responsive ═════════ */
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .plan { grid-column: span 2; }
  .plan:nth-child(4), .plan:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-facts { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-visual { height: 600px; max-width: 620px; width: 100%; margin: 0 auto; }
  .phone { justify-self: center; margin-right: 0; }
  .app-chip { left: auto; right: 0; top: 42%; }
  .sub-card { left: 0; }
  .ui-demo { grid-template-columns: 1fr; }
  .ui-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; }
  .ui-tabs::-webkit-scrollbar { display: none; }
  .ui-tabs button { width: auto; flex: none; scroll-snap-align: start; }
  .ui-tabs button small { display: none; }
  .uw-body { grid-template-columns: 1fr; }
  .uw-side { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-speed, .tile-support { grid-column: span 2; }
  .tile-infinity { grid-column: span 2; min-height: 220px; }
  .tile-devices, .tile-secure, .tile-setup { grid-column: span 1; }
  .tile-setup { grid-column: span 2; }
  .tile-support { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how-stage { aspect-ratio: auto; height: 340px; order: -1; }
  .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan, .plan:nth-child(4) { grid-column: span 1; }
  .plan:nth-child(5) { grid-column: span 2; }
  .plan-featured { grid-column: span 2; order: -1; }
  .final-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 br { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts dt { font-size: 20px; }
  .hero-facts div + div { padding-left: 12px; }
  .hero-facts div { padding-right: 8px; }
  .hero-visual { height: 500px; }
  .phone { width: 252px; height: 514px; border-radius: 46px; }
  .phone-screen { border-radius: 36px; padding: 12px 14px 0; }
  .ps-connect { width: 124px; height: 124px; margin-top: 24px; }
  .power { width: 88px; height: 88px; }
  .ps-tabbar { margin: auto -14px 0; }
  .halo { width: min(360px, 100%); }
  .phone { justify-self: center; margin-right: 0; }
  .sub-card { left: 0; bottom: 3%; width: 196px; padding: 12px 14px; }
  .fc-title { font-size: 17px; }
  .app-chip { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-speed, .tile-support, .tile-infinity, .tile-devices, .tile-secure, .tile-setup { grid-column: span 1; }
  .tile { padding: 22px; }
  .tile-speed { min-height: 340px; }
  .speed-chart { margin: auto -22px 0; width: calc(100% + 44px); }
  .tile-foot { left: 22px; bottom: 18px; }
  .dark-shell { border-radius: 28px; margin: 0 6px; }
  .app-grid { grid-template-columns: 1fr; }
  .connect-demo { grid-template-columns: 1fr; gap: 20px; }
  .qr-row { grid-template-columns: 1fr; justify-items: start; }
  .qr { width: 160px; }
  .dl-act { display: none; }
  .how-step { padding: 18px 18px 22px; gap: 14px; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:nth-child(4), .plan:nth-child(5), .plan-featured { grid-column: span 1; }
  .payment-actions { grid-template-columns: 1fr; }
  .final-actions, .final-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 30px 20px 22px; }
}
@media (max-width: 360px) {
  .header-actions .btn-primary { padding: 0 12px; }
  .logo-word { font-size: 17px; }
  .hero-facts { flex-direction: column; gap: 12px; }
  .hero-facts div + div { padding-left: 0; border-left: 0; }
  .sub-card { width: 180px; }
  .app-chip small { display: none; }
}

/* ═════════ Reduced motion ═════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .gradual-blur-item { opacity: 1; transform: none; filter: none; }
  .speed-chart .line { stroke-dashoffset: 0; } .speed-chart .tip { opacity: 1; }
}
