:root {
  --bg: #fffaf2;
  --tint: #fff1dc;
  --ink: #2d2a4a;
  --muted: #6b6788;
  --red: #ff5d73;
  --orange: #ff7a59;
  --yellow: #ffc53d;
  --green: #3ec7a6;
  --blue: #4cb4ff;
  --purple: #7c5cff;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(45, 42, 74, .08);
  --font-head: 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.6em;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 #d9532f;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #d9532f; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #d9532f; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 0 #e6dccb; }
.btn--ghost:hover { box-shadow: 0 8px 0 #e6dccb; }
.btn--small { padding: .5em 1.2em; font-size: 1rem; box-shadow: 0 4px 0 #d9532f; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .9);
  backdrop-filter: blur(10px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(45, 42, 74, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__icon { width: 50px; height: 50px; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--purple); }
.logo__text small { display: block; font-size: .95rem; font-weight: 700; color: var(--orange); letter-spacing: .08em; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text small { color: var(--yellow); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
  text-decoration: none; position: relative;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: var(--yellow); border-radius: 4px;
  transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 28px; height: 3px; margin: 6px 0; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #d9f1ff 0%, #eaf7ff 60%, #fff6e6 100%);
  padding: 60px 0 120px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.badge {
  display: inline-block; padding: .35em 1em; margin-bottom: 1rem;
  background: #fff; border-radius: 999px; font-weight: 700; color: var(--orange);
  box-shadow: var(--shadow);
}
.hero__text p { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.rainbow-text {
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 2.2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.hero__stats li {
  background: #fff; border-radius: 18px; padding: .6rem 1.1rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
}
.hero__stats strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--purple); }
.hero__stats span { font-size: .85rem; color: var(--muted); }

.hero__svg { width: 100%; max-width: 520px; margin-inline: auto; }
.sun { transform-origin: 340px 70px; animation: spin 24s linear infinite; }
.balloon { animation: float 4s ease-in-out infinite; }
.balloon--2 { animation-delay: -2s; }

.hero__clouds .cloud {
  position: absolute; background: #fff; border-radius: 999px; opacity: .9;
  width: 140px; height: 44px; animation: drift 40s linear infinite;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 60px; height: 60px; top: -30px; left: 22px; }
.cloud::after { width: 46px; height: 46px; top: -20px; left: 70px; }
.cloud--1 { top: 60px; left: -160px; }
.cloud--2 { top: 180px; left: -160px; animation-duration: 55s; animation-delay: -20s; transform: scale(.7); }
.cloud--3 { top: 30px; left: -160px; animation-duration: 65s; animation-delay: -40s; transform: scale(.5); }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }
.wave--top { top: -1px; bottom: auto; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes drift { to { left: 110%; } }

/* ---------- sections ---------- */
.section { padding: 90px 0; position: relative; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: .6rem; padding: .25em .9em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--purple); background: #ece6ff; border-radius: 999px;
}
.eyebrow--light { background: rgba(255, 255, 255, .2); color: #fff; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow); text-align: center;
  border-bottom: 6px solid var(--c);
  transition: transform .2s;
}
.feature:hover { transform: translateY(-6px) rotate(-1deg); }
.feature__icon {
  width: 76px; height: 76px; margin: 0 auto 1rem; font-size: 2.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, #fff);
}
.feature p { color: var(--muted); margin: 0; }

/* classes */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.class-card {
  position: relative; background: #fff; border-radius: 32px; padding: 36px 30px 30px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s;
}
.class-card:hover { transform: translateY(-6px); }
.class-card::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, #fff);
}
.class-card__emoji { position: relative; font-size: 3.2rem; line-height: 1; margin-bottom: .6rem; }
.class-card__age {
  display: inline-block; padding: .2em .9em; margin-bottom: .6rem;
  border-radius: 999px; background: var(--c); color: #fff;
  font-family: var(--font-head); font-weight: 700;
}
.class-card p { color: var(--muted); }
.class-card ul { list-style: none; padding: 0; margin: 0; }
.class-card li { padding-left: 1.6em; position: relative; font-weight: 600; }
.class-card li::before { content: '★'; position: absolute; left: 0; color: var(--c); }

/* activities */
.activities { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.activity {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.4rem; background: #fff; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow); border: 3px solid color-mix(in srgb, var(--c) 45%, #fff);
  transition: transform .2s, background .2s;
}
.activity span { font-size: 1.6rem; }
.activity:hover { transform: scale(1.06) rotate(-2deg); background: color-mix(in srgb, var(--c) 15%, #fff); }

/* timeline */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.timeline li {
  background: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem;
}
.timeline time {
  align-self: flex-start; padding: .15em .8em; border-radius: 999px;
  background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.timeline h3 { margin: .2em 0; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .97rem; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  margin: 0; background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); position: relative;
}
.quote::before {
  content: '“'; position: absolute; top: -10px; left: 20px;
  font-family: var(--font-head); font-size: 6rem; line-height: 1; color: var(--c); opacity: .35;
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.08rem; position: relative; }
.quote figcaption { font-family: var(--font-head); font-weight: 700; color: var(--c); }
.quote figcaption span { color: var(--muted); font-weight: 500; }

/* faq */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 0 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: #fff; font-size: 1.4rem;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* signup */
.signup {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--purple), #a35cff 55%, var(--red));
  border-radius: 40px; padding: 56px; color: #fff;
  box-shadow: 0 20px 50px rgba(124, 92, 255, .3);
}
.signup__text p { opacity: .92; font-size: 1.1rem; }
.signup__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-weight: 700; }
.signup__form {
  background: #fff; color: var(--ink); border-radius: 28px; padding: 30px;
  display: grid; gap: 14px;
}
.signup__form label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
.signup__form .opt { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.signup__form input, .signup__form select, .signup__form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  padding: .7em 1em; border: 2px solid #ece7f7; border-radius: 14px; background: #fcfbff;
  transition: border-color .15s;
}
.signup__form input:focus, .signup__form select:focus, .signup__form textarea:focus {
  outline: none; border-color: var(--purple);
}
.signup__form .is-invalid { border-color: var(--red); }
.form-note { margin: 0; font-size: .92rem; text-align: center; min-height: 1.3em; }
.form-note.is-error { color: var(--red); }
.form-note.is-ok { color: var(--green); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.contact__cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: 20px; padding: 16px 20px;
  box-shadow: var(--shadow); text-decoration: none;
  border-left: 6px solid var(--c);
}
a.contact-card:hover { transform: translateX(4px); transition: transform .15s; }
.contact-card > span {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--c) 22%, #fff);
}
.contact-card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* footer */
.footer { position: relative; background: var(--ink); color: #d8d5ef; padding: 120px 0 24px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer__inner p { margin: .6rem 0 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__nav a { text-decoration: none; font-weight: 700; }
.footer__nav a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); text-decoration: none; font-size: 1.2rem;
}
.footer__social a:hover { background: var(--orange); }
.footer__copy { text-align: center; margin: 40px 0 0; font-size: .9rem; opacity: .7; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; text-decoration: none;
  background: #25d366; box-shadow: 0 8px 20px rgba(37, 211, 102, .45);
  animation: float 3s ease-in-out infinite;
}

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

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .signup { padding: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 16px 20px;
    background: var(--bg); box-shadow: 0 12px 20px rgba(45, 42, 74, .1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { width: 100%; padding: .8rem 0; border-bottom: 1px dashed #eadfcd; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }

  .hero { padding: 30px 0 100px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text p { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__art { order: -1; }
  .hero__svg { max-width: 340px; }

  .classes, .quotes { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; padding: 30px 20px; border-radius: 28px; }
  .contact { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .features, .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .signup__form { padding: 22px 18px; }
  .logo__icon { width: 42px; height: 42px; }
  .logo__text { font-size: 1.35rem; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
