/* Pixel-fidelity corrections based on the original IPTVMaximum desktop/mobile captures.
   Deliberately layered over styles.css to keep the existing vanilla implementation. */

/* The mobile navigation is an independent sibling of the mobile header, so it
   must be hidden on DESKTOP as well. Without this, its links leak into the hero. */
#ast-mobile-popup { display: none; }
#ast-mobile-popup.is-active { display: block; }

/* Original WordPress hero has ONE navy overlay at 50% opacity, not two black
   overlays at 65% each (which made the photograph almost invisible). */
.hero-section::before { background: #091057; opacity: .5; }
.hero-overlay { display: none; }
.hero-typing-headline::after, .typing-headline::after { content: none; }
.hero-typing-headline .typing-cursor { display: inline; }
.hero-stars .star { color: #f5a623; font-size: 16px; line-height: 1; }
.hero-rating-text { font-size: 14px; }
.hero-content { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-description { max-width: 600px; }
.hero-cta-row { justify-content: center; }
.hero-main-title { max-width: 600px; }

/* Elementor's original heading colors are black; the original design only
   uses blue for feature text, cards, buttons and highlighted phrases. */
.section-main-heading, .channels-heading, .step-section-title, .reviews-title,
.faq-title, .why-us-subtitle { color: #000; }

/* Original plan feature list has dotted separators, with circular checkmarks
   only on the top two and bottom two benefits. */
.card-title { font-weight: 700; }
.card-features-list { margin: 20px 0; }
.card-feature-item { position: relative; padding: 0; line-height: 29.7px; border-bottom: 1px dotted rgba(115,115,115,.42); }
.card-feature-item:last-child { border-bottom: 0; }
.card-feature-item svg.check-icon { display: none; }
.card-feature-item:nth-child(-n+2), .card-feature-item:nth-last-child(-n+2) { padding-left: 18px; font-weight: 700; }
.card-feature-item:nth-child(-n+2)::before, .card-feature-item:nth-last-child(-n+2)::before {
  content: '✓'; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: sans-serif;
  font-size: 9px; line-height: 1; top: 8px; left: 0;
  background: #091057; color: #fff;
}
.card-platinum .card-feature-item:nth-child(-n+2)::before,
.card-platinum .card-feature-item:nth-last-child(-n+2)::before { background: #fff; color: #091057; }
.pricing-card { justify-content: center; }
.card-header, .card-footer { width: 100%; text-align: center; }

/* Statistic numbers precede their small descriptive captions in reference. */
.stat-card { flex-direction: column; }

@media (min-width: 600px) {
  #ast-mobile-popup { display: none !important; }
  .hero-section { height: 714px; }
  .hero-inner { align-items: center; text-align: center; }
  .hero-content { transform: translateY(40px); }
  .hero-description { margin-bottom: 25px; }
  .hero-rating-badge { margin-left: 0; }
  .hero-cta-row { gap: 20px; }
  .hero-main-title { margin: 10px 0; }
  
  /* Four exact 295px cards at x=85, 410, 735, 1060 on 1440px screens. */
  #pricing > .container { max-width: 1300px; width: 100%; padding: 0; }
  .pricing-section { padding-top: 14px; padding-bottom: 0; }
  .pricing-header { max-width: 1200px; }
  .pricing-grid { width: 1300px; max-width: 100%; gap: 0; padding-top: 24px; padding-bottom: 30px; }
  .pricing-card { flex: 0 0 295px; width: 295px; height: 794px; min-height: 794px; margin: 15px; }

  .why-us-section { max-width: 1440px; padding: 40px max(30px, calc((100vw - 1200px)/2)); }
  .why-us-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .why-us-left { padding-right: 80px; }
  .why-us-right { align-items: stretch; }
  .best-features-title { text-align: left; }
  .features-2x2 { grid-template-columns: 1fr 1fr; gap: 10px; }

  .posters-track { padding-left: 160px; animation-duration: 110s; }
}

@media (max-width: 599px) {
  .site-header-mobile { border-bottom: 0 !important; }
  .hero-section { height: 582px; }
  .hero-container { width: 100%; padding-top: 96px; padding-bottom: 48px; }
  .hero-content { transform: translateY(17px); }
  .hero-eyebrow { font-size: 12px; }
  .hero-main-title { margin: 10px 0; }
  .hero-rating-badge { flex-direction: column; gap: 4px; margin-top: 10px; margin-left: 0; }
  .hero-rating-text { margin-left: 0; font-size: 12px; }
  .hero-cta-row { gap: 5px; }
  .hero-stars .star { font-size: 17px; }

  /* The real mobile site keeps 40px headings and full-height 795px plans. */
  #pricing > .container { width: 100%; max-width: 100%; padding: 0; }
  .pricing-section { padding-top: 0; padding-bottom: 0; }
  .pricing-header { padding: 5px 10px 0; max-width: 375px; }
  .section-main-heading { font-size: 40px; line-height: 52px; }
  .section-subheading, .section-lead { font-size: 18px; line-height: 29.7px; }
  .pricing-grid { gap: 0; width: 100%; padding-top: 10px; padding-bottom: 30px; }
  .pricing-card { flex: none; width: calc(100% - 30px); max-width: 345.2px; height: 795px; min-height: 795px; margin: 15px auto; padding: 50px 35px; }
  .card-feature-item { line-height: 29.7px; padding: 0; }
  .card-feature-item:nth-child(-n+2)::before,
  .card-feature-item:nth-last-child(-n+2)::before { top: 8px; }

  .step-section-title { font-size: 40px; line-height: 52px; }
  .how-to-section { width: 100%; max-width: 100%; padding: 60px 0 20px; margin: 0; }
  .step-cards-grid { padding-top: 30px; }
  .step-card { width: calc(100% - 20px); max-width: 355px; }
  .stats-section { max-width: 100%; }
  .stat-card { flex-direction: column; }
}

/* Calibration pass: these offsets match the live site's actual section origins. */
.hero-description { font-size: 18px; line-height: 1.6; }
@media (min-width:600px) {
  #posters { height: 320px; }
  #pricing { padding-top: 0; padding-bottom: 0; }
  .posters-track { padding-left: 90px; }
}
@media (max-width:599px) {
  #pricing { padding-top: 0; padding-bottom: 0; }
  .pricing-header { padding-top: 0; }
  .pricing-grid { padding-top: 27px; }
  .hero-description { font-size: 14px; }
}

/* Pricing interior alignment: the real card places the title 50px below its
   upper edge; centered flex caused a 21px vertical offset. */
.pricing-card { justify-content: flex-start; }
.card-price-wrap { margin-top: 20px; }
.price-duration { margin-bottom: 4px; }
.card-feature-item { line-height: 31.7px; }
@media (max-width:599px) { .card-feature-item { line-height: 31.7px; } }
/* The original 50px price numerals use Rubik, which is considerably narrower
   than Poppins (e.g. 64.99 is 141px wide at 50px). */
.price-amount, .price-currency { font-family: var(--font-heading); }
@media (min-width:600px) { .btn-order-now { font-size:18px; } }

/* Match mixed-case reference headline ("With", not "WITH"). */
.hero-typing-headline, .typing-headline { text-transform: none; }
/* The reference's price digits are the original Poppins design, not Rubik. */
.price-amount, .price-currency { font-family: var(--font-nav); }

/* Tablet / small laptop: the source's 1200px fixed desktop chrome and four
   pricing columns cannot fit. Keep 1440px and 375px reference rendering intact. */
@media (min-width:600px) and (max-width:1199px) {
  #ast-desktop-header, .site-header-desktop { display: none !important; }
  #ast-mobile-header, .site-header-mobile {
    display: flex !important; width: 100%; height: 102px;
    align-items: center; justify-content: space-between; padding: 0 24px;
    background: transparent; border: 0;
  }
  #ast-mobile-header .header-col-brand img,
  #ast-mobile-header .mobile-logo-wrap img { max-width: 160px; max-height: 90px; }
  #ast-mobile-popup {
    position: absolute; display: none; top: 102px; left: 0; right: 0;
    z-index: 999; padding: 10px 20px; width:100%; color:#fff;
    background: #091057; box-shadow: 0 12px 24px rgba(0,0,0,.3);
  }
  #ast-mobile-popup.is-active { display: block !important; }
  #ast-mobile-popup .mobile-menu-list { display:flex; flex-direction:column; }
  #ast-mobile-popup .mobile-menu-item { position:relative; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.15); }
  #ast-mobile-popup .mobile-menu-link { color:white; font-size:15px; }
  #ast-mobile-popup .mobile-submenu { display:none; padding-left:18px; }
  #ast-mobile-popup .mobile-menu-item.submenu-open .mobile-submenu { display:block; }
  #ast-mobile-popup .mobile-submenu-toggle { position:absolute;right:0;top:0;color:white; padding:7px; }
  #ast-mobile-popup .mobile-submenu-link { display:block; color:white; padding:5px 0; }
  #pricing > .container, .pricing-grid { width:100%; max-width:100%; }
  .pricing-grid { flex-wrap:wrap; }
  .pricing-card { flex: 0 1 295px; }
  .footer-widgets-grid, .footer-container {
    width:100%;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;
  }
}

/* Small phones down to 320px: remove legacy fixed 335/327px columns. */
@media (max-width:374px) {
  .site-header-mobile { grid-template-columns: minmax(0,1fr) 48px; }
  .mobile-nav-toggle-wrap { width:48px; }
  .devices-heading,.devices-section .section-title,
  .devices-subtitle,.devices-lead { width:100%; max-width:100%; }
  .footer-widgets-grid,.footer-container { width:100%;grid-template-columns:minmax(0,1fr); }
  .bottom-bar-flex,.footer-bottom-container { width:100%; }
  .stats-grid,.devices-carousel-container,.devices-carousel-bar { width:100%;max-width:100%; }
}
@media (max-width:374px) {
  #how-to { overflow-x: clip; }
}
@media (min-width:600px) and (max-width:700px) {
  .why-us-grid { grid-template-columns:minmax(0,1fr); gap:25px; }
  .why-us-left { padding-right:0; }
  .stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .stat-card { min-width:0; padding:10px; margin:2px; }
  .stat-number { font-size:30px; }
  .stat-label { font-size:11px; letter-spacing:0; }
}
@media (max-width:374px) {
  .pricing-header .section-main-heading { font-size:clamp(30px,10vw,36px); overflow-wrap:anywhere; max-width:100%; }
  .stats-section { padding:20px 10px; }
  .stats-grid { width:100%!important; max-width:100%!important; }
}
@media (max-width:374px) {
  .stats-grid { padding:0!important; grid-template-columns:minmax(0,1fr)!important; }
  .stats-grid .stat-card { width:100%; max-width:100%; margin:0; }
}
@media (max-width:374px) {
  .reviews-box-container,.chat-carousel-frame { width:min(100%,calc(100vw - 60px));max-width:100%; }
}
@media (min-width:1200px) {
  .posters-track { padding-top:17px; }
}

/* Full-width headings and left-aligned Why Us copy as in 375px source. */
@media (min-width:375px) and (max-width:599px) {
  .channels-section { padding-top:8px; padding-bottom:0; }
  .channels-heading { width:calc(100vw - 20px); max-width:none; margin-left:-10px; }
  .step-section-title { width:100vw; max-width:none; position:relative; left:-20px; }
  .step-cards-grid { padding-top:82px; }
  .step-title { white-space:nowrap; }
  .why-us-left { align-items:stretch; text-align:left; }
  .why-us-left .why-us-subtitle,.why-us-title,.why-us-desc { text-align:left; }
  .why-us-right { align-items:stretch; }
  .best-features-title { width:100%; text-align:left; margin-left:0; }
}
@media (min-width:375px) and (max-width:599px) {
  #channels { padding-top:8px; }
  #how-to { padding-top:37px; margin-bottom:-94px; }
  .step-cards-grid { padding-top:94px; gap:11px; }
  #why-us { padding-left:0; padding-right:0; }
}

.hero-typing-headline .hero-with { color:#fff; }
.hero-typing-headline .hero-highlight { color:#ec8305; }
@media (min-width:426px) and (max-width:599px) {
  .channels-heading { width:100%;margin-left:0; }
  .step-section-title { width:100%;left:0; }
}

@media (min-width:375px) and (max-width:599px) {
  .devices-heading,.devices-section .section-title { font-size:40px;line-height:52px; }
}

/* Source step-flow cards use the full content lane and larger circular icons. */
#how-to > .container { width:100%;max-width:1200px;padding-left:0;padding-right:0; }
.step-card { justify-content:center; }
.step-icon-circle { width:94px;height:94px; margin-top:0;margin-bottom:10px; }
.step-icon-circle svg { width:37px;height:37px; }
@media (min-width:1200px) {
  #how-to { max-width:1200px; padding:100px 0 20px; }
  .step-cards-grid { width:100%;gap:10px; }
  .step-card { flex:1; min-width:0; }
}
@media (min-width:375px) and (max-width:599px) {
  #how-to > .container {max-width:100%;}
  #how-to .step-section-title {left:0;}
  #how-to .step-cards-grid { padding-left:10px;padding-right:10px; }
  #how-to .step-card {width:100%;max-width:100%;}

  #reviews .reviews-title {font-size:40px;line-height:52px;}
  #reviews .reviews-stars-bar {margin-bottom:116px;}
  #reviews .reviews-screenshots-grid {display:block;width:100%;height:auto;}
  #reviews .chat-screenshot-card {display:none;}
  #reviews .chat-screenshot-card:first-child {display:block;flex:none;width:271px;height:578px;max-width:100%;margin:0 auto;}
  #reviews .reviews-box-container {width:295px;max-width:100%;height:603px;min-height:603px;}
  #reviews {padding-bottom:0;}
  #faqs {padding-top:15px;}
}
@media (min-width:375px) and (max-width:599px) {
  #how-to .step-cards-grid {padding-top:34px;}
  #how-to .step-card { padding-top:42px; padding-bottom:10px; }
}
@media (min-width:1200px) {
  #how-to .step-card { padding-top:70px; padding-bottom:10px; }
}

/* Align the lower mobile sections to the original screenshot's vertical
   landmarks without introducing fixed positions or hiding content. */
@media (min-width:375px) and (max-width:599px) {
  #why-us { margin-top:59px; padding-bottom:122px; }
  .why-us-btn {margin-top:25px;}
  #devices {padding-bottom:106px;}
  #faqs {padding-top:4px;}
  #faqs .faq-title {font-size:40px;line-height:52px;}
  .stat-card:nth-child(2) .stat-label {max-width:220px;}
}
@media (min-width:1200px) {
  #how-to .step-card {padding-top:10px;padding-bottom:10px;justify-content:flex-end;}
}

/* Desktop: reproduce the source's staggered feature-card arrangement, not
   a generic symmetric 2×2 grid. Card origins measured at 1440px. */
@media (min-width:1200px) {
  #why-us {margin-top:-13px; padding-bottom:6px;}
  .why-us-left {transform:translateX(-20px);}
  .why-us-right {transform:translateY(-25px);}
  .features-2x2 {width:600px;max-width:none; grid-template-columns:292px 292px;grid-template-rows:172px 148px;column-gap:16px;row-gap:16px;}
  .features-2x2 .feature-box {width:292px;max-width:none;min-height:0;height:148px;padding:20px;}
  .features-2x2 .feature-box:nth-child(1) {grid-area:1/1;height:172px;}
  .features-2x2 .feature-box:nth-child(2) {grid-area:2/1;}
  .features-2x2 .feature-box:nth-child(3) {grid-area:1/2;transform:translateY(-94px);}
  .features-2x2 .feature-box:nth-child(4) {grid-area:2/2;transform:translateY(-118px);}
  .features-2x2 .feature-box:nth-child(3):hover {transform:translateY(-97px);}
  .features-2x2 .feature-box:nth-child(4):hover {transform:translateY(-121px);}
  #devices {padding-bottom:0;}
  #reviews {max-width:1440px; padding-left:0;padding-right:0;}
  #reviews > .container {max-width:1180px;width:1180px;padding-left:0;padding-right:0;}
  #reviews .reviews-box-container {max-width:1180px;width:1180px;}
  #reviews .reviews-screenshots-grid {justify-content:flex-start;gap:20px;}
  #reviews .chat-screenshot-card:nth-child(n+4) {display:none;}
}
@media (min-width:375px) and (max-width:599px) {
  #faqs .faq-grid {padding-left:0;padding-right:0;}
  #reviews > .container {padding-left:10px;padding-right:10px;}
  #devices .devices-heading {position:relative;left:-10px;width:calc(100% + 20px);}
}
@media (min-width:1200px) {
  .why-us-right {transform:translateY(-16px);}
  #reviews .reviews-box-container {margin-top:52px;padding:0;}
  #reviews {padding-bottom:40px;}
  #faqs .faq-accordion-group {gap:0;}
  #faqs .faq-left {padding-top:101px;}
  #faqs {padding-bottom:38px;}
}
@media (min-width:1200px) {
  #reviews .reviews-box-container {margin-top:82px;}
  #faqs {max-width:1180px;width:1180px;padding-left:0;padding-right:0;}
  #faqs > .faq-grid {padding-left:0;padding-right:0;gap:20px;}
  .pre-footer-banner .banner-container {max-width:880px;width:880px;padding-left:0;padding-right:0;}
  .pre-footer-banner .banner-heading {white-space:nowrap;}
}
@media (min-width:1200px) {
  .pre-footer-banner .banner-container {transform:translateY(-33px);}
}
@media (min-width:375px) and (max-width:599px) {
  #reviews .reviews-stars-bar {margin-bottom:79px;}
  #reviews {padding-bottom:37px;}
  .pre-footer-banner .banner-container {transform:translateY(-52px);}
}

/* Footer legal strip — the source uses a viewport-wide below-footer row,
   while the original clone accidentally nested the strip inside the 40px
   inset of its padded primary-footer wrapper. */
.site-footer.footer-main.footer-widgets-area { padding-bottom: 0; }
.site-footer .footer-bottom-bar {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
  min-height: 81px;
  padding: 0;
}
.site-footer .footer-bottom-container {
  width: min(100%, 1200px);
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  justify-items: start;
  align-items: center;
  padding: 0;
  margin: 0 auto;
}
.site-footer .footer-copyright { justify-self: center; }
.site-footer .footer-legal-nav .legal-menu-list { gap: 0; }
.site-footer .footer-legal-nav .legal-menu-list li a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  line-height: 29.7px;
  padding: 0 9px 0 0;
}
.site-footer .footer-copyright p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  line-height: 19px;
}
@media (min-width:600px) and (max-width:1199px) {
  .site-footer .footer-bottom-container { padding: 0 20px; }
}
@media (max-width:599px) {
  .site-footer .footer-bottom-bar {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    min-height: 161px;
    padding: 24px;
  }
  .site-footer .footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
  .site-footer .footer-legal-nav .legal-menu-list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .site-footer .footer-legal-nav .legal-menu-list li a {
    font-size: 14px;
    line-height: 23.1px;
    padding: 0 20px;
  }
  .site-footer .footer-copyright { justify-self: auto; }
}
