/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&family=Caveat:wght@600;700&display=swap');

/* ---------- Palettes ---------- */
:root,
[data-palette="bubblegum"] {
  --pink: #FF5DA2;
  --yellow: #FFD23F;
  --mint: #5EEAD4;
  --sky: #7CC2FF;
  --grape: #B58CFF;
  --tangerine: #FF8A4C;
  --cream: #FFF6E5;
  --paper: #FFFAF0;
  --ink: #2A1B3D;
  --ink-soft: #5A4A6E;
}
[data-palette="crayon"] {
  --pink: #FF3B6B;
  --yellow: #FFC400;
  --mint: #34C759;
  --sky: #2E8BFF;
  --grape: #8E4FE0;
  --tangerine: #FF6F1A;
  --cream: #FFFDF2;
  --paper: #FFFFFF;
  --ink: #14132B;
  --ink-soft: #4A4A5E;
}
[data-palette="pastel"] {
  --pink: #F8A1B8;
  --yellow: #F8DC81;
  --mint: #9BDDC8;
  --sky: #A9CEF4;
  --grape: #C7B0F0;
  --tangerine: #F8B58C;
  --cream: #FFFBF4;
  --paper: #FFFEFA;
  --ink: #4A3B5C;
  --ink-soft: #7A6A8E;
}
[data-palette="tropical"] {
  --pink: #FF4D8D;
  --yellow: #FFB400;
  --mint: #1FBFA9;
  --sky: #00BFD8;
  --grape: #C13FCB;
  --tangerine: #FF6B3D;
  --cream: #FFF7EC;
  --paper: #FFFEF6;
  --ink: #1F1A3D;
  --ink-soft: #5A4A6E;
}

/* ---------- Animation intensity ---------- */
:root {
  --float-amp: 12px;
  --float-time: 5s;
  --bob-amp: 6px;
  --wiggle-deg: 2deg;
}
[data-anim="calm"] {
  --float-amp: 6px;
  --float-time: 7s;
  --bob-amp: 3px;
  --wiggle-deg: 1deg;
}
[data-anim="wild"] {
  --float-amp: 22px;
  --float-time: 3.5s;
  --bob-amp: 12px;
  --wiggle-deg: 4deg;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background-image:
    radial-gradient(circle at 10% 20%, color-mix(in oklab, var(--pink) 18%, transparent), transparent 40%),
    radial-gradient(circle at 90% 10%, color-mix(in oklab, var(--mint) 18%, transparent), transparent 40%),
    radial-gradient(circle at 50% 80%, color-mix(in oklab, var(--yellow) 14%, transparent), transparent 40%);
  background-attachment: fixed;
}
h1, h2, h3, h4, h5 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 18px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--pink); color: white;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px,-2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-mint   { background: var(--mint); color: var(--ink); }
.btn-sky    { background: var(--sky); color: var(--ink); }
.btn-ghost  { background: var(--paper); color: var(--ink); }

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px;
}

.squiggle {
  display: inline-block;
  background-image:
    radial-gradient(circle, var(--yellow) 30%, transparent 32%);
  background-size: 14px 14px;
  background-position: 0 100%;
  background-repeat: repeat-x;
  padding-bottom: 14px;
}

