/* Zoom journey styles. Kept separate so the scroll landing stays untouched. */
html[data-landing="zoom"] { --trl-zoom-css: 1; }
html[data-landing="zoom"]:not(.zoom-live) main#top,
html[data-landing="zoom"]:not(.zoom-live) .footer { visibility: hidden; }
html[data-landing="zoom"].zoom-live { scroll-behavior: auto; }
html[data-landing="zoom"].zoom-live main#top { display: none; }
html[data-landing="zoom"].zoom-live #zoomStage { position: fixed; inset: 0; z-index: 1; }
html[data-landing="zoom"].zoom-live #zoomSpacer { display: block; }
html[data-landing="zoom"] #zoomGL,
html[data-landing="zoom"] #zoomArt { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html[data-landing="zoom"] #zoomArt { display: none; }
html[data-landing="zoom"].zoom-nogl #zoomGL { display: none; }
html[data-landing="zoom"].zoom-nogl #zoomArt { display: block; }
html[data-landing="zoom"].zoom-nogl #zoomStage {
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--purple) 10%, var(--ink)), var(--ink) 70%);
}
html[data-landing="zoom"] .zstation-copy {
  position: absolute;
  left: max(6vw, 24px);
  top: calc((100% + var(--nav-h, 72px)) / 2);
  translate: 0 -50%;
  width: min(460px, 38vw);
  /* Never a scroll box on a wide screen: landing-zoom.js scales a chapter
     that is too tall instead (fitCopies). clip, unlike hidden, leaves the
     vertical axis visible, so not even the hero's intro can flash a
     scrollbar. Phones restore their scrolling sheet below. */
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  visibility: hidden;
  opacity: 0;
  transform-origin: 50% 50%;
  pointer-events: none;
}
/* Only a window too short to fit a chapter at a readable scale. */
html[data-landing="zoom"] .zstation-copy.zcopy-scroll { overflow-y: auto; overscroll-behavior: contain; }
html[data-landing="zoom"] .zstation-copy[data-layout="wide"] {
  left: 50%;
  translate: -50% -50%;
  width: min(1180px, calc(100vw - 48px));
}
/* Hero no longer owns a full-screen section or its large side gutters. */
html[data-landing="zoom"] .zstation-copy .hero-inner { padding: 0; width: 100%; }
html[data-landing="zoom"] .zstation-copy .hero-title { font-size: clamp(32px, 3.8vw, 50px); }
html[data-landing="zoom"] .zstation-copy .hero-copy { margin-top: 22px; font-size: 14px; }
html[data-landing="zoom"] .zstation-copy .hero-actions { margin-top: 24px; gap: 10px; }
html[data-landing="zoom"] .zstation-copy .hero-trust { margin-top: 24px; padding-top: 18px; gap: 24px; }
/* Acts leave their stacked story section; only the journey owns visibility. */
html[data-landing="zoom"] .zstation-copy .act-copy {
  position: static; opacity: 1; transform: none; visibility: visible; padding: 0; border: 0;
}
/* Moved wraps have their own chapter width, not the original section gutters. */
html[data-landing="zoom"] .zstation-copy > .wrap,
html[data-landing="zoom"] .zstation-copy .records > .wrap { width: 100%; max-width: none; padding: 0; }
/* Records must keep the real marquee and its disclaimers inside one viewport. */
html[data-landing="zoom"] .zstation-copy .records { padding: 0; background: transparent; border: 0; }
html[data-landing="zoom"] .zstation-copy .section-head { margin-bottom: 24px; }
html[data-landing="zoom"] .zstation-copy .records-footnote { margin-top: 20px; }
/* A chapter is one screen. The scroll page's card floors (portal 460px,
   pricing 510px) and its second rows below 1100px are what made Platform and
   Pricing taller than the window; here the cards stay on one row and size to
   their content, so fitCopies rarely has to scale them. */
@media (min-width: 900px) {
  html[data-landing="zoom"] .zstation-copy .portal,
  html[data-landing="zoom"] .zstation-copy .pricing-card { min-height: 0; }
  html[data-landing="zoom"] .zstation-copy .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-landing="zoom"] .zstation-copy .portal:last-child { grid-column: auto; }
  html[data-landing="zoom"] .zstation-copy .portal:last-child .portal-art { height: 232px; }
  html[data-landing="zoom"] .zstation-copy .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* The access card and legal line now share a chapter instead of two sections. */
html[data-landing="zoom"] .zstation-copy .access-card {
  margin: 0; padding: clamp(28px, 5vh, 56px) clamp(20px, 4vw, 56px);
}
/* The rest of the footer repeats the nav; only its legal line rides the
   journey, inside the last chapter. */
