/* TIWY Lab v4 — fullscreen steps + iOS app-switcher carousels */
:root {
  --bg: #07090d;
  --card: rgba(18, 24, 32, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #f4f6fa;
  --muted: #8b9bb0;
  --accent: #3ec4ff;
  --accent2: #34d399;
  --glow: rgba(62, 196, 255, 0.35);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(62,196,255,.11), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 40%, rgba(52,211,153,.05), transparent 50%);
}
a { color: var(--accent); text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

/* —— Fullscreen pages (desktop wheel + mobile reels swipe) —— */
.deck {
  position: relative; z-index: 1;
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.page {
  min-height: 100%;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(56px + var(--safe-t)) 20px calc(72px + var(--safe-b));
  position: relative;
}
.page-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}
.page-kicker {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.page-kicker i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2);
}
.page h1, .page h2 {
  margin: 0 0 12px; letter-spacing: -0.03em; line-height: 1.12; font-weight: 700;
}
.page h1 { font-size: clamp(26px, 5.5vw, 42px); }
.page h2 { font-size: clamp(22px, 4vw, 32px); }
.page .lead {
  color: var(--muted); font-size: clamp(14px, 2.8vw, 16.5px);
  max-width: 36em; margin: 0 0 20px; line-height: 1.55;
}
.grad {
  background: linear-gradient(105deg, #fff 10%, var(--accent) 55%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* —— Top bar —— */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(7,9,13,.55);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; font-size: 16px; color: var(--text); }
.logo em { font-style: normal; color: var(--accent); font-weight: 600; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.page-indicator {
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
  min-width: 40px; max-width: 42vw; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* —— Floating sound (all slides) —— */
.fab-sound {
  position: fixed; z-index: 60;
  right: 14px; bottom: calc(18px + var(--safe-b));
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line2);
  background: rgba(18,24,32,.72);
  backdrop-filter: blur(14px);
  color: var(--text); font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.fab-sound:hover { background: rgba(255,255,255,.12); }
.fab-sound:active { transform: scale(0.96); }
.fab-sound.on { border-color: rgba(62,196,255,.4); box-shadow: 0 0 20px var(--glow); }

/* Mobile layout polish: no CTA/hint collisions, usable Mira chat */
@media (max-width: 860px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(88px + var(--safe-b)); /* room for CTA + sound FAB */
  }
  .page-inner {
    padding-bottom: 0;
    width: 100%;
  }
  .switcher {
    margin-bottom: 4px;
  }
  /* (switcher-hint hidden globally below) */
  .mid-cta {
    position: relative;
    z-index: 4;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-bottom: 0;
    padding-right: 0;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    clear: both;
  }
  .mid-cta .btn {
    position: relative;
    z-index: 4;
    max-width: 100%;
  }
  /* dual CTAs: stack cleanly on narrow phones */
  .mid-cta:not(.mira-cta) {
    justify-content: flex-start;
  }
  /* sound FAB: keep clear of primary CTA row */
  .fab-sound {
    bottom: calc(12px + var(--safe-b));
  }

  /* —— Mira: full-width panel + CTA under it, centered —— */
  .mira-stage {
    gap: 16px;
    max-width: 100%;
  }
  .mira-wrap {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }
  .mira-aside {
    display: none !important;
  }
  .mira-phone.iphone,
  .mira-phone {
    width: 100% !important;
    max-width: none !important;
    border-radius: 18px;
    padding: 0;
    background: #0b1018;
    border: 1px solid var(--line2);
    box-shadow: 0 12px 36px rgba(0,0,0,.35);
  }
  .mira-phone::before {
    display: none;
  }
  .mira-phone .iphone-island {
    display: none;
  }
  .mira-phone .iphone-screen {
    aspect-ratio: auto !important;
    /* bigger chat area — less chrome, more dialogue */
    height: min(68dvh, 560px);
    min-height: 400px;
    max-height: 620px;
    border-radius: 18px;
    border: none;
  }
  .mira-phone .iphone-screen::after {
    display: none;
  }
  .mira-phone .iphone-bar {
    padding: 12px 12px 10px;
  }
  .mira-phone .iphone-bar img {
    width: 36px;
    height: 36px;
  }
  .mira-live {
    flex: 1 1 auto;
    min-height: 0;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .mira-compose {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    touch-action: manipulation;
  }
  .mira-compose input {
    font-size: 16px;
    padding: 11px 14px;
    touch-action: manipulation;
  }
  .mira-send {
    width: 42px;
    height: 42px;
    touch-action: manipulation;
  }
  .mira-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .mira-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  /* secondary duplicates primary (same bot) — drop on phone */
  .mira-cta .btn-ghost {
    display: none !important;
  }
  /* slightly tighter header so chat gains space */
  .page[data-title="Диалог"] .lead {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page[data-title="Диалог"] {
    justify-content: flex-start;
    overflow-y: auto;
  }
  .page[data-title="Диалог"] .page-inner {
    padding-bottom: calc(28px + var(--safe-b));
    max-width: 100%;
  }
  .page[data-title="Диалог"] .lead {
    font-size: 13.5px;
    margin-bottom: 12px;
    max-width: none;
  }
  .page[data-title="Диалог"] h2 {
    font-size: 22px;
    margin-bottom: 8px;
    max-width: none;
  }

  /* —— Proof: logos above text, not a side column —— */
  .proof-note-top {
    flex-direction: column !important;
    gap: 10px;
  }
  .proof-logos {
    flex-direction: row !important;
    gap: 10px;
    padding-top: 0;
  }
  .proof-logo {
    width: 40px;
    height: 40px;
  }
  .proof-note {
    margin-bottom: 16px;
  }
  .proof-note .btn-row {
    margin-bottom: 4px;
  }
}

/* —— Right edge nav: dots always; desktop pad only on hover —— */
.edge-nav {
  position: fixed;
  z-index: 55;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  /* slim hit around dots only — pad overlays to the left, doesn't shift dots */
  padding: 40px 8px 40px 16px;
}
@media (max-width: 640px) {
  .edge-nav { right: 4px; padding: 24px 4px; }
}

/* Desktop pad — hidden until hover near page dots (left of dots) */
.desk-nav {
  display: none;
  position: absolute;
  right: calc(100% - 4px);
  top: 50%;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(12, 16, 24, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 36px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
}
@media (min-width: 861px) {
  .desk-nav { display: flex; }
  .edge-nav:hover .desk-nav,
  .edge-nav:focus-within .desk-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}
.desk-nav-btn {
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.desk-nav-btn:hover:not(:disabled) {
  background: rgba(62,196,255,.16);
  border-color: rgba(62,196,255,.35);
}
.desk-nav-btn:active:not(:disabled) { transform: scale(0.96); }
.desk-nav-btn:disabled {
  opacity: .35;
  cursor: default;
}
.desk-nav-sep {
  height: 1px;
  margin: 2px 4px;
  background: rgba(255,255,255,.1);
}

/* —— Dots (inside edge-nav) —— */
.dots {
  display: flex;
  flex-direction: column;
  gap: 7px;
  /* keep dots clickable; pad sits to the left on desktop */
  position: relative;
  z-index: 2;
}
.dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.22);
  transition: transform .2s, background .2s;
}
.dots button.on {
  background: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 8px var(--glow);
}
@media (max-width: 640px) {
  .dots { gap: 6px; }
  .dots button { width: 5px; height: 5px; }
}

/* —— macOS buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 980px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text); font-weight: 510; font-size: 13.5px;
  cursor: pointer; text-decoration: none !important;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,.08);
  transition: background .15s, transform .15s var(--ease);
}
.btn:hover { background: rgba(255,255,255,.13); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #5ad0ff, #2a9de0);
  border-color: rgba(255,255,255,.22);
  color: #041018; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 18px var(--glow);
}
.btn-primary:hover { background: linear-gradient(180deg, #78daff, #3aadf0); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.16);
  color: var(--muted);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 16px;
}

/* —— iOS app-switcher carousel —— */
.switcher {
  position: relative;
  margin: 8px -8px 0;
  height: min(52vh, 420px);
}
.switcher-track {
  display: flex; align-items: center;
  height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  padding: 20px 0;
  perspective: 1400px;
}
.switcher-track::-webkit-scrollbar { display: none; }
.switcher-card {
  flex: 0 0 auto;
  width: min(70vw, 260px);
  margin: 0 calc(min(8vw, 28px) * -0.15);
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0e14;
  /* side cards: lighter so content is still readable */
  transform: scale(0.78);
  opacity: 0.64;
  filter: brightness(0.8) saturate(0.88);
  transition: transform .4s var(--ease), opacity .4s, filter .4s, box-shadow .4s, border-color .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: grab;
  user-select: none;
}
.switcher-card:active { cursor: grabbing; }
.switcher-card.is-center {
  transform: scale(1);
  opacity: 1;
  filter: none;
  z-index: 2;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(62,196,255,.12);
}
.switcher-card.is-near {
  transform: scale(0.88);
  opacity: 0.84;
  filter: brightness(0.93) saturate(0.96);
  z-index: 1;
}
.switcher-card img,
.switcher-card video {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  pointer-events: none;
}
.switcher-card.wide { width: min(82vw, 380px); }
.switcher-card.wide img,
.switcher-card.wide video { aspect-ratio: 16/10; }
.switcher-card .cap {
  padding: 8px 11px; font-size: 11.5px; color: var(--muted);
  border-top: 1px solid var(--line); background: rgba(10,14,20,.95);
}
/* gesture captions — always off: collide with mid-CTA on phone & desktop */
.switcher-hint {
  display: none !important;
}
/* keep CTA clearly below carousel */
.switcher + .mid-cta,
.switcher-tall + .mid-cta,
.sites-grid + .mid-cta,
.prices + .mid-cta,
.cards-3 + .mid-cta,
.ba + .mid-cta {
  margin-top: 22px;
}

/* spacing rhythm on content pages */
.page-inner > .lead {
  margin-bottom: 18px;
}
.page-inner > .switcher,
.page-inner > .switcher-tall {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .page { justify-content: flex-start; padding-top: calc(64px + var(--safe-t)); }
}
/* Hero stage: desktop = card on the right; mobile = full-bleed bg */
.page.hero-page {
  position: relative;
}
@media (min-width: 861px) {
  .page.hero-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    width: min(1100px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .page.hero-page .hero-stage {
    grid-column: 2;
    grid-row: 1;
  }
  .page.hero-page .page-inner.hero-grid {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .page.hero-page .hero-copy { max-width: 36em; }
}
.hero-stage {
  position: relative;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line2); background: #0a0e14;
  aspect-ratio: 9/16;
  width: min(100%, 400px);
  max-height: min(76vh, 700px);
  margin: 0 auto;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  user-select: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.hero-reels-track {
  display: flex;
  width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.hero-reels-track::-webkit-scrollbar { display: none; }
.hero-reels-slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #0a0e14;
}
.hero-reels-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0a0e14;
  display: block;
  pointer-events: none;
}
.hero-edge {
  position: absolute; top: 0; bottom: 0;
  width: 36px;
  border: none; padding: 0;
  background: rgba(120, 130, 145, 0);
  color: rgba(255,255,255,0);
  font-size: 28px; font-weight: 300; line-height: 1;
  cursor: pointer;
  z-index: 4;
  transition: background .2s ease, color .2s ease;
  display: grid; place-items: center;
}
.hero-edge[hidden] { display: none !important; }
.hero-edge-prev { left: 0; }
.hero-edge-next { right: 0; }
.hero-stage:hover .hero-edge:not([hidden]) {
  background: rgba(100, 110, 125, 0.42);
  color: rgba(255,255,255,0.85);
}
.hero-stage:hover .hero-edge:hover {
  background: rgba(120, 130, 150, 0.58);
  color: #fff;
}
@media (hover: none) {
  .hero-edge-next:not([hidden]) {
    background: rgba(100, 110, 125, 0.28);
    color: rgba(255,255,255,0.55);
    width: 28px;
  }
}
/* Two reels — one capsule, corner chrome (not over the face) */
.hero-top-controls {
  position: absolute;
  /* desktop: inside the 9:16 card, top-right */
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 7;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.reels-seg {
  pointer-events: auto;
  display: inline-flex;
  align-items: stretch;
  padding: 2px;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.55);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 0;
}
.reels-seg-part {
  min-width: 32px;
  min-height: 28px;
  padding: 4px 11px;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.reels-seg-part + .reels-seg-part {
  box-shadow: inset 1px 0 0 rgba(255,255,255,.1);
}
.reels-seg-part:hover {
  color: #fff;
}
.reels-seg-part.on {
  color: #041018;
  background: linear-gradient(180deg, #5ad0ff, #2a9de0);
  box-shadow: 0 2px 10px rgba(62,196,255,.35);
}
.reels-seg-part.on + .reels-seg-part,
.reels-seg-part + .reels-seg-part.on {
  box-shadow: none;
}
.hero-vid-load {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.hero-vid-load[hidden] { display: none !important; }
.hero-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: #3ec4ff;
  border-right-color: rgba(62,196,255,.45);
  animation: heroSpin .75s linear infinite;
  box-shadow: 0 0 18px rgba(62,196,255,.35);
}
@keyframes heroSpin {
  to { transform: rotate(360deg); }
}
.desktop-only { display: revert; }
/* slogan auto-rotate */
.slogan-rotator {
  display: inline-block;
  transition: opacity .45s ease, transform .45s ease;
}
.slogan-rotator.is-out {
  opacity: 0;
  transform: translateY(8px);
}
.slogan-rotator.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Cards grid */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 700px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 16px 14px;
}
.card .ico { font-size: 20px; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
a.card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
  transition: border-color .15s, background .15s, transform .12s;
  cursor: pointer;
}
a.card-link:hover {
  border-color: rgba(62,196,255,.4);
  background: rgba(62,196,255,.08);
}
a.card-link:active { transform: scale(0.99); }
.card-go {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* BA + sites grid */
.ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 560px; margin: 0 auto;
}
.ba figure { margin: 0; text-align: center; }
.ba img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line);
  cursor: zoom-in;
}
.ba figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 18px;
}
.sites-grid figure { margin: 0; text-align: center; }
.sites-grid img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  cursor: zoom-in;
}
.sites-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) {
  .sites-grid { grid-template-columns: 1fr 1fr; }
  .sites-third { display: none; } /* 3-я только desktop */
}
.note {
  margin: 14px auto 0; max-width: 520px;
  font-size: 12.5px; color: var(--muted); line-height: 1.45;
  padding: 10px 12px; border-left: 3px solid var(--accent);
  background: rgba(62,196,255,.06); border-radius: 0 10px 10px 0;
}
.note b { color: var(--text); }

/* iPhone — реальные пропорции ~9:19.5, Dynamic Island внутри экрана */
.iphones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.iphone {
  width: min(100%, 300px);
  /* frame around screen */
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(165deg, #3a3f4a 0%, #1c2028 38%, #0b0d12 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 0 0 2px #050608,
    inset 0 1px 0 rgba(255,255,255,.12),
    0 32px 70px rgba(0,0,0,.55);
  position: relative;
}
.iphone::before {
  content: "";
  position: absolute; right: -2px; top: 22%;
  width: 3px; height: 12%; border-radius: 2px;
  background: #2a2e36;
}
.iphone-screen {
  background: #0a101c;
  border-radius: 34px;
  overflow: hidden;
  /* real phone content area ~9:19.5 */
  aspect-ratio: 9 / 19.5;
  border: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column;
  position: relative;
}
/* Dynamic Island — inside the screen, top center */
.iphone-island {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 6;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
}
.iphone-island::after {
  content: "";
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #0a1628;
  box-shadow: inset 0 0 0 1.5px #1a2840;
}
/* glare + bottom fade */
.iphone-screen::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  border-radius: inherit;
  background:
    linear-gradient(155deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 16%, transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(0,0,0,.3) 80%, rgba(0,0,0,.52) 100%);
}
.iphone-bar {
  padding: 44px 12px 10px; /* room under island */
  background: rgba(12,18,30,.98);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.iphone-bar img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(62,196,255,.35);
  box-shadow: 0 0 12px rgba(62,196,255,.2);
}
.iphone-bar div { font-size: 13px; font-weight: 600; }
.iphone-bar small { display: block; font-weight: 400; color: var(--muted); font-size: 10px; margin-top: 1px; }
.chat-live {
  flex: 1; min-height: 0;
  padding: 12px 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.chat-status {
  font-size: 10px; color: var(--accent); text-align: center; min-height: 14px;
  opacity: 0; transition: opacity .25s;
  flex-shrink: 0;
  padding: 0 8px;
}
.chat-status.show { opacity: 1; }

/* Mira live chat */
.mira-live {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px !important;
}
.mira-compose {
  position: relative;
  z-index: 6;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.98);
  flex-shrink: 0;
}
.mira-compose input {
  flex: 1;
  min-width: 0;
  border-radius: 980px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
}
.mira-compose input:focus {
  border-color: rgba(62,196,255,.4);
}
.mira-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #5ad0ff, #2a9de0);
  color: #041018;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.mira-send:disabled {
  opacity: 0.45;
  cursor: default;
}

/* video note inside chat (talking intro) */
.mira-video-row {
  max-width: 92%;
  align-self: flex-start;
}
.bubble.bubble-video {
  padding: 5px;
  background: #1c2838;
  border-bottom-left-radius: 6px;
  position: relative;
  max-width: min(240px, 78vw);
}
.bubble-video video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #0a0e14;
  vertical-align: middle;
}
/* big Play — user gesture → full sound, no mute toggle */
.mira-vid-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  z-index: 2;
  padding: 0;
  line-height: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  transition: transform .15s ease, background .15s ease, opacity .2s ease;
}
.mira-vid-play:hover {
  background: rgba(0,0,0,.72);
  transform: scale(1.06);
}
.mira-vid-play:active { transform: scale(.96); }
.mira-vid-play-ico {
  font-size: 22px;
  margin-left: 3px; /* optical center for ▶ */
  pointer-events: none;
}
.mira-vid-play[hidden] { display: none !important; }
.bubble-video.is-playing .mira-vid-play { opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  .bubble.bubble-video {
    max-width: min(220px, 72vw);
  }
  .mira-vid-play {
    width: 56px;
    height: 56px;
  }
  .mira-vid-play-ico { font-size: 20px; }
}
/* (mobile mira layout is in the main max-width:860 block above) */
.bubble-row {
  display: flex; flex-direction: column; gap: 2px; max-width: 88%;
  opacity: 0; transform: translateY(10px);
}
.bubble-row.show { opacity: 1; transform: none; transition: opacity .4s, transform .4s var(--ease); }
.bubble-row.me { align-self: flex-end; align-items: flex-end; }
.bubble-row.them { align-self: flex-start; align-items: flex-start; }
.bubble {
  padding: 9px 12px; border-radius: 18px; font-size: 12.5px; line-height: 1.4;
}
.bubble-row.me .bubble { background: #1a4d7c; color: #eaf3ff; border-bottom-right-radius: 5px; }
.bubble-row.them .bubble { background: #1c2838; color: #e8eef6; border-bottom-left-radius: 5px; }
.typing-dot {
  display: inline-flex; gap: 4px; padding: 11px 14px;
  background: #1c2838; border-radius: 18px; border-bottom-left-radius: 5px;
}
.typing-dot i {
  width: 5px; height: 5px; border-radius: 50%; background: #94a3b8;
  animation: bounce 1.2s infinite;
}
.typing-dot i:nth-child(2) { animation-delay: .15s; }
.typing-dot i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Prices big */
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.price {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 16px; min-height: 140px;
  display: flex; flex-direction: column;
}
.price.featured {
  border-color: rgba(62,196,255,.35);
  background: linear-gradient(165deg, rgba(62,196,255,.12), var(--card) 55%);
}
.price .name { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.price .sum { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.price .sum small { font-size: 13px; color: var(--muted); font-weight: 500; }
.price .desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: auto; }
a.price-link {
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
a.price-link:hover {
  border-color: rgba(62,196,255,.45);
  background: rgba(62,196,255,.07);
}
a.price-link:active { transform: scale(0.99); }
.price-go {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 14px;
  list-style: none; display: flex; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 2px; color: var(--muted); font-size: 13.5px; }

.meta-line {
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
  padding: 0;
  line-height: 1.45;
  letter-spacing: 0;
  max-width: 36em; /* same column as .lead / .hero-copy */
  text-align: left;
}
.page.hero-page .hero-copy .meta-line {
  margin-top: 16px;
  /* align with text column, not button optical center */
  max-width: 100%;
}

/* Lightbox — zoom + swipe album from current step */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  touch-action: pan-y;
  user-select: none;
}
.lightbox[hidden] {
  display: none !important;
}
.lb-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
}
.lb-slot > img {
  display: block;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px #000;
  animation: lbZoomIn .28s var(--ease);
}
.lb-slot > video {
  display: block;
  max-width: min(96vw, 520px);
  max-height: min(88vh, 920px);
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #000;
  object-fit: contain;
  box-shadow: 0 24px 80px #000;
  animation: lbZoomIn .28s var(--ease);
}
.lb-slot > video.landscape {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
}
@keyframes lbZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: absolute; top: calc(12px + var(--safe-t)); right: 14px;
  z-index: 3;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 64px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(18,24,32,.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: background .15s, opacity .15s;
}
.lb-nav:hover { background: rgba(255,255,255,.14); }
.lb-nav[hidden] { display: none !important; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-counter {
  position: absolute;
  bottom: calc(14px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 13px;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
  font-variant-numeric: tabular-nums;
}
.lb-counter[hidden] { display: none !important; }
@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 52px; font-size: 24px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* Modal gallery */
.modal {
  display: none; position: fixed; inset: 0; z-index: 180;
  background: rgba(0,0,0,.75); backdrop-filter: blur(14px);
  padding: 16px; align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-box {
  background: #0c1118; border: 1px solid var(--line2);
  border-radius: 18px; width: min(960px, 100%); max-height: 88vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.modal-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.modal-body { overflow: auto; padding: 14px; }
.modal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;
}
.modal-grid img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in;
}

/* —— Mid-funnel CTA —— */
.mid-cta {
  margin-top: 20px;
  justify-content: center;
  gap: 12px;
}
.who-line {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  max-width: 520px; margin: 0 0 16px;
}

/* Dialog page: one centered product cluster (phone + cards + CTA) */
.page[data-title="Диалог"] .page-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 920px;
}
.page[data-title="Диалог"] .page-kicker,
.page[data-title="Диалог"] h2,
.page[data-title="Диалог"] .page-inner > .lead {
  max-width: 640px;
}
.mira-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 760px;
  margin: 8px auto 0;
}
.mira-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0;
}
.mira-phone {
  flex: 0 0 auto;
}
.mira-aside {
  display: none;
}
.mira-aside .card {
  margin: 0;
}
.mira-cta {
  margin-top: 0;
  width: 100%;
  justify-content: center;
  gap: 12px;
}
.mira-cta .btn {
  min-width: 0;
  padding: 11px 20px;
}

/* desktop: phone + cards side by side, CTA centered under both */
@media (min-width: 861px) {
  .mira-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 22px;
  }
  .mira-aside {
    display: flex;
    flex: 1 1 240px;
    max-width: 280px;
    min-width: 210px;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
  }
  .mira-cta {
    justify-content: center;
  }
  .mira-cta .btn {
    min-width: 200px;
  }
  .page[data-title="Диалог"] .page-inner {
    margin-left: auto;
    margin-right: auto;
  }
}

