/* ── sticky CTAs on mobile — hide if already in viewport ──────── */
@media (min-width:760px){.it4-mobile-cta{display:none !important}}

/* ── responsive tightening ──────── */
@media (max-width:760px){
  .topbar-bar{margin:8px 12px 0 !important;max-width:calc(100vw - 24px) !important;border-radius:14px !important;padding:8px 10px !important}
  .topbar-lang button{padding:5px 8px !important;font-size:11px !important}
  .topbar-icon-btn,.topbar-menu-btn{width:32px !important;height:32px !important}
  .section,.exfg{padding:60px 16px !important}
  .trust-inner{padding:12px 14px}
}
@media (max-width:520px){
  .hero-cta{flex-direction:column !important;align-items:stretch !important}
  .hero-cta .btn-main,.hero-cta .btn-ghost{justify-content:center !important;width:100% !important}
  .tbadge{font-size:11.5px !important;padding:6px 10px !important}
  .it4-hero-strip{flex-direction:column;gap:10px}
  .it4-hpill{width:100%;justify-content:center}
}

/* ════════
 * v4.15 — Mobile compaction (2026-05-12)
 * Real bugs from live audit:
 *   - mobile pageH 17,000-18,000 px (vs desktop 8,600 px) → too tall
 *   - .btog-pill 405-435px in 390px viewport → clipped
 *   - 11 plan cards stacked 1-col = 6,000+ px just for plans
 * Fix: 2-col plans on phones, tighter card paddings, wrap btog-pill
 * ════════ */

/* — Phone (≤640px): 2-col plans grid (was 1-col) — */
@media (max-width: 640px){
  .plans-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 4px !important;
  }
  .plan,
  .plan-card{
    padding: 14px 12px !important;
    border-radius: 12px !important;
    overflow: hidden;
  }
  .plan-name{ font-size: 14px !important; line-height: 1.2 !important }
  .plan-price{ font-size: 24px !important; line-height: 1 !important }
  .plan-period{ font-size: 11px !important }
  .plan-specs{ gap: 4px !important }
  .plan-specs .spec{ font-size: 11px !important; padding: 4px 6px !important }
  .plan-btn{ padding: 10px 8px !important; font-size: 12px !important; min-height: 40px !important }
  /* Custom VPS card sits as a sibling card in 2-col grid */
  .it4-custom-plan{ padding: 16px 12px !important }
  /* Recommended badge tiny */
  .plan-pop, .plan-tag{ font-size: 9px !important; padding: 3px 7px !important }
}

