/* Horace styles. Self-hosted fonts, no external requests. */
@font-face { font-family: 'Fredoka'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/fredoka-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('../vendor/fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../vendor/fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('../vendor/fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('../vendor/fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  --h-purple: #5B4BDB;
  --h-purple-d: #3E30AE;
  --h-purple-l: #ECE9FF;
  --h-yellow: #FFC93C;
  --h-orange: #FF8A3D;
  --h-pink: #FF6B9D;
  --h-green: #2BB673;
  --h-blue: #3EC1F3;
  --h-teal: #17B5A6;
  --h-ink: #1F2A44;
  --h-cream: #FFFAF2;
  --bs-primary: #5B4BDB;
  --bs-primary-rgb: 91, 75, 219;
  --bs-body-font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: #1F2A44;
  --bs-link-color: #5B4BDB;
  --bs-link-hover-color: #3E30AE;
  --bs-border-radius: .9rem;
}

body { background: var(--h-cream); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .kid-title, .brand-word, .display-4, .display-6 { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; }

.btn { font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--h-purple); --bs-btn-border-color: var(--h-purple); --bs-btn-hover-bg: var(--h-purple-d); --bs-btn-hover-border-color: var(--h-purple-d); --bs-btn-active-bg: var(--h-purple-d); }
.btn-outline-primary { --bs-btn-color: var(--h-purple); --bs-btn-border-color: var(--h-purple); --bs-btn-hover-bg: var(--h-purple); --bs-btn-hover-border-color: var(--h-purple); }
.btn-success { --bs-btn-bg: var(--h-green); --bs-btn-border-color: var(--h-green); --bs-btn-hover-bg: #22995F; --bs-btn-hover-border-color: #22995F; }
.form-control, .form-select { border-radius: .8rem; border: 2px solid #E4E0F5; }
.form-control:focus, .form-select:focus { border-color: var(--h-purple); box-shadow: 0 0 0 .25rem rgba(91, 75, 219, .15); }
.nav-pills .nav-link.active { background: var(--h-purple); }

/* Navs */
.public-nav { background: transparent; padding: 1rem 0; }
.parent-nav { background: var(--h-purple); }
.parent-nav .nav-link, .parent-nav .navbar-brand { color: #fff; }
.parent-nav .nav-link:hover { color: var(--h-yellow); }
.parent-nav .navbar-toggler { border-color: rgba(255,255,255,.5); }
.parent-nav .navbar-toggler-icon { filter: invert(1); }
.child-nav { background: linear-gradient(90deg, #5B4BDB, #7A6BFF); padding: .6rem 0; }
.child-nav .navbar-brand, .child-nav .brand-word { color: #fff; }
.brand-word { font-size: 1.6rem; letter-spacing: .5px; color: var(--h-purple); }
.parent-nav .brand-word { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.pill-star { background: #FFF3C4; color: #9A6B00; }
.pill-star .bi { color: #F2B21B; }
.pill-fire { background: #FFE2D3; color: #B44A12; }
.buddy-chip { font-size: 1.6rem; background: #fff; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 rgba(0,0,0,.12); }

/* Cards */
.card-soft { border: 0; border-radius: 1.5rem; box-shadow: 0 10px 30px rgba(31, 42, 68, .07); background: #fff; }
.section-title { color: var(--h-purple-d); margin-bottom: 1rem; }
.section-title .bi { margin-right: .3rem; }
.badge-soft { display: inline-block; background: var(--h-purple-l); color: var(--h-purple-d); padding: .4rem .9rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }

/* Landing */
.landing { background: radial-gradient(circle at 10% 10%, #FFF0C9 0, transparent 40%), radial-gradient(circle at 90% 20%, #E7E3FF 0, transparent 45%), var(--h-cream); }
.hero { padding: 2rem 0 3rem; }
.hero-title { font-weight: 700; line-height: 1.1; }
.hero-title .hl { color: var(--h-purple); }
.hero-title em { font-style: normal; color: var(--h-orange); }
.hero-card { position: relative; background: #fff; border-radius: 2rem; padding: 2rem; box-shadow: 0 20px 50px rgba(91,75,219,.18); display: inline-block; max-width: 420px; width: 100%; }
.hero-owl { width: 200px; max-width: 60%; }
.speech { position: relative; background: #fff; border: 3px solid var(--h-purple); border-radius: 1.2rem; padding: .7rem 1rem; font-weight: 700; display: inline-block; margin-top: .5rem; }
.hero-card .speech { background: var(--h-purple-l); border-color: transparent; }
.speech-left { margin-top: .25rem; }
.mini-q { margin-top: 1rem; background: var(--h-cream); border-radius: 1rem; padding: .8rem; display: flex; flex-direction: column; }
.mini-q-label { font-size: .8rem; color: #7a7f99; font-weight: 700; }
.mini-q strong { font-family: 'Fredoka'; font-size: 1.8rem; }
.feature-card { background: #fff; border-radius: 1.5rem; padding: 1.6rem; box-shadow: 0 8px 24px rgba(31,42,68,.06); }
.feature-card .bi { font-size: 2rem; color: var(--h-purple); display: inline-block; background: var(--h-purple-l); width: 56px; height: 56px; border-radius: 1rem; text-align: center; line-height: 56px; }
.feature-card h3 { font-size: 1.25rem; margin-top: 1rem; }
.feature-card p { color: #5b6280; margin: 0; }
.parent-strip { background: var(--h-purple); color: #fff; border-radius: 2rem; padding: 2.2rem; }

/* Dashboard */
.buddy-big { font-size: 2.4rem; background: var(--h-purple-l); width: 64px; height: 64px; border-radius: 1.2rem; display: flex; align-items: center; justify-content: center; }
.stat { background: var(--h-cream); border-radius: 1rem; padding: .6rem .3rem; height: 100%; }
.stat-v { font-family: 'Fredoka'; font-size: 1.35rem; font-weight: 600; }
.stat-l { font-size: .72rem; color: #6b7190; line-height: 1.1; }
.level-tag { background: var(--h-purple-l); color: var(--h-purple-d); padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; }
.buddy-pick { font-size: 1.6rem; width: 58px; height: 58px; border-radius: 1rem !important; }

/* Report */
.kpi { background: #fff; border-radius: 1.2rem; padding: 1rem 1.2rem; box-shadow: 0 6px 18px rgba(31,42,68,.06); height: 100%; }
.kpi-l { font-size: .8rem; color: #6b7190; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.kpi-v { font-family: 'Fredoka'; font-size: 1.9rem; font-weight: 600; color: var(--h-purple-d); }
.kpi-s { font-size: .85rem; color: #6b7190; }
.ai-report { background: var(--h-cream); border-radius: 1rem; padding: 1rem 1.2rem; white-space: normal; line-height: 1.6; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; background: #FFB3B3; border-radius: 6px 6px 2px 2px; display: flex; flex-direction: column-reverse; overflow: hidden; }
.bar-ok { background: var(--h-green); width: 100%; }
.bar-l { font-size: .75rem; color: #7a7f99; margin-top: 4px; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.legend-a { background: var(--h-green); } .legend-b { background: #FFB3B3; }
.strand-row { margin-bottom: .7rem; }
.strand-bar { position: relative; height: 12px; background: #EEF0F6; border-radius: 999px; margin-top: 3px; }
.strand-fill { height: 100%; border-radius: 999px; }
.strand-fill.ok { background: var(--h-green); } .strand-fill.mid { background: var(--h-yellow); } .strand-fill.low { background: var(--h-pink); }
.strand-mark { position: absolute; top: -3px; width: 3px; height: 18px; background: var(--h-ink); border-radius: 2px; }
.strand-mark-key { display: inline-block; width: 3px; height: 12px; background: var(--h-ink); vertical-align: middle; }
.weak-item { background: var(--h-cream); border-radius: .9rem; padding: .7rem .9rem; margin-bottom: .6rem; }
.code-chip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; background: var(--h-purple-l); color: var(--h-purple-d); padding: .1rem .45rem; border-radius: .4rem; white-space: nowrap; }
.state { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.state-secure { background: #D7F5E6; color: #157347; } .state-developing { background: #FFF1C9; color: #8A6100; }
.state-focus { background: #FFDCE6; color: #B0244F; } .state-new { background: #EEF0F6; color: #6b7190; }
.coverage { max-height: 520px; overflow: auto; }
.q-log { max-height: 640px; overflow: auto; }
.row-wrong td { background: #FFF6F8; }

/* Child home */
.learn-owl { width: 96px; height: 96px; }
.goal-card { background: #fff; border-radius: 1.4rem; padding: 1rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 8px 24px rgba(31,42,68,.06); }
.ring { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #E9E4FF; }
.ring span { background: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; padding: 1.2rem; border-radius: 1.6rem; color: #fff; text-decoration: none; box-shadow: 0 8px 0 rgba(0,0,0,.12); transition: transform .12s ease, box-shadow .12s ease; overflow: hidden; }
.tile:hover, .tile:focus { color: #fff; transform: translateY(-4px); box-shadow: 0 12px 0 rgba(0,0,0,.12); }
.tile:active { transform: translateY(3px); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.tile .bi { font-size: 2.6rem; position: absolute; top: 1rem; left: 1.2rem; }
.tile::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.15); }
.tile-title { font-family: 'Fredoka'; font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.tile-blurb { font-size: .85rem; opacity: .95; }
.tile-level { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.25); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 800; z-index: 1; }
.tile-badge { position: absolute; top: .8rem; right: .8rem; background: #fff; color: var(--h-pink); font-weight: 800; border-radius: 999px; min-width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.tile-purple { background: linear-gradient(135deg, #7A6BFF, #5B4BDB); }
.tile-orange { background: linear-gradient(135deg, #FFA45C, #FF7A2F); }
.tile-pink { background: linear-gradient(135deg, #FF8DB3, #F2557F); }
.tile-blue { background: linear-gradient(135deg, #5ED0FF, #2A9FD8); }
.tile-green { background: linear-gradient(135deg, #4FD08F, #22995F); }
.tile-yellow { background: linear-gradient(135deg, #FFD45C, #F2A900); }
.tile-teal { background: linear-gradient(135deg, #3ED6C6, #12968A); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; }
.kid-badge { background: #fff; border-radius: 1.2rem; padding: 1rem .6rem; text-align: center; display: flex; flex-direction: column; align-items: center; opacity: .45; filter: grayscale(1); border: 3px dashed #E0DCF3; }
.kid-badge.got { opacity: 1; filter: none; border: 3px solid var(--h-yellow); box-shadow: 0 6px 0 #F2D27A; }
.kid-badge .bi { font-size: 2rem; color: var(--h-orange); }
.kid-badge span { font-weight: 800; }
.kid-badge small { color: #7a7f99; font-size: .75rem; }

/* Play */
.play-page { background: radial-gradient(circle at 15% 85%, #FFF0C9 0, transparent 35%), radial-gradient(circle at 85% 15%, #E7E3FF 0, transparent 40%), var(--h-cream); }
.play-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.play-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.play-progress { height: 14px; background: #E6E2FA; }
.play-progress .progress-bar { background: linear-gradient(90deg, var(--h-green), #6BD99F); transition: width .4s ease; }
.think-owl { width: 140px; animation: tilt 1.4s ease-in-out infinite; }
.dots span { display: inline-block; width: 12px; height: 12px; margin: 0 4px; border-radius: 50%; background: var(--h-purple); animation: dot 1.2s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
.q-card, .fb-card, .summary-card, .passage-card { background: #fff; border-radius: 2rem; padding: 1.6rem; box-shadow: 0 14px 40px rgba(31,42,68,.08); }
.q-tag { background: var(--h-purple-l); color: var(--h-purple-d); font-weight: 800; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }
.q-timer { font-weight: 800; color: var(--h-pink); }
.timer-bar { height: 8px; background: #FFE0EA; border-radius: 999px; overflow: hidden; margin-bottom: .8rem; }
.timer-bar div { height: 100%; background: var(--h-pink); width: 100%; }
.q-prompt { font-size: 1.35rem; font-weight: 700; line-height: 1.45; margin: .8rem 0 1.2rem; }
.q-prompt-big { font-family: 'Fredoka'; font-size: 2.6rem; text-align: center; letter-spacing: 1px; }
.q-data { background: #fff; }
.q-data th { background: var(--h-purple-l); }
.answer-input { font-size: 1.8rem; font-weight: 800; text-align: center; border-width: 3px; border-radius: 1rem !important; padding: .7rem; }
.input-group .input-group-text { font-weight: 800; font-size: 1.3rem; border: 3px solid #E4E0F5; border-left: 0; background: var(--h-purple-l); border-radius: 0 1rem 1rem 0 !important; }
.input-group:has(.input-group-text:not(.d-none)) .answer-input { border-radius: 1rem 0 0 1rem !important; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; max-width: 360px; margin-left: auto; margin-right: auto; }
.numpad .np-key { border: 0; background: var(--h-purple-l); border-radius: 1rem; font-size: 1.5rem; font-weight: 800; padding: .55rem 0; color: var(--h-ink); box-shadow: 0 4px 0 #CFC8F5; }
.numpad .np-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #CFC8F5; }
.numpad .np-del { background: #FFE0EA; box-shadow: 0 4px 0 #F5BCCD; }
.numpad .np-key[data-k=" "] { font-size: .95rem; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 575px) { .options-grid { grid-template-columns: 1fr; } .q-prompt-big { font-size: 2rem; } }
.opt-btn { display: flex; align-items: center; gap: .8rem; text-align: left; border: 3px solid #E4E0F5; background: #fff; border-radius: 1.2rem; padding: .9rem 1rem; font-size: 1.1rem; font-weight: 700; color: var(--h-ink); box-shadow: 0 5px 0 #E4E0F5; transition: transform .08s; }
.opt-btn:hover { border-color: var(--h-purple); }
.opt-btn.picked { background: var(--h-purple-l); border-color: var(--h-purple); }
.opt-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #E4E0F5; }
.opt-letter { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--h-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka'; }
.btn-check-answer, .btn-next { background: var(--h-green); color: #fff; font-size: 1.2rem; padding: .7rem 1.6rem; box-shadow: 0 5px 0 #1E8A55; border: 0; }
.btn-check-answer:hover, .btn-next:hover { background: #26A566; color: #fff; }
.btn-check-answer:active, .btn-next:active { transform: translateY(3px); box-shadow: 0 2px 0 #1E8A55; }
.btn-hint { background: #FFF3C4; color: #8A6100; border: 0; box-shadow: 0 4px 0 #F2D27A; }
.btn-explain { background: var(--h-purple-l); color: var(--h-purple-d); border: 0; box-shadow: 0 4px 0 #CFC8F5; }
.btn-speak { background: var(--h-yellow); color: var(--h-ink); font-size: 1.3rem; border-radius: 999px; padding: .8rem 1.6rem; box-shadow: 0 5px 0 #D9A400; border: 0; }
.masked { font-size: 1.2rem; font-weight: 700; color: #4b5170; }
.hint-box { margin-top: 1rem; background: #FFF8DD; border-radius: 1rem; padding: .8rem 1rem; font-weight: 700; color: #6E5200; }
.fb-card { border: 4px solid transparent; }
.fb-card.fb-ok { border-color: #8EE0B6; background: linear-gradient(180deg, #F0FFF7, #fff 40%); }
.fb-card.fb-no { border-color: #FFC6D6; background: linear-gradient(180deg, #FFF5F8, #fff 40%); }
.fb-owl { width: 86px; }
.owl-happy { animation: hop .6s ease 2; }
.owl-think { animation: tilt 1.6s ease-in-out 1; }
.fb-title { font-size: 2rem; margin: 0; }
.fb-stars .bi { color: #F2B21B; font-size: 1.5rem; margin-right: 2px; animation: pop .4s ease both; }
.fb-answer { font-size: 1.2rem; margin-top: 1rem; }
.fb-answer .given { text-decoration: line-through; color: #B0244F; }
.fb-feedback { margin-top: .5rem; font-weight: 700; color: var(--h-purple-d); }
.fb-expl { margin-top: .8rem; font-size: 1.1rem; background: var(--h-cream); border-radius: 1rem; padding: .8rem 1rem; }
.fb-expl:empty { display: none; }
.fb-steps { margin-top: .6rem; font-size: 1.05rem; }
.explain-box { margin-top: 1rem; display: flex; gap: .7rem; align-items: flex-start; background: var(--h-purple-l); border-radius: 1rem; padding: 1rem; font-size: 1.08rem; }
.passage-card { max-height: 75vh; overflow-y: auto; position: sticky; top: 1rem; }
.passage-genre { text-transform: uppercase; font-size: .75rem; font-weight: 800; color: var(--h-orange); letter-spacing: .5px; }
.passage-title { font-size: 1.6rem; }
.passage-body { font-size: 1.12rem; line-height: 1.75; font-family: 'Nunito', Georgia, serif; }
.summary-card { max-width: 620px; margin: 0 auto; }
.summary-owl { width: 130px; }
.sum-stat { background: var(--h-cream); border-radius: 1.2rem; padding: 1rem .5rem; }
.sum-v { font-family: 'Fredoka'; font-size: 1.8rem; font-weight: 600; }
.sum-l { font-size: .85rem; color: #6b7190; }
.shake { animation: shake .4s; }
.pin-input { letter-spacing: .6rem; font-size: 2rem; font-weight: 800; }

#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2000; }
#confetti .cf { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px; animation: fall 2.2s cubic-bezier(.2,.6,.4,1) forwards; }

.site-footer { padding: 1.5rem 0; color: #7a7f99; font-size: .9rem; }
.site-footer a { color: #7a7f99; }

.bob { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tilt { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px) scale(1.05); } }
@keyframes dot { 0%,80%,100% { transform: scale(.4); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  .bob, .think-owl, .owl-happy, .owl-think, .dots span, #confetti .cf, .fb-stars .bi { animation: none !important; }
}
@media print {
  .parent-nav, .site-footer, .btn, form { display: none !important; }
  .card-soft { box-shadow: none; border: 1px solid #ddd; }
  .coverage, .q-log { max-height: none; overflow: visible; }
}

/* Schools */
.school-name { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; border-left: 1px solid rgba(255,255,255,.35); padding-left: .6rem; margin-left: .2rem; }
.code-box { background: #fff; border-radius: 1.2rem; padding: .8rem 1.2rem; box-shadow: 0 6px 18px rgba(31,42,68,.06); text-align: right; }
.school-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.8rem; font-weight: 800; letter-spacing: 3px; color: var(--h-purple-d); }
.getting-started li { margin-bottom: .35rem; }
.getting-started li.done { color: #6b7190; text-decoration: line-through; }
.class-table td, .pupil-table td { vertical-align: middle; }
.row-active td { background: #F0FFF7; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--h-green); box-shadow: 0 0 0 0 rgba(43,182,115,.6); animation: pulse 1.6s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,182,115,.6); } 70% { box-shadow: 0 0 0 8px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }
.kid-input { font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; text-align: center; border-width: 3px; }
.pupil-login .kid-input.pin-input { letter-spacing: .6rem; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Mastery loop and teaching */
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-radius: 1rem; padding: .5rem .9rem; margin-bottom: .6rem; font-weight: 800; background: var(--h-purple-l); color: var(--h-purple-d); }
.stage-bar[data-stage="practice"] { background: #FFF1C9; color: #8A6100; }
.stage-bar[data-stage="check"] { background: #E0F5FF; color: #1C6E96; }
.stage-bar[data-stage="step"] { background: #D7F5E6; color: #157347; }
.stage-bar[data-stage="retry"] { background: #FFE0EA; color: #B0244F; }
.mastery-dots .bi { color: #F2B21B; margin-left: 2px; }
.fb-event { margin-top: 1rem; background: #EFFAF4; border-radius: 1rem; padding: .7rem 1rem; font-weight: 800; color: #157347; }
.fb-no .fb-event { background: #FFF6E0; color: #8A6100; }
.teach { margin-top: 1.2rem; }
.teach-loading { font-weight: 700; color: var(--h-purple-d); background: var(--h-purple-l); border-radius: 1rem; padding: .8rem 1rem; }
.teach-sec { background: #fff; border: 2px solid #EEEAFE; border-radius: 1.2rem; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.teach-sec h3 { font-size: 1.15rem; color: var(--h-purple-d); margin-bottom: .5rem; }
.teach-sec p, .teach-sec li { font-size: 1.12rem; line-height: 1.55; }
.teach-sec ol { padding-left: 1.4rem; margin-bottom: 0; }
.teach-how li { margin-bottom: .3rem; }
.teach-tip { background: #FFF8DD; border-color: #FFE7A3; }
.ex-card { background: var(--h-cream); border-radius: 1rem; padding: .8rem 1rem; margin-bottom: .6rem; }
.ex-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; color: var(--h-orange); letter-spacing: .4px; }
.ex-q { font-weight: 800; font-size: 1.15rem; margin: .2rem 0 .5rem; }
.ex-working { margin: .3rem 0; }
.ex-answer { font-size: 1.1rem; margin-bottom: .2rem; }
.pace-chip { display: inline-flex; gap: .25rem; align-items: center; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.pace-support { background: #FFE0EA; color: #B0244F; } .pace-steady { background: #E0F5FF; color: #1C6E96; } .pace-push { background: #D7F5E6; color: #157347; }
.group-card { background: var(--h-cream); border-radius: 1rem; padding: .9rem 1rem; margin-bottom: .7rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .2rem .8rem; max-height: 220px; overflow: auto; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Homepage ---------------- */
.lp main { overflow-x: hidden; }
.lp-hero { padding: 2.5rem 0 4rem; position: relative; }
.lp-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(122,107,255,.22), transparent 65%); z-index: -1; }
.lp-title { font-family: 'Fredoka'; font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.04; letter-spacing: -.5px; }
.lp-hl { background: linear-gradient(90deg, #5B4BDB, #FF6B9D 60%, #FF8A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 1.2rem; color: #4b5170; margin-top: 1.2rem; max-width: 560px; }
.lp-cta { box-shadow: 0 10px 24px rgba(91,75,219,.35); }
.lp-trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: #4b5170; font-weight: 700; font-size: .95rem; }
.lp-trust .bi { color: var(--h-green); }

.lp-demo { background: #fff; border-radius: 2rem; box-shadow: 0 30px 70px rgba(91,75,219,.25); max-width: 460px; margin: 0 auto; overflow: hidden; transform: rotate(1.2deg); border: 1px solid #EEEAFE; }
.lp-demo-bar { background: linear-gradient(90deg, #5B4BDB, #7A6BFF); padding: .7rem 1rem; display: flex; align-items: center; gap: .35rem; }
.lp-demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); }
.lp-demo-bar em { color: #fff; font-style: normal; font-weight: 800; margin-left: .6rem; font-size: .9rem; }
.lp-demo-body { position: relative; min-height: 340px; padding: 1.4rem; }
.lp-step { position: absolute; inset: 1.4rem; opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.lp-step.on { opacity: 1; transform: none; }
.lp-chip { display: inline-block; background: var(--h-purple-l); color: var(--h-purple-d); font-weight: 800; border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; }
.lp-chip .bi { color: #F2B21B; }
.lp-chip-practice { background: #FFF1C9; color: #8A6100; }
.lp-q { font-family: 'Fredoka'; font-size: 2.6rem; font-weight: 600; text-align: center; margin: 2rem 0 1.2rem; }
.lp-input { border: 3px solid #E4E0F5; border-radius: 1rem; padding: .7rem; text-align: center; font-size: 1.8rem; font-weight: 800; max-width: 220px; margin: 0 auto; }
.lp-caret { display: inline-block; width: 3px; height: 1.5rem; background: var(--h-purple); vertical-align: middle; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lp-owl-row { display: flex; align-items: center; gap: .7rem; font-family: 'Fredoka'; font-size: 1.3rem; }
.lp-owl-row img { width: 54px; }
.lp-teach { margin-top: .8rem; background: #FFF5F8; border: 2px solid #FFD6E2; border-radius: 1.2rem; padding: .8rem 1rem; }
.lp-teach-h { font-weight: 800; color: var(--h-purple-d); margin-top: .3rem; }
.lp-teach p, .lp-teach ol { margin: .2rem 0 .4rem; }
.lp-win { display: flex; align-items: center; gap: 1rem; justify-content: center; height: 100%; text-align: left; }
.lp-win img { width: 110px; animation: hop .8s ease infinite alternate; }
.lp-win strong { font-family: 'Fredoka'; font-size: 2rem; display: block; }
.lp-stars .bi { color: #F2B21B; font-size: 1.8rem; margin-right: 3px; }
.lp-demo-dots { display: flex; justify-content: center; gap: .4rem; padding: 0 0 1rem; }
.lp-demo-dots span { width: 8px; height: 8px; border-radius: 999px; background: #E4E0F5; transition: width .3s; }
.lp-demo-dots span.on { width: 26px; background: var(--h-purple); }

.lp-band { background: var(--h-ink); color: #fff; padding: 2.2rem 0; }
.lp-num { font-family: 'Fredoka'; font-size: 2.8rem; font-weight: 700; color: var(--h-yellow); line-height: 1; }
.lp-num-l { font-size: .9rem; opacity: .85; max-width: 220px; margin: .4rem auto 0; }
.lp-h2 { font-family: 'Fredoka'; font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.lp-sub { color: #5b6280; font-size: 1.12rem; max-width: 620px; margin: .4rem auto 0; }

.lp-loop-card { position: relative; background: #fff; border-radius: 1.6rem; padding: 1.8rem 1.4rem 1.4rem; height: 100%; box-shadow: 0 10px 30px rgba(31,42,68,.07); }
.lp-loop-card .bi { font-size: 2rem; color: var(--h-purple); }
.lp-loop-card h3 { font-family: 'Fredoka'; font-size: 1.4rem; margin: .6rem 0 .4rem; }
.lp-loop-card p { color: #5b6280; margin: 0; }
.lp-loop-n { position: absolute; top: -14px; left: 1.4rem; width: 32px; height: 32px; border-radius: 50%; background: var(--h-orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #D9671D; }
@media (min-width: 992px) { .lp-loop > div:not(:last-child) .lp-loop-card::after { content: '\2192'; position: absolute; right: -22px; top: 45%; font-size: 1.6rem; color: #C9C2F5; font-weight: 800; } }

.lp-compare-wrap { background: linear-gradient(180deg, transparent, #F1EEFF 30%, #F1EEFF 70%, transparent); }
.lp-compare { background: #fff; border-radius: 1.6rem; padding: .6rem 1.2rem; box-shadow: 0 14px 40px rgba(31,42,68,.08); }
.lp-compare-head, .lp-compare-row { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr; gap: .8rem; padding: .8rem 0; align-items: center; }
.lp-compare-head { font-weight: 800; color: #6b7190; font-size: .85rem; text-transform: uppercase; letter-spacing: .4px; border-bottom: 2px solid #EEEAFE; }
.lp-compare-head .lp-us { color: var(--h-purple); }
.lp-compare-row { border-bottom: 1px solid #F1EEFA; font-size: .95rem; }
.lp-compare-row:last-child { border-bottom: 0; }
.lp-row-l { font-weight: 800; }
.lp-them { color: #8a8fa8; }
.lp-them .bi { color: #c8cbd8; }
.lp-compare-row .lp-us { font-weight: 700; }
.lp-compare-row .lp-us .bi { color: var(--h-green); }
@media (max-width: 575px) { .lp-compare-head, .lp-compare-row { grid-template-columns: 1fr 1fr; } .lp-row-l { grid-column: 1 / -1; } .lp-compare-head span:first-child { display: none; } }

.lp-tile { min-height: 160px; cursor: default; }
.lp-tile:hover { transform: none; box-shadow: 0 8px 0 rgba(0,0,0,.12); }
.tile-dark { background: linear-gradient(135deg, #2D3A5C, #1F2A44); }

.lp-aud { border-radius: 2rem; padding: 2.2rem; height: 100%; color: #fff; position: relative; overflow: hidden; }
.lp-aud::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; bottom: -60px; }
.lp-aud-parent { background: linear-gradient(135deg, #7A6BFF, #4B3BC9); }
.lp-aud-school { background: linear-gradient(135deg, #1F2A44, #2E4A7A); }
.lp-aud-tag { display: inline-block; background: rgba(255,255,255,.18); border-radius: 999px; padding: .3rem .9rem; font-weight: 800; font-size: .9rem; }
.lp-aud h3 { font-family: 'Fredoka'; font-size: 1.7rem; margin: 1rem 0; }
.lp-aud ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.lp-aud li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.lp-aud li::before { content: '\2713'; position: absolute; left: 0; top: .3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(255,255,255,.2); text-align: center; font-weight: 800; font-size: .8rem; line-height: 1.3rem; }

.lp-safe { background: #F1EEFF; }
.lp-safe-card { background: #fff; border-radius: 1.4rem; padding: 1.4rem; height: 100%; }
.lp-safe-card .bi { font-size: 1.8rem; color: var(--h-purple); }
.lp-safe-card h3 { font-family: 'Fredoka'; font-size: 1.15rem; margin: .5rem 0 .3rem; }
.lp-safe-card p { color: #5b6280; margin: 0; font-size: .95rem; }
.lp-faq .accordion-item { border: 0; border-radius: 1rem !important; margin-bottom: .6rem; overflow: hidden; box-shadow: 0 4px 14px rgba(31,42,68,.05); }
.lp-faq .accordion-button { font-weight: 800; font-size: 1.05rem; }
.lp-faq .accordion-button:not(.collapsed) { background: var(--h-purple-l); color: var(--h-purple-d); box-shadow: none; }
.lp-final { background: linear-gradient(120deg, #5B4BDB, #7A6BFF 60%, #FF6B9D); color: #fff; border-radius: 2rem; padding: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: space-between; }
.lp-final h2 { font-family: 'Fredoka'; font-size: 2rem; margin: 0; }
.lp-final p { margin: .3rem 0 0; opacity: .92; }
.lp-final-owl { width: 90px; }
.kind-toggle .btn { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .lp-win img, .lp-caret { animation: none; } .lp-demo { transform: none; } }
.lp-final > div:nth-child(2) { flex: 1 1 280px; }
