@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/nunito-sans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/nunito-sans-extrabold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #0f172a;
  --cyan: #0ea5e9;
  --amber: #f59e0b;
  --green: #10b981;
  background: #fdfcf9;
  color: var(--navy);
  font-family:
    'Nunito Sans',
    'Avenir Next',
    ui-rounded,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
.hero-label {
  display: inline-flex !important;
  min-height: 36px;
  padding: 7px 14px;
  background: rgb(255 255 255 / 84%);
  border: 1px solid #d5e7db;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgb(15 38 56 / 4%);
}
* {
  box-sizing: border-box;
}
.home-copy h1 em {
  color: #16a34a;
  background: linear-gradient(90deg, #16a34a, #0284c7);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration-color: #f59e0b;
}
body {
  margin: 0;
}
.home-copy button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.home-copy .button::after {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  place-items: center;
  color: #0f2638;
  font-size: 0.82rem;
  font-weight: 900;
  content: '↗';
  background: #4ade80;
  border-radius: 50%;
}
a {
  color: #005b80;
  text-underline-offset: 0.23em;
  text-decoration-thickness: 1.5px;
}
a:hover {
  text-decoration-thickness: 3px;
}
a:focus-visible,
main:focus-visible {
  outline: 3px solid #005b80;
  outline-offset: 5px;
}
header,
main,
footer {
  max-width: 1200px;
  margin: auto;
  padding: 24px 32px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #cbd5e1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--navy);
  text-decoration: none;
}
.brand img {
  border-radius: 18px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
}
nav a,
.actions a,
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 2px;
}
header nav {
  font-size: 0.9rem;
  font-weight: 650;
}
main {
  padding-top: 8px;
  padding-bottom: 80px;
}
.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 32px;
}
.status {
  background: #fef3c7;
  color: #713f12;
  border: 1px solid #d97706;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 750;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.15rem, 4.7vw, 4rem);
  max-width: 20ch;
  margin: 18px 0 26px;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 0;
}
h3 {
  font-size: 1.4rem;
}
p,
li {
  max-width: 72ch;
}
p {
  margin: 16px 0 24px;
}
section {
  margin-top: 64px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #475569;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}
.button {
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  padding: 12px 24px !important;
  font-weight: 800;
  box-shadow: 0 5px 0 var(--navy);
  text-decoration: none;
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--navy);
}
.math-board {
  background: white;
  border: 2px solid var(--navy);
  border-radius: 32px;
  box-shadow: 7px 9px 0 #cbd5e1;
  margin: 20px 0;
  padding: 26px;
  max-width: 520px;
  transform: rotate(-2deg);
}
.board-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 850;
}
.board-heading span {
  color: #00765a;
  font-size: 1rem;
}
svg {
  display: block;
  width: 100%;
  height: auto;
}
figcaption {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.cards article {
  background: white;
  border: 2px solid var(--navy);
  box-shadow: 0 5px 0 var(--navy);
  padding: 32px;
  border-radius: 26px;
}
.cards article a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}
.number {
  display: inline-block;
  border-radius: 16px;
  padding: 6px 14px;
  background: #fef3c7;
  font-weight: 850;
}
.green {
  background: #d1fae5;
}
.steps {
  padding-left: 28px;
}
.steps li {
  margin: 36px 0;
  padding-left: 14px;
}
li {
  padding: 8px 0;
}
.guide-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  max-width: 680px;
}
.guide-actions li {
  padding: 0;
  min-width: 0;
}
.guide-actions a {
  display: flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
  border: 2px solid var(--navy);
  border-radius: 16px;
  background: white;
  overflow-wrap: anywhere;
}
.rate-stages {
  margin: 32px 0;
  max-width: 800px;
}
.rate-stages ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.rate-stages li {
  padding: 20px;
  border: 2px solid var(--navy);
  border-radius: 20px;
  background: #bae6fd;
}
.rate-stages li + li {
  background: #d1fae5;
}
.rate-stages h2 {
  font-size: 1.4rem;
}
footer {
  background: #e9f0f5;
  border-top: 2px solid var(--navy);
  border-radius: 32px 32px 0 0;
  font-size: 0.88rem;
}
footer nav {
  margin: 20px 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: white;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
.home-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1280px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgb(253 252 249 / 94%);
  border-bottom-color: #e6e2d9;
  backdrop-filter: blur(14px);
}
.home-header .brand {
  gap: 8px;
  font-size: 1.2rem;
}
.home-header .brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.home-header nav {
  gap: 4px 12px;
}
.home-header nav a {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.home-header nav a:hover,
.home-header nav a:focus-visible {
  background: #eaf5f2;
}
.home-header nav a[href='#idea'] {
  color: #fff;
  background: #0f2638;
}
.home-header .development-link {
  border: 1px solid #d5d9d4;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}
.home-header .language-link {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
}
.home-page {
  position: relative;
  isolation: isolate;
  max-width: 1280px;
  padding-top: 12px;
  padding-bottom: 72px;
  color: #0f2638;
  background-image: radial-gradient(
    circle at 50% 7%,
    rgb(6 182 212 / 8%) 0,
    rgb(22 163 74 / 5%) 20%,
    transparent 44%
  );
}
.home-page > :not(.math-doodles) {
  position: relative;
  z-index: 1;
}
.home-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  color: #355161;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.eyebrow-mark {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1ca276;
  box-shadow: 0 0 0 2px #c4ead8;
}
.home-hero {
  position: relative;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  padding: 6px clamp(4px, 4vw, 54px) 40px;
  overflow: hidden;
}
.home-copy {
  max-width: 820px;
  text-align: center;
}
.home-copy h1 {
  max-width: 20ch;
  margin: 8px auto 8px;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.03;
}
.home-page h2 {
  font-weight: 900;
}
.home-page h3 {
  font-weight: 800;
}
.home-copy h1 em,
.home-page h2 em {
  color: #138258;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #8bcdb1;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.home-copy > p:not(.eyebrow, .hero-audience) {
  max-width: 46ch;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
  color: #435460;
  font-size: 1rem;
}
.home-page .actions {
  margin-top: 16px;
  justify-content: center;
  gap: 18px;
}
.home-page .button {
  min-height: 50px;
  padding: 12px 24px !important;
  color: white;
  background: #102c3e;
  border-color: #102c3e;
  box-shadow: 0 4px 0 #092031;
}
.home-page .button:hover {
  background: #17435a;
}
.hero-audience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  color: #674d05;
  font-size: 0.82rem;
  font-weight: 750;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
}
.hero-audience span {
  color: #e2a612;
}
.math-doodles {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  color: #0f2638;
  pointer-events: none;
}
.math-doodles span {
  position: absolute;
  max-width: min(29ch, 35vw);
  font-family: 'Inter', 'Avenir Next', ui-monospace, monospace;
  font-size: clamp(0.62rem, 0.8vw, 0.86rem);
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1.4;
  opacity: 0.24;
  animation: math-float 11s ease-in-out infinite;
}
.math-doodles span:nth-child(3n + 2) {
  animation-delay: -3s;
  animation-duration: 13s;
}
.math-doodles span:nth-child(3n) {
  animation-delay: -6s;
  animation-duration: 15s;
}
.math-doodles span:nth-child(1) {
  top: 2%;
  left: 4%;
  color: #15803d;
}
.math-doodles span:nth-child(2) {
  top: 3%;
  right: 5%;
  color: #0284c7;
}
.math-doodles span:nth-child(3) {
  top: 16%;
  left: 3%;
  color: #b87500;
}
.math-doodles span:nth-child(4) {
  top: 20%;
  right: 4%;
  color: #15803d;
}
.math-doodles span:nth-child(5) {
  top: 34%;
  left: 4%;
}
.math-doodles span:nth-child(6) {
  top: 38%;
  right: 5%;
}
.math-doodles span:nth-child(7) {
  top: 53%;
  left: 5%;
  color: #0284c7;
}
.math-doodles span:nth-child(8) {
  top: 58%;
  right: 4%;
  color: #b87500;
}
.math-doodles span:nth-child(9) {
  top: 80%;
  left: 7%;
}
.math-doodles span:nth-child(10) {
  top: 84%;
  right: 7%;
  color: #15803d;
}
@keyframes math-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}
.prompt-kicker,
.card-kicker {
  margin: 0;
  color: #426073;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-world {
  position: relative;
  isolation: isolate;
  width: min(100%, 980px);
  aspect-ratio: 2 / 1;
  max-height: max(340px, calc(100svh - 410px));
  overflow: hidden;
  color: white;
  text-align: center;
  background: #1d2f3a;
  border: 1px solid #d9e0db;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgb(22 46 58 / 16%);
}
.world-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.9s ease,
    transform 1.4s ease;
}
.home-world[data-state='closed'] .world-art {
  filter: blur(6px) brightness(0.72) saturate(0.9);
  transform: scale(1.06);
}
.world-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgb(10 24 34 / 45%),
    transparent 32%,
    transparent 55%,
    rgb(10 24 34 / 60%)
  );
}
.world-label,
.world-bottom {
  position: absolute;
  left: 20px;
  right: 20px;
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.world-label {
  top: 16px;
  text-align: left;
}
.world-bottom {
  bottom: 14px;
  text-align: right;
}
.world-cover,
.world-message {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    visibility 0.7s;
}
.world-cover {
  inset: 0;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}
.world-cover .prompt-kicker,
.world-message .prompt-kicker {
  color: #fde68a;
}
.prompt-question {
  max-width: 18ch;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgb(0 0 0 / 45%);
}
.prompt-question i {
  color: #fde68a;
}
.cover-button {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #102c3e;
  font-size: 1.6rem;
  cursor: pointer;
  background: #fde68a;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgb(0 0 0 / 30%);
}
.cover-button:hover {
  transform: scale(1.06);
}
.cover-button:focus-visible,
.home-world .button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.cover-hint {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.world-message {
  left: 6%;
  bottom: 12%;
  max-width: min(420px, 88%);
  align-items: flex-start;
  padding: 16px 20px;
  text-align: left;
  background: rgb(10 24 34 / 62%);
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}
.world-message p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #f1f5f4;
}
.world-message .world-title {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 850;
  line-height: 1.15;
  color: white;
}
.home-world[data-state='open'] .world-cover {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}
.home-world[data-state='open'] .world-message {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (scripting: none) {
  .world-cover,
  [data-world-open].button {
    display: none;
  }
  .world-art {
    filter: none;
    transform: none;
  }
  .world-message {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-art,
  .world-cover,
  .world-message {
    transition: none;
  }
}
.home-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(14px, 4vw, 52px);
  margin: 0 calc(50% - 50vw);
  padding: 12px 24px;
  color: white;
  background: #132d3c;
  list-style: none;
}
.home-ribbon li {
  max-width: none;
  padding: 5px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-ribbon li::before {
  margin-right: 9px;
  color: #4fc796;
  content: '•';
}
.home-page .home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px clamp(28px, 5vw, 72px);
  max-width: 1040px;
  margin: 72px auto 0;
  padding: 0 clamp(0px, 4vw, 40px);
}
.home-intro .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}
.home-intro h2 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.7rem, 2.9vw, 2.45rem);
  line-height: 1.12;
}
.home-intro > p:last-child {
  margin: 0;
  padding-left: clamp(16px, 2.4vw, 28px);
  color: #52616a;
  font-size: 1rem;
  border-left: 3px solid #86efac;
}
.home-page .home-experiment {
  display: block;
  margin: 40px calc(50% - 50vw) 0;
  padding: clamp(64px, 8vw, 104px) max(20px, calc((100vw - 1200px) / 2 + 32px));
  background: linear-gradient(to bottom, rgb(232 247 238 / 80%), #fff 52%, #fdfcf9);
  border-block: 1px solid rgb(15 38 56 / 10%);
}
.experiment-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 34px;
  margin-bottom: 24px;
}
.experiment-heading .eyebrow {
  flex-basis: 100%;
  margin-bottom: 0;
}
.experiment-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
}
.experiment-heading > p:last-child {
  max-width: 42ch;
  margin: 0;
  color: #52616a;
  font-size: 0.9rem;
}
.apple-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  background: white;
  border: 2px solid #142c3d;
  border-radius: 24px;
  box-shadow: 0 4px 0 #142c3d;
}
.experiment-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 3vw, 38px);
}
.demo-label {
  margin: 0 0 12px;
  padding: 6px 10px;
  color: #075d7b;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e0f2fe;
  border-radius: 999px;
}
.experiment-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}
.experiment-copy > p:not(.demo-label) {
  color: #52616a;
  font-size: 0.9rem;
}
.apple-controls {
  width: 100%;
  margin: 12px 0;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}
