/* KudosNest website (F-85 – F-88). Colors from docs/design-tokens.md and the approved website design.
   Fonts are self-hosted (wwwroot/fonts, SIL OFL): nothing is loaded from a third party.
   Layout is direction-aware: inline-start/end, never left/right, except inside the drawn phone screens. */

@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Nunito-700.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/Nunito-800.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/Nunito-900.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-400.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-600.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700 900; font-style: normal; font-display: swap; src: url("../fonts/Inter-700.ttf") format("truetype"); }

/* Height of the sticky header (.header-row): 16px padding twice plus the 44px button row. */
:root {
  --header-h: 80px;
  --primary: #2557D6;
  --primary-dark: #1A3FA0;
  --sky: #4F8CFF;
  --primary-soft: #E7EEFC;
  --ink: #1B2333;
  --body-ink: #26304A;
  --muted: #5B6578;
  --ground: #F4F6FA;
  --surface: #FFFFFF;
  --line: #E2E6EE;
  --dark: #0F1626;
  --dark-card: #182238;
  --dark-line: #263048;
  --dark-text: #B8C3D9;
  --on-blue: #E3ECFF;
  --yellow-soft: #FFF1C9;
  --yellow-ink: #9A5B00;
  --green-soft: #DDF6EC;
  --green-ink: #0E7A5A;
  --purple-soft: #EFE7FD;
  --purple-ink: #6B3FC4;
  --mint: #8FE3C1;
  --gold: #FFC93C;
  --cream: #FFE59A;
  --error: #C2410C;
  --display: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gradient: linear-gradient(180deg, var(--sky) 0%, var(--primary) 100%);
  --shadow: 0 30px 60px -24px rgba(16, 32, 80, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

/* The header stays on top while scrolling: in-page links (#how, #join, headings) stop below it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.6 var(--text);
  overflow-wrap: break-word;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img, svg { max-width: 100%; }
.icon { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
/* A link to the browser's language on pages that exist in it (the address decides the language). */
.lang-hint { margin: 0; padding: 8px 16px; background: var(--primary-soft); text-align: center; font-weight: 600; }
.lang-hint a { color: var(--primary-dark); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Type ---------- */
.h1 { margin: 0; font-family: var(--display); font-size: 52px; font-weight: 900; line-height: 1.08; }
.h2 { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 900; line-height: 1.12; }
.h2--small { font-size: 28px; }
.h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 900; line-height: 1.2; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); }

.eyebrow, .pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.3;
}
.eyebrow { background: var(--primary-soft); color: var(--primary); letter-spacing: 0.02em; text-transform: uppercase; }
.eyebrow--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.eyebrow--purple { background: var(--purple-soft); color: var(--purple-ink); }
.eyebrow--mint { background: rgba(143, 227, 193, 0.14); color: var(--mint); }
.pill--glass { background: rgba(255, 255, 255, 0.16); font-size: 14px; }
.pill--glass .icon { color: var(--gold); }

/* ---------- Buttons ---------- */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: 700 15px/1.3 var(--text);
  text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: var(--primary-dark); color: #fff; }
.button--white { background: #fff; color: var(--primary); }
.button--white:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 12px 24px; padding-block: 16px; }
.header-join { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 24px/1 var(--display); }
.brand img { border-radius: 11px; }
.brand-accent { color: var(--primary); }
.brand--light { color: #fff; font-size: 22px; }
.brand--light:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; flex-grow: 1; font-size: 14.5px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }

