/* ==========================================================================
   IslandDetox.com — Main Stylesheet
   Mobile-first, responsive, calm aesthetic
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — ocean-inspired palette */
  --ocean-deep: #0b1d35;
  --ocean-mid: #14324a;
  --ocean-light: #1a5276;
  --sea-foam: #a8dadc;
  --sand: #f5f0e8;
  --sand-light: #faf8f3;
  --sand-dark: #e8e0d0;
  --coral: #e07a5f;
  --coral-dark: #c4623f;
  --sun: #f2cc8f;
  --sun-light: #f7e2bb;
  --driftwood: #6b5b4e;
  --driftwood-light: #8a7b6e;
  --leaf: #52796f;
  --leaf-light: #74a89a;
  --white: #ffffff;
  --off-white: #fcfbf9;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --text-on-dark: #f0ede8;

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
  --space-3xl: clamp(4rem, 3rem + 5vw, 8rem);
  --space-4xl: clamp(6rem, 4rem + 8vw, 12rem);

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 900px;
  --max-width-text: 720px;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;
  --transition-glacial: 1200ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(168, 218, 220, 0.3);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--sand-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--coral);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  margin-bottom: 1em;
  max-width: 65ch;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--sea-foam);
  color: var(--ocean-deep);
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--text {
  max-width: var(--max-width-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--dark {
  background-color: var(--ocean-deep);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--sand {
  background-color: var(--sand);
}

.section--white {
  background-color: var(--white);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.section--dark .section__label {
  color: var(--sea-foam);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 60ch;
  line-height: 1.6;
}

.section--dark .section__subtitle {
  color: var(--sea-foam);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3);
}

.btn--primary:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 122, 95, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--ocean-deep);
  border: 2px solid var(--ocean-deep);
}

.btn--secondary:hover {
  background: var(--ocean-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6em 1.4em;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--text-base);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--white);
  text-decoration: none;
  z-index: 1001;
  transition: color var(--transition-base);
}

.nav--scrolled .nav__logo {
  color: var(--ocean-deep);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
}

.nav__links {
  display: none;
  gap: 2em;
  align-items: center;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav--scrolled .nav__link {
  color: var(--text-secondary);
}

.nav__link:hover {
  color: var(--coral);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width var(--transition-base);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

/* Mobile hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav--scrolled .nav__toggle-bar {
  background: var(--ocean-deep);
}

.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ocean-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.nav__mobile--open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.nav__mobile--open .nav__mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile--open .nav__mobile-link:nth-child(1) { transition-delay: 100ms; }
.nav__mobile--open .nav__mobile-link:nth-child(2) { transition-delay: 150ms; }
.nav__mobile--open .nav__mobile-link:nth-child(3) { transition-delay: 200ms; }
.nav__mobile--open .nav__mobile-link:nth-child(4) { transition-delay: 250ms; }
.nav__mobile--open .nav__mobile-link:nth-child(5) { transition-delay: 300ms; }
.nav__mobile--open .nav__mobile-link:nth-child(6) { transition-delay: 350ms; }
.nav__mobile--open .nav__mobile-link:nth-child(7) { transition-delay: 400ms; }
.nav__mobile--open .nav__mobile-link:nth-child(8) { transition-delay: 450ms; }

.nav__mobile-link:hover {
  color: var(--coral);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ocean-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 53, 0.3) 0%,
    rgba(11, 29, 53, 0.1) 40%,
    rgba(11, 29, 53, 0.5) 70%,
    rgba(11, 29, 53, 0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.45em 1.2em;
  font-size: var(--text-xs);
  color: var(--sea-foam);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: var(--text-5xl);
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__title em {
  font-style: normal;
  color: var(--sea-foam);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; height: 40px; }
  50% { opacity: 1; height: 50px; }
}

/* ---------- Wave Dividers ---------- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

.wave-divider--flip {
  transform: rotate(180deg);
}

/* ---------- Island Map Navigator ---------- */
.island-map {
  padding: var(--space-3xl) 0;
  background: var(--ocean-deep);
  position: relative;
  overflow: hidden;
}

.island-map__ocean {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26, 82, 118, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(26, 82, 118, 0.3) 0%, transparent 50%),
    var(--ocean-deep);
}

.island-map__title-area {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.island-map__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.island-map__node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  backdrop-filter: blur(4px);
}

.island-map__node:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sea-foam);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--white);
}

