/* ============================================================
   Gud Treats — Mobile stylesheet (≤ 720px)
   Loaded after styles.css so rules override where needed.
   ============================================================ */

@media (max-width: 720px) {

  /* layout */
  .wrap, .wrap-wide { padding: 0 20px; }
  section { padding: 72px 0; }
  section.tight { padding: 56px 0; }

  /* type scale */
  h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.04; }
  h2 { font-size: clamp(30px, 8vw, 40px); line-height: 1.08; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }
  p { font-size: 16px; }
  p.lg { font-size: 18px; }

  /* nav */
  .nav-inner { padding: 14px 20px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo img { width: 34px !important; height: 34px !important; }

  /* hero — always stacked, tighter */
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lede { margin-bottom: 28px; max-width: 100%; }
  .hero-cta { gap: 10px; margin-bottom: 28px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; padding: 14px 18px; font-size: 14px; }
  .hero-meta { gap: 20px; padding-top: 24px; max-width: 100%; flex-wrap: wrap; }
  .hero-meta > div { flex: 1 1 30%; min-width: 80px; }
  .hero-meta .val { font-size: 22px !important; }
  .hero-media { aspect-ratio: 4 / 4; order: -1; }
  [data-hero="typeled"] .hero-media { display: none; }

  /* marquee */
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 18px; gap: 40px !important; }
  .marquee-track { gap: 40px; }

  /* story */
  .twocol { grid-template-columns: 1fr !important; gap: 32px; }

  /* flavors — 2 columns, then rhythm */
  .flavors-head { margin-bottom: 40px; flex-direction: column; align-items: stretch; gap: 16px; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .flavor-card { border-radius: var(--radius); }
  .flavor-body { padding: 14px 14px 18px; gap: 6px; }
  .flavor-body h4 { font-size: 17px; }
  .flavor-body .f-notes { font-size: 12px; }
  [data-imagery="tinted"] .flavor-visual .tint-num { font-size: 54px !important; }

  /* pilot */
  .pilot-grid { grid-template-columns: 1fr !important; gap: 12px; margin-top: 40px; }
  .pilot-step { padding: 24px 20px; min-height: 0; }
  .pilot-step h4 { font-size: 20px; }

  /* pricing */
  .pricing-card {
    grid-template-columns: 1fr !important;
    padding: 28px 22px;
    gap: 24px;
    margin-top: 40px;
  }
  .pricing-card .p-price { font-size: 52px; }
  .pricing-card .p-price sup { font-size: 22px; }
  .pricing-card .btn { width: 100%; justify-content: center; }

  /* quote / testimonials */
  .quote blockquote { font-size: 22px; line-height: 1.3; }

  /* big CTA */
  .cta-big {
    padding: 56px 24px;
    border-radius: var(--radius);
  }
  .cta-big p { font-size: 16px; }
  .cta-big .btn,
  .cta-big .btn-ghost { flex: 1 1 auto; justify-content: center; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .faq-q { font-size: 17px; }
  .faq-a { font-size: 14px; }

  /* footer */
  footer { padding: 40px 0 28px; }
  .foot-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
    margin-bottom: 28px;
  }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* modal */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    max-height: 92vh;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
  }
  .modal-head { padding: 18px 20px; }
  .modal-head h3 { font-size: 19px; }
  .modal-body { padding: 20px; }
  .modal-foot {
    padding: 14px 20px 20px;
    position: sticky;
    bottom: 0;
    background: var(--bg);
  }
  .modal-foot .btn { flex: 1 1 auto; justify-content: center; }

  /* modal flavor picker */
  .flav-picker { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .flav-pill { padding: 12px 6px; }
  .flav-pill .p-name { font-size: 12px; }

  /* form */
  .row2 { grid-template-columns: 1fr !important; gap: 0; }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px; /* prevents iOS zoom */
    padding: 12px 14px;
  }

  /* confirmation */
  .confirm .check-circ { width: 56px; height: 56px; font-size: 24px; }
  .confirm h3 { font-size: 24px; }

  /* tweaks panel — tuck to bottom, full width */
  .tweaks {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 72vh;
    overflow-y: auto;
  }

  /* buttons — bigger tap targets across the board */
  .btn { padding: 14px 20px; font-size: 14px; }
}

/* extra tight — very small phones */
@media (max-width: 380px) {
  h1 { font-size: 36px; }
  .flavor-grid { grid-template-columns: 1fr !important; }
  .flav-picker { grid-template-columns: repeat(2, 1fr) !important; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
