/* =====================================================================
   NaviRoute — Design System "Yacht / Marinaresco Premium"
   ===================================================================== */

/* ---------- 1.1 Palette + 1.2 Type + 1.3 Spacing + 1.4 Shadows ---------- */
:root {
  /* Navy profondo */
  --navy-900: #0A1A2F;
  --navy-800: #0F243F;
  --navy-700: #14304F;
  --navy-600: #1C3F66;

  /* Ottone / oro */
  --brass-600: #9A7B3F;
  --brass-500: #B8923F;
  --gold-400:  #C9A227;
  --gold-300:  #E0BE6A;
  --gold-200:  #F0D89B;

  /* Sabbia / neutri caldi */
  --sand-50:   #FBF8F1;
  --sand-100:  #F4EEE1;
  --sand-200:  #E7DEC9;
  --sand-300:  #D8CCB0;

  /* Acquamarina */
  --aqua-600:  #2C7A78;
  --aqua-500:  #3E9B97;
  --aqua-400:  #5FB8B2;

  /* Testo */
  --ink-900:   #11202E;
  --ink-600:   #44586B;
  --paper-100: #F2EEE4;
  --paper-300: #B9C4D0;

  /* Semantici */
  --danger-500: #B5462E;
  --success-500:#3E8B5A;
  --warn-500:   #C98A2E;

  /* Tipografia — Apple-like system stack */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Inter", system-ui, sans-serif;

  --fs-overline: 0.78rem;
  --fs-body-sm:  0.92rem;
  --fs-body:     1.0625rem;
  --fs-lead:     1.22rem;
  --fs-h3:       1.6rem;
  --fs-h2:       2.4rem;
  --fs-h1:       clamp(2.8rem, 6vw, 4.6rem);

  --lh-tight: 1.08;
  --lh-snug:  1.3;
  --lh-body:  1.62;

  --ls-overline: 0.18em;
  --ls-display: -0.022em;

  /* Spaziatura */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --space-10: 128px;

  --maxw: 1200px;
  --maxw-text: 68ch;
  --gutter: clamp(20px, 5vw, 64px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Ombre */
  --shadow-xs: 0 1px 2px rgba(10,26,47,.06);
  --shadow-sm: 0 4px 14px rgba(10,26,47,.08);
  --shadow-md: 0 14px 40px rgba(10,26,47,.14);
  --shadow-gold: 0 8px 24px rgba(201,162,39,.28);

  --hairline: 1px solid rgba(201,162,39,.30);
  --hairline-sand: 1px solid var(--sand-200);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--aqua-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-display); margin: 0 0 var(--space-4); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: 600; letter-spacing: -0.018em; }
p  { margin: 0 0 var(--space-4); }
ul { margin: 0; }

:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.overline {
  font: 600 var(--fs-overline)/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--ls-overline);
  color: var(--gold-400);
  margin: 0 0 var(--space-4);
}

.section-rule { width: 56px; height: 2px; background: var(--gold-400); border: none; margin: 0 0 var(--space-5); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold-300); color: var(--navy-900);
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1px solid var(--brass-600);
  box-shadow: var(--shadow-gold);
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer; text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,39,.38); text-decoration: none; }

.btn-ghost {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  color: var(--paper-100); background: transparent;
  border: 1px solid rgba(240,216,155,.45);
  padding: 13px 26px; border-radius: var(--radius-pill);
  transition: background .18s ease, border-color .18s ease;
  cursor: pointer; text-align: center;
}
.btn-ghost:hover { background: rgba(240,216,155,.10); border-color: var(--gold-300); text-decoration: none; }

/* Ghost scuro (su sfondo chiaro) */
.btn-ghost--dark {
  color: var(--ink-900);
  border-color: rgba(154,123,63,.55);
}
.btn-ghost--dark:hover { background: rgba(201,162,39,.10); border-color: var(--brass-500); }

/* ---------- Glass ---------- */
.glass {
  background: rgba(15, 36, 63, 0.55);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(240, 216, 155, 0.18);
}
.glass--light {
  background: rgba(251, 248, 241, 0.65);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  border: 1px solid rgba(216, 204, 176, 0.5);
}

/* ---------- Decorations ---------- */
.compass { display: block; }
.rope-divider { display: block; width: 100%; height: 8px; color: var(--brass-500); }
.waves { display: block; width: 100%; height: 90px; }
/* I "waves" a fondo sezione vanno ANCORATI al bordo inferiore (come quello dell'hero):
   altrimenti il padding-bottom della sezione lascia una banda di colore (navy) SOTTO
   l'onda, creando la "barra orfana". */
