/* ============================================================
   MedEat — Responsive Breakpoints (mobile-first)
   ============================================================ */

/* === NAVIGATION === */
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }
}

/* === HERO === */
@media (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero__content { max-width: 100%; }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__phone-wrap {
    order: -1;
  }

  .hero__phone {
    width: 220px;
  }
}

@media (max-width: 479px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__phone {
    width: 180px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
}

/* === PROBLEM SECTION === */
@media (max-width: 1023px) {
  .problem__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .problem__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
}

/* === FEATURES SECTION === */
@media (max-width: 1023px) {
  .features__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .features__phone-wrap {
    order: -1;
  }

  .features__phone {
    width: 200px;
  }

  /* Convert tabs to accordion-style */
  .feature-tab {
    transform: none !important;
  }
}

/* === PIPELINE SECTION === */
@media (max-width: 767px) {
  .pipeline__steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .pipeline__steps::before {
    top: 0;
    bottom: 0;
    left: 44px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .pipeline__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .pipeline__step-num {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .pipeline__tech {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .pipeline__tech {
    grid-template-columns: 1fr;
  }
}

/* === BILAN SECTION === */
@media (max-width: 1023px) {
  .bilan__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .bilan__phone {
    width: 220px;
    order: -1;
  }
}

/* === SECURITY SECTION === */
@media (max-width: 767px) {
  .security__grid {
    grid-template-columns: 1fr;
  }

  .security__sources {
    gap: var(--space-3);
  }

  .security__quote {
    text-align: left;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .security__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === PRO SECTION === */
@media (max-width: 1023px) {
  .pro__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* === TESTIMONIALS === */
@media (max-width: 1023px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* === DOWNLOAD === */
@media (max-width: 767px) {
  .download__cta {
    flex-direction: column;
    align-items: center;
  }

  .waitlist-form .form-row {
    flex-direction: column;
  }
}

/* === FOOTER === */
@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === SECTION HEADERS === */
@media (max-width: 767px) {
  .section-header {
    margin-bottom: var(--space-10);
  }

  .section {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }
}

/* === CURSOR (desktop only) === */
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  * { cursor: auto; }
}

/* === TABLET MID === */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    padding: var(--space-20) 0;
  }

  .hero__cta { justify-content: flex-start; }
  .hero__stats { margin: 0; }

  .hero__phone { width: 240px; }

  .hero__phone-wrap { order: 0; }
}