/* —— Proof footnote (end of funnel, not a showcase page) —— */
.proof-note {
  margin: 22px 0 8px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.proof-note-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.proof-logos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.proof-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.14);
  background: #111;
  display: block;
  flex-shrink: 0;
}
.proof-note-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.proof-note-text b { color: var(--text); font-weight: 600; }
.proof-brands { color: var(--text); font-weight: 550; }
.proof-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.proof-strip::-webkit-scrollbar { display: none; }
.proof-clip {
  flex: 0 0 auto;
  width: 72px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: #0a0e14;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
  color: inherit;
  font: inherit;
}
.proof-clip video {
  display: block;
  width: 72px;
  height: 96px;
  object-fit: cover;
  background: #0a0e14;
  pointer-events: none;
}
.proof-clip span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  padding: 5px 4px 6px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proof-clip:hover,
.proof-clip:focus-visible {
  border-color: rgba(62,196,255,.4);
  outline: none;
}
.proof-note-meta {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.75);
}
@media (max-width: 640px) {
  .proof-note-text { font-size: 12.5px; }
}

/* —— Preloader: load → one-tap start with sound —— */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  background: #07090d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
  transition: opacity .45s ease, visibility .45s, background .35s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader.is-ready {
  cursor: pointer;
  background: radial-gradient(ellipse at 50% 40%, rgba(62,196,255,.12), #07090d 62%);
}
.preloader .logo { font-size: 22px; margin-bottom: 4px; }
.pre-bar {
  width: min(280px, 70vw); height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
  transition: opacity .3s ease, height .3s ease, margin .3s ease;
}
.preloader.is-ready .pre-bar {
  opacity: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.pre-bar > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #3ec4ff, #34d399);
  border-radius: 99px; transition: width .25s ease;
}
.pre-txt { font-size: 13px; color: var(--muted); }
.preloader.is-ready .pre-txt {
  font-size: 15px;
  color: var(--text);
  font-weight: 560;
}
.pre-hint {
  max-width: 300px;
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.4;
}
.pre-start {
  margin-top: 6px;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  box-shadow: 0 0 0 0 rgba(62,196,255,.45);
  animation: prePulse 1.8s ease-out infinite;
}
.pre-start[hidden],
.pre-start-sub[hidden] { display: none !important; }
.pre-start-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  font-size: 11px;
  line-height: 1;
}
.pre-start-sub {
  margin: 0;
  font-size: 12.5px;
  color: rgba(148, 163, 184, 0.95);
  max-width: 280px;
  line-height: 1.4;
}
.pre-brand {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.65);
  font-weight: 500;
}
.pre-brand[hidden],
.pre-hint[hidden] { display: none !important; }
/* hero lead: short on mobile, full on desktop */
.lead-short { display: none; }
.lead-full { display: block; }
@keyframes prePulse {
  0% { box-shadow: 0 0 0 0 rgba(62,196,255,.4); }
  70% { box-shadow: 0 0 0 16px rgba(62,196,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,196,255,0); }
}

