:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6475;
  --paper: #f7f9fd;
  --line: #dde5f1;
  --primary: #3157ff;
  --primary-2: #2039b7;
  --cyan: #00a3ff;
  --teal: #10b7a7;
  --coral: #ff5f57;
  --amber: #f5b335;
  --green: var(--primary);
  --green-2: var(--primary-2);
  --panel: #ffffff;
  --soft: #eef4ff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff 0, var(--paper) 560px),
    var(--paper);
  overflow-x: hidden;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  letter-spacing: 0;
  box-shadow: inset 0 -4px 0 var(--coral);
}

.brand-name {
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav .nav-line-login {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: #06c755;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(6, 199, 85, 0.18);
}

.nav .nav-line-login:hover {
  color: #fff;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: 56px 5vw 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 249, 253, 0.98) 0%, rgba(247, 249, 253, 0.92) 35%, rgba(247, 249, 253, 0.35) 66%, rgba(247, 249, 253, 0.08) 100%),
    linear-gradient(180deg, rgba(49, 87, 255, 0.08), rgba(255, 95, 87, 0.09) 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 62px;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: 0;
}

.lead {
  max-width: min(620px, 100%);
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-break: anywhere;
}

.lead-mobile,
.hero-title-mobile {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button.primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 16px 30px rgba(49, 87, 255, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.button.line-button {
  color: #fff;
  background: #06c755;
  border-color: #06c755;
  box-shadow: 0 16px 30px rgba(6, 199, 85, 0.24);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.11);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(221, 229, 241, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  font-size: 14px;
  font-weight: 750;
}

.hero-stats strong {
  color: var(--coral);
  font-size: 18px;
}

.strip {
  padding: 22px 5vw;
  color: #fff;
  background: linear-gradient(90deg, var(--ink), #1a2250 58%, #1f2937);
}

.strip p {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 750;
}

.section {
  padding: 82px 5vw;
}

.program-section {
  background: #fff;
}

.section-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}

.program {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.05);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.program::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.program:nth-child(2n)::before {
  background: var(--coral);
}

.program:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 87, 255, 0.28);
  box-shadow: var(--shadow);
}

.program-disabled {
  opacity: 0.76;
}

.program-disabled::before {
  background: var(--line);
}

.program-disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.05);
}

.program p,
.why-list p,
.contact p,
.trust-card p,
.course-grid p,
.system-grid p,
.faq-grid p,
.policy-card p,
.site-footer p,
.policy-document p,
.policy-document li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.trust-section {
  background: var(--paper);
}

.trust-grid,
.course-grid,
.policy-grid,
.system-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-card,
.course-grid article,
.policy-card,
.system-grid article,
.faq-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.05);
}

.trust-card span,
.policy-card span,
.system-grid span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-card h3,
.course-grid h3,
.policy-card h3,
.system-grid h3,
.faq-grid h3 {
  margin-bottom: 0;
}

.system-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.7)),
    var(--paper);
  border-top: 1px solid var(--line);
}

.system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-grid article {
  min-height: 250px;
  border-top: 4px solid var(--primary);
}

.system-grid article:nth-child(2) {
  border-top-color: var(--cyan);
}

.system-grid article:nth-child(3) {
  border-top-color: var(--teal);
}

.system-grid article:nth-child(4) {
  border-top-color: var(--coral);
}

.course-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-grid article {
  min-height: 240px;
}

.course-grid article:nth-child(2) {
  border-top: 4px solid var(--cyan);
}

.course-grid article:nth-child(3) {
  border-top: 4px solid var(--coral);
}

.course-grid article:nth-child(4) {
  border-top: 4px solid var(--teal);
}

.policy-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.faq-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-card {
  min-height: 210px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.policy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 87, 255, 0.32);
  box-shadow: var(--shadow);
}

.program-tag {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-line {
  display: block;
  margin: 6px 0 20px;
  color: var(--ink);
  font-size: 18px;
}

.text-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.text-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.apply-section {
  background:
    linear-gradient(115deg, rgba(49, 87, 255, 0.09), rgba(0, 163, 255, 0.06) 45%, rgba(255, 95, 87, 0.08)),
    var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(221, 229, 241, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-box {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-top: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(49, 87, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-box h3 {
  margin-bottom: 8px;
}

.payment-box p {
  color: var(--muted);
}

.payment-box strong,
.payment-box a {
  color: var(--primary);
}

.line-signup-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  max-width: 980px;
}

.line-signup-copy,
.signup-steps article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 229, 241, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.line-signup-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.line-signup-copy h3 {
  margin-bottom: 0;
}

.line-signup-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signup-steps article {
  padding: 18px;
}

.signup-steps span {
  color: #06c755;
  font-size: 13px;
  font-weight: 900;
}

.signup-steps h3 {
  margin-top: 8px;
  font-size: 20px;
}

.signup-steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.share-link {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-link input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
}

.selected-package {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(6, 199, 85, 0.32);
  border-radius: 8px;
}

.selected-package strong {
  color: var(--ink);
}

.selected-package p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-form,
.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-form label,
.payment-form label,
.access-form label,
.login-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.payment-form input,
.payment-form textarea,
.access-form input,
.login-card input,
.lead-card select,
.lead-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  outline: none;
}

.lead-form textarea,
.payment-form textarea,
.lead-card textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.payment-form input:focus,
.payment-form textarea:focus,
.access-form input:focus,
.login-card input:focus,
.lead-card select:focus,
.lead-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 87, 255, 0.14);
}

.wide {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#formStatus {
  margin: 0;
  color: var(--primary);
  font-weight: 750;
}

#formStatus.error,
#paymentStatus.error,
#accessStatus.error {
  color: #b42318;
}

