/**
 * HabitFlow - Responsive Adjustments & Breakpoint Precision
 * Targeted fixes for 360px, 375px, 390px, 412px, 430px, 768px, 1024px, 1280px, 1440px+
 */

/* Universal anti-overflow constraint */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Small mobile (360px to 389px) */
@media (max-width: 389px) {
  .hero-heading {
    font-size: 1.85rem;
  }

  .phone-frame {
    border-width: 6px;
    border-radius: 28px;
  }

  .btn-lg {
    padding: 0.9rem 1.4rem;
    font-size: 0.975rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 64px;
  }

  .brand-logo {
    font-size: 1.2rem;
  }
}

/* Medium mobile (390px to 430px) */
@media (min-width: 390px) and (max-width: 480px) {
  .hero-heading {
    font-size: 2.15rem;
  }
}

/* Tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid {
    gap: var(--space-8);
  }

  .phone-mockup-wrapper {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Large Screens (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-heading {
    font-size: 4rem;
  }
}

/* Safe Area Inset Support */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-drawer {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
  }

  .app-bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}
