:root {
  --ink: #171717;
  --muted: #62615d;
  --paper: #fbfaf7;
  --surface: #f0eee8;
  --line: #ded9ce;
  --blue: #155a8a;
  --blue-dark: #0b3555;
  --red: #ad3d33;
  --gold: #c9902f;
  --white: #fff;
  --shadow: 0 18px 55px rgba(15, 35, 52, .16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 13px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { font-weight: 850; font-size: 1.02rem; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-cta { background: var(--red); color: var(--white); }
.nav-cta:hover { background: #842c25; color: var(--white); }
.language-dropdown {
  position: relative;
  z-index: 20;
}
.language-dropdown summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 39px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid rgba(11, 53, 85, .22);
  background: linear-gradient(180deg, #fff, #f7f5ef);
  color: var(--ink);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15, 35, 52, .08);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.language-dropdown summary:hover,
.language-dropdown[open] summary {
  border-color: rgba(11, 53, 85, .42);
  box-shadow: 0 12px 28px rgba(15, 35, 52, .14);
}
.language-dropdown summary::-webkit-details-marker { display: none; }
.language-dropdown summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}
.language-dropdown[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}
.language-option small {
  color: inherit;
  font-size: .78rem;
  font-weight: 650;
}
.language-option:hover,
.language-option.active {
  background: var(--blue-dark);
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(251, 250, 247, .94), rgba(251, 250, 247, .56)),
    url("https://images.unsplash.com/photo-1583422409516-2895a77efded?auto=format&fit=crop&w=1800&q=82") center/cover;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 850;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  font-size: clamp(2.45rem, 6vw, 5.55rem);
  line-height: .96;
  letter-spacing: 0;
  margin-bottom: 22px;
}
h2 { font-size: clamp(1.65rem, 3vw, 2.9rem); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: 1.05rem; line-height: 1.22; letter-spacing: 0; }
.lede {
  max-width: 680px;
  color: #343330;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions, .activity-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 7px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}
.button:hover { background: var(--blue-dark); }
.button.ghost { background: rgba(255,255,255,.76); color: var(--ink); border-color: var(--line); }
.button.small { min-height: 38px; padding: 9px 13px; font-size: .9rem; }
.hero-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card div { padding: 22px; }
.label { display: inline-block; color: var(--blue); font-size: .78rem; font-weight: 850; text-transform: uppercase; margin-bottom: 8px; }

.section { padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 72px); }
.section.compact { padding-bottom: clamp(32px, 6vw, 60px); }
.section.no-top { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { max-width: 820px; margin-bottom: 0; }
.section-head > a { color: var(--blue); font-weight: 850; white-space: nowrap; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.category-tile {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.category-tile:hover { background: #fff6e5; border-color: var(--gold); }
.category-tile strong, .category-tile span { display: block; }
.category-tile span { margin-top: 8px; color: var(--muted); font-size: .94rem; }

.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.activity-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}
.activity-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.activity-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.activity-body h3, .activity-body p { margin-bottom: 0; }
.activity-body p { color: var(--muted); font-size: .92rem; }
.activity-body .card-copy { color: #373632; }
.tags, .detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span, .detail-tags a {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f0f6;
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 850;
}
.activity-actions { justify-content: space-between; margin-top: auto; padding-top: 10px; }

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  padding: 1px clamp(18px, 5vw, 72px);
  background: var(--line);
}
.metrics-band div { background: var(--white); padding: 24px; }
.metrics-band span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; font-weight: 850; }
.metrics-band strong { display: block; margin-top: 6px; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; }

.split-band {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: 28px;
  padding: clamp(38px, 6vw, 66px) clamp(18px, 5vw, 72px);
  background: var(--blue-dark);
  color: var(--white);
}

.number-hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 5vw, 72px);
  background: var(--blue-dark);
  color: var(--white);
}
.number-hero strong {
  display: block;
  font-size: clamp(7rem, 24vw, 20rem);
  line-height: .82;
  letter-spacing: 0;
}
.number-hero h2 { max-width: 980px; margin: 18px 0 14px; }
.number-hero p:not(.eyebrow) { max-width: 760px; color: #dfeaf0; font-size: 1.1rem; }
.editorial-section {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: clamp(22px, 5vw, 70px);
  padding: clamp(48px, 8vw, 88px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.editorial-copy { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.split-band p { color: #dfeaf0; font-size: 1.08rem; }
.page-title {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px) 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-title p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(320px,.78fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 8vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--surface);
}
.detail-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.facts div { background: var(--white); padding: 20px clamp(16px, 4vw, 40px); }
.facts span { display: block; color: var(--muted); font-size: .82rem; }
.facts strong { font-size: 1.08rem; }
.copy-block { max-width: 820px; }
.copy-block p { color: var(--muted); }

#pilot-popup-bd {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 22, 33, .68);
  backdrop-filter: blur(7px);
}
#pilot-popup-bd[hidden] { display: none !important; }
#pilot-popup {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  animation: popupSlide .28s cubic-bezier(.16,1,.3,1);
}
#pilot-popup-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}
#pilot-popup-img { height: 184px; background-size: cover; background-position: center; background-color: var(--surface); }
#pilot-popup-body { padding: 22px 24px 24px; }
#pilot-popup-rating { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
#pilot-popup-rating span:first-child { color: var(--gold); }
#pilot-popup h3 { margin-bottom: 7px; font-size: 1.45rem; line-height: 1.12; }
#pilot-popup-sub { color: var(--muted); font-size: .95rem; }
#pilot-popup-price { margin: 0 0 16px; }
#pilot-popup-price span { color: var(--muted); font-size: .82rem; font-weight: 850; text-transform: uppercase; }
#pilot-popup-price strong { font-size: 2rem; line-height: 1; }
#pilot-popup-cta { display: block; padding: 14px 18px; border-radius: 7px; background: var(--red); color: var(--white); font-weight: 850; text-align: center; }
#pilot-popup-cancel { margin: 10px 0 0; color: var(--blue); text-align: center; font-size: .83rem; font-weight: 800; }
@keyframes popupSlide { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.legal-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(36px, 7vw, 80px) clamp(18px, 5vw, 72px);
}
.legal-page section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.legal-page h2 { font-size: 1.2rem; }
.legal-page p { color: var(--muted); margin-bottom: 0; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .45fr) minmax(150px, .45fr);
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #111;
  color: var(--white);
}
.site-footer p { color: #d3d2ce; max-width: 620px; }
.footer-note { color: #d3d2ce; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { margin: 0; }
.codex-signature {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #c4c1ba;
  font-size: .86rem;
}

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header[data-nav-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-nav-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header[data-nav-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cookie consent banner (GDPR) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, .96);
  color: #fff;
  padding: 14px 20px;
  z-index: 9999;
  border-top: 2px solid var(--blue);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
  font-size: 14px;
  display: none;
}
.cookie-banner[data-show="true"] { display: block; }
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 60%;
  min-width: 280px;
  line-height: 1.4;
}
.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner__btn {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .2s;
  min-height: 44px;
}
.cookie-banner__btn--reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}
.cookie-banner__btn--accept {
  background: var(--blue);
  color: #fff;
}
.cookie-banner__btn:hover { opacity: .85; }

@media (max-width: 980px) {
  .hero, .detail-hero, .split-band, .editorial-section, .site-footer { grid-template-columns: 1fr; }
  .category-grid, .activity-grid, .metrics-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .facts, .legal-page { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .site-header { padding: 8px 14px; gap: 12px; }
  .brand { font-size: .98rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions {
    display: none;
    flex-basis: 100%;
    order: 3;
    justify-content: flex-start;
  }
  .site-header[data-nav-open="true"] .header-actions { display: flex; }
  .site-header nav { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .nav-link { padding: 12px 14px; min-height: 44px; display: flex; align-items: center; }
  .language-dropdown { width: 100%; }
  .language-dropdown summary { width: 100%; justify-content: flex-start; }
  .language-menu { position: static; width: 100%; margin-top: 6px; }
  .hero { min-height: auto; }
  .category-grid, .activity-grid, .metrics-band, .facts, .legal-page { grid-template-columns: 1fr; }
  .section-head, .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .cookie-banner { padding: 12px 14px; font-size: 13px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* Affiliate disclaimer (added 2026-04-25) */
.disclaimer-affiliate {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.disclaimer-affiliate p { margin: 0; }