.deck { opacity: 0; transition: opacity .35s ease; }
.deck.ready { opacity: 1; }


.switcher-spacer {
  flex: 0 0 max(24px, calc(50vw - 140px));
  scroll-snap-align: none;
  pointer-events: none;
  height: 1px;
}
.switcher-card.wide ~ .switcher-spacer,
.switcher:has(.switcher-card.wide) .switcher-spacer {
  flex-basis: max(24px, calc(50vw - 200px));
}

/* Gallery aligned */
.gal-box { max-width: min(1040px, 96vw) !important; width: 100%; }
.gal-focus {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(280px, 2.2fr) minmax(100px, 1fr);
  grid-template-areas:
    "lt top rt"
    "lt hero rt"
    "lt bot rt";
  gap: 10px;
  align-items: center;
}
.gal-hero {
  grid-area: hero;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}
.gal-hero img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; cursor: zoom-in;
  display: block;
}
.gal-side {
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
  height: 100%;
}
.gal-side.left { grid-area: lt; }
.gal-side.right { grid-area: rt; }
.gal-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.gal-row.top { grid-area: top; }
.gal-row.bot { grid-area: bot; }
.gal-side img,
.gal-row img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in;
  opacity: .9; transition: opacity .15s;
  display: block;
}
.gal-side img:hover,
.gal-row img:hover { opacity: 1; }
@media (max-width: 700px) {
  .gal-focus {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "top top"
      "lt rt"
      "bot bot";
    align-items: start;
  }
  .gal-row { grid-template-columns: 1fr 1fr 1fr; }
  .gal-side { flex-direction: column; }
  .gal-side img { aspect-ratio: 3/4; }
}

