:root{
  --bg:#FFF9F1;
  --surface:#FFFFFF;
  --surface-soft:#F7F2E9;
  --text:#243229;
  --muted:#6D786F;
  --green:#2F7D57;
  --green-dark:#245F45;
  --green-soft:#DCEFD9;
  --lime:#D7EC9D;
  --yellow:#FFD66B;
  --coral:#FF8E78;
  --sky:#C8EAF6;
  --lavender:#DDD5F7;
  --line:#E9E1D8;
  --shadow:0 18px 50px rgba(67,88,72,.10);
  --shadow-sm:0 8px 22px rgba(67,88,72,.08);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
  --paper:var(--bg);
  --grid:transparent;
  --ink:var(--green);
  --ink-press:var(--green-dark);
  --card:var(--surface);
  --margin:var(--coral);
  --sun:var(--yellow);
  --line-ink:var(--text);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(255,214,107,.24), transparent 24rem),
    radial-gradient(circle at 96% 18%, rgba(200,234,246,.38), transparent 23rem),
    var(--bg);
  font-family:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%;display:block}
button,input{font:inherit}
:focus-visible{outline:4px solid rgba(47,125,87,.28);outline-offset:4px}

.site-shell{width:min(1120px,calc(100% - 32px));margin:0 auto}
.site-header{
  width:min(1120px,calc(100% - 32px));
  margin:0 auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:-.03em;
  font-size:22px;
}
.brand img{width:42px;height:42px}
.brand small{display:block;font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.02em}
.header-link{
  text-decoration:none;
  color:var(--green-dark);
  font-size:14px;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);
  gap:54px;
  align-items:center;
  padding:54px 0 72px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  padding:8px 13px;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:13px;
  font-weight:800;
}
.eyebrow::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background:var(--green);
}
.hero h1{
  margin:18px 0 18px;
  max-width:720px;
  font-size:clamp(42px,6vw,72px);
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:800;
}
.hero h1 .accent{color:var(--green)}
.hero-copy{
  max-width:650px;
  margin:0;
  color:var(--muted);
  font-size:clamp(18px,2vw,21px);
  line-height:1.55;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:24px 0 0;
}
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  color:#536058;
  font-size:14px;
  font-weight:650;
}
.meta-pill b{color:var(--text)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:56px;
  padding:0 24px;
  border-radius:18px;
  text-decoration:none;
  font-weight:800;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.cta-primary{
  color:#fff;
  background:var(--green);
  box-shadow:0 8px 0 var(--green-dark);
}
.cta-primary:hover{transform:translateY(-2px)}
.cta-primary:active{transform:translateY(5px);box-shadow:0 3px 0 var(--green-dark)}
.cta-secondary{background:#fff;border:1px solid var(--line);color:var(--green-dark)}
.hero-note{margin:14px 0 0;color:var(--muted);font-size:13px}

.mascot-stage{
  position:relative;
  min-height:470px;
  display:grid;
  place-items:center;
}
.mascot-blob{
  position:absolute;
  inset:32px 0 22px 30px;
  border-radius:48% 52% 46% 54% / 58% 43% 57% 42%;
  background:linear-gradient(145deg,#E3F0B0,#CFE9D2);
  transform:rotate(-4deg);
}
.mascot-stage>img{
  position:relative;
  width:min(360px,80%);
  filter:drop-shadow(0 22px 20px rgba(53,91,65,.15));
  transform:rotate(2deg);
}
.speech{
  position:absolute;
  top:42px;
  right:0;
  max-width:190px;
  padding:16px 18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px 20px 20px 6px;
  box-shadow:var(--shadow-sm);
  font-size:15px;
  line-height:1.35;
  font-weight:700;
}
.float-card{
  position:absolute;
  left:0;
  bottom:35px;
  width:185px;
  padding:15px 17px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  transform:rotate(-3deg);
}
.float-card strong{display:block;font-size:28px;color:var(--green);line-height:1}
.float-card span{display:block;margin-top:5px;font-size:13px;color:var(--muted)}

.section{padding:76px 0}
.section-head{max-width:690px;margin-bottom:30px}
.section-label{color:var(--green);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.section h2{
  margin:8px 0 10px;
  font-size:clamp(32px,4.5vw,48px);
  line-height:1.05;
  letter-spacing:-.04em;
}
.section-sub{margin:0;color:var(--muted);font-size:18px;line-height:1.55}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step{
  position:relative;
  min-height:240px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.82);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.step-num{
  display:grid;
  place-items:center;
  width:44px;height:44px;
  border-radius:14px;
  background:var(--green);
  color:#fff;
  font-weight:800;
}
.step:nth-child(2) .step-num{background:#D97963}
.step:nth-child(3) .step-num{background:#657BBE}
.step h3{margin:34px 0 8px;font-size:22px;letter-spacing:-.02em}
.step p{margin:0;color:var(--muted);line-height:1.55}
.step::after{
  content:"";
  position:absolute;
  width:95px;height:95px;border-radius:50%;
  right:-28px;bottom:-34px;
  background:var(--green-soft);
}
.step:nth-child(2)::after{background:#FFE1D8}
.step:nth-child(3)::after{background:#E2E7FA}

.subjects{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.subject-card{
  padding:30px;
  border-radius:var(--radius-xl);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.subject-card.math{background:linear-gradient(145deg,#FFF4CF,#FFFDF7)}
.subject-card.lang{background:linear-gradient(145deg,#E4F2E5,#FFFDF8)}
.subject-icon{
  display:grid;place-items:center;
  width:54px;height:54px;border-radius:18px;
  background:#fff;border:1px solid rgba(0,0,0,.05);
  font-size:25px;font-weight:800;
}
.subject-card h3{margin:20px 0 8px;font-size:28px;letter-spacing:-.03em}
.subject-card p{margin:0;color:var(--muted);line-height:1.6}
.checks{display:grid;gap:10px;margin:18px 0 0;padding:0;list-style:none}
.checks li{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.checks li::before{content:"✓";color:var(--green);font-weight:900}

.parent-callout{
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  padding:32px 34px;
  background:var(--green);
  color:#fff;
  border-radius:var(--radius-xl);
  overflow:hidden;
  position:relative;
}
.parent-callout::after{
  content:"";
  position:absolute;right:-45px;top:-80px;
  width:220px;height:220px;border-radius:50%;
  background:rgba(255,255,255,.09);
}
.parent-callout h2{margin:0 0 9px;font-size:32px;letter-spacing:-.03em}
.parent-callout p{margin:0;max-width:650px;color:rgba(255,255,255,.82);line-height:1.55}
.parent-callout .cta{position:relative;background:#fff;color:var(--green-dark);min-width:200px}

.footer{
  padding:36px 0 46px;
  color:var(--muted);
  font-size:13px;
}
.footer-row{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);padding-top:22px}

/* diagnostic refresh */
body:has(#app){background-color:var(--bg)}
body:has(#app) main{
  max-width:760px;
  margin:0 auto;
  padding:24px 18px 60px;
}
body:has(#app) .site-header{max-width:760px}

.sheet{
  position:relative;
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow-sm);
}
.sheet::before{display:none}
.note{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:7px 11px;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-family:"Onest",system-ui,sans-serif;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
}
.intro .sheet{padding:34px}
.intro-top{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:20px;
  align-items:center;
  margin-bottom:10px;
}
.intro-avi{
  width:96px;height:96px;
  padding:7px;
  border-radius:28px;
  background:linear-gradient(145deg,#E3F0B0,#CFE9D2);
}
.intro h1{
  margin:0;
  font-size:clamp(30px,6vw,42px);
  line-height:1.04;
  letter-spacing:-.04em;
}
.intro .lead{font-size:18px;line-height:1.55;color:var(--muted);margin:16px 0 22px}
.intro ol{
  margin:15px 0 0;
  padding-left:24px;
  color:#475248;
}
.intro li{padding-left:5px;margin-bottom:12px}
.tag{
  display:inline-flex;
  width:max-content;
  padding:7px 11px;
  border:0;
  border-radius:999px;
  background:#FFF0C7;
  color:#805B00;
  font-family:"Onest",system-ui,sans-serif;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
}
.field{font-size:14px;color:var(--muted);margin-top:24px}
input[type=text]{
  margin-top:7px;
  border:1.5px solid #CFC6BB;
  border-radius:16px;
  background:#fff;
  padding:14px 15px;
  color:var(--text);
}
input[type=text]:focus{border-color:var(--green);outline:4px solid rgba(47,125,87,.12)}

.primary{
  min-height:58px;
  margin-top:24px;
  border:0;
  border-radius:18px;
  padding:16px 20px;
  background:var(--green);
  color:#fff;
  box-shadow:0 7px 0 var(--green-dark);
  font-size:18px;
  font-weight:800;
}
.primary:active{transform:translateY(4px);box-shadow:0 3px 0 var(--green-dark)}
.primary[aria-disabled=true]{
  background:#F1EDE8;
  color:#8A8F8B;
  border:1px dashed #C8C0B8;
  box-shadow:none;
}

.top{margin:2px 0 12px}
.top .subj{font-size:18px;color:var(--green-dark)}
.top .count{font-size:13px;color:var(--muted)}
.cells{gap:5px;margin-bottom:18px}
.cells span{
  height:8px;
  border:0;
  border-radius:999px;
  background:#E6DED5;
}
.cells span.done{background:var(--green)}
.cells span.now{background:var(--coral)}
.parent{margin-bottom:16px}
.parent .say{margin-top:10px;font-size:20px;line-height:1.4}
.card{padding:18px 0 4px}
.card .big{font-size:clamp(44px,10vw,64px)}
.card .word{font-size:clamp(48px,12vw,72px)}
.card .read{font-size:26px;line-height:1.5}

.opts{gap:14px;margin-top:18px}
.opt{
  min-height:120px;
  border:1.5px solid #D8D0C7;
  border-radius:24px;
  background:#fff;
  color:var(--text);
  box-shadow:0 6px 0 #D8D0C7;
  font-size:48px;
  font-weight:800;
  transition:transform .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.opt:hover{border-color:#B7CDBD}
.opt:active{transform:translateY(4px);box-shadow:0 2px 0 #D8D0C7}
.opt.picked{
  background:#FFF0B4;
  border-color:#E6BD38;
  box-shadow:0 6px 0 #E6BD38;
}
.opt.long{min-height:94px;font-size:20px}
.under{margin-top:24px}
.ghost{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#566158;
  padding:9px 17px;
  font-size:14px;
  font-weight:700;
}
.break .sheet,.result>.sheet{text-align:center}
.break h1,.result h1{font-size:clamp(30px,6vw,42px);letter-spacing:-.04em}
.break p,.result .lead{font-size:17px;line-height:1.55;color:var(--muted)}
.subject{
  margin-top:18px;
  text-align:left;
}
.subject h2{font-size:20px;color:var(--green-dark)}
.level{font-size:clamp(36px,8vw,50px);letter-spacing:-.04em}
.subject p{line-height:1.55;color:#4F5A52}
.again{margin-top:24px}

@media (max-width:820px){
  .hero{grid-template-columns:1fr;gap:18px;padding:36px 0 54px}
  .hero-copy{max-width:620px}
  .mascot-stage{min-height:390px}
  .mascot-stage>img{width:min(330px,72%)}
  .speech{right:5%}
  .float-card{left:4%}
  .steps{grid-template-columns:1fr}
  .subjects{grid-template-columns:1fr}
  .parent-callout{grid-template-columns:1fr}
  .parent-callout .cta{width:max-content}
}

@media (max-width:520px){
  .site-shell,.site-header{width:min(100% - 24px,1120px)}
  .site-header{min-height:72px}
  .brand{font-size:20px}
  .brand img{width:38px;height:38px}
  .header-link{display:none}
  .hero{padding-top:24px}
  .hero h1{font-size:42px}
  .hero-meta{gap:8px}
  .meta-pill{font-size:12px;padding:8px 10px}
  .hero-actions{display:grid}
  .cta{width:100%}
  .mascot-stage{min-height:340px}
  .speech{top:18px;right:0;font-size:13px;max-width:155px}
  .float-card{bottom:20px;left:0;width:150px}
  .section{padding:56px 0}
  .parent-callout{padding:26px}
  .footer-row{align-items:flex-start;flex-direction:column}
  body:has(#app) main{padding:14px 12px 44px}
  body:has(#app) .site-header{width:calc(100% - 24px)}
  .sheet{padding:22px 18px;border-radius:24px}
  .intro .sheet{padding:24px 18px}
  .intro-top{grid-template-columns:72px 1fr;gap:14px}
  .intro-avi{width:72px;height:72px;border-radius:22px}
  .intro h1{font-size:30px}
  .intro .lead{font-size:16px}
  .opts{gap:10px}
  .opt{min-height:106px;border-radius:20px;font-size:42px}
  .opt.long{font-size:18px}
  .card .read{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .cta,.opt{transition:none}
}