#paymentStatus,
#accessStatus {
  margin: 0;
  color: var(--primary);
  font-weight: 750;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
}

.why-list {
  counter-reset: roadmap;
  display: grid;
  gap: 12px;
}

.why-list p {
  counter-increment: roadmap;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.why-list p::before {
  content: counter(roadmap, decimal-leading-zero);
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 32px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 5vw 5vw;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(49, 87, 255, 0.28), rgba(255, 95, 87, 0.22)),
    var(--ink);
  border-radius: 8px;
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact .button.primary {
  color: var(--primary);
  background: #fff;
  border-color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 5vw;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 640px;
  margin: 10px 0 0;
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--primary);
  font-weight: 850;
}

.policy-body {
  min-height: 100vh;
  background: var(--paper);
}

.policy-main {
  padding: 64px 5vw 96px;
}

.policy-document {
  max-width: 900px;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-document h1 {
  font-size: 58px;
}

.policy-document h2 {
  margin-top: 34px;
  font-size: 32px;
}

.policy-document ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.policy-document a {
  color: var(--primary);
  font-weight: 850;
}

.admin-body {
  min-height: 100vh;
  background: var(--paper);
}

.admin-main {
  padding: 42px 5vw 72px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.login-card,
.metric,
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-card {
  display: grid;
  gap: 16px;
  max-width: 460px;
  padding: 24px;
}

.login-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.automation-panel,
.payment-panel,
.lesson-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.automation-panel h3,
.payment-panel h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.automation-grid,
.payment-grid,
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.automation-card,
.payment-card,
.lesson-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 176px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.automation-card.due,
.payment-card.due {
  background: #fff7ed;
  border-color: rgba(240, 184, 77, 0.6);
}

.automation-card strong,
.automation-card span,
.automation-card a,
.payment-card strong,
.payment-card span,
.payment-card a,
.lesson-card strong,
.lesson-card span,
.lesson-card a {
  overflow-wrap: anywhere;
}

.automation-card p,
.payment-card p,
.lesson-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.lesson-panel p,
.lesson-reader p,
.exercise-card p,
.result-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mini-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.automation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.automation-links a {
  color: var(--primary);
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learn-main {
  display: grid;
  gap: 18px;
}

.learn-hero {
  display: grid;
  align-items: end;
  min-height: 260px;
  padding: 36px;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(49, 87, 255, 0.12), rgba(6, 199, 85, 0.08) 48%, rgba(255, 95, 87, 0.1)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.learn-hero h1 {
  max-width: 820px;
  font-size: 46px;
}

.learn-hero .lead {
  max-width: 680px;
  font-size: 18px;
}

.learn-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.summary-card strong {
  font-size: 22px;
}

.access-card {
  max-width: 980px;
}

.fallback-access {
  align-content: start;
}

.fallback-access summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.fallback-access[open] summary {
  margin-bottom: 14px;
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.55fr);
  gap: 18px;
  padding: 20px;
}

.lead-card.lead-due {
  border-color: rgba(240, 184, 77, 0.75);
  box-shadow: 0 16px 44px rgba(240, 184, 77, 0.13);
}

.lead-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lead-title h3 {
  margin: 0;
  font-size: 22px;
}

.status-pill {
  padding: 5px 9px;
  color: var(--primary-2);
  background: #e8edff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.priority-pill {
  padding: 5px 9px;
  color: #19406d;
  background: #e8f0ff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.priority-pill.warm {
  color: #824100;
  background: #fff2d7;
}

.lead-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}

.lead-meta a {
  color: var(--primary);
  font-weight: 850;
}

.lead-actions {
  display: grid;
  gap: 10px;
}

.lead-actions .button {
  width: 100%;
}

.payment-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-steps span {
  padding: 8px 10px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.payment-steps .active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

#payStatus {
  display: grid;
  gap: 8px;
  margin: 0;
}

.qr-box {
  display: grid;
  gap: 14px;
}

.qr-image {
  width: min(280px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.english-preview {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.72)),
    #fff;
}

.mission-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 163, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f4fbff 52%, #fff8f2);
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}

.mission-head,
.mission-prompt,
.mission-stage {
  display: flex;
  gap: 14px;
}

.mission-head {
  align-items: flex-start;
  justify-content: space-between;
}

.mission-head p {
  margin: 0;
  color: var(--muted);
}

.mission-score {
  display: grid;
  place-items: center;
  min-width: 78px;
  padding: 10px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
}

.mission-score span {
  font-size: 22px;
  font-weight: 950;
}

.mission-score strong {
  font-size: 12px;
  text-transform: uppercase;
}

.mission-prompt {
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mission-prompt p {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.sound-button {
  min-width: 72px;
  min-height: 44px;
  color: #fff;
  background: #06c755;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(6, 199, 85, 0.22);
  animation: pulse-soft 1.8s ease-in-out infinite;
}

.sound-button.start-button {
  position: relative;
  min-width: 164px;
  min-height: 58px;
  overflow: hidden;
  background: linear-gradient(135deg, #3157ff, #10b7a7 62%, #06c755);
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 16px;
  letter-spacing: 0;
  box-shadow: 0 18px 42px rgba(49, 87, 255, 0.28), 0 0 0 8px rgba(49, 87, 255, 0.08);
  animation: start-button-pop 1.8s ease-in-out infinite;
}

.sound-button.start-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transform: rotate(16deg);
  animation: start-shine 2.4s ease-in-out infinite;
}

.sound-button.start-button:focus-visible {
  outline: 4px solid rgba(49, 87, 255, 0.28);
  outline-offset: 3px;
}

.sound-button:focus-visible,
.mission-item:focus-visible {
  outline: 4px solid rgba(49, 87, 255, 0.32);
  outline-offset: 3px;
}

.mission-stage {
  align-items: stretch;
  min-height: 300px;
}

.school-bag {
  position: relative;
  display: grid;
  flex: 0 0 42%;
  align-content: end;
  justify-items: center;
  min-height: 300px;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(155deg, #3157ff, #162a91);
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px 28px 14px 14px;
  box-shadow: inset 0 -22px 40px rgba(0, 0, 0, 0.16), 0 20px 46px rgba(49, 87, 255, 0.2);
}

.school-bag::before {
  content: "";
  position: absolute;
  top: 28px;
  width: 45%;
  height: 42px;
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}

.school-bag > span {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 950;
}

.bag-ready {
  outline: 4px solid rgba(6, 199, 85, 0.32);
}

.bag-pop {
  animation: bag-pop 420ms ease;
}

.packed-items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.packed-items span {
  padding: 6px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.mission-items {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mission-item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 140px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.mission-item:disabled {
  opacity: 0.5;
  cursor: default;
}

.item-emoji {
  font-size: 38px;
}

.mission-item strong {
  font-size: 18px;
}

.mission-item.correct {
  animation: item-correct 520ms ease;
}

.mission-item.wrong {
  animation: item-wrong 420ms ease;
}

.object-feedback-bubble {
  position: absolute;
  inset: 8px 8px auto auto;
  z-index: 2;
  display: grid;
  min-width: 86px;
  padding: 8px 10px;
  color: #7a2418;
  text-align: left;
  background: #fff4ed;
  border: 1px solid rgba(255, 95, 87, 0.34);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(122, 36, 24, 0.14);
  pointer-events: none;
  animation: wrong-bubble-pop 1700ms ease both;
}

.object-feedback-bubble strong {
  font-size: 15px;
  line-height: 1.05;
}

.object-feedback-bubble small {
  color: #9a3412;
  font-size: 12px;
  font-weight: 850;
}

.mission-flyer {
  position: fixed;
  z-index: 60;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(49, 87, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.22);
  pointer-events: none;
}

.mission-flyer .object-image {
  width: min(112px, 80%);
  height: 72px;
}

.mission-flyer strong {
  font-size: 15px;
}

.mission-flyer small {
  display: none;
}

.mission-feedback {
  padding: 12px 14px;
  color: var(--primary);
  background: #eef4ff;
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 8px;
  font-weight: 900;
}

.mission-feedback span,
.mission-feedback strong {
  display: block;
}

.mission-feedback span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.mission-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 163, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f4fbff 52%, #fff8f2);
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 8px;
}

.mission-preview-card h3 {
  margin-bottom: 6px;
}

.mission-preview-card p {
  margin: 0;
  color: var(--muted);
}

.unit-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.unit-roadmap article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.unit-roadmap article:nth-child(1) {
  border-top: 4px solid var(--primary);
}

.unit-roadmap article:nth-child(2) {
  border-top: 4px solid #06c755;
}

.unit-roadmap article:nth-child(3) {
  border-top: 4px solid var(--amber);
}

.unit-roadmap h3 {
  margin-bottom: 0;
}

.unit-roadmap p {
  color: var(--muted);
  line-height: 1.5;
}

.unit-roadmap .button {
  align-self: end;
}

.coming-soon-card {
  opacity: 0.78;
}

.mission-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 163, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 95, 87, 0.1), transparent 28%),
    var(--paper);
}

.mission-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5vw;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.exit-short {
  display: none;
}

.mission-main {
  min-height: calc(100vh - 72px);
  padding: 22px 5vw 34px;
}

.mission-screen {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 128px);
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mission-screen.is-transitioning .mission-item:not(:disabled) {
  pointer-events: none;
}

.mission-screen.awaiting-start .mission-item:not(:disabled) {
  pointer-events: none;
}

.mission-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mission-screen h1 {
  max-width: 720px;
  font-size: 54px;
}

.mission-screen-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.mission-score-large {
  min-width: 96px;
}

.mission-prompt-large {
  align-items: center;
  padding: 16px;
}

.mission-screen.is-speaking .mission-prompt-large {
  border-color: rgba(6, 199, 85, 0.36);
  box-shadow: 0 0 0 5px rgba(6, 199, 85, 0.08);
}

.mission-screen.is-speaking .sound-button:not(.start-button) {
  animation: speaker-pulse 920ms ease-in-out infinite;
}

.mission-prompt-large > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mission-prompt-large span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mission-prompt-large p {
  font-size: 32px;
  overflow-wrap: anywhere;
}

.mission-feedback-large {
  min-height: 58px;
  font-size: 17px;
}

.correct-burst {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(238, 244, 255, 0.78), rgba(255, 255, 255, 0.08) 62%, transparent 72%);
}

.correct-burst-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: min(360px, 88vw);
  padding: 24px 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #f4fff8 48%, #fff7e6);
  border: 2px solid rgba(6, 199, 85, 0.42);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.correct-burst-card strong {
  color: #047a34;
  font-size: 42px;
  line-height: 1;
}

.correct-burst-card > span:last-child {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.burst-running .correct-burst-card {
  animation: correct-pop 1800ms cubic-bezier(0.2, 1.35, 0.22, 1) both;
}

.burst-confetti,
.burst-confetti i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.burst-confetti i {
  width: 10px;
  height: 18px;
  border-radius: 3px;
  opacity: 0;
  animation: confetti-pop 1200ms ease-out both;
}

.burst-confetti i:nth-child(1) {
  left: 20%;
  top: 28%;
  background: var(--primary);
  --tx: -78px;
  --ty: -84px;
  --rot: -34deg;
}

.burst-confetti i:nth-child(2) {
  left: 36%;
  top: 18%;
  background: var(--amber);
  --tx: -34px;
  --ty: -96px;
  --rot: 26deg;
}

.burst-confetti i:nth-child(3) {
  left: 52%;
  top: 18%;
  background: var(--coral);
  --tx: 30px;
  --ty: -100px;
  --rot: -18deg;
}

.burst-confetti i:nth-child(4) {
  left: 70%;
  top: 30%;
  background: #06c755;
  --tx: 78px;
  --ty: -76px;
  --rot: 38deg;
}

.burst-confetti i:nth-child(5) {
  left: 26%;
  top: 72%;
  background: var(--teal);
  --tx: -74px;
  --ty: 52px;
  --rot: 48deg;
}

.burst-confetti i:nth-child(6) {
  left: 74%;
  top: 72%;
  background: #8b5cf6;
  --tx: 76px;
  --ty: 48px;
  --rot: -46deg;
}

.mission-stage-full {
  flex: 1;
  min-height: min(520px, 48vh);
}

.sentence-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: stretch;
}

.teacher-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 163, 255, 0.14), transparent 32%),
    linear-gradient(145deg, #ffffff, #eef4ff 62%, #fff8f2);
  border: 1px solid rgba(49, 87, 255, 0.18);
  border-radius: 8px;
}

