/* ============================================================
   Eco Map · Eco Planète — Sponsor Page
   Palette: Eco Planète brand slate-navy blue, sand, warm sun accent
   ============================================================ */

:root {
  --blue-900: #16283d;   /* deep navy — headings, ink, dark sections */
  --blue-700: #355277;   /* primary brand blue — buttons, links, header */
  --blue-500: #4f7099;   /* lighter step — hover / accents */
  --blue-300: #a9bdd4;   /* light blue — borders, soft highlights */
  --blue-50:  #eaeff5;   /* very light blue — pill & icon backgrounds */
  --accent:   #124f93;   /* vivid brand accent (section headings) */

  --ocean:    #5ba8d4;   /* lively ocean accent (map tier, waves) */

  --sun:      #f4b942;
  --sun-soft: #fcd97a;

  --sand-50:  #fdfaf2;
  --sand-100: #f8f0d8;
  --sand-200: #f5ead0;

  --ink:      #16283d;
  --muted:    #5d6b7d;
  --line:     #d9d3c2;

  --shadow-sm: 0 2px 8px rgba(22, 40, 61, 0.07);
  --shadow-md: 0 8px 28px rgba(22, 40, 61, 0.11);
  --shadow-lg: 0 20px 50px rgba(22, 40, 61, 0.17);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-500); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--blue-900);
}
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); margin-bottom: .6em; }
h2 em { font-style: italic; color: var(--blue-700); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 1rem;
  padding: 6px 14px;
  background: var(--blue-50);
  border-radius: 999px;
}
.eyebrow.light { background: rgba(255,255,255,0.12); color: var(--sand-100); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-900); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand-sub { font-size: 0.78rem; color: var(--muted); font-style: italic; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--blue-500);
  transform: scaleX(0); transform-origin: center;
  transition: transform .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--blue-700);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--blue-500); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
  cursor: pointer;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-primary {
  background: var(--blue-700);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--blue-900) !important;
  border: 1.5px solid var(--blue-700);
}
.btn-ghost:hover { background: var(--blue-50); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 92px 0 120px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf1f8 0%, #d9e6f1 60%, #c6daec 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(244,185,66,0.25), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(91,168,212,0.22), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-logo {
  width: 120px; height: 120px; margin: 0 auto 24px;
  filter: drop-shadow(0 6px 16px rgba(53, 82, 119, 0.18));
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-style: italic;
  margin-bottom: 8px;
  color: var(--blue-900);
}
.hero-sub {
  display: block;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: var(--blue-700);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.hero-tagline {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 18px auto 6px;
  max-width: 720px;
}
.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--blue-700);
  margin: 14px auto 28px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wave-divider {
  position: absolute; bottom: -1px; left: 0; right: 0;
  width: 100%; height: 64px;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section-alt { background: var(--sand-100); }
.section-dark {
  background: linear-gradient(135deg, var(--blue-900) 0%, #27415e 100%);
  color: var(--sand-50);
}
.section-dark h2.invert, .section-dark .lede.invert { color: var(--sand-50); }

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.benefit-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
}
.benefit-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--blue-500);
}
.benefit-list .bullet {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.05rem;
}
.benefit-list .bullet i { line-height: 1; }
.benefit-list strong { color: var(--blue-900); }

/* ============================================================
   Format / Fold
   ============================================================ */
.fold-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 36px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.fold-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fold-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fold-illus {
  width: 100%;
  height: 130px;
  display: grid;
  place-items: center;
}
.fold-illus svg {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.fold-cap {
  margin-top: 16px;
}
.fold-cap strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.25;
}
.fold-cap span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}
.fold-arrow {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: 1.15rem;
  align-self: center;
  margin-top: -22px; /* nudge to align with illustration centerline above the caption */
}

.fold-features {
  list-style: none;
  margin: 32px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.fold-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.fold-features i {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 50%;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .fold-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }
}

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