.island-map__node-icon {
  font-size: 2rem;
  margin-bottom: 0.25em;
}

.island-map__node-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--white);
  margin: 0;
}

.island-map__node-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

.island-map__node-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.island-map__node:hover .island-map__node-arrow {
  background: var(--coral);
  transform: translateX(4px);
}

/* Dotted path lines between nodes (CSS only) */
.island-map__path {
  display: none;
}

/* ---------- Detox Levels Section ---------- */
.levels {
  background: var(--sand);
}

.levels__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.level-card {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.level-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--sand-dark);
  opacity: 0.5;
  position: absolute;
  top: -8px;
  right: var(--space-md);
  line-height: 1;
}

.level-card__badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.level-card--1 .level-card__badge { background: #e8f5e9; color: #2e7d32; }
.level-card--2 .level-card__badge { background: #e3f2fd; color: #1565c0; }
.level-card--3 .level-card__badge { background: #fff3e0; color: #e65100; }
.level-card--4 .level-card__badge { background: #f3e5f5; color: #7b1fa2; }
.level-card--5 .level-card__badge { background: #fce4ec; color: #c62828; }

.level-card__title {
  font-size: var(--text-xl);
  margin-bottom: 0.3em;
}

.level-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.level-card__bar {
  margin-top: var(--space-md);
  height: 4px;
  background: var(--sand);
  border-radius: 4px;
  overflow: hidden;
}

.level-card__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.level-card--1 .level-card__bar-fill { background: #66bb6a; }
.level-card--2 .level-card__bar-fill { background: #42a5f5; }
.level-card--3 .level-card__bar-fill { background: #ff9800; }
.level-card--4 .level-card__bar-fill { background: #ab47bc; }
.level-card--5 .level-card__bar-fill { background: #ef5350; }

.level-card.is-visible .level-card__bar-fill {
  /* Width set via inline style in HTML */
}

/* ---------- Nervous System Islands ---------- */
.nervous-system {
  background: var(--white);
}

.ns__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.ns-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.ns-card:hover {
  transform: scale(1.02);
}

.ns-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ns-card:hover .ns-card__img {
  transform: scale(1.08);
}

.ns-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 29, 53, 0.85) 100%);
}

.ns-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  width: 100%;
}

.ns-card__type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea-foam);
  margin-bottom: 0.25em;
}

.ns-card__title {
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: 0.25em;
}

.ns-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Protocol Section ---------- */
.protocol {
  background: var(--ocean-deep);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.protocol__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 50%, var(--sea-foam) 1px, transparent 1px),
    radial-gradient(circle at 75% 50%, var(--sea-foam) 1px, transparent 1px);
  background-size: 60px 60px;
}

.protocol__timeline {
  margin-top: var(--space-xl);
  position: relative;
  padding-left: 2.5rem;
}

.protocol__timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sea-foam), rgba(168, 218, 220, 0.2));
}

.protocol__day {
  position: relative;
  padding-bottom: var(--space-lg);
  padding-left: var(--space-md);
}

.protocol__day::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sea-foam);
  border: 3px solid var(--ocean-deep);
  z-index: 1;
}

.protocol__day-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea-foam);
  margin-bottom: 0.25em;
}

.protocol__day-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: 0.25em;
}

.protocol__day-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* ---------- 3-Day Reset ---------- */
.reset {
  background: var(--sand);
  position: relative;
}

.reset__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
}

.reset__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.reset__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reset__text h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.reset__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.reset__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  font-size: var(--text-sm);
}

.reset__feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7em;
  margin-top: 2px;
}

/* ---------- No-Influencer Islands ---------- */
.no-influencer {
  background: var(--white);
  position: relative;
}

.no-influencer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.ni-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--sand-light);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.ni-card:hover {
  border-color: var(--coral);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.ni-card__img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.ni-card__content {
  flex: 1;
}

.ni-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: 0.15em;
}

