:root {
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --ink: #23264A;
  --muted: #5E6283;
  --line: #EDE3D3;
  --coral: #FF6F59;
  --coral-soft: #FFE3DD;
  --teal: #1FA39A;
  --teal-soft: #D6F2EF;
  --sun: #FFB627;
  --sun-soft: #FFF0CC;
  --violet: #7A6FF0;
  --violet-soft: #E7E4FF;
  --sky: #3DA5F4;
  --sky-soft: #DDF0FF;
  --pink: #FF6FA5;
  --pink-soft: #FFE1EE;
  --lime: #6CC04A;
  --lime-soft: #E4F5D6;
  --rainbow: linear-gradient(90deg, var(--coral), var(--sun), var(--lime), var(--sky), var(--violet), var(--pink));
  --radius: 22px;
  --shadow: 0 10px 30px rgba(35, 38, 74, .08);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, rgba(255, 111, 89, .16) 2px, transparent 2.6px),
    radial-gradient(circle, rgba(61, 165, 244, .16) 2px, transparent 2.6px);
  background-size: 48px 48px; background-position: 0 0, 24px 24px;
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block; font: 800 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: #C2412D; background: var(--coral-soft); padding: 7px 13px; border-radius: 999px; margin-bottom: 14px;
}
.band-sky .eyebrow { color: #1667A8; background: #fff; }
.band-pink .eyebrow { color: #B8326A; background: #fff; }
.band-sun .eyebrow { color: #8A5A00; background: #fff; }
.band-lime .eyebrow { color: #3E7D22; background: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--body); padding: 16px 26px; border-radius: 999px;
  box-shadow: 0 6px 0 #D9503C; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #D9503C; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #D9503C; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--violet); outline-offset: 3px;
}
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 6px 0 var(--line); border: 2px solid var(--line); }
.btn-ghost:hover { box-shadow: 0 8px 0 var(--line); }
.btn-small { padding: 11px 18px; font-size: .92rem; box-shadow: 0 4px 0 #D9503C; }
.btn-block { width: 100%; }
.text-link { font-weight: 800; color: var(--coral); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* header */
#site-header::before { content: ""; display: block; height: 6px; background: var(--rainbow); }
#site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 248, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--coral); color: #fff; font: 700 1.4rem/1 var(--display); transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--sun);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font: 600 1.15rem var(--display); }
.brand-text small { font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.links { display: flex; align-items: center; gap: 26px; }
.links a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--muted); }
.links a:not(.btn):hover, .links a.active { color: var(--ink); }
.links a.active { box-shadow: inset 0 -3px 0 var(--sun); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .links {
    position: absolute; left: 0; right: 0; top: 78px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none;
  }
  #site-header.open .links { display: flex; }
  .links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .links a.active { box-shadow: none; color: var(--coral); }
  .links .btn { margin-top: 14px; }
}

/* hero */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .hl {
  position: relative; white-space: nowrap; color: var(--coral);
  background: linear-gradient(90deg, var(--coral), var(--pink) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .28em; z-index: -1;
  background: var(--sun-soft); border-radius: 6px;
}
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 33ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: .95rem; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.trust li::before { content: "✓ "; color: var(--teal); font-weight: 900; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.blob { position: absolute; inset: 6% 4% 4% 6%; background: linear-gradient(140deg, var(--sky-soft), var(--pink-soft) 55%, var(--sun-soft)); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.board {
  position: absolute; inset: 18% 12% 22% 14%; background: var(--teal); border-radius: 18px; border: 10px solid #A86B3C;
  box-shadow: var(--shadow); display: grid; place-items: center; color: #fff; text-align: center;
  font: 600 clamp(1.5rem, 4vw, 2.3rem)/1.25 var(--display); transform: rotate(-3deg);
}
.board small { display: block; font: 700 .85rem var(--body); opacity: .85; letter-spacing: .06em; }
.sticker {
  position: absolute; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; font-size: .95rem;
  animation: float 6s ease-in-out infinite;
}
.sticker .e { font-size: 1.5rem; }
.s1 { top: 4%; left: 0; animation-delay: -1s; background: var(--sky-soft); }
.s2 { top: 34%; right: -2%; animation-delay: -3s; background: var(--pink-soft); }
.s3 { bottom: 6%; left: 8%; animation-delay: -2s; background: var(--lime-soft); }
.s4 { bottom: 12%; right: 4%; background: var(--sun); }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
}

/* cards */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover, .program:hover, .plan:hover { box-shadow: 0 16px 36px rgba(35, 38, 74, .12); }
@media (prefers-reduced-motion: reduce) { .sticker { animation: none; } }

.program { display: flex; flex-direction: column; }
.program .text-link { margin-top: auto; padding-top: 6px; }
.p-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 14px; padding: 6px; }
.p-icon i { display: block; width: 100%; }
.pill { align-self: flex-start; font-size: .78rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.coral .p-icon, .coral .pill { background: var(--coral-soft); color: #C2412D; }
.teal .p-icon, .teal .pill { background: var(--teal-soft); color: #11746D; }
.sun .p-icon, .sun .pill { background: var(--sun-soft); color: #9A6400; }
.violet .p-icon, .violet .pill { background: var(--violet-soft); color: #4F45C2; }
.program { border-top: 6px solid var(--c, var(--line)); }
.program.coral { --c: var(--coral); } .program.teal { --c: var(--teal); }
.program.sun { --c: var(--sun); } .program.violet { --c: var(--violet); }

.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { padding: 5px 0 5px 28px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); font-size: .72rem; font-weight: 900; display: grid; place-items: center;
}

/* plans */
.plan { display: flex; flex-direction: column; border-top: 8px solid var(--c, var(--sky)); }
.plan:nth-child(1) { --c: var(--sky); } .plan:nth-child(2) { --c: var(--coral); } .plan:nth-child(3) { --c: var(--violet); }
.plan h3 { color: var(--c); }
.plan .btn { margin-top: auto; }
.plan .price { margin: 4px 0 6px; }
.plan .price b { font: 600 2.4rem var(--display); }
.plan .price span { color: var(--muted); font-weight: 700; }
.plan.featured { border: 3px solid var(--coral); border-top-width: 8px; background: linear-gradient(180deg, #FFF4F1, var(--paper) 40%); transform: translateY(-8px); }
@media (max-width: 860px) { .plan.featured { transform: none; } }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff;
  font-size: .78rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}

/* steps */
.steps { counter-reset: s; }
.step { text-align: center; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--ink); font: 600 1.4rem var(--display); box-shadow: 0 5px 0 #E39A00;
}
.step:nth-child(2)::before { background: var(--pink); color: #fff; box-shadow: 0 5px 0 #D94C84; }
.step:nth-child(3)::before { background: var(--lime); color: #fff; box-shadow: 0 5px 0 #4E9A30; }

/* bands */
.band { position: relative; margin-block: 24px; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px; background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V12Q30 0 60 12T120 12V24Z'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 24px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 24V12Q30 0 60 12T120 12V24Z'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 24px;
}
.band::before { top: -23px; }
.band::after { bottom: -23px; transform: scaleY(-1); }
.band-sky { background: var(--sky-soft); }
.band-pink { background: var(--pink-soft); }
.band-sun { background: var(--sun-soft); }
.band-lime { background: var(--lime-soft); }
.tint-coral { background: #FFF1EE; border-color: #FFD3CA; }
.tint-sky { background: #EEF7FF; border-color: #C8E4FB; }
.tint-lime { background: #F1FAEA; border-color: #CFEBBD; }
.tint-violet { background: #F3F1FF; border-color: #D9D4FF; }
.tint-sun { background: #FFF8E3; border-color: #FBE3A6; }
.cta-band {
  background: linear-gradient(120deg, #5B4BE0, var(--violet) 40%, var(--pink)); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 60px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::after { content: "★"; position: absolute; right: -10px; top: -40px; font-size: 180px; color: rgba(255, 216, 77, .28); }
.cta-band p { color: #FFF0F6; margin: 0; }
.cta-band .btn { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 #D99000; }
.cta-band .btn:hover { box-shadow: 0 8px 0 #D99000; }
.cta-wrap { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.cta-band .call { color: #fff; font-weight: 800; text-align: center; text-decoration: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* testimonials */
.quote { font-size: 1.02rem; }
.quote .stars { color: var(--sun); letter-spacing: 2px; margin-bottom: 8px; }
.quote footer { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-top: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 900; }
.quote:nth-child(2) .avatar { background: var(--pink); } .quote:nth-child(3) .avatar { background: var(--teal); }
.quote footer small { display: block; font-weight: 600; color: var(--muted); }

/* page hero */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 12px; text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin-inline: auto; }

/* about */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 30px; background: linear-gradient(160deg, var(--sun-soft), var(--coral-soft));
  display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; border: 3px dashed #F3C7B9;
  max-width: 420px; width: 100%; justify-self: center;
}
.portrait [data-animal] { display: block; width: 150px; margin: 0 auto 10px; }
.values li { margin-bottom: 8px; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--coral); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* form */
.enroll-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .enroll-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font: 600 1.2rem var(--display); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
legend .num { width: 30px; height: 30px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: .95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; }
label .opt { font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 2px solid var(--line);
  border-radius: 14px; padding: 12px 14px; transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: #fff; outline: none; }
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; border: 2px solid var(--line); background: var(--cream);
  font-weight: 700; cursor: pointer; user-select: none;
}
.chips input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; text-align: center; }

.side-card { background: linear-gradient(150deg, var(--teal), var(--sky)); color: #fff; border: 0; }
.side-card h3 { color: #fff; }
.side-card .ticks li::before { background: rgba(255, 255, 255, .25); color: #fff; }
.side-card a { color: var(--sun); font-weight: 800; }
.side-card p { color: #EAF8FF; }
.side-card a { color: #fff; text-decoration: underline; }

.success { text-align: center; padding: 48px 28px; }
.success [data-animal] { display: block; width: 120px; margin: 0 auto 8px; }

/* footer */
#site-footer { position: relative; background: var(--violet-soft); border-top: 6px solid transparent; border-image: var(--rainbow) 1; margin-top: clamp(56px, 8vw, 96px); padding-top: 48px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 1rem; }
.foot p { font-size: .95rem; }
.foot a { text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--coral); }
.copy { border-top: 1px solid var(--line); padding: 18px 0 26px; margin-top: 18px; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 12px; } }

/* sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    background: var(--paper); padding: 8px; border-radius: 999px; box-shadow: 0 10px 30px rgba(35, 38, 74, .2);
  }
  .mobile-cta a { flex: 1; padding: 13px 10px; font-size: .95rem; }
  body.has-mobile-cta { padding-bottom: 84px; }
}

/* ---------- animal doodles ---------- */
main { overflow-x: clip; }
.section, .page-hero, .hero { position: relative; }
.doodle { position: absolute; z-index: 3; width: var(--s, 110px); pointer-events: none; }
[data-animal] svg { display: block; width: 100%; height: auto; overflow: visible; }
.doodle svg { animation: wobble 4.5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); transform-origin: 50% 100%; }
@keyframes wobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-3px); } }
.dd-fills * { stroke: none; }
.dd-fills .k { display: none; }
.dd-lines { filter: url(#sketch); }
.dd-lines * { fill: none !important; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dd-lines .k { fill: var(--ink) !important; stroke-width: 1.5; }
.dd-lines .nl { display: none; }
.dd-ghost { opacity: .3; }
.dd-ghost * { stroke-width: 1.6; }
.hero-art .perch { --s: 26%; top: 7%; right: 13%; z-index: 2; }
.side-card .doodle { --s: 84px; top: -66px; right: 22px; }
@media (max-width: 600px) {
  .doodle { width: calc(var(--s, 110px) * .62); }
  .hero-art .perch { width: 26%; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .doodle svg { animation: none; } }
@media (min-width: 901px) { .enroll-grid { padding-top: 50px; } }
@media (max-width: 900px) { .side-card { margin-top: 50px; } }