.section { position: relative; }
.section > .waves { position: absolute; left: 0; bottom: -1px; z-index: 1; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--space-5);
  padding: 12px var(--gutter);
}
.site-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--paper-100); text-decoration: none; letter-spacing: .01em;
}
.site-nav .brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.site-nav ul {
  display: flex; gap: var(--space-5); list-style: none; padding: 0; margin: 0 auto 0 var(--space-6);
}
.site-nav ul a {
  color: var(--paper-300); font-weight: 500; font-size: var(--fs-body-sm);
  text-decoration: none; transition: color .15s ease;
}
.site-nav ul a:hover { color: var(--gold-300); text-decoration: none; }
.site-nav .btn-primary { padding: 10px 20px; font-size: .95rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid rgba(240,216,155,.4);
  color: var(--paper-100); width: 44px; height: 44px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.3rem; line-height: 1;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) var(--space-9);
  color: var(--paper-100);
  background:
    linear-gradient(180deg, rgba(10,26,47,.72) 0%, rgba(10,26,47,.55) 40%, rgba(10,26,47,.88) 100%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  overflow: hidden;
  text-align: center;
}
.hero-inner { max-width: 960px; margin-inline: auto; position: relative; z-index: 2; }
.hero .compass-watermark {
  position: absolute; top: 50%; left: 50%;
  width: min(92vw, 820px); height: min(92vw, 820px);
  transform: translate(-50%, -50%);
  color: var(--gold-400); opacity: .08; z-index: 1;
  pointer-events: none;
  animation: slow-spin 120s linear infinite;
}
@keyframes slow-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero .hero-icon {
  width: 92px; height: 92px; border-radius: 20px; margin: 0 auto var(--space-5);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(240,216,155,.25);
}
.hero .overline { color: var(--gold-300); }
.hero h1 { color: var(--paper-100); margin-bottom: var(--space-5); text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero h1 em { font-style: normal; font-weight: 700; color: var(--gold-300); letter-spacing: -0.03em; }
.hero-sub {
  font-size: var(--fs-lead); color: var(--paper-100);
  max-width: 62ch; margin: 0 auto var(--space-6);
}
.hero-sub strong { color: var(--gold-200); font-weight: 600; }
.hero-cta { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-7); }
.hero-disclaimer {
  font-size: var(--fs-body-sm); color: var(--paper-300);
  max-width: 64ch; margin: 0 auto; line-height: 1.5;
  padding-top: var(--space-5); border-top: 1px solid rgba(240,216,155,.18);
}
.hero .waves { position: absolute; bottom: -1px; left: 0; color: var(--sand-50); z-index: 2; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding-block: clamp(64px, 12vh, 128px); }
.section--light { background: var(--sand-50); color: var(--ink-900); }
.section--sand { background: var(--sand-100); color: var(--ink-900); }
.section--dark { background: var(--navy-800); color: var(--paper-100); position: relative; }
.section--darker { background: var(--navy-900); color: var(--paper-100); }

.section--dark h2, .section--darker h2 { color: var(--paper-100); }
.section--dark .overline, .section--darker .overline { color: var(--gold-300); }

.section-head { max-width: var(--maxw-text); margin-bottom: var(--space-7); }
.section-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-400); display: block; margin-bottom: var(--space-2); }

.rope-band { background: var(--sand-50); padding: 6px 0; }
.section--sand + .rope-band, .rope-band.on-sand { background: var(--sand-100); }

/* =====================================================================
   FEATURES
   ===================================================================== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6); margin-top: var(--space-7);
}
.card {
  background: var(--sand-100); border: var(--hairline-sand);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.35); }
.card .card-num {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--brass-500);
  display: block; margin-bottom: var(--space-3);
}
.card .icon { color: var(--brass-500); width: 38px; height: 38px; margin-bottom: var(--space-3); }
.card h3 { font-size: 1.42rem; margin-bottom: var(--space-3); color: var(--ink-900); }
.card p { color: var(--ink-600); font-size: var(--fs-body-sm); margin: 0; }
.card::after {
  content: ""; position: absolute; left: var(--space-6); right: var(--space-6); top: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold-300), transparent);
  border-radius: 2px; opacity: 0; transition: opacity .2s ease;
}
.card:hover::after { opacity: 1; }

/* =====================================================================
   MAPS — 15 regions
   ===================================================================== */
