/* User-friendly type scale — phone, tablet, and desktop */

:root{
  --type-body: 1.0625rem; /* 17px */
  --type-body-sm: 0.9375rem;
  /* Fluid sizes that grow on tablet, not only desktop */
  --type-h1: clamp(1.75rem, 1.05rem + 2.9vw, 2.55rem);
  --type-h2: clamp(1.35rem, 0.9rem + 1.9vw, 2.05rem);
  --type-h3: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem);
  --type-h4: clamp(1.05rem, 0.98rem + 0.35vw, 1.15rem);
  --leading-body: 1.7;
  --leading-tight: 1.28;
  --tap-min: 44px;
}

html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%;}
body{
  font-size:var(--type-body)!important;
  line-height:var(--leading-body)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* Base heading rhythm */
h1,h2,h3,h4,h5,h6{
  line-height:var(--leading-tight)!important;
  letter-spacing:-.02em;
  text-wrap:balance;
  overflow-wrap:anywhere;
  hyphens:auto;
}
h1{
  font-size:var(--type-h1)!important;
  font-weight:700!important;
  margin:0 0 .85rem!important;
}
h2{
  font-size:var(--type-h2)!important;
  font-weight:650!important;
  margin:0 0 .75rem!important;
  letter-spacing:-.025em!important;
}
h3{
  font-size:var(--type-h3)!important;
  font-weight:650!important;
  margin:0 0 .55rem!important;
}
h4{
  font-size:var(--type-h4)!important;
  font-weight:600!important;
  margin:0 0 .4rem!important;
  letter-spacing:-.01em!important;
}

p,li,td,th,dd,dt,.section-desc,.legal-content p,.faq-content,.hero-desc{
  font-size:var(--type-body)!important;
  line-height:var(--leading-body)!important;
  overflow-wrap:break-word;
}
.section-desc,.hero-desc,.blog-intro,.whatsapp-handoff-note{
  font-size:1.05rem!important;
  line-height:1.7!important;
  max-width:42rem;
}
.section-subtitle,.blog-card-meta,.hero-tag,.poster-note,.price-avg,.price-period{
  font-size:.8125rem!important;
  line-height:1.45!important;
}

/* Hero */
.hero-title,
.hero-title-plans,
h1.hero-title,
h1.gradient-text.hero-title{
  font-size:clamp(1.75rem, 1.05rem + 2.9vw, 2.55rem)!important;
  line-height:1.18!important;
  letter-spacing:-.03em!important;
  font-weight:700!important;
  max-width:18ch;
}
.hero-price{font-size:1rem!important;line-height:1.5!important;}
.hero-price strong{font-size:1.125rem!important;}
.hero-trust{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:.65rem 1rem!important;
}
.hero-trust span{font-size:.875rem!important;line-height:1.35!important;}

/* Section headers */
.section-header h2,
#pricing .section-header h2,
.library-heading h2{
  font-size:var(--type-h2)!important;
  text-align:inherit;
}
.section-header{margin-bottom:2rem!important;}

/* Cards / pricing / devices */
.plan-name{font-size:1rem!important;font-weight:600!important;}
.price-amount{font-size:clamp(2.1rem, 1.4rem + 2.5vw, 3rem)!important;line-height:1!important;}
.pricing-features li{font-size:.95rem!important;line-height:1.55!important;}
.feature-card h3,.comparison-card h3,.category-card h3,.poster-cap h3{
  font-size:var(--type-h3)!important;
}
.feature-card p,.poster-cap p,.comparison-list li{font-size:.95rem!important;line-height:1.6!important;}
.faq-group-title{font-size:1.15rem!important;font-weight:600!important;}
.faq-header-btn{
  font-size:1.05rem!important;
  line-height:1.4!important;
  font-weight:600!important;
  min-height:var(--tap-min)!important;
}
.faq-content,.faq-content p,.faq-content li{font-size:1rem!important;line-height:1.7!important;}
.uh-stat-item .uh-stat-num{font-size:clamp(1.2rem, 0.9rem + 1.2vw, 1.6rem)!important;}
.uh-stat-item p{font-size:.8125rem!important;line-height:1.4!important;}
.footer-title{font-size:1rem!important;font-weight:650!important;}
.footer-links a,.footer-brand p,.footer-contact-item p{font-size:.9rem!important;line-height:1.65!important;}
.footer-bottom{font-size:.8125rem!important;}

/* Article / legal */
.legal-content h1,
.blog-page h1,
h1.gradient-text{
  font-size:clamp(1.7rem, 1.05rem + 2.4vw, 2.4rem)!important;
  line-height:1.2!important;
  max-width:none;
}
.legal-content h2{
  font-size:clamp(1.25rem, 0.95rem + 1.2vw, 1.65rem)!important;
  margin-top:1.75rem!important;
  margin-bottom:.65rem!important;
  text-align:left!important;
}
.legal-content h3{
  font-size:clamp(1.1rem, 1rem + 0.4vw, 1.2rem)!important;
  margin-top:1.35rem!important;
  margin-bottom:.45rem!important;
  text-align:left!important;
}
.legal-content h4{
  font-size:1.05rem!important;
  margin-top:1.1rem!important;
  margin-bottom:.35rem!important;
  text-align:left!important;
}
.legal-content p,
.legal-content li{
  font-size:1.05rem!important;
  line-height:1.75!important;
}
.article-toc h2{font-size:1.05rem!important;margin:0 0 .65rem!important;}
.article-byline,.breadcrumb{font-size:.875rem!important;}

/* Tables / comparison */
.plan-comparison-lead,
.plan-comparison-footnote{font-size:1rem!important;line-height:1.65!important;}
.plan-table th,.plan-table td{font-size:.95rem!important;line-height:1.45!important;}
.plan-comparison-heading,
#plan-comparison-heading{font-size:var(--type-h2)!important;text-align:left!important;}
.table-scroll,
.buyer-checklist-table{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}

/* Reseller / CTA */
.reseller-content h2,
.cta-copy h2,
.sports-highlight-content h3{
  font-size:clamp(1.4rem, 1rem + 1.8vw, 2rem)!important;
}

/* Touch-friendly controls */
.btn,
.hamburger,
.nav-close,
.analytics-consent__button,
.pricing-tabs .conn-tab-btn{
  min-height:var(--tap-min);
}
.faq-header-btn{min-height:var(--tap-min)!important;}

/* ——— Tablet (portrait & landscape) ——— */
@media (max-width:1024px){
  .container{padding-inline:clamp(1rem, 3.2vw, 1.75rem)!important;}
  .section{padding-block:clamp(3.25rem, 6vw, 5rem)!important;}
  .hero-title,
  .hero-title-plans{
    max-width:22ch;
  }
  .library-heading{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:1rem!important;
  }
  .pricing-grid{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
    gap:1rem!important;
  }
  .features-grid{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
  }
  .devices-grid{
    grid-template-columns:repeat(3, minmax(0,1fr))!important;
  }
  .poster-wall{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
    gap:1.25rem!important;
  }
  .uh-stats-grid{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
    gap:1.25rem 0!important;
  }
  .cta-panel{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:1.5rem!important;
  }
  .cta-actions{width:100%!important;min-width:0!important;}
  .cta-actions .btn{width:100%!important;}
}

/* ——— Large phone / small tablet ——— */
@media (max-width:768px){
  body{font-size:1.05rem!important;}
  .top-notice-bar{
    font-size:.72rem!important;
    line-height:1.35!important;
    letter-spacing:.01em!important;
    padding:.35rem .75rem!important;
    white-space:normal!important;
    height:auto!important;
    min-height:2rem!important;
  }
  .hero-title,
  .hero-title-plans{
    font-size:clamp(1.7rem, 1rem + 3.4vw, 2.2rem)!important;
    line-height:1.2!important;
    max-width:none!important;
  }
  h1{font-size:clamp(1.7rem, 1rem + 3.2vw, 2.2rem)!important;}
  h2,.section-header h2{
    font-size:clamp(1.35rem, 0.95rem + 2vw, 1.85rem)!important;
  }
  .section-desc,.hero-desc,.legal-content p,.legal-content li{
    font-size:1.05rem!important;
    line-height:1.7!important;
  }
  .hero-ctas{
    flex-direction:column!important;
    width:100%!important;
    max-width:28rem!important;
  }
  .hero-ctas .btn{width:100%!important;}
  .whatsapp-handoff-note{font-size:1rem!important;max-width:none!important;}
  .plan-table th,.plan-table td{
    font-size:.875rem!important;
    white-space:normal!important;
  }
  .faq-header-btn{font-size:1.05rem!important;padding:1rem 0!important;}
  .secure-pay-panel{max-width:100%!important;}
  .footer-grid{gap:2rem!important;}
}

/* ——— Phone ——— */
@media (max-width:600px){
  :root{--tap-min:48px;}
  body{font-size:1rem!important;}
  .container{padding-inline:1.1rem!important;}
  .section{padding-block:3rem!important;}
  .top-notice-bar{
    font-size:.7rem!important;
    line-height:1.4!important;
    padding:.4rem .7rem!important;
  }
  .hero-title,
  .hero-title-plans,
  h1{
    font-size:clamp(1.65rem, 6.8vw, 2rem)!important;
    line-height:1.22!important;
    letter-spacing:-.025em!important;
  }
  h2,.section-header h2{
    font-size:clamp(1.3rem, 5.2vw, 1.65rem)!important;
  }
  h3{font-size:1.15rem!important;}
  h4{font-size:1.05rem!important;}
  .section-desc,.hero-desc,.legal-content p,.legal-content li,
  .faq-content,.faq-content p{
    font-size:1rem!important;
    line-height:1.7!important;
  }
  .hero-tag{font-size:.7rem!important;margin-bottom:1rem!important;}
  .hero-price{font-size:.95rem!important;}
  .hero-price strong{font-size:1.05rem!important;}
  .hero-trust span{font-size:.8125rem!important;}
  .section-subtitle{font-size:.7rem!important;}
  .price-amount{font-size:2.25rem!important;}
  .pricing-grid,
  .features-grid,
  .poster-wall,
  .devices-grid,
  .comparison-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .devices-grid{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
  }
  .pricing-tabs{width:100%!important;}
  .uh-stats-grid{grid-template-columns:repeat(2, minmax(0,1fr))!important;}
  .uh-stat-item .uh-stat-num{font-size:1.25rem!important;}
  .uh-stat-item p{font-size:.75rem!important;}
  .poster-cap h3{font-size:1.1rem!important;}
  .poster-cap p{font-size:.9rem!important;}
  .faq-header-btn{font-size:1rem!important;}
  .reseller-content h2,.cta-copy h2{font-size:1.45rem!important;}
  .footer-links a,.footer-brand p{font-size:.9rem!important;}
  .floating-whatsapp{bottom:1rem!important;right:1rem!important;}
}

/* Narrow phones */
@media (max-width:380px){
  .hero-title,h1{font-size:1.55rem!important;}
  .hero-trust span{font-size:.75rem!important;}
}

/* Prefer readable text when user asks OS to enlarge */
@media (prefers-reduced-motion:reduce){
  h1,h2,h3,h4{text-wrap:pretty;}
}
