/* =============================================
   PromptKaro — responsive.css
   Mobile-first. 375px → 768px → 1440px
   ============================================= */

/* ===== SMALL MOBILE (up to 480px) ===== */
@media (max-width: 480px) {
  :root {
    --section-py: 60px;
  }

  /* Nav */
  #nav {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo-cursor {
    height: 1.1rem;
  }

  .nav-link {
    display: none;
  }

  .btn-wa {
    padding: 7px 13px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 11px;
  }

  .terminal-window {
    font-size: 0.75rem;
  }

  .terminal-body {
    padding: 12px 14px 16px;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 12px 22px;
  }

  /* Bento grid: single column */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
    flex-direction: column;
  }

  .bcard-mockup {
    width: 100%;
  }

  /* Process: single column */
  .process-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }

  .process-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2px;
    height: 32px;
    margin: 0 auto;
  }

  .process-connector::before {
    width: 2px;
    height: 100%;
    border-top: none;
    border-left: 2px dashed var(--border-hover);
    display: block;
  }

  /* Pricing: horizontal scroll */
  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 16px;
    /* Negative margin to allow full bleed scrolling */
  }

  .pricing-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .pricing-popular {
    transform: none;
  }

  .pricing-popular:hover {
    transform: translateY(-2px);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-row {
    gap: 20px;
  }

  .stat-val {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  /* Hide desktop float, show mobile bar */
  .wa-float {
    display: none;
  }

  .wa-mobile-bar {
    display: flex;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  /* Add bottom padding so footer content isn't hidden behind mobile bar */
  #footer {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

/* ===== TABLET (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  /* Nav */
  .nav-link {
    display: none;
  }

  /* Hero */
  .hero-headline {
    font-size: 3.5rem;
  }

  /* Bento: 2 columns */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    flex-direction: column;
  }

  .bcard-mockup {
    width: 100%;
  }

  .bento-medium {
    grid-column: span 1;
  }

  .bento-small {
    grid-column: span 1;
  }

  /* Process: single column */
  .process-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-connector {
    width: 2px;
    height: 32px;
    margin: 0 auto;
  }

  .process-connector::before {
    width: 2px;
    height: 100%;
    border-top: none;
    border-left: 2px dashed var(--border-hover);
  }

  /* Pricing: 2x2 grid */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-popular {
    transform: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Hide desktop float, show mobile bar */
  .wa-float {
    display: none;
  }

  .wa-mobile-bar {
    display: flex;
  }

  #footer {
    padding-bottom: 70px;
  }
}

/* ===== DESKTOP (769px+) ===== */
@media (min-width: 769px) {
  .wa-mobile-bar {
    display: none;
  }

  .wa-float {
    display: flex;
  }
}

/* ===== LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
  .hero-headline {
    font-size: 5.5rem;
  }

  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-large {
    grid-column: span 2;
  }

  /* Full 3-col process layout */
  .process-wrap {
    grid-template-columns: 1fr 80px 1fr 80px 1fr;
  }
}

/* ===== WIDE DESKTOP (1440px) ===== */
@media (min-width: 1440px) {
  :root {
    --section-py: 140px;
  }

  section {
    max-width: var(--container);
  }

  .hero-headline {
    font-size: 6rem;
  }
}

/* ===== MEDIUM RANGE: 769px - 1199px ===== */
@media (min-width: 769px) and (max-width: 1199px) {
  /* Hero */
  .hero-headline {
    font-size: 4rem;
  }

  /* Bento: 2+1 layout */
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    flex-direction: row;
  }

  /* Process: horizontal */
  .process-wrap {
    grid-template-columns: 1fr 60px 1fr 60px 1fr;
  }

  /* Pricing: 2x2 */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-popular {
    transform: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ===== PRINT ===== */
@media print {
  .grain-overlay,
  .wa-float,
  .wa-mobile-bar,
  #nav,
  .scroll-hint,
  .terminal-window {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