.maps-intro { max-width: var(--maxw-text); font-size: var(--fs-lead); color: var(--paper-300); margin-bottom: var(--space-7); }
.maps-intro strong { color: var(--gold-200); }
.region-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5); list-style: none; padding: 0; margin: 0 0 var(--space-7);
}
.region {
  background: var(--navy-700); border: 1px solid var(--navy-600);
  border-radius: var(--radius-md); padding: var(--space-5);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative; padding-left: calc(var(--space-5) + 14px);
}
.region::before {
  content: ""; position: absolute; left: 0; top: var(--space-5); bottom: var(--space-5);
  width: 3px; background: var(--gold-400); border-radius: 0 3px 3px 0;
}
.region:hover { transform: translateY(-3px); border-color: rgba(201,162,39,.45); background: var(--navy-600); }
.region strong { display: block; font-family: var(--font-display); font-size: 1.32rem; color: var(--gold-300); margin-bottom: 6px; line-height: 1.2; }
.region span { font-size: var(--fs-body-sm); color: var(--paper-300); line-height: 1.5; }
.maps-note { font-size: var(--fs-body-sm); color: var(--paper-300); font-style: italic; max-width: var(--maxw-text); }
.maps-count { display: inline-block; font-family: var(--font-display); color: var(--gold-300); }

/* =====================================================================
   TRUST
   ===================================================================== */
.trust-lead { max-width: var(--maxw-text); font-size: var(--fs-lead); color: var(--ink-600); margin-bottom: var(--space-6); }
.trust-points { list-style: none; padding: 0; margin: 0 0 var(--space-7); max-width: var(--maxw-text); }
.trust-points li {
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-bottom: var(--hairline-sand); position: relative; color: var(--ink-600);
}
.trust-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border: 2px solid var(--gold-400); border-radius: 50%;
}
.trust-points strong { color: var(--ink-900); }

.disclaimer {
  margin: var(--space-6) 0; padding: var(--space-6);
  background: var(--navy-900); color: var(--paper-100);
  border-left: 4px solid var(--gold-400); border-radius: var(--radius-md);
  font-size: var(--fs-body); line-height: 1.6; max-width: var(--maxw-text);
  box-shadow: var(--shadow-sm);
}
.disclaimer::before {
  content: "⚓"; display: block; font-size: 1.4rem; color: var(--gold-300); margin-bottom: var(--space-2);
}
.trust-cta { margin-top: var(--space-6); }

/* =====================================================================
   DOWNLOAD
   ===================================================================== */
.download { text-align: center; position: relative; overflow: hidden; }
.download .compass-watermark {
  position: absolute; top: 50%; right: -120px; width: 460px; height: 460px;
  transform: translateY(-50%); color: var(--gold-400); opacity: .07; pointer-events: none;
}
.download-inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.download .hero-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto var(--space-5); box-shadow: var(--shadow-md), 0 0 0 1px rgba(240,216,155,.25); }
.download p { color: var(--paper-300); font-size: var(--fs-lead); margin-bottom: var(--space-6); }
.download .store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--navy-700); border: 1px solid var(--navy-600);
  color: var(--paper-100); padding: 14px 26px; border-radius: var(--radius-md);
  font-weight: 600; cursor: default;
}
.download .store-badge small { display: block; font-size: .72rem; color: var(--paper-300); font-weight: 400; }
.download .store-note { font-size: var(--fs-body-sm); color: var(--paper-300); margin-top: var(--space-5); font-style: italic; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6); margin-top: var(--space-6);
}
.contact-card {
  background: var(--sand-100); border: var(--hairline-sand); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-xs);
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.contact-card p { color: var(--ink-600); font-size: var(--fs-body-sm); margin-bottom: var(--space-2); }
.contact-card a { font-weight: 600; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-900); color: var(--paper-300); padding: var(--space-9) 0 var(--space-6); position: relative; margin-top: 90px; }
.site-footer .waves-top { position: absolute; top: -89px; left: 0; width: 100%; height: 90px; display: block; color: var(--navy-900); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--space-7);
  padding-bottom: var(--space-7); border-bottom: 1px solid var(--navy-600);
}
.footer-brand .brand { font-family: var(--font-display); font-size: 1.7rem; color: var(--paper-100); margin: 0 0 var(--space-3); display: flex; align-items: center; gap: 10px; }
.footer-brand .brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-tagline { font-size: var(--fs-body-sm); color: var(--paper-300); max-width: 38ch; }
.footer-coord { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--brass-500); letter-spacing: .08em; opacity: .8; margin-top: var(--space-4); }
.footer-head { font: 600 var(--fs-overline)/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--gold-400); margin: 0 0 var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: var(--paper-300); font-size: var(--fs-body-sm); }
.footer-col a:hover { color: var(--gold-300); }
.footer-company p { font-size: var(--fs-body-sm); color: var(--paper-300); margin-bottom: var(--space-3); }
.footer-company a { color: var(--aqua-400); }