/* — Very small phones (≤380px): 1-col fallback (Galaxy A-series, old iPhones) — */
@media (max-width: 380px){
  .plans-grid{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* — btog-pill: allow wrap so 5 buttons fit under 390px — */
.billing-toggle{ flex-wrap: wrap !important }
.btog-pill{ max-width: 100% !important; flex-wrap: wrap !important; justify-content: center }
@media (max-width: 420px){
  .btog-pill{
    padding: 4px !important;
    gap: 2px !important;
    border-radius: 10px !important;
  }
  .btog-btn{
    padding: 6px 8px !important;
    min-width: 56px !important;
    border-radius: 7px !important;
  }
  .btog-btn-label{ font-size: 11px !important }
  .btog-discount{ font-size: 9px !important; padding: 1px 4px !important }
}

/* — Tighter mobile section padding (saves ~200px) — */
@media (max-width: 480px){
  .section{ padding: 28px 14px !important }
  .me-block{ padding: 32px 14px !important }
  footer{ padding: 24px 14px 18px !important }
  .hero{ padding: 48px 14px 32px !important }
}

/* — Windows-VPS grid: 2-col on phone — */
@media (max-width: 640px){
  #windows-vps .plans-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important }
}

/* — Inline overflow guards (defensive) — */
@media (max-width: 640px){
  .me-block, .it4-tp-card, .reveal{ max-width: 100vw }
  .me-text, .hero-sub, .section-sub{ word-wrap: break-word; overflow-wrap: anywhere }
}

/* ── v4.15b: more mobile compaction (deferred till after first audit) ── */

/* exfg features grid → 2-col on phone (was 1-col below 600px, saving ~1,200px) */
@media (max-width: 640px){
  .exfg-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important }
  .exfg-card{ padding: 12px 10px !important; border-radius: 12px !important }
  .exfg-card-num, .exfg-num{ font-size: 22px !important; margin-bottom: 4px !important }
  .exfg-card-title, .exfg-title-card{ font-size: 12px !important; margin-bottom: 4px !important }
  .exfg-card-text, .exfg-text-card{ font-size: 11px !important; line-height: 1.4 !important }
  .exfg-tag{ font-size: 9px !important; padding: 2px 5px !important }
  .exfg-card .exfg-icon{ font-size: 20px !important }
}
@media (max-width: 380px){
  .exfg-grid{ grid-template-columns: 1fr !important }
}

/* Footer top → 2-col on phone (was 1-col) */
@media (max-width: 640px){
  .footer-top{ grid-template-columns: 1fr 1fr !important; gap: 16px !important }
  footer h4, .footer-col h4{ font-size: 13px !important; margin-bottom: 8px !important }
  footer a, .footer-col a{ font-size: 12px !important; line-height: 1.7 !important }
  .footer-bottom{ font-size: 11px !important }
}

/* Windows-VPS section: tighter padding */
@media (max-width: 640px){
  #windows-vps{ padding: 28px 14px !important }
  #windows-vps .section-title{ font-size: 22px !important; margin-bottom: 4px !important }
  #windows-vps .section-sub{ font-size: 13px !important; margin-bottom: 14px !important }
  #windows-vps .plan, #windows-vps .plan-card{ padding: 12px 10px !important }
}

/* ME-block: shrink padding + text */
@media (max-width: 640px){
  .me-block{ padding: 28px 14px !important }
  .me-title{ font-size: 22px !important; line-height: 1.2 !important }
  .me-text, .me-sub{ font-size: 13px !important; line-height: 1.55 !important }
  .me-box{ padding: 14px 12px !important; border-radius: 12px !important }
  .me-box-title{ font-size: 14px !important }
}

/* Hero stats: 2-col at small, save vertical space */
@media (max-width: 640px){
  .hero-stats{ gap: 8px !important; padding-top: 16px !important }
  .hstat{ flex: 1 1 calc(50% - 6px) !important; min-width: 0 !important; padding: 10px 8px !important }
  .hstat-num{ font-size: 20px !important; line-height: 1 !important }
  .hstat-lbl{ font-size: 10px !important; line-height: 1.2 !important; margin-top: 2px !important }
}

/* Reviews/testimonials: tighten gap + padding */
@media (max-width: 640px){
  #reviews, .reviews-section{ padding: 28px 14px !important }
  .testi-grid{ gap: 10px !important }
  .testi-card{ padding: 14px !important }
  .testi-text{ font-size: 12px !important; line-height: 1.5 !important }
  .testi-name{ font-size: 12px !important }
}

/* FAQ: tighten */
@media (max-width: 640px){
  #faq{ padding: 28px 14px !important }
  .faq-item{ margin-bottom: 6px !important }
  .faq-q{ font-size: 13px !important; padding: 12px 14px !important }
  .faq-a-inner{ font-size: 12px !important; line-height: 1.55 !important }
}

/* Compare table: smaller cells */
@media (max-width: 640px){
  #compare{ padding: 28px 10px !important }
  .cmp-table th, .cmp-table td{ font-size: 11px !important; padding: 6px 4px !important }
}

/* "How it works" steps: tighter */
@media (max-width: 640px){
  #how{ padding: 28px 14px !important }
  .step-item{ padding: 14px 12px !important }
  .step-title{ font-size: 14px !important }
  .step-text{ font-size: 12px !important; line-height: 1.5 !important }
}
