:root {
  --paper: #fff9ed;
  --ink: #253d63;
  --muted: #596d81;
  --line: #f0dfc7;
  --coral: #ef705b;
  --lime: #a8dc9b;
  --white: #fff;
  --sky: #91d7e5;
  --sunshine: #ffd45f;
  --mint: #c8efd3;
  --pink: #ffd2cf;
  --serif: "Trebuchet MS", "Noto Sans SC", system-ui, sans-serif;
  --sans: "Trebuchet MS", "Noto Sans SC", system-ui, sans-serif;
}
body { background: var(--paper); color: var(--ink); }
.top { position: relative; z-index: 3; min-height: 74px; height: auto; padding-top: 12px; padding-bottom: 12px; background: #fffef9; border-bottom: 2px solid #f4e6d2; }
.brand { font-size: 16px; }
.brand-mark { width: 42px; height: 42px; color: #253d63; background: var(--sunshine); border: 3px solid #253d63; box-shadow: 0 4px 0 #ef705b; font-weight: 900; }
.brand small { color: #e56e56; font-weight: 800; }
.top nav { gap: 12px; align-items: center; }
.top nav a { padding: 10px 13px; color: #354d6d; font-weight: 800; border-radius: 999px; }
.top nav a:hover { background: #fff0b9; color: #b34e42; }
.languages a { border-radius: 999px; font-weight: 800; }
.languages a[aria-current="page"] { background: #d9f2df; color: #234b47; }
.hero { min-height: 600px; padding-top: 72px; padding-bottom: 74px; background: radial-gradient(ellipse at 78% 42%, #fff0b7 0 22%, transparent 22.5%), linear-gradient(120deg,#e7f8f4 0%,#fff8df 52%,#ffe3dc 100%); border-bottom: 0; }
.hero::before,.hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 170px; height: 170px; left: -70px; top: 40px; background: #ffb8ad; opacity: .42; }
.hero::after { width: 58px; height: 58px; left: 48%; top: 13%; background: #a9def0; }
.hero-copy { max-width: 620px; }
.eyebrow { display: inline-flex; flex-wrap: wrap; padding: 9px 15px; background: #fff; border: 2px solid #ffe095; border-radius: 999px; color: #38536e; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.dot { width: 10px; height: 10px; background: var(--coral); box-shadow: 0 0 0 4px #ffe1d9; }
.hero h1,.content-hero h1 { font-family: var(--sans); font-weight: 900; letter-spacing: -.045em; }
.hero h1 { max-width: 640px; font-size: clamp(3rem,6vw,5.8rem); line-height: 1.14; margin-top: 27px; color: #233d63; }
.hero h1 em { color: #e66554; }
.hero-copy>p { max-width: 480px; color: #536b7c; font-size: 17px; }
.button { border-radius: 999px; min-height: 54px; padding: 0 23px; font-size: 14px; font-weight: 800; box-shadow: 0 5px 0 #1e3150; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #1e3150; }
.button.dark { background: #273f68; color: #fff; }
.button.light { background: #ffcf58; color: #263d63; box-shadow: 0 5px 0 #d79331; }
.button.outline { border: 2px solid #a7c7c0; background: #fff; }
.hero-secondary { display: inline-flex; align-items: center; margin-left: 18px; color: #375879; font-size: 14px; font-weight: 800; }
.hero-art { height: 430px; }
.sun { width: 300px; height: 300px; top: 21px; right: 6%; background: #ffda6d; border: 7px solid #fff; box-shadow: 0 9px 0 #f3b945; }
.book { border: 5px solid #fff; border-radius: 20px 28px 28px 20px; }
.book-back { background: #ef7967; }
.book-front { border-left-width: 12px; background: #a9e1e8; color: #253d63; font-weight: 900; }
.book-front:after { border: 2px dashed #5d9ca6; }
.orbit { z-index: 2; color: #e86c58; }
.hero-mascot { position: absolute; z-index: 2; right: 4%; bottom: 2px; width: 160px; display: grid; justify-items: center; animation: buddy-bob 3s ease-in-out infinite; }
.hero-mascot svg { width: 154px; filter: drop-shadow(0 9px 0 #263d6320); }
.mascot-name { margin-top: -7px; padding: 5px 11px; background: #fff; border: 2px solid #253d63; border-radius: 999px; color: #253d63; font-size: 11px; font-weight: 900; }
@keyframes buddy-bob { 50% { transform: translateY(-8px) rotate(2deg); } }
.art-caption { right: 1%; bottom: -7px; padding: 7px 12px; background: #fff; border-radius: 999px; color: #536b7c; font-weight: 800; }
.hero-foot { bottom: 21px; color: #546b7e; font-weight: 800; }
.line { background: #b7d3c8; }
.section { padding-top: 84px; padding-bottom: 84px; }
.section-head h2,.about-section h2 { color: #263f66; font-family: var(--sans); font-weight: 900; letter-spacing: -.035em; }
.kicker { color: #db6655; font-weight: 900; }
.grade-grid { gap: 22px; }
.grade-card { height: 260px; border: 4px solid #fff; border-radius: 30px; box-shadow: 0 9px 0 #253d631b; transition: transform .2s, box-shadow .2s; }
.grade-card:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 14px 0 #253d6323; }
.grade-1 { background: #c9f0d5; }
.grade-2 { background: #ffe0a0; }
.grade-number { color: #263e63; font-family: var(--sans); font-style: normal; font-weight: 900; }
.grade-illustration { right: 12%; top: 21px; width: 115px; height: 115px; }
.grade-illustration svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 0 #253d631c); }
.grade-note { top: 31px; right: 30px; padding: 7px 11px; background: #fff9; border-radius: 999px; color: #344d6c; font-weight: 800; }
.grade-meta { font-size: 16px; }
.grade-sticker { position: absolute; right: 27px; bottom: 63px; font-size: 26px; transform: rotate(9deg); }
.unit-feature-card { display: flex; align-items: center; gap: 19px; margin-top: 28px; padding: 20px 25px; border: 3px solid #fff; border-radius: 25px; background: linear-gradient(105deg,#daf4f6,#ffe8bd,#ffdcda); box-shadow: 0 7px 0 #253d631b; transition: transform .15s; }
.unit-feature-card:hover { transform: translateY(-3px); }
.unit-feature-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 20px; background: #fff; font-size: 31px; }
.unit-feature-card>span:nth-child(2) { display: grid; gap: 5px; }
.unit-feature-card small { color: #df6855; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.unit-feature-card b { color: #253d63; font-size: 17px; }
.unit-feature-card em { color: #546a7c; font-size: 12px; font-style: normal; font-weight: 700; }
.unit-feature-art { margin-left: auto; font-size: 42px; }
.subject-section { background: #e8f8f3; border-top: 1px solid #d5efe5; border-bottom: 1px solid #d5efe5; }
.subject-grid { gap: 14px; }
.subject-card { min-height: 94px; border: 2px solid #fff; border-radius: 20px; box-shadow: 0 4px 0 #24405e12; }
.subject-card.featured { border-left: 6px solid #ef705b; }
.subject-icon { width: 48px; height: 48px; border: 2px solid #fff; background: #ffe9a7; color: #294467; font-weight: 900; }
.feature-band { background: #273f68; border-radius: 38px; margin: 46px clamp(1rem,5vw,5rem); padding: 64px clamp(1.5rem,8vw,8rem); }
.feature-band .kicker { color: #ffdb72; }
.feature-band h2 { font-family: var(--sans); font-weight: 900; }
.feature-stamp { background: #ef7661; border: 4px solid #fff; color: #fff9e8; font-size: 13px; font-weight: 900; }
.about-section { background: #fff6df; border-radius: 34px; margin: 0 clamp(1rem,5vw,5rem) 64px; }
.about-icon { background: #ffd465; border: 3px solid #fff; color: #263f66; font-weight: 900; }
.about-points { color: #64788a; }
.about-points b { color: #263f66; }
footer { background: #253d63; color: white; }
.footer-brand,.footer-brand span { color: #fff; }
footer a { color: #ffdf79; font-weight: 700; }
.fine { border-color: #526989; color: #d5e1e6; }
.content-hero { background: linear-gradient(125deg,#dff6f3,#fff2c8 54%,#ffded7); border-bottom: 5px solid #fff; }
.content-hero h1 { color: #263f66; }
.content-hero>p:not(.kicker) { color: #536b7c; font-size: 16px; }
.resource-section { background: #f1f8ed; }
.resource-card { min-height: 210px; border: 2px solid #fff; border-radius: 23px; box-shadow: 0 5px 0 #253d6316; }
.resource-card h3 { color: #263f66; font-family: var(--sans); font-weight: 900; }
.membership-hero,.account-page { border-radius: 0 0 40px 40px; background: linear-gradient(125deg,#dff6f3,#fff2c8 54%,#ffded7); }
.membership-trial-badge { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: #ffdc71; color: #243d63; font-weight: 900; }
.membership-plan { border: 3px solid #fff; border-radius: 26px; box-shadow: 0 8px 0 #253d631a; }
.membership-plan.plan-featured { background: #e0f5e4; }
.account-form input { border: 2px solid #d5e5df; border-radius: 16px; }
.member-content-gate { border: 3px solid #fff; border-radius: 28px; background: linear-gradient(145deg,#fff1be,#ffe0db); box-shadow: 0 9px 0 #253d6316; }
.member-gate-icon { color: #e76e59; }
.consent { border: 3px solid #fff; border-radius: 20px; background: #273f68; }
.consent button { border-radius: 999px; font-weight: 800; }
.unit-hero { border-bottom: 6px solid #fff; }
.unit-lesson { border-width: 3px; border-color: #fff; border-radius: 25px; box-shadow: 0 7px 0 #cadfcd; }
.unit-lesson[open] { border-color: #ffc84f; box-shadow: 0 8px 0 #f6dc93,0 12px 24px #304b2b12; }
.unit-start { border-radius: 999px; background: #ef705b; box-shadow: 0 6px 0 #c85345; }
.unit-quiz { border-radius: 28px; background: #e4f5e6; border: 3px solid #fff; }
.unit-option { border-radius: 18px; }
.unit-parent>details,.parent-tip { border: 2px solid #fff; border-radius: 25px; }
@media (max-width: 900px) {
  .top { gap: 10px; }
  .top nav { display: flex; order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .top nav a { flex: none; white-space: nowrap; }
  .languages { margin-left: auto; }
  .hero { min-height: 690px; }
  .hero-art { height: 360px; }
  .hero-mascot { right: 4%; width: 125px; }
  .hero-mascot svg { width: 125px; }
}
@media (max-width: 600px) {
  .top { padding: 9px 13px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 36px; height: 36px; }
  .top nav { display: flex; gap: 4px; }
  .top nav a { padding: 8px 10px; font-size: 12px; }
  .hero { min-height: 710px; padding: 49px 19px 67px; }
  .hero h1 { font-size: clamp(2.8rem,12vw,4rem); }
  .hero-secondary { margin: 15px 0 0 3px; }
  .hero-art { height: 285px; margin-top: 17px; }
  .sun { width: 215px; height: 215px; right: 13%; top: 20px; }
  .book { width: 155px; height: 203px; }
  .book-back { right: 20%; top: 48px; }
  .book-front { right: 34%; top: 53px; }
  .hero-mascot { right: 0; bottom: -4px; width: 95px; }
  .hero-mascot svg { width: 98px; }
  .mascot-name { font-size: 9px; }
  .art-caption { right: 0; bottom: -17px; font-size: 8px; }
  .section { padding: 55px 17px; }
  .grade-card { height: 205px; border-radius: 25px; }
  .grade-illustration { width: 95px; height: 95px; }
  .grade-note { max-width: 150px; font-size: 10px; }
  .unit-feature-card { gap: 11px; padding: 15px; border-radius: 20px; }
  .unit-feature-card b { font-size: 14px; }
  .unit-feature-card em { font-size: 11px; }
  .unit-feature-art { font-size: 30px; }
  .feature-band { margin: 22px 10px; padding: 37px 22px; border-radius: 25px; }
  .about-section { margin: 0 10px 35px; border-radius: 25px; }
  .resource-card { min-height: 175px; }
  .unit-hero { padding-left: 16px; padding-right: 16px; }
  .unit-mascot { opacity: .35; }
  .unit-page { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