.footer-bottom { padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.footer-disclaimer-mini { font-size: .82rem; color: var(--paper-300); max-width: 90ch; line-height: 1.5; opacity: .9; }
.footer-legal { font-size: .82rem; color: var(--paper-300); }
.footer-bottom .footer-cookie-link { background: none; border: none; color: var(--aqua-400); font: inherit; font-size: .82rem; cursor: pointer; padding: 0; text-decoration: underline; }
.footer-bottom .footer-cookie-link:hover { color: var(--gold-300); }

/* =====================================================================
   LEGAL PAGES (privacy / cookie / disclaimer)
   ===================================================================== */
.legal-page { background: var(--sand-50); }
.legal-hero {
  background: var(--navy-900); color: var(--paper-100);
  padding: 160px var(--gutter) var(--space-8);
  position: relative; overflow: hidden;
}
.legal-hero .compass-watermark { position: absolute; top: 50%; right: -100px; width: 360px; height: 360px; transform: translateY(-50%); color: var(--gold-400); opacity: .08; }
.legal-hero-inner { max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 2; }
.legal-hero h1 { color: var(--paper-100); max-width: 22ch; }
.legal-eyebrow, .legal-page .overline { color: var(--gold-300); }
.legal-subtitle { color: var(--paper-300); font-size: var(--fs-lead); max-width: 60ch; }
.legal-meta, .legal-page .cp-meta { font-size: var(--fs-body-sm); color: var(--brass-500); }

.legal-content { max-width: 80ch; margin: var(--space-8) auto var(--space-9); padding-inline: var(--gutter); }
.legal-content h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink-900); }
.legal-content h2 { font-size: var(--fs-h3); color: var(--ink-900); margin-top: var(--space-7); padding-top: var(--space-4); border-top: var(--hairline-sand); }
.legal-content h3 { font-size: 1.3rem; color: var(--ink-900); margin-top: var(--space-5); }
.legal-content p, .legal-content li { color: var(--ink-600); }
.legal-content strong { color: var(--ink-900); }
.legal-content ul { padding-left: var(--space-5); margin-bottom: var(--space-4); }
.legal-content li { margin-bottom: var(--space-2); }
.legal-content a { color: var(--aqua-600); font-weight: 500; }
.legal-content code { background: var(--sand-100); border: var(--hairline-sand); border-radius: 5px; padding: 1px 6px; font-size: .88em; }
.legal-content time { color: var(--ink-600); }

/* Callout boxes */
.legal-callout {
  border-radius: var(--radius-md); padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0; box-shadow: var(--shadow-sm);
}
.legal-callout--primary { background: var(--navy-900); color: var(--paper-100); border-left: 4px solid var(--gold-400); }
.legal-callout--primary p { color: var(--paper-100); }
.legal-callout--primary strong { color: var(--gold-200); }
.legal-callout--accent { background: var(--sand-100); border-left: 4px solid var(--brass-500); }
.legal-callout--accent strong { color: var(--ink-900); }
.legal-callout-title { font: 600 var(--fs-overline)/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--gold-300); margin-bottom: var(--space-3); }

/* Index nav */
.legal-nav { background: var(--sand-100); border: var(--hairline-sand); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin: var(--space-6) 0; }
.legal-nav ul { list-style: none; padding: 0; columns: 2; column-gap: var(--space-6); }
.legal-nav li { margin-bottom: var(--space-2); break-inside: avoid; }
.legal-nav a { color: var(--ink-900); font-size: var(--fs-body-sm); font-weight: 500; }

.legal-section { scroll-margin-top: 90px; }
.cp-disclaimer, .legal-footer-note { color: var(--ink-900); }
.legal-footer { max-width: 80ch; margin: 0 auto var(--space-9); padding: var(--space-6) var(--gutter) 0; border-top: var(--hairline-sand); }
.legal-footer-note strong { color: var(--ink-900); }