.lang-picker { position: relative; }
.lang-picker summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; list-style: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker ul {
  position: absolute; inset-inline-end: 0; top: 100%; z-index: 30; min-width: 170px; margin: 4px 0 0; padding: 8px;
  list-style: none; background: #fff; border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.lang-picker li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang-picker li a:hover { background: var(--ground); }
.lang-picker li a[aria-current="true"] { color: var(--primary); font-weight: 700; }

.menu { display: none; }
.menu summary {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ground); color: var(--ink); list-style: none; cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; inset-inline: 0; top: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px;
  background: #fff; box-shadow: 0 20px 30px -20px rgba(16, 32, 80, 0.35), 0 1px 0 var(--line) inset;
}
.menu-panel a:not(.button) { padding: 12px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel .button { margin-top: 12px; }

/* Room for longer nav labels: below 1300 px the language button shows only the globe. */
@media (max-width: 1300px) {
  .lang-picker summary span:not(.sr-only) { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-row { justify-content: space-between; }
  .brand { margin-inline-end: auto; }
}
@media (max-width: 700px) {
  :root { --header-h: 72px; }
  .header-row { padding-block: 14px; gap: 8px; }
  .wrap { padding-inline: 20px; }
  .header-join { display: none; }
  .lang-picker summary span:not(.sr-only) { display: none; }
}

/* ---------- Bands (full-width sections) ---------- */
main.full { display: block; }
.band { position: relative; overflow: hidden; }
.band--white { background: #fff; }
.band--ground { background: var(--ground); }
.band--blue { background: var(--gradient); color: #fff; }
.band--blue .h1, .band--blue .h2 { color: #fff; }
.band--blue .lead { color: var(--on-blue); }
.band--dark { background: var(--dark); color: #fff; }
.band--dark .lead { color: var(--dark-text); }
.section-stack { display: flex; flex-direction: column; align-items: center; gap: 48px; padding-block: 104px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 720px; }
.section-head .eyebrow { align-self: center; }

.twinkle { position: absolute; color: #fff; pointer-events: none; }
.twinkle--a { inset-inline-start: 12%; top: 60px; color: var(--gold); }
.twinkle--b { inset-inline-end: 16%; top: 90px; opacity: 0.8; }
.twinkle--c { inset-inline-start: 46%; top: 70px; opacity: 0.9; }
.twinkle--d { inset-inline-start: 52%; top: 520px; color: var(--gold); }

/* ---------- Phone frames ----------
   --pw is the screen width; --s scales the 390 px-wide result screen to it (--pw / 390). */
.phone {
  --pw: 250px; --s: 0.6410; --pad: 8px;
  flex: none; width: calc(var(--pw) + 2 * var(--pad)); padding: var(--pad);
  border-radius: calc(var(--pw) * 0.128 + var(--pad)); background: var(--dark);
  box-shadow: 0 30px 60px -20px rgba(16, 32, 80, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone--xl { --pw: 270px; --s: 0.6923; }
.phone--lg2 { --pw: 260px; --s: 0.6667; }
.phone--lg { --pw: 250px; --s: 0.6410; }
.phone--ml { --pw: 230px; --s: 0.5897; --pad: 7px; }
.phone--md { --pw: 220px; --s: 0.5641; --pad: 7px; }
.phone--sm { --pw: 200px; --s: 0.5128; --pad: 6px; }
.phone--xs { --pw: 150px; --s: 0.3846; --pad: 6px; }
.phone-screen { position: relative; width: var(--pw); aspect-ratio: 390 / 844; border-radius: calc(var(--pw) * 0.128); overflow: hidden; background: #fff; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-result { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; }
.phone-notch {
  position: absolute; top: calc(var(--pw) * 0.024); left: 50%; width: calc(var(--pw) * 0.28); height: calc(var(--pw) * 0.072);
  transform: translateX(-50%); border-radius: 999px; background: var(--dark);
}
.tilt-l { transform: rotate(-6deg); }
.tilt-r { transform: rotate(4deg); }
.tilt-l2 { transform: rotate(-4deg); }
.tilt-r2 { transform: rotate(5deg); }

/* The grading-result screen (Shared/_ResultScreen), drawn at 390 × 844 like the app. */
.rs { display: flex; flex-direction: column; width: 390px; height: 844px; overflow: hidden; background: var(--ground); color: var(--ink); font: 400 14px/1.4 var(--text); text-align: left; }
.rs-head { display: flex; align-items: center; gap: 10px; padding: 24px 16px 8px; }
.rs-back { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 999px; background: #fff; }
.rs-head-text { min-width: 0; }
.rs-title { font-size: 18px; font-weight: 700; }
.rs-sub { font-size: 13px; color: var(--muted); }
.rs-body { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; min-height: 0; padding: 8px 16px 0; }
.rs-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: #fff; }
.rs-score { display: flex; align-items: baseline; gap: 8px; }
.rs-big { font: 900 40px/1 var(--display); }
.rs-big span { font-size: 24px; color: var(--muted); }
.rs-score-word { font-size: 16px; font-weight: 700; }
.rs-bar { display: flex; gap: 3px; height: 10px; }
.rs-bar span { display: block; }
.rs-bar .ok { flex-grow: 8; background: #1E7A4F; border-radius: 999px 0 0 999px; }
.rs-bar .bad { flex-grow: 1; background: var(--error); }
.rs-bar .check { flex-grow: 1; background: #E0A526; border-radius: 0 999px 999px 0; }
.rs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.rs-pill.ok { background: #E3F4EA; color: #1E7A4F; }
.rs-pill.bad { background: #FDEBE1; color: var(--error); }
.rs-pill.check { background: #FFF4D6; color: #8A5A00; }
.rs-start { align-self: flex-start; }
.rs-note { font-size: 13px; color: var(--muted); }
.rs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rs-skill { font-size: 12px; font-weight: 600; color: var(--muted); }
.rs-problem { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rs-math { font: 900 22px/1.2 var(--display); }
.rs-wrote { font-size: 15px; color: var(--muted); }
.rs-wrote strong { color: var(--error); }
.rs-why { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--ground); line-height: 1.5; }
.rs-why-title { font-size: 13px; font-weight: 700; }
.rs-hints { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rs-link { padding: 10px 4px; color: var(--primary); font-weight: 700; }
.rs-text { line-height: 1.5; }
.rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-two span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-weight: 700; text-align: center; }
.rs-two .ok { background: #E3F4EA; color: #1E7A4F; }
.rs-two .bad { background: #FDEBE1; color: var(--error); }
.rs-collapsed { flex-direction: row; align-items: center; gap: 10px; min-height: 52px; padding-block: 0; font-size: 15px; font-weight: 700; }
.rs-collapsed span { flex-grow: 1; }
.rs-collapsed .icon:first-child { color: #1E7A4F; }
.rs-collapsed .icon:last-child { color: var(--muted); }
.rs-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 30px; background: #fff; box-shadow: 0 -1px 0 #DCE3EE; }
.rs-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 16px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; }
.rs-foot-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Floating chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 340px; padding: 10px 16px 10px 10px; border-radius: 16px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.3; box-shadow: 0 14px 30px -12px rgba(16, 32, 80, 0.35);
}
.chip-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 10px; }
.chip-icon--green { background: var(--green-soft); color: var(--green-ink); }
.chip-icon--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }

/* ---------- Waitlist form ---------- */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.waitlist input[type="email"], .waitlist select {
  min-width: 0; min-height: 54px; border: 0; border-radius: 14px; padding: 0 14px; background: #fff; color: var(--ink);
  font: 16px var(--text); box-shadow: inset 0 0 0 1px #C6CEDB;
}
.waitlist input[type="email"] { flex: 2 1 220px; padding-inline: 16px; }
.waitlist select { flex: 1 1 200px; max-width: 100%; }
.waitlist button { flex: 1 1 100%; min-height: 56px; border-radius: 14px; font-size: 17px; }
.band--blue .waitlist button { background: #fff; color: var(--primary); }
.band--blue .waitlist button:hover { background: var(--primary-soft); color: var(--primary-dark); }
.form-note { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--muted); }
.band--blue .form-note { color: var(--on-blue); }
.band--blue .form-note a { color: #fff; }
.form-error { flex: 1 1 100%; margin: 0; padding: 10px 14px; border-radius: 12px; background: #FDEBE1; color: var(--error); font-weight: 700; }
.joined { max-width: 520px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); }
.joined p { margin: 0; color: var(--on-blue); }
.joined .joined-title { margin-bottom: 4px; color: #fff; font: 900 24px/1.2 var(--display); }

/* ---------- Hero ---------- */
.hero-bubble { position: absolute; border-radius: 999px; pointer-events: none; }
.hero-bubble--a { inset-inline-end: -160px; top: -200px; width: 720px; height: 720px; background: rgba(255, 255, 255, 0.08); }
.hero-bubble--b { inset-inline-start: -120px; bottom: -260px; width: 520px; height: 520px; background: rgba(255, 255, 255, 0.06); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding-block: 80px 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero .h1 { font-size: 56px; line-height: 1.05; }
.hero .lead { max-width: 520px; font-size: 20px; line-height: 1.55; }
.hero-form { max-width: 540px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.12); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; color: var(--on-blue); font-size: 15px; font-weight: 600; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li:nth-child(1) .icon { color: var(--mint); }
.hero-trust li:nth-child(2) .icon { color: var(--cream); }
.hero-art { position: relative; width: 560px; max-width: 100%; height: 640px; }
.hero-phone-a { position: absolute; inset-inline-start: 30px; top: 40px; }
.hero-phone-b { position: absolute; inset-inline-start: 270px; top: 0; }
.hero-chip-a { position: absolute; inset-inline-start: -10px; top: 470px; }
.hero-chip-b { position: absolute; inset-inline-start: 290px; top: 575px; }
.hero-roo { position: absolute; inset-inline-start: 196px; top: 540px; }

/* ---------- Feature strip ---------- */
.features { background: #fff; box-shadow: 0 1px 0 var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 auto; padding-block: 26px; list-style: none; }
.features-grid li { display: flex; align-items: center; gap: 12px; }
.features-grid strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; }
.features-grid span:not(.tile) { display: block; font-size: 14px; color: var(--muted); }
.tile { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; }
.tile--blue { background: var(--primary-soft); color: var(--primary); }
.tile--yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.tile--green { background: var(--green-soft); color: var(--green-ink); }
.tile--purple { background: var(--purple-soft); color: var(--purple-ink); }
.tile--mint { width: 42px; height: 42px; background: rgba(143, 227, 193, 0.14); color: var(--mint); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: 100%; margin: 0; padding: 0; list-style: none; text-align: start; }
.how-card { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 0; border-radius: 28px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.how-card p { margin: 0; color: var(--muted); line-height: 1.55; flex-grow: 1; }
.how-num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: #fff; font: 900 20px/1 var(--display); }
.how-phone { display: flex; justify-content: center; height: 300px; overflow: hidden; }

/* ---------- Homework and chores ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; padding-block: 110px; }
.split-copy { display: flex; flex-direction: column; gap: 22px; }
.split-art { position: relative; }
.blob { position: absolute; border-radius: 48px; }
.blob--blue { inset: 40px 30px; background: var(--primary-soft); }
.blob--yellow { inset: 50px 20px 20px 60px; background: var(--yellow-soft); }
.ticks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.5; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.tick { display: flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }

.homework-art { height: 620px; }
.homework-phone { position: absolute; inset-inline-start: 40px; top: 0; }
.hint-card {
  position: absolute; inset-inline-end: 0; top: 300px; width: 300px; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border-radius: 24px; background: #fff; box-shadow: var(--shadow);
}
.hint-card p { margin: 0; }
.hint-head { display: flex; align-items: center; gap: 10px; }
.hint-roo { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: #FFF1E0; }
.hint-title { font: 900 18px/1.2 var(--display); }
.hint-sub { font-size: 13px; color: var(--muted); }
.hint-bubble { padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--primary-soft); font-size: 16px; line-height: 1.5; }
.hint-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hint-buttons span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 4px 8px; border-radius: 14px; background: var(--ground); font-size: 14px; font-weight: 700; text-align: center; }
.hint-buttons .ok { background: var(--green-soft); color: var(--green-ink); }
.hint-never { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hint-never .icon { color: var(--green-ink); }

.chores-art { height: 640px; }
.chores-phone-a { position: absolute; inset-inline-start: 40px; top: 30px; }
.chores-phone-b { position: absolute; inset-inline-start: 290px; top: 0; }
.chores-chip { position: absolute; inset-inline-start: 230px; top: 560px; }

/* ---------- Age bands ---------- */
.ages .section-stack { padding-bottom: 0; gap: 18px; }
.ages .lead { max-width: 640px; }
.ages-row { display: flex; align-items: flex-start; justify-content: center; gap: 36px; height: 500px; margin: 30px 0 0; padding: 0; overflow: hidden; list-style: none; }
.ages-row li { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.age-label { padding: 6px 14px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-ink); font-size: 15px; font-weight: 800; }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; padding-block: 110px; }
.privacy-copy { display: flex; flex-direction: column; gap: 22px; }
.privacy-copy .h2 { color: #fff; }
.privacy-link { align-self: flex-start; color: var(--mint); font-weight: 700; }
.privacy-link:hover { color: #fff; }
.privacy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.privacy-cards li { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--dark-card); }
.privacy-cards h3 { margin: 0; font-size: 17px; font-weight: 800; }
.privacy-cards p { margin: 0; color: var(--dark-text); font-size: 15px; line-height: 1.5; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; max-width: 860px; text-align: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.plan p { margin: 0; }
.plan-name { margin: 0; font: 900 24px/1.2 var(--display); }
.plan-price { font: 900 46px/1 var(--display); }
.plan-term { font-size: 15px; color: var(--muted); }
.plan ul { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; line-height: 1.45; }
.plan li { display: flex; gap: 10px; }
.plan li .icon { color: var(--green-ink); }
.plan--family { background: var(--primary); color: #fff; box-shadow: 0 30px 60px -24px rgba(37, 87, 214, 0.55); }
.plan--family .plan-term { color: #DCE6FF; }
.plan-founding { margin: 4px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); color: #FFE59A; font-size: 14px; font-weight: 700; }
.plan--family li .icon { color: var(--cream); }
.plan-badge { position: absolute; top: -14px; inset-inline-end: 24px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; }

/* ---------- FAQ ---------- */
.wrap--faq { max-width: 820px; display: flex; flex-direction: column; gap: 28px; padding-block: 110px; }
.wrap--faq p.center { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer;
  font-size: 18px; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; color: var(--primary); transition: transform 0.2s; }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 18px; color: var(--muted); line-height: 1.6; }

/* ---------- Final call to action ---------- */
.join-grid { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 90px; }
.join-roo { display: flex; align-items: center; justify-content: center; width: 220px; height: 220px; border-radius: 56px; background: rgba(255, 255, 255, 0.14); }
.join-copy { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); font-size: 15px; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: flex; gap: 32px 64px; padding-block: 56px 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand p { margin: 0; }
.footer-brand .brand { color: #fff; }
.footer-contact { margin: 0; }
.footer-contact a { color: inherit; font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; flex-grow: 1; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-head { margin: 0; color: #fff; font-weight: 800; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid var(--dark-line); font-size: 14px; }
.languages { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer .languages a[aria-current="true"] { color: #fff; font-weight: 700; }

/* ---------- Blog ---------- */
.blog-head { background: #fff; box-shadow: 0 1px 0 var(--line); }
.blog-head-inner { display: flex; flex-direction: column; gap: 14px; padding-block: 64px 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.tag--all, .tag--homework { background: var(--primary-soft); color: var(--primary); }
.tag--chores { background: var(--yellow-soft); color: var(--yellow-ink); }
.tag--money { background: var(--green-soft); color: var(--green-ink); }
.tag--homeschool { background: var(--purple-soft); color: var(--purple-ink); }
.tag--white { background: #fff; color: var(--primary); }
.chips .tag { padding-block: 8px; }
.chips .tag[aria-current="page"] { background: var(--primary); color: #fff; }
main.full .blog-list { display: flex; flex-direction: column; gap: 28px; padding-block: 40px 80px; }
.blog-list, .related { background: transparent; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.post-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.post-card:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--primary); }
.post-card-art { position: relative; display: flex; justify-content: center; height: 210px; padding-top: 26px; overflow: hidden; background: var(--primary-soft); }
.post-card--chores .post-card-art { background: var(--yellow-soft); }
.post-card--money .post-card-art { background: var(--green-soft); }
.post-card--homeschool .post-card-art { background: var(--purple-soft); }
.post-card-art .twinkle { inset-inline-start: 22px; top: 22px; opacity: 0.5; color: var(--primary); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.post-card-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.post-card-title { margin: 0; font: 900 21px/1.25 var(--display); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; }
.post-card--featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 28px; }
.post-card--featured .post-card-art { height: 380px; }
.post-card--featured .post-card-body { justify-content: center; gap: 14px; padding: 36px; }
.post-card--featured .post-card-title { font-size: 32px; line-height: 1.15; }
.post-card--featured .post-card-body p { font-size: 17px; }
.post-card-more { color: var(--primary); font-weight: 700; }
main.blog-list, .blog-list { min-height: 0; }

.post-head { background: var(--primary-soft); }
.post-head-inner { display: flex; flex-direction: column; gap: 16px; max-width: 1096px; padding-block: 64px 56px; }
.post-head .h1 { max-width: 860px; line-height: 1.1; }
.back-link { align-self: flex-start; font-weight: 600; text-decoration: none; }
.post-note, .post-also { margin: 0; color: var(--muted); font-size: 15px; }
.post-also a { margin-inline-start: 8px; font-weight: 700; }
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 56px; justify-content: center; padding-block: 56px 40px; }
.post-aside { position: sticky; top: calc(var(--header-h) + 8px); align-self: start; display: flex; flex-direction: column; gap: 16px; }
.aside-cta { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--gradient); color: #fff; }
.aside-cta p { margin: 0; color: var(--on-blue); font-size: 15px; line-height: 1.5; }
.aside-cta .aside-title { color: #fff; font: 900 22px/1.2 var(--display); }
.aside-cta .button { align-self: flex-start; }
.toc { padding: 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.6; }
.toc-title { margin: 0 0 8px; font-weight: 800; }
.toc ol { margin: 0; padding-inline-start: 1.3em; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.related { display: flex; flex-direction: column; gap: 20px; padding-bottom: 80px; }

/* Article text from Markdown. */
.prose { min-width: 0; color: var(--body-ink); font-size: 19px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose h2 { margin: 40px 0 12px; color: var(--ink); font: 900 28px/1.2 var(--display); scroll-margin-top: 24px; }
.prose h3 { margin: 28px 0 8px; color: var(--ink); font: 800 21px/1.3 var(--display); scroll-margin-top: 24px; }
.prose blockquote { margin: 28px 0; padding: 20px 24px; border-inline-start: 5px solid var(--primary); border-start-end-radius: 18px; border-end-end-radius: 18px; background: var(--ground); font: 700 20px/1.5 var(--display); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { display: block; max-width: 100%; margin: 0 0 24px; overflow-x: auto; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--ground); font-weight: 700; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--ground); font-size: 0.9em; }
.prose hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.post-figure { display: flex; align-items: center; gap: 28px; margin: 28px 0; padding: 28px; border-radius: 24px; background: var(--primary-soft); }
.post-figure figcaption { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Pages with a reading column: legal, help, email links ---------- */
main.page { display: block; padding: 40px 16px 72px; background: var(--ground); }
.legal { max-width: 800px; margin: 0 auto; padding: 32px 36px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.legal h1 { margin-top: 0; font: 900 36px/1.15 var(--display); }
.legal h2 { margin-top: 32px; font: 900 22px/1.25 var(--display); }
.legal h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.legal .meta { color: var(--muted); font-size: 0.9rem; }
.legal .note { padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); }
.legal table { width: 100%; border-collapse: collapse; }
.legal .scroll, .legal table { overflow-x: auto; }
.legal th, .legal td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal button { width: 100%; max-width: 420px; min-height: 52px; font-size: 1.05rem; }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 16px 0; }
.fields.single { grid-template-columns: 1fr; max-width: 420px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.fields input, .fields select { height: 50px; padding: 0 14px; border: 1px solid #C9D1DD; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; }
.fields input:focus, .fields select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.error { color: var(--error); font-weight: 600; }
.support .faq h3 { margin-top: 20px; }
.support .faq p { margin: 4px 0 0; }

/* ---------- Medium screens: shrink the drawn compositions ---------- */
@media (max-width: 1180px) and (min-width: 901px) {
  .hero-art, .homework-art, .chores-art { zoom: 0.8; }
  .hero .h1 { font-size: 48px; }
  .split { gap: 48px; }
  .ages-row { gap: 20px; zoom: 0.85; }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 900px) {
  .h1, .hero .h1 { font-size: 40px; line-height: 1.06; }
  .h2 { font-size: 30px; }
  .lead, .hero .lead { font-size: 17px; }
  .section-stack { gap: 32px; padding-block: 56px; }
  .section-head { align-items: flex-start; text-align: start; }
  .section-head .eyebrow { align-self: flex-start; }
  .center { text-align: start; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 34px 0; }
  .hero-copy { gap: 18px; }
  .hero-form { padding: 12px; border-radius: 18px; }
  .hero-art { width: 100%; max-width: 400px; height: 390px; margin: 10px auto 0; }
  .hero-phone-a { --pw: 170px; --s: 0.4359; --pad: 6px; inset-inline-start: 4px; top: 30px; }
  .hero-phone-b { --pw: 176px; --s: 0.4513; --pad: 6px; inset-inline-start: auto; inset-inline-end: 4px; top: 0; }
  .hero-chip-a { inset-inline-start: 0; top: 300px; }
  .hero-chip-b, .hero-roo, .twinkle--c, .twinkle--d { display: none; }

  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 24px; }
  .features-grid li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .features-grid .tile { width: 40px; height: 40px; }

  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 56px; }
  .split-copy { gap: 18px; }
  .homework-art { order: 2; height: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .homework-art .blob, .chores-art .blob, .chores-phone-a, .chores-chip { display: none; }
  .homework-phone, .chores-phone-b { position: static; --pw: 240px; --s: 0.6154; --pad: 7px; transform: none; }
  .hint-card { position: static; width: 100%; max-width: 340px; }
  .chores-art { height: auto; display: flex; justify-content: center; }

  .ages .section-stack { padding-bottom: 56px; }
  .ages-row { flex-wrap: wrap; height: auto; gap: 20px; margin-top: 8px; overflow: visible; }
  .ages-row .phone { --pw: 150px; --s: 0.3846; --pad: 6px; }

  .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 56px; }
  .privacy-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .privacy-cards li { padding: 16px; }

  .plans { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .plan--family { order: -1; }

  .wrap--faq { padding-block: 56px; gap: 10px; }
  .faq summary { font-size: 17px; }

  .join-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 48px; }
  .join-roo { width: auto; height: auto; justify-content: flex-start; background: none; }
  .join-roo .roo { width: 96px; height: 96px; }

  .footer-top { flex-direction: column; padding-block: 40px 28px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .blog-head-inner { padding-block: 36px 28px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .post-card--featured { grid-template-columns: minmax(0, 1fr); }
  .post-card--featured .post-card-art { height: 240px; }
  .post-card--featured .post-card-body { padding: 22px; }
  .post-card--featured .post-card-title { font-size: 26px; }

  .post-head-inner { padding-block: 36px 32px; }
  .h1.post-title, .post-head .h1 { font-size: 34px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 28px 20px; }
  .post-aside { display: none; }
  .prose { font-size: 17px; }
  .post-figure { flex-direction: column; align-items: flex-start; padding: 20px; }
  .post-figure .phone { align-self: center; }

  .legal { padding: 22px 18px; }
  .legal h1 { font-size: 30px; }
  .fields { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero-art { zoom: 0.85; }
  .h1, .hero .h1 { font-size: 34px; }
  .chip { font-size: 14px; }
}

/* Free tools (SEO plan 5.3): the chore chart and the allowance calculator. Forms work without script. */
.tool-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 0 0 24px; }
.tool-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.tool-form fieldset { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.tool-form legend { padding-inline: 4px; font-weight: 700; }
.tool-form select, .tool-form input { min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.tool-form fieldset input { width: 90px; min-width: 0; }
.tool .error { color: var(--error); font-weight: 600; }
.chart table { width: 100%; border-collapse: collapse; }
.chart th, .chart td { padding: 8px; border: 1px solid var(--line); text-align: center; }
.chart tbody th { text-align: start; font-weight: 600; }
.chart td.box::after { content: ""; display: inline-block; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 4px; }
.chart td.off { background: var(--ground); }
.chart tr.own th { height: 36px; }
.chart-name { font-weight: 600; }
.chart-note { color: var(--muted); font-size: 15px; }
/* F-84: buying the prepaid Family plan on the website in Vietnam, under the price table. */
.web-buy { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 860px; padding: 26px 30px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 2px var(--primary); }
.web-buy h3 { margin: 0; color: var(--ink); font: 900 22px/1.25 var(--display); }
.web-buy p { margin: 0; color: var(--muted); }
.web-buy ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 4px 0; padding: 0; list-style: none; }
.web-buy li { display: flex; gap: 10px; align-items: baseline; }
.web-buy strong { color: var(--primary-dark); font: 900 24px/1.2 var(--display); }

@media print {
  .site-header, .site-footer, .skip, .lang-hint, .no-print { display: none !important; }
  .legal { box-shadow: none; padding: 0; max-width: none; }
  .chart td.off { background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
