/* ============================================
   ResidenceSafe Shared CSS
   Extracted from inline styles across all pages.
   Single source of truth for: tokens, reset, nav,
   buttons, utilities, page-hero, content-section,
   cta-dark, footer, animations, cookie consent,
   and shared responsive breakpoints.
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* ==========================================================
     DS PRIMITIVES — Ink Blue
     ========================================================== */
  --rs-ink-50:  #EEF3FF;
  --rs-ink-100: #DCE6FF;
  --rs-ink-200: #B6C9FF;
  --rs-ink-300: #88A4FF;
  --rs-ink-400: #5479F5;
  --rs-ink-500: #2E54E0;
  --rs-ink-600: #1E40AF;
  --rs-ink-700: #1A3592;
  --rs-ink-800: #172B73;
  --rs-ink-900: #111E50;

  /* DS PRIMITIVES — Midnight */
  --rs-midnight-50:  #F4F5F9;
  --rs-midnight-100: #E5E7F0;
  --rs-midnight-200: #C8CCDC;
  --rs-midnight-300: #9098B5;
  --rs-midnight-400: #5C6485;
  --rs-midnight-500: #353D5E;
  --rs-midnight-600: #232A47;
  --rs-midnight-700: #1A1F38;
  --rs-midnight-800: #131730;
  --rs-midnight-900: #0B0E20;
  --rs-midnight-950: #06081A;

  /* DS PRIMITIVES — Neutrals (cool-tinted) */
  --rs-neutral-0:   #FFFFFF;
  --rs-neutral-25:  #FAFBFC;
  --rs-neutral-50:  #F5F6F8;
  --rs-neutral-100: #ECEEF2;
  --rs-neutral-200: #DFE2E8;
  --rs-neutral-300: #C4C9D2;
  --rs-neutral-400: #9AA0AD;
  --rs-neutral-500: #6F7585;
  --rs-neutral-600: #4D5364;
  --rs-neutral-700: #353B4A;
  --rs-neutral-800: #232735;
  --rs-neutral-900: #14171F;

  /* DS PRIMITIVES — Functional */
  --rs-success-50:  #ECFDF5;
  --rs-success-500: #10B981;
  --rs-success-600: #059669;
  --rs-success-700: #047857;
  --rs-danger-50:   #FEF2F2;
  --rs-danger-500:  #EF4444;
  --rs-danger-600:  #DC2626;
  --rs-warning-50:  #FFFBEB;
  --rs-warning-500: #F59E0B;
  --rs-warning-600: #D97706;


  /* DS — Gradients: REMOVED (Phase 1 Apple-clean). Token kept for PDF/certificate only. */
  --rs-gradient-hero: linear-gradient(135deg, var(--rs-ink-800) 0%, var(--rs-ink-600) 50%, var(--rs-ink-400) 100%);
  /* ==========================================================
     DS SEMANTIC ALIASES
     ========================================================== */
  --rs-bg-canvas:      var(--rs-neutral-25);
  --rs-bg-surface:     var(--rs-neutral-0);
  --rs-bg-surface-alt: var(--rs-neutral-50);
  --rs-fg-primary:     var(--rs-midnight-900);
  --rs-fg-secondary:   var(--rs-neutral-600);
  --rs-fg-tertiary:    var(--rs-neutral-500);
  --rs-fg-disabled:    var(--rs-neutral-500);
  --rs-fg-on-accent:   var(--rs-neutral-0);
  --rs-fg-inverse:     var(--rs-neutral-0);

  --rs-border-subtle:  var(--rs-neutral-100);
  --rs-border-default: var(--rs-neutral-200);  --rs-border-focus:   var(--rs-ink-500);

  --rs-action-primary:        var(--rs-ink-600);
  --rs-action-primary-hover:  var(--rs-ink-700);
  /* ==========================================================
     DS TYPOGRAPHY
     ========================================================== */
  --rs-font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --rs-font-display: "General Sans", "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --rs-font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --rs-text-xs:   12px;
  --rs-text-sm:   14px;
  --rs-text-base: 16px;
  --rs-text-md:   20px;
  --rs-text-lg:   25px;
  --rs-text-xl:   32px;
  --rs-text-2xl:  40px;
  --rs-text-3xl:  48px;
  --rs-text-4xl:  56px;
  --rs-text-5xl:  64px;

  --rs-leading-tight:   1.15;
  --rs-leading-snug:    1.25;
  --rs-leading-normal:  1.4;
  --rs-leading-relaxed: 1.55;
  --rs-leading-loose:   1.7;

  --rs-tracking-tight:  -0.02em;
  --rs-tracking-snug:   -0.01em;
  --rs-tracking-normal: 0;
  --rs-tracking-wide:   0.02em;

  --rs-weight-regular:  400;
  --rs-weight-medium:   500;
  --rs-weight-semibold: 600;
  --rs-weight-bold:     700;
  --rs-weight-black:    800;

  /* ==========================================================
     DS SPACING — 4pt grid
     ========================================================== */
  --rs-space-0:   0px;
  --rs-space-1:   4px;
  --rs-space-2:   8px;
  --rs-space-3:   12px;
  --rs-space-4:   16px;
  --rs-space-5:   20px;
  --rs-space-6:   24px;
  --rs-space-8:   32px;
  --rs-space-10:  40px;
  --rs-space-12:  48px;
  --rs-space-16:  64px;
  --rs-space-20:  80px;
  --rs-space-24:  96px;

  /* ==========================================================
     DS RADIUS
     ========================================================== */
  --rs-radius-xs:   4px;
  --rs-radius-sm:   8px;
  --rs-radius-md:   12px;
  --rs-radius-lg:   16px;
  --rs-radius-xl:   24px;
  --rs-radius-2xl:  32px;
  --rs-radius-pill: 999px;

  /* ==========================================================
     DS SHADOWS — midnight-tinted, no pure black
     ========================================================== */  --rs-shadow-sm:    0 1px 3px rgba(11, 14, 32, 0.06), 0 1px 2px rgba(11, 14, 32, 0.04);
  --rs-shadow-md:    0 4px 12px rgba(11, 14, 32, 0.06), 0 2px 4px rgba(11, 14, 32, 0.04);
  --rs-shadow-lg:    0 12px 32px rgba(11, 14, 32, 0.08), 0 4px 8px rgba(11, 14, 32, 0.04);
  --rs-shadow-xl:    0 24px 48px rgba(11, 14, 32, 0.12), 0 8px 16px rgba(11, 14, 32, 0.06);  --rs-shadow-ink:   0 10px 25px -5px rgba(30, 64, 175, 0.3);

  /* ==========================================================
     DS ALPHA OVERLAYS
     ========================================================== */
  --rs-white-04:  rgba(255,255,255,0.04);
  --rs-white-08:  rgba(255,255,255,0.08);
  --rs-white-50:  rgba(255,255,255,0.50);
  --rs-white-60:  rgba(255,255,255,0.60);
  --rs-white-65:  rgba(255,255,255,0.65);
  --rs-white-70:  rgba(255,255,255,0.70);
  --rs-white-85:  rgba(255,255,255,0.85);
  --rs-ink-a06:   rgba(30, 64, 175, 0.06);
  --rs-ink-a08:   rgba(30, 64, 175, 0.08);
  --rs-ink-a10:   rgba(30, 64, 175, 0.1);
  --rs-ink-a12:   rgba(30, 64, 175, 0.12);
  --rs-ink-a15:   rgba(30, 64, 175, 0.15);
  --rs-ink-a20:   rgba(30, 64, 175, 0.2);
  --rs-ink-a25:   rgba(30, 64, 175, 0.25);
  --rs-ink-a30:   rgba(30, 64, 175, 0.3);
  --rs-ink-a40:   rgba(30, 64, 175, 0.4);
  --rs-dark-a10:  rgba(11, 14, 32, 0.1);
  --rs-dark-a12:  rgba(11, 14, 32, 0.12);
  --rs-dark-a15:  rgba(11, 14, 32, 0.15);
  --rs-dark-a30:  rgba(11, 14, 32, 0.3);

    --rs-white-12:  rgba(255,255,255,0.12);
  --rs-white-15:  rgba(255,255,255,0.15);
  --rs-dark-a95:  rgba(11, 14, 32, 0.95);
  --rs-white-06:  rgba(255,255,255,0.06);
  --rs-white-10:  rgba(255,255,255,0.10);
  --rs-white-20:  rgba(255,255,255,0.20);
  --rs-white-25:  rgba(255,255,255,0.25);
  --rs-white-30:  rgba(255,255,255,0.30);
  --rs-white-35:  rgba(255,255,255,0.35);
  --rs-white-40:  rgba(255,255,255,0.40);
  --rs-white-80:  rgba(255,255,255,0.80);
  --rs-white-90:  rgba(255,255,255,0.90);
  /* 0.98: at 0.95 + blur, midnight sections scrolling under the fixed nav
     showed through as a dark smudge behind the logo on mobile. */
  --rs-nav-bg:  rgba(255,255,255,0.98);
  --rs-danger-a10:  rgba(239,68,68,0.10);
  --rs-danger-a15:  rgba(239,68,68,0.15);
  --rs-warning-a10: rgba(245,158,11,0.10);
  --rs-warning-a15: rgba(245,158,11,0.15);
  --rs-info-a15:    rgba(30,64,175,0.15);

  /* ==========================================================
     DS MOTION
     ========================================================== */
  --rs-duration-instant: 80ms;
  --rs-duration-fast:    160ms;
  --rs-duration-base:    240ms;
  --rs-duration-slow:    360ms;
  --rs-duration-slower:  520ms;
  --rs-duration-slowest: 600ms;
  --rs-duration-hero:  1000ms;
  --rs-duration-entrance: 1800ms;

  --rs-ease-standard:   cubic-bezier(0.23, 1, 0.32, 1);
  --rs-ease-emphasized: cubic-bezier(0.77, 0, 0.175, 1);
  --rs-ease-decelerate: cubic-bezier(0, 0, 0, 1);
  --rs-ease-accelerate: cubic-bezier(0.3, 0, 1, 1);

  /* ==========================================================
     DS LAYOUT
     ========================================================== */
  --rs-content-wide:    1200px;
  --rs-content-default: 960px;
  --rs-content-reading: 720px;
  --rs-content-narrow:  560px;
  /* --rs-reading-max retired → use --rs-content-reading */


  /* Z-index scale */
  --rs-z-base:      1;
  --rs-z-sticky:    90;
  --rs-z-mobile-cta: 998;
  --rs-z-overlay:   999;
  --rs-z-nav:       1000;
  --rs-z-dropdown:  1001;
  --rs-z-consent:   9999;
}

