/* Global overflow guard — keep html clip only; avoid body/main overflow that breaks cinematic sticky */
body {
  max-width: 100%;
}

main,
.cinematic-story,
.cinematic-story__scroll {
  overflow-x: visible;
}

/* Tablet: contain hero stage before single-column breakpoint */
@media (max-width: 1100px) {
  .hero-dashboard {
    max-width: 100%;
    overflow: hidden;
  }

  .dashboard-stage {
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablet portrait / large phones */
@media (max-width: 980px) {
  .site-header__shell {
    width: min(1120px, calc(100% - 24px));
  }

  .brand-logo {
    height: 30px;
  }

  .site-header__nav {
    gap: 14px;
    padding: 0 16px;
  }

  .hero-dashboard {
    margin-inline: auto;
  }

  .hero-notify--3,
  .hero-notify--4 {
    opacity: 0.92;
  }

  .compare-section__title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
  }

  .compare-section__inner {
    width: min(1180px, calc(100% - 32px));
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-notify--3,
  .hero-notify--4 {
    display: none;
  }

  .hero-notify--1 {
    top: 4%;
    right: 0;
  }

  .hero-notify--2 {
    top: 28%;
    left: -2%;
  }

  .hero-notify {
    width: min(46vw, 200px);
  }

  .hero-social-proof {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-social-proof__text {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta {
    width: 100%;
    white-space: normal;
  }

  .benefits-marquee__viewport {
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .compare-section {
    padding-left: 0;
    padding-right: 0;
  }

  .compare-section__inner {
    width: min(1180px, calc(100% - 24px));
  }

  .compare-section__title-line,
  .compare-section__highlight {
    display: block;
  }

  .faq-premium__lead {
    font-size: 0.95rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .brand-logo {
    height: 26px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
    line-height: 1.08;
  }

  .hero.hero-section .hero-copy > p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .dashboard-stage {
    width: min(88vw, 360px);
  }

  .hero-notify {
    width: min(44vw, 170px);
  }

  .compare-table__cell {
    padding: 14px 16px;
  }

  .compare-table__feature {
    font-size: 0.92rem;
  }

  .compare-table__legacy,
  .compare-table__axxon {
    font-size: 0.9rem;
  }

  .footer-cta {
    width: 100%;
    max-width: 100%;
  }
}

/* iPhone SE / very small */
@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(1.5rem, 9.5vw, 2rem);
  }

  .header-top-inner span {
    font-size: 0.62rem;
  }

  .header-top-inner a {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .dashboard-stage {
    width: min(86vw, 300px);
  }

  .compare-section__badge-text {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-notify,
  .dashboard-desktop img,
  .benefits-marquee__track {
    animation: none !important;
  }
}