.teacher-card h2 {
  margin: 0;
  font-size: 42px;
}

.teacher-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.sentence-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sentence-progress span {
  padding: 8px 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.sentence-progress span.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.sentence-progress span.done {
  color: #047a34;
  background: #edfff4;
  border-color: rgba(6, 199, 85, 0.32);
}

.sentence-items {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.sentence-item {
  min-height: 220px;
  align-content: center;
}

.sentence-item strong {
  font-size: 20px;
  text-align: center;
}

.school-bag-large {
  min-height: 100%;
}

.mission-items-large {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.mission-object {
  min-height: 190px;
}

.mission-object small {
  color: var(--muted);
  font-weight: 850;
}

.object-image {
  display: block;
  width: min(130px, 80%);
  height: 100px;
  object-fit: contain;
}

.object-image-crayon {
  width: min(170px, 96%);
}

.object-image-pencil,
.object-image-pen {
  width: min(96px, 68%);
  height: 130px;
}

.object-shape {
  position: relative;
  display: block;
  width: 82px;
  height: 82px;
}

.object-book {
  background: linear-gradient(90deg, #3157ff 0 44%, #5b78ff 44% 100%);
  border: 4px solid #2039b7;
  border-radius: 8px;
  box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.2);
}

.object-pencil {
  width: 96px;
  height: 22px;
  margin-block: 30px;
  background: linear-gradient(90deg, #f5b335 0 72%, #f7d98a 72% 84%, #111827 84% 100%);
  border: 2px solid #b57700;
  border-radius: 999px 8px 8px 999px;
  transform: rotate(-18deg);
}

.object-ruler {
  width: 106px;
  height: 30px;
  margin-block: 26px;
  background: #10b7a7;
  border: 3px solid #087d73;
  border-radius: 6px;
  transform: rotate(10deg);
}

.object-ruler::before {
  content: "";
  position: absolute;
  inset: 6px 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px 12px);
}

.object-eraser {
  width: 88px;
  height: 54px;
  margin-block: 14px;
  background: linear-gradient(90deg, #fff 0 52%, #ff8f9b 52% 100%);
  border: 3px solid #d9e2ef;
  border-radius: 12px;
  transform: rotate(-8deg);
}

.target-hint {
  border-color: rgba(49, 87, 255, 0.38);
}

.target-hint-strong {
  border-color: rgba(6, 199, 85, 0.8);
  box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.16), 0 18px 36px rgba(17, 24, 39, 0.1);
}

.mission-complete {
  align-items: start;
  grid-template-columns: 1fr auto auto;
}

.lesson-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.lesson-reader,
.exercise-card,
.result-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-text {
  padding: 16px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1.55;
}

.vocab-list,
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vocab-list span,
.result-tags span {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.exercise-card fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.exercise-card legend {
  padding-inline: 4px;
  color: var(--ink);
  font-weight: 900;
}

.exercise-card label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.exercise-card input {
  margin-top: 4px;
}

#englishExerciseStatus {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
}

#englishExerciseStatus.error {
  color: #b42318;
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes speaker-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 28px rgba(6, 199, 85, 0.22);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 18px 36px rgba(6, 199, 85, 0.32);
  }
}

@keyframes start-button-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.035);
  }
}