.ni-card__location {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ni-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.5em;
}

.ni-card__tag {
  font-size: 0.65rem;
  padding: 0.2em 0.6em;
  border-radius: 100px;
  background: var(--sand);
  color: var(--driftwood);
  font-weight: 500;
}

/* ---------- IslandDetox Index ---------- */
.index-section {
  background: var(--ocean-mid);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.index__example {
  margin-top: var(--space-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  max-width: 600px;
}

.index__example-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.index__scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.index__score {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.index__score-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  width: 130px;
  flex-shrink: 0;
}

.index__score-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.index__score-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--sea-foam);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.index__score-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--sea-foam);
  width: 3em;
  text-align: right;
}

/* ---------- Detox For Section ---------- */
.detox-for {
  background: var(--sand-light);
}

.detox-for__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.df-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  border: 1px solid var(--sand-dark);
}

.df-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral);
  color: inherit;
}

.df-card__icon {
  font-size: 2rem;
  margin-bottom: 0.3em;
}

.df-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  margin-bottom: 0.15em;
}

.df-card__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Verified Stays ---------- */
.verified {
  background: var(--white);
}

.verified__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
}

.verified__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.verified__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verified__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.verified__check {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-sm);
}

.verified__check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.6em;
  flex-shrink: 0;
}

/* ---------- Re-Entry Plan ---------- */
.reentry {
  background: var(--sand);
  position: relative;
}

.reentry__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.reentry__step {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  position: relative;
  transition: all var(--transition-base);
}

.reentry__step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reentry__step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--coral);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.reentry__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: 0.3em;
}

.reentry__step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- FAQ / AEO Section ---------- */
.faq {
  background: var(--white);
}

.faq__list {
  margin-top: var(--space-xl);
  max-width: var(--max-width-narrow);
}

.faq__item {
  border-bottom: 1px solid var(--sand-dark);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--ocean-deep);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 1em;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--coral);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform var(--transition-base);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.faq__icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq__icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq__item--open .faq__icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq__item--open .faq__answer {
  max-height: 600px;
  padding-bottom: var(--space-md);
}

.faq__answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA / Newsletter ---------- */
.cta {
  background: var(--ocean-deep);
  text-align: center;
  padding: var(--space-4xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta__desc {
  font-size: var(--text-base);
  color: var(--sea-foam);
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
}

.cta__input {
  padding: 0.9em 1.2em;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.cta__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta__input:focus {
  border-color: var(--sea-foam);
  background: rgba(255, 255, 255, 0.12);
}

.cta__note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-xs);
}

/* ---------- Footer ---------- */
.footer {
  background: #060f1d;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--sea-foam);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer__copy {
  font-size: var(--text-xs);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5em;
}

.footer__bottom-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.footer__bottom-link:hover {
  color: var(--sea-foam);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }
.reveal--delay-6 { transition-delay: 600ms; }

/* ---------- Progress Compass ---------- */
.compass {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ocean-deep);
  border: 2px solid var(--sea-foam);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.compass--visible {
  opacity: 1;
  transform: translateY(0);
}

.compass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.compass__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--coral);
  transition: transform var(--transition-base);
}

.compass__icon {
  color: var(--sea-foam);
  font-size: 1.1rem;
}

/* ---------- Responsive: Tablet (640px+) ---------- */
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .island-map__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .levels__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ns__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .no-influencer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detox-for__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reentry__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta__form {
    flex-direction: row;
  }

  .cta__input {
    flex: 1;
  }

  .quiz__result-actions {
    flex-direction: row;
    justify-content: center;
  }

  .stories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Responsive: Desktop (960px+) ---------- */
@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }

  .island-map__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .levels__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .ns__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ns__grid .ns-card:nth-child(4),
  .ns__grid .ns-card:nth-child(5) {
    grid-column: span 1;
  }

  .reset__content {
    grid-template-columns: 1fr 1fr;
  }

  .no-influencer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detox-for__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .verified__content {
    grid-template-columns: 1fr 1fr;
  }

  .reentry__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .contrast__grid {
    grid-template-columns: 1fr auto 1fr;
  }

  .contrast__divider {
    flex-direction: column;
    padding: 0 var(--space-sm);
    background: linear-gradient(90deg, var(--ocean-deep) 50%, var(--white) 50%);
  }

  .contrast__divider-line {
    width: 1px;
    height: 40px;
  }

  .stories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- Responsive: Wide (1200px+) ---------- */