/* ============================================
   RESET & BASE
   ============================================ */
em.blue {
  color: var(--rs-ink-400);
  font-style: italic;
  font-weight: 700;
}
.brand { color: var(--rs-fg-primary); font-weight: 700; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--rs-font-sans);
  font-size: var(--rs-text-md);
  line-height: var(--rs-leading-loose);
  color: var(--rs-fg-secondary);
  background: var(--rs-bg-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rs-action-primary); text-decoration: none; transition: color var(--rs-duration-base) var(--rs-ease-standard); }
a:hover { color: var(--rs-action-primary-hover); }

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--rs-content-wide);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--rs-content-reading); }
.container--wide { max-width: 1400px; }

.section-label {
  display: inline-block;
  font-family: var(--rs-font-mono);
  font-size: var(--rs-text-xs);
  font-weight: 400;
  letter-spacing: var(--rs-tracking-wide);
  text-transform: uppercase;
  color: var(--rs-action-primary);
  background: var(--rs-ink-50);
  padding: 6px 18px;
  border-radius: var(--rs-radius-pill);
  margin-bottom: var(--rs-space-6);
}

h1, h2, h3, h4, .layer-title, .step-title { font-family: var(--rs-font-display); }

.section-title {
  font-family: var(--rs-font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: var(--rs-weight-semibold);
  color: var(--rs-fg-primary);
  line-height: var(--rs-leading-snug);
  margin-bottom: var(--rs-space-6);
  letter-spacing: var(--rs-tracking-snug);
}

.section-subtitle {
  font-size: clamp(17px, 1.2vw, 18px);
  color: var(--rs-fg-tertiary);
  max-width: var(--rs-content-reading);
  line-height: var(--rs-leading-relaxed);
  }

.section-subtitle.centered { margin: 0 auto; text-align: center; }

/* ── Stat-lead opener (Phase 2 anti-vibe) ── */
.stat-lead {
  display: block;
  font-size: clamp(44px, 6vw, 60px);
  font-weight: var(--rs-weight-semibold);
  line-height: 1.05;
  color: var(--rs-action-primary);
  margin-bottom: var(--rs-space-2);
  letter-spacing: var(--rs-tracking-snug);
}

.section-header { margin-bottom: var(--rs-space-16); }
.section-header .section-label { margin-bottom: var(--rs-space-2); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Body text sizes ── */
.body-lg { font-size: var(--rs-text-lg); line-height: var(--rs-leading-relaxed); color: var(--rs-fg-tertiary); }
.prose { max-width: var(--rs-content-reading); }
.prose p { margin-bottom: 1.5em; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-2);
  font-family: var(--rs-font-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: var(--rs-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--rs-duration-base) var(--rs-ease-standard), color var(--rs-duration-base) var(--rs-ease-standard), border-color var(--rs-duration-base) var(--rs-ease-standard);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--rs-action-primary);
  color: var(--rs-fg-on-accent);
  border-color: transparent;
}
.btn-primary:hover {
  background: var(--rs-action-primary-hover);
  color: var(--rs-fg-on-accent);
}

.btn-secondary {
  background: var(--rs-bg-surface);
  color: var(--rs-action-primary);
  border-color: var(--rs-action-primary);
}
.btn-secondary:hover {
  background: var(--rs-action-primary);
  color: var(--rs-fg-on-accent);
}

/* Phase 6: btn-white, btn-ghost, btn-outline-white REMOVED — use btn-primary / btn-secondary only */
/* Phase 7: active scale removed — buttons don't move */

/* Dark-section button inversion */
.cta-dark .btn-primary,
.page-hero--dark .btn-primary {
  background: var(--rs-neutral-0);
  color: var(--rs-midnight-800);
  border-color: var(--rs-neutral-0);
}
.cta-dark .btn-primary:hover,
.page-hero--dark .btn-primary:hover {
  background: var(--rs-neutral-100);
  border-color: var(--rs-neutral-100);
}
.cta-dark .btn-secondary,
.page-hero--dark .btn-secondary {
  background: transparent;
  color: var(--rs-neutral-0);
  border-color: var(--rs-white-30);
}
.cta-dark .btn-secondary:hover,
.page-hero--dark .btn-secondary:hover {
  background: var(--rs-white-10);
  color: var(--rs-neutral-0);
  border-color: var(--rs-white-60);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-3);
  align-items: center;
}