@media (max-width: 720px) {
  .fold-wrap { padding: 24px 18px; }
  .fold-grid {
    flex-wrap: wrap;
    gap: 24px 12px;
    justify-content: center;
  }
  .fold-step {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
  .fold-arrow { display: none; }
  .fold-illus { height: 110px; }
  .fold-cap strong { font-size: 1rem; }
  .fold-cap span { font-size: 0.9rem; }
}

@media (max-width: 420px) {
  .fold-step {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .fold-illus { height: 120px; }
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.spec {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--line);
}
.spec-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-700);
  line-height: 1;
}
.spec-lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Tarifs / Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0 48px;
}
.price-card {
  --tier-color: var(--blue-700);
  --tier-ink: #fff;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px 22px;
  border: 1.5px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
/* Tier color accent — inset from the rounded corners so it doesn't overlap them */
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 5px;
  background: var(--tier-color);
  border-radius: 0 0 3px 3px;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.price-card:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 3px;
}
/* Per-tier colors (must match data.js keys + the map legend) */
.price-card[data-tier="classic"]     { --tier-color: #cdddec; --tier-ink: #16283d; }
.price-card[data-tier="classicplus"] { --tier-color: #5ba8d4; --tier-ink: #fff; }
.price-card[data-tier="prime"]       { --tier-color: #d8c69a; --tier-ink: #5e4622; }
.price-card[data-tier="premium"]     { --tier-color: #355277; --tier-ink: #fff; }
.price-card[data-tier="premiumplus"] { --tier-color: var(--sun); --tier-ink: #16283d; }
.price-card[data-tier="frontmap"]    { --tier-color: #9fc4e0; --tier-ink: #16283d; }
/* Persistent "view on map" CTA — makes the card's clickability obvious */
.price-card .price-hint {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--tier-color);
  background: transparent;
  color: var(--blue-900);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.price-card .price-hint .fa-arrow-right { transition: transform .2s ease; }
.price-card:hover .price-hint,
.price-card:focus-visible .price-hint {
  background: var(--tier-color);
  color: var(--tier-ink);
  box-shadow: var(--shadow-sm);
}
.price-card:hover .price-hint .fa-arrow-right { transform: translateX(4px); }
.price-card[data-tier="premiumplus"] {
  background: linear-gradient(180deg, #fff 0%, #fff8e6 100%);
  border-color: var(--sun);
}
.price-card[data-tier="frontmap"] {
  background: linear-gradient(180deg, var(--blue-700) 0%, #213f5d 100%);
  border-color: var(--blue-900);
  color: #fff;
}
.price-card[data-tier="frontmap"] h3,
.price-card[data-tier="frontmap"] .price-size,
.price-card[data-tier="frontmap"] .price-std-lbl { color: rgba(255,255,255,0.85); }
.price-card[data-tier="frontmap"] .price-std,
.price-card[data-tier="frontmap"] .price-early { color: #fff; }
.price-card[data-tier="frontmap"] .price-early-lbl { color: var(--sun-soft); }
.price-card[data-tier="frontmap"] .price-hint { color: #fff; }

.price-tag-banner {
  position: absolute;
  top: -10px; right: 18px;
  background: var(--sun);
  color: var(--blue-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 6px; color: inherit; }
.price-size {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.price-amounts { margin-top: auto; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-std-lbl, .price-early-lbl {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 1;
}
.price-std {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.25);
}
.price-early {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-700);
}
.price-early-lbl { color: var(--blue-700); font-weight: 700; }

/* Add-ons */
.addon-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.addon-block h3 { margin-bottom: 22px; color: var(--blue-900); }
.addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.addon {
  background: var(--sand-50);
  border-radius: var(--radius);
  padding: 22px;
  border-left: 4px solid var(--blue-500);
}
.addon-limited { border-left-color: var(--sun); }
.addon-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.addon-head h4 { margin: 0; }
.addon-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue-700);
}
.addon-limited .addon-price { color: #c98a14; }
.addon p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ============================================================
   Grid / Slots
   ============================================================ */
.grid-tabs {
  display: flex; gap: 8px; margin: 28px 0 16px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  border: 1px solid var(--line);
}
.tab {
  background: transparent; border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tab.active { background: var(--blue-700); color: #fff; }

.grid-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem; color: var(--muted);
  margin: 8px 0 24px;
}
.grid-legend .legend-item {
  display: inline-flex;
  align-items: center;
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid transparent;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.grid-legend .legend-item:hover {
  background: #fff;
  color: var(--blue-900);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.grid-legend .legend-item:active { transform: translateY(0); }
.grid-legend .legend-item:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}
.grid-legend .dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.dot.classic     { background: #cdddec; }
.dot.classicplus { background: #5ba8d4; }
.dot.prime       { background: #d8c69a; }
.dot.premium     { background: #355277; }
.dot.premiumplus { background: var(--sun); }
.dot.reserved    { background: #b9a784; }

.grid-stage {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.grid-header {
  display: grid;
  gap: 2px;
  margin-bottom: 4px;
}
.cat-head {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  padding: 4px 2px;
  min-height: 18px;
}
.grid-board {
  display: grid;
  gap: 2px;
  min-height: 620px;
  font-family: var(--font-body);
}
.cell {
  position: relative;
  background: #cdddec;
  border-radius: 3px;
  border: none;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue-900);
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2px;
  line-height: 1.1;
  transition: transform .12s, box-shadow .15s, outline .12s, filter .15s;
  outline: 1.5px solid transparent;
  outline-offset: -1px;
  min-width: 0;
  word-break: break-word;
}
.cell:hover { transform: scale(1.06); z-index: 2; box-shadow: var(--shadow-sm); filter: brightness(1.05); }
.cell.active { outline-color: var(--blue-900); z-index: 3; box-shadow: var(--shadow-md); }
.cell.classicplus { background: #5ba8d4; color: #fff; }
.cell.prime       { background: #d8c69a; color: #5e4622; }
.cell.premium     { background: #355277; color: #fff; }
.cell.premiumplus { background: var(--sun); color: var(--blue-900); }
.cell.frontmap {
  background: linear-gradient(180deg, var(--blue-700) 0%, #213f5d 100%);
  color: #fff;
  font-style: italic;
}
.cell.reserved {
  background: repeating-linear-gradient(45deg, #b9a784, #b9a784 6px, #a89770 6px, #a89770 12px);
  color: #fff;
  font-style: italic;
  cursor: default;
  font-size: 0.66rem;
}
.cell.reserved:hover { transform: none; box-shadow: none; filter: none; }
.cell.lexicon { background: #e8d8b8; color: #5e4622; font-style: italic; }

/* Reserved cells that show a map image — fills the cell (cover); sea-blue
   backing matches the maps' water if any sliver shows. */
.cell.has-map {
  background-color: #b7d5e8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 0;
}

/* Below the desktop layout, keep the plan at usable proportions and let the
   grid scroll horizontally (inside .grid-stage) instead of crushing 8 columns
   into the viewport — keeps map cells full-bleed and ad-slot labels legible. */
@media (max-width: 980px) {
  .grid-header,
  .grid-board { min-width: 960px; }
}

/* ---- Mobile horizontal-scroll affordance (swipe hint) ---- */
.grid-scroll { position: relative; }
/* Soft fade on the right edge to signal more content; hidden once at the end */
.grid-scroll::after {
  content: "";
  position: absolute;
  top: 1px; right: 1px; bottom: 1px;
  width: 52px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.92));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.swipe-hint { display: none; }

@media (max-width: 980px) {
  .grid-scroll.has-overflow:not(.at-end)::after { opacity: 1; }

  /* Sits inline in the legend row, pushed to the right (next to "Réservé") */
  .swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background: rgba(22, 40, 61, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .swipe-hint.hidden { display: none; }
  .swipe-arrows {
    display: inline-flex;
    color: var(--sun);
    animation: swipe-nudge 1.4s ease-in-out infinite;
  }
}
@keyframes swipe-nudge {
  0%, 100% { transform: translateX(-3px); }
  50%      { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-arrows { animation: none; }
}

/* Tier highlight animation (triggered from pricing cards) */
.grid-board.is-highlighting .cell {
  opacity: 0.18;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease, box-shadow .35s ease;
  pointer-events: none;
}
.grid-board.is-highlighting .cell.tier-match {
  opacity: 1;
  z-index: 4;
  animation: tier-pulse 1.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-iteration-count: 2;
  pointer-events: auto;
}
@keyframes tier-pulse {
  0%   { transform: scale(1);     box-shadow: 0 0 0 0 rgba(53, 82, 119, 0); }
  35%  { transform: scale(1.14);  box-shadow: 0 0 0 5px rgba(53, 82, 119, 0.45), 0 8px 22px rgba(53, 82, 119, 0.28); }
  70%  { transform: scale(1.02);  box-shadow: 0 0 0 2px rgba(53, 82, 119, 0.20); }
  100% { transform: scale(1);     box-shadow: 0 0 0 0 rgba(53, 82, 119, 0); }
}

/* Section scroll-target glow when arriving from a price card */
@keyframes stage-flash {
  0%, 100% { box-shadow: var(--shadow-md); }
  50%      { box-shadow: var(--shadow-md), 0 0 0 4px rgba(53, 82, 119, 0.25); }
}
.grid-stage.is-flashing { animation: stage-flash 1.2s ease-out 1; }

/* Popover */
.popover {
  position: fixed;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  min-width: 280px;
  max-width: 340px;
  z-index: 60;
  animation: popIn .18s ease-out;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.popover-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none;
  font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.popover-close:hover { color: var(--blue-900); }
.po-type {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 4px;
}
.po-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--blue-900);
}
.po-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}
.po-meta div { padding: 0; margin: 0; }
.po-meta dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.po-meta dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.po-meta div:last-child dd { color: var(--blue-700); }

/* ============================================================
   CGV Accordion
   ============================================================ */
.cgv-list {
  list-style: none;
  counter-reset: cgv;
  padding: 0;
  margin: 32px 0 0;
  display: grid; gap: 10px;
}
.cgv-list li {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s;
}
.cgv-list li:has(.cgv-trig[aria-expanded="true"]) { box-shadow: var(--shadow-sm); }
.cgv-trig {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none;
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  text-align: left;
}
.chev {
  font-size: 0.95rem;
  color: var(--blue-700);
  transition: transform .25s ease;
  width: 24px;
  display: inline-grid;
  place-items: center;
}
.cgv-trig[aria-expanded="true"] .chev { transform: rotate(45deg); }
.cgv-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.cgv-body p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--sand-50);
  transition: background .2s, transform .2s;
}
a.contact-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.cc-icon {
  font-size: 1.4rem;
  color: var(--sun);
  margin-bottom: 8px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(244, 185, 66, 0.12);
  border-radius: 50%;
}
.cc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
}
.cc-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.7);
  padding: 26px 0;
  text-align: center;
  font-size: 0.86rem;
}
.site-footer p { margin: 4px 0; }
.footer-small { font-size: 0.78rem; opacity: 0.65; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  /* Collapse the desktop nav into a hamburger menu */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--sand-50);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-115%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a {
    padding: 12px 4px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav a:last-child { border-bottom: none; margin-top: 6px; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { text-align: center; padding: 12px 18px; }
}

@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .addons { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 100px; }
  .grid-board { font-size: 0.55rem; }
  .cell { font-size: 0.55rem; }
  .po-meta { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav-wrap { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .brand img { width: 38px; height: 38px; }
  .brand-title { font-size: 1.1rem; }
  .brand-sub { font-size: 0.7rem; }
  .hero-logo { width: 96px; height: 96px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-tagline { font-size: 0.96rem; }
  .hero-quote { font-size: 1.1rem; }
  .hero-cta { gap: 10px; }
  .btn { padding: 11px 20px; font-size: 0.92rem; }
  .grid-stage { padding: 12px; }
  .grid-board { min-height: 460px; }
  .cell { font-size: 0.5rem; padding: 1px; }
  /* Compact category headers so 2-word labels (Food & drink, Activity & Fun…)
     stay short instead of stacking into tall multi-line rows. */
  .cat-head {
    font-size: 0.46rem;
    letter-spacing: 0;
    line-height: 1.05;
    padding: 2px 1px;
    min-height: 0;
  }
  .popover { min-width: 0; max-width: calc(100vw - 24px); width: min(320px, calc(100vw - 24px)); }
}