@keyframes start-shine {
  0% {
    left: -58%;
  }
  42%,
  100% {
    left: 115%;
  }
}

@keyframes item-correct {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-12px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes item-wrong {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-5px);
  }
}

@keyframes wrong-bubble-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.84);
  }
  18% {
    opacity: 1;
    transform: translateY(-3px) scale(1.04);
  }
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
}

@keyframes bag-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035) rotate(-1deg);
  }
}

@keyframes correct-pop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.72) rotate(-2deg);
  }
  18% {
    opacity: 1;
    transform: translateY(-8px) scale(1.08) rotate(1deg);
  }
  42% {
    transform: translateY(0) scale(1) rotate(0);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6) rotate(0);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot));
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    min-height: 640px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .program-grid,
  .trust-grid,
  .course-grid,
  .system-grid,
  .policy-grid,
  .faq-grid,
  .metric-grid,
  .automation-grid,
  .payment-grid,
  .lesson-grid,
  .unit-roadmap,
  .line-signup-panel,
  .learn-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .lead-card,
  .signup-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    overflow-x: visible;
    padding-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
  }

  .nav a {
    flex: 0 1 auto;
  }

  .nav a[href="#system"],
  .nav a[href="#course"],
  .nav a[href="#apply"],
  .nav a[href="#policies"],
  .nav a[href="#contact"] {
    display: none;
  }

  .nav .nav-line-login {
    min-height: 30px;
    padding-inline: 11px;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .learn-hero {
    min-height: auto;
    padding: 24px 20px;
  }

  .learn-hero h1 {
    max-width: 330px;
    font-size: 29px;
  }

  .learn-hero .lead {
    font-size: 15.5px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(247, 249, 253, 0.98) 0%, rgba(247, 249, 253, 0.9) 49%, rgba(247, 249, 253, 0.5) 100%),
      linear-gradient(90deg, rgba(247, 249, 253, 0.96), rgba(247, 249, 253, 0.28));
  }

  h1 {
    margin-bottom: 12px;
    max-width: 340px;
    font-size: 29px;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  h2 {
    font-size: 26px;
    line-height: 1.14;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    margin-bottom: 0;
    font-size: 15.5px;
    line-height: 1.48;
  }

  .lead-desktop {
    display: none;
  }

  .lead-mobile {
    display: inline;
  }

  .hero-title-desktop {
    display: none;
  }

  .hero-title-mobile {
    display: inline;
  }

  .hero-actions,
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 310px;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 20px;
  }

  .hero-actions .button.secondary {
    display: none;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions .button,
  .hero-stats span {
    width: 100%;
    justify-content: center;
  }

  .button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .hero-stats span {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero-stats strong {
    font-size: 15px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .strip {
    padding: 14px 5vw;
  }

  .strip p {
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section {
    padding: 48px 5vw;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head p:not(.eyebrow) {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .program-grid,
  .lead-form,
  .payment-form,
  .access-form,
  .trust-grid,
  .course-grid,
  .system-grid,
  .policy-grid,
  .faq-grid,
  .metric-grid,
  .automation-grid,
  .payment-grid,
  .lesson-grid,
  .lesson-workspace,
  .sentence-stage,
  .line-signup-panel,
  .signup-steps,
  .unit-roadmap,
  .learn-summary-grid,
  .lead-meta {
    grid-template-columns: 1fr;
  }

  .program {
    min-height: auto;
    padding: 20px;
  }

  .trust-card,
  .course-grid article,
  .policy-card,
  .faq-grid article,
  .system-grid article,
  .line-signup-copy,
  .payment-box,
  .lesson-panel,
  .lesson-reader,
  .exercise-card,
  .result-card {
    min-height: auto;
    padding: 20px;
  }

  .lesson-panel p,
  .lesson-reader p,
  .exercise-card p,
  .result-card p,
  .unit-roadmap p,
  .teacher-card p {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .unit-roadmap article {
    min-height: auto;
    padding: 18px;
  }

  .mission-head,
  .mission-prompt,
  .mission-stage {
    flex-direction: column;
  }

  .mission-preview-card,
  .mission-complete {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .mission-topbar {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 10px 5vw;
  }

  .mission-topbar .brand {
    min-width: 0;
  }

  .mission-topbar .brand-name {
    font-size: 14px;
  }

  .mission-topbar .button {
    width: auto;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .mission-exit-link .exit-full {
    display: none;
  }

  .mission-exit-link .exit-short {
    display: inline;
  }

  .mission-main {
    min-height: calc(100vh - 62px);
    padding: 10px 4vw 18px;
  }

  .mission-screen {
    gap: 10px;
    min-height: calc(100vh - 90px);
    padding: 14px;
  }

  .mission-screen-head {
    align-items: flex-start;
    gap: 10px;
  }

  .mission-screen h1 {
    max-width: 220px;
    margin-bottom: 0;
    font-size: 27px;
    line-height: 1.06;
  }

  .mission-screen-head p:not(.eyebrow) {
    display: none;
  }

  .mission-score {
    align-self: flex-start;
    min-width: 66px;
    padding: 8px;
  }

  .mission-score span {
    font-size: 18px;
  }

  .mission-score strong {
    font-size: 10px;
  }

  .mission-prompt-large {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }

  .mission-prompt-large span {
    font-size: 11px;
  }

  .mission-stage {
    min-height: auto;
  }

  .mission-stage-full {
    gap: 8px;
  }

  .school-bag {
    flex-basis: auto;
    min-height: 132px;
    padding: 14px;
    border-radius: 22px 22px 12px 12px;
  }

  .school-bag::before {
    top: 18px;
    height: 30px;
    border-width: 6px;
  }

  .school-bag > span {
    font-size: 17px;
  }

  .mission-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mission-item {
    min-height: 88px;
    padding: 8px;
    gap: 4px;
  }

  .mission-object {
    min-height: 88px;
  }

  .sentence-item {
    min-height: 132px;
  }

  .sentence-item strong {
    font-size: 14.5px;
  }

  .teacher-card {
    min-height: auto;
    padding: 18px;
  }

  .teacher-card h2 {
    font-size: 30px;
  }

  .mission-item strong {
    font-size: 16px;
  }

  .mission-object small {
    font-size: 11.5px;
  }

  .object-image {
    width: min(112px, 86%);
    height: 58px;
  }

  .object-image-crayon {
    width: min(148px, 98%);
    height: 58px;
  }

  .object-image-pencil,
  .object-image-pen {
    width: min(66px, 52%);
    height: 94px;
  }

  .object-shape {
    width: 50px;
    height: 50px;
    transform: none;
  }

  .object-pencil {
    width: 72px;
    height: 17px;
    margin-block: 8px;
    transform: rotate(-18deg);
  }

  .object-ruler {
    width: 72px;
    height: 22px;
    margin-block: 6px;
    transform: rotate(10deg);
  }

  .object-eraser {
    width: 54px;
    height: 34px;
    margin-block: 0;
    transform: rotate(-8deg);
  }

  .mission-prompt p {
    font-size: 20px;
  }

  .mission-prompt-large p {
    font-size: 21px;
  }

  .mission-feedback-large {
    min-height: 0;
    padding: 10px 12px;
    font-size: 14.5px;
  }

  .correct-burst {
    padding: 14px;
  }

  .correct-burst-card {
    min-width: min(300px, 86vw);
    padding: 20px 22px;
  }

  .correct-burst-card strong {
    font-size: 34px;
  }

  .correct-burst-card > span:last-child {
    font-size: 18px;
  }

  .program p,
  .why-list p,
  .contact p,
  .trust-card p,
  .course-grid p,
  .system-grid p,
  .faq-grid p,
  .policy-card p,
  .site-footer p,
  .policy-document p,
  .policy-document li {
    font-size: 15.5px;
  }

  .price-line {
    font-size: 16px;
  }

  .form-footer,
  .admin-toolbar,
  .toolbar-actions,
  .contact,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer div:last-child {
    justify-content: flex-start;
  }

  .policy-main {
    padding: 28px 5vw 56px;
  }

  .policy-document {
    padding: 24px;
  }

  .policy-document h1 {
    font-size: 42px;
  }

  .contact {
    margin: 0 0 24px;
    border-radius: 0;
  }
}

/* Mission pages are designed as one focused game screen for young children. */
html:has(body.no-zoom-body) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.no-zoom-body {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

.no-zoom-body * {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.no-zoom-body .mission-topbar {
  min-height: 62px;
  height: 62px;
  padding-block: 10px;
}

.no-zoom-body .mission-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: calc(100vh - 62px);
  height: calc(100dvh - 62px);
  padding: 10px 4vw;
  overflow: hidden;
}

.no-zoom-body .mission-screen {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.no-zoom-body .mission-screen-head {
  min-height: 0;
}

.no-zoom-body .mission-screen h1 {
  margin-bottom: 0;
}

.no-zoom-body .mission-prompt-large {
  min-height: 0;
}

.no-zoom-body .mission-stage,
.no-zoom-body .mission-stage-full,
.no-zoom-body .sentence-stage {
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.no-zoom-body .mission-items,
.no-zoom-body .sentence-items,
.no-zoom-body .lab-items {
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.no-zoom-body .mission-complete:not(.hidden) {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 18;
  grid-template-columns: 1fr auto auto;
  max-height: min(220px, 38%);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
}

.mission-lab-screen {
  grid-template-rows: auto minmax(0, 1fr);
}

.mission-lab-layout {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.mission-game-menu,
.mission-play-panel {
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.mission-game-menu {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mission-game-menu h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.game-select-label {
  display: none;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.game-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 35px;
  padding: 6px;
  color: var(--muted);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.game-picker span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 950;
}

.game-picker strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-picker.active {
  color: var(--ink);
  background: #eef4ff;
  border-color: rgba(49, 87, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(49, 87, 255, 0.14);
}

.mission-play-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.lab-teacher-card {
  min-height: 0;
  padding: 14px;
}

.lab-teacher-card h2 {
  font-size: 30px;
}

.lab-teacher-card p {
  font-size: 14px;
}

.lab-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-choice {
  min-height: 120px;
}

.unit-roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .unit-roadmap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .no-zoom-body .mission-topbar {
    min-height: 52px;
    height: 52px;
    padding: 8px 4vw;
  }

  .no-zoom-body .mission-topbar .brand-mark {
    width: 38px;
    height: 32px;
    font-size: 15px;
  }

  .no-zoom-body .mission-topbar .brand-name {
    font-size: 13px;
  }

  .no-zoom-body .mission-topbar .button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .no-zoom-body .mission-main {
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
    padding: 6px 3vw 8px;
  }

  .no-zoom-body .mission-screen {
    width: calc(100vw - 6vw);
    max-width: calc(100vw - 6vw);
    gap: 6px;
    padding: 9px;
    border-radius: 0;
    box-shadow: none;
  }

  .no-zoom-body .mission-screen-head {
    gap: 8px;
  }

  .no-zoom-body .mission-screen h1 {
    max-width: 230px;
    font-size: clamp(21px, 6.3vw, 28px);
    line-height: 1.03;
  }

  .no-zoom-body .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .no-zoom-body .mission-score {
    min-width: 58px;
    padding: 6px;
  }

  .no-zoom-body .mission-score span {
    font-size: 16px;
  }

  .no-zoom-body .mission-score strong {
    font-size: 9px;
  }

  .no-zoom-body .mission-prompt-large {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
    padding: 8px;
  }

  .no-zoom-body .sound-button {
    min-width: 82px;
    min-height: 38px;
    font-size: 12px;
  }

  .no-zoom-body .sound-button.start-button {
    width: calc(100% - 8px);
    justify-self: center;
    min-width: 0;
    min-height: 44px;
    font-size: 13px;
  }

  .no-zoom-body .mission-prompt-large span {
    font-size: 10px;
  }

  .no-zoom-body .mission-prompt-large p {
    font-size: clamp(16px, 4.8vw, 21px);
    line-height: 1.12;
  }

  .no-zoom-body .mission-feedback-large {
    min-height: 0;
    max-height: 52px;
    padding: 7px 9px;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.2;
  }

  .no-zoom-body .mission-feedback span {
    margin-top: 2px;
  }

  .no-zoom-body .mission-stage-full {
    width: min(100%, 348px);
    max-width: 348px;
    justify-self: start;
    display: grid;
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 5px;
  }

  .no-zoom-body .school-bag {
    min-height: 0;
    height: 76px;
    padding: 8px;
    border-width: 2px;
    border-radius: 18px 18px 10px 10px;
  }

  .no-zoom-body .school-bag::before {
    top: 10px;
    height: 20px;
    border-width: 4px;
  }

  .no-zoom-body .school-bag > span {
    font-size: 14px;
  }

  .no-zoom-body .packed-items {
    gap: 4px;
    margin-bottom: 6px;
  }

  .no-zoom-body .packed-items span {
    padding: 3px 5px;
    font-size: 10px;
  }

  .no-zoom-body .mission-items-large,
  .no-zoom-body .sentence-items,
  .no-zoom-body .lab-items {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .no-zoom-body .mission-item,
  .no-zoom-body .mission-object,
  .no-zoom-body .sentence-item,
  .no-zoom-body .lab-choice {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 5px;
    gap: 3px;
  }

  .no-zoom-body .mission-object {
    align-content: center;
  }

  .no-zoom-body .mission-item strong,
  .no-zoom-body .sentence-item strong {
    font-size: clamp(12px, 3.8vw, 15px);
    line-height: 1.1;
  }

  .no-zoom-body .mission-object small {
    font-size: 10px;
  }

  .no-zoom-body .object-image {
    width: min(112px, 86%);
    height: 52px;
  }

  .no-zoom-body .object-image-crayon {
    width: min(150px, 98%);
    height: 56px;
  }

  .no-zoom-body .object-image-pencil,
  .no-zoom-body .object-image-pen {
    width: min(66px, 52%);
    height: 78px;
  }

  .no-zoom-body .object-feedback-bubble {
    inset: 4px 4px auto auto;
    min-width: 58px;
    padding: 5px 6px;
  }

  .no-zoom-body .object-feedback-bubble strong {
    font-size: 12px;
  }

  .no-zoom-body .object-feedback-bubble small {
    font-size: 10px;
  }

  .no-zoom-body .sentence-stage {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
  }

  .no-zoom-body .teacher-card {
    gap: 6px;
    padding: 9px;
  }

  .no-zoom-body .teacher-card h2 {
    font-size: 21px;
  }

  .no-zoom-body .teacher-card p {
    display: none;
  }

  .no-zoom-body .sentence-progress {
    gap: 4px;
  }

  .no-zoom-body .sentence-progress span {
    padding: 4px 5px;
    font-size: 9.5px;
  }

  .no-zoom-body .correct-burst-card {
    min-width: min(270px, 84vw);
    padding: 16px 18px;
  }

  .no-zoom-body .correct-burst-card strong {
    font-size: 30px;
  }

  .no-zoom-body .correct-burst-card > span:last-child {
    font-size: 15px;
  }

  .mission-lab-screen {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mission-lab-layout {
    width: 100%;
    max-width: calc(100vw - 6vw - 18px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
  }

  .mission-game-menu,
  .mission-play-panel {
    width: 100%;
    max-width: calc(100vw - 6vw - 18px);
  }

  .mission-game-menu {
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 8px;
  }

  .mission-game-menu > div {
    display: none;
  }

  .game-select-label {
    display: grid;
    gap: 4px;
  }

  .game-select-label span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
  }

  .game-select-label select {
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
  }

  .game-list {
    display: none;
  }

  .mission-play-panel {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 6px;
  }

  .lab-teacher-card {
    padding: 8px;
  }

  .lab-teacher-card h2 {
    font-size: 20px;
  }

  .lab-teacher-card p {
    display: none;
  }

  .no-zoom-body .mission-complete:not(.hidden) {
    right: 9px;
    bottom: 9px;
    left: 9px;
    grid-template-columns: 1fr;
    max-height: 42%;
    padding: 10px;
    gap: 8px;
  }

  .no-zoom-body .mission-complete h3,
  .no-zoom-body .mission-complete p {
    margin: 0;
  }

  .no-zoom-body .mission-complete p {
    font-size: 12px;
  }
}

@media (max-width: 380px), (max-height: 720px) {
  .no-zoom-body .mission-topbar {
    min-height: 48px;
    height: 48px;
  }

  .no-zoom-body .mission-main {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
  }

  .no-zoom-body .mission-screen h1 {
    font-size: 21px;
  }

  .no-zoom-body .mission-stage-full {
    grid-template-rows: 66px minmax(0, 1fr);
  }

  .no-zoom-body .school-bag {
    height: 66px;
  }

  .no-zoom-body .object-image {
    height: 46px;
  }

  .no-zoom-body .object-image-crayon {
    height: 46px;
  }

  .no-zoom-body .object-image-pencil,
  .no-zoom-body .object-image-pen {
    height: 78px;
  }

  .no-zoom-body .mission-feedback-large {
    max-height: 43px;
    font-size: 11.5px;
  }

  .no-zoom-body .mission-prompt-large p {
    font-size: 17px;
  }
}