.store-badges {
  display: flex;
  gap: var(--rs-space-3);
  align-items: center;
  flex-wrap: wrap;
}
.store-badges img { height: 48px; width: auto; }

/* ============================================
   NAVIGATION
   ============================================ */
#site-header { min-height: 72px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--rs-z-nav);
  background: var(--rs-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
  height: 72px;
}
.nav.scrolled { border-bottom-color: var(--rs-border-default); box-shadow: var(--rs-shadow-sm); }

.nav-inner {
  max-width: var(--rs-content-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; max-width: none; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--rs-space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--rs-text-base);
  font-weight: var(--rs-weight-medium);
  color: var(--rs-fg-secondary);
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
}
/* top-level nav items must never wrap to two lines (breaks the 72px bar) */
.nav-links > li > a { white-space: nowrap; }
.nav-links a:hover { color: var(--rs-fg-primary); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: var(--rs-space-1);
  font-size: var(--rs-text-base); font-weight: var(--rs-weight-medium); color: var(--rs-fg-secondary);
  background: none; border: none; cursor: pointer;
  padding: 0; font-family: inherit;
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--rs-fg-primary); }
.nav-dropdown-trigger svg {
  transition: transform var(--rs-duration-base) var(--rs-ease-standard);
}
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--rs-bg-surface); border: 1px solid var(--rs-border-default);
  border-radius: var(--rs-radius-md); box-shadow: var(--rs-shadow-lg);
  padding: 8px 0; min-width: 220px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--rs-duration-base) var(--rs-ease-standard), visibility var(--rs-duration-base) var(--rs-ease-standard);
  z-index: var(--rs-z-dropdown);
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: var(--rs-text-sm); font-weight: var(--rs-weight-medium); color: var(--rs-fg-secondary);
  transition: background var(--rs-duration-base) var(--rs-ease-standard), color var(--rs-duration-base) var(--rs-ease-standard);
}
.nav-dropdown-menu a:hover { background: var(--rs-bg-surface-alt); color: var(--rs-fg-primary); }

/* ── Mega menu (desktop) ── */
.nav-mega .nav-mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--rs-bg-surface);
  border: 1px solid var(--rs-border-default);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-xl);
  padding: 0;
  min-width: 740px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rs-duration-base) var(--rs-ease-standard), visibility var(--rs-duration-base) var(--rs-ease-standard);
  z-index: var(--rs-z-dropdown);
}
.nav-mega .nav-mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-mega.open .nav-mega-menu { opacity: 1; visibility: visible; }
.nav-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 0;
}
.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-1);
  padding: 0 20px;
  border-left: 1px solid var(--rs-neutral-100);
}
.nav-mega-col:first-child { border-left: none; }
.nav-mega-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rs-neutral-400);
  margin-bottom: var(--rs-space-2);
  padding: 0;
}
.nav-mega-col a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--rs-neutral-600);
  padding: 5px 0;
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
  text-decoration: none;
}
.nav-mega-col a:hover { color: var(--rs-action-primary); }
.nav-mega-flag { font-size: 15px; }
.nav-mega-see-all {
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-semibold);
  color: var(--rs-action-primary);
  margin-top: 6px;
  display: inline-block;
}
.nav-mega-see-all:hover { color: var(--rs-action-primary-hover); }
.nav-mega-footer {
  border-top: 1px solid var(--rs-neutral-100);
  padding: 14px 20px;
  text-align: center;
}
.nav-mega-footer a {
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-semibold);
  color: var(--rs-action-primary);
}
.nav-mega-footer a:hover { color: var(--rs-action-primary-hover); }

/* ── Mobile mega headings ── */
.mobile-mega-heading {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rs-neutral-400);
  padding: 14px 12px 4px;
}
.mobile-mega-heading:first-child { padding-top: 8px; }
.mobile-mega-all-link {
  display: block;
  padding: 12px 12px;
  margin-top: 4px;
  border-top: 1px solid var(--rs-border-subtle);
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-action-primary);
  border-radius: 8px;
}
.mobile-mega-all-link:hover { background: var(--rs-ink-50); }

