/* =============================================
   DOMAIN CLONE — MOBILE / RESPONSIVE STYLES
   Matches cybernews mobile card layout:
     ┌───────────────────────────────┐
     │ (1) [Best overall] [...]      │  nudge: small # + labels
     ├───────────────────────────────┤
     │                               │
     │           LOGO                │  large centered logo
     │                               │
     ├───────────────────────────────┤
     │  9.9   ★★★★★                 │  rating in gray box
     │        Outstanding            │
     ├───────────────────────────────┤
     │       [ Visit Site → ]        │  full-width button
     ├───────────────────────────────┤
     │  Wix is a great...            │
     │  ✓ Feature                    │  description + features
     │  ✓ Feature                    │
     └───────────────────────────────┘
   ============================================= */

/* ── TABLET (≤ 991px) ── */
@media (max-width: 991px) {
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .editors-pick__content {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

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

  /* ── LINEUP ── */
  .lineup { gap: var(--size-300); margin-bottom: var(--size-500); }

  /* Card layout: flex column with explicit ordering */
  .lineup-item {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: var(--size-200);
    padding: var(--size-200);
  }

  /* Hidden vertical separator from the desktop grid */
  .lineup-item__separator { display: none; }

  /* ── NUDGE (number badge + optional labels) ── */
  .lineup-item__nudge-wrapper {
    order: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--size-100);
    min-width: 0;
    padding: 0;
  }
  .number {
    font-size: 14px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-grey-700);
    color: var(--color-black-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
  }
  .lineup-item__nudge-wrapper .lineup-item__labels-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .label { font-size: 12px; padding: 4px 10px; }

  /* ── LOGO (big, centered) ── */
  .lineup-item__logo-wrapper {
    order: 2;
    width: 100%;
    height: auto;
    padding: var(--size-200) 0;
    justify-content: center;
    align-items: center;
  }
  .lineup-item__provider-logo {
    width: 168px;
    height: 120px;
    max-width: 60%;
    object-fit: contain;
  }

  /* ── RATING + BUTTON ── */
  .lineup-item__rating-wrapper {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--size-150);
    padding: 0;
  }
  .rating {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--size-300);
    background: var(--color-grey-700);
    border-radius: var(--border-radius);
    padding: var(--size-200);
  }
  .rating__number { font-size: 40px; line-height: 1; }
  .rating__stars-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .stars span { font-size: 16px; }
  .rating__text { font-size: 13px; }

  /* Full-width button below the rating box */
  .button {
    font-size: 16px;
    min-height: 52px;
    padding: var(--size-150) var(--size-200);
    width: 100%;
  }

  /* ── DESCRIPTION + FEATURES ── */
  .lineup-item__text-wrapper {
    order: 4;
    padding: var(--size-200) 0 0;
    gap: var(--size-200);
    border-top: 1px solid var(--color-grey-500);
  }
  .lineup-item__description { font-size: 14px; line-height: 1.55; }
  .lineup-item__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .lineup-item__list-item { font-size: 14px; }

  /* Ribbon */
  .ribbon { padding: 8px var(--size-200); }
  .ribbon__text { font-size: 12px; }
  .ribbon__label { font-size: 12px; }

  /* FAQ */
  .faq {
    padding: var(--size-300) var(--size-200);
    border-radius: var(--border-radius);
    margin-bottom: var(--size-500);
  }
  .faq__title { font-size: 20px; margin-bottom: var(--size-200); }
  .faq__question { font-size: 15px; }
  .faq__toggle { padding: var(--size-150) 0; }
  .faq__answer { font-size: 14px; }

  /* ── BASE44 SECTION ── */
  .base44-section { margin: var(--size-500) 0; }
  .base44-section__title { font-size: 20px; }
  .base44-section__subtitle { font-size: 14px; }

  .base44-card__top {
    flex-direction: column;
    align-items: stretch;
    padding: var(--size-200);
    gap: var(--size-150);
  }
  .base44-card__brand { justify-content: flex-start; }
  .base44-card__cta {
    width: 100%;
    justify-content: center;
    padding: var(--size-150) var(--size-200);
    min-height: 44px;
    font-size: 15px;
  }

  /* Cross-chart table — make legible on narrow screens */
  .cross-chart { font-size: 13px; }
  .cross-chart th,
  .cross-chart td { padding: 10px var(--size-100); }
  .cross-chart th { font-size: 12px; }
  .cross-chart th.cross-chart__feature-col { width: 50%; }
  .cross-chart__yes,
  .cross-chart__no { font-size: 15px; }

  /* ── EDITORS PICKS ── */
  .editors-pick { padding: var(--size-500) 0 var(--size-300); }
  .editors-pick__title { font-size: 22px; margin-bottom: var(--size-300); }
  .editors-pick__content {
    grid-template-columns: 1fr;
    gap: var(--size-300);
  }
  .editors-pick-card { padding: var(--size-300) var(--size-200); }
  .editors-pick-card__header { margin-bottom: var(--size-150); }
  .editors-pick-card__header .number {
    width: auto;
    height: auto;
    background: transparent;
    font-size: 24px;
    border-radius: 0;
    justify-content: flex-start;
  }
  .editors-pick-card__rating-wrapper {
    flex-direction: row;
    align-items: center;
    height: auto;
    gap: var(--size-200);
  }
  .editors-pick-card__logo {
    width: 96px;
    height: 64px;
  }
  .editors-pick-card__rating { flex: 1; }
  .editors-pick-card__rating .rating {
    flex-direction: row;
    align-items: center;
    gap: var(--size-150);
    justify-content: flex-start;
    background: transparent;
    padding: 0;
  }
  .editors-pick-card__rating .rating__number { font-size: 32px; }
  .editors-pick-card__rating .rating__stars-wrapper { align-items: flex-start; }
  .editors-pick-card .button {
    font-size: 15px;
    min-height: 44px;
  }

  /* 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__left-side-wrapper { gap: var(--size-150); }
  .sticky-footer__logo { display: flex; align-items: center; }
  .sticky-footer__logo-image { height: 28px; max-height: 28px; width: auto; max-width: 56px; }
  .sticky-footer__text-title { display: none; }
  .sticky-footer__text { flex: 1; align-items: flex-start; }
  .sticky-footer__text-badges-wrapper { justify-content: flex-start; flex-wrap: wrap; }
  .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; gap: var(--size-150); }
  .footer__navigation { justify-content: center; gap: var(--size-200); }
  .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 */

  /* Slightly smaller logo and rating on tiny screens */
  .lineup-item__provider-logo { width: 140px; height: 100px; }
  .rating__number { font-size: 36px; }

  /* Cross-chart even tighter */
  .cross-chart th,
  .cross-chart td { padding: 8px 6px; font-size: 12px; }
  .cross-chart th { font-size: 11px; }
}

/* ── EXIT POPUP — MOBILE ── */
@media (max-width: 767px) {
  .popup[open] {
    flex-direction: column;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
    width: calc(100% - var(--size-300));
  }
  .popup__logo-panel {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: var(--size-300) var(--size-200);
    gap: var(--size-200);
  }
  .popup__logo-panel-img { width: 100px; }
  .popup__logo-panel-badge { font-size: 16px; }
  .popup__content {
    padding: var(--size-300) var(--size-200);
    gap: var(--size-100);
  }
  .popup__bald-claim { font-size: 22px; }
  .popup__additional-text { font-size: 14px; }
  .popup__button { font-size: 16px; min-height: 48px; }
}
