/* =============================================
   DOMAIN CLONE — MOBILE / RESPONSIVE STYLES
   Matches original site's mobile breakpoints
   ============================================= */

/* ── TABLET (≤ 991px) ── */
@media (max-width: 991px) {
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── MOBILE (≤ 767px) ── */
@media (max-width: 767px) {

  /* Header */
  .header__inner { padding: var(--size-150) var(--size-200); height: 52px; }
  .header__logo { height: 22px; }

  /* Hero */
  .hero__wrapper { padding: var(--size-300) var(--size-200); }
  .hero__title { font-size: 26px; }
  .hero__text { font-size: 15px; }

  /* Page */
  .page { padding: var(--size-300) var(--size-200) var(--size-700); }

  /* ── CARD MOBILE LAYOUT ── */
  /*
    Mobile card layout (stacked):
    ┌─────────────────────────────────┐
    │ [Logo]     [Number] [Labels]    │
    ├─────────────────────────────────┤
    │ Description text                │
    │ • Feature • Feature • Feature   │
    ├─────────────────────────────────┤
    │ [9.9 ★★★★★ Outstanding]  [Btn] │
    └─────────────────────────────────┘
  */
  .lineup-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  /* Top row: logo + nudge */
  .lineup-item__top-row {
    display: flex;
    align-items: center;
    gap: var(--size-200);
    padding: var(--size-200);
    border-bottom: 1px solid var(--color-grey-500);
  }

  .lineup-item__logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
  }
  .lineup-item__provider-logo {
    width: 80px;
    height: 80px;
  }

  /* Vertical separator hidden on mobile */
  .lineup-item__separator { display: none; }

  /* Nudge: number + labels beside logo */
  .lineup-item__nudge-wrapper {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--size-100);
  }
  .number { font-size: 24px; }

  /* Text: full width */
  .lineup-item__text-wrapper {
    padding: var(--size-200);
    border-bottom: 1px solid var(--color-grey-500);
    gap: var(--size-150);
  }
  .lineup-item__description { font-size: 14px; }
  .lineup-item__list { flex-direction: column; gap: 6px; }

  /* Bottom row: rating + button side by side */
  .lineup-item__rating-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--size-200);
    gap: var(--size-200);
  }
  .rating {
    flex-direction: row;
    align-items: center;
    gap: var(--size-150);
  }
  .rating__number { font-size: 36px; }
  .rating__stars-wrapper { align-items: flex-start; }
  .stars span { font-size: 14px; }
  .button {
    font-size: 15px;
    min-height: 44px;
    padding: var(--size-100) var(--size-150);
    width: auto;
    flex-shrink: 0;
  }

  /* Ribbon */
  .ribbon { border-radius: 0; }
  .ribbon__text { font-size: 12px; }

  /* FAQ */
  .faq { padding: var(--size-300); border-radius: var(--border-radius); }
  .faq__title { font-size: 20px; }

  /* Editors picks */
  .editors-pick__content { grid-template-columns: 1fr; }
  .editors-pick { padding: var(--size-400) 0; }
  .editors-pick__title { font-size: 22px; }
  .editors-pick-card__rating-wrapper { flex-direction: column; align-items: flex-start; }

  /* Sticky footer */
  .sticky-footer {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: var(--size-150) var(--size-200);
    gap: var(--size-150);
  }
  .sticky-footer__logo-image { height: 36px; }
  .sticky-footer__text-title { font-size: 13px; }
  .sticky-footer__button { font-size: 14px; padding: var(--size-100) var(--size-150); min-height: 40px; }
  .sticky-footer-spacer { height: 80px; }

  /* Footer */
  .footer__content { display: flex; flex-direction: column; text-align: center; }
  .footer__top { flex-direction: column; align-items: center; }
  .footer__navigation { justify-content: center; }
  .footer__bottom { align-items: center; justify-content: center; }
  .footer__logo { height: 20px; }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .hero__title { font-size: 22px; }
  .ribbon__container { display: none; }  /* hide "Limited-Time Offer" label on very small screens */
  .sticky-footer__logo { display: none; }
}

/* ── EXIT POPUP — MOBILE ── */
@media (max-width: 767px) {
  .popup[open] {
    flex-direction: column;
    padding: var(--size-200);
    max-height: 90vh;
    overflow-y: auto;
  }
  .popup__image--desktop { display: none; }
  .popup__image--mobile {
    display: block;
    width: 100%;
    height: 192px;
    object-fit: cover;
    border-radius: var(--border-radius);
  }
  .popup__content {
    padding: var(--size-200) 0 0;
  }
  .popup__bald-claim { font-size: 22px; }
}