/* Mobile dropdown */
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--rs-midnight-800);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-dropdown-trigger:hover { background: var(--rs-neutral-50); color: var(--rs-action-primary); }
.mobile-dropdown-trigger svg {
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--rs-neutral-400);
}
.mobile-dropdown.open .mobile-dropdown-trigger svg { transform: rotate(180deg); }
.mobile-dropdown-menu {
  display: none;
  background: var(--rs-neutral-50);
  border-radius: 10px;
  margin: 2px 0 4px;
  overflow: hidden;
}
.mobile-dropdown.open .mobile-dropdown-menu { display: flex; flex-direction: column; }
.mobile-dropdown-menu a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--rs-neutral-600);
  border-radius: 0;
}
.mobile-dropdown-menu a:hover { background: var(--rs-neutral-100); color: var(--rs-midnight-800); }

.nav-cta { display: flex; align-items: center; gap: var(--rs-space-3); }
.nav-cta .btn { padding: 10px 24px; font-size: 14px; }

/* ── Language switcher ── */
.lang-switcher {
  position: relative;
  margin-left: var(--rs-space-1);
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--rs-neutral-50);
  border: 1px solid var(--rs-neutral-200);
  border-radius: var(--rs-radius-sm);
  font-family: var(--rs-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--rs-neutral-600);
  cursor: pointer;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
  line-height: 1;
}
.lang-switcher-btn:hover {
  background: var(--rs-neutral-0);
  border-color: var(--rs-neutral-300);
  color: var(--rs-midnight-800);
}
.lang-switcher-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-switcher-btn .chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--rs-duration-base) var(--rs-ease-standard);
}
.lang-switcher.open .lang-switcher-btn .chevron {
  transform: rotate(180deg);
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--rs-neutral-0);
  border: 1px solid var(--rs-neutral-200);
  border-radius: var(--rs-radius-md);
  box-shadow: var(--rs-shadow-md);
  padding: 6px 0;
  z-index: var(--rs-z-dropdown);
}
.lang-switcher.open .lang-menu { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--rs-neutral-600);
  text-decoration: none;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
}
.lang-menu a:hover {
  background: var(--rs-neutral-50);
  color: var(--rs-midnight-800);
}
.lang-menu a.active {
  color: var(--rs-action-primary);
  font-weight: var(--rs-weight-semibold);
  pointer-events: none;
}
.lang-menu .lang-flag {
  font-size: 18px;
  line-height: 1;
}

/* Download-app dropdown in nav (secondary button + menu, mirrors lang-switcher) */
.download-dropdown { position: relative; margin-left: var(--rs-space-2); }
.download-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--rs-action-primary);
  border-radius: var(--rs-radius-md);
  font-family: var(--rs-font-sans);
  font-size: 15px;
  font-weight: var(--rs-weight-semibold);
  color: var(--rs-action-primary);
  cursor: pointer;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
  line-height: 1;
  white-space: nowrap;
}
.download-dropdown-btn:hover {
  background: var(--rs-action-primary);
  color: var(--rs-neutral-0);
}
.download-dropdown-btn .chevron {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--rs-duration-base) var(--rs-ease-standard);
}
.download-dropdown.open .download-dropdown-btn .chevron { transform: rotate(180deg); }
.download-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--rs-neutral-0);
  border: 1px solid var(--rs-neutral-200);
  border-radius: var(--rs-radius-md);
  box-shadow: var(--rs-shadow-md);
  padding: 6px 0;
  z-index: var(--rs-z-dropdown);
}
.download-dropdown.open .download-menu { display: block; }
.download-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rs-neutral-600);
  text-decoration: none;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
}
.download-menu a:hover { background: var(--rs-neutral-50); color: var(--rs-midnight-800); }
.download-menu a svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Footer language switcher */
.footer-lang {
  display: flex;
  align-items: center;
  gap: var(--rs-space-3);
  margin-top: var(--rs-space-4);
}
.footer-lang a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--rs-white-70);
  text-decoration: none;
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
}
.footer-lang a:hover { color: var(--rs-white-90); }
.footer-lang a.active {
  color: var(--rs-white-90);
  font-weight: 600;
}
.footer-lang .lang-sep {
  color: var(--rs-white-60);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rs-midnight-800);
  margin: 5px 0;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
  border-radius: 2px;
}

/* Mobile nav */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--rs-z-overlay);
  border-bottom: 1px solid var(--rs-neutral-100);
  box-shadow: 0 16px 40px -8px rgba(11, 14, 32, 0.10), 0 4px 12px -4px rgba(11, 14, 32, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  max-height: calc(100dvh - 72px);
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease, visibility 0s linear 0.22s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s ease, visibility 0s linear 0s;
}
.mobile-menu-inner {
  padding: 12px 16px 8px;
}
.mobile-menu > a,
.mobile-menu > .mobile-dropdown {
  margin: 0 12px;
}
.mobile-menu > a:first-child { margin-top: 12px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 13px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--rs-midnight-800);
  border-radius: 10px;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.mobile-menu a:hover {
  background: var(--rs-neutral-50);
  color: var(--rs-action-primary);
}
.mobile-menu .btn {
  margin: 8px 12px 0;
  justify-content: center;
  font-size: 15px;
  padding: 13px 20px;
}
/* the drawer's link-color rule must not override button text color */
.mobile-menu .btn-primary { color: var(--rs-fg-on-accent); }
.mobile-menu .btn-primary:hover { color: var(--rs-fg-on-accent); }
.mobile-lang {
  display: flex;
  gap: 6px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--rs-neutral-100);
  margin-top: 8px;
}
.mobile-lang a {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rs-neutral-500);
  background: transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}
.mobile-lang a:hover { background: var(--rs-neutral-100); color: var(--rs-midnight-800); }
.mobile-lang a.active {
  background: var(--rs-ink-50);
  color: var(--rs-action-primary);
  pointer-events: none;
}

/* Mobile sticky CTA */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rs-neutral-0);
  border-top: 1px solid var(--rs-neutral-200);
  padding: 12px 24px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: var(--rs-z-mobile-cta);
}
.mobile-cta-bar .btn { width: 100%; justify-content: center; }

/* ============================================
   PAGE HERO (shared across inner pages)
   ============================================ */