@media (min-width: 1200px) {
  .ns__grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .ns-card {
    aspect-ratio: 3/4;
  }

  .levels__grid {
    gap: var(--space-lg);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print styles ---------- */
@media print {
  .nav,
  .compass,
  .hero__scroll,
  .cta {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section--dark {
    background: white;
    color: black;
  }
}

/* ---------- Coming Soon Page ---------- */
.coming-soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-xl);
}

.coming-soon__bg {
  position: absolute;
  inset: 0;
}

.coming-soon__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.coming-soon__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.coming-soon__icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  display: block;
}

.coming-soon__title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.coming-soon__desc {
  color: var(--sea-foam);
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.coming-soon__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.coming-soon__back {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.coming-soon__back:hover {
  color: var(--white);
}

@media (min-width: 640px) {
  .coming-soon__form {
    flex-direction: row;
  }
}

/* ---------- Floating ocean particles ---------- */
.ocean-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ocean-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sea-foam);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.ocean-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 9s; }
.ocean-particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 7s; }
.ocean-particle:nth-child(3) { left: 40%; animation-delay: 3s; animation-duration: 10s; }
.ocean-particle:nth-child(4) { left: 55%; animation-delay: 0.8s; animation-duration: 8s; }
.ocean-particle:nth-child(5) { left: 70%; animation-delay: 2.2s; animation-duration: 11s; }
.ocean-particle:nth-child(6) { left: 85%; animation-delay: 4s; animation-duration: 7.5s; }
.ocean-particle:nth-child(7) { left: 15%; animation-delay: 5s; animation-duration: 9.5s; }
.ocean-particle:nth-child(8) { left: 60%; animation-delay: 1s; animation-duration: 8.5s; }

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  20% {
    opacity: 0.4;
    transform: translateY(60vh) scale(1);
  }
  80% {
    opacity: 0.2;
    transform: translateY(10vh) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(0);
  }
}

/* ---------- Animated wave section border ---------- */
.wave-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 60px;
  animation: waveSlide 12s linear infinite;
}

@keyframes waveSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Blockquote callout ---------- */
.callout {
  background: var(--sand);
  border-left: 4px solid var(--coral);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.section--dark .callout {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--sea-foam);
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   NEW SECTIONS — Homepage Expansion
   ========================================================================== */

/* ---------- Hero: Rotating Text ---------- */
.hero__rotate {
  display: inline-block;
  position: relative;
  font-style: normal;
  color: var(--sea-foam);
  height: 1.15em;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__rotate-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__rotate-word--active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero: Noise Overlay ---------- */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ---------- Screen Time Counter ---------- */
.screen-time {
  background: var(--sand);
  padding: var(--space-3xl) 0;
  position: relative;
}

.screen-time__display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  margin: var(--space-lg) 0;
}

.screen-time__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--coral);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.screen-time__unit {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--text-muted);
  text-transform: lowercase;
}

.screen-time__context {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
}

.screen-time__visual {
  max-width: 500px;
  margin: 0 auto;
}

.screen-time__day {
  height: 12px;
  background: var(--sand-dark);
  border-radius: 100px;
  position: relative;
  overflow: visible;
}

.screen-time__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), #d35555);
  border-radius: 100px;
  width: 0%;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-time__marker {
  position: absolute;
  top: -2rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--coral);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 2s;
  transform: translateX(-50%);
}

.screen-time__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.screen-time__cta {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--ocean-deep);
  margin-top: var(--space-xl);
  max-width: 100%;
}

/* ---------- Island Finder Quiz ---------- */
.quiz {
  background: var(--white);
  position: relative;
}

.quiz__card {
  margin-top: var(--space-xl);
  background: var(--sand-light);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-dark);
}

