@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-800.ttf") format("truetype"); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  --navy: #0d2a5f;
  --green: #0e9667;
  --blue: #2488e8;
  --pink: #f45176;
  --yellow: #ffbd2e;
  --orange: #f37822;
  --purple: #7f68d8;
  --cream: #fffaf0;
  --paper: #ffffff;
  --ink-soft: #49607b;
  --line: #e8e1d5;
  --shadow: 0 22px 60px rgba(13, 42, 95, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font: 700 25px/1 "Fredoka", sans-serif;
  text-decoration: none;
}
.brand i, .brand b, .brand em { font-style: normal; font-weight: 700; }
.brand i { color: var(--green); }
.brand b { color: var(--blue); }
.brand em { color: var(--pink); }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--navy);
}
.header-cta, .signup-form button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.header-cta { padding: 11px 21px; }
.header-cta:hover, .signup-form button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(13, 42, 95, 0.15); }
.header-cta:focus-visible, .signup-form button:focus-visible, input:focus-visible, .preview-page:focus-visible { outline: 4px solid rgba(36, 136, 232, 0.3); outline-offset: 3px; }

.hero {
  min-height: 720px;
  padding: 58px 0 92px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 72px;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--yellow); }
h1, h2, h3 { margin-top: 0; font-family: "Fredoka", sans-serif; line-height: 1.06; }
h1 { max-width: 650px; margin-bottom: 22px; font-size: clamp(54px, 6vw, 82px); letter-spacing: -0.035em; }
h1 span { color: var(--pink); }
.hero-lede { max-width: 650px; margin: 0 0 30px; color: var(--ink-soft); font-size: 21px; line-height: 1.55; }
.signup-form { max-width: 650px; }
.signup-form label { display: block; margin-bottom: 9px; font-weight: 800; }
.form-row { display: flex; gap: 10px; }
.signup-form input[type="email"] {
  min-width: 0;
  flex: 1;
  border: 2px solid #d9d3c9;
  border-radius: 999px;
  padding: 15px 20px;
  color: var(--navy);
  background: white;
  box-shadow: 0 6px 20px rgba(13, 42, 95, 0.06);
}
.signup-form button { padding: 15px 24px; white-space: nowrap; }
.signup-form button[disabled] { cursor: wait; opacity: 0.7; }
.form-note, .form-status { margin: 8px 0 0 8px; font-size: 13px; }
.form-note { color: #78869a; }
.form-status { min-height: 21px; color: var(--green); font-weight: 800; }
.form-status.is-error { color: #bf3454; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.quick-facts { display: flex; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.quick-facts li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; color: var(--ink-soft); background: rgba(255,255,255,0.65); font-size: 14px; }
.quick-facts strong { color: var(--navy); }

.hero-art { position: relative; min-height: 590px; }
.page-stack { position: absolute; inset: 20px 55px 30px 25px; }
.page { position: absolute; width: min(380px, 80%); border: 7px solid white; border-radius: 10px; box-shadow: var(--shadow); }
.page-back { top: 10px; right: -24px; transform: rotate(7deg); }
.page-front { left: 0; bottom: 0; transform: rotate(-4deg); }
.art-caption {
  position: absolute;
  right: 4px;
  bottom: 22px;
  margin: 0;
  padding: 11px 18px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: white;
  font-weight: 900;
  box-shadow: 4px 5px 0 var(--navy);
  transform: rotate(2deg);
}
.doodle { position: absolute; z-index: 2; font: 700 45px/1 "Fredoka", sans-serif; }
.doodle-star { top: 0; right: 55px; color: var(--yellow); transform: rotate(17deg); }
.doodle-heart { left: 0; bottom: 90px; color: var(--pink); transform: rotate(-15deg); }

.promise-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 88px;
  padding: 20px;
  color: white;
  background: var(--navy);
  font: 600 clamp(20px, 3vw, 29px)/1 "Fredoka", sans-serif;
}
.promise-strip p { margin: 0; }
.promise-strip span { color: var(--yellow); }

.lesson { padding: 110px 0; }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .why h2, .join h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.025em; }
.section-heading h2 span { color: var(--pink); }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 20px; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 45px; }
.lesson-card { display: flex; gap: 20px; min-height: 210px; padding: 30px; border: 2px solid; border-radius: 27px; background: white; }
.parent-card { border-color: #a9d4fb; background: #f5fbff; }
.kid-card { border-color: #fed4dc; background: #fff7f8; }
.card-number { display: grid; flex: 0 0 auto; width: 52px; height: 52px; place-items: center; border-radius: 17px; color: white; background: var(--blue); font: 700 27px/1 "Fredoka", sans-serif; transform: rotate(-4deg); }
.kid-card .card-number { background: var(--pink); transform: rotate(4deg); }
.card-label { margin: 0 0 6px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.lesson-card h3 { margin-bottom: 10px; font-size: 27px; }
.lesson-card p:last-child { margin: 0; color: var(--ink-soft); }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.preview-page { overflow: hidden; border: 2px solid var(--line); border-radius: 26px; background: white; box-shadow: 0 16px 50px rgba(13,42,95,0.09); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.preview-page:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.preview-page > span { display: flex; justify-content: space-between; padding: 17px 20px; font-weight: 900; }
.preview-page b { color: var(--blue); font-size: 14px; }
.preview-page img { width: 100%; border-top: 1px solid var(--line); }

.why { padding: 0 0 110px; }
.why-card {
  position: relative;
  overflow: hidden;
  padding: 70px clamp(30px, 7vw, 90px);
  border: 2px solid #a9e1ca;
  border-radius: 38px;
  background: #ecfbf4;
}
.why-card::after { content: "$"; position: absolute; right: 7%; bottom: -22px; color: rgba(14,150,103,0.09); font: 700 210px/1 "Fredoka", sans-serif; transform: rotate(10deg); }
.why-card h2 { max-width: 770px; }
.why-card > p:not(.eyebrow) { max-width: 760px; color: var(--ink-soft); font-size: 20px; }
.values { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.values span { padding: 10px 15px; border: 1px solid #baddcc; border-radius: 999px; background: white; font-weight: 800; }
.values b { margin-right: 5px; }

.join { padding: 100px 20px; color: white; background: var(--blue); text-align: center; }
.join-inner { position: relative; max-width: 760px; margin: auto; }
.join .eyebrow { color: white; }
.join > * { position: relative; }
.join h2 { margin-bottom: 10px; }
.join-inner > p:not(.eyebrow) { margin: 0 0 26px; font-size: 20px; }
.join-coin { position: absolute; top: -45px; right: 0; color: var(--navy); background: var(--yellow); display: grid; width: 72px; height: 72px; place-items: center; border: 4px solid white; border-radius: 50%; font: 700 38px/1 "Fredoka", sans-serif; transform: rotate(12deg); box-shadow: 6px 7px 0 rgba(13,42,95,0.25); }
.signup-form-light { margin: auto; }
.signup-form-light input[type="email"] { border-color: white; }
.signup-form-light button { color: var(--navy); background: var(--yellow); }
.signup-form-light .form-note { color: rgba(255,255,255,0.8); }
.signup-form-light .form-status { color: white; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 36px max(20px, calc((100% - 1180px) / 2)); background: white; color: var(--ink-soft); font-size: 14px; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
footer p a { font-weight: 800; text-underline-offset: 3px; }
.brand-small { color: var(--navy); font-size: 18px; }
.brand-small .brand-mark { width: 34px; height: 34px; border-width: 2px; box-shadow: 2px 3px 0 var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.legal-main { width: min(760px, calc(100% - 40px)); min-height: calc(100vh - 180px); margin: 30px auto 90px; padding: 55px clamp(24px, 6vw, 64px); border: 2px solid var(--line); border-radius: 30px; background: white; box-shadow: 0 16px 50px rgba(13,42,95,0.08); }
.legal-main h1 { margin-bottom: 10px; font-size: clamp(43px, 7vw, 64px); }
.legal-main h2 { margin: 38px 0 8px; font-size: 27px; }
.legal-main p, .legal-main li { color: var(--ink-soft); }
.legal-main a { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
.legal-date { margin-top: 0; font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 25px; color: var(--green) !important; text-decoration: none; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-top: 35px; }
  .hero-art { min-height: 620px; }
  .page-stack { inset-inline: 10%; }
  .page { width: 65%; }
  .lesson-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p:last-child { text-align: center; }
  .brand-small { justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section-shell, .site-header { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-width: 2px; box-shadow: 2px 3px 0 var(--navy); }
  .header-cta { padding: 9px 14px; font-size: 13px; }
  .hero { padding: 42px 0 70px; }
  h1 { font-size: 51px; }
  .hero-lede { font-size: 18px; }
  .form-row { flex-direction: column; }
  .signup-form button { width: 100%; }
  .quick-facts { flex-wrap: wrap; }
  .hero-art { min-height: 460px; }
  .page-stack { inset: 20px 4% 30px; }
  .page { width: 70%; border-width: 5px; }
  .art-caption { right: 0; bottom: 0; font-size: 14px; }
  .promise-strip { flex-wrap: wrap; gap: 12px; font-size: 18px; }
  .lesson { padding: 78px 0; }
  .lesson-card { padding: 23px; }
  .preview-grid { grid-template-columns: 1fr; }
  .why { padding-bottom: 75px; }
  .why-card { padding: 45px 25px; border-radius: 27px; }
  .values { align-items: stretch; flex-direction: column; }
  .join { padding: 75px 14px; }
  .join-coin { display: none; }
  .legal-main { width: min(100% - 28px, 760px); margin-top: 15px; padding: 38px 22px; }
}

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