.page-hero {
  padding: 160px 0 100px;
  background: var(--rs-bg-canvas);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero .section-title {
  font-size: clamp(34px, 4.5vw, 48px);
  max-width: var(--rs-content-reading);
  margin-left: auto;
  margin-right: auto;
}
.page-hero .hero-split { text-align: left; }
.page-hero .section-subtitle {
  max-width: var(--rs-content-narrow);
  margin: 0 auto;
  font-size: clamp(17px, 1.4vw, 19px);
}

/* ============================================
   QUICK FACTS BOX (country guides)
   ============================================ */
.quick-facts {
  max-width: var(--rs-content-default);
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 var(--rs-space-4);
}
.quick-facts-inner {
  background: var(--rs-neutral-50);
  border-radius: var(--rs-radius-xl);
  padding: 32px 36px 28px;
}
.quick-facts-title {
  font-size: var(--rs-text-sm);
  font-weight: var(--rs-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--rs-tracking-wide);
  color: var(--rs-action-primary);
  margin: 0 0 20px;
}
.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
}
.quick-facts-item {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-3);
}
.quick-facts-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--rs-radius-md);
  background: var(--rs-ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-facts-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--rs-action-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-facts-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rs-neutral-400);
  margin: 0 0 2px;
}
.quick-facts-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--rs-midnight-800);
  line-height: 1.3;
}
@media (max-width: 767px) {
  .quick-facts-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
  .quick-facts-inner { padding: 24px 20px 20px; }
}
@media (max-width: 480px) {
  .quick-facts-grid { grid-template-columns: 1fr; gap: 14px; }
  .quick-facts { margin-top: -32px; }
}

/* ============================================
   LAST UPDATED DATE (country guides)
   ============================================ */
.page-last-updated {
  font-size: 13px;
  color: var(--rs-neutral-400);
  margin: 4px 0 12px;
}
.page-last-updated time {
  font-weight: 600;
  color: var(--rs-neutral-500);
}

/* ============================================
   SOURCES / REFERENCES (country guides)
   ============================================ */
.sources-section {
  padding: var(--rs-space-20) 0;
  background: var(--rs-bg-canvas);
  border-top: 1px solid var(--rs-neutral-200);
}
.sources-section .section-label {
  margin-bottom: var(--rs-space-2);
}
.sources-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rs-midnight-800);
  margin: 0 0 8px;
}
.sources-section > .container > p {
  font-size: 14px;
  color: var(--rs-neutral-500);
  margin: 0 0 24px;
  line-height: 1.5;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--rs-space-3);
}
.sources-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.sources-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rs-action-primary);
  margin-top: 7px;
}
.sources-list a {
  color: var(--rs-action-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--rs-duration-base) var(--rs-ease-standard);
  overflow-wrap: break-word;
  word-break: break-word;
}
.sources-list a:hover {
  border-bottom-color: var(--rs-action-primary);
}
.sources-list .source-label {
  color: var(--rs-neutral-500);
}
@media (max-width: 767px) {
  .sources-section { padding: var(--rs-space-10) 0; }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: var(--rs-space-20) 0;
}
/* .compact and .spacious removed — Phase 5 Apple-clean: one rhythm */
.content-section.alt-bg,
.content-section.muted-bg {
  background: var(--rs-bg-canvas);
}
.content-section.dark-bg {
  background: var(--rs-midnight-800);
  color: var(--rs-neutral-0);
}
.content-section.dark-bg .section-label {
  background: var(--rs-white-08);
  color: var(--rs-white-60);
}
.content-section.dark-bg .section-title { color: var(--rs-neutral-0); }
.content-section.dark-bg .section-subtitle { color: var(--rs-white-60); }
.content-section.accent-bg {
  background: var(--rs-midnight-800);
  color: var(--rs-neutral-0);
}
.content-section.accent-bg .section-title { color: var(--rs-neutral-0); }
.content-section.accent-bg .section-subtitle { color: var(--rs-white-70); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--rs-neutral-50);
  border-radius: var(--rs-radius-lg);
  padding: var(--rs-space-10);
  transition: background var(--rs-duration-base) var(--rs-ease-standard),
              transform var(--rs-duration-base) var(--rs-ease-standard),
              box-shadow var(--rs-duration-base) var(--rs-ease-standard);
}
.card:hover {
  background: var(--rs-neutral-100);
  transform: translateY(-3px);
  box-shadow: var(--rs-shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rs-radius-md);
  background: var(--rs-ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--rs-space-4);
  flex-shrink: 0;
}
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--rs-action-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: var(--rs-text-lg);
  font-weight: var(--rs-weight-bold);
  color: var(--rs-fg-primary);
  margin-bottom: var(--rs-space-2);
  line-height: var(--rs-leading-snug);
}
.card p {
  font-size: var(--rs-text-base);
  color: var(--rs-fg-tertiary);
  line-height: 1.65;
}

/* Dark bg cards */
.dark-bg .card,
.accent-bg .card {
  background: var(--rs-white-06);
}
.dark-bg .card h3,
.accent-bg .card h3 { color: var(--rs-neutral-0); }
.dark-bg .card p,
.accent-bg .card p { color: var(--rs-white-60); }
.dark-bg .card:hover,
.accent-bg .card:hover {
  background: var(--rs-white-10);
}
.dark-bg .card-icon,
.accent-bg .card-icon {
  background: var(--rs-ink-a15);
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid { display: grid; gap: var(--rs-space-10); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--asymmetric { grid-template-columns: 1.2fr 1fr; align-items: center; }
.grid--asymmetric-reverse { grid-template-columns: 1fr 1.2fr; align-items: center; }

/* ============================================
   CTA DARK
   ============================================ */
.cta-dark {
  background: var(--rs-midnight-800);
  padding: var(--rs-space-20) 0;
  color: var(--rs-neutral-0);
  text-align: center;
}
.cta-dark .section-label {
  background: var(--rs-white-08);
  color: var(--rs-white-60);
}
.cta-dark .section-title {
  color: var(--rs-neutral-0);
}
.cta-dark .section-subtitle {
  color: var(--rs-white-60);
  margin: 0 auto 36px;
}
.cta-dark .btn-group {
  justify-content: center;
}
.cta-dark .store-badges {
  justify-content: center;
  margin-top: var(--rs-space-8);
}

/* CTA DARK — VARIANT: AGGRESSIVE (conversion pages) */
.cta-dark--aggressive {
  border-top: 3px solid var(--rs-ink-500);
}
.cta-dark--aggressive .section-subtitle .highlight-amount {
  color: var(--rs-ink-400);
  font-weight: var(--rs-weight-bold);
}

/* CTA DARK — VARIANT: SOFT (informational pages) */
.cta-dark--soft {
  padding: var(--rs-space-20) 0;
}
.cta-dark--soft .section-title {
  font-size: clamp(24px, 3.5vw, 32px);
}
.cta-dark--soft .section-subtitle {
  color: var(--rs-white-70);
  max-width: var(--rs-content-narrow);
}

/* CTA DARK — VARIANT: CONTEXTUAL (audience/geo pages) */
.cta-dark--contextual .cta-cross-links {
  margin-top: var(--rs-space-8);
  font-size: var(--rs-text-sm);
  color: var(--rs-white-60);
}
.cta-dark--contextual .cta-cross-links a {
  color: var(--rs-ink-400);
  text-decoration: none;
  font-weight: var(--rs-weight-medium);
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
}
.cta-dark--contextual .cta-cross-links a:hover {
  color: var(--rs-ink-300, #7B9AF7);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  background: var(--rs-midnight-950);
  color: var(--rs-white-70);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-8);
  padding-bottom: var(--rs-space-10);
  margin-bottom: var(--rs-space-10);
  border-bottom: 1px solid var(--rs-white-08);
}
.footer-brand-left img { height: auto; width: 160px; margin-bottom: var(--rs-space-3); }
.footer-brand-left p { font-size: 14px; line-height: 1.6; max-width: 380px; }
.footer-brand-right { display: flex; gap: var(--rs-space-3); flex-shrink: 0; }
.footer-store-badge { height: 40px; width: auto; border-radius: var(--rs-radius-sm); }
.footer-offices { font-size: 12px; color: var(--rs-white-60); margin-top: var(--rs-space-2); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--rs-space-12);
  margin-bottom: var(--rs-space-12);
}

.footer-col h3 {
  color: var(--rs-neutral-0);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--rs-space-5);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--rs-space-3); }