.counter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.counter-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #142c3d;
  font-size: 1.7rem;
  font-weight: 850;
  background: white;
  border: 2px solid #142c3d;
  border-radius: 16px;
  box-shadow: 0 3px 0 #142c3d;
  cursor: pointer;
}
.counter-controls button:hover:not(:disabled) {
  color: #147550;
  background: #effaf2;
}
.counter-controls button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #142c3d;
}
.counter-controls button:disabled {
  color: #68757b;
  opacity: 0.55;
  cursor: not-allowed;
}
.counter-value {
  display: flex;
  min-width: 62px;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.counter-value output {
  font-size: 1.9rem;
  font-weight: 900;
}
.counter-value span {
  font-size: 0.68rem;
}
.controls-note {
  margin: 12px 0 0 !important;
  font-size: 0.72rem !important;
}
.apple-panel .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #126a4d;
  font-weight: 800;
}
.home-page .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #126a4d;
  font-weight: 800;
}
.experiment-visual {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 30px);
  background-color: #fde047;
  background-image:
    linear-gradient(to right, rgb(15 38 56 / 6%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 38 56 / 6%) 1px, transparent 1px);
  background-size: 28px 28px;
}
.apple-demo {
  display: flex;
  max-width: 560px;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  margin: auto;
  text-align: center;
}
.apple-label {
  margin: 0 0 8px;
  color: #314958;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.apple-pile-card {
  padding: 12px 18px;
  background: #fff9dc;
  border: 1px solid rgb(20 44 61 / 18%);
  border-radius: 20px;
}
.apple-pile,
.basket-apples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.apple-token {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.2;
  filter: drop-shadow(0 2px 1px rgb(20 44 61 / 14%));
  transition: transform 150ms ease;
}
.apple-token:hover {
  transform: scale(1.14);
}
.basket-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.apple-basket {
  min-width: 0;
  padding: 12px 8px;
  background: #fffdf8;
  border: 2px solid #142c3d;
  border-radius: 20px;
  box-shadow: 0 3px 0 rgb(20 44 61 / 16%);
}
.apple-basket h3 {
  margin: 0 0 8px;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}
