/* Momitor Math — the same brand as Momitor, pointed at a different job.
   The tokens below are lifted from momitor.css, which lifted them from Momitor's Palette, and the two
   apps happen to share one: coral #e94c7a, teal #2e9ca3, sun #f9bd42, the same cream canvas. The only
   value that differs is the ink, which Momitor Math sets a shade cooler. Component rules are kept the
   same on purpose so the two sites read as one family. */

/* Light only, on purpose. The app forces light mode ("bright and warm, never dark"), so a dark website
   would look like a different product. */
:root {
  color-scheme: light;
  --coral: #e94c7a;        /* Palette.coral  — Mom Sun, the asking voice */
  --coral-deep: #af395c;   /* Palette.coralInk */
  --teal: #2e9ca3;         /* Palette.teal   — Dad Sun, the counting voice */
  --teal-deep: #227589;    /* Palette.tealInk */
  --sun: #f9bd42;          /* Palette.sun    — badges and highlights */
  --ink: #342d38;          /* Palette.ink */
  --ink-soft: #7a6670;
  --cream: #fffefd;        /* Palette.cream      — canvas gradient, top */
  --cream-deep: #fff6f2;   /* Palette.creamDeep  — canvas gradient, bottom */
  --cream-2: #ffece2;
  --card: #ffffff;
  --hair: #f3e0d4;
  /* The app's card shadow: tight and neutral, not a big coral halo. Cards sit calmly on the canvas. */
  --shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  --radius: 26px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%) fixed;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
header.m { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--cream) 84%, transparent); border-bottom: 1px solid var(--hair); }
header.m .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800;
  font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(233,76,122,.28); }
header.m nav { display: flex; gap: 20px; align-items: center; font-weight: 650; font-size: 15px; }
header.m nav a { color: var(--ink-soft); text-decoration: none; }
header.m nav a:hover, header.m nav a[aria-current="page"] { color: var(--coral); }
header.m nav a.studio { color: var(--ink-soft); font-size: 13.5px; }

/* The hamburger is anchored to the nav bar itself rather than pushed by margin, so horizontal
   overflow anywhere on the page cannot shove it off the edge. */
.hamb { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; }
.hamb span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink);
  position: relative; }
.hamb span::before, .hamb span::after { content: ""; position: absolute; left: 0; width: 22px;
  height: 2.5px; border-radius: 2px; background: var(--ink); }
.hamb span::before { top: -7px; }
.hamb span::after { top: 7px; }
.mobile-nav { display: none; border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--cream) 96%, transparent); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 22px; text-decoration: none; color: var(--ink);
  font-weight: 700; border-top: 1px solid var(--hair); }
.mobile-nav a:first-child { border-top: 0; }
@media (max-width: 920px) {
  header.m .wrap { padding-right: 70px; }
  header.m nav { display: none; }
  .hamb { display: flex; position: absolute; right: 18px; top: 11px; z-index: 5; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:-30% -10% auto -10%; height: 560px; z-index:0;
  background: radial-gradient(50% 62% at 30% 0%, color-mix(in srgb, var(--coral) 24%, transparent), transparent 70%),
             radial-gradient(46% 58% at 76% 6%, color-mix(in srgb, var(--sun) 20%, transparent), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 32px;
  align-items: center; padding: 60px 22px 44px; }
@media (max-width: 900px){ .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.bubble { display: inline-block; background: var(--coral); color: #fff; font-weight: 850;
  font-size: 15px; letter-spacing: .02em; padding: 8px 16px; border-radius: 16px 16px 16px 4px;
  transform: rotate(-3deg); box-shadow: 0 8px 18px rgba(233,76,122,.32); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 850;
  margin: 18px 0 0; text-wrap: balance; }
h1 .hl { color: var(--coral); }
.sub { font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-soft); margin: 18px 0 0; max-width: 52ch; }
@media (max-width: 900px){ .sub { margin-left: auto; margin-right: auto; } }

/* Waitlist signup, posting to the shared luci-waitlist service the other apps use. */
.waitlist { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 900px){ .waitlist { justify-content: center; } }
.waitlist input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px;
  padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--card);
  color: var(--ink); }