.footer-col a {
  color: var(--rs-white-70);
  font-size: 14px;
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
}
.footer-col a:hover { color: var(--rs-neutral-0); }

.footer-bottom {
  border-top: 1px solid var(--rs-white-08);
  padding-top: var(--rs-space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rs-space-4);
  font-size: 13px;
  color: var(--rs-white-60);
  text-align: center;
}

.footer-social {
  display: flex;
  gap: var(--rs-space-4);
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rs-white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
}
.footer-social a { color: var(--rs-white-60); }
.footer-social a:hover { background: var(--rs-action-primary); color: var(--rs-fg-inverse); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-disclaimer {
  font-size: 11px;
  color: var(--rs-neutral-400);
  margin-top: var(--rs-space-2);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .footer-disclaimer { font-size: 12px; }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--rs-neutral-200);
}
.faq-item:first-child {
  border-top: 1px solid var(--rs-neutral-200);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rs-space-4);
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--rs-font-sans);
  font-size: 18px;
  font-weight: var(--rs-weight-semibold);
  color: var(--rs-fg-primary);
  text-align: left;
  line-height: var(--rs-leading-normal);
  transition: color var(--rs-duration-base) var(--rs-ease-standard);
}
.faq-question:hover { color: var(--rs-action-primary); }
.faq-question:focus-visible {
  outline: 2px solid var(--rs-border-focus);
  outline-offset: 2px;
  border-radius: var(--rs-radius-xs);
}

/* ============================================
   FOCUS — site-wide visible keyboard focus
   (branded ring, propagates to all pages)
   ============================================ */
.btn:focus-visible,
.link-accent:focus-visible,
.nav-links a:focus-visible,
.nav-dropdown-trigger:focus-visible,
.download-dropdown-btn:focus-visible,
.lang-switcher-btn:focus-visible,
.nav-toggle:focus-visible,
.footer-col a:focus-visible,
.footer-lang a:focus-visible,
.footer-social a:focus-visible,
.audience-card:focus-visible,
.country-flag-card:focus-visible,
.tech-details-toggle:focus-visible,
.info-accordion-trigger:focus-visible,
.consent-toggle:focus-visible,
.form-submit:focus-visible,
.toggle-track:focus-visible {
  outline: 2px solid var(--rs-border-focus);
  outline-offset: 2px;
  border-radius: var(--rs-radius-xs);
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--rs-duration-base) var(--rs-ease-standard);
}
.faq-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--rs-neutral-400);
  transition: stroke var(--rs-duration-base) var(--rs-ease-standard);
}
.faq-question:hover .faq-icon svg { stroke: var(--rs-action-primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
/* Collapse via max-height. Cap is large enough for the longest answer (multi-
   paragraph legal text) so nothing truncates; closed state is a hard 0.
   (Grid 0fr->1fr was abandoned: it leaks extra children out when an answer has
   more than one direct <p>, which several FAQ pages do.) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--rs-duration-slower) cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 2400px; }
.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 17px;
  color: var(--rs-neutral-500);
  line-height: 1.7;
}
.faq-answer > p {
  font-size: 17px;
  color: var(--rs-neutral-500);
  line-height: 1.7;
  margin: 0 0 14px;
}
.faq-answer > p:last-child { margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
  border-radius: var(--rs-radius-md);
  padding: 24px 28px;
  margin: var(--rs-space-10) 0;
  font-size: 16px;
  line-height: 1.65;
}
.callout strong { display: block; margin-bottom: var(--rs-space-1); }
.callout p { margin: 0; }
/* Stacked callouts: add breathing room between consecutive callouts (40px gap reads as cramped on dark sections). */
.callout + .callout { margin-top: var(--rs-space-16); }

/* Flex layout (country guides with icon + content) */
.callout[style*="display:flex"],
.callout:has(.callout-icon) {
  display: flex;
  gap: var(--rs-space-4);
  align-items: flex-start;
}
.callout-icon { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; }
.callout-content { flex: 1; }
.callout-content strong {
  display: block; color: var(--rs-midnight-800); font-weight: 700; margin-bottom: var(--rs-space-1);
}
.callout-content p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rs-neutral-600); }