.apple-equation {
  fill: #142c3d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
}
.apple-equation-copy {
  margin: 0;
  color: #142c3d;
  font-size: 0.96rem;
}
.apple-demo figcaption {
  color: #3f4e57;
  font-size: 0.68rem;
}
.home-page .home-steps {
  margin-top: 88px;
  padding: 0 clamp(0px, 2vw, 24px);
}
.home-steps > h2 {
  max-width: 18ch;
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.home-cards article {
  position: relative;
  min-height: 238px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e3e3de;
  border-radius: 20px;
  box-shadow: 0 5px 14px rgb(18 44 62 / 5%);
}
.home-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  float: right;
  font-size: 1.3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.icon-green {
  color: #178456;
  background: #e6f4e9;
}
.icon-blue {
  color: #087ba2;
  background: #e4f4f8;
}
.icon-amber {
  color: #a76b00;
  background: #fff2d6;
}
.home-cards .card-kicker {
  padding-top: 9px;
  font-size: 0.62rem;
}
.home-cards .home-card-tag {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 6px 10px;
  color: #176f50;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #e5f4e9;
  border-radius: 999px;
}
.home-cards h3 {
  margin: 24px 0 10px;
  font-size: 1.15rem;
}
.home-cards article > p:last-child {
  color: #52616a;
  font-size: 0.88rem;
  line-height: 1.55;
}
.home-page .parent-trust {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 48px;
  margin: 84px calc(50% - 50vw) 0;
  padding: 64px max(32px, calc((100vw - 1184px) / 2 + 32px));
  color: white;
  background: #102c3e;
}
.parent-trust .eyebrow {
  color: #f8d67c;
}
.parent-trust h2 {
  max-width: 15ch;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.parent-trust h2 em {
  color: #64d5a5;
  text-decoration-color: #64d5a5;
}
.parent-trust > div > p:not(.eyebrow) {
  max-width: 58ch;
  color: #d3e1e4;
}
.parent-trust .text-link {
  color: #8de0bd;
}
.trust-note {
  padding: 28px;
  color: #0f2638;
  background: #f87171;
  border: 2px solid #f43f5e;
  border-radius: 24px;
  box-shadow: 0 4px 0 #0f2638;
}
.trust-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: white;
  background: #16845e;
  border-radius: 50%;
}
.trust-note .card-kicker {
  color: #4b1b20;
}
.trust-note h3 {
  margin: 12px 0;
  font-size: 1.3rem;
}
.trust-note > p:last-child {
  margin-bottom: 0;
  color: #52616a;
  font-size: 0.88rem;
}
.home-page .home-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 40px;
  margin-top: 76px;
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(90deg, transparent 31px, rgb(15 38 56 / 4%) 32px, transparent 33px),
    linear-gradient(transparent 31px, rgb(15 38 56 / 4%) 32px, transparent 33px), #fff;
  background-size: 32px 32px;
  border: 2px solid #142c3d;
  border-radius: 28px;
  box-shadow: 0 5px 0 #142c3d;
}
.home-status h2 {
  max-width: 16ch;
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}
.home-status > div > p:not(.eyebrow) {
  color: #52616a;
}
.home-status .button {
  margin-top: 8px;
}
.status-card {
  padding: 26px;
  background: rgb(255 255 255 / 94%);
  border: 1px solid #e1e5df;
  border-radius: 22px;
}
.status-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.status-card li {
  position: relative;
  max-width: none;
  padding: 12px 4px 12px 24px;
  border-top: 1px solid #e7e9e4;
  font-size: 0.82rem;
}
.status-card li::before {
  position: absolute;
  left: 3px;
  color: #18845e;
  font-weight: 900;
  content: '•';
}
.status-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 0;
}
.status-card li span {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 5px 8px;
  color: #196e4d;
  font-size: 0.63rem;
  font-weight: 800;
  background: #e4f4e9;
  border-radius: 999px;
}
.status-card li span.status-planned {
  color: #8a5700;
  background: #fff0cb;
}
.status-card li span.status-prototype {
  color: #075d7b;
  background: #e0f2fe;
}
.home-page + footer {
  margin-top: 0;
}
html {
  scroll-behavior: smooth;
}
#idea,
#try,
#parents {
  scroll-margin-top: 90px;
}
@media (max-width: 760px) {
  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  header nav {
    gap: 6px 16px;
  }
  .hero,
  .cards,
  .rate-stages ol {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    max-width: 19ch;
  }
  .math-board {
    transform: none;
    padding: 20px;
  }
  .topline {
    margin-bottom: 24px;
  }
  section {
    margin-top: 44px;
  }
  .cards article {
    padding: 24px;
  }
  .home-header {
    align-items: center;
  }
  .home-header nav {
    gap: 2px 6px;
  }
  .home-header nav a {
    min-height: 44px;
    padding: 8px;
    font-size: 0.78rem;
  }
  .home-page {
    padding-top: 20px;
  }
  .math-doodles span:nth-child(n + 5) {
    display: none;
  }
  .home-page .home-intro,
  .home-page .parent-trust,
  .home-page .home-status {
    grid-template-columns: 1fr;
  }
  .home-hero {
    gap: 14px;
    min-height: 0;
    padding: 10px 0 28px;
  }
  .home-copy h1 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 8.5vw, 3rem);
  }
  .home-world {
    aspect-ratio: 5 / 6;
    max-height: none;
    border-radius: 22px;
  }
  .world-message {
    left: 4%;
    right: 4%;
    max-width: none;
    bottom: 10%;
  }
  .home-ribbon {
    gap: 5px 16px;
    padding: 12px 20px;
  }
  .home-ribbon li {
    font-size: 0.65rem;
  }
  .home-page .home-intro {
    gap: 10px;
    margin-top: 56px;
    padding: 8px 0;
  }
  .home-intro .eyebrow {
    margin: 0;
  }
  .home-page .home-experiment {
    margin-top: 32px;
    padding: 48px 20px;
  }
  .experiment-heading {
    align-items: flex-start;
  }
  .experiment-heading > p:last-child {
    max-width: 100%;
  }
  .apple-panel {
    grid-template-columns: 1fr;
  }
  .experiment-copy {
    padding: 22px;
  }
  .experiment-visual {
    padding: 16px;
    border-top: 1px solid rgb(20 44 61 / 18%);
  }
  .basket-pair {
    gap: 8px;
  }
  .apple-basket {
    padding: 10px 5px;
  }
  .apple-token {
    font-size: 1.5rem;
  }
  .counter-controls {
    gap: 10px;
  }
  .status-card li {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .status-card li span {
    max-width: 100%;
  }
  .home-page .home-steps {
    margin-top: 60px;
  }
  .home-cards {
    grid-template-columns: 1fr;
  }
  .home-cards article {
    min-height: 0;
  }
  .home-page .parent-trust {
    gap: 24px;
    margin-top: 60px;
    padding: 44px 20px;
  }
  .home-page .home-status {
    gap: 24px;
    margin-top: 54px;
    padding: 24px 18px;
  }
}
@media (max-width: 420px) {
  .home-header {
    padding-left: 14px;
    padding-right: 14px;
  }
  .home-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .home-header .brand {
    font-size: 1.05rem;
  }
  .home-header nav a {
    padding: 4px;
    font-size: 0.7rem;
  }
  .home-header .development-link {
    display: none;
  }
  .home-ribbon {
    gap: 2px 12px;
  }
  .home-ribbon li {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .button:active {
    transform: none;
  }
}
@media (max-width: 480px) {
  .home-page .hero-label {
    display: none !important;
  }
  .home-copy h1 {
    margin-top: 0;
  }
}
/* Curriculum prototype pages (preview only). */
.worked-example {
  background: white;
  border: 2px solid var(--navy);
  border-radius: 24px;
  padding: 8px 24px 16px;
  margin: 24px 0;
  max-width: 760px;
}
.lesson-board {
  margin: 8px 0;
  max-width: 260px;
}
.worked-answer {
  font-size: 1.15rem;
}
.muted,
.source-note {
  color: #475569;
}
.source-note {
  font-size: 0.85rem;
  margin-top: 64px;
}
.practice .answers {
  columns: 2;
}
@media print {
  header,
  footer,
  .topline,
  .skip,
  .math-doodles {
    display: none !important;
  }
  .worked-example {
    break-inside: avoid;
  }
}

/* Test sign-up form (no script; posts to api.waymath.app). */
.signup-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin: 1.5rem 0;
}
.signup-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.signup-form input[type='email'],
.signup-form select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 2px solid #d8d3c7;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
.signup-form input:focus-visible,
.signup-form select:focus-visible {
  outline: 3px solid #0f7a55;
  outline-offset: 2px;
}
.signup-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.signup-form legend {
  font-weight: 700;
  margin-bottom: 0.35rem;
  width: 100%;
}
.signup-form fieldset label,
.signup-consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}
.signup-form input[type='radio'],
.signup-form input[type='checkbox'] {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  flex: none;
  accent-color: #0f7a55;
}
.signup-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
