/**
 * NEXA TV — phones (≤768px)
 * Same design as desktop: all sections visible, same colors/components.
 * Layout scales down; nothing hidden or replaced with a “mobile-only” UI.
 */

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .container {
    width: min(1120px, 100% - 1.25rem);
    margin-inline: auto;
  }

  .nav__cta-mobile,
  .mobile-bar {
    display: none !important;
  }

  .nav__brand img {
    height: 36px;
    max-height: none;
  }

  /* Hero: two-column like desktop when width allows */
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    text-align: left;
  }

  .hero__visual {
    display: block !important;
  }

  .hero__title {
    font-size: clamp(1.85rem, 7.5vw, 3rem);
  }

  .hero__lead {
    font-size: 0.95rem;
    max-width: 100%;
    margin-inline: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__actions .btn {
    width: auto;
    min-height: 2.75rem;
  }

  .hero__stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  /* Features: 3-up grid + icons (desktop) */
  .features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .feature {
    padding: 1rem;
  }

  .feature__icon {
    display: flex !important;
    width: 42px;
    height: 42px;
    font-size: 0.72rem;
  }

  .feature::before {
    display: none !important;
    content: none !important;
  }

  .feature h3 {
    font-size: 0.9rem;
  }

  .feature p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Compare: stack NEXA card + chart; one column of bars (readable on phones) */
  .compare__summary {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .compare__chart,
  .compare__nexa-savings {
    display: flex !important;
  }

  .compare__disclaimer {
    display: block !important;
  }

  .compare__nexa-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .compare__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .compare__chart {
    overflow-x: visible;
  }

  /* Pricing: desktop-style controls */
  .plan-type {
    display: flex;
    width: 100%;
  }

  .plan-type__btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.8rem;
    padding: 0.65rem 0.35rem;
    white-space: normal;
    line-height: 1.2;
  }

  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .plan-rates-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .plan-rates-block + .plan-rates-block {
    padding-left: 0;
    padding-top: 1.15rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .price-card--overview {
    padding: 1.35rem 1.15rem;
  }

  .price-card--overview .price-card__features li {
    font-size: 0.85rem;
    padding: 0.42rem 0 0.42rem 1.15rem;
  }

  .faq__list {
    grid-template-columns: 1fr;
  }

  /* Steps: 3-column like desktop */
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .steps li {
    padding: 1rem 0.5rem;
    text-align: center;
    border-bottom: none;
  }

  .steps__num {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    background: transparent;
    border: 2px solid var(--blue);
  }

  .steps h3 {
    font-size: 0.95rem;
  }

  .steps p {
    font-size: 0.8rem;
  }

  .contact-fab {
    display: flex !important;
  }

  .cta-banner__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
  }

  .cta-banner .btn {
    width: auto;
    flex-shrink: 0;
  }
}

/* Very narrow: stack hero & compare summary only */
@media (max-width: 540px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__lead,
  .hero__actions,
  .hero__stats {
    margin-inline: auto;
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .compare__summary {
    grid-template-columns: 1fr;
  }

  .compare__list .compare-row__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .compare__list .compare-row__price {
    width: 100%;
    white-space: normal;
    text-align: left;
  }

  .compare-row__nexa-top {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-row__price--nexa {
    flex-basis: auto;
    justify-content: flex-start;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
  }

  .compare-row__price-dot {
    display: none;
  }

  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 380px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .compare__grid {
    grid-template-columns: 1fr;
  }

  .compare__nexa-prices {
    grid-template-columns: 1fr;
  }
}