.quiz__progress {
  height: 4px;
  background: var(--sand-dark);
  border-radius: 4px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz__step {
  display: none;
}

.quiz__step--active {
  display: block;
  animation: quizFadeIn 0.4s ease;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz__step-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  display: block;
}

.quiz__question {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--ocean-deep);
  margin-bottom: var(--space-lg);
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quiz__option {
  padding: var(--space-md);
  background: var(--white);
  border: 2px solid var(--sand-dark);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}

.quiz__option:hover {
  border-color: var(--coral);
  background: var(--white);
  transform: translateX(4px);
}

.quiz__option:active {
  transform: translateX(2px);
  background: var(--sand);
}

.quiz__result {
  display: none;
  text-align: center;
  animation: quizFadeIn 0.6s ease;
}

.quiz__result--visible {
  display: block;
}

.quiz__result-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  display: block;
}

.quiz__result-type {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--ocean-deep);
  margin-bottom: 0.2em;
}

.quiz__result-level {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--sea-foam);
  background: var(--ocean-deep);
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.quiz__result-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
}

.quiz__result-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

/* ---------- Before & After Contrast ---------- */
.contrast {
  background: var(--sand-light);
}

.contrast__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--space-xl);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contrast__panel {
  padding: var(--space-xl);
}

.contrast__panel--before {
  background: var(--ocean-deep);
  color: var(--text-on-dark);
}

.contrast__panel--after {
  background: var(--white);
}

.contrast__panel-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.contrast__panel--before .contrast__panel-title {
  color: var(--coral);
}

.contrast__panel--after .contrast__panel-title {
  color: var(--leaf);
}

.contrast__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contrast__list li {
  font-size: var(--text-sm);
  line-height: 1.6;
  padding-left: 1.5em;
  position: relative;
}

.contrast__panel--before .contrast__list li::before {
  content: '\00d7';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.contrast__panel--after .contrast__list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--leaf);
}

.contrast__panel--before .contrast__list li {
  color: rgba(255, 255, 255, 0.7);
}

.contrast__panel--after .contrast__list li {
  color: var(--text-secondary);
}

.contrast__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  background: linear-gradient(180deg, var(--ocean-deep), var(--white));
}

.contrast__divider-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.contrast__divider-icon {
  color: var(--sea-foam);
  font-size: 1.5rem;
}

/* ---------- Traveler Stories ---------- */
.stories {
  background: var(--sand);
}

.stories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.story-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--sand-dark);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-card__quote {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.story-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.story-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ocean-deep);
  color: var(--sea-foam);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.story-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.story-card__detail {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.story-card__tag {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  background: rgba(224, 122, 95, 0.1);
  padding: 0.25em 0.75em;
  border-radius: 100px;
}

/* ---------- Impact Stats ---------- */
.stats {
  background: var(--ocean-deep);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.stats__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(168, 218, 220, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse at 70% 50%, rgba(224, 122, 95, 0.08) 0%, transparent 70%);
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea-foam);
  opacity: 0.8;
}

/* ==========================================================================
   INNER PAGES — Island, Country, Verified Stay Templates
   ========================================================================== */

/* ---------- Inner Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ocean-deep);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,53,0.2) 0%, rgba(11,29,53,0.8) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.page-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sea-foam);
  margin-bottom: var(--space-sm);
}

.page-hero__breadcrumb a {
  color: var(--sea-foam);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  opacity: 1;
  color: var(--sea-foam);
}

.page-hero__title {
  font-size: var(--text-4xl);
  color: var(--white);
  margin-bottom: 0.2em;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 55ch;
}

.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: var(--space-md);
}

.page-hero__tag {
  display: inline-block;
  padding: 0.3em 0.9em;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.12);
  color: var(--sea-foam);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ---------- Inner Page Layout ---------- */
.page-body {
  padding: var(--space-2xl) 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-main {
  min-width: 0;
}

.page-main h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
}

.page-main h2:first-child {
  margin-top: 0;
}

.page-main p {
  color: var(--text-secondary);
  margin-bottom: 1.2em;
  line-height: 1.8;
}

/* ---------- Quick Facts Sidebar ---------- */
.quick-facts {
  background: var(--sand);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.quick-facts__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.quick-facts__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.quick-facts__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--sand-dark);
  font-size: var(--text-sm);
}

