@font-face {
  font-family: Outfit;
  src: url('/fonts/outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/nunito-sans.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #faf9fe;
  color: #29283e;
  font:
    18px/1.65 ui-rounded,
    'Nunito Sans',
    system-ui,
    sans-serif;
}
a {
  color: #5844ba;
  text-underline-offset: 4px;
}
a:hover {
  color: #352580;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #a089ef;
  outline-offset: 5px;
}
.site-nav,
main,
.site-footer {
  max-width: 1200px;
  margin: auto;
  padding-inline: 32px;
}
.site-nav {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  font-family: Outfit, system-ui, sans-serif;
  letter-spacing: -1.4px;
  font-size: 30px;
  font-weight: 800;
  color: #403185;
  text-decoration: none;
}
.site-nav nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav nav > a {
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 18px;
  background: #6250bd;
  color: white;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 0 #47358c;
}
.button:hover {
  background: #51409f;
  color: white;
  transform: translateY(-1px);
}
.button.secondary {
  background: white;
  color: #5844ba;
  box-shadow: none;
  border: 1px solid #d9d1f2;
}
.button.small {
  min-height: 46px;
  padding: 8px 20px;
  border-radius: 15px;
}
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 72px;
  padding-block: 70px 90px;
}
.eyebrow {
  display: block;
  color: #736499;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 2px;
  margin-block: 0 20px;
}
h1,
h2,
h3 {
  font-family: Outfit, ui-rounded, system-ui, sans-serif;
  line-height: 1.13;
  letter-spacing: -1.6px;
}
h1 {
  font-size: clamp(40px, 5.5vw, 70px);
  margin: 0 0 26px;
}
h1 em {
  font-style: normal;
  color: #7760c4;
}
h2 {
  font-size: 34px;
  margin: 0 0 20px;
}
h3 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 18px 0 14px;
}
p {
  margin: 0 0 22px;
  color: #646079;
}
.hero p {
  font-size: 21px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 22px;
}
.fine,
.hero .fine {
  font-size: 13px;
  color: #78718b;
  line-height: 1.6;
}
.hero-picture {
  position: relative;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 60px 52px;
  background: #e9e4f6;
  border-radius: 42% 48% 36% 44%;
  min-height: 405px;
  transform: rotate(3deg);
}
.fraction-grid {
  width: 224px;
  height: 224px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  transform: rotate(-3deg);
  padding: 10px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 14px 34px #71629125;
}
.fraction-grid i {
  background: #9c86d7;
  border-radius: 8px;
}
.fraction-grid .empty {
  background: #f4f0fb;
  border: 2px dashed #b9a9dc;
}
.picture-note {
  font-size: 14px;
  background: #fff9e9;
  padding: 9px 18px;
  border-radius: 12px;
  box-shadow: 0 5px 15px #71629118;
  transform: rotate(-7deg);
  position: absolute;
  top: 4px;
  left: 4px;
}
.picture-note.bottom {
  top: auto;
  bottom: 8px;
  left: auto;
  right: -2px;
  transform: rotate(2deg);
  background: #e0f1e8;
}
.equation {
  font-size: 35px;
  font-weight: 750;
  color: #5d459c;
  transform: rotate(-3deg);
}
section {
  padding-block: 45px;
}
.section-intro {
  max-width: 720px;
}
.grade-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.grade-pill {
  border: 1px solid #d8d1ed;
  min-height: 48px;
  padding: 9px 20px;
  border-radius: 99px;
  text-decoration: none;
  background: white;
  font-size: 15px;
  font-weight: 700;
}
.grade-pill:hover {
  background: #ece6f8;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.lesson-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e1dcef;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 14px #43355d03;
  min-width: 0;
}
.lesson-card:nth-child(3n + 2) {
  background: #f4f9f5;
}
.lesson-card:nth-child(3n) {
  background: #fffaf0;
}
.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 800;
  color: #7b718e;
}
.lesson-card h3 a {
  text-decoration: none;
  color: #302941;
}
.lesson-card p {
  font-size: 16px;
  margin-bottom: 24px;
}
.card-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12px;
  color: #797086;
  align-items: center;
}
.card-foot a {
  font-weight: 750;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.text-link {
  font-weight: 700;
}
.three-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  border-block: 1px solid #e5deef;
  margin-block: 35px 70px;
}
.three-steps span {
  font-size: 13px;
  font-weight: 800;
  color: #a08acb;
}
.three-steps h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin-top: 18px;
}
.three-steps p {
  font-size: 16px;
}
.page-intro {
  max-width: 900px;
  padding-block: 65px 30px;
}
.page-intro nav {
  font-size: 14px;
  margin-bottom: 30px;
  color: #877e94;
}
.page-intro h1 {
  font-size: clamp(36px, 4.5vw, 58px);
}
.page-intro > .button {
  margin: 8px 0 24px;
}
.teaching {
  max-width: 820px;
  padding-top: 24px;
  font-size: 19px;
}
.teaching h2 {
  font-size: 29px;
  margin-top: 48px;
}
.teaching h2:first-child {
  margin-top: 0;
}
.teaching ol {
  padding-left: 28px;
}
.teaching li {
  padding: 10px 0 12px 12px;
}
.teaching li::marker {
  font-weight: 800;
  color: #8770c2;
}
.callout {
  padding: 30px;
  border-radius: 24px;
  background: #eee9f8;
  margin: 30px 0;
}
.callout h2 {
  margin-top: 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 25px;
  border-top: 1px solid #e2dced;
  padding-block: 40px;
}
.site-footer nav {
  justify-content: flex-end;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 18px;
}
.site-footer .fine {
  grid-column: 1/-1;
  max-width: 870px;
}
.site-footer p {
  font-size: 14px;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 5;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
@media (max-width: 800px) {
  .site-nav,
  main,
  .site-footer {
    padding-inline: 22px;
  }
  .site-nav {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 14px;
  }
  .site-nav nav {
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero {
    gap: 30px;
    padding-block: 40px;
    grid-template-columns: 1fr;
  }
  .hero-picture {
    max-width: 400px;
    width: 100%;
    margin: 25px auto;
    min-height: 355px;
  }
  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-steps {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .page-intro {
    padding-block: 40px 20px;
  }
}
@media (max-width: 480px) {
  .site-nav,
  main,
  .site-footer {
    padding-inline: 18px;
  }
  .site-nav nav > a:not(.button) {
    font-size: 13px;
  }
  .site-nav .small {
    padding: 8px 12px;
    font-size: 13px;
  }
  .hero {
    padding-top: 30px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero p {
    font-size: 18px;
  }
  .hero-picture {
    min-height: 325px;
    padding-inline: 30px;
    transform: none;
  }
  .fraction-grid {
    width: 190px;
    height: 190px;
  }
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .lesson-card {
    padding: 24px;
  }
  .actions {
    gap: 12px;
  }
  .button {
    padding-inline: 20px;
  }
  h2 {
    font-size: 29px;
  }
  .teaching {
    font-size: 17px;
  }
  .grade-pill {
    font-size: 14px;
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  .button:hover {
    transform: none;
  }
}

/* Real, immediately playable homepage samples. */
.home-playground { padding:24px; border:1px solid #ddd4ef; border-radius:32px; background:#fffefa; box-shadow:0 16px 0 #e8e0f3,0 24px 50px #5b46701a; transform:rotate(1deg); min-width:0; }
.sample-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.sample-heading .eyebrow { font-size:10px; letter-spacing:.12em; }
.home-playground button { cursor:pointer; font:inherit; font-weight:750; color:#4b3e68; border:1px solid #d8cfea; background:white; min-height:44px; border-radius:12px; }
.home-playground button:focus-visible { outline:3px solid #7357c3; outline-offset:3px; }
.home-playground button:disabled { opacity:.4; cursor:default; }
.home-playground button:active:not(:disabled) { transform:translateY(2px); }
.sample-tabs { display:flex; gap:8px; margin:14px 0; }
.sample-tabs button { flex:1; padding:8px; }
.sample-tabs button[aria-pressed='true'],.sample-parts button[aria-pressed='true'] { background:#eee7fb; border:2px solid #8f78cb; }
.sample-stage { min-height:350px; }
.sample-instruction { text-align:center; font-size:16px; font-weight:750; margin:18px 0; color:#5c5072; }
.sample-whole { display:grid; gap:6px; width:240px; height:200px; max-width:100%; margin:0 auto; padding:8px; border:2px solid #ded2ef; background:#f5f0fc; border-radius:20px; }
.sample-whole button { min-height:0; color:#7c67a4; border:2px dashed #bdace0; background:#faf7fe; }
.sample-whole button.filled { background:#9679d2; color:white; border:2px solid #8162be; box-shadow:inset 0 -5px 0 #7153ab55; }
.sample-whole button span { font-size:16px; }
.sample-equation { text-align:center; font-size:30px; font-weight:800; color:#6650a3; margin:15px 0; }
.sample-equation>span { display:block; font-size:14px; font-weight:650; color:#786b8b; margin-top:4px; }
.sample-parts { display:flex; gap:8px; justify-content:center; }
.sample-parts button { padding:6px 14px; font-size:14px; }
.sample-controls { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin:12px 0; }
.sample-quantity>span { font-size:13px; font-weight:800; display:block; text-align:center; margin-bottom:5px; }
.sample-quantity>div { display:flex; align-items:center; gap:5px; }
.sample-quantity button { width:44px; font-size:24px; }
.sample-quantity output { min-width:32px; text-align:center; font-size:24px; font-weight:800; }
.home-playground .sample-primary { display:block; margin:auto; padding:8px 22px; color:white; background:#6c53b3; box-shadow:0 4px 0 #49357e; }
.sample-stage>svg { width:100%; display:block; margin-top:10px; }
.sample-garden { display:grid; gap:7px; justify-content:center; max-width:250px; min-height:175px; margin:18px auto; padding:12px; border-radius:20px; background:#edf7ee; }
.sample-garden span { display:grid; place-items:center; color:#bd737b; font-size:28px; line-height:1; }
.sample-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid #eee5f6; padding-top:14px; margin-top:16px; font-size:14px; }
.sample-footer button { padding:6px 10px; }
.sample-icon { width:44px; font-size:22px!important; }
@media(max-width:600px) { .home-playground { padding:16px; transform:none; margin-top:22px; } .sample-controls { gap:10px; } .sample-equation { font-size:27px; } }
@media(prefers-reduced-motion:reduce) { .home-playground button:active:not(:disabled) { transform:none; } }
