@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #faf9f4;
  --ink: #17243a;
  --muted: #4c5666;
  --blue: #0b448d;
  --blue-dark: #092b5e;
  --blue-light: #e9f0fb;
  --mint: #def4eb;
  --lime: #e5f48d;
  --line: #dddfe4;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #3169b9; outline-offset: 4px; }
[id] { scroll-margin-top: 96px; }

.shell { width: min(calc(100% - 96px), 1280px); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.i-arrow { --icon: url("assets/arrow.png"); }
.i-down { --icon: url("assets/down.png"); }
.i-up { --icon: url("assets/up.png"); }
.i-chevron { --icon: url("assets/chevron.png"); }
.i-diagonal { --icon: url("assets/diagonal.png"); }
.i-book { --icon: url("assets/book.png"); }
.i-bulb { --icon: url("assets/bulb.png"); }
.i-check { --icon: url("assets/check.png"); }
.i-camera { --icon: url("assets/camera.png"); }
.i-chart { --icon: url("assets/chart.png"); }
.i-clock { --icon: url("assets/clock.png"); }
.i-lock { --icon: url("assets/lock.png"); }
.i-refresh { --icon: url("assets/refresh.png"); }
.i-menu { --icon: url("assets/menu.png"); }
.i-close { --icon: url("assets/close.png"); }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: rgba(250, 249, 244, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e7e6de;
}

.header-inner { min-height: 76px; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.085em; }
.brand img { flex: none; border-radius: 27%; }
.brand-period { color: var(--blue); }
.main-nav { display: flex; gap: clamp(18px, 3vw, 43px); align-items: center; }
.main-nav a, .site-footer nav a { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.main-nav a:hover, .site-footer nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: fit-content;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 160ms;
}
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; }
.button .icon { font-size: 1.12em; }
.button-small { min-height: 44px; padding: 0.62rem 1rem; font-size: 0.86rem; }
.button-primary { background: var(--blue); color: white; }
.button-primary:not(:disabled):hover { background: var(--blue-dark); }
.button-primary .icon { color: var(--lime); }
.button-primary:disabled { background: #dce6f4; color: #335278; }
.button-primary:disabled .icon { color: inherit; }
.button-outline { border-color: #bfc9d7; background: transparent; color: var(--blue-dark); }
.button-outline:not(:disabled):hover { background: #edf2fa; border-color: var(--blue); }
.button-outline:disabled { color: var(--muted); }
.button-lime { background: var(--lime); color: #17243a; }
.button-lime:not(:disabled):hover { background: #f0ffa1; }
.button-lime:disabled { background: #dce7a6; color: #33404c; }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 0.93rem;
}
.text-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(22px, 3.3vw, 58px);
  padding-block: clamp(28px, 3vw, 46px) clamp(54px, 5.4vw, 84px);
}
.hero-copy { padding-block: 15px 26px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.eyebrow-line { display: inline-block; flex: 0 0 19px; height: 3px; border-radius: 3px; background: #278d83; }
h1, h2 { font: 400 1rem/0.99 var(--serif); letter-spacing: -0.027em; }
h1 { margin-top: 20px; font-size: clamp(4.7rem, 8.15vw, 8rem); }
h1 em, h2 em { color: var(--blue); font-weight: 400; }
.hero h1 em { position: relative; z-index: 0; display: inline-block; }
.hero-self { white-space: nowrap; }
.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: 0.025em;
  bottom: 0.045em;
  left: 0.105em;
  height: 0.115em;
  border-radius: 58% 55% 46% 43%;
  background: var(--lime);
  content: "";
  transform: rotate(-1.7deg);
}
.hero-intro { max-width: 390px; margin-top: 26px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.245rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }

.hero-stage {
  position: relative;
  isolation: isolate;
  height: clamp(500px, 46.4vw, 620px);
  overflow: hidden;
  border-radius: 25px;
  background: #2c528e;
}
.hero-background { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
.hero-stage::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, #071b4047, transparent 42%, #061c4c36); content: ""; }
.stage-caption {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #ffffff4d;
  border-radius: 50px;
  background: #10294ab8;
  color: white;
  font-size: 0.72rem;
  font-weight: 650;
}
.stage-caption span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.phone {
  --phone-w: clamp(234px, 21.1vw, 287px);
  position: absolute;
  z-index: 0;
  top: 51%;
  left: 51%;
  width: var(--phone-w);
  height: calc(var(--phone-w) * 1.88);
  padding: 6px;
  border: 1px solid #8493aa;
  border-radius: clamp(26px, 2.9vw, 39px);
  background: linear-gradient(140deg, #56657c, #102033 30%, #0c1625 77%, #647085);
  box-shadow: 8px 13px 24px #0a1e5057, 16px 35px 55px #0b1b3c93, inset 0 0 0 2px #121b29;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(0.66rem, 1vw, 0.8375rem);
  line-height: 1.36;
}

.phone::before, .phone::after { position: absolute; width: 3px; border-radius: 3px; background: #8592a9; content: ""; }
.phone::before { height: 32px; top: 24%; left: -3px; }
.phone::after { height: 43px; top: 28%; right: -3px; }
.phone-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: inherit; background: #f7f9fe; box-shadow: inset 0 0 0 1px white; }
.phone-status { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 9px; font-size: 0.84em; font-weight: 750; }
.phone-island { position: absolute; top: 7px; left: 50%; width: 28%; height: 15px; border-radius: 30px; background: #101927; transform: translateX(-50%); }
.status-symbols { display: flex; gap: 4px; align-items: center; }
.signal { width: 9px; height: 8px; background: var(--ink); clip-path: polygon(0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 30%, 75% 30%, 75% 0, 100% 0, 100% 100%, 0 100%); }
.battery { width: 12px; height: 6px; border: 1px solid #15263b; border-radius: 2px; background: #15263b; box-shadow: inset 0 0 0 1px white; }
.phone-heading { display: grid; grid-template-columns: 25px 1fr 25px; align-items: center; gap: 5px; padding: 0.75em 1em; border-bottom: 1px solid #e6eaf0; text-align: center; }
.phone-heading b { display: block; font-size: 1.27em; letter-spacing: -0.035em; }
.phone-heading small { color: #4a5f7c; font-size: 0.82em; }
.phone-back, .phone-more { display: grid; place-items: center; }

.phone-back .icon { transform: rotate(180deg); }
.phone-more { font-size: 1.35em; font-weight: 800; line-height: 0.9; }
.phone-work { flex: 1; padding: 1em; }
.phone-exercise {
  padding: 0.86em 0.9em;
  border: 1px solid #dce6f7;
  border-radius: 11px;
  background-color: #edf3fc;
  background-image: linear-gradient(#b5c6e03a 1px, transparent 1px), linear-gradient(90deg, #b5c6e03a 1px, transparent 1px);
  background-size: 10px 10px;
}
.phone-exercise span { color: #365785; font-size: 0.85em; font-weight: 650; }
.phone-exercise b { display: block; margin-top: 0.05em; color: #143461; font-size: 2.04em; letter-spacing: -0.05em; }
.phone-tutor { display: flex; align-items: flex-start; gap: 0.6em; margin-top: 1.25em; }
.phone-tutor img { width: 1.8em; height: 1.8em; border-radius: 6px; }
.phone-tutor b { display: block; margin-bottom: 0.15em; font-size: 0.86em; }
.phone-student { width: 78%; margin: 1.05em 0 1.05em auto; padding: 0.85em; border-radius: 11px 11px 3px 11px; background: #e2ebfd; }
.phone-hint { padding: 0.8em; border: 1px solid #cbe7dd; border-radius: 11px; background: #e5f5ee; }
.phone-hint > span { display: flex; align-items: center; gap: 0.4em; color: #23574c; font-size: 0.84em; font-weight: 800; }
.phone-hint p { margin-top: 0.3em; }
.phone-compose {
  display: flex;
  min-height: 2.85em;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0.9em;
  padding: 0.35em 0.35em 0.35em 0.85em;
  border: 1px solid #e1e5ed;
  border-radius: 25px;
  background: white;
  color: #5b697c;
  font-size: 0.85em;
}
.phone-send { display: grid; width: 2em; height: 2em; place-items: center; border-radius: 100%; background: var(--blue); color: white; }
.phone-home { width: 34%; height: 3px; margin: 0.8em auto 0.4em; border-radius: 10px; background: #192335; }

.notification {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px 10px 10px;
  border: 1px solid #ffffffae;
  border-radius: 15px;
  background: #fffffff2;
  box-shadow: 0 7px 31px #10285944;
  backdrop-filter: blur(12px);
  color: var(--ink);
  line-height: 1.26;
}
.notification strong, .notification small { display: block; }
.notification strong { font-size: 0.83rem; letter-spacing: -0.015em; }
.notification small { margin-top: 2px; color: #45546a; font-size: 0.686rem; }
.notification-icon { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 9px; font-size: 1.2rem; }
.note-icon { background: #e2edff; color: #184a8c; }
.success-icon { background: #e5f694; color: #284424; }
.notification-note { top: 23%; right: 5%; transform: rotate(5deg); }
.notification-success { bottom: 19%; left: 4%; transform: rotate(-5deg); }

.section { padding-block: clamp(62px, 7vw, 104px); }
.section h2, .closing h2 { font-size: clamp(3.55rem, 6.1vw, 6.2rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px 42px; margin-bottom: 33px; }
.section-heading > p, .parent-copy > p:not(.eyebrow) { max-width: 360px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

.method-section { background: #f2f4f7; border-block: 1px solid #e8ebf0; }
.method-layout { display: grid; grid-template-columns: minmax(245px, 0.94fr) minmax(0, 2.1fr); gap: 15px; }
.method-tabs { align-self: center; display: grid; gap: 8px; }
.method-tabs button {
  display: grid;
  grid-template-columns: 37px 1fr 0.9em;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  transition: background-color 160ms, border-color 160ms;
}
.method-tabs button:hover { background: #e8edf5; }
.method-tabs button[aria-selected="true"] { border-color: #d6e1f2; background: white; box-shadow: 0 4px 12px #1638620b; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #c9d3e3; border-radius: 50%; color: #385273; font-size: 0.88rem; font-weight: 750; }
[aria-selected="true"] .step-number { border-color: var(--blue); background: var(--blue); color: white; }
.method-tabs strong { display: block; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.3; }
.method-tabs small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.81rem; line-height: 1.37; }
.method-tabs .icon { color: #315d94; }
.method-board {
  position: relative;
  display: grid;
  min-height: 395px;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #dce4f1;
  border-radius: 24px;
  background-color: #e3ebfa;
  background-image: radial-gradient(ellipse at 70% 20%, #f8faffc7, transparent 62%), linear-gradient(#a1b7db4f 1px, transparent 1px), linear-gradient(90deg, #a1b7db4f 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}
.method-panel { width: min(100%, 504px); animation: arrive 240ms ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.window { overflow: hidden; border: 1px solid #c3d1e6; border-radius: 16px; background: #fbfdff; box-shadow: 0 15px 32px #273d6120; }
.window-bar { display: flex; align-items: center; justify-content: center; position: relative; min-height: 40px; padding: 6px 60px; border-bottom: 1px solid #e1e8f1; background: #f4f7fc; color: #506685; font-size: 0.78rem; font-weight: 730; }
.window-dots { position: absolute; left: 13px; display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 100%; background: #c5d6ed; }
.window-dots i:nth-child(2) { background: #abc5e9; }
.window-dots i:nth-child(3) { background: #8cadde; }
.window-content { padding: 22px 24px 19px; }
.window-title { display: flex; gap: 13px; align-items: center; margin-bottom: 17px; }
.window-title h3 { font-size: 1.28rem; font-weight: 790; line-height: 1.22; letter-spacing: -0.035em; }
.window-title p { margin-top: 3px; color: #52637b; font-size: 0.84rem; }
.tile-icon { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border-radius: 11px; background: #e4edfc; color: #214b89; font-size: 1.35rem; }
.tile-mint { background: var(--mint); color: #235f53; }
.tile-yellow { background: #eaf2af; color: #3e4b24; }
.paper {
  background-color: #f1f6ff;
  background-image: linear-gradient(#cadcf575 1px, transparent 1px), linear-gradient(90deg, #cadcf575 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
}
.exercise-paper { min-height: 99px; padding: 13px 16px 10px; color: #254877; }
.exercise-paper span { font-size: 0.75rem; font-weight: 750; }
.exercise-paper strong { display: block; margin-top: 1px; font-size: 1.95rem; line-height: 1.25; letter-spacing: -0.065em; }
.window-action { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 10px; color: var(--blue); font-size: 0.87rem; font-weight: 760; }
.window-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.example-chat { display: flex; flex-direction: column; gap: 6px; min-height: 99px; font-size: 0.82rem; }
.example-chat p { max-width: 94%; padding: 7px 10px; border: 1px solid #dce7fa; border-radius: 9px; background: var(--blue-light); }
.example-chat p:first-child { align-self: end; }
.example-chat p:last-child { align-self: start; border-color: #cde7db; background: #e6f6ee; }
.example-chat b { margin-right: 3px; }

.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e3d7; border-radius: 24px; background: #f2f5e6; }
.feature-copy { flex: 1; padding: clamp(24px, 3vw, 42px) clamp(22px, 3vw, 42px) 10px; }
.feature-copy h3 { margin-top: 15px; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 750; line-height: 1.16; letter-spacing: -0.05em; }
.feature-copy p { max-width: 410px; margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.feature-progress { border-color: #e0e6ef; background: #ecf2fa; }
.flashcard-stage, .progress-stage { display: grid; place-items: center; min-height: 243px; padding: 32px 22px 37px; }
.flashcard-stage { background: radial-gradient(ellipse at 50% 100%, #d9e6a866, transparent 68%); }
.flashcard {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 334px);
  min-height: 153px;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid #d9dec2;
  border-radius: 15px;
  background: #fefef5;
  box-shadow: 0 6px 16px #45521a1a;
  text-align: left;
  transform: rotate(-3deg);
  transition: transform 220ms, background-color 220ms;
}
.flashcard::before {
  position: absolute;
  z-index: -2;
  inset: 3px -7px -6px 6px;
  border: 1px solid #c7d39b;
  border-radius: 15px;
  background: #e1ebba;
  content: "";
  transform: rotate(6deg);
}
.flashcard::after { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: inherit; content: ""; }
.flashcard:hover, .flashcard:focus-visible, .flashcard[aria-pressed="true"] { transform: rotate(0deg) translateY(-2px); }
.flashcard[aria-pressed="true"] { background: #eef5d2; }
.flashcard-category { display: flex; align-items: center; gap: 6px; color: #41522d; font-size: 0.74rem; font-weight: 730; }
.flashcard-content { display: block; font: 400 clamp(1.45rem, 2.6vw, 1.9rem)/1 var(--serif); }
.flashcard-action { display: flex; gap: 6px; justify-content: flex-end; align-items: center; color: #3d562a; font-size: 0.73rem; font-weight: 750; }
.progress-stage { background: radial-gradient(ellipse at 50% 100%, #9bb8e026, transparent 70%); }
.progress-preview { width: min(100%, 346px); padding: 14px 14px 8px; border: 1px solid #d0dcee; border-radius: 15px; background: #fcfdff; box-shadow: 0 7px 16px #233d6e16; }
.progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 5px 9px; }
.progress-heading strong { font-size: 1.02rem; letter-spacing: -0.03em; }
.progress-heading > span { color: #576984; font-size: 0.7rem; font-weight: 650; }
.progress-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 8px 4px; border-top: 1px solid #e8ecf2; font-size: 0.82rem; font-weight: 650; }
.progress-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-done { background: #4aa98f; }
.dot-working { background: #638dd4; }
.dot-review { background: #dcaa52; }
.progress-tag { padding: 2px 8px; border-radius: 30px; font-size: 0.68rem; white-space: nowrap; }
.done { background: #e2f4eb; color: #225849; }
.working { background: #e6efff; color: #274d86; }
.review { background: #fcf0db; color: #674718; }

.parents-section { background: #ecefe2; }
.parent-layout { display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: clamp(32px, 6vw, 90px); }
.parent-photo { overflow: hidden; border-radius: 23px; background: #d2c6af; }
.parent-photo img { width: 100%; height: auto; }
.parent-copy h2 { max-width: 500px; margin: 14px 0 18px; }
.parent-list { display: grid; gap: 11px; margin: 25px 0 0; padding: 0; list-style: none; }
.parent-list li { display: flex; align-items: center; gap: 10px; max-width: 380px; padding-top: 11px; border-top: 1px solid #ccd4c4; font-size: 0.94rem; font-weight: 690; }
.parent-list .icon { color: #285b55; font-size: 1.15rem; }

.faq-section { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 24px 55px; align-items: start; }
.faq-section h2 { max-width: 420px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 13px; cursor: pointer; list-style: none; font-size: 1.02rem; font-weight: 730; letter-spacing: -0.025em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue); }
.faq-list p { max-width: 545px; padding: 0 38px 18px 0; color: var(--muted); font-size: 0.95rem; }
.faq-plus { position: relative; flex: 0 0 27px; height: 27px; border: 1px solid #cad5e4; border-radius: 50%; color: var(--blue); }
.faq-plus::before, .faq-plus::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; border-radius: 3px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-plus { background: #e6eef8; }
details[open] .faq-plus::after { transform: translate(-50%, -50%); }

.closing { margin-bottom: 22px; }
.closing-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  border-radius: 25px;
  background-color: #102a53;
  background-image: radial-gradient(ellipse at 90% 0%, #285995 0%, transparent 74%), linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: #fff;
}
.closing h2 em { color: var(--lime); }
.closing p { margin-top: 13px; color: #dde7f7; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 97px; }
.site-footer .brand { font-size: 1.65rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer small { color: var(--muted); font-size: 0.8rem; }

.demo-dialog {
  width: min(calc(100% - 28px), 568px);
  max-height: calc(100% - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid #cdd9e9;
  border-radius: 23px;
  background: #fcfcf8;
  color: var(--ink);
  box-shadow: 0 25px 85px #080e1c60;
}
.demo-dialog[open] { animation: arrive 180ms ease-out; }
.demo-dialog::backdrop { background: #10213cb8; backdrop-filter: blur(4px); }
.demo-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 9px 20px; border-bottom: 1px solid #e5ebf4; background: #f1f5fc; }
.demo-brand { display: flex; align-items: center; gap: 9px; color: var(--blue-dark); font-weight: 780; letter-spacing: -0.03em; }
.demo-brand img { border-radius: 9px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d0dced; border-radius: 50%; background: transparent; font-size: 1.25rem; }
.icon-button:hover { background: #e3ebf8; }
.demo-content { padding: 24px 26px 26px; }
.demo-progress { display: flex; gap: 5px; margin-bottom: 15px; }
.demo-progress span { width: 100%; height: 4px; border-radius: 10px; background: #e3e9f1; }
.demo-progress .is-complete { background: #23766d; }
.demo-progress .is-current { background: var(--blue); }
.demo-step { color: #465f7d; font-size: 0.8rem; font-weight: 750; }
.demo-content h2 { margin-top: 7px; font-size: clamp(2rem, 7.5vw, 3.05rem); line-height: 1.05; }
.demo-content h2:focus { outline: none; }
.demo-equation { margin-top: 14px; padding: 7px 12px; color: #173b72; font-size: 1.53rem; font-weight: 780; letter-spacing: -0.045em; }
#demo-answers:not(:empty) { display: grid; gap: 7px; margin-top: 14px; }
.demo-option { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 8px 11px; border: 1px solid #d5deec; border-radius: 10px; background: white; cursor: pointer; font-size: 0.92rem; }
.demo-option:has(:checked) { border-color: #819fc9; background: #eef4ff; }
.demo-option:has(:disabled) { cursor: default; }
.demo-option input { accent-color: var(--blue); margin: 0 2px 0 1px; }
.demo-answer-text { display: flex; align-items: center; gap: 9px; }
.demo-answer-text input { width: min(150px, 100%); min-height: 43px; padding: 7px 10px; border: 1px solid #879bb7; border-radius: 9px; background: #fff; }
.demo-feedback:not(:empty) { margin-top: 11px; padding: 8px 10px; border-radius: 9px; background: #e7f5ec; color: #245545; font-size: 0.87rem; }
.demo-feedback[data-kind="error"] { background: #f8e8df; color: #79341e; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; margin-top: 16px; }
.demo-submit { margin-left: auto; }
.demo-finish p { margin: 13px 0 17px; color: var(--muted); }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 64px); }
  .header-inner { gap: 18px; }
  .notification-note { right: 3%; }
  .notification-success { left: 3%; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 37px 50px; }
  .hero-copy { padding-block: 4px 0; }
  h1 { font-size: clamp(4.4rem, 12vw, 6.8rem); }
  .hero-intro { max-width: 520px; margin-top: 18px; }
  .hero-stage { height: clamp(440px, 73vw, 550px); }
  .phone { --phone-w: clamp(222px, 39vw, 264px); font-size: clamp(0.64rem, 1.82vw, 0.8rem); }
  .notification-note { right: 13%; }
  .notification-success { left: 12%; }
  .parent-layout { gap: 28px; }
  .method-layout { grid-template-columns: minmax(195px, 0.82fr) minmax(0, 1.18fr); }
  .method-tabs button { gap: 8px; padding: 10px; grid-template-columns: 31px 1fr 0.78em; }
  .step-number { width: 30px; height: 30px; }
  .method-board { min-height: 340px; padding: 18px; }
  .window-content { padding-inline: 16px; }
}
@media (max-width: 760px) {
  [id] { scroll-margin-top: 75px; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 63px; gap: 9px; }
  .brand { font-size: 1.72rem; }
  .brand img { width: 31px; height: 31px; }
  .header-cta { grid-column: 2; grid-row: 1; gap: 6px; font-size: 0.82rem; padding-inline: 0.78rem; }
  .main-nav { grid-column: 1 / -1; order: 4; flex-wrap: wrap; gap: 7px 17px; padding: 0 0 9px; }
  .nav-ready .header-inner { grid-template-columns: 1fr minmax(0, max-content) auto; }
  .nav-ready .main-nav { display: none; }
  .nav-ready .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open a { padding: 11px 2px; border-top: 1px solid #e2e6ed; }
  .menu-toggle { display: grid; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--blue-dark); font-size: 1.35rem; }
  .menu-toggle[aria-expanded="true"] { background: #e9effa; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 36px); }
  .button-small { font-size: 0.82rem; padding-inline: 0.78rem; }
  .hero { padding-top: 30px; }
  h1 { margin-top: 15px; font-size: clamp(3.65rem, 13.55vw, 5.75rem); }
  .hero-intro { font-size: 1.05rem; }
  .hero-actions { gap: 5px 14px; margin-top: 22px; }
  .hero-actions .button { min-height: 48px; padding-inline: 0.96rem; }
  .hero-actions .text-button { font-size: 0.84rem; }
  .hero-stage { height: clamp(425px, 106vw, 520px); border-radius: 19px; }
  .stage-caption { top: 12px; left: 12px; }
  .phone { --phone-w: clamp(208px, 52vw, 244px); font-size: clamp(0.64rem, 2.45vw, 0.73rem); }
  .notification { gap: 7px; padding: 7px 9px 7px 7px; border-radius: 11px; }
  .notification-icon { flex-basis: 28px; height: 28px; border-radius: 7px; font-size: 0.95rem; }
  .notification strong { font-size: 0.74rem; }
  .notification small { font-size: 0.59rem; }
  .notification-note { top: 23%; right: 3%; }
  .notification-success { left: 3%; bottom: 17%; }
  .section { padding-block: 53px; }
  .section-heading { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 23px; }
  .section h2, .closing h2 { font-size: clamp(3.2rem, 10.5vw, 4.9rem); }
  .section-heading > p, .parent-copy > p:not(.eyebrow) { font-size: 1rem; }
  .method-layout, .features-grid, .parent-layout, .faq-section { grid-template-columns: 1fr; }
  .method-tabs { gap: 4px; }
  .method-tabs button { min-height: 64px; gap: 12px; }
  .method-board { min-height: 312px; padding: 14px; border-radius: 17px; }
  .window-content { padding: 16px 13px 10px; }
  .window-title { gap: 9px; }
  .window-title h3 { font-size: 1.15rem; }
  .window-title p { font-size: 0.78rem; }
  .feature-card { border-radius: 19px; }
  .flashcard-stage, .progress-stage { min-height: 215px; padding-block: 26px; }
  .parent-photo { border-radius: 17px; }
  .faq-section { row-gap: 20px; }
  .faq-list summary { min-height: 57px; font-size: 0.97rem; }
  .closing-content { align-items: flex-start; flex-direction: column; border-radius: 18px; }
  .site-footer { min-height: 100px; flex-wrap: wrap; padding-block: 14px 20px; }
  .site-footer nav { flex: 1 1 100%; order: 2; gap: 7px 15px; }
  .site-footer nav a { font-size: 0.79rem; }
}
@media (max-width: 367px) {
  .shell { width: calc(100% - 28px); }
  .nav-ready .header-inner { gap: 4px; }
  .header-cta { padding-inline: 0.5rem; font-size: 0.75rem; }
  .header-cta .icon { display: none; }
  h1 { font-size: 3.42rem; }
  .hero-actions { gap: 0 11px; }
  .demo-header { padding-inline: 13px; }
  .demo-content { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