/* Hero mobile: full-bleed stage as background, text over bottom only */
@media (max-width: 860px) {
  .page.hero-page {
    padding-left: 0; padding-right: 0;
    justify-content: flex-end;
    /* do NOT overflow:hidden — it breaks vertical deck swipe on iOS */
    overflow: visible;
  }
  .page.hero-page .hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    aspect-ratio: auto;
    transform: none;
    right: auto; top: auto;
    /* stage itself doesn't capture vertical scroll of deck */
    pointer-events: none;
  }
  /* bottom scrim only — lower, frees upper video */
  .page.hero-page .hero-stage::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: min(46%, 340px);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      to top,
      #07090d 0%,
      rgba(7, 9, 13, 0.96) 30%,
      rgba(7, 9, 13, 0.7) 62%,
      rgba(7, 9, 13, 0.2) 88%,
      transparent 100%
    );
  }
  /* mobile: under topbar, still top-right — off the face */
  .page.hero-page .hero-top-controls {
    top: calc(10px + var(--safe-t) + 48px);
    right: 12px;
    left: auto;
  }
  .reels-seg-part {
    min-width: 36px;
    min-height: 30px;
    padding: 5px 12px;
    font-size: 13px;
  }
  /* stacked slides — no horizontal overflow scroll (that broke vertical steps) */
  .page.hero-page .hero-reels-track {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: pan-y; /* vertical goes to deck */
    pointer-events: none;
  }
  .page.hero-page .hero-reels-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    flex: none;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
  }
  .page.hero-page .hero-reels-slide.is-active {
    opacity: 1;
    z-index: 1;
  }
  .page.hero-page .page-inner.hero-grid {
    position: relative; z-index: 3;
    min-height: calc(100dvh - 56px);
    display: flex; flex-direction: column; justify-content: flex-end;
    /* compact bottom block — more video above */
    padding: 0 16px calc(16px + var(--safe-b));
    max-width: none;
    width: 100%;
    margin: 0;
    pointer-events: auto;
  }
  .page.hero-page .hero-copy {
    position: relative; z-index: 3;
    max-width: none;
    margin: 0 -16px;
    padding: 28px 16px 10px;
    background: linear-gradient(
      to top,
      rgba(7, 9, 13, 0.98) 0%,
      rgba(7, 9, 13, 0.94) 40%,
      rgba(7, 9, 13, 0.7) 70%,
      rgba(7, 9, 13, 0.2) 90%,
      transparent 100%
    );
    text-shadow: 0 1px 10px rgba(0,0,0,.75);
  }
  .page.hero-page .hero-copy h1 {
    font-size: clamp(20px, 5.2vw, 26px);
    margin-bottom: 8px;
  }
  .page.hero-page .hero-copy .lead-full { display: none !important; }
  .page.hero-page .hero-copy .lead-short {
    display: block !important;
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .page.hero-page .hero-copy .page-kicker {
    color: #7dd3fc;
    margin-bottom: 6px;
    font-size: 10px;
  }
  .page.hero-page .hero-copy .btn-row { gap: 8px; }
  .page.hero-page .hero-copy .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  /* hide A/B/C/G + meta on mobile */
  .page.hero-page .desktop-only,
  .page.hero-page .slogan-pick,
  .page.hero-page .meta-line { display: none !important; }
  .page.hero-page .hero-edge { display: none !important; }
}

.switcher-tall { height: min(58vh, 480px); }
.switcher-tall .switcher-card {
  width: min(72vw, 280px);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  .switcher-card { transition: none; }
}
