@font-face {
  font-family: Figtree;
  src: url("landing-figtree-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("landing-figtree-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft Display";
  src: url("landing-fraunces-display.ttf") format("truetype");
  font-style: normal;
  font-weight: 440;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft Display";
  src: url("landing-fraunces-display-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 440;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft Text";
  src: url("landing-fraunces-text.ttf") format("truetype");
  font-style: normal;
  font-weight: 380;
  font-display: swap;
}
@property --think-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
:root {
  color-scheme: light dark;
  /* Tangerine palette (the default), shared with constants/theme.ts. */
  --paper: #F6F1E7;
  --surface: #FFFCF6;
  --border: #DFD4C2;
  --border-strong: #C8BAA3;
  --ink: #1E1A14;
  --muted: #6B6154;
  --primary: #B4540A;
  --primary-on: #FFFCF6;
  /* Mo's body colour paints Mo and nothing else. */
  --mo: #F28A2E;
  --highlight: #EFE0C6;
  /* Mo's book, as MoActivity draws it: cover in primary, pages in surface. */
  --book-page: var(--surface);
  --book-line: var(--muted);
  --shadow: 0 30px 60px -34px rgb(30 26 21 / 38%), 0 8px 20px -14px rgb(30 26 21 / 18%);
  --sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fraunces Soft Display", Georgia, serif;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --phone: 360px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1815;
    --surface: #25211C;
    --border: #3B352E;
    --border-strong: #534B41;
    --ink: #FFFFFF;
    --muted: #C9BFB2;
    --primary: #FFAE5E;
    --primary-on: #1B1815;
    --mo: #F69A45;
    --highlight: #50412C;
    --book-page: color-mix(in srgb, #25211C 14%, #FFFFFF);
    --book-line: color-mix(in srgb, var(--book-page) 50%, #1B1815);
    --shadow: 0 30px 60px -30px rgb(0 0 0 / 70%), 0 8px 20px -14px rgb(0 0 0 / 50%);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--highlight); color: var(--ink); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 440; text-wrap: balance; }
.wrap { width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; z-index: 20; top: 1rem; left: var(--gutter); padding: .7rem 1rem; background: var(--surface); transform: translateY(-300%); }
.skip-link:focus { transform: none; }

/* Header: the app's header material, softly frosted paper that feathers into the page. */
.site-header { position: sticky; top: 0; z-index: 10; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent); mask-image: linear-gradient(#000 calc(100% - 18px), transparent); pointer-events: none; }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font-family: var(--display); font-size: 1.9rem; font-weight: 440; line-height: 1.2; letter-spacing: -.06em; }
.wordmark-dot { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; font-size: .875rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); transition: color .15s; }
.nav-link:hover, .nav-link[aria-current="true"] { color: var(--ink); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 52px; padding: .85rem 1.35rem; border: 1px solid transparent; border-radius: 999px; font-size: .9375rem; font-weight: 600; line-height: 1.3; transition: background .18s, transform .18s; }
.button:active { transform: scale(.98); }
.button-primary { background: var(--primary); color: var(--primary-on); }
.button-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--ink)); }
.button-outline { border-color: var(--border-strong); }
.button-outline:hover { background: var(--surface); }
.button-small { min-height: 44px; padding: .55rem 1.05rem; font-size: .875rem; }
.button > span { font-size: 1.05rem; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--border-strong); transition: color .15s; }
.text-link:hover { color: var(--primary); text-decoration-color: currentColor; }
.text-link span { font-size: 1.05rem; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.lede { color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.kicker { color: var(--primary); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }

/* Phones: the app's own screens at iPhone proportions. */
.phone { position: relative; isolation: isolate; width: min(var(--phone), 100%); flex: none; }
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 786 / 1704; border-radius: 44px; background: #F6F1E7; box-shadow: 0 0 0 1px var(--border-strong), 0 0 0 9px var(--surface), 0 0 0 10px var(--border), var(--shadow); }
.phone-screen img { display: block; width: 100%; height: auto; }
.phone-track { display: grid; }
.phone-track > .phone-screen { grid-area: 1 / 1; transition: opacity .4s ease, transform .5s cubic-bezier(.3, .7, .4, 1); }
.phone.is-enhanced .phone-track > .phone-screen:not(.is-current) { opacity: 0; transform: translateY(8px) scale(.985); }
@media (min-width: 821px) {
  .phone:not(.is-enhanced) .phone-track > .phone-screen:not(:first-child) { visibility: hidden; }
}
.phone-hero:not(.is-enhanced) .phone-track > .phone-screen:not(:first-child) { visibility: hidden; }

/* Hero */
.hero { --phone: 340px; display: grid; grid-template-columns: minmax(0, 1fr) var(--phone); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(3.2rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -.05em; }
.hero h1 em { color: var(--primary); font-weight: inherit; }
.nowrap { white-space: nowrap; }
.hero .lede { max-width: 29rem; margin-top: 1.5rem; font-size: 1.125rem; }
.hero .actions { margin-top: 2rem; }
.note { margin-top: 1rem; color: var(--muted); font-size: .8125rem; }
.phone-hero { margin-right: clamp(0rem, 2vw, 2rem); margin-top: 4.5rem; }

.phone-hero .phone-track > .phone-screen[data-screen^="working"] { transition-duration: .3s; transform: none; }
.switch { display: flex; width: max-content; margin: 1.75rem auto 0; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--border) 55%, var(--paper)); }
.switch button { min-height: 40px; padding: .45rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(30 26 21 / 14%); }

/* Mo tucked behind the phone as its bookmark: head and curl above the edge. */
.mo-tuck { position: absolute; z-index: -1; right: 18%; bottom: calc(100% - 22px); width: 64px; }
.mo-tuck .mo { width: 100%; transform: translateY(105%); }
.mo-tuck.is-up .mo { transform: none; transition: transform .9s cubic-bezier(.34, 1.45, .5, 1); }
.mo-tuck .mo, .mo-stage-closing .mo { pointer-events: auto; cursor: pointer; }

/* Reader facts */
.reader { padding-block: 0 9rem; }
.reader h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -.035em; line-height: 1.1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.facts dt { font-weight: 600; }
.facts dd { margin-top: .4rem; color: var(--muted); font-size: .9375rem; line-height: 1.65; }

/* Feature sections: copy with steps beside one phone. */
.feature { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--border); }
.feature-flashcards { background: var(--surface); border-bottom: 1px solid var(--border); }
.feature-flashcards .phone-screen { box-shadow: 0 0 0 1px var(--border-strong), 0 0 0 9px var(--paper), 0 0 0 10px var(--border), var(--shadow); }
.feature-grid { display: flex; align-items: center; justify-content: space-between; gap: clamp(2.5rem, 7vw, 7rem); }
.feature-copy { position: relative; max-width: 30rem; }
.feature-copy h2 { margin-top: .5rem; font-size: clamp(2.5rem, 4.4vw, 3.75rem); letter-spacing: -.045em; line-height: 1.04; }
.feature-copy .lede { margin-top: 1.25rem; font-size: 1.0625rem; }
.steps { margin-top: 2rem; border-top: 1px solid var(--border); }
.step { position: relative; padding: 1rem 0 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.step h3 { font-size: 1rem; font-weight: 600; }
.step p { margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.steps.is-enhanced .step { cursor: pointer; transition: background .2s; }
.steps.is-enhanced .step::before { content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 3px; border-radius: 3px; background: var(--primary); transform: scaleY(0); transition: transform .3s cubic-bezier(.3, .7, .4, 1); }
.steps.is-enhanced .step[aria-selected="true"]::before { transform: none; }
.steps.is-enhanced .step:not([aria-selected="true"]) h3 { color: var(--muted); }
.steps.is-enhanced .step:not([aria-selected="true"]) p { display: none; }
.steps.is-enhanced .step:hover h3 { color: var(--ink); }
.aside { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }

/* Mo standing on a rule, rising out of it. The stage is tall enough to hop in. */
.feature, .closing { position: relative; }
.mo-stage { position: absolute; top: -150px; width: 64px; height: 151px; overflow: hidden; }
.mo-stage .mo { position: absolute; bottom: -3px; left: 0; width: 64px; transform: translateY(105%); }
.mo-stage.is-up .mo { transform: none; transition: transform .8s cubic-bezier(.34, 1.4, .5, 1); }
.mo-stage-rule { left: calc(max(var(--gutter), (100% - 1160px) / 2) + .25rem); }
.mo-reading .mo-book { transform-origin: 32px 66px; }
.mo-book-cover { fill: var(--primary); }
.mo-book-page { fill: var(--book-page); stroke: var(--book-line); stroke-width: .5; }
.mo-book-lines { fill: none; stroke: var(--book-line); stroke-width: .7; stroke-linecap: round; opacity: .45; }
.mo-book-leaf { opacity: 0; transform-origin: 32px 66px; }
.mo.is-live .mo-book-leaf { animation: mo-leaf 5.2s ease-in-out infinite 1.2s; }
.mo.is-live.mo-reading .mo-book { animation: mo-book-bob 2.6s ease-in-out infinite alternate; }

/* Pricing */
.pricing { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(2.5rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7rem) 9rem; }
.pricing-intro h2 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); letter-spacing: -.045em; line-height: 1.04; }
.pricing-intro p { margin-top: 1.25rem; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.plan h3 { display: flex; align-items: baseline; gap: .75rem; font-family: var(--display); font-size: 2rem; font-weight: 440; letter-spacing: -.035em; line-height: 1.1; }
.plan-period { color: var(--muted); font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: 0; }
.plan ul { margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.55; }
.plan li { position: relative; margin-top: .7rem; padding-left: 1.4rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .3rem; border-left: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: rotate(-45deg); }
.plan .plan-note + .text-link { margin-top: 1rem; }
.plan-note { margin-top: auto; color: var(--muted); font-size: .8125rem; line-height: 1.55; }

/* Closing */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.closing h2 { max-width: 14ch; font-size: clamp(2.75rem, 5.5vw, 4.75rem); letter-spacing: -.05em; line-height: 1.02; }
.closing .actions { justify-content: center; margin-top: 2rem; }
.mo-stage-closing { left: calc(50% - 32px); }

/* Footer */
.site-footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }
.site-footer .wordmark { font-size: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); font-size: .8125rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav a:hover { color: var(--ink); }
.footnote { margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.footnote cite { font-style: italic; }

/* Mo: geometry from components/ui/moGeometry.ts, motion from components/ui/Mo.tsx. */
.mo { display: block; overflow: visible; color: var(--mo); }
.mo * { transform-box: view-box; }
.mo-curl { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; transform-origin: 32px 11px; }
.mo-fill { fill: currentColor; }
.mo-blush { fill: #fff; opacity: .26; }
.mo-eyes { display: none; fill: #1E1A15; }
path.mo-eyes { fill: none; stroke: #1E1A15; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.mo-light { fill: #fff; }
.mo[data-pose="idle"] .mo-eyes-open,
.mo[data-pose="curious"] .mo-eyes-curious,
.mo[data-pose="thinking"] .mo-eyes-thinking,
.mo[data-pose="pleased"] .mo-eyes-pleased { display: inline; }
.mo-whole, .mo-body { transform-origin: 32px 86px; }
.mo-look { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .4s cubic-bezier(.3, .7, .4, 1); }
.mo-blink { transform-origin: 32px 38px; }
.mo.is-live .mo-curl { animation: mo-sway 1.7s ease-in-out infinite alternate; }
.mo.is-live .mo-body { animation: mo-breath 1.7s ease-in-out infinite alternate; }
.mo.is-live:not([data-pose="pleased"]) .mo-blink { animation: mo-blink 4.2s linear infinite; }
.mo.is-blinking .mo-blink { animation: mo-blink-once .22s linear !important; }
.mo.is-live.mo-reading .mo-look { transform: translate(var(--think-x), 1.5px); animation: mo-read-eyes 2.6s ease-in-out infinite alternate; }
.mo.is-hop .mo-whole { animation: mo-hop .8s linear; }
.mo.is-celebrate .mo-whole { animation: mo-celebrate 1.5s linear; }

@keyframes mo-sway { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
@keyframes mo-breath { from { transform: none; } to { transform: scale(1.015, .985); } }
@keyframes mo-blink { 0%, 95% { transform: none; } 97% { transform: scaleY(.1); } 100% { transform: none; } }
@keyframes mo-blink-once { 0%, 100% { transform: none; } 45% { transform: scaleY(.1); } }
@keyframes mo-read-eyes { from { --think-x: -2.5px; } to { --think-x: 2.5px; } }
@keyframes mo-book-bob { from { transform: none; } to { transform: translateY(-1.2px); } }
@keyframes mo-leaf {
  0%, 70% { opacity: 0; transform: none; }
  71% { opacity: 1; transform: none; }
  85% { opacity: 1; transform: translateY(-3px) scaleX(0); }
  99% { opacity: 1; transform: scaleX(-1); }
  100% { opacity: 0; transform: scaleX(-1); }
}
@keyframes mo-hop {
  0% { transform: none; }
  12% { transform: scale(1.12, .86); }
  40% { transform: translateY(-26px) scale(.94, 1.08); }
  68% { transform: scale(1.1, .9); }
  84% { transform: scale(.98, 1.02); }
  100% { transform: none; }
}
@keyframes mo-celebrate {
  0% { transform: none; }
  6% { transform: scale(1.12, .86); }
  20% { transform: translateY(-30px) rotate(-4deg) scale(.94, 1.08); }
  34% { transform: scale(1.1, .9); }
  42%, 50% { transform: none; }
  56% { transform: scale(1.12, .86); }
  70% { transform: translateY(-30px) rotate(4deg) scale(.94, 1.08); }
  84% { transform: scale(1.1, .9); }
  92%, 100% { transform: none; }
}

@media (max-width: 1000px) {
  .main-nav { gap: 1.1rem; }
  .pricing { grid-template-columns: 1fr; }
  .pricing-intro { max-width: 34rem; }
}
@media (max-width: 820px) {
  :root { --phone: min(300px, 78vw); }
  .main-nav .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .phone-hero { margin: 3rem 0 0; }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid { flex-direction: column; align-items: stretch; gap: 2rem; }
  .feature-copy { display: contents; }
  .feature-copy > .kicker, .feature-copy > h2, .feature-copy > .lede { order: -2; }
  .feature-copy > .steps, .feature-copy > .aside { order: 1; }
  .feature-copy > .steps { margin-top: 0; }
  .feature-copy > .aside { margin-top: -.5rem; }
  .feature-copy > h2 { margin-top: -1.5rem; }
  .feature-copy > .lede { margin-top: -.75rem; }
  /* Screens swipe on phones; the steps follow. */
  .feature-grid .phone { order: 0; width: auto; margin-inline: calc(var(--gutter) * -1); }
  .feature .phone-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px calc(50% - var(--phone) / 2) 44px; scrollbar-width: none; }
  .feature .phone-track::-webkit-scrollbar { display: none; }
  .feature .phone-track > .phone-screen { flex: 0 0 var(--phone); scroll-snap-align: center; }
  .feature .phone.is-enhanced .phone-track > .phone-screen:not(.is-current) { opacity: .45; transform: scale(.96); }
}
@media (max-width: 520px) {
  .wordmark { font-size: 1.65rem; }
  .button-small { padding-inline: .85rem; font-size: .8125rem; }
  .hero .actions { flex-direction: column; gap: .25rem; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 1.5rem; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mo-tuck .mo, .mo-stage .mo { transform: none; }
}