/* ---------- Floating decorations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50%      { transform: translateY(calc(-1 * var(--float-amp))) rotate(calc(var(--r,0deg) + 4deg)); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50%      { transform: translateY(calc(-1 * var(--bob-amp))) rotate(var(--r,0deg)); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(calc(-1 * var(--wiggle-deg))); }
  50%      { transform: rotate(var(--wiggle-deg)); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pop-in {
  0% { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(var(--r,0deg)); opacity: 1; }
}

.float { animation: float var(--float-time) ease-in-out infinite; }
.bob { animation: bob 3.2s ease-in-out infinite; }
.wiggle { animation: wiggle 2.4s ease-in-out infinite; }
.spin-slow { animation: spin-slow 18s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .float, .bob, .wiggle, .spin-slow { animation: none !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; max-width: 1280px; padding: 0 20px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 14px 10px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--pink);
  display: grid; place-items: center;
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  color: white; font-size: 20px;
  transform: rotate(-6deg);
}
.nav-links {
  display: flex; gap: 4px; list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  position: relative;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--yellow); }
.nav-cta { font-size: 15px; padding: 10px 18px; box-shadow: 3px 3px 0 var(--ink); }
.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
  position: relative;
  z-index: 2;
}
.hero-deco { position: absolute; z-index: 0; pointer-events: none; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 80px);
  margin: 18px 0 28px;
  line-height: 1.15;
}
.hero h1 .hl-line {
  display: block;
  margin-bottom: 16px;
}
.hero h1 .hl-line:last-child { margin-bottom: 0; }
.hero h1 .word { display: inline-block; }
.hero h1 .stamp {
  display: inline-block;
  padding: 6px 18px 12px;
  border-radius: 22px;
  color: white;
  transform: rotate(-2deg);
  margin: 0 4px;
  line-height: 1;
  white-space: nowrap;
}
.hero-sub { margin-top: 4px; }
.stamp-pink { background: var(--pink); }
.stamp-mint { background: var(--mint); color: var(--ink); transform: rotate(2deg); }
.stamp-grape { background: var(--grape); }
.hero-sub {
  font-size: 19px; color: var(--ink-soft);
  max-width: 520px; line-height: 1.5;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 18px; margin-top: 36px; flex-wrap: wrap;
}
.hero-stat {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
}
.hero-stat-num {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 26px; line-height: 1;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

/* hero collage */
.collage {
  position: relative;
  aspect-ratio: 1 / 1;
}
.tile {
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  display: grid; place-items: center;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  text-align: center;
  padding: 14px;
}

/* ---------- Section general ---------- */
section { position: relative; padding: 80px 0; }
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 50px;
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 18px 0 14px;
}
.section-head p {
  color: var(--ink-soft); font-size: 18px; line-height: 1.5;
}

/* ---------- Brain stages ---------- */
.brain {
  background: linear-gradient(180deg, transparent 0%, color-mix(in oklab, var(--sky) 22%, transparent) 100%);
  border-top: 3px dashed var(--ink);
  border-bottom: 3px dashed var(--ink);
}
.brain-headline {
  text-align: center; max-width: 880px; margin: 0 auto 50px;
}
.brain-big {
  font-family: 'Fredoka', sans-serif; font-size: clamp(56px, 9vw, 120px);
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--tangerine), var(--yellow), var(--mint), var(--sky), var(--grape));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stages {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stage-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stage-card:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.stage-num {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1;
  width: 56px; height: 56px;
  border-radius: 16px; border: 2.5px solid var(--ink);
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.stage-card h4 { font-size: 22px; margin-bottom: 8px; }
.stage-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.stage-meter {
  height: 12px; border-radius: 999px; border: 2.5px solid var(--ink);
  margin-top: 16px; overflow: hidden; background: var(--cream);
}
.stage-meter > span { display: block; height: 100%; }

/* ---------- Programs ---------- */
.programs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.program-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.program-card:hover { transform: translateY(-6px) rotate(0.5deg); box-shadow: 9px 12px 0 var(--ink); }
.program-card .splash {
  position: absolute; inset: 0; opacity: 0.18;
  background: radial-gradient(circle at 80% -10%, var(--c), transparent 55%);
}
.program-icon {
  width: 64px; height: 64px;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--c);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 16px;
  font-size: 32px;
}
.program-card h3 { font-size: 26px; margin-bottom: 6px; }
.age-pill {
  display: inline-block; font-family: 'Fredoka', sans-serif;
  background: var(--cream);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 12px; font-size: 13px;
  margin-bottom: 14px;
}
.program-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.program-card .arrow {
  position: absolute; right: 20px; bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .2s;
}
.program-card:hover .arrow { transform: rotate(-30deg) scale(1.08); }

/* ---------- Play activities marquee ---------- */
.play-strip {
  background: var(--ink); color: var(--cream);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  overflow: hidden; padding: 24px 0;
}
.play-track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: 'Fredoka', sans-serif; font-size: 36px;
}
.play-track .dot { color: var(--yellow); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.play-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-top: 50px;
}
.play-tile {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  overflow: hidden;
  display: grid; place-items: end start;
  padding: 22px;
  transition: transform .25s;
}
.play-tile:hover { transform: rotate(-1.5deg) scale(1.02); }
.play-tile:nth-child(1) { background: var(--pink); }
.play-tile:nth-child(2) { background: var(--mint); grid-column: span 2; }
.play-tile:nth-child(3) { background: var(--yellow); }
.play-tile:nth-child(4) { background: var(--grape); grid-column: span 3; }
.play-tile:nth-child(5) { background: var(--sky); grid-column: span 3; }
.play-tile h4 {
  font-size: 28px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  position: relative; z-index: 2;
}
.play-tile .doodle {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 120px; opacity: 0.95;
}

