:root {
  --ink: #18201b;
  --muted: #5f6a62;
  --paper: #fffdf7;
  --surface: #f4efe2;
  --line: #ded5c4;
  --jade: #0f6b57;
  --jade-dark: #094838;
  --gold: #d39b2a;
  --clay: #9d4f32;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(24, 32, 27, .14);
}

* {
  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;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.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: 650;
  font-size: .9rem;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav-cta {
  background: var(--jade);
  color: var(--white);
}

.nav-cta:hover {
  background: var(--jade-dark);
  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(9, 72, 56, .24);
  background: linear-gradient(180deg, #fff, #f8f3e7);
  color: var(--ink);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 8px 22px rgba(24, 32, 27, .08);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.language-dropdown summary:hover,
.language-dropdown[open] summary {
  border-color: rgba(9, 72, 56, .44);
  box-shadow: 0 12px 28px rgba(24, 32, 27, .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(--jade-dark);
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .76fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px) 56px;
  background:
    linear-gradient(120deg, rgba(255, 253, 247, .92), rgba(255, 253, 247, .62)),
    url("https://images.unsplash.com/photo-1518638150340-f706e86654de?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.eyebrow {
  color: var(--clay);
  text-transform: uppercase;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: .95;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.lede {
  max-width: 670px;
  color: #344239;
  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;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--jade);
  color: var(--white);
  font-weight: 780;
  border: 1px solid var(--jade);
}

.button:hover {
  background: var(--jade-dark);
}

.button.ghost {
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  border-color: var(--line);
}

.button.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: .9rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card div {
  padding: 22px;
}

.label {
  display: inline-block;
  color: var(--jade);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  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;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.section-head > a {
  color: var(--jade);
  font-weight: 800;
  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: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-tile:hover {
  border-color: var(--gold);
  background: #fff8e8;
}

.category-tile strong,
.category-tile span {
  display: block;
}

.category-tile span {
  color: var(--muted);
  margin-top: 8px;
  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;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.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 {
  margin-bottom: 0;
}

.activity-body p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 0;
}

.activity-body .card-copy {
  color: #38463d;
}

.tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span,
.detail-tags a {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f1ec;
  color: var(--jade-dark);
  font-size: .76rem;
  font-weight: 800;
}

.activity-actions {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.split-band {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: 28px;
  padding: clamp(38px, 6vw, 66px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  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(--ink);
  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: #dce7dd;
  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;
}

.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);
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.metrics-band strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.split-band p {
  color: #dce7dd;
  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-top: 1px solid var(--line);
  border-bottom: 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);
}

.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: #101612;
  color: var(--white);
}

.site-footer p,
.footer-note {
  color: #cbd8ce;
  max-width: 620px;
}

.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: #aebdb3;
  font-size: .86rem;
}

#pilot-popup-bd {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 18, 14, .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;
  line-height: 1;
}

#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;
  align-items: center;
  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: 800;
  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(--jade);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

#pilot-popup-cancel {
  margin: 10px 0 0;
  color: var(--jade);
  text-align: center;
  font-size: .83rem;
  font-weight: 760;
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 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(--jade);
  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(--jade);
  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,
  .facts,
  .metrics-band,
  .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; }
