/* ═══════════════════════════════════════════════════════════════
   CLOUDDEALS — RESPONSIVE STYLESHEET
   TTBusiness.io design system — mobile-first breakpoints
═══════════════════════════════════════════════════════════════ */

/* ═══ LARGE DESKTOP (1200px+) ═══ */
@media (min-width: 1200px) {
  .container { padding: 0 32px; }
}

/* ═══ TABLET LANDSCAPE (1024px-) ═══ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ TABLET PORTRAIT (900px-) ═══ */
@media (max-width: 900px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-actions .btn-outline-nav { display: none; }
  .nav-inner { gap: 16px; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 24px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-card { max-width: 460px; margin: 0 auto; }

  /* Stats row */
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 150px; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* Pros/Cons */
  .pros-cons-grid { grid-template-columns: 1fr; }

  /* Comparison tables */
  .table-wrap, .full-table-wrap { overflow-x: auto; }
  .table-wrap table, .cs-table { min-width: 650px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ═══ MOBILE (640px-) ═══ */
@media (max-width: 640px) {
  /* Typography */
  :root {
    --topbar-h: 50px;
    --nav-h: 60px;
  }

  body { font-size: 15px; }

  /* Top bar */
  .gift-topbar-inner { font-size: 12px; gap: 6px; padding: 0 40px; }
  .gift-topbar-center { gap: 6px; flex-wrap: wrap; }
  .gift-text { font-size: 11px; white-space: normal; text-align: center; }
  .gift-icon { display: none; }
  .gift-cta-btn { font-size: 11px; padding: 4px 10px; }

  /* Nav */
  .btn-primary-nav { display: none; }
  .btn-outline-nav { display: none; }
  .logo-text { font-size: 17px; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-title { letter-spacing: -0.5px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 320px; justify-content: center; }
  .hero-trust { flex-direction: column; align-items: center; gap: 10px; }
  .trust-sep { display: none; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-desc { margin-bottom: 32px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Pricing */
  .pricing-tabs { flex-wrap: wrap; width: auto; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }

  /* Personas */
  .persona-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Trustpilot */
  .trustpilot-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tp-sep { display: none; }

  /* Coupons */
  .coupons-grid { grid-template-columns: 1fr; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }

  /* Countdown */
  .countdown { gap: 8px; }
  .cd-item { padding: 10px 12px; min-width: 52px; }
  .cd-num { font-size: 22px; }

  /* Stats */
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }

  /* Deal strip */
  .deal-strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .deal-strip-code { width: 100%; justify-content: center; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 40px 0 24px; }

  /* Floating widget */
  .cwf-panel { width: 260px; right: 0; }

  /* Scroll top */
  .scroll-top { bottom: 82px; right: 16px; }
  .coupon-widget-float { bottom: 16px; right: 16px; }

  /* Final CTA */
  .final-cta-btns { flex-direction: column; align-items: center; }
  .final-cta-btns .btn-hero-primary,
  .final-cta-btns .btn-hero-secondary { width: 100%; max-width: 320px; justify-content: center; }
}

/* ═══ SMALL MOBILE (420px-) ═══ */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .coupon-card { min-width: 0; }
  .hero-card { padding: 22px 16px; }
  .deal-strip-inner { padding: 18px 16px; }
}

/* ═══ INNER PAGES RESPONSIVE ═══ */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .vq-grid { grid-template-columns: 1fr; }
  .support-metrics { grid-template-columns: 1fr 1fr; }
  .hosting-model-grid { grid-template-columns: 1fr; }
  .features-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: clamp(22px, 6vw, 32px); }
  .page-hero-ctas { flex-direction: column; }
  .page-hero-ctas .btn-hero-primary,
  .page-hero-ctas .btn-hero-secondary { width: 100%; max-width: 360px; justify-content: center; }
  .uptime-stats { flex-direction: column; }
  .final-verdict-scores { flex-direction: column; }
  .support-metrics { grid-template-columns: 1fr; }
  .verdict-quick-box { padding: 20px 16px; }
  .provider-cards { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .extra-costs-grid { grid-template-columns: 1fr; }

  /* CTA buttons — full width on mobile */
  .vq-cta { display: flex; justify-content: center; }
  .vq-cta .btn-primary-lg,
  .vq-cta .btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 12px;
  }
  /* All .btn-primary-lg inside page content go full width */
  .page-content .btn-primary-lg,
  .review-section .btn-primary-lg,
  .review-cta-box .btn-primary-lg {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 12px;
    justify-content: center;
  }
}

/* ═══ CASE STUDY TABLE ═══ */
@media (max-width: 900px) {
  .cs-table th, .cs-table td { padding: 10px 12px; font-size: 12px; }
}