/* Variants */
.callout-info { background: var(--rs-ink-50); border-top: 3px solid var(--rs-action-primary); border-left: none; }
.callout-info strong { color: var(--rs-midnight-800); }
.callout-warning { background: #FFFBEB; border-top: 3px solid var(--rs-warning-500); border-left: none; }
.callout-danger { background: var(--rs-danger-50); border-top: 3px solid var(--rs-danger-500); border-left: none; }

/* Dark-section variants */
.callout-dark {
  background: var(--rs-white-06);
  border-top: 3px solid var(--rs-action-primary); border-left: none;
  color: var(--rs-white-80);
}
.callout-dark strong { color: var(--rs-neutral-0); }
.callout-dark-danger {
  background: var(--rs-danger-a10);
  border-top: 3px solid var(--rs-danger-500); border-left: none;
  color: var(--rs-white-80);
}
.callout-dark-danger strong { color: #FCA5A5; }
.callout-dark-warning {
  background: var(--rs-warning-a10);
  border-top: 3px solid var(--rs-warning-500); border-left: none;
  color: var(--rs-white-80);
}
.callout-dark-warning strong { color: #FCD34D; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
/* Reveal-on-scroll hides content only when JS is active AND the observer
   has not yet timed out. Without JS (.no-js), or if the observer never
   initializes (.reveal-fallback), content stays visible by default so no
   section can ship blank. */
.js:not(.reveal-fallback) .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--rs-duration-slow) ease-out, transform 0.6s ease-out;
}
.js:not(.reveal-fallback) .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Directional & scale fade-in variants */
.js:not(.reveal-fallback) .fade-in-left  { opacity: 0; transform: translateX(-30px); transition: opacity var(--rs-duration-slow) ease, transform var(--rs-duration-slow) ease; }
.js:not(.reveal-fallback) .fade-in-right { opacity: 0; transform: translateX(30px);  transition: opacity var(--rs-duration-slow) ease, transform var(--rs-duration-slow) ease; }
.js:not(.reveal-fallback) .fade-in-scale { opacity: 0; transform: scale(0.92);       transition: opacity var(--rs-duration-slow) ease, transform var(--rs-duration-slow) ease; }
.js:not(.reveal-fallback) .fade-in-left.visible,
.js:not(.reveal-fallback) .fade-in-right.visible,
.js:not(.reveal-fallback) .fade-in-scale.visible { opacity: 1; transform: none; }

/* REMOVED: All premium keyframes (Phase 2 Apple-clean — zero ambient animation) */

/* ============================================
   PAGE HERO — DARK AURORA VARIANT
   ============================================ */
.page-hero.page-hero--dark {
  background: var(--rs-midnight-800);
}
.page-hero--dark .section-label {
  background: var(--rs-ink-a10);
  color: var(--rs-ink-400);
  border: 1px solid var(--rs-ink-a20);
  /* backdrop-filter removed — polish pass */
}
.page-hero--dark .section-title { color: var(--rs-neutral-0); }
.page-hero--dark .section-subtitle { color: var(--rs-white-65); }
.page-hero--dark .brand { color: var(--rs-neutral-0); }
.page-hero--dark em.blue { color: var(--rs-ink-400); }
.page-hero--dark .page-last-updated { color: var(--rs-white-60); }
.page-hero--dark .page-last-updated time { color: var(--rs-white-60); }

/* Hero-split layout dark overrides */
.page-hero--dark .hero-split p,
.page-hero--dark .hero-split .body-lg,
.page-hero--dark .hero-split .prose p { color: var(--rs-white-70); }
.page-hero--dark .hero-split a:not(.btn) { color: var(--rs-ink-400); }
.page-hero--dark .hero-split .hero-image img {
  filter: drop-shadow(0 20px 60px var(--rs-dark-a30));
}
/* Bottom edge glow */
.page-hero--dark .container { position: relative; z-index: 1; }

/* Stagger children: add .stagger to parent */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ============================================
   RESPONSIVE (shared components only)
   ============================================ */
/* Nav: compress gracefully in the mid range so longer languages (FR/DE)
   stay on one line, then collapse to the hamburger before anything overflows.
   The hamburger breakpoint is higher than the rest of the responsive layout
   because the desktop nav's width is language-dependent. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .nav-links { gap: var(--rs-space-5); }
  .nav-links > li > a,
  .nav-dropdown-trigger { font-size: var(--rs-text-sm); }
  .nav-inner { padding-inline: var(--rs-space-4); }
}
@media (max-width: 1199px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .lang-switcher { display: none; }
  .download-dropdown { display: none; }
  .nav-toggle { display: block; }
  .nav-dropdown-menu { display: none; }
  .nav-mega .nav-mega-menu { display: none; }
}

@media (max-width: 1023px) {
  .js .fade-in, .js .fade-in-left, .js .fade-in-right, .js .fade-in-scale { opacity: 1; transform: none; transition: none; }
  .stagger > * { transition-delay: 0ms !important; }
  .footer-brand { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .content-section { padding: 56px 0; }
  .page-hero { padding: 120px 0 64px; }
  .cta-dark { padding: 56px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--asymmetric,
  .grid--asymmetric-reverse { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 72px; }
  .content-section { padding: 40px 0; }
  .cta-dark { padding: 40px 0; }
  .page-hero { padding: 110px 0 56px; }
  .page-hero .section-title { font-size: clamp(28px, 7vw, 36px); }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand-left { display: flex; flex-direction: column; align-items: center; }
  .footer-brand-left img { width: 120px; }
  .footer-brand-left p { max-width: 100%; }
  .footer-brand-right { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .footer-bottom { flex-direction: column; gap: var(--rs-space-4); text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Hamburger → X animation */
.mobile-menu.open ~ .nav .nav-toggle span,
.nav-toggle.active span { background: var(--rs-midnight-800); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (prefers-reduced-motion: reduce) {
  .js .fade-in, .js .fade-in-left, .js .fade-in-right, .js .fade-in-scale { opacity: 1; transform: none; transition: none; }
  .stagger > * { transition-delay: 0ms !important; }
  /* Phase 3: card hover is background-only, no transform to reset */
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* REMOVED: animation:none overrides for deleted animations (Phase 2) */
  [data-tilt] { transform: none !important; }
  [data-parallax] { transform: none !important; }
  [data-hero-reveal] > * { opacity: 1; transform: none; }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cb-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--rs-z-consent);
  background: var(--rs-bg-surface);
  box-shadow: 0 -4px 24px var(--rs-dark-a12);
  font-family: var(--rs-font-sans);
  font-size: var(--rs-text-sm);
  color: var(--rs-neutral-700);
  line-height: 1.5;
}
.cb-banner.cb-show { display: block; }

.cb-inner {
  max-width: var(--rs-content-wide);
  margin: 0 auto;
  padding: 20px 24px;
}

.cb-main {
  display: flex;
  align-items: flex-start;
  gap: var(--rs-space-6);
}

.cb-text { flex: 1; }
.cb-text h3 {
  font-size: 16px;
  font-weight: var(--rs-weight-bold);
  color: var(--rs-fg-primary);
  margin: 0 0 6px;
}
.cb-text p {
  margin: 0;
  color: var(--rs-fg-tertiary);
}
.cb-text a {
  color: var(--rs-action-primary);
  text-decoration: underline;
}

.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
  /* Wrap instead of overflowing: FR/PT button labels ("Tout Accepter",
     "Aceitar Tudo", "Personnaliser") are wider than EN and pushed the last
     button past the viewport edge on narrow screens. */
  flex-wrap: wrap;
}

