/* ============================================ */
/* DESIGN TOKENS                                */
/* ============================================ */
:root {
  --color-primary: #1a6c7a;
  --color-primary-light: #2a8a9a;
  --color-accent: #e59385;
  --color-accent-hover: #d4806f;
  --color-dark: #153243;
  --color-footer: #327b87;
  --color-light-bg: #faf8f5;
  --color-white: #ffffff;
  --color-text: #153243;
  --color-text-light: #4b4f58;
  --color-border: #e5e5e5;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --radius: 7px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(21, 50, 67, 0.08);
  --shadow-lg: 0 8px 32px rgba(21, 50, 67, 0.12);
  --transition: 0.3s ease;

  --container: 1100px;
  --nav-height: 72px;
}

/* ============================================ */
/* RESET & BASE                                 */
/* ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: #153244;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ============================================ */
/* UTILITIES                                    */
/* ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 38px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* On dark backgrounds, hover to white */
.hero .btn--primary:hover,
.weekly-themes .btn--primary:hover,
.final-cta .btn--primary:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--large {
  font-size: 1.1rem;
  padding: 18px 48px;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.link--subtle {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.link--subtle:hover {
  color: var(--color-accent);
}

.link--on-dark {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.link--on-dark:hover {
  color: var(--color-accent);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================ */
/* 1. STICKY NAV                                */
/* ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
}

.nav__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 44px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav__cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Programs dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}

.nav__dropdown[aria-expanded="true"] .nav__dropdown-arrow,
.nav__dropdown.open .nav__dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-dark);
  border-radius: var(--radius);
  padding: 8px 0;
  padding-top: 20px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  transform: translateX(-50%) translateY(-8px);
  z-index: 1001;
}

/* When nav is transparent (at top), dropdown uses dark overlay instead of solid */
.nav:not(.nav--scrolled) .nav__dropdown-menu {
  background: rgba(21, 50, 67, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Invisible hover bridge — covers the gap between toggle and menu */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 20px;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* ============================================ */
/* 2. HERO                                      */
/* ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 50, 67, 0.6);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 48px 80px;
  max-width: 900px;
  background: radial-gradient(ellipse at center, rgba(21, 50, 67, 0.65) 0%, transparent 70%);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  cursor: pointer;
  animation: hero-float 2.5s ease-in-out infinite;
}

.hero__scroll-cue:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero__scroll-cue span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

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

.hero__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  /* Summer color wave */
  background: linear-gradient(
    90deg,
    #ffe066,
    #ff9a5c,
    #e59385,
    #f7c948,
    #5ecfcf,
    #ffe066
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-color-wave 6s ease-in-out infinite;
}

@keyframes hero-color-wave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 36px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero__cta {
  font-size: 1.05rem;
  padding: 18px 48px;
}

/* Emphasized section heading variant */
.section-heading--hero {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.why-rec-room__intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* ============================================ */
/* 3. TRUST BAR                                 */
/* ============================================ */
.trust-bar {
  text-align: center;
  margin-top: 40px;
}

.trust-bar__container {
  background: #EFEAE7;
  padding: 20px 48px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 60px;
  max-width: calc(100% - 48px);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-bar__icon {
  font-size: 1.2rem;
}

.trust-bar__text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================ */
/* 4. WHY REC ROOM SUMMER                       */
/* ============================================ */
.why-rec-room {
  padding: 96px 0;
  background: var(--color-white);
  text-align: center;
}

.value-props {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.value-props .value-card {
  flex: 0 1 calc(50% - 16px);
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  text-align: center;
  border: 1px solid rgba(21, 50, 67, 0.06);
  box-shadow: 0 4px 16px rgba(21, 50, 67, 0.12);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 50, 67, 0.15);
  box-shadow: 0 4px 12px rgba(21, 50, 67, 0.35);
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.value-card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- Value Stack (mobile fan-stack) ---- */
.value-stack__hint,
.value-stack__counter {
  display: none;
}

/* Nudge animation for value stack — hints swipe direction */
@keyframes value-stack-peek {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(12px, 0) scale(1); }
  60%  { transform: translate(12px, 0) scale(1); }
  100% { transform: translate(0, 0) scale(1); }
}

.value-card--stack-active.peek-nudge {
  animation: value-stack-peek 1.2s ease-in-out forwards;
}

/* Slide-right-off-screen animation */
.value-card--stack-sliding {
  transform: translateX(110%) rotate(4deg) scale(0.95) !important;
  opacity: 0 !important;
  z-index: 25 !important;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.15s !important;
}

/* ============================================ */
/* 5. MEET KELLY                                */
/* ============================================ */
.meet-kelly {
  padding: 96px 0;
  background: var(--color-light-bg);
}

.kelly-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.kelly-photo__img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 20px 4px rgba(26, 108, 122, 0.2),
    0 0 40px 10px rgba(26, 108, 122, 0.08);
}



.kelly-bio__role {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.kelly-bio__text {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ============================================ */
/* 6 & 7. PROGRAM SECTIONS (K & SA)             */
/* ============================================ */
.program-section {
  padding: 96px 0;
}

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

.school-age-section {
  background: var(--color-light-bg);
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0 48px;
  align-items: start;
}

/* Header and body stack in the left column, gallery in the right */
.program-header {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.program-body {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.program-grid .photo-stack {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

/* Reversed layout: gallery left, text right */
.program-grid--reverse .program-header {
  grid-column: 2;
}

.program-grid--reverse .program-body {
  grid-column: 2;
}

.program-grid--reverse .photo-stack {
  grid-column: 1;
}

.program-content__text {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.program-body .btn {
  margin-top: 12px;
}

.program-image__photo {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ---- Photo Stack Gallery (Kindergarten) ---- */
.photo-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  z-index: 10;
}

.photo-stack__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(21, 50, 67, 0.15);
  transition: transform 0.5s ease, opacity 0.4s ease, z-index 0s;
  z-index: calc(20 - var(--i));
  pointer-events: none;
}

/* Visible cards: scattered rotation via --rot set per-card in JS */
.photo-stack__card--visible {
  transform:
    rotate(var(--rot, 0deg))
    translate(calc(var(--i) * 6px), calc(var(--i) * 6px))
    scale(calc(1 - var(--i) * 0.02));
  opacity: 1;
}

/* Hidden cards: stacked behind at max offset */
.photo-stack__card--hidden {
  transform: rotate(var(--rot, 5deg)) translate(18px, 18px) scale(0.94);
  opacity: 0;
}

.photo-stack__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-stack__card--active {
  cursor: pointer;
  pointer-events: auto;
}

/* Hover lift on top card */
.photo-stack__card--active:hover {
  transform: rotate(0deg) translate(0, -8px) scale(1);
}

/* Auto-peek nudge animation */
@keyframes stack-peek {
  0%   { transform: rotate(0deg) translate(0, 0) scale(1); }
  30%  { transform: rotate(0deg) translate(0, -15px) scale(1); }
  60%  { transform: rotate(0deg) translate(0, -15px) scale(1); }
  100% { transform: rotate(0deg) translate(0, 0) scale(1); }
}

.photo-stack__card--active.peek-nudge {
  animation: stack-peek 1.2s ease-in-out forwards;
}

/* Lift-out animation for cycling */
.photo-stack__card--lifting {
  transform: rotate(-2deg) translate(-10px, -40px) scale(1.03) !important;
  opacity: 1 !important;
  z-index: 25 !important;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.35s ease !important;
}

.photo-stack__card--to-back {
  transform: rotate(5deg) translate(24px, 24px) scale(0.92) !important;
  opacity: 0.3 !important;
  z-index: 0 !important;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease 0.1s !important;
}

/* Hint text */
.photo-stack__hint {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* Desktop/touch hint toggle */
.hint--touch { display: none; }
.hint--desktop { display: inline; }

/* Counter */
.photo-stack__counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

/* ---- Photo Stack Responsive ---- */
@media (max-width: 768px) {
  .photo-stack {
    aspect-ratio: 4 / 3;
  }

  .photo-stack__hint {
    top: -28px;
    font-size: 0.65rem;
  }

  .hint--desktop { display: none; }
  .hint--touch { display: inline; }

  .photo-stack__counter {
    bottom: -36px;
    font-size: 0.65rem;
  }

  .photo-stack__card--visible {
    transform:
      rotate(var(--rot, 0deg))
      translate(calc(var(--i) * 4px), calc(var(--i) * 4px))
      scale(calc(1 - var(--i) * 0.02));
  }

  .photo-stack__card--active:hover {
    transform: rotate(0deg) translate(0, -6px) scale(1);
  }

  /* Ensure tap targets are large enough on touch */
  .photo-stack__card--active {
    -webkit-tap-highlight-color: transparent;
  }

  .photo-stack__card--lifting {
    transform: rotate(-2deg) translate(-8px, -30px) scale(1.02) !important;
  }

  .photo-stack__card--to-back {
    transform: rotate(4deg) translate(16px, 16px) scale(0.93) !important;
  }
}

@media (max-width: 480px) {
  .photo-stack {
    aspect-ratio: 4 / 3;
  }

  .photo-stack__hint {
    top: -26px;
    font-size: 0.6rem;
  }

  .photo-stack__counter {
    bottom: -34px;
    font-size: 0.6rem;
  }

  .photo-stack__card--visible {
    transform:
      rotate(var(--rot, 0deg))
      translate(calc(var(--i) * 3px), calc(var(--i) * 3px))
      scale(calc(1 - var(--i) * 0.02));
  }

  .photo-stack__card--lifting {
    transform: rotate(-1deg) translate(-6px, -24px) scale(1.02) !important;
  }

  .photo-stack__card--to-back {
    transform: rotate(3deg) translate(12px, 12px) scale(0.94) !important;
  }
}

/* ============================================ */
/* 8. WEEKLY THEMES (FLIP CARDS)                */
/* ============================================ */
.weekly-themes {
  padding: 96px 0;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.weekly-themes .section-label {
  color: var(--color-accent);
}

.weekly-themes .section-heading {
  color: var(--color-white);
}

.weekly-themes__intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 12px;
  text-align: center;
}

.weekly-themes__hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 auto 48px;
  text-align: center;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Flip card mechanics */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 400px;
  outline: none;
}

.flip-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-transform-style: preserve-3d;
}

.flip-card.flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateZ(0);
}

.flip-card__front {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--card-accent, var(--color-accent)) 8%, #f0ede8) 0%,
      color-mix(in srgb, var(--card-accent, var(--color-accent)) 12%, #e8e4de) 50%,
      color-mix(in srgb, var(--card-accent, var(--color-accent)) 6%, #f2efea) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 5px solid var(--card-accent, var(--color-accent));
  border-top: 5px solid var(--card-accent, var(--color-accent));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.6),
    0 2px 8px rgba(0,0,0,0.12),
    0 0 12px 2px color-mix(in srgb, var(--card-accent, var(--color-accent)) 85%, transparent),
    0 0 24px 4px color-mix(in srgb, var(--card-accent, var(--color-accent)) 25%, transparent);
  overflow: hidden;
}

/* Pattern overlay layer — shared setup */
.flip-card__front::before {
  content: '';
  position: absolute;
  inset: -30px;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Per-card drift directions */
@keyframes drift-1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(22px, 16px); } }
@keyframes drift-2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px, 22px); } }
@keyframes drift-3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px, -20px); } }
@keyframes drift-4 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-22px, -16px); } }
@keyframes drift-5 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -22px); } }
@keyframes drift-6 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-16px, 20px); } }
@keyframes drift-7 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px, 12px); } }
@keyframes drift-8 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12px, -24px); } }

