:root {
  --paper: #fffaf2;
  --paper-deep: #f8efe2;
  --ink: #171a19;
  --muted: #696c68;
  --line: #eadbc8;
  --coral: #f2694f;
  --coral-soft: #fff0e9;
  --yellow: #f5b938;
  --yellow-soft: #fff5d8;
  --teal: #034f53;
  --teal-deep: #013f43;
  --teal-soft: #e4f1ee;
  --mint: #52a890;
  --blue: #558db5;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(57, 46, 31, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open { overflow: hidden; }

button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid rgba(242, 105, 79, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(234, 219, 200, 0.8);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand strong { font-size: 19px; letter-spacing: -0.04em; }
.brand span { color: var(--muted); font-size: 12px; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 32px); font-size: 14px; }
.main-nav a, .text-button { transition: color 160ms ease; }
.main-nav a:hover, .text-button:hover { color: var(--coral); }
.text-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-coral { color: var(--white); background: var(--coral); box-shadow: 0 10px 24px rgba(242, 105, 79, 0.2); }
.button-teal { color: var(--white); background: var(--teal); box-shadow: 0 10px 24px rgba(3, 79, 83, 0.18); }
.button-outline { border-color: #d9c7b0; background: rgba(255, 255, 255, 0.72); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

.hero { position: relative; overflow: hidden; min-height: 910px; border-bottom: 1px solid var(--line); }
.hero-copy { position: absolute; z-index: 5; top: 36px; left: 50%; width: min(780px, 86vw); text-align: center; transform: translateX(-50%); }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow.coral { color: var(--coral); }
.hero h1 { max-width: 720px; margin: 0 auto; font-size: clamp(42px, 5.5vw, 78px); line-height: 1.06; letter-spacing: -0.07em; }
.hero-copy > p:not(.eyebrow) { margin: 16px 0 0; font-size: clamp(17px, 2vw, 23px); font-weight: 600; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.hero-number { position: absolute; z-index: 2; top: 8px; color: rgba(242, 105, 79, 0.1); font-size: clamp(110px, 15vw, 230px); font-weight: 800; line-height: 1; }
.hero-number-left { left: 1vw; }
.hero-number-right { right: 1vw; color: rgba(3, 79, 83, 0.1); }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 910px; }
.hero-side { position: relative; min-width: 0; overflow: hidden; padding: 0 clamp(22px, 4vw, 64px) 58px; }
.hero-side::after { position: absolute; inset: 0; z-index: 1; content: ""; background: rgba(255, 250, 242, 0.18); }
.child-side { border-right: 1px solid rgba(234, 219, 200, 0.8); background: #fff5e9; }
.parent-side { background: #edf5f2; }
.hero-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.child-side > img { object-position: 38% center; }
.parent-side > img { object-position: 57% center; }
.side-heading { position: absolute; z-index: 3; top: 350px; left: clamp(24px, 4vw, 64px); display: flex; flex-direction: column; }
.side-heading span { color: var(--coral); font-size: 24px; font-weight: 800; }
.side-heading strong { font-size: 14px; }
.parent-side .side-heading { color: var(--teal); }
.parent-side .side-heading span { color: var(--teal); }

.surface-card { position: absolute; z-index: 4; right: clamp(22px, 4vw, 64px); bottom: 54px; left: clamp(22px, 4vw, 64px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.child-preview { padding: 24px; border: 1px solid rgba(242, 105, 79, 0.32); background: rgba(255, 248, 239, 0.95); }
.parent-preview { padding: 24px; color: var(--white); background: rgba(3, 79, 83, 0.95); }
.preview-topline { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.preview-topline > div:first-child { display: flex; flex-direction: column; }
.preview-topline span { color: var(--muted); font-size: 12px; }
.preview-topline strong { font-size: 19px; }
.preview-topline.light span { color: rgba(255, 255, 255, 0.68); }
.timer-preview { padding-left: 20px; border-left: 1px solid var(--line); }
.timer-preview strong { font-size: 25px; }
.coach-callout { margin-bottom: 16px; padding: 16px 18px; border-radius: 16px; background: var(--coral-soft); }
.coach-callout p { margin: 6px 0 0; font-weight: 650; line-height: 1.45; }
.coach-label { color: var(--coral); font-size: 12px; font-weight: 800; }
.quiet-button { align-self: flex-start; padding: 6px 12px; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: transparent; cursor: pointer; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.metric-row div { display: flex; flex-direction: column; padding: 0 12px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.metric-row div:last-child { border-right: 0; }
.metric-row strong { font-size: 24px; }
.metric-row span { color: rgba(255, 255, 255, 0.65); font-size: 11px; }
.report-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-mini-grid div { min-height: 96px; padding: 12px; color: var(--ink); border-radius: 14px; background: var(--paper); }
.report-mini-grid span { color: var(--teal); font-size: 12px; font-weight: 800; }
.report-mini-grid p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.section-heading { margin-bottom: 46px; }
.compact-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section h2, .closing-cta h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.12; letter-spacing: -0.05em; }
.compact-heading > p { max-width: 520px; margin: 0; color: var(--muted); }

.how-section { padding-bottom: 80px; }
.steps-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 28px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.52); }
.steps-list li { display: flex; gap: 16px; min-height: 116px; padding: 18px; border-right: 1px solid var(--line); }
.steps-list li:last-child { border-right: 0; }
.steps-list strong { display: block; margin: 2px 0 6px; font-size: 18px; }
.steps-list p { margin: 0; color: var(--muted); font-size: 13px; }
.step-index { display: grid; flex: 0 0 46px; height: 46px; color: var(--white); border-radius: 13px; place-items: center; background: var(--coral); font-weight: 800; }
.step-index.yellow { background: var(--yellow); }
.step-index.mint { background: var(--mint); }
.step-index.teal { background: var(--teal); }

.task-section { border-top: 1px solid var(--line); }
.task-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.task-card { display: flex; min-width: 0; height: 340px; padding: 22px 18px 0; overflow: hidden; border: 1px solid transparent; border-radius: var(--radius-md); text-align: left; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; flex-direction: column; justify-content: space-between; }
.task-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.task-card span { display: flex; flex-direction: column; gap: 7px; }
.task-card strong { font-size: 18px; }
.task-card small { min-height: 44px; color: var(--muted); line-height: 1.45; }
.task-card img { width: calc(100% + 36px); max-width: none; height: 205px; margin-left: -18px; object-fit: cover; object-position: center; }
.coral-card { border-color: #f7c5b7; background: #fff1e9; }
.coral-card strong { color: var(--coral); }
.yellow-card { border-color: #f0d791; background: #fff7dd; }
.mint-card { border-color: #b8ddd4; background: #eef9f6; }
.blue-card { border-color: #bdd7e8; background: #eff7fb; }
.green-card { border-color: #c7dcae; background: #f2f7e8; }

.report-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(50px, 8vw, 110px); align-items: center; border-top: 1px solid var(--line); }
.report-intro .lead { color: var(--muted); font-size: 18px; }
.check-list { display: grid; gap: 12px; margin: 30px 0; padding: 0; list-style: none; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { position: absolute; left: 0; top: 2px; color: var(--coral); content: "●"; font-size: 12px; }
.report-dashboard { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dashboard-header div { display: flex; flex-direction: column; }
.dashboard-header span:not(.status-pill) { color: var(--muted); font-size: 13px; }
.dashboard-header strong { font-size: 21px; }
.status-pill { padding: 7px 12px; color: var(--teal); border-radius: 999px; background: var(--teal-soft); font-size: 12px; font-weight: 800; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dashboard-stats div { display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--line); }
.dashboard-stats div:last-child { border-right: 0; }
.dashboard-stats span { color: var(--muted); font-size: 12px; }
.dashboard-stats strong { margin-top: 5px; font-size: 22px; }
.insight-list { display: grid; gap: 4px; }
.insight-list article { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.insight-list strong { font-size: 15px; }
.insight-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.insight-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.coral-dot { background: var(--coral); }
.mint-dot { background: var(--mint); }
.blue-dot { background: var(--blue); }
.progress-group { display: grid; gap: 12px; margin-top: 24px; }
.progress-group label { display: grid; grid-template-columns: 90px 1fr; align-items: center; color: var(--muted); font-size: 12px; }
progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--paper-deep); }
progress::-webkit-progress-bar { border-radius: 999px; background: var(--paper-deep); }
progress::-webkit-progress-value { border-radius: 999px; background: var(--teal); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--teal); }

.challenge-section { border-top: 1px solid var(--line); }
.challenge-line { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.challenge-line li { position: relative; display: flex; align-items: center; min-height: 170px; padding: 28px 12px 18px; text-align: center; flex-direction: column; }
.challenge-line li::before { position: relative; z-index: 2; display: grid; width: 44px; height: 44px; margin-bottom: 16px; color: var(--muted); border: 2px solid var(--line); border-radius: 50%; content: attr(data-marker); place-items: center; background: var(--paper); }
.challenge-line li::after { position: absolute; top: 50px; right: 50%; width: 100%; height: 2px; content: ""; background: var(--line); }
.challenge-line li:first-child::after { display: none; }
.challenge-line li.done::before { border-color: var(--coral); background: var(--coral); box-shadow: inset 0 0 0 8px var(--coral); }
.challenge-line li.done::after { background: var(--coral); }
.challenge-line li.current::before { color: var(--white); border-color: var(--teal); background: var(--teal); }
.challenge-line span { color: var(--muted); font-size: 12px; }
.challenge-line strong { margin: 5px 0; font-size: 15px; }
.challenge-line small { color: var(--muted); line-height: 1.4; }

.closing-cta { position: relative; width: min(var(--max), calc(100% - 40px)); min-height: 430px; margin: 20px auto 80px; overflow: hidden; border-radius: 34px; background: #ffe5c2; }
.closing-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-copy { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: center; width: 46%; min-height: 430px; padding: clamp(36px, 6vw, 76px); flex-direction: column; }
.closing-copy > p:not(.eyebrow) { margin: 14px 0 26px; color: var(--muted); }
.closing-copy small { margin-top: 14px; color: var(--muted); }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; padding: 36px clamp(20px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { text-align: center; }

.dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; padding: 24px; overflow-y: auto; background: rgba(20, 24, 23, 0.62); place-items: center; }
.dialog { position: relative; width: min(900px, 100%); max-height: calc(100vh - 48px); padding: clamp(26px, 4vw, 48px); overflow-y: auto; border-radius: 32px; background: var(--paper); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28); }
.dialog-close { position: absolute; z-index: 5; top: 18px; right: 18px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; }
.dialog-kicker { display: inline-flex; margin-bottom: 8px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.dialog h2 { max-width: 680px; margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.16; letter-spacing: -0.05em; }
.dialog > p { color: var(--muted); }
.assessment-progress { display: flex; align-items: center; gap: 14px; margin: 34px 0; }
.assessment-progress span { min-width: 76px; font-size: 13px; font-weight: 700; }
.assessment-dialog fieldset { margin: 0; padding: 0; border: 0; }
.assessment-dialog legend { margin-bottom: 20px; font-size: 21px; font-weight: 800; }
.answer-option { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.answer-option:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.dialog-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.assessment-result { margin-top: 32px; padding: 26px; border: 1px solid #b8ddd4; border-radius: var(--radius-md); background: var(--teal-soft); }
.assessment-result h3 { margin: 5px 0 10px; color: var(--teal); font-size: 27px; }
.assessment-result p { margin: 8px 0; }
.profile-dialog { width: min(650px, 100%); }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.profile-form label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 800; }
.profile-form label:first-child { grid-column: 1 / -1; }
.profile-form input, .profile-form select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); font: inherit; font-weight: 500; }
.profile-form input:focus, .profile-form select:focus { border-color: var(--coral); outline: 3px solid rgba(255, 111, 86, 0.16); }
.profile-form button { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

.app-dialog { width: min(1040px, 100%); }
.app-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding-right: 70px; }
.focus-status { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 12px; min-width: 130px; padding: 12px 16px; border-radius: 16px; background: var(--white); }
.focus-status span { color: var(--muted); font-size: 11px; }
.focus-status strong { font-size: 23px; }
.focus-status small { grid-column: 1 / -1; color: var(--muted); }
.app-screen { min-height: 410px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.task-type-label, .completion-label { color: var(--coral); font-size: 13px; font-weight: 800; }
.app-screen h3 { margin: 8px 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.app-screen > p { color: var(--muted); }
.sticky-problem {
  position: sticky;
  z-index: 4;
  top: -1px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px 16px;
  margin: -14px -14px 24px;
  padding: 16px 18px;
  border: 1px solid #f7c8b9;
  border-radius: 18px;
  background: rgba(255, 240, 233, 0.97);
  box-shadow: 0 10px 24px rgba(103, 62, 45, 0.08);
  backdrop-filter: blur(14px);
}
.sticky-problem span { padding-top: 3px; color: var(--coral); font-size: 11px; font-weight: 800; white-space: nowrap; }
.sticky-problem p { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.55; }
.problem-box { margin: 30px 0 20px; padding: 24px; border-radius: var(--radius-md); background: var(--coral-soft); }
.problem-box span { color: var(--coral); font-size: 12px; font-weight: 800; }
.problem-box p { margin: 8px 0 0; font-size: 20px; font-weight: 700; line-height: 1.55; }
.task-meta { display: flex; gap: 9px; margin-bottom: 26px; flex-wrap: wrap; }
.task-meta span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.personalized-match { margin: 16px 0 12px; padding: 11px 14px; border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; color: #6c5a51; background: #fff8f3; font-size: 13px; line-height: 1.5; }
.focus-quote { text-align: center; font-size: 18px; }
.focus-workspace { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(390px, 1.28fr); align-items: center; gap: 30px; }
.focus-orb { display: flex; align-items: center; justify-content: center; width: 250px; height: 250px; margin: 24px auto; border: 16px solid var(--coral-soft); border-radius: 50%; flex-direction: column; box-shadow: inset 0 0 0 2px #f7b9a8; }
.focus-orb strong { font-size: 48px; line-height: 1; }
.focus-orb span { margin-top: 12px; color: var(--muted); }
.center-actions { justify-content: center; }
.coach-layout { display: grid; grid-template-columns: 292px 1fr; gap: 24px; }
.learning-visual { padding: 20px; overflow: hidden; border: 1px solid #b8ddd4; border-radius: var(--radius-md); background: #f0f8f5; }
.visual-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.visual-heading > div { display: flex; flex-direction: column; }
.visual-heading span { color: var(--teal); font-size: 11px; font-weight: 800; }
.visual-heading strong { margin-top: 2px; font-size: 18px; }
.visual-equation { padding: 6px 9px; color: var(--teal); border-radius: 999px; background: var(--white); font-size: 12px; white-space: nowrap; }
.seat-map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; margin: 20px 0 16px; padding: 16px; border-radius: 16px; background: var(--white); }
.task-visual-image { width: 100%; height: 205px; margin: 18px 0 14px; border-radius: 18px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(20, 62, 59, 0.08); transition: transform 420ms ease, filter 420ms ease; }
.compact-visual .task-visual-image { height: 165px; }
.learning-visual[data-stage="conditions"] .task-visual-image { transform: scale(1.015); }
.learning-visual[data-stage="plan"] .task-visual-image { filter: saturate(1.08); transform: scale(1.02); }
.learning-visual[data-stage="reason"] .task-visual-image { filter: saturate(1.12) contrast(1.02); }
.seat { position: relative; display: grid; aspect-ratio: 1; border: 2px solid #b7d8d0; border-radius: 7px 7px 10px 10px; place-items: center; background: #eef7f4; transform-origin: center bottom; }
.seat::after { position: absolute; right: 18%; bottom: -4px; left: 18%; height: 4px; border-radius: 0 0 4px 4px; content: ""; background: #b7d8d0; }
.seat i { color: #5a8079; font-size: 8px; font-style: normal; opacity: 0; }
.visual-caption { min-height: 42px; margin: 0; color: #315c57; font-size: 12px; line-height: 1.55; }
.learning-visual[data-stage="conditions"] .seat { animation: seat-arrive 420ms both; animation-delay: calc(var(--seat-index) * 16ms); }
.learning-visual[data-stage="plan"] .seat:nth-child(-n+29),
.learning-visual[data-stage="reason"] .seat:nth-child(-n+29),
.learning-visual[data-stage="review"] .seat:nth-child(-n+29),
.learning-visual[data-stage="done"] .seat:nth-child(-n+29) { border-color: #f7a28e; background: #ffd8cc; animation: seat-occupied 360ms both; animation-delay: calc(var(--seat-index) * 22ms); }
.learning-visual[data-stage="reason"] .seat:nth-child(n+30),
.learning-visual[data-stage="review"] .seat:nth-child(n+30) { border-color: var(--teal); background: #e0f4ee; animation: seat-breathe 1100ms 2 ease-in-out; animation-delay: calc((var(--seat-index) - 29) * 35ms); }
.coach-rules { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.coach-rules span { padding: 5px 8px; color: var(--teal); border: 1px solid #c4dfd8; border-radius: 999px; background: rgba(255,255,255,0.72); font-size: 10px; font-weight: 700; }
.hint-level { margin-top: 14px; padding-top: 12px; border-top: 1px solid #c4dfd8; color: #47726c; font-size: 11px; }
.hint-level b { display: block; margin-top: 4px; font-size: 20px; }
.chat-panel { min-width: 0; }
.chat-messages { display: flex; min-height: 220px; max-height: 340px; padding: 4px; overflow-y: auto; flex-direction: column; gap: 12px; }
.chat-message { max-width: 80%; padding: 14px 16px; border-radius: 18px; font-size: 14px; }
.chat-message.coach { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--teal-soft); }
.chat-message.child { align-self: flex-end; color: var(--white); border-bottom-right-radius: 5px; background: var(--coral); }
.chat-message small { display: block; margin-bottom: 4px; opacity: 0.65; }
.chat-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.chat-form label { display: block; margin-bottom: 8px; font-weight: 800; }
.chat-form textarea { width: 100%; padding: 14px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.chat-actions span { color: var(--muted); font-size: 12px; }
.complete-task { width: 100%; margin-top: 14px; }
.complete-screen { text-align: center; }
.badge-card { width: min(420px, 100%); margin: 28px auto; padding: 26px; border: 1px solid #f0d791; border-radius: var(--radius-md); background: var(--yellow-soft); }
.badge-card span { display: block; color: var(--muted); font-size: 12px; }
.badge-card strong { display: block; margin-top: 5px; color: #946312; font-size: 28px; }
.completion-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: min(580px, 100%); margin: 0 auto 24px; }
.completion-stats div { display: flex; padding: 14px; border-right: 1px solid var(--line); flex-direction: column; }
.completion-stats div:last-child { border-right: 0; }
.completion-stats strong { font-size: 24px; }
.completion-stats span { color: var(--muted); font-size: 12px; }
.dialog-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.dialog-report-grid article { padding: 20px; border-radius: var(--radius-md); background: var(--teal); color: var(--white); }
.dialog-report-grid span { color: rgba(255, 255, 255, 0.64); font-size: 12px; }
.dialog-report-grid strong { display: block; margin: 7px 0 3px; font-size: 25px; }
.dialog-report-grid p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.dialog-insights { margin-bottom: 24px; border-top: 1px solid var(--line); }
.dialog-insights article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dialog-insights strong { color: var(--teal); }
.dialog-insights p { margin: 6px 0 0; color: var(--muted); }
.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 48px)); padding: 14px 18px; color: var(--white); border-radius: 14px; background: var(--teal); box-shadow: var(--shadow); }

@keyframes seat-arrive {
  from { opacity: 0.25; transform: translateY(-8px) scale(0.82); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes seat-occupied {
  0% { transform: translateY(-7px) scale(0.88); }
  70% { transform: translateY(2px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes seat-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3, 79, 83, 0); }
  50% { box-shadow: 0 0 0 4px rgba(3, 79, 83, 0.12); }
}

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .main-nav { position: absolute; top: 76px; right: 20px; display: none; align-items: stretch; width: 240px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
  .task-grid { grid-template-columns: repeat(3, 1fr); }
  .task-card:nth-child(4), .task-card:nth-child(5) { grid-column: span 1; }
  .challenge-line { grid-template-columns: repeat(4, 1fr); }
  .challenge-line li::after { display: none; }
}

@media (max-width: 820px) {
  .site-header { min-height: 68px; grid-template-columns: 1fr auto; }
  .brand { align-items: flex-start; flex-direction: column; gap: 0; }
  .brand span { display: none; }
  .header-cta { display: none; }
  .main-nav { top: 68px; }
  .hero { min-height: 1320px; }
  .hero-copy { top: 42px; }
  .hero h1 { font-size: clamp(40px, 10vw, 62px); }
  .hero-split { grid-template-columns: 1fr; min-height: 1320px; padding-top: 300px; }
  .hero-side { min-height: 510px; }
  .side-heading { top: 70px; }
  .surface-card { bottom: 26px; }
  .child-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-number { font-size: 120px; }
  .compact-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .steps-list li:nth-child(2) { border-right: 0; }
  .steps-list li { border-bottom: 1px solid var(--line); }
  .steps-list li:nth-child(3), .steps-list li:nth-child(4) { border-bottom: 0; }
  .task-grid { grid-template-columns: 1fr 1fr; }
  .task-card:last-child { grid-column: 1 / -1; }
  .report-section { grid-template-columns: 1fr; }
  .challenge-line { grid-template-columns: repeat(2, 1fr); }
  .closing-copy { width: 60%; padding: 36px; }
  footer { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  footer .brand { align-items: center; }
  .coach-layout { grid-template-columns: 1fr; }
  .compact-visual { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; align-items: center; gap: 0 18px; }
  .compact-visual .visual-heading, .compact-visual .visual-caption, .compact-visual .coach-rules, .compact-visual .hint-level { grid-column: 2; }
  .compact-visual .visual-heading { grid-row: 1; }
  .compact-visual .seat-map { grid-row: 1 / span 4; grid-column: 1; margin: 0; }
  .focus-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { width: 100%; }
  .nav-toggle { justify-self: end; }
  .section { width: min(100% - 28px, var(--max)); padding: 78px 0; }
  .hero { min-height: 1450px; }
  .hero-copy { width: calc(100% - 28px); }
  .hero h1 { max-width: 100%; font-size: 36px; line-height: 1.12; letter-spacing: -0.06em; }
  .hero-copy .eyebrow { margin-top: 4px; }
  .hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-split { min-height: 1450px; padding-top: 350px; }
  .hero-side { min-height: 550px; padding: 0 14px; }
  .hero-side > img { height: 55%; }
  .hero-side::after { background: rgba(255, 250, 242, 0.06); }
  .side-heading { top: 48px; left: 18px; }
  .side-heading span { font-size: 20px; }
  .surface-card { right: 14px; bottom: 18px; left: 14px; padding: 17px; }
  .preview-topline { align-items: flex-start; flex-wrap: wrap; }
  .preview-topline > div:first-child { min-width: 0; flex: 1 1 180px; }
  .timer-preview { flex: 0 0 auto; }
  .report-mini-grid { grid-template-columns: 1fr; }
  .report-mini-grid div { min-height: auto; }
  .parent-side { min-height: 650px; }
  .metric-row strong { font-size: 20px; }
  .steps-list, .task-grid { grid-template-columns: 1fr; }
  .steps-list li { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .steps-list li:last-child { border-bottom: 0 !important; }
  .task-card, .task-card:last-child { grid-column: auto; height: 330px; }
  .report-dashboard { padding: 22px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-stats div:last-child { border-bottom: 0; }
  .progress-group label { grid-template-columns: 76px 1fr; }
  .challenge-line { grid-template-columns: 1fr 1fr; }
  .challenge-line li { min-height: 145px; }
  .closing-cta { width: calc(100% - 28px); min-height: 620px; }
  .closing-cta > img { object-position: 64% center; }
  .closing-cta::after { position: absolute; inset: 0; content: ""; background: rgba(255, 250, 242, 0.56); }
  .closing-copy { width: 100%; min-height: 620px; padding: 28px; justify-content: flex-end; }
  .dialog-backdrop { padding: 8px; place-items: end center; }
  .dialog { max-height: calc(100vh - 16px); padding: 30px 18px 22px; border-radius: 24px 24px 12px 12px; }
  .app-dialog-header { align-items: stretch; padding-right: 46px; flex-direction: column; gap: 14px; }
  .app-screen { min-height: 0; padding: 22px 16px; }
  .sticky-problem { top: -30px; grid-template-columns: 1fr; gap: 3px; margin: -8px -2px 18px; padding: 13px 14px; border-radius: 14px; }
  .sticky-problem span { padding: 0; }
  .sticky-problem p { font-size: 14px; line-height: 1.45; }
  .task-meta { gap: 6px; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-form label, .profile-form label:first-child, .profile-form button { grid-column: 1; }
  .center-actions, .dialog-actions, .chat-actions { align-items: stretch; flex-direction: column; }
  .dialog-actions .button { width: 100%; }
  .focus-orb { width: 210px; height: 210px; }
  .compact-visual { display: block; }
  .compact-visual .seat-map { margin: 16px 0 12px; }
  .seat-map { gap: 5px; padding: 12px; }
  .chat-message { max-width: 92%; }
  .completion-stats { grid-template-columns: 1fr; }
  .completion-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-report-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
