
:root{
  --navy:#0b2a57; --blue:#1477f8; --blue2:#0b5fc7; --sky:#eaf6ff; --ink:#173154;
  --muted:#64748b; --line:#e5edf6; --white:#fff; --cream:#fff7dc; --mint:#e9fbf3;
  --lav:#f2ecff; --pink:#ffedf3; --shadow:0 16px 42px rgba(16,54,96,.10);
  --radius:22px; --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.55}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.wrap{width:min(calc(100% - 32px),var(--max));margin:auto}
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav-inner{height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:11px;font-weight:900;color:var(--navy);letter-spacing:-.02em}
.brand small{display:block;font-weight:600;font-size:10px;color:#5e7188}
.logo{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e8f3ff;border:1px solid #cde4ff}
.logo svg{width:31px;height:31px}
.links{display:flex;align-items:center;gap:26px;font-size:14px;color:#173154}
.links a{padding:27px 0 23px;border-bottom:3px solid transparent}
.links a:hover,.links a.active{color:var(--blue)}
.links a.active{border-color:var(--blue)}
.nav-actions{display:flex;align-items:center;gap:14px}
.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:12px 19px;font-weight:800;font-size:14px}
.pill.primary{background:linear-gradient(135deg,var(--blue),#0a64d6);color:#fff;box-shadow:0 8px 20px rgba(20,119,248,.22)}
.menu{display:none;background:none;border:0;font-size:24px;color:var(--navy)}
.hero-simple{padding:80px 0;background:linear-gradient(135deg,#f8fcff,#eaf6ff);border-bottom:1px solid var(--line)}
.hero-simple .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#5b7ba1}
.hero-simple h1{font-size:clamp(42px,6vw,68px);line-height:1;letter-spacing:-.045em;margin:10px 0 16px;color:var(--navy)}
.hero-simple p{font-size:18px;color:#49617d;max-width:760px;margin:0}
section{padding:72px 0}
.section-title{max-width:760px;margin-bottom:30px}
.section-title.center{text-align:center;margin-left:auto;margin-right:auto}
.section-title h2{margin:0 0 8px;font-size:36px;letter-spacing:-.035em;color:var(--navy)}
.section-title p{margin:0;color:#55708e}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 10px 28px rgba(25,66,110,.06)}
.card h3{margin:0 0 8px;color:var(--navy);font-size:20px}
.card p{margin:0;color:#526b87;font-size:14px}
.badge{display:inline-flex;margin-bottom:12px;border-radius:999px;padding:6px 10px;background:#edf6ff;color:var(--blue2);font-size:12px;font-weight:800}
.lesson-card{position:relative;overflow:hidden;min-height:240px}
.lesson-card .num{font-size:48px;font-weight:900;color:#d9e9ff;line-height:1}
.lesson-card ul{margin:12px 0 0;padding-left:18px;color:#4e6680;font-size:14px}
.lesson-card li+li{margin-top:6px}
.activity-card{display:flex;gap:14px;align-items:flex-start}
.activity-card .ico{font-size:32px}
.activity-card .meta{font-size:12px;color:#7b8ca0;margin-bottom:4px}
.cta-band{background:linear-gradient(120deg,#0a2d58,#0e4c88);color:#fff;border-radius:28px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.cta-band h2{color:#fff;margin:0 0 6px}.cta-band p{margin:0;color:#d8e5f3}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:10px;border:1px solid var(--blue);font-weight:800;font-size:14px}
.btn.primary{background:var(--blue);color:#fff}
.btn.light{background:#fff;color:var(--blue)}
.note{background:#fff8df;border:1px solid #f5e7a9;border-radius:16px;padding:18px;color:#6b5a16}
.checklist{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.checklist li{padding-left:28px;position:relative;color:#3d5875}
.checklist li:before{content:"✓";position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;background:var(--blue);color:#fff;font-size:11px;display:grid;place-items:center;font-weight:900}
.faq{display:grid;gap:12px}
details{border:1px solid var(--line);border-radius:16px;padding:16px 18px;background:#fff}
summary{cursor:pointer;font-weight:800;color:var(--navy)}
details p{color:#526b87;font-size:14px}
footer{padding:28px 0;background:#fff;color:#61748b;font-size:12px;border-top:1px solid var(--line)}
.footer{display:flex;align-items:center;justify-content:space-between;gap:20px}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}
@media(max-width:900px){
  .links{display:none}.menu{display:block}
  .grid-3,.grid-2{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .wrap{width:min(calc(100% - 24px),var(--max))}
  .nav-inner{height:64px}.brand small{display:none}
  .hero-simple{padding:56px 0}
  section{padding:54px 0}
  .grid-3,.grid-2{grid-template-columns:1fr}
  .cta-band{display:block}.cta-band .btn{margin-top:18px;width:100%}
  .footer{display:block}.footer-links{margin-top:14px}
}


/* ---------- Interactive activity tools ---------- */
.tool-shell{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.tool-head{padding:24px 24px 18px;background:linear-gradient(135deg,#f7fbff,#eef7ff);border-bottom:1px solid var(--line)}
.tool-head h2{margin:0 0 6px;color:var(--navy);font-size:28px}
.tool-head p{margin:0;color:#55708e}
.tool-body{padding:24px}
.tool-progress{height:8px;background:#edf2f7;border-radius:999px;overflow:hidden;margin-bottom:20px}
.tool-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#65b5ff);border-radius:999px}
.question-card{background:#f8fbff;border:1px solid #dfebf5;border-radius:18px;padding:20px}
.question-card h3{margin:0 0 10px;color:var(--navy)}
.question-card p{margin:0;color:#48617d}
.option-grid{display:grid;gap:10px;margin-top:18px}
.option-btn{width:100%;text-align:left;border:1px solid #d9e5f1;background:#fff;border-radius:14px;padding:14px 15px;cursor:pointer;font:inherit;color:#294965;transition:.18s}
.option-btn:hover{border-color:#8ec2ff;transform:translateY(-1px)}
.option-btn.correct{border-color:#56c89a;background:#ecfbf4}
.option-btn.wrong{border-color:#ff9a9a;background:#fff0f0}
.feedback{margin-top:16px;padding:15px 16px;border-radius:14px;display:none}
.feedback.show{display:block}
.feedback.good{background:#ecfbf4;border:1px solid #b8efd3;color:#176b4b}
.feedback.bad{background:#fff5e8;border:1px solid #ffd8a2;color:#7a4c0d}
.feedback strong{display:block;margin-bottom:4px}
.tool-nav{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.tool-nav button{border:0;border-radius:10px;padding:12px 16px;font-weight:800;cursor:pointer}
.tool-nav .next{background:var(--blue);color:#fff}
.tool-nav .reset{background:#eef4fa;color:#355071}
.compare-box{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.sample{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}
.sample b{display:block;margin-bottom:6px;color:var(--navy)}
.prompt-step{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff}
.prompt-step+.prompt-step{margin-top:14px}
.prompt-label{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf6ff;color:var(--blue2);font-size:11px;font-weight:900;margin-bottom:8px}
.prompt-text{background:#f8fbff;border:1px dashed #bdd9f4;border-radius:12px;padding:13px;color:#294965}
.why{margin-top:10px;color:#526b87;font-size:14px}
.story-stage{background:linear-gradient(180deg,#fff9e9,#fff);border:1px solid #f2e4b8;border-radius:18px;padding:20px}
.story-stage h3{margin-top:0;color:var(--navy)}
.story-choices{display:grid;gap:10px;margin-top:16px}
.story-choices button{border:1px solid #d9e5f1;background:#fff;border-radius:14px;padding:13px;text-align:left;cursor:pointer;font:inherit;color:#294965}
.story-note{margin-top:14px;background:#eef8ff;border-left:4px solid var(--blue);padding:12px 14px;border-radius:0 12px 12px 0;color:#3a5874;font-size:14px}
.score-box{text-align:center;padding:26px;border-radius:18px;background:linear-gradient(135deg,#eef7ff,#f9fcff);border:1px solid var(--line)}
.score-box .score{font-size:54px;font-weight:900;color:var(--blue)}
.age-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.age-tab{border:1px solid #cfe0ef;background:#fff;border-radius:999px;padding:9px 13px;cursor:pointer;font-weight:800;color:#48617d}
.age-tab.active{background:var(--blue);border-color:var(--blue);color:#fff}
.tool-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.tool-launch{border-radius:18px;padding:18px;min-height:170px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(0,0,0,.04)}
.tool-launch:nth-child(1){background:#ffedf3}
.tool-launch:nth-child(2){background:#e7faf3}
.tool-launch:nth-child(3){background:#f0ebff}
.tool-launch:nth-child(4){background:#fff5d9}
.tool-launch:nth-child(5){background:#e8f5ff}
.tool-launch h3{margin:6px 0;color:var(--navy);font-size:17px}
.tool-launch p{margin:0 0 16px;color:#536b85;font-size:13px}
.tool-launch a{font-weight:900;color:var(--blue);font-size:13px}
@media(max-width:900px){.tool-grid{grid-template-columns:1fr 1fr}.compare-box{grid-template-columns:1fr}}
@media(max-width:640px){.tool-grid{grid-template-columns:1fr}.tool-body{padding:18px}.tool-head{padding:20px}.tool-nav{flex-direction:column}.tool-nav button{width:100%}}

/* ---------- Gamification: Sparks & badges ---------- */
.head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.sparks-pill{display:flex;align-items:center;gap:6px;background:linear-gradient(135deg,#fff2c9,#ffe19a);border:1px solid #f0cf7a;border-radius:999px;padding:8px 13px;font-weight:900;color:#8a5a05;font-size:14px;white-space:nowrap;flex-shrink:0}
.sparks-pill svg{width:16px;height:16px}
.badge-track{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px;padding:10px 14px;background:#f8fbff;border:1px solid #e3edf7;border-radius:14px}
.badge-track .txt{font-size:12.5px;color:#5b7290;font-weight:700}
.badge-track .txt b{color:var(--navy)}
.mini-badge{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;flex-shrink:0;transition:.2s}
.mini-badge svg{width:17px;height:17px}
.mini-badge.off{background:#e7edf5;border:1.5px dashed #b9c8d9;color:#93a4b8}
.mini-badge.on{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;border:1.5px solid transparent;box-shadow:0 6px 14px rgba(20,119,248,.28)}
.option-btn{display:flex;align-items:center;justify-content:space-between;gap:10px}
.earn-chip{display:inline-flex;align-items:center;gap:4px;background:#eafcf1;border:1px solid #a9e8c5;color:#1a8f5c;font-size:11px;font-weight:900;padding:4px 8px;border-radius:999px;flex-shrink:0}
.earn-chip svg{width:11px;height:11px}

/* Badge unlock celebration */
.badge-card{max-width:520px;margin:0 auto;text-align:center;padding:8px 4px 4px}
.medal-ring{width:112px;height:112px;margin:0 auto 16px;border-radius:50%;background:linear-gradient(150deg,#fff2c9,#ffcf6b);display:flex;align-items:center;justify-content:center;box-shadow:0 14px 30px rgba(220,160,20,.28)}
.medal-ring .inner{width:88px;height:88px;border-radius:50%;background:linear-gradient(150deg,var(--blue),var(--blue2));display:flex;align-items:center;justify-content:center;color:#fff}
.medal-ring svg{width:44px;height:44px}
.badge-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:#c98a08;margin-bottom:6px}
.badge-card h2{margin:0 0 8px;font-size:26px;letter-spacing:-.03em;color:var(--navy)}
.badge-card .sub{margin:0 0 20px;color:#55708e;font-size:14.5px}
.earned-row{display:inline-flex;align-items:center;gap:8px;background:#fff8df;border:1px solid #f5e7a9;color:#6b5a16;border-radius:999px;padding:10px 18px;font-weight:900;font-size:14px;margin-bottom:26px}
.earned-row svg{width:16px;height:16px}
.shelf-title{font-size:12px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#8296ae;margin-bottom:12px}
.shelf{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:26px}
.shelf-item{display:flex;flex-direction:column;align-items:center;gap:7px}
.shelf-icon{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.shelf-icon svg{width:23px;height:23px}
.shelf-icon.on{background:linear-gradient(150deg,var(--blue),var(--blue2));color:#fff;box-shadow:0 8px 18px rgba(20,119,248,.28)}
.shelf-icon.off{background:#eef2f7;color:#aab8c6;border:1.5px dashed #cbd6e2}
.shelf-item .lbl{font-size:11px;font-weight:800;color:#5b7290;text-align:center}
.shelf-item.off .lbl{color:#a7b4c3}
.badge-btn-row{display:flex;gap:12px;justify-content:center}
.task-complete{margin-top:18px}

/* Activities page: progress summary panel */
.progress-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:28px}
.progress-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.progress-panel-head h2{margin:4px 0 0;font-size:22px;letter-spacing:-.02em;color:var(--navy)}
.card-status{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:800;padding:5px 10px;border-radius:999px;margin-top:10px}
.card-status.earned{background:#eafcf1;color:#1a8f5c;border:1px solid #a9e8c5}
.card-status.progress{background:#edf6ff;color:#0b5fc7;border:1px solid #bfe0ff}
.card-status.empty{background:#f1f5f9;color:#8296ae;border:1px solid #e2e8f0}
@media(max-width:640px){.progress-panel{padding:22px}}

/* ---------- Language switcher ---------- */
.lang-select{border:1px solid var(--line);border-radius:999px;padding:9px 10px;font-weight:800;font-size:13px;color:var(--navy);background:#fff;cursor:pointer;max-width:118px}
.lang-select:hover{border-color:#8ec2ff}
@media(max-width:640px){.lang-select{padding:7px 6px;font-size:11px;max-width:84px}}