.cb-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--rs-radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--rs-duration-base) var(--rs-ease-standard);
  white-space: nowrap;
}

.cb-btn-accept {
  background: var(--rs-action-primary);
  color: var(--rs-fg-on-accent);
  border-color: var(--rs-action-primary);
}
.cb-btn-accept:hover {
  background: var(--rs-action-primary-hover);
  border-color: var(--rs-action-primary-hover);
}

.cb-btn-reject {
  background: var(--rs-bg-surface);
  color: var(--rs-neutral-700);
  border-color: var(--rs-neutral-300);
}
.cb-btn-reject:hover {
  background: var(--rs-neutral-100);
}

.cb-btn-settings {
  background: transparent;
  color: var(--rs-action-primary);
  border-color: transparent;
  padding: 10px 12px;
}
.cb-btn-settings:hover {
  background: var(--rs-ink-50);
}

/* Settings panel */
.cb-settings {
  display: none;
  margin-top: var(--rs-space-4);
  padding-top: var(--rs-space-4);
  border-top: 1px solid var(--rs-border-default);
}
.cb-settings.cb-show { display: block; }

.cb-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rs-neutral-100);
}
.cb-category:last-child { border-bottom: none; }

.cb-cat-info { flex: 1; }
.cb-cat-name {
  font-weight: var(--rs-weight-semibold);
  color: var(--rs-fg-primary);
  font-size: var(--rs-text-sm);
}
.cb-cat-desc {
  font-size: 12px;
  color: var(--rs-fg-disabled);
  margin-top: 2px;
}

/* Toggle switch */
.cb-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--rs-space-4);
  padding: 10px 0;
  box-sizing: content-box;
}
.cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cb-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--rs-neutral-300);
  border-radius: var(--rs-radius-xl);
  cursor: pointer;
  transition: var(--rs-duration-base) var(--rs-ease-standard);
}
.cb-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--rs-bg-surface);
  border-radius: 50%;
  transition: var(--rs-duration-base) var(--rs-ease-standard);
}
.cb-toggle input:checked + .cb-toggle-slider { background: var(--rs-action-primary); }
.cb-toggle input:checked + .cb-toggle-slider::before { transform: translateX(20px); }
.cb-toggle input:disabled + .cb-toggle-slider { opacity: 0.6; cursor: default; }

.cb-save-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: var(--rs-space-3);
}

/* Re-open button (bottom-left corner) */
.cb-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9997;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rs-midnight-800);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--rs-dark-a15);
  transition: background var(--rs-duration-base) var(--rs-ease-standard);
}
.cb-reopen:hover { background: var(--rs-midnight-600); }
.cb-reopen.cb-show { display: flex; }
.cb-reopen svg { width: 20px; height: 20px; fill: var(--rs-fg-inverse); }

@media (max-width: 767px) {
  .cb-main { flex-direction: column; gap: 14px; }
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; text-align: center; padding: 12px 14px; }
  .cb-inner { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .cb-reopen { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   UTILITY CLASSES — extracted from inline styles
   ============================================================ */
.text-blue        { color: var(--rs-ink-400); }
.text-white       { color: var(--rs-neutral-0); }
.text-white-70    { color: var(--rs-white-70); }
.text-white-50    { color: var(--rs-white-50); }
.text-white-60    { color: var(--rs-white-60); }
.text-muted       { color: var(--rs-neutral-500); }
.text-dark        { color: var(--rs-midnight-800); }
.text-center      { text-align: center; }
.text-no-deco     { text-decoration: none; }
.text-dotted-ul   { color: inherit; text-decoration: underline dotted; }
/* Keeps a flag emoji glued to its language name across line breaks. */
.lang-pair        { white-space: nowrap; }

.cta-links        { margin-top: var(--rs-space-6); font-size: var(--rs-text-base); color: var(--rs-white-70); }
.cta-links a      { color: var(--rs-ink-400); }
.cta-links-dark   { background: var(--rs-white-08); color: var(--rs-white-70); }

.mt-2             { margin-top: var(--rs-space-2); }
.mt-4             { margin-top: var(--rs-space-4); }
.mt-6             { margin-top: var(--rs-space-6); }
.mt-8             { margin-top: var(--rs-space-8); }
.mt-12            { margin-top: var(--rs-space-12); }
.mt-xl            { margin-top: var(--rs-space-10); }
.mt-lg            { margin-top: var(--rs-space-6); }
.mb-lg            { margin-bottom: var(--rs-space-6); }
.mb-xl            { margin-bottom: var(--rs-space-10); }
.mb-2xl           { margin-bottom: var(--rs-space-16); }
.mx-auto-mb-md    { margin: 0 auto var(--rs-space-4); }
.mx-auto          { margin-left: auto; margin-right: auto; }

.w-full           { width: 100%; }
.justify-center   { justify-content: center; }
.block-no-deco    { display: block; text-decoration: none; }
.dark-link        { color: var(--rs-midnight-800); text-decoration: none; }

.prose-lg         { font-size: 18px; line-height: 1.3; }
.meta-sm          { font-size: 13px; color: var(--rs-neutral-500); margin-top: var(--rs-space-2); }
.meta-xs          { margin-top: var(--rs-space-2); font-size: 13px; opacity: 0.5; }

.stroke-warning   { stroke: #FCD34D; }
.stroke-danger    { stroke: #FCA5A5; }
.bg-warning-soft  { background: var(--rs-warning-a15); }
.bg-danger-soft   { background: var(--rs-danger-a15); }

.content-narrow   { max-width: var(--rs-content-reading); margin: 48px auto 0; }
.content-narrow-sm { max-width: var(--rs-content-reading); margin: 32px auto 0; }
.content-mid      { max-width: var(--rs-content-reading); margin-left: auto; margin-right: auto; }
.center-mb-2xl    { text-align: center; margin-bottom: var(--rs-space-16); }

.divider-bottom   { margin-bottom: 36px; padding-bottom: var(--rs-space-5); border-bottom: 1px solid var(--rs-neutral-200); }

.stroke-muted     { stroke: var(--rs-neutral-400); }
.stroke-primary   { stroke: var(--rs-ink-400); }
.mt-2xl           { margin-top: var(--rs-space-16); }
.mt-10            { margin-top: var(--rs-space-10); }
.mt-5             { margin-top: var(--rs-space-5); }
.mb-12            { margin-bottom: var(--rs-space-12); }
.py-4xl           { padding: var(--rs-space-24) 0; }