.quick-facts__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-facts__label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.quick-facts__value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.quick-facts__cta {
  margin-top: var(--space-lg);
}

/* ---------- Island Index Inline ---------- */
.page-index {
  background: var(--ocean-mid);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.page-index__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-md);
}

.page-index__scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.page-index__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-index__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  width: 130px;
  flex-shrink: 0;
}

.page-index__bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.page-index__fill {
  height: 100%;
  border-radius: 4px;
  background: var(--sea-foam);
}

.page-index__val {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--sea-foam);
  width: 3em;
  text-align: right;
}

/* ---------- Related Cards Grid ---------- */
.related {
  padding: var(--space-3xl) 0;
  background: var(--sand);
}

.related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.related-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  border: 1px solid var(--sand-dark);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.related-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-card:hover .related-card__img img {
  transform: scale(1.05);
}

.related-card__body {
  padding: var(--space-md);
}

.related-card__location {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2em;
}

.related-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: 0.2em;
}

.related-card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Country: Island Grid ---------- */
.country-islands__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ---------- Verified Badge ---------- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.9em;
  border-radius: 100px;
  background: var(--leaf);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- Verified Stays Checklist (inner page) ---------- */
.stay-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.stay-checklist__item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-sm);
}

.stay-checklist__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.6em;
  flex-shrink: 0;
}

.stay-checklist__icon--no {
  background: var(--sand-dark);
  color: var(--text-muted);
}

/* ---------- Inner Page CTA ---------- */
.page-cta {
  background: var(--ocean-deep);
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  position: relative;
}

.page-cta__title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.page-cta__desc {
  font-size: var(--text-base);
  color: var(--sea-foam);
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
}

/* ---------- Inner Page Responsive ---------- */
@media (min-width: 640px) {
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .country-islands__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stay-checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr 320px;
  }

  .related__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .country-islands__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------- Guides Hub and SEO Landing Pages ---------- */
.guide-hero .page-hero__bg img {
  opacity: 0.56;
  filter: saturate(1.08) contrast(1.03);
}

.guide-cards {
  margin-top: var(--space-md);
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-left: 0;
}

.guide-step {
  list-style: none;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: var(--space-sm);
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--sand-dark);
  padding: var(--space-md);
}

.guide-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ocean-mid);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
}

.guide-step p {
  margin-bottom: 0;
}

.guide-list {
  margin-left: 1.1rem;
  color: var(--text-secondary);
}

.guide-list li {
  list-style: disc;
  margin-bottom: 0.55rem;
}

.guide-faq {
  border-top: 1px solid var(--sand-dark);
}

.guide-faq__item {
  border-bottom: 1px solid var(--sand-dark);
  padding: var(--space-md) 0;
}

.guide-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ocean-deep);
}

.guide-faq__item p {
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

.guide-sidebar {
  background: linear-gradient(180deg, rgba(245,240,232,0.95) 0%, rgba(255,255,255,0.92) 100%);
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-sm);
}

.guide-hub {
  background:
    radial-gradient(circle at 8% 12%, rgba(20, 50, 74, 0.08) 0%, transparent 46%),
    radial-gradient(circle at 92% 10%, rgba(224, 122, 95, 0.12) 0%, transparent 50%),
    var(--sand);
}

.guide-hub-category {
  margin-top: var(--space-2xl);
}

.guide-hub-category h2 {
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.guide-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.guide-hub-card {
  display: block;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.guide-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 50, 74, 0.22);
  color: inherit;
}

.guide-hub-card__title {
  font-size: var(--text-xl);
  margin-bottom: 0.35rem;
}

.guide-hub-card__desc {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.guide-hub-card__cta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-dark);
  font-weight: 700;
}

@media (min-width: 720px) {
  .guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .guide-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ---------- Real Centers Media ---------- */
.media-embed {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--sand-dark);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.media-embed__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--ocean-deep);
}

.media-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.source-list {
  margin-left: 1.2rem;
}

.source-list li {
  list-style: disc;
  margin-bottom: 0.5rem;
}
