/* =============================================================
   GeoWeChat — Responsive overrides (mobile-first, min-width)
   Base styles in style.css target small phones (320px+).
   ============================================================= */

/* Very small phones: keep floating cards compact so nothing overflows */
@media (max-width: 379px) {
  .float-card { padding: 0.55rem 0.65rem; gap: 0.5rem; font-size: 0.75rem; }
  .float-card__icon { width: 30px; height: 30px; border-radius: 10px; }
  .float-card--c { display: none; }
  .hero__actions .btn { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .gallery__arrow { width: 40px; height: 40px; }
}

/* ≥ 480px: large phones */
@media (min-width: 480px) {
  .hero__points { gap: 0.6rem 1.75rem; }
  .policy-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ≥ 640px: small tablets */
@media (min-width: 640px) {
  .privacy__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .back-to-top { right: 1.5rem; bottom: 1.5rem; }
}

/* ≥ 768px: tablets */
@media (min-width: 768px) {
  .intro__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .policy-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Horizontal stepper */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .steps::before {
    top: 28px;
    bottom: auto;
    left: calc(100% / 6);
    right: calc(100% / 6);
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--c-violet-strong), var(--c-cyan));
  }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; }
  .step__body { height: 100%; }

  .cta__panel { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
  .cta__copy { padding-bottom: clamp(2.25rem, 1.5rem + 4vw, 4.5rem); }
  .cta__visual { height: 100%; min-height: 380px; align-self: stretch; }
  .cta__visual .phone { align-self: flex-end; margin-bottom: -40%; }
}

/* ≥ 960px: desktop navigation and two-column layouts */
@media (min-width: 960px) {
  .js .nav-toggle { display: none; }

  .js .site-nav,
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav__list { flex-direction: row; gap: 0.25rem; }
  .site-nav__link { min-height: 44px; padding: 0.5rem 0.85rem; font-size: 0.9375rem; }
  .site-nav__link[aria-current="page"]::after { left: 50%; bottom: 4px; transform: translateX(-50%); }
  .site-nav__cta { margin-top: 0; }

  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .bg-pin { display: block; }
  .hero__visual { max-width: none; }

  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row--reverse .feature-row__copy { order: 2; }
  .feature-row--reverse .feature-visual { order: 1; }

  .privacy__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
  .play-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-card--a { left: -6%; }
  .float-card--b { left: -8%; }
  .float-card--c { right: -4%; }

  .site-footer__top { grid-template-columns: 1fr 2.4fr; gap: 4rem; }

  .phone { --phone-w: 290px; }
  .phone--sm { --phone-w: 240px; }
}

/* ≥ 1200px: wide desktop */
@media (min-width: 1200px) {
  .hero__inner { gap: 5rem; }
  .policy-links { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .policy-link { flex-direction: column; align-items: flex-start; }
  .policy-link .icon--arrow { margin-left: 0; margin-top: auto; }
  .phone { --phone-w: 300px; }
}