html[data-landing="zoom"].zoom-live footer.footer { display: none; }
html[data-landing="zoom"] .zstation-copy .footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  margin-top: 16px; padding: 0; border: 0; text-align: center;
  font: 500 10px/1.5 var(--mono); letter-spacing: .06em; color: var(--text-dim);
}
html[data-landing="zoom"] #zoomGauge {
  position: fixed; right: max(16px, 2vw); top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
  padding-right: 12px; z-index: 5; color: var(--text-dim);
}
html[data-landing="zoom"] #zoomGauge::before {
  content: ''; position: absolute; right: 0; top: 0; width: 2px; height: 100%;
  background: var(--line); border-radius: 2px;
}
html[data-landing="zoom"] #zoomGauge::after {
  content: ''; position: absolute; right: 0; top: 0; width: 2px; height: calc(var(--journey-progress, 0) * 100%);
  background: var(--purple); border-radius: 2px;
}
html[data-landing="zoom"] .zg-button {
  display: flex; align-items: center; gap: 9px; border: 0; padding: 2px 0;
  background: none; color: inherit; cursor: pointer; font: 500 10px/1 var(--mono);
}
html[data-landing="zoom"] .zg-button i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
html[data-landing="zoom"] .zg-button span { opacity: 0; }
html[data-landing="zoom"] .zg-button:hover span,
html[data-landing="zoom"] .zg-button:focus-visible span,
html[data-landing="zoom"] .zg-button[aria-current="step"] span { opacity: 1; }
html[data-landing="zoom"] .zg-button[aria-current="step"] { color: var(--text); }
/* Below ~1400px a wide chapter's cards reach under the gauge, and the active
   chapter's name sat on top of them. There the dots alone mark the place;
   hover or focus still names a chapter. */
@media (min-width: 900px) and (max-width: 1399px) {
  html[data-landing="zoom"] #zoomGauge[data-layout="wide"] .zg-button[aria-current="step"]:not(:hover):not(:focus-visible) span { opacity: 0; }
}
html[data-landing="zoom"] #zoomHint {
  position: absolute; bottom: 24px; left: 50%; translate: -50% 0;
  color: var(--text-dim); font: 500 10px/1 var(--mono); letter-spacing: .08em; pointer-events: none;
}
@media (max-width: 899px) {
  html[data-landing="zoom"] .zstation-copy,
  html[data-landing="zoom"] .zstation-copy[data-layout="wide"] {
    left: 16px; right: 16px; top: auto; bottom: max(16px, env(safe-area-inset-bottom)); translate: none;
    width: auto; max-height: 60vh; overflow-y: auto;
  }
  /* Price tiers remain reachable by swiping instead of becoming a tall hidden grid. */
  html[data-landing="zoom"] .zstation-copy .pricing-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 14px;
  }
  html[data-landing="zoom"] .zstation-copy .pricing-card { scroll-snap-align: start; }
  /* Gauge becomes a row under the nav, so it never sits on copy. */
  html[data-landing="zoom"] #zoomGauge {
    top: calc(var(--nav-h, 64px) + 10px); right: auto; left: 50%;
    translate: -50% 0; flex-direction: row; gap: 6px; padding: 0 0 8px;
  }
  html[data-landing="zoom"] #zoomGauge::before { top: auto; bottom: 0; left: 0; width: 100%; height: 2px; }
  html[data-landing="zoom"] #zoomGauge::after {
    top: auto; bottom: 0; left: 0; width: calc(var(--journey-progress, 0) * 100%); height: 2px;
  }
  html[data-landing="zoom"] #zoomHint { display: none; }
  /* The hero keeps headline, paragraph and buttons; the eyebrow pill and
     trust stats are what pushed the button out of view. */
  html[data-landing="zoom"] .zstation-copy .eyebrow,
  html[data-landing="zoom"] .zstation-copy .hero-trust { display: none; }
  html[data-landing="zoom"] .zstation-copy .hero-copy { font-size: 13px; margin-top: 12px; }
  html[data-landing="zoom"] .zstation-copy .hero-actions { margin-top: 14px; }
  html[data-landing="zoom"] .zg-button { min-width: 24px; min-height: 24px; justify-content: flex-end; padding-right: 4px; }
  html[data-landing="zoom"] .zg-button span { display: none; }
  html[data-landing="zoom"] .zstation-copy .hero-title { font-size: 32px; }
  /* The last chapter holds its legal line without inner scrolling. */
  html[data-landing="zoom"] .zstation-copy .access-card { padding: 20px 16px; }
  html[data-landing="zoom"] .zstation-copy .access-card h2 { font-size: 24px; }
  html[data-landing="zoom"] .zstation-copy .access-card p { margin-top: 12px; font-size: 13px; line-height: 1.6; }
  html[data-landing="zoom"] .zstation-copy .access-actions { margin-top: 18px; gap: 8px; }
  /* Records is one gauge tap away; on a phone this second button is what
     pushed the legal line out of the last chapter. */
  html[data-landing="zoom"] .zstation-copy .access-actions .btn-ghost { display: none; }
}
