:root {
  --ink: #17151f;
  --muted: #696574;
  --violet: #7449ea;
  --violet-dark: #5730c9;
  --yellow: #ffca3a;
  --coral: #ff6f7f;
  --mint: #4dceb1;
  --blue: #67a8ff;
  --paper: #ffffff;
  --wash: #f8f6ff;
  --line: #e8e4f1;
  --shadow: 0 18px 60px rgba(69, 48, 115, .12);
  color-scheme: light;
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
body, button, input, select { font: inherit; }
button, input, select { border: 0; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote, dl, dd { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
section { scroll-margin-top: 92px; }
[hidden] { display: none !important; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  display: grid;
  width: min(1240px, calc(100% - 32px));
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(116, 73, 234, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 42px rgba(62, 41, 103, .14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 950; }
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: #6e4a00;
  background: var(--yellow);
  box-shadow: inset 0 -3px 0 rgba(185, 124, 0, .18);
}
.site-header nav { display: flex; justify-content: center; gap: 30px; color: #4b4755; font-size: 14px; font-weight: 800; }
.site-header nav a:hover { color: var(--violet); }
.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 7px;
  color: #fff;
  background: var(--violet);
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 124px max(22px, calc((100vw - 1240px) / 2)) 110px;
  background: #fbfaff;
}
.hero::before, .hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}
.hero::before { width: 18px; height: 18px; top: 18%; left: 7%; background: var(--coral); }
.hero::after { width: 26px; height: 26px; right: 8%; bottom: 16%; background: var(--mint); }
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-kids-wide-v2.png");
  background-repeat: no-repeat;
  background-position: 58% center;
  background-size: cover;
}
.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251,250,255,.99) 0%, rgba(251,250,255,.96) 35%, rgba(251,250,255,.42) 58%, rgba(251,250,255,.02) 78%);
  content: "";
}
.hero-inner { position: relative; z-index: 2; width: min(1240px, 100%); margin: 0 auto; }
.hero-copy { width: min(625px, 54%); }
.eyebrow { margin-bottom: 13px; color: var(--violet); font-size: 13px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin-bottom: 22px; font-size: clamp(52px, 6vw, 94px); line-height: .93; font-weight: 950; }
.hero h1 span { color: var(--violet); }
.hero-lead { max-width: 560px; margin-bottom: 28px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
}
.button-primary { color: #fff; background: var(--violet); box-shadow: 0 12px 28px rgba(116, 73, 234, .24); }
.button-primary:hover { background: var(--violet-dark); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.9); }
.hero-stats { display: grid; max-width: 560px; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 42px 0 0; }
.hero-stats div { padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.hero-stats dt { font-size: 24px; font-weight: 950; }
.hero-stats dd { color: var(--muted); font-size: 12px; line-height: 1.3; }
.hero-note {
  position: absolute;
  z-index: 3;
  right: max(22px, calc((100vw - 1240px) / 2));
  bottom: 38px;
  display: flex;
  min-width: 280px;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 7px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.note-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-size: 22px; }
.hero-note span:last-child { display: grid; gap: 2px; }
.hero-note small { color: var(--muted); }

.section { padding: 100px max(22px, calc((100vw - 1240px) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading h2, .teacher-feature-copy h2, .quiz-intro h2 { margin-bottom: 14px; font-size: clamp(38px, 4.5vw, 68px); line-height: 1; font-weight: 950; }
.section-heading > p:last-child, .teacher-feature-copy > p, .quiz-intro > p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.ages-section { background: var(--paper); }
.segmented { display: flex; }
.age-filter { max-width: 850px; margin: 0 auto 30px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--wash); }
.age-filter button { flex: 1; min-height: 44px; padding: 8px 13px; border-radius: 6px; background: transparent; font-weight: 850; white-space: nowrap; }
.age-filter button.is-active { color: #fff; background: var(--violet); }
.age-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.age-card { overflow: hidden; border-radius: 8px; color: #231f2d; box-shadow: var(--shadow); transition: transform .2s ease; }
.age-card:hover { transform: translateY(-4px); }
.age-card img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.age-card:nth-child(1) img { object-position: 52% 45%; }
.age-card:nth-child(2) img { object-position: 68% 48%; }
.age-card:nth-child(3) img { object-position: 33% 48%; }
.age-card:nth-child(4) img { object-position: 72% 44%; }
.age-card > div { padding: 20px; }
.age-card h3 { min-height: 52px; margin-bottom: 14px; font-size: 23px; line-height: 1.1; }
.age-value { margin-bottom: 5px; font-size: 27px; font-weight: 950; }
.age-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.age-card li { padding: 5px 8px; border-radius: 5px; background: rgba(255,255,255,.66); font-size: 12px; font-weight: 800; }
.age-card button { width: 100%; min-height: 42px; border-radius: 6px; background: rgba(255,255,255,.88); font-weight: 900; }
.age-yellow { background: #ffd562; }
.age-coral { background: #ff8691; }
.age-mint { background: #72d9c1; }
.age-violet { color: var(--ink); background: #9a83ed; }

.schedule-section { background: #faf9fe; }
.schedule-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; margin-bottom: 16px; }
.schedule-filters label { display: grid; gap: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.schedule-filters span { color: var(--muted); font-size: 11px; font-weight: 800; }
.schedule-filters select { width: 100%; color: var(--ink); background: transparent; outline: 0; font-weight: 850; }
.reset-filter { padding: 0 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-weight: 900; }
.week-strip { display: grid; grid-template-columns: 1.5fr repeat(6, 1fr); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.week-strip button { display: grid; min-height: 66px; place-content: center; gap: 3px; border-right: 1px solid var(--line); background: #fff; font-weight: 900; }
.week-strip button:last-child { border-right: 0; }
.week-strip small { color: var(--muted); font-size: 10px; }
.week-strip button.is-active { color: #fff; background: var(--violet); }
.week-strip button.is-active small { color: rgba(255,255,255,.78); }
.schedule-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.schedule-row { display: grid; grid-template-columns: 90px minmax(180px, 1.4fr) minmax(180px, 1fr) 110px 110px; align-items: center; gap: 15px; min-height: 94px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row[hidden] { display: none; }
.schedule-row time { font-size: 26px; font-weight: 950; }
.class-info { display: grid; gap: 3px; }
.class-info span { color: var(--muted); font-size: 12px; }
.class-info strong { font-size: 17px; }
.teacher-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; }
.teacher-chip span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--violet); background: #eee9ff; font-size: 11px; }
.spots { padding: 8px 10px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 900; }
.spots-good { color: #16724e; background: #dff7eb; }
.spots-warn { color: #9b5a00; background: #fff0c9; }
.spots-low { color: #b13545; background: #ffe0e5; }
.schedule-row > button { min-height: 40px; border-radius: 6px; color: #fff; background: var(--violet); font-weight: 900; }
.empty-state { padding: 28px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); text-align: center; }
.schedule-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.schedule-benefits span { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); text-align: center; }
.schedule-benefits strong { color: var(--violet); }

.teachers-section { background: #fff; }
.teacher-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 8px; background: #eaf8f1; }
.teacher-feature > img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: 50% 45%; }
.teacher-feature-copy { display: grid; align-content: center; padding: clamp(30px, 5vw, 76px); }
.teacher-metrics { display: flex; gap: 12px; margin-top: 18px; }
.teacher-metrics span { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid rgba(23,21,31,.08); border-radius: 7px; background: rgba(255,255,255,.68); color: var(--muted); font-size: 12px; }
.teacher-metrics strong { color: var(--ink); font-size: 20px; }
.teacher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.teacher-grid article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
.teacher-grid h3 { margin-bottom: 4px; font-size: 15px; }
.teacher-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.teacher-grid > article > strong { color: #ef9e00; }
.avatar { width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: 50% 24%; box-shadow: 0 5px 16px rgba(41, 31, 76, .14); }

.stories-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 34px; background: #f8f6ff; }
.stories-copy { display: grid; align-content: center; }
.review-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.review-tabs button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 850; }
.review-tabs button.is-active { color: #fff; background: var(--violet); }
blockquote { margin-bottom: 14px; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.45; font-weight: 850; }
.review-author { color: var(--muted); }
.progress-note { display: grid; gap: 8px; margin-top: 28px; padding: 18px; border-left: 5px solid var(--mint); background: #fff; }
.progress-note span { color: var(--violet); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.space-gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr .72fr; gap: 10px; }
.space-gallery figure { position: relative; overflow: hidden; min-height: 240px; margin: 0; border-radius: 8px; }
.space-gallery .gallery-main { grid-row: span 2; }
.space-gallery img { width: 100%; height: 100%; object-fit: cover; }
.space-gallery figure:nth-child(2) img { object-position: 56% 45%; }
.space-gallery figure:nth-child(3) img { object-position: 65% 48%; }
.space-gallery figcaption { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.9); font-weight: 900; }

.quiz-section { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(30px, 6vw, 90px); align-items: center; background: #fff; }
.quiz-intro ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.quiz-intro li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--wash); font-weight: 850; }
.quiz-intro li::before { margin-right: 9px; color: var(--mint); content: "✓"; }
.quiz-card { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 8px; background: #fcfbff; box-shadow: var(--shadow); }
.quiz-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--violet); font-size: 12px; font-weight: 900; }
.quiz-progress > div { overflow: hidden; height: 7px; border-radius: 99px; background: #e8e2fb; }
.quiz-progress i { display: block; width: 25%; height: 100%; background: var(--violet); transition: width .2s ease; }
.quiz-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step.is-active { display: block; }
.quiz-step legend { margin-bottom: 22px; font-size: clamp(25px, 3vw, 38px); line-height: 1.1; font-weight: 950; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-list { display: grid; gap: 9px; }
.option-grid label, .option-list label { position: relative; }
.option-grid input, .option-list input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-grid label > span, .option-list label > span { display: grid; min-height: 82px; align-content: center; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-weight: 900; }
.option-list label > span { min-height: 58px; grid-template-columns: 1fr auto; align-items: center; }
.option-grid small, .option-list small { color: var(--muted); font-size: 11px; font-weight: 700; }
.option-grid input:checked + span, .option-list input:checked + span { border-color: var(--violet); box-shadow: inset 0 0 0 2px var(--violet); }
.option-grid input:focus-visible + span, .option-list input:focus-visible + span { outline: 3px solid rgba(116,73,234,.25); outline-offset: 3px; }
.quiz-result { padding: 15px; border-left: 4px solid var(--yellow); background: #fff9df; line-height: 1.5; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.contact-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 850; }
.contact-grid input { min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; outline: 0; }
.consent { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.consent input { width: 17px; height: 17px; accent-color: var(--violet); }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz-actions button { min-width: 128px; }
.quiz-actions button:disabled { opacity: .45; cursor: not-allowed; }
.form-status { min-height: 22px; margin: 14px 0 0; color: var(--violet); font-weight: 850; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px max(22px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); text-align: center; }
footer > a:last-child { color: var(--violet); font-weight: 900; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(116,73,234,.28); outline-offset: 3px; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .header-cta { grid-column: 2; grid-row: 1; justify-self: end; }
  .hero { padding-top: 162px; }
  .hero-copy { width: 64%; }
  .age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reset-filter { min-height: 54px; }
  .schedule-row { grid-template-columns: 72px 1.3fr 1fr 95px; }
  .schedule-row > button { grid-column: 2 / -1; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-section, .quiz-section { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  section { scroll-margin-top: 134px; }
  .site-header { top: 8px; width: calc(100% - 16px); gap: 8px; padding: 8px 10px; }
  .site-header nav { gap: 16px; font-size: 12px; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .header-cta { min-height: 38px; padding: 8px 10px; font-size: 11px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { min-height: 860px; align-items: start; padding: 154px 16px 120px; }
  .hero::before, .hero::after { display: none; }
  .hero-media { inset: auto 0 0; height: 49%; background-image: url("assets/hero-kids-mobile-v2.png"); background-position: center; background-size: cover; }
  .hero-media::after { background: linear-gradient(180deg, #fbfaff 0%, rgba(251,250,255,.9) 10%, rgba(251,250,255,.05) 58%); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 50px; }
  .hero-lead { font-size: 16px; }
  .hero-stats { gap: 6px; margin-top: 26px; }
  .hero-stats div { min-width: 0; padding: 11px 6px; }
  .hero-stats dt { font-size: 20px; }
  .hero-stats dd { font-size: 9px; line-height: 1.25; }
  .hero-note { right: 16px; bottom: 16px; left: 16px; min-width: 0; }
  .section { padding: 72px 16px; }
  .section-heading h2, .teacher-feature-copy h2, .quiz-intro h2 { font-size: 39px; }
  .age-filter { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .age-filter button { flex: 0 0 auto; }
  .age-grid { grid-template-columns: 1fr; }
  .age-card { display: grid; grid-template-columns: 1fr; }
  .age-card img { height: auto; aspect-ratio: 4 / 3; object-position: center 34%; }
  .age-card h3 { min-height: 0; font-size: 20px; }
  .age-value { font-size: 23px; }
  .schedule-filters { grid-template-columns: 1fr; }
  .week-strip { grid-template-columns: repeat(7, minmax(70px, 1fr)); overflow-x: auto; }
  .schedule-row { grid-template-columns: 65px 1fr auto; gap: 10px; padding: 15px 12px; }
  .teacher-chip { grid-column: 2; }
  .spots { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
  .schedule-row > button { grid-column: 1 / -1; }
  .schedule-benefits { grid-template-columns: 1fr; }
  .teacher-feature { grid-template-columns: 1fr; }
  .teacher-feature > img { min-height: 350px; }
  .teacher-feature-copy { padding: 28px 22px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .stories-section { gap: 26px; }
  .space-gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .space-gallery .gallery-main { grid-row: auto; }
  .space-gallery figure { min-height: 250px; }
  .option-grid, .contact-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 20px 16px; }
  .quiz-actions .button { min-width: 0; padding: 11px 14px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand { justify-content: center; }
}