.waitlist input[type=email]::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.waitlist input[type=email]:focus { outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 18%, transparent); }
.waitlist button { border: 0; cursor: pointer; font-family: inherit; flex: 0 0 auto; }
.waitlist button:disabled { opacity: .6; cursor: default; }
.wlmsg { margin: 10px 0 0; font-size: 14.5px; font-weight: 650; min-height: 1.2em; }
.wlmsg.ok { color: var(--teal-deep); }
.wlmsg.err { color: var(--coral-deep); }
@media (max-width: 900px){ .wlmsg { text-align: center; } }
.ctanote { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; max-width: 52ch; }
@media (max-width: 900px){ .ctanote { margin-left: auto; margin-right: auto; text-align: center; } }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 750;
  padding: 13px 22px; border-radius: 999px; font-size: 16px; }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px rgba(233,76,122,.35); }
.btn.ghost { background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral-deep); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--coral) 55%, transparent); outline-offset: 3px; border-radius: 10px; }
.cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 900px){ .cta { justify-content: center; } }

/* The hero shot: an iPad screenshot from real play, already landscape, so it gets a tablet body
   rather than the phone frame Momitor's hero uses. */
.slab { justify-self: center; width: min(520px, 92vw); }
.slab .device { position: relative; padding: 2.4%; border-radius: min(34px, 7vw);
  background: linear-gradient(160deg, #2a2430, #15121a 60%);
  box-shadow: 0 24px 50px rgba(52,45,56,.26), 0 2px 0 rgba(255,255,255,.14) inset; }
.slab .screen { border-radius: min(24px, 5vw); overflow: hidden; background: #000; line-height: 0; }
.slab img { width: 100%; height: auto; display: block; }
.slab .caption { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Sections */
section { padding: 46px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 800; color: var(--coral); text-align: center; }
h2 { font-size: clamp(27px, 4.2vw, 38px); letter-spacing: -0.02em; text-align: center; margin: 10px auto 6px; text-wrap: balance; }
.section-sub { color: var(--ink-soft); text-align: center; max-width: 56ch; margin: 0 auto; }

/* Feature cards: the same card language as Momitor, colour-coded the way the app is. */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 34px; }
.features.two { grid-template-columns: repeat(2,1fr); }
@media (max-width: 860px){ .features, .features.two { grid-template-columns: 1fr; } }
.f { background: var(--card); border: 1.5px solid color-mix(in srgb, var(--coral) 28%, transparent);
  border-radius: var(--radius); padding: 24px 22px 26px; box-shadow: var(--shadow); }
.f h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; color: var(--coral-deep); }
.f p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.f p + p { margin-top: 10px; }
.f .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  margin: 0 0 14px; font-size: 27px; background: color-mix(in srgb, var(--coral) 12%, transparent); }
.f.teal { border-color: color-mix(in srgb, var(--teal) 34%, transparent); }
.f.teal h3 { color: var(--teal-deep); }
.f.teal .ic { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.f.sun { border-color: color-mix(in srgb, var(--sun) 48%, transparent); }
.f.sun h3 { color: color-mix(in srgb, var(--sun) 62%, var(--ink)); }
.f.sun .ic { background: color-mix(in srgb, var(--sun) 18%, transparent); }
.f .art { width: 100%; height: 150px; display: grid; place-items: center; margin: 0 0 14px; }
.f .art img { max-height: 150px; width: auto; }

/* Screens gallery */
/* A grid rather than a wrapping flex row, so three shots sit in one row of three instead of leaving
   one of them centered under the other two, and a pair gets the full width to be legible in. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 22px; align-items: start; margin-top: 34px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--hair); }
.shots figcaption { margin-top: 10px; text-align: center; font-size: 14.5px; color: var(--ink-soft); }

/* The grade ladder: one card per year, each listing what that year really teaches. */
/* Each card is as tall as its own year, so a short year does not stretch over dead space beside a
   long one. */
.grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px;
  align-items: start; margin-top: 34px; }