/* ---------- Safety ---------- */
.safety {
  background: var(--ink); color: var(--cream);
  border-radius: 40px;
  margin: 60px auto;
  max-width: 1240px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}
.safety h2 { color: var(--cream); font-size: clamp(36px, 4.5vw, 56px); }
.safety .eyebrow { background: var(--cream); color: var(--ink); }
.safety-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
}
.safety-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.safety-tile {
  background: color-mix(in oklab, var(--cream) 8%, transparent);
  border: 2px solid var(--cream);
  border-radius: 22px;
  padding: 18px;
  transition: background .2s;
}
.safety-tile:hover { background: var(--paper); color: var(--ink); }
.safety-tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c, var(--pink));
  border: 2px solid var(--cream);
  display: grid; place-items: center;
  margin-bottom: 12px; font-size: 22px;
}
.safety-tile:hover .safety-tile-icon { border-color: var(--ink); }
.safety-tile h4 { font-size: 18px; color: inherit; margin-bottom: 4px; }
.safety-tile p { font-size: 13.5px; opacity: 0.85; line-height: 1.45; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testi {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  transition: transform .25s;
}
.testi:nth-child(1) { transform: rotate(-1.5deg); background: color-mix(in oklab, var(--yellow) 35%, var(--paper)); }
.testi:nth-child(2) { transform: rotate(1deg); background: color-mix(in oklab, var(--mint) 30%, var(--paper)); }
.testi:nth-child(3) { transform: rotate(-1deg); background: color-mix(in oklab, var(--pink) 25%, var(--paper)); }
.testi:hover { transform: rotate(0) translateY(-4px) !important; }
.stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--tangerine); font-size: 22px; }
.quote { font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.parent {
  display: flex; align-items: center; gap: 12px;
  border-top: 2.5px dashed var(--ink); padding-top: 14px;
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%; border: 2.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  background: var(--c);
  box-shadow: 2px 2px 0 var(--ink);
}
.parent-name { font-weight: 800; font-size: 15px; }
.parent-meta { font-size: 13px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq-aside {
  background: var(--grape);
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: 36px;
  box-shadow: 8px 8px 0 var(--ink);
  position: sticky; top: 100px;
}
.faq-aside h2 { color: var(--cream); font-size: 38px; }
.faq-aside p { color: var(--cream); margin: 14px 0 20px; opacity: 0.95; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  transition: transform .15s;
}
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px;
  color: var(--ink);
}
.faq-q .plus {
  margin-left: auto;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  display: grid; place-items: center;
  transition: transform .25s, background .2s;
  font-size: 22px; line-height: 1;
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--pink); color: white; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 22px;
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.55;
}
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 22px; }

/* ---------- Big CTA ---------- */
.cta {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 40px;
  margin: 30px auto 60px;
  max-width: 1240px;
  padding: 70px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
}
.cta h2 { font-size: clamp(40px, 6vw, 80px); }
.cta p { max-width: 560px; margin: 18px auto 28px; font-size: 18px; }
.cta-deco {
  position: absolute; font-size: 80px;
  pointer-events: none;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: var(--cream);
  padding: 60px 0 30px;
  border-top: 4px solid var(--ink);
}
footer h4 { color: var(--cream); margin-bottom: 16px; font-size: 18px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px dashed color-mix(in oklab, var(--cream) 40%, transparent);
  padding-top: 22px; margin-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; opacity: 0.8;
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.social:hover { background: var(--pink); color: white; transform: rotate(-10deg); }

/* ---------- Confetti canvas ---------- */
#confetti {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
}

/* ---------- Mascot cursor trail dots ---------- */
.trail-dot {
  position: fixed; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink);
  z-index: 150;
  animation: trail-fade 0.7s ease-out forwards;
}
@keyframes trail-fade {
  to { opacity: 0; transform: scale(0.3); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .safety-grid, .faq-grid { grid-template-columns: 1fr; }
  .stages, .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: repeat(2, 1fr); }
  .play-tile, .play-tile:nth-child(2), .play-tile:nth-child(4), .play-tile:nth-child(5) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .faq-aside { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .stages, .programs-grid, .play-grid, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .safety, .cta { margin-left: 16px; margin-right: 16px; padding: 40px 24px; }
}
