/* ============================================================
   Brandglider — Hero & global responsive rules
   Breakpoints: 1024 (tablet) · 768 (small tablet) · 560 (phone) · 400 (small phone)
   ============================================================ */

/* ---------- Tablet & below: stack the hero ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; text-align: center; }
  #topnav .nav-tag { display: none; }
  .hero-copy { align-items: center !important; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .play-grid { grid-template-columns: 1fr !important; }

  /* browser leaves absolute flow and becomes an in-line, full-width card */
  .hero-float { display: none !important; }
  .hero-stage { min-height: 0 !important; margin-top: 26px; }
  .hero-browser {
    position: relative !important;
    left: auto !important; right: auto !important; top: auto !important;
    width: 100%; max-width: 460px; margin: 0 auto;
    text-align: left;
  }
  .hero-screen { height: 384px !important; }
  .hero-pop-scale { transform: scale(0.82); }
}

/* ---------- Small tablet ---------- */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  #topnav .nav-tag { display: inline; }
  .showcase-grid { grid-template-columns: 1fr !important; }
  .integ-grid { grid-template-columns: 1fr !important; }
  .tst-grid { grid-template-columns: 1fr !important; }
  #integrations [data-reveal]:first-child { grid-template-columns: 1fr !important; }
  #integrations [data-reveal]:last-child { grid-template-columns: 1fr !important; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .compare-cell { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-screen { height: 360px !important; }
  .hero-pop-scale { transform: scale(0.74); }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .sec { padding-left: 20px !important; padding-right: 20px !important; }

  /* offer banner: never overflow, comfortable side padding */
  .top-banner {
    font-size: 11px !important;
    padding: 6px 36px !important;
    line-height: 1.3;
  }
  .top-banner .banner-inner { gap: 6px !important; }
  .site[data-banner="true"] #topnav { top: 44px; }

  /* header: small logo, tag allowed to wrap, actions aligned right */
  #topnav { padding: 9px 16px !important; gap: 10px; }
  .brand-logo { height: 18px !important; }
  #topnav .nav-tag {
    font-size: 9px !important;
    padding-left: 8px !important;
    line-height: 1.15 !important;
    max-width: 62px;
    white-space: normal !important;
  }
  .nav-actions { gap: 8px !important; }
  .theme-btn { width: 36px !important; height: 36px !important; }
  .nav-cta { padding: 9px 14px !important; font-size: 12.5px !important; }

  #hero { padding-top: 132px !important; padding-bottom: 60px !important; }
  .hero-eyebrow { font-size: 10.5px !important; }
  .hero-h1 { font-size: 44px !important; line-height: 1.02 !important; }
  .hero-sub { font-size: 15px !important; line-height: 1.6 !important; margin-top: 18px !important; }

  /* embed demo: keep the form inside the panel on small screens */
  #integrations .demo-scale { transform: scale(0.72) !important; }

  /* both CTAs stay on ONE row, centered, with spacing */
  .hero-badge-row {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 10px !important;
    width: 100%;
  }
  .hero-badge-row a {
    padding: 13px 16px !important;
    font-size: 13.5px !important;
    white-space: nowrap;
  }

  /* trust points on ONE row */
  .hero-trust {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    font-size: 10.5px !important;
    justify-content: center;
  }
  .hero-trust span { gap: 5px !important; }
  .hero-trust svg { width: 13px; height: 13px; }
  .hero-rating-mobile { display: flex !important; justify-content: center; }

  .hero-browser { max-width: 400px; }
  .hero-screen { height: 344px !important; }
  .hero-pop-scale { transform: scale(0.66); }
}

/* ---------- Small phone ---------- */
@media (max-width: 400px) {
  .hero-h1 { font-size: 38px !important; }
  .hero-sub { font-size: 14px !important; }
  .hero-screen { height: 320px !important; }
  .hero-pop-scale { transform: scale(0.58); }
  .hero-trust { font-size: 9.5px !important; gap: 9px !important; }
  #integrations .demo-scale { transform: scale(0.62) !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  #heroFx { display: none; }
}