.themes-grid .flip-card:nth-child(1) .flip-card__front::before { animation: drift-1 8s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(2) .flip-card__front::before { animation: drift-2 9.5s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(3) .flip-card__front::before { animation: drift-3 8.5s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(4) .flip-card__front::before { animation: drift-4 10s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(5) .flip-card__front::before { animation: drift-5 8.5s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(6) .flip-card__front::before { animation: drift-6 9s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(7) .flip-card__front::before { animation: drift-7 7.5s ease-in-out infinite; }
.themes-grid .flip-card:nth-child(8) .flip-card__front::before { animation: drift-8 10s ease-in-out infinite; }

/* Ensure text content sits above the pattern */
.flip-card__front .flip-card__week,
.flip-card__front .flip-card__icon,
.flip-card__front .flip-card__title,
.flip-card__front .flip-card__dates {
  position: relative;
  z-index: 1;
}

.flip-card__front .flip-card__title {
  color: var(--card-accent, var(--color-dark));
}

.flip-card__front .flip-card__dates {
  color: var(--color-dark);
}

.flip-card__front .flip-card__dates {
  color: var(--color-text-light);
}

/* Peek animation — card tilts to tease the flip on hover (pointer devices only) */
@media (hover: hover) {
  .flip-card:not(.flipped):hover .flip-card__inner {
    transform: rotateY(18deg);
  }
}

/* Auto-peek intro animation — slow, deliberate tilt to draw attention */
@keyframes peek-intro {
  0%   { transform: rotateY(0deg); }
  40%  { transform: rotateY(20deg); }
  70%  { transform: rotateY(-3deg); }
  100% { transform: rotateY(0deg); }
}

.flip-card.peek-intro .flip-card__inner {
  animation: peek-intro 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Flipped card peek — less pronounced, only after mouse re-entry (pointer devices only) */
@media (hover: hover) {
  .flip-card.flipped.peek-ready:hover .flip-card__inner {
    transform: rotateY(170deg);
  }
}

.flip-card__back {
  background: #EFEAE7;
  transform: rotateY(180deg) translateZ(1px);
  justify-content: flex-start;
  padding-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.flip-card__week {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--card-accent, var(--color-accent));
  margin-bottom: 8px;
}

.flip-card__icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.flip-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.flip-card__dates {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.flip-card__dates small {
  font-size: 0.75rem;
}


.flip-card__back-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--card-accent, var(--color-primary));
  margin-bottom: 12px;
}

.flip-card__back-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.flip-card__back-text em {
  font-size: 0.8rem;
  color: var(--color-text-light);
  opacity: 0.7;
}

.flip-card__back-dates {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--card-accent, var(--color-accent));
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  order: -1;
  margin-bottom: 8px;
}

/* ---- Per-card accent colors ---- */
.themes-grid .flip-card:nth-child(1) { --card-accent: #5aab6a; } /* Nature — soft green */
.themes-grid .flip-card:nth-child(2) { --card-accent: #c4885a; } /* Paleontologist — dusty clay */
.themes-grid .flip-card:nth-child(3) { --card-accent: #9a6dbf; } /* Mad Scientist — muted purple */
.themes-grid .flip-card:nth-child(4) { --card-accent: #d87da5; } /* Music Mania — soft pink */
.themes-grid .flip-card:nth-child(5) { --card-accent: #c9a84c; } /* Farming — muted gold */
.themes-grid .flip-card:nth-child(6) { --card-accent: #cf6850; } /* Culinary — faded red */
.themes-grid .flip-card:nth-child(7) { --card-accent: #d99a56; } /* Artist — soft orange */
.themes-grid .flip-card:nth-child(8) { --card-accent: #5a9ac7; } /* Ocean — soft blue */

/* ---- Per-card thematic SVG patterns (top & bottom only) ---- */

/* Week 1: Nature Camp — leaves top/bottom */
.themes-grid .flip-card:nth-child(1) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='%235aab6a' fill-opacity='0.15'%3E%3Cpath d='M30 45c-5-10 2-25 15-28 3 12-2 22-15 28z' transform='rotate(20 30 45)'/%3E%3Cpath d='M180 30c-4-8 1-18 12-20 2 9-1 16-12 20z' transform='rotate(-25 180 30)'/%3E%3Cpath d='M110 85c-3-7 1-16 10-18 2 8-1 14-10 18z' transform='rotate(35 110 85)'/%3E%3Cpath d='M40 110c-4-8 1-18 12-20 2 9-1 16-12 20z' transform='rotate(-10 40 110)'/%3E%3Cpath d='M50 330c-5-10 2-25 15-28 3 12-2 22-15 28z' transform='rotate(-15 50 330)'/%3E%3Cpath d='M190 310c-4-8 1-18 12-20 2 9-1 16-12 20z' transform='rotate(30 190 310)'/%3E%3Cpath d='M130 355c-3-7 1-16 10-18 2 8-1 14-10 18z' transform='rotate(-20 130 355)'/%3E%3Cpath d='M210 120c-3-6 1-14 9-16 2 7-1 13-9 16z' transform='rotate(15 210 120)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Week 2: Jr. Paleontologist — footprints and bones top/bottom */
.themes-grid .flip-card:nth-child(2) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='%23c4885a' fill-opacity='0.14'%3E%3Cg transform='translate(45 40) rotate(15)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='7'/%3E%3Ccircle cx='-6' cy='-10' r='2.5'/%3E%3Ccircle cx='0' cy='-11' r='2.5'/%3E%3Ccircle cx='6' cy='-10' r='2.5'/%3E%3C/g%3E%3Cg transform='translate(185 80) rotate(-20)'%3E%3Crect x='-14' y='-2.5' width='28' height='5' rx='2.5'/%3E%3Ccircle cx='-16' cy='0' r='5'/%3E%3Ccircle cx='16' cy='0' r='5'/%3E%3C/g%3E%3Cg transform='translate(100 115) rotate(10)'%3E%3Cellipse cx='0' cy='0' rx='4' ry='6'/%3E%3Ccircle cx='-5' cy='-8' r='2'/%3E%3Ccircle cx='0' cy='-9' r='2'/%3E%3Ccircle cx='5' cy='-8' r='2'/%3E%3C/g%3E%3Cg transform='translate(60 330) rotate(-10)'%3E%3Crect x='-12' y='-2' width='24' height='4' rx='2'/%3E%3Ccircle cx='-14' cy='0' r='4'/%3E%3Ccircle cx='14' cy='0' r='4'/%3E%3C/g%3E%3Cg transform='translate(190 310) rotate(25)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='7'/%3E%3Ccircle cx='-6' cy='-10' r='2.5'/%3E%3Ccircle cx='0' cy='-11' r='2.5'/%3E%3Ccircle cx='6' cy='-10' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Week 3: Mad Scientist — bubbles top/bottom */
.themes-grid .flip-card:nth-child(3) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='none' stroke='%239a6dbf' stroke-opacity='0.15' stroke-width='1.5'%3E%3Ccircle cx='35' cy='30' r='10'/%3E%3Ccircle cx='150' cy='45' r='6'/%3E%3Ccircle cx='195' cy='35' r='8'/%3E%3Ccircle cx='85' cy='100' r='5'/%3E%3Ccircle cx='210' cy='110' r='4'/%3E%3Ccircle cx='50' cy='320' r='8'/%3E%3Ccircle cx='30' cy='290' r='5'/%3E%3Ccircle cx='200' cy='310' r='10'/%3E%3Ccircle cx='140' cy='345' r='6'/%3E%3Ccircle cx='100' cy='370' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* Week 4: Music Mania — notes top/bottom */
.themes-grid .flip-card:nth-child(4) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='%23d87da5' fill-opacity='0.14'%3E%3Cg transform='translate(40 45)'%3E%3Cellipse cx='0' cy='0' rx='6' ry='4' transform='rotate(-20)'/%3E%3Cline x1='5' y1='-2' x2='5' y2='-24' stroke='%23d87da5' stroke-opacity='0.14' stroke-width='1.8'/%3E%3Ccircle cx='5' cy='-24' r='3.5'/%3E%3C/g%3E%3Cg transform='translate(180 35)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='3.5' transform='rotate(-15)'/%3E%3Cline x1='4' y1='-1' x2='4' y2='-18' stroke='%23d87da5' stroke-opacity='0.14' stroke-width='1.8'/%3E%3Cellipse cx='14' cy='-3' rx='5' ry='3.5' transform='rotate(-15)'/%3E%3Cline x1='17' y1='-4' x2='17' y2='-18' stroke='%23d87da5' stroke-opacity='0.14' stroke-width='1.8'/%3E%3Cline x1='4' y1='-18' x2='17' y2='-18' stroke='%23d87da5' stroke-opacity='0.14' stroke-width='2.5'/%3E%3C/g%3E%3Cg transform='translate(110 105)'%3E%3Cellipse cx='0' cy='0' rx='5' ry='3.5' transform='rotate(-25)'/%3E%3Cline x1='4' y1='-2' x2='4' y2='-20' stroke='%23d87da5' stroke-opacity='0.14' stroke-width='1.5'/%3E%3Ccircle cx='4' cy='-20' r='3'/%3E%3C/g%3E%3Cg transform='translate(70 330)'%3E%3Cellipse cx='0' cy='0' rx='6' ry='4' transform='rotate(-20)'/%3E%3Cline x1='5' y1='-2' x2='5' y2='-22' stroke='%23d87da5' stroke-opacity='0.14' stroke-width='1.8'/%3E%3Ccircle cx='5' cy='-22' r='3'/%3E%3C/g%3E%3C/g%3E%3Cg fill='none' stroke='%23d87da5' stroke-opacity='0.1' stroke-width='1.5'%3E%3Cpath d='M140 310 Q155 303 170 310 Q185 317 200 310'/%3E%3C/g%3E%3C/svg%3E");
}

/* Week 5: Farming & Agriculture — wheat and sun top/bottom */
.themes-grid .flip-card:nth-child(5) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='%23c9a84c' fill-opacity='0.13'%3E%3Cg transform='translate(45 70) rotate(-8)'%3E%3Cline x1='0' y1='0' x2='0' y2='35' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cellipse cx='-4' cy='4' rx='3.5' ry='7' transform='rotate(30 -4 4)'/%3E%3Cellipse cx='4' cy='10' rx='3.5' ry='7' transform='rotate(-30 4 10)'/%3E%3Cellipse cx='-4' cy='16' rx='3.5' ry='7' transform='rotate(30 -4 16)'/%3E%3Cellipse cx='0' cy='-2' rx='2.5' ry='6'/%3E%3C/g%3E%3Ccircle cx='185' cy='45' r='8'/%3E%3Cline x1='185' y1='32' x2='185' y2='28' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cline x1='185' y1='58' x2='185' y2='62' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cline x1='172' y1='45' x2='168' y2='45' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cline x1='198' y1='45' x2='202' y2='45' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cline x1='176' y1='36' x2='173' y2='33' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cline x1='194' y1='54' x2='197' y2='57' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cg transform='translate(160 325) rotate(5)'%3E%3Cline x1='0' y1='0' x2='0' y2='30' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.5'/%3E%3Cellipse cx='-4' cy='4' rx='3' ry='6' transform='rotate(25 -4 4)'/%3E%3Cellipse cx='4' cy='9' rx='3' ry='6' transform='rotate(-25 4 9)'/%3E%3Cellipse cx='0' cy='-1' rx='2' ry='5'/%3E%3C/g%3E%3Ccircle cx='55' cy='320' r='6'/%3E%3Cline x1='55' y1='310' x2='55' y2='307' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.2'/%3E%3Cline x1='55' y1='330' x2='55' y2='333' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.2'/%3E%3Cline x1='45' y1='320' x2='42' y2='320' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.2'/%3E%3Cline x1='65' y1='320' x2='68' y2='320' stroke='%23c9a84c' stroke-opacity='0.13' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Week 6: Culinary — utensils and steam top/bottom */
.themes-grid .flip-card:nth-child(6) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='%23cf6850' fill-opacity='0.13'%3E%3Cg transform='translate(40 65) rotate(12)'%3E%3Crect x='-1.5' y='0' width='3' height='25' rx='1.5'/%3E%3Cellipse cx='0' cy='-5' rx='6' ry='9'/%3E%3Crect x='-4' y='-7' width='1.5' height='10' rx='0.5'/%3E%3Crect x='-1' y='-7' width='1.5' height='10' rx='0.5'/%3E%3Crect x='2' y='-7' width='1.5' height='10' rx='0.5'/%3E%3C/g%3E%3Cg transform='translate(195 55) rotate(-8)'%3E%3Crect x='-1.5' y='0' width='3' height='22' rx='1.5'/%3E%3Cellipse cx='0' cy='-7' rx='7' ry='9'/%3E%3C/g%3E%3Cg transform='translate(60 325) rotate(5)'%3E%3Crect x='-1' y='0' width='2.5' height='20' rx='1'/%3E%3Crect x='-6' y='-4' width='12' height='6' rx='3'/%3E%3C/g%3E%3Cg transform='translate(180 340) rotate(-10)'%3E%3Crect x='-1.5' y='0' width='3' height='20' rx='1.5'/%3E%3Cellipse cx='0' cy='-5' rx='5' ry='8'/%3E%3C/g%3E%3C/g%3E%3Cg fill='none' stroke='%23cf6850' stroke-opacity='0.1' stroke-width='1.5'%3E%3Cpath d='M120 30 Q122 22 120 15 Q118 8 120 2'/%3E%3Cpath d='M130 35 Q132 26 130 19 Q128 12 130 5'/%3E%3Cpath d='M110 365 Q112 358 110 352 Q108 346 110 340'/%3E%3C/g%3E%3C/svg%3E");
}

/* Week 7: Artist in Action — paint splatters top/bottom */
.themes-grid .flip-card:nth-child(7) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='%23d99a56' fill-opacity='0.14'%3E%3Ccircle cx='40' cy='30' r='10'/%3E%3Ccircle cx='48' cy='20' r='4'/%3E%3Ccircle cx='30' cy='22' r='3'/%3E%3Ccircle cx='195' cy='55' r='7'/%3E%3Ccircle cx='188' cy='48' r='3'/%3E%3Ccircle cx='120' cy='110' r='5'/%3E%3Ccircle cx='128' cy='104' r='2'/%3E%3Ccircle cx='55' cy='310' r='8'/%3E%3Ccircle cx='48' cy='303' r='3'/%3E%3Ccircle cx='63' cy='317' r='2.5'/%3E%3Ccircle cx='185' cy='325' r='6'/%3E%3Ccircle cx='178' cy='320' r='2.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d99a56' stroke-opacity='0.12' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M100 45 Q115 38 130 50'/%3E%3Cpath d='M110 335 Q125 327 140 337'/%3E%3C/g%3E%3C/svg%3E");
}

/* Week 8: Ocean Explorer — waves and fish top/bottom */
.themes-grid .flip-card:nth-child(8) .flip-card__front::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 400'%3E%3Cg fill='none' stroke='%235a9ac7' stroke-opacity='0.13' stroke-width='1.8'%3E%3Cpath d='M0 35 Q20 25 40 35 Q60 45 80 35 Q100 25 120 35'/%3E%3Cpath d='M120 70 Q140 60 160 70 Q180 80 200 70 Q220 60 240 70'/%3E%3Cpath d='M0 105 Q30 92 60 105 Q90 118 120 105'/%3E%3Cpath d='M0 320 Q20 310 40 320 Q60 330 80 320 Q100 310 120 320'/%3E%3Cpath d='M120 345 Q140 335 160 345 Q180 355 200 345 Q220 335 240 345'/%3E%3C/g%3E%3Cg fill='%235a9ac7' fill-opacity='0.13'%3E%3Cpath d='M180 40c5-2.5 10-2.5 15 0l-4 2.5c-2.5 1.2-5 1.2-7.5 0z'/%3E%3Ccircle cx='178' cy='39' r='1.2'/%3E%3Cpath d='M60 330c5-2.5 10-2.5 15 0l-4 2.5c-2.5 1.2-5 1.2-7.5 0z'/%3E%3Ccircle cx='58' cy='329' r='1.2'/%3E%3Cpath d='M190 305c4-2 8-2 12 0l-3 2c-2 1-4 1-6 0z'/%3E%3Ccircle cx='188' cy='304' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.weekly-themes__cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================ */
/* 9. WHAT'S INCLUDED                           */
/* ============================================ */
.whats-included {
  padding: 96px 0;
  background: var(--color-white);
  text-align: center;
}

/* --- Pricing Subheading --- */
.pricing-subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--color-primary);
  margin-top: 16px;
  margin-bottom: 0;
}

.pricing-subheading__detail {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 4px;
  margin-bottom: 0;
}

/* --- Pricing Breakdown (matches perks-strip layout) --- */
.pricing-breakdown {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}

.pricing-breakdown__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.pricing-breakdown__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

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

.pricing-breakdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--color-light-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(21, 50, 67, 0.06);
}

.pricing-breakdown__icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.pricing-breakdown__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}

.pricing-breakdown__desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Perks Strip (below card) --- */
.perks-strip {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
}

.perks-strip__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.perks-strip__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.perks-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--color-light-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(21, 50, 67, 0.06);
}

.perks-strip__icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.perks-strip__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}

.perks-strip__desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.perks-strip__note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  opacity: 0.7;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Policies Fine Print --- */
.pricing-policies {
  margin-top: 32px;
  text-align: center;
}

.pricing-policies__text {
  font-size: 0.8rem;
  color: var(--color-text-light);
  opacity: 0.7;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}


/* ============================================ */
/* 10. HOW TO REGISTER                          */
/* ============================================ */
.how-to-register {
  padding: 96px 0 112px;
  background: var(--color-light-bg);
  text-align: center;
}

.how-to-register__intro {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.step {
  text-align: center;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.step__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.how-to-register__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.live-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    opacity: 0.7;
  }
}

.how-to-register__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.how-to-register__secondary {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================ */
/* 11. SEPTEMBER PATHWAY                        */
/* ============================================ */
.september-pathway {
  padding: 80px 0;
  background: var(--color-white);
}

.september-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.september-content__text {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.september-content__note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: var(--color-light-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  text-align: left;
  line-height: 1.7;
}

/* ============================================ */
/* 12. FAQ                                      */
/* ============================================ */
.faq {
  padding: 96px 0;
  background: var(--color-light-bg);
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  text-align: left;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================ */
/* 13. FINAL CTA                                */
/* ============================================ */
.final-cta {
  padding: 96px 0;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-dark) 100%);
  text-align: center;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--color-white);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto 16px;
}

.final-cta__urgency {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.final-cta__secondary {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

/* ============================================ */
/* 14. FOOTER                                   */
/* ============================================ */
.footer {
  padding: 56px 0 32px;
  background: var(--color-dark);
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  margin-bottom: 8px;
}

.footer__logo-img {
  height: 48px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.footer__col p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================ */
/* RESPONSIVE — MOBILE FIRST                    */
/* ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flip-card__back {
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .value-props .value-card {
    flex: 0 1 calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Nav mobile */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav__dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Transparent overlay when nav is at top of page */
  .nav:not(.nav--scrolled) .nav__menu {
    background: rgba(21, 50, 67, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav__cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  /* Dropdown mobile: inline accordion style */
  .nav__dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .nav__dropdown:hover .nav__dropdown-menu {
    /* Disable hover-open on mobile — use tap only */
    opacity: 0;
    pointer-events: none;
    transform: none;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    max-height: 200px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav__dropdown-link {
    padding: 8px 0 8px 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
  }

  /* Hamburger animation */
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero__content {
    padding: 100px 20px 60px;
  }

  .hero__title {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .hero__subtitle {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  }

  /* Trust bar */
  /* Value card fan-stack on mobile */
  .why-rec-room {
    overflow: hidden;
  }

  .value-props {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    position: relative;
    margin-top: 56px;
    margin-bottom: 40px;
    padding: 0 4px;
    overflow: visible;
  }

  .value-props .value-card {
    grid-row: 1;
    grid-column: 1;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: calc(20 - var(--i, 0));
    transition: transform 0.5s ease, opacity 0.4s ease;
    pointer-events: none;
  }

  .value-props .value-card--stack-active {
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  /* Fan to the left — tight spread, 2-3 edges visible */
  .value-props .value-card--stack-visible {
    transform:
      translateX(calc(var(--i, 0) * -6px))
      translateY(calc(var(--i, 0) * 2px))
      rotate(calc(var(--i, 0) * -0.8deg))
      scale(calc(1 - var(--i, 0) * 0.02));
    opacity: 1;
  }

  /* Disable normal hover effects in stack mode */
  .value-props .value-card:hover {
    transform: none;
    border-color: rgba(21, 50, 67, 0.06);
    box-shadow: 0 4px 16px rgba(21, 50, 67, 0.12);
  }

  .value-props .value-card--stack-active:hover {
    transform: translate(0, -4px) rotate(0deg) scale(1);
  }

  /* Stack chrome */
  .value-stack__hint {
    display: block;
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    opacity: 0.55;
    z-index: 30;
    pointer-events: none;
    white-space: nowrap;
    grid-row: 1;
    grid-column: 1;
  }

  .value-stack__counter {
    display: block;
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    opacity: 0.55;
    z-index: 30;
    pointer-events: none;
    grid-row: 1;
    grid-column: 1;
  }

  .value-card--stack-sliding {
    transform: translateX(110%) rotate(4deg) scale(0.95) !important;
  }

  .kelly-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .kelly-photo__img {
    margin: 0 auto;
    width: 200px;
    height: 200px;
  }


  .program-grid,
  .program-grid--reverse {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    direction: ltr;
    gap: 0;
  }

  /* Mobile order: 1) heading, 2) gallery, 3) body text */
  .program-grid .program-header,
  .program-grid--reverse .program-header {
    grid-column: 1;
    grid-row: 1;
    order: 1;
    margin-bottom: 28px;
    text-align: center;
  }

  .program-grid .photo-stack,
  .program-grid--reverse .photo-stack {
    grid-column: 1;
    grid-row: 2;
    order: 2;
    margin-bottom: 40px;
  }

  .program-grid .program-body,
  .program-grid--reverse .program-body {
    grid-column: 1;
    grid-row: 3;
    order: 3;
    text-align: center;
  }

  .program-body .btn {
    display: inline-block;
  }

  .program-image {
    order: -1;
  }

  .program-image__photo {
    height: 240px;
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .flip-card {
    height: 310px;
  }

  .flip-card__icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .flip-card__title {
    font-size: 0.9rem;
  }

  .flip-card__front,
  .flip-card__back {
    padding: 20px 16px;
  }

  .flip-card__back {
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .flip-card__back-title {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .flip-card__back-text {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .flip-card__back-dates {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .flip-card__inner {
    transition: transform 0.5s ease;
  }

  .pricing-breakdown__items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-breakdown__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 20px;
    text-align: left;
  }

  .pricing-breakdown__icon {
    grid-row: 1 / 3;
    font-size: 1.4rem;
    margin-bottom: 0;
  }

  .pricing-breakdown__name {
    grid-column: 2;
  }

  .pricing-breakdown__desc {
    grid-column: 2;
  }

  .perks-strip__items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .perks-strip__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 20px;
    text-align: left;
  }

  .perks-strip__icon {
    grid-row: 1 / 3;
    font-size: 1.4rem;
    margin-bottom: 0;
  }

  .perks-strip__name {
    grid-column: 2;
  }

  .perks-strip__desc {
    grid-column: 2;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-to-register {
    padding: 72px 0 88px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__col {
    text-align: center;
  }

  .footer__logo-img {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .trust-bar__container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .flip-card {
    height: 270px;
  }

  .flip-card__icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  .flip-card__week {
    font-size: 0.6rem;
  }

  .flip-card__title {
    font-size: 0.8rem;
  }

  .flip-card__dates {
    font-size: 0.7rem;
  }

  .flip-card__back-text {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .flip-card__back-title {
    font-size: 0.8rem;
  }

  .flip-card__front::before {
    opacity: 0.7;
  }
}