/*
 * kiddotutor.com (2026-10-18). The app's own look: its colours (apps/mobile/src/theme/tokens.ts),
 * Fredoka for headings and Nunito for words, white cards with a 2px line, and buttons that press
 * down like the app's ToyButton (a 4px edge in the deep shade; pressed, the face moves down onto it
 * and nothing around it moves). Light only, as the app is.
 */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #1F2A44; --muted: #5B6478; --cloud: #F5F7FB; --paper: #FFFFFF; --line: #E3E8F2;
  --grape: #6C3BFF; --grape-deep: #5228D9; --grape-soft: #EFE9FF;
  --sun: #FFC800; --sun-deep: #D9A600; --sun-soft: #FFF6D9;
  --mint: #1FC77A; --mint-deep: #159A5C; --mint-soft: #E2FAF0;
  --tangerine: #FF7A1A; --teal: #0FB5BA; --pink: #F0459B; --ocean: #2E7CF6;
  --blush: #FFE3E3; --coral: #FF4B4B;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--body); }
body > main { flex: 1 0 auto; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grape-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }
/* A heading a page moves to, for a screen reader, is not a control: no ring round it. */
[tabindex="-1"]:focus { outline: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.quiet { color: var(--muted); font-size: 16px; }
.quiet.big { font-size: 19px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 50; background: var(--paper); padding: 8px 12px; }
/* The key word of a headline: ink on a sunbeam highlight, never a coloured word (the app's rule). */
mark { background: linear-gradient(transparent 58%, #FFE27A 58%, #FFE27A 92%, transparent 92%); color: inherit; padding: 0 2px; }

/* Buttons, the app's ToyButton. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: var(--r-md); background: var(--grape); color: #fff; font: 600 19px/1.1 var(--display); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--grape-deep); transition: transform 120ms ease-out, box-shadow 120ms ease-out; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--grape-deep); }
.btn-quiet { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); }
.btn-quiet:active { box-shadow: 0 0 0 2px var(--line) inset, 0 0 0 var(--line); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--sun-deep); }
.btn-sun:active { box-shadow: 0 0 0 var(--sun-deep); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--paper); color: var(--muted); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }

/* The chip over a headline, as the store frames have it. */
.chip { display: inline-block; font: 800 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 8px 14px 9px; box-shadow: 0 4px 0 var(--sun-deep); margin-bottom: 18px; }

/* Header. */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 2px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 24px/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.top-nav { display: flex; align-items: center; gap: 10px; }
.top-nav[hidden] { display: none; }
@media (max-width: 420px) { .brand span { display: none; } }

/* Hero. */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-art img { border-radius: 32px; box-shadow: 0 24px 48px rgba(31,42,68,.14); width: 100%; }
.hero-copy { text-align: center; }
.hero-copy p.lead { font-size: 21px; color: var(--muted); max-width: 30em; margin: 0 auto 28px; }
.hero-actions { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }
.hero-note { margin-top: 18px; font-size: 16px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}

/* Features, alternating sides. */
.band { padding: 64px 0; }
.band-cloud { background: var(--cloud); }
.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature-art img { border-radius: 28px; width: 100%; box-shadow: 0 18px 36px rgba(31,42,68,.12); }
.feature-copy p { font-size: 20px; color: var(--muted); max-width: 28em; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-art { order: 2; }
}

/* Plus. */
.plus { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .plus { grid-template-columns: 1fr 1fr; gap: 56px; } }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.narrow .card { margin: 16px 0 24px; }
.compare { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { padding: 12px 8px; text-align: center; border-bottom: 2px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font: 800 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare .is-plus { background: var(--grape-soft); color: var(--ink); font-weight: 800; }
.compare tr:last-child td { border-bottom: 0; }
.tick, .compare .is-plus.tick { color: var(--grape-deep); font-weight: 800; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.price { border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.price b { display: block; font: 700 28px/1.1 var(--display); }
.price span { color: var(--muted); font-size: 15px; }

/* Get the app. */
.app-cta { text-align: center; }
.app-cta img.icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 20px; box-shadow: 0 12px 24px rgba(31,42,68,.16); }
.soon { display: inline-block; font: 800 15px/1 var(--body); color: var(--ink); background: var(--cloud); border: 2px solid var(--line); border-radius: 999px; padding: 12px 18px; }

/* Footer. */
.foot { background: var(--cloud); border-top: 2px solid var(--line); padding: 36px 0 40px; font-size: 16px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink); }
.foot p { margin: 0; color: var(--muted); }

/* A page of words: privacy, terms, support. */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.doc .updated { color: var(--muted); font-size: 16px; margin-top: -8px; }

/* A small page with one card: signing in, the code pages, the account. */
.narrow { max-width: 480px; margin: 0 auto; padding: 48px 20px 64px; }
.code { font: 700 40px/1.1 var(--display); letter-spacing: 4px; font-variant-numeric: tabular-nums; margin: 8px 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Forms: signing in, making an account, the codes. Fields are 52 tall with the card's 2px line. */
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field label, .label { font: 800 15px/1.2 var(--body); color: var(--ink); }
.field .hint { font-size: 15px; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink); font: 400 18px/1.3 var(--body); appearance: none; -webkit-appearance: none;
}
textarea { min-height: 128px; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 3px var(--grape-soft); }
input::placeholder, textarea::placeholder { color: #8A93A6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { margin-bottom: 0; }
/* A problem: ink on blush with a coral edge, so it reads at any contrast (coral itself is 3.3:1 on white). */
.problem { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--blush); border-left: 4px solid var(--coral); color: var(--ink); font-size: 16px; }
.problem:empty { display: none; }
.note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--mint-soft); color: var(--ink); font-size: 16px; }
.note:empty { display: none; }
.actions { display: grid; gap: 12px; margin-top: 8px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 18px; font-size: 16px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--grape-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.center { text-align: center; }

/* A PIN or a code: one field, big and spaced. The PIN is shown as dots without being a password field,
   so no browser offers to keep it as this site's password. */
.digits { font: 700 34px/1 var(--display); letter-spacing: 14px; text-align: center; font-variant-numeric: tabular-nums; padding-left: 28px !important; }
.secret { -webkit-text-security: disc; }

/* The "?" beside a heading, opened in place under it (the app's HelpTitle). */
.ask { display: flex; align-items: flex-start; gap: 10px; }
.ask h1, .ask h2 { margin-bottom: 12px; flex: 1; }
.ask-btn { flex: none; width: 34px; height: 34px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 700 18px/1 var(--display); cursor: pointer; }
.ask-btn[aria-expanded="true"] { background: var(--grape-soft); border-color: var(--grape); }
.ask-text { margin: -4px 0 16px; padding: 12px 14px; background: var(--cloud); border-radius: var(--r-sm); font-size: 16px; color: var(--ink); }
.ask-text p { margin: 0 0 8px; }
.ask-text p:last-child { margin: 0; }

/* Making an account, a question a page. */
.flow h1 { font-size: clamp(30px, 6vw, 38px); }
.flow-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 18px; }
.flow-bar span { display: block; height: 100%; width: 0; background: var(--grape); border-radius: 999px; transition: width 220ms ease-out; }
.flow-section { font: 800 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.flow-art { height: 112px; width: auto; margin: 0 auto 18px; }
.flow-art[hidden] { display: none; }
.flow-step[hidden] { display: none; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.consent input { flex: none; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--grape); }
.consent p { font-size: 16px; margin: 0 0 8px; }
.consent p:last-child { margin: 0; }
.companions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.companion { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 8px 14px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; }
.companion input { position: absolute; opacity: 0; pointer-events: none; }
.companion img { height: 190px; width: auto; }
.companion b { font: 700 22px/1 var(--display); }
.companion:has(input:checked) { border-color: var(--grape); background: var(--grape-soft); box-shadow: 0 4px 0 var(--grape-deep); }
.companion:has(input:focus-visible) { outline: 3px solid var(--grape); outline-offset: 3px; }
.year-line { font-size: 19px; margin: 0 0 16px; }
.year-line:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .flow-bar span { transition: none; } }

/* The account page. */
.plan-line { font: 700 22px/1.2 var(--display); margin: 0 0 6px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts li:first-child { padding-top: 0; }
.facts span { color: var(--muted); white-space: nowrap; }
.facts b { overflow-wrap: anywhere; }
.facts + p { margin: 12px 0 0; }
.card > :last-child { margin-bottom: 0; }
.pair { display: flex; justify-content: center; gap: 18px; margin: 0 0 18px; }
.pair img { height: 160px; width: auto; }
.lead { font-size: 21px; }
.after { margin: 16px 0 0; }
.actions + .quiet { margin-top: 16px; }
.flow + .center { margin-top: 18px; }
.handle { font: 700 30px/1.15 var(--display); margin: 4px 0 8px; overflow-wrap: anywhere; }

/* Buying Plus: the plan on grape, Stripe's form on white (Duolingo's two panels). */
.checkout { display: grid; max-width: 1120px; width: 100%; margin: 0 auto; }
.checkout-plan { background: var(--grape); color: #fff; padding: 36px 20px 32px; }
.checkout-plan h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); }
.checkout-plan a { color: #fff; }
.checkout-pay { padding: 28px 20px 48px; }
.periods { display: grid; gap: 12px; margin: 8px 0 18px; padding: 0; border: 0; min-width: 0; }
.period { position: relative; display: block; cursor: pointer; }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3); }
.period b { font: 700 22px/1.2 var(--display); }
.period em { font-style: normal; font-weight: 800; text-align: right; }
.period small { grid-column: 1 / -1; font-size: 15px; opacity: .9; }
.period input:checked + span { background: #fff; color: var(--ink); border-color: var(--sun); box-shadow: 0 4px 0 var(--sun-deep); }
.period input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.today { font-weight: 800; font-size: 19px; }
.gets { padding-left: 22px; margin: 0 0 18px; }
.gets li { margin: 6px 0; }
.small-print { font-size: 15px; opacity: .92; margin: 0; }
#checkout { min-height: 320px; }
@media (min-width: 900px) {
  .checkout { grid-template-columns: 5fr 7fr; padding: 40px 20px 64px; gap: 0; }
  .checkout-plan { border-radius: var(--r-lg) 0 0 var(--r-lg); padding: 40px 36px; }
  .checkout-pay { border: 2px solid var(--line); border-left: 0; border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 36px; }
}