/* Cookie table */
.cp-table-wrap { overflow-x: auto; margin: var(--space-5) 0; border: var(--hairline-sand); border-radius: var(--radius-md); }
.cp-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--fs-body-sm); }
.cp-table th { background: var(--navy-800); color: var(--paper-100); text-align: left; padding: var(--space-3) var(--space-4); font-family: var(--font-body); font-weight: 600; }
.cp-table td { padding: var(--space-3) var(--space-4); border-top: var(--hairline-sand); color: var(--ink-600); vertical-align: top; }
.cp-table tr:nth-child(even) td { background: var(--sand-100); }
.cp-table code { font-size: .82em; }
.cp-note { font-size: var(--fs-body-sm); font-style: italic; color: var(--ink-600); }

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: rgba(10,26,47,.96);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-top: 1px solid rgba(240,216,155,.25);
  color: var(--paper-100);
  padding: var(--space-5) var(--gutter);
  box-shadow: 0 -8px 30px rgba(0,0,0,.4);
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center; }
.cookie-banner__text { max-width: 70ch; }
.cookie-banner__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-300); margin: 0 0 var(--space-2); }
.cookie-banner__body { font-size: var(--fs-body-sm); color: var(--paper-300); margin: 0; line-height: 1.5; }
.cookie-banner__body a { color: var(--aqua-400); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.cb-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.cb-btn:hover { transform: translateY(-1px); }
.cb-btn--accept { background: linear-gradient(180deg, var(--gold-300), var(--gold-400)); color: var(--navy-900); border-color: var(--brass-600); }
.cb-btn--reject { background: transparent; color: var(--paper-100); border-color: rgba(240,216,155,.5); }
.cb-btn--reject:hover { background: rgba(240,216,155,.10); }
.cb-btn--prefs { background: transparent; color: var(--paper-300); border-color: rgba(185,196,208,.4); }
.cb-btn--prefs:hover { color: var(--paper-100); border-color: var(--paper-300); }

/* Preferences modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1100; display: none; }
.cookie-modal.is-open { display: block; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(10,26,47,.75); backdrop-filter: blur(4px); }
.cookie-modal__dialog {
  position: relative; z-index: 1; max-width: 640px; width: calc(100% - 40px);
  margin: 7vh auto; max-height: 86vh; overflow-y: auto;
  background: var(--sand-50); color: var(--ink-900);
  border-radius: var(--radius-lg); border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-md); padding: var(--space-6);
}
.cookie-modal__dialog h2 { font-size: 1.9rem; color: var(--ink-900); margin-bottom: var(--space-2); }
.cookie-modal__intro { color: var(--ink-600); font-size: var(--fs-body-sm); margin-bottom: var(--space-5); }
.cookie-modal__intro a { font-weight: 600; }

.cookie-cat {
  border: var(--hairline-sand); border-radius: var(--radius-md);
  padding: var(--space-5); margin-bottom: var(--space-4); background: var(--sand-100);
}
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-2); }
.cookie-cat__title { font-weight: 600; color: var(--ink-900); font-size: 1.05rem; }
.cookie-cat__desc { font-size: var(--fs-body-sm); color: var(--ink-600); margin: 0; }
.cookie-cat__always { font-size: .82rem; color: var(--success-500); font-weight: 600; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle__track { position: absolute; inset: 0; background: var(--sand-300); border-radius: var(--radius-pill); transition: background .2s ease; pointer-events: none; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-xs); transition: transform .2s ease; }
.toggle input:checked + .toggle__track { background: var(--success-500); }
.toggle input:checked + .toggle__track::after { transform: translateX(22px); }
.toggle input:disabled + .toggle__track { background: var(--brass-500); opacity: .85; }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--gold-300); outline-offset: 2px; }

.cookie-modal__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.cookie-modal__actions .cb-btn--reject, .cookie-modal__actions .cb-btn--prefs { color: var(--ink-900); border-color: rgba(154,123,63,.5); }
.cookie-modal__actions .cb-btn--reject:hover, .cookie-modal__actions .cb-btn--prefs:hover { background: rgba(201,162,39,.10); }
.cookie-modal__footer { margin-top: var(--space-5); padding-top: var(--space-4); border-top: var(--hairline-sand); font-size: var(--fs-body-sm); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 768px) {
  .site-nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: var(--space-4) var(--gutter); background: rgba(10,26,47,.97); backdrop-filter: blur(12px); }
  .site-nav ul.is-open { display: flex; }
  .site-nav ul li { padding: 10px 0; border-bottom: 1px solid var(--navy-600); }
  .nav-toggle { display: block; }
  .site-nav .btn-primary { display: none; }
  .cookie-banner__inner { grid-template-columns: 1fr; }
  .cookie-banner__actions { width: 100%; }
  .cb-btn { flex: 1 1 auto; min-width: 120px; }
  .legal-nav ul { columns: 1; }
}
@media (max-width: 520px) {
  .hero { padding-top: 110px; }
  .hero .hero-icon { width: 76px; height: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-modal__dialog { margin: 4vh auto; padding: var(--space-5); }
  .download .store-badge { width: 100%; justify-content: center; }
}

/* =====================================================================
   MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero .compass-watermark { animation: none !important; }
}
