
/* ============================================================
   lovable-atlas.css
   Atlas visual refresh inspired by the Lovable reference project.
   IMPORTANT: visual layer only. No i18n, cart, checkout or API logic.
   ============================================================ */

:root {
  --bg: #0b0c10;
  --bg2: #101116;
  --bg3: #15171d;
  --surface: rgba(21, 23, 29, 0.72);
  --surface2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(239, 55, 64, 0.48);
  --accent: #ef3740;
  --accent2: #ff5961;
  --neon: #28d17c;
  --hot: #ff8a65;
  --text: #f5f5f6;
  --text2: #a7a9b3;
  --text3: #70737e;
  --danger: #ff5c67;
  --success: #28d17c;
  --radius: 6px;
  --radius-sm: 4px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --nav-h: 74px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: 5%;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  background:
    radial-gradient(45% 30% at 8% -5%, rgba(239, 55, 64, 0.12), transparent 75%),
    radial-gradient(35% 25% at 92% 10%, rgba(239, 55, 64, 0.07), transparent 72%),
    linear-gradient(180deg, #0b0c10 0%, #0d0f13 48%, #0a0b0f 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  background-image:
    radial-gradient(rgba(255,255,255,.055) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
  opacity: .32;
}

::-webkit-scrollbar-track { background: #0b0c10; }
::-webkit-scrollbar-thumb { background: rgba(239,55,64,.35); }
::-webkit-scrollbar-thumb:hover { background: rgba(239,55,64,.58); }

.grad-text {
  background: linear-gradient(110deg, #fff 0%, #fff 38%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Loader */
#loader {
  background: #0b0c10;
}
.loader-logo {
  color: #fff;
  background: linear-gradient(110deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Navigation */
.navbar {
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  background: rgba(11,12,16,.38);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar.scrolled {
  background: rgba(11,12,16,.86);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.nav-logo {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-links { gap: 24px; }
.nav-link {
  color: #8f929d;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link.active::after {
  bottom: -12px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(239,55,64,.4);
}
.nav-right { gap: 10px; }
.lang-toggle,
.cart-btn {
  border-color: var(--border);
  background: rgba(255,255,255,.035);
}
.lang-btn {
  color: #7d808b;
  font-size: .62rem;
  letter-spacing: .08em;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}
.cart-btn {
  border-radius: 4px;
}
.cart-btn:hover {
  border-color: rgba(239,55,64,.55);
  background: rgba(239,55,64,.07);
}
.cart-btn svg { stroke: #c6c7cc; }
.cart-badge {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(239,55,64,.35);
}

/* Buttons */
.btn-primary,
.btn-plan-primary,
.btn-submit {
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(239,55,64,.16);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
.btn-primary:hover,
.btn-plan-primary:hover,
.btn-submit:hover {
  background: #f2464e;
  box-shadow: 0 18px 38px rgba(239,55,64,.24);
  transform: translateY(-2px);
}
.btn-secondary,
.btn-plan-outline {
  border-radius: 4px;
  border-color: var(--border);
  background: rgba(255,255,255,.035);
  color: #d4d5da;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
}
.btn-secondary:hover,
.btn-plan-outline:hover {
  color: #fff;
  border-color: rgba(239,55,64,.55);
  background: rgba(239,55,64,.06);
}

/* Sections / typography */
section {
  padding: 108px var(--pad-x);
}
.section-label {
  color: var(--accent2);
  font-size: .66rem;
  letter-spacing: .30em;
  font-weight: 700;
}
.section-title {
  color: #f7f7f8;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
  font-weight: 800;
}
.section-sub {
  color: #92959f;
  font-size: .96rem;
  line-height: 1.75;
}

/* Hero: make the existing two-column markup behave like a cinematic billboard. */
.hero {
  min-height: min(920px, 100vh);
  padding-top: calc(var(--nav-h) + 30px);
  padding-bottom: 48px;
  overflow: hidden;
  background:
    radial-gradient(45% 55% at 78% 45%, rgba(239,55,64,.12), transparent 72%);
}
.hero-atmo {
  background:
    radial-gradient(35% 45% at 12% 18%, rgba(239,55,64,.12), transparent 80%),
    radial-gradient(35% 45% at 85% 60%, rgba(239,55,64,.08), transparent 80%);
}
.hero-shell {
  max-width: 1280px;
  min-height: 610px;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 10px;
  position: relative;
}
.hero-copy {
  max-width: 760px;
  z-index: 3;
  align-self: end;
  padding-bottom: 52px;
}
.hero-badge {
  margin-bottom: 22px;
  padding: 7px 12px;
  border-radius: 3px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #c3c5cb;
  font-size: .66rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 6px rgba(40,209,124,.12);
}
.hero-title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero-sub {
  max-width: 590px;
  margin-bottom: 28px;
  color: #a1a4ae;
  font-size: 1.02rem;
  line-height: 1.7;
}
.hero-actions { gap: 10px; }
.hero-actions .btn-primary,
.hero-actions .btn-secondary { padding: 14px 24px; }

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}
.hero-scene-wrap {
  width: min(690px, 58vw);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.09);
  background: #111319;
  box-shadow: 0 40px 100px rgba(0,0,0,.48);
  transform: rotate(1.2deg) translate(4%, 0);
  opacity: .92;
}
.hero-scene-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,12,16,.1), rgba(11,12,16,0) 45%, rgba(11,12,16,.34));
  pointer-events: none;
}
.hero-scene-img {
  filter: saturate(.78) contrast(1.05);
}
.hero-pill {
  z-index: 2;
  border-radius: 3px;
  border-color: rgba(255,255,255,.13);
  background: rgba(10,11,15,.72);
  color: #e1e2e5;
  backdrop-filter: blur(10px);
  font-size: .62rem;
  letter-spacing: .13em;
}
.hero-stats {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: -18px auto 0;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.hero-stat {
  border: 0;
  border-radius: 0;
  background: rgba(17,19,25,.88);
  text-align: left;
  padding: 19px 20px;
}
.hero-stat-n {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: .03em;
}
.hero-stat-l {
  color: #777a84;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

/* Marquees / catalog */
.brands-section,
.movies-section {
  background: #0b0c10;
}
.brands-section { padding-top: 82px; }
.brand-card {
  width: 190px;
  height: 94px;
  border-radius: 4px;
  border-color: var(--border);
  background: #111319;
  box-shadow: none;
  filter: grayscale(.15);
  transition: var(--transition);
}
.brand-card:hover {
  border-color: rgba(239,55,64,.35);
  transform: translateY(-3px);
}
.movie-card {
  width: 190px;
  min-height: 285px;
  border-radius: 4px;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 24px 50px rgba(0,0,0,.36);
  background: #12141a;
}
.movie-card:hover {
  transform: translateY(-6px) scale(1.045);
  box-shadow: 0 34px 70px rgba(0,0,0,.55);
}
.movie-overlay {
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.12) 48%, rgba(0,0,0,.92) 100%);
}

/* Device compatibility */
.compat-section {
  background: #0e1015;
  border-color: var(--border);
}
.compat-card {
  border-radius: 4px;
  border-color: var(--border);
  background: #111319;
}
.compat-card:hover {
  border-color: rgba(239,55,64,.45);
  background: #15171d;
  transform: translateY(-4px);
}
.compat-sub { color: #777a84; }

/* Feature grid */
.features-section { background: #0b0c10; }
.features-grid {
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  border: 0;
  border-radius: 0;
  background: #0e1015;
  padding: 30px;
}
.feature-card:hover {
  background: #15171d;
  border-color: transparent;
  transform: none;
}
.feature-card svg { stroke: var(--accent2); }
.feature-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.feature-desc { color: #858892; }

/* Pricing */
.pricing-section {
  border-color: var(--border);
  background: #0e1015;
}
.pricing-grid {
  gap: 14px;
}
.plan-card {
  border-radius: 4px;
  border-color: var(--border);
  background: rgba(20,22,28,.72);
  box-shadow: none;
  padding: 28px 22px 22px;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 30px 70px rgba(0,0,0,.28);
}
.plan-card.popular {
  border-color: rgba(239,55,64,.7);
  box-shadow: 0 0 0 1px rgba(239,55,64,.18), 0 30px 80px rgba(239,55,64,.08);
}
.plan-badge {
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(239,55,64,.24);
  font-size: .61rem;
  letter-spacing: .14em;
}
.plan-badge-trial { background: #34363d; }
.plan-duration {
  color: #e7e7e9;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.plan-price .cur { color: #8c8f99; }
.plan-price .amount {
  color: #fff;
  font-size: 2.5rem;
}
.plan-price-sub,
.plan-monthly { color: #6f727c; }
.plan-connection-tag {
  border-color: rgba(239,55,64,.22);
  background: rgba(239,55,64,.08);
  color: #ff7279;
}
.plan-save {
  background: rgba(40,209,124,.14);
  color: #6ee5a8;
  border: 1px solid rgba(40,209,124,.18);
}
.plan-feature { color: #a2a5ae; }
.plan-feature .check { color: var(--neon); }
.guarantee-item { color: #858892; }
.guarantee-item svg { stroke: var(--neon); }
.pricing-compare {
  border-radius: 4px;
  border-color: var(--border);
  background: #111319;
}
.pricing-compare-table th,
.pricing-compare-table td {
  border-color: var(--border);
  color: #9699a3;
}
.pricing-compare-table th { color: #e6e6e8; }

/* Testimonials / CTA / Trust */
.testimonials-section { background: #0b0c10; }
.testimonial-card {
  border-radius: 4px;
  border-color: var(--border);
  background: rgba(20,22,28,.7);
}
.testimonial-card:hover {
  border-color: rgba(239,55,64,.35);
  transform: translateY(-4px);
}
.testimonial-stars { color: #ffb15c; }
.testimonial-text { color: #a1a4ad; }
.testimonial-avatar { background: rgba(239,55,64,.12); color: #ff6b73; }

.cta-section {
  background:
    radial-gradient(34% 60% at 50% 55%, rgba(239,55,64,.12), transparent 75%),
    #0e1015;
}
.cta-box {
  border-radius: 4px;
  border-color: var(--border);
  background: rgba(20,22,28,.72);
  box-shadow: 0 40px 100px rgba(0,0,0,.28);
}
.trust-section { background: #0b0c10; }
.trust-grid {
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.trust-item {
  border: 0;
  border-radius: 0;
  background: #111319;
}
.trust-icon-wrap svg { stroke: var(--accent2); }
.trust-title { color: #e7e7e9; }
.trust-sub { color: #72757f; }

/* Contact / FAQ / Legal */
.contact-section-page,
.faq-section-page,
.legal-section-page {
  background: #0b0c10;
}
.contact-form-card,
.faq-item,
.legal-section {
  border-color: var(--border);
  background: rgba(20,22,28,.72);
}
.form-label { color: #9b9ea7; }
.form-input {
  border-color: var(--border);
  background: rgba(255,255,255,.035);
  color: #f2f2f3;
}
.form-input::placeholder { color: #5f626b; }
.form-input:focus {
  border-color: rgba(239,55,64,.65);
  box-shadow: 0 0 0 3px rgba(239,55,64,.10);
}
.faq-q { color: #e9e9eb; }
.faq-a-inner { color: #979aa4; }
.faq-item.open { border-color: rgba(239,55,64,.32); }
.faq-icon { color: var(--accent2); }

/* Footer */
.footer {
  margin-top: 0;
  border-top-color: var(--border);
  background: #08090c;
}
.footer-col-title { color: #d9dade; }
.footer-link,
.footer-tagline,
.footer-support-note,
.footer-bottom { color: #666973; }
.footer-link:hover { color: #fff; }
.footer-link-track { color: #ff6b73; }
.footer-contact-btn {
  border-color: rgba(239,55,64,.28);
  background: rgba(239,55,64,.06);
  color: #ff737a;
}
.footer-bottom { border-top-color: var(--border); }

/* Mobile menu */
.mobile-menu {
  background: rgba(11,12,16,.96);
  border-color: var(--border);
}
.mobile-menu .nav-link {
  border-bottom-color: var(--border);
}
.mobile-lang-btn {
  border-color: var(--border);
  background: rgba(255,255,255,.035);
  color: #9b9ea7;
}
.mobile-lang-btn.active { background: var(--accent); }

/* Cart / modal / toast */
.cart-overlay,
.sv-modal-overlay { background: rgba(0,0,0,.72); }
.cart-drawer {
  border-left-color: var(--border);
  background: #0e1015;
  box-shadow: -24px 0 70px rgba(0,0,0,.45);
}
.cart-header { border-bottom-color: var(--border); }
.cart-item {
  border-color: var(--border);
  background: #15171d;
}
.cart-close:hover { background: rgba(255,255,255,.05); }
.toast {
  border-color: var(--border);
  background: #15171d;
  color: #dfe0e3;
}
.sv-modal-card {
  border-color: var(--border);
  background: #15171d;
  box-shadow: 0 30px 80px rgba(0,0,0,.48);
}
.sv-modal-title { color: #f2f2f3; }
.sv-modal-message { color: #979aa4; }
.sv-modal-cancel {
  border-color: var(--border);
  background: rgba(255,255,255,.04);
  color: #aaaeb7;
}

/* Scroll-to-top */
.scroll-top-btn {
  border-color: var(--border) !important;
  background: rgba(20,22,28,.88) !important;
  color: #fff !important;
}
.scroll-top-btn:hover {
  border-color: rgba(239,55,64,.55) !important;
  background: rgba(239,55,64,.12) !important;
}

/* Accessibility / reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  :root { --nav-h: 68px; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 34px);
  }
  .hero-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    align-self: auto;
    padding-bottom: 0;
    max-width: 760px;
  }
  .hero-visual {
    min-height: 0;
    margin-top: 12px;
    justify-content: center;
  }
  .hero-scene-wrap {
    width: min(760px, 92vw);
    transform: none;
  }
  .hero-stats {
    margin-top: 20px;
  }
}

@media (max-width: 720px) {
  section { padding: 76px var(--pad-x); }
  .hero { padding-bottom: 34px; }
  .hero-title {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }
  .hero-sub { font-size: .94rem; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .hero-stat { padding: 16px; }
  .section-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
  .movie-card {
    width: 165px;
    min-height: 250px;
  }
  .brand-card {
    width: 150px;
    height: 80px;
  }
  .trust-grid { grid-template-columns: 1fr; }
}

html[dir='rtl'] .hero-copy,
html[dir='rtl'] .hero-stat {
  text-align: right;
}


/* ============================================================
   V3 — Plans page + platform logo refinement
   ============================================================ */

/* The standalone Plans page must stay dark; the old pages.css
   background was intentionally overridden here. */
.subscriptions-page {
  position: relative;
  isolation: isolate;
  gap: 58px;
  padding-top: 116px;
  padding-bottom: 116px;
  background:
    radial-gradient(55% 34% at 50% 0%, rgba(239,55,64,.10), transparent 72%),
    linear-gradient(180deg, #0d0f14 0%, #0a0b0f 100%);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.subscriptions-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
}

.subscriptions-page > .text-center {
  max-width: 980px;
  margin-inline: auto;
}

.subscriptions-page .section-label {
  margin-bottom: 12px;
}

.subscriptions-page .section-title {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -.045em;
  line-height: .92;
  text-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.subscriptions-page .section-sub {
  max-width: 680px;
  margin: 18px auto 0;
  color: #858993;
}

/* Five plans: tighter, taller, more premium cards. */
.subscriptions-page .pricing-grid {
  width: min(1440px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.subscriptions-page .plan-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  padding: 34px 22px 20px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(28,30,37,.94), rgba(16,18,23,.98));
  box-shadow:
    0 22px 60px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.subscriptions-page .plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 30%);
}

.subscriptions-page .plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,.18);
  box-shadow:
    0 34px 80px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.025);
}

.subscriptions-page .plan-card.popular {
  border-color: rgba(239,55,64,.72);
  background:
    radial-gradient(80% 32% at 50% 0%, rgba(239,55,64,.13), transparent 72%),
    linear-gradient(180deg, rgba(31,28,34,.98), rgba(16,18,23,.99));
  box-shadow:
    0 34px 85px rgba(0,0,0,.42),
    0 0 0 1px rgba(239,55,64,.13),
    0 0 42px rgba(239,55,64,.07);
}

.subscriptions-page .plan-duration {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: #f2f2f4;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subscriptions-page .plan-price {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.subscriptions-page .plan-price .cur {
  color: #747780;
  font-size: .95rem;
}

.subscriptions-page .plan-price .amount {
  color: #fff;
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.subscriptions-page .plan-price-sub {
  position: relative;
  z-index: 1;
  margin: 3px 0 5px;
  color: #676a74;
  font-size: .72rem;
}

.subscriptions-page .plan-monthly {
  position: relative;
  z-index: 1;
  min-height: 17px;
  margin-bottom: 15px;
  color: #7c7f89;
  font-size: .72rem;
}

.subscriptions-page .plan-connection-tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 6px 11px;
  border: 1px solid rgba(239,55,64,.27);
  border-radius: 3px;
  background: rgba(239,55,64,.075);
  color: #ff7078;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subscriptions-page .plan-features {
  position: relative;
  z-index: 1;
  flex: 1;
  gap: 12px;
  margin-bottom: 24px;
}

.subscriptions-page .plan-feature {
  color: #9a9da6;
  font-size: .78rem;
  line-height: 1.35;
}

.subscriptions-page .plan-feature .check {
  flex: 0 0 auto;
  color: #35db88;
  font-weight: 800;
}

.subscriptions-page .btn-plan {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 46px;
  border-radius: 4px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.subscriptions-page .btn-plan-outline {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.035);
  color: #d6d7db;
}

.subscriptions-page .btn-plan-outline:hover {
  border-color: rgba(239,55,64,.52);
  background: rgba(239,55,64,.07);
  color: #fff;
}

.subscriptions-page .btn-plan-primary {
  background: var(--accent);
  box-shadow: 0 14px 32px rgba(239,55,64,.17);
}

.subscriptions-page .plan-badge {
  top: -11px;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: .58rem;
  letter-spacing: .12em;
}

.subscriptions-page .plan-save {
  top: 12px;
  right: 10px;
  border-radius: 3px;
  padding: 4px 7px;
  background: rgba(40,209,124,.11);
  border: 1px solid rgba(40,209,124,.18);
  color: #64d99e;
  font-size: .55rem;
  letter-spacing: .04em;
}

/* Pricing comparison becomes a deliberate secondary block. */
.subscriptions-page .pricing-compare {
  width: min(1080px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  background: rgba(17,19,25,.78);
  box-shadow: 0 24px 60px rgba(0,0,0,.20);
}

/* Platform logos: keep cards dark, but give EVERY logo a clean white
   presentation area so transparent/white assets remain readable. */
.brands-section {
  background: #0b0c10;
}

.brand-card {
  width: 190px;
  height: 104px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 4px;
  background: #111319;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 10px 16px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 2px;
  filter: none;
}

.brand-card:hover .brand-logo {
  transform: scale(1.025);
}

/* Preserve a clean white logo panel on smaller screens too. */
@media (max-width: 1300px) {
  .subscriptions-page .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
  }
}

@media (max-width: 1040px) {
  .subscriptions-page .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .subscriptions-page {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .subscriptions-page .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .subscriptions-page .plan-card {
    min-height: 0;
  }

  .brand-card {
    width: 164px;
    height: 90px;
    padding: 10px;
  }

  .brand-logo {
    padding: 8px 12px;
  }
}


/* ============================================================
   V4 — Mobile header polish + original footer only
   ============================================================ */

/* Mobile header: the previous V3 layout gave the logo, CTA and
   hamburger too little breathing room. Keep all controls visible,
   but give each one a deliberate fixed footprint. */
@media (max-width: 720px) {
  :root {
    --mobile-nav-x: 14px;
  }

  .navbar {
    height: 68px;
    padding: 0 var(--mobile-nav-x);
  }

  .navbar .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-right: 8px;
    font-size: .92rem;
    letter-spacing: .12em;
    white-space: nowrap;
  }

  .navbar .nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Keep the language switcher and cart compact instead of allowing
     them to squeeze the CTA/hamburger. */
  .navbar .lang-toggle {
    display: none;
  }

  .navbar .cart-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    flex: 0 0 38px;
  }

  .navbar .cart-btn svg {
    width: 18px;
    height: 18px;
  }

  .navbar .nav-cta {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 118px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 4px;
    font-size: .67rem;
    line-height: 1.05;
    letter-spacing: .11em;
    white-space: nowrap;
  }

  .navbar .mobile-menu-toggle,
  .navbar .mobile-menu-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 4px;
    background: rgba(255,255,255,.035);
  }

  .navbar .mobile-menu-toggle:hover,
  .navbar .mobile-menu-btn:hover {
    border-color: rgba(239,55,64,.45);
    background: rgba(239,55,64,.06);
  }
}

/* Very narrow phones: reduce the CTA rather than letting it collide
   with the hamburger or logo. */
@media (max-width: 390px) {
  .navbar {
    padding-inline: 10px;
  }

  .navbar .nav-logo {
    font-size: .82rem;
    letter-spacing: .09em;
  }

  .navbar .nav-cta {
    min-width: 96px;
    padding-inline: 10px;
    font-size: .60rem;
  }

  .navbar .cart-btn {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .navbar .mobile-menu-toggle,
  .navbar .mobile-menu-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }
}

/* Footer: preserve the site's ORIGINAL navigation/content.
   We deliberately do not introduce new SEO/menu links here. */
.footer {
  background: #08090c;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer .footer-link {
  color: #70737d;
  text-decoration: none;
}

.footer .footer-link:hover {
  color: #fff;
}

.footer .footer-col-title {
  color: #e2e3e6;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer .footer-tagline,
.footer .footer-support-note,
.footer .footer-bottom {
  color: #686b75;
}

.footer .footer-contact-btn {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: #d5d6da;
}

.footer .footer-contact-btn:hover {
  border-color: rgba(239,55,64,.42);
  background: rgba(239,55,64,.06);
  color: #fff;
}

/* If the footer contains a generated list, keep its existing items
   exactly as-is; this only improves spacing/appearance. */
.footer .footer-links {
  gap: 9px;
}

@media (max-width: 720px) {
  .footer {
    padding-top: 56px;
    padding-bottom: 24px;
  }

  .footer .footer-grid {
    gap: 30px;
  }
}

/* ============================================================
   V6 — Cinematic homepage, conversion polish, mobile-first UX
   Visual/frontend only. i18n strings and backend contracts untouched.
   ============================================================ */

/* Cinematic hero using the supplied living-room image. */
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-content: end;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(4,5,7,.96) 0%, rgba(4,5,7,.72) 34%, rgba(4,5,7,.26) 67%, rgba(4,5,7,.60) 100%),
    linear-gradient(180deg, rgba(4,5,7,.18) 0%, rgba(4,5,7,.10) 38%, rgba(4,5,7,.92) 100%),
    url('/img/hero-living-room.webp') center center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(32% 42% at 73% 43%, rgba(239,55,64,.20), transparent 72%),
    radial-gradient(22% 30% at 8% 58%, rgba(239,55,64,.10), transparent 72%);
  mix-blend-mode: screen;
}
.hero-atmo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(239,55,64,.10), transparent 30%),
    radial-gradient(25% 22% at 66% 70%, rgba(255,40,45,.20), transparent 75%);
}
.hero-shell {
  width: min(1280px, 100%);
  min-height: 500px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}
.hero-copy {
  max-width: 760px;
  padding-bottom: 34px;
  text-shadow: 0 18px 50px rgba(0,0,0,.58);
}
.hero-badge {
  margin-bottom: 20px;
  border-color: rgba(255,255,255,.16);
  background: rgba(7,8,11,.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e0e1e5;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.hero-title {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 7.8vw, 7.5rem);
  line-height: .84;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 610px;
  margin-bottom: 28px;
  color: rgba(235,236,239,.78);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-actions {
  gap: 10px;
}
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  min-height: 50px;
  padding: 0 23px;
}
.hero-actions .btn-secondary {
  border-color: rgba(255,255,255,.17);
  background: rgba(7,8,11,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: rgba(220,221,225,.62);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-trust-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 5px rgba(40,209,124,.10), 0 0 18px rgba(40,209,124,.35);
}
.hero-visual { display: none !important; }
.hero-stats {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 5px;
  background: rgba(255,255,255,.11);
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-stat {
  min-height: 92px;
  padding: 17px 18px;
  border: 0;
  border-radius: 0;
  background: rgba(8,9,12,.60);
  text-align: left;
  transition: background var(--transition), transform var(--transition);
}
.hero-stat:hover {
  background: rgba(20,22,28,.76);
}
.hero-stat-n {
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-l {
  margin-top: 8px;
  color: #8f929c;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Stronger numbered Why Atlas section. */
.features-section {
  position: relative;
  background: #090a0d;
}
.features-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.08);
}
.feature-card {
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  padding: 32px;
  overflow: hidden;
  background: #0e1015;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(239,55,64,.07), transparent 32%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  z-index: 1;
  transform: translateY(-4px);
  background: #13151b;
  box-shadow: 0 24px 65px rgba(0,0,0,.25);
}
.feature-card:hover::after { opacity: 1; }
.feature-number {
  grid-row: 1 / span 2;
  color: rgba(239,55,64,.58);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.06em;
}
.feature-icon-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent2);
}
.feature-copy { position: relative; z-index: 1; }
.feature-title { margin: 0 0 8px; font-size: 1rem; }
.feature-desc { max-width: 510px; margin: 0; color: #858892; line-height: 1.65; }

/* More deliberate FAQ grid with animated open state. */
.faq-section-page .faq-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.faq-section-page .faq-item {
  margin: 0;
  border-radius: 5px;
  background: rgba(17,19,25,.78);
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.faq-section-page .faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: #14161c;
}
.faq-section-page .faq-item.open {
  border-color: rgba(239,55,64,.42);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
}
.faq-section-page .faq-q { min-height: 72px; padding: 18px 20px; }
.faq-section-page .faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 4px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.faq-section-page .faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(239,55,64,.10);
  border-color: rgba(239,55,64,.35);
}

/* Plans: clearer hierarchy and distinct best-value treatment. */
.plan-card {
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(239,55,64,.55), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.plan-card:hover::before,
.plan-card.popular::before,
.plan-card.best-value::before { opacity: 1; }
.plan-card.best-value {
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(24,26,33,.96), rgba(15,17,22,.99));
}
.plan-card.best-value .plan-price .amount { text-shadow: 0 0 28px rgba(239,55,64,.10); }

/* Standalone Plans page gets a more editorial heading. */
.subscriptions-page > .text-center .section-title { max-width: 900px; margin-inline: auto; }
.subscriptions-page > .text-center .section-sub { max-width: 650px; margin-inline: auto; }

/* Micro-interactions and smoother reveal without changing content. */
.reveal {
  transition-property: opacity, transform;
  transition-duration: .65s;
  transition-timing-function: cubic-bezier(.16,1,.3,1);
}
.btn-primary, .btn-secondary, .btn-plan, .footer-contact-btn, .cart-btn, .nav-link {
  will-change: transform;
}

/* Mobile-first plan carousel on the homepage. */
@media (max-width: 720px) {
  .hero {
    min-height: 820px;
    align-content: end;
    padding-top: calc(var(--nav-h) + 54px);
    background-position: 58% center;
    background-image:
      linear-gradient(180deg, rgba(4,5,7,.40) 0%, rgba(4,5,7,.34) 35%, rgba(4,5,7,.96) 79%, #090a0d 100%),
      linear-gradient(90deg, rgba(4,5,7,.84), rgba(4,5,7,.28)),
      url('/img/hero-living-room-mobile.webp');
  }
  .hero-shell { min-height: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero-title { font-size: clamp(3.05rem, 14vw, 4.7rem); }
  .hero-sub { font-size: .94rem; }
  .hero-trust-line { font-size: .61rem; }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-radius: 4px;
  }
  .hero-stat { min-height: 82px; padding: 14px; }
  .hero-stat-n { font-size: 1.35rem; }
  .hero-stat-l { font-size: .57rem; letter-spacing: .09em; }

  .pricing-section .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 10px;
    padding: 6px 5% 18px;
    margin-inline: -5%;
  }
  .pricing-section .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-section .pricing-grid .plan-card {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: center;
  }

  .features-grid,
  .faq-section-page .faq-list { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; padding: 25px; }

  .faq-section-page .faq-q { min-height: 64px; }
}

@media (max-width: 390px) {
  .hero { min-height: 790px; }
  .hero-title { font-size: 2.9rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { min-height: 46px; }
}

/* Correct mobile navbar selectors (the actual markup uses .mobile-toggle). */
@media (max-width: 720px) {
  .navbar {
    height: 66px;
    padding-inline: 12px;
  }
  .navbar .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 6px;
    font-size: .88rem;
    letter-spacing: .105em;
    white-space: nowrap;
  }
  .navbar .nav-right { gap: 7px; }
  .navbar .lang-toggle { display: none; }
  .navbar .cart-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .navbar .nav-cta {
    min-width: 106px;
    min-height: 40px;
    padding: 0 13px;
    font-size: .62rem;
    line-height: 1;
    white-space: nowrap;
  }
  .navbar .mobile-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 4px;
    background: rgba(255,255,255,.035);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
  }
  .navbar .mobile-toggle:hover {
    border-color: rgba(239,55,64,.45);
    background: rgba(239,55,64,.07);
  }
  .navbar .mobile-toggle svg { width: 18px; height: 18px; stroke: #e4e5e8; }
}
@media (max-width: 390px) {
  .navbar { padding-inline: 9px; }
  .navbar .nav-logo { font-size: .79rem; letter-spacing: .08em; }
  .navbar .nav-cta { min-width: 92px; padding-inline: 9px; font-size: .57rem; }
  .navbar .cart-btn { width: 33px; height: 33px; flex-basis: 33px; }
  .navbar .mobile-toggle { width: 35px; height: 35px; flex-basis: 35px; }
}

/* Reduce work on offscreen decorative marquees while preserving their animation. */
.movies-section .movie-marquee,
.brands-section .brand-marquee { contain: layout paint; }


/* Legal page refinement V11 — visual only, content/i18n unchanged. */
.legal-section-page {
  position: relative;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 50% 6%, rgba(239,55,64,.075), transparent 30%),
    #0b0c10;
}

.legal-hero { margin-bottom: 48px; }
.legal-hero .section-title {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.legal-layout {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 100px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20,22,28,.92), rgba(14,16,21,.88));
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  overflow: hidden;
}

.legal-nav-head {
  padding: 17px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.legal-nav-kicker {
  color: #ff5b63;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-nav-list { padding: 8px; }
.legal-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px 10px;
  color: #7d808a;
  text-decoration: none;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.legal-nav-item span {
  color: #4f525b;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
}
.legal-nav-item strong {
  font-size: .76rem;
  line-height: 1.25;
  font-weight: 600;
}
.legal-nav-item:hover {
  color: #f2f2f3;
  background: rgba(239,55,64,.075);
  transform: translateX(2px);
}
.legal-nav-item:hover span { color: #ff5b63; }

.legal-content {
  max-width: none;
  margin: 0;
  display: grid;
  gap: 12px;
}

.legal-section {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 18px;
  margin: 0;
  padding: 24px 26px 25px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(20,22,28,.92), rgba(14,16,21,.78));
  box-shadow: 0 16px 45px rgba(0,0,0,.16);
  overflow: hidden;
}
.legal-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff3d46, rgba(255,61,70,0));
  opacity: .9;
}
.legal-section-index {
  color: rgba(255,91,99,.75);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding-top: 3px;
}
.legal-section-body h2 {
  margin: 0 0 11px;
  color: #f2f2f3;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: .01em;
}
.legal-section-body h3 {
  margin: 18px 0 7px;
  color: #dfe0e3;
  font-size: .86rem;
  font-weight: 700;
}
.legal-section-body p,
.legal-section-body li {
  color: #8f929c;
  font-size: .87rem;
  line-height: 1.72;
}
.legal-section-body p { margin: 0 0 10px; }
.legal-section-body p:last-child { margin-bottom: 0; }
.legal-section-body ul { margin: 10px 0 0; padding-left: 18px; }
.legal-section-body li { margin-bottom: 5px; }
.legal-section-body li::marker { color: #ff5b63; }

html[dir='rtl'] .legal-layout { direction: rtl; }
html[dir='rtl'] .legal-section { grid-template-columns: minmax(0,1fr) 54px; }
html[dir='rtl'] .legal-section::before { left: auto; right: 0; }
html[dir='rtl'] .legal-section-index { grid-column: 2; }
html[dir='rtl'] .legal-section-body { grid-column: 1; }
html[dir='rtl'] .legal-nav-item { grid-template-columns: 1fr 28px; }
html[dir='rtl'] .legal-nav-item span { grid-column: 2; }
html[dir='rtl'] .legal-nav-item strong { grid-column: 1; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; width: min(760px, calc(100% - 28px)); }
  .legal-nav { position: static; }
  .legal-nav-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .legal-hero { margin-bottom: 30px; }
  .legal-layout { width: calc(100% - 22px); }
  .legal-nav-list { grid-template-columns: 1fr; }
  .legal-section { grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding: 20px 18px; }
  .legal-section-index { font-size: .65rem; }
  .legal-section-body h2 { font-size: 1rem; }
  .legal-section-body p, .legal-section-body li { font-size: .84rem; }
}

/* ============================================================
   ATLAS FINAL — UNIVERSAL MOBILE PRICING / RTL FIX
   ============================================================ */

@media screen and (max-width: 720px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .pricing-section {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .pricing-section .pricing-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: auto !important;

    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;

    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline: auto !important;

    padding: 12px 0 24px !important;

    gap: 16px !important;

    overflow: visible !important;
    scroll-snap-type: none !important;

    box-sizing: border-box !important;

    direction: ltr !important;
  }

  .pricing-section .pricing-grid .plan-card,
  .pricing-section .pricing-grid > .plan-card {
    display: flex !important;

    grid-column: 1 / -1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    margin-inline: 0 !important;

    flex: none !important;

    position: relative !important;
    left: auto !important;
    right: auto !important;

    transform: none !important;

    box-sizing: border-box !important;

    direction: rtl !important;

    overflow: visible !important;

    scroll-snap-align: none !important;
  }

  /* English / French */
  html[dir="ltr"] .pricing-section .pricing-grid .plan-card {
    direction: ltr !important;
    text-align: left !important;
  }

  /* Arabic */
  html[dir="rtl"] .pricing-section .pricing-grid .plan-card {
    direction: rtl !important;
    text-align: right !important;
  }

  /* Prevent any child from making the card wider */
  .pricing-section .pricing-grid .plan-card *,
  .pricing-section .pricing-grid .plan-card::before,
  .pricing-section .pricing-grid .plan-card::after {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pricing-section .pricing-grid .plan-card h1,
  .pricing-section .pricing-grid .plan-card h2,
  .pricing-section .pricing-grid .plan-card h3,
  .pricing-section .pricing-grid .plan-card h4,
  .pricing-section .pricing-grid .plan-card p,
  .pricing-section .pricing-grid .plan-card span {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .pricing-section .pricing-grid .plan-card button,
  .pricing-section .pricing-grid .plan-card a {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media screen and (max-width: 380px) {

  .pricing-section .pricing-grid {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    gap: 14px !important;
  }
}