.grade { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 24px 24px 26px; box-shadow: var(--shadow); }
.grade .yr { display: inline-block; font-weight: 850; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--coral); padding: 5px 13px;
  border-radius: 999px; }
.grade.t .yr { background: var(--teal); }
.grade.s .yr { background: color-mix(in srgb, var(--sun) 76%, var(--ink)); }
.grade h3 { margin: 14px 0 4px; font-size: 20px; letter-spacing: -.01em; }
.grade .count { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; }
.grade ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.grade li { position: relative; padding-left: 24px; font-size: 15.5px; }
.grade li::before { content: ""; position: absolute; left: 0; top: 9px; width: 13px; height: 13px;
  border-radius: 4px; background: color-mix(in srgb, var(--coral) 20%, transparent); }
.grade.t li::before { background: color-mix(in srgb, var(--teal) 22%, transparent); }
.grade.s li::before { background: color-mix(in srgb, var(--sun) 34%, transparent); }

/* A numbered list of steps, for how a lesson runs. */
.steps { display: grid; gap: 16px; margin-top: 34px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 22px 24px 24px 76px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 22px;
  width: 36px; height: 36px; border-radius: 12px; background: var(--coral); color: #fff;
  display: grid; place-items: center; font-weight: 850; font-size: 18px; }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 520px){ .step { padding: 64px 22px 22px; } }

/* Privacy band */
.privacy-band { background: var(--cream-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.privacy-band .wrap { text-align: center; }
.promises { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; text-align: left; }
@media (max-width: 820px){ .promises { grid-template-columns: 1fr; } }
.promise { background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 20px 22px; }
.promise h3 { margin: 0 0 6px; font-size: 17px; }
.promise p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* A quiet band of numbers that are all checkable in the app. */
.facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 760px){ .facts { grid-template-columns: repeat(2,1fr); } }
.fact { text-align: center; }
.fact .n { font-size: clamp(30px, 5vw, 42px); font-weight: 850; letter-spacing: -.03em; color: var(--coral); }
.fact .l { font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; }

/* Doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 22px 80px; }
.doc h1 { text-align: left; font-size: clamp(29px,5vw,40px); margin: 0; }
.doc .updated { color: var(--ink-soft); margin-top: 6px; }
.doc h2 { text-align: left; font-size: 21px; margin-top: 32px; }
.doc h3 { font-size: 17.5px; margin-top: 24px; margin-bottom: 4px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 88%, var(--ink-soft)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .promise-box { background: color-mix(in srgb, var(--coral) 10%, transparent);
  border-radius: 18px; padding: 18px 22px; margin: 22px 0; }
.doc .q { font-weight: 750; margin-top: 22px; }
.doc a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }
/* The imported document underlines its links; a pill button is not one of them. */
.doc a.btn { color: #fff; text-decoration: none; margin: 22px 0 6px; }

/* Footer */
footer.m { background: var(--cream-2); border-top: 1px solid var(--hair); margin-top: 20px; }
footer.m .wrap { padding: 34px 22px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer.m .brand { font-size: 18px; }
footer.m .links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
footer.m .links a { color: var(--ink-soft); text-decoration: none; }
footer.m .links a:hover { color: var(--coral); }
footer.m .fine { width: 100%; border-top: 1px solid var(--hair); padding-top: 16px; color: var(--ink-soft); font-size: 13.5px; }
footer.m .fine a { color: var(--coral-deep); }

@media (prefers-reduced-motion: reduce){ * { transition: none !important; animation: none !important; } }
