/* MathVoya website — brand palette from the logo: deep purple anchor, sunshine yellow highlights,
   supporting blue/turquoise/green, soft pastel backgrounds. */
:root {
  --ink: #26164F; --ink-2: #4A3D78; --muted: #6E6596; --line: #E6E0F8;
  --bg: #FFFFFF; --soft: #F6F3FF; --soft-2: #EFE9FF;
  --purple: #6A35D9; --purple-d: #5524B8; --purple-50: #EFE8FF;
  --yellow: #FFC42E; --yellow-d: #E9A800; --orange: #FF8A3D;
  --blue: #3DA9F4; --teal: #22B8A0; --green: #2FBF71; --pink: #E94B8A;
  --r: 22px; --r-lg: 32px;
  --shadow: 0 14px 40px rgba(60, 30, 150, .12); --shadow-sm: 0 4px 14px rgba(60, 30, 150, .08);
  --display: 'Baloo 2', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --head-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.2px; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: transform .12s, box-shadow .12s, filter .15s; white-space: nowrap; }
.btn:active { transform: translateY(3px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 5px 0 var(--purple-d); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-d); }
.btn-yellow:hover { filter: brightness(1.04); }
.btn-ghost { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--purple); }
.btn-white { background: #fff; color: var(--purple); box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.btn-block { width: 100%; white-space: normal; text-align: center; padding-block: 10px; line-height: 1.25; }
.auth-grid > *, .grid > *, .hero-in > * { min-width: 0; }
.btn[aria-disabled="true"] { cursor: default; box-shadow: none; border: 2px dashed rgba(106, 53, 217, .45); background: rgba(255,255,255,.88); color: var(--ink-2); }
.btn[aria-disabled="true"]:active { transform: none; }
.text-link { font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ header */
.announce { background: var(--ink); color: #fff; text-align: center; font-weight: 700; font-size: .92rem; padding: 8px 16px; }
.announce a { color: var(--yellow); }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(230,224,248,.8); }
.head-in { display: flex; align-items: center; gap: 12px; height: var(--head-h); width: min(1380px, 100% - 32px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 48px; height: auto; border-radius: 12px; }
.brand span { font-family: var(--display); font-size: 1.55rem; font-weight: 800; color: var(--purple); letter-spacing: -.3px; }
.brand b { color: var(--yellow-d); }
.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-end; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav a { display: block; padding: 8px 9px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.main-nav a:hover { background: var(--soft); color: var(--purple); }
.main-nav a[aria-current="page"] { color: var(--purple); background: var(--purple-50); }
.nav-accounts { display: flex; gap: 2px; padding-left: 8px; margin-left: 4px; border-left: 2px solid var(--line); }
.nav-accounts .link-login { color: var(--purple); }
.btn-download { min-height: 44px; padding: 0 18px; font-size: .98rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--soft); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1300px) {
  .burger { display: flex; }
  .main-nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--head-h)); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .no-js .main-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-accounts { border-left: 0; border-top: 2px solid var(--line); margin: 10px 0 0; padding: 12px 0 0; flex-direction: column; }
  .head-in .btn-download { margin-left: auto; }
}
@media (max-width: 420px) { .brand span { font-size: 1.3rem; } .btn-download { padding: 0 14px; font-size: .9rem; } }

/* ------------------------------------------------------------ sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-soft { background: var(--soft); }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--purple); background: var(--purple-50); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-center { justify-content: center; margin-top: 36px; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 26px; }
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g-4, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: radial-gradient(1200px 520px at 85% 10%, #E9DFFF 0, transparent 60%), radial-gradient(800px 420px at 0% 100%, #FFF2CC 0, transparent 60%), linear-gradient(180deg, #FBF9FF, #F3EEFF); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { position: relative; z-index: 0; }
.hero h1 .hl { color: var(--purple); position: relative; }
.hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .22em; background: var(--yellow); border-radius: 6px; z-index: -1; opacity: .85; }
.hero-text p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 600px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.hero-tags li { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .88rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.hero-logins { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; color: var(--muted); }
.hero-logins a { font-weight: 800; text-decoration: none; }
.hero-art { position: relative; min-height: 520px; }
.hero-blob { position: absolute; inset: 6% 4% 8% 10%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: linear-gradient(135deg, var(--purple), #9B6BFF 60%, #C3A4FF); box-shadow: var(--shadow); }
.hero-voya { position: absolute; width: 58%; left: 2%; bottom: 2%; border-radius: 50%; overflow: hidden; background: #fff; border: 8px solid #fff; box-shadow: var(--shadow); aspect-ratio: 1; }
.hero-voya img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.float { position: absolute; font-family: var(--display); font-weight: 800; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.12); animation: bob 6s ease-in-out infinite; user-select: none; }
.float.y { color: var(--yellow); } .float.p { color: var(--purple); } .float.t { color: var(--teal); } .float.o { color: var(--orange); }
.shape { position: absolute; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(4deg); } }

/* phone mockup (illustrative) */
.phone { position: absolute; right: 2%; top: 4%; width: 46%; min-width: 220px; max-width: 290px; aspect-ratio: 9 / 18.5; background: #1C1240; border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px rgba(38, 22, 79, .35); transform: rotate(4deg); }
.phone-screen { background: #F4F1FF; border-radius: 26px; height: 100%; overflow: hidden; padding: 14px 12px; font-size: 10.5px; display: flex; flex-direction: column; gap: 8px; }
.ps-top { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink); }
.ps-top i { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; }
.ps-top em { margin-left: auto; font-style: normal; background: #fff; padding: 2px 8px; border-radius: 999px; }
.ps-hero { background: linear-gradient(135deg, var(--purple), #9B6BFF); color: #fff; border-radius: 14px; padding: 10px; font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.2; }
.ps-hero small { display: inline-block; margin-top: 6px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 8px; font-size: 9.5px; }
.ps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ps-tile { border-radius: 12px; padding: 8px; color: #fff; font-weight: 800; min-height: 56px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; }
.ps-tile b { font-size: 18px; line-height: 1; }
.ps-card { background: #fff; border-radius: 12px; padding: 8px; display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.ps-card .bar { flex: 1; height: 6px; background: var(--soft-2); border-radius: 6px; overflow: hidden; }
.ps-card .bar i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.mock-label { position: absolute; z-index: 3; bottom: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .3px; }
.mock-wrap { position: relative; }
.mock-wrap > .mock-label { transform: translateX(-50%); bottom: auto; top: -12px; }
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; max-width: 520px; margin: 10px auto 0; width: 100%; }
}
@media (max-width: 520px) { .hero-art { min-height: 340px; } .phone { min-width: 180px; } }

/* ------------------------------------------------------------ store buttons & download */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid #555; min-width: 190px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .72rem; letter-spacing: .3px; }
.store b { font-size: 1.2rem; font-family: var(--body); font-weight: 800; }
.store.is-soon { background: rgba(255,255,255,.12); border: 2px dashed rgba(255,255,255,.55); color: #fff; cursor: default; }
.stores-dark .store.is-soon { background: #F2EEFB; color: var(--ink); border-color: #B9AEDB; }
.stores-dark .store.is-soon b { color: var(--purple); }
.download { background: linear-gradient(135deg, #2A1561 0%, var(--purple) 55%, #8B5CF6 100%); color: #E9E2FF; position: relative; overflow: hidden; }
.download h2 { color: #fff; }
.download-in { display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: center; }
.download .note { margin-top: 16px; font-size: .95rem; color: #E9E2FF; max-width: 600px; }
.download-alt { margin-top: 18px; }
.download-art { position: relative; justify-self: center; width: min(280px, 70vw); }
.download-art img { border-radius: 50%; border: 8px solid rgba(255,255,255,.9); background: #fff; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.dl-sym { position: absolute; font-family: var(--display); font-weight: 800; font-size: 54px; color: var(--yellow); animation: bob 6s ease-in-out infinite; }
.dl-sym.s1 { top: -10px; left: -20px; } .dl-sym.s2 { top: 30%; right: -30px; color: #fff; animation-delay: 1s; } .dl-sym.s3 { bottom: -14px; left: 10%; color: #7FE3D2; animation-delay: 2s; }
@media (max-width: 760px) { .download-in { grid-template-columns: 1fr; } .download-art { width: 200px; } }

/* ------------------------------------------------------------ principle / feature cards */
.principles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { background: #fff; border-radius: var(--r); padding: 24px 20px; box-shadow: var(--shadow-sm); border-top: 6px solid var(--c); transition: transform .18s; }
.principle:hover { transform: translateY(-4px); }
.ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--soft-2); margin-bottom: 14px; }
.principle .ico { background: color-mix(in srgb, var(--c) 14%, #fff); }
.principle p, .feature p { margin: 0; font-size: .95rem; color: var(--muted); }
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.intro-split p { font-size: 1.08rem; }
@media (max-width: 860px) { .intro-split { grid-template-columns: 1fr; } }
.feature { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.15rem; margin: 0 0 2px; }
.feature:nth-child(6n+1) .ico { background: #F0EAFF; } .feature:nth-child(6n+2) .ico { background: #E3F7F3; } .feature:nth-child(6n+3) .ico { background: #FFF1E6; }
.feature:nth-child(6n+4) .ico { background: #E7F4FE; } .feature:nth-child(6n+5) .ico { background: #FDE9F1; } .feature:nth-child(6n+6) .ico { background: #FFF6D9; }

/* ------------------------------------------------------------ levels */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.journey::before { content: ''; position: absolute; left: 6%; right: 6%; top: 92px; border-top: 4px dashed #D6CBF6; z-index: 0; }
.level-card { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.level-art { position: relative; height: 170px; background: radial-gradient(circle at 30% 20%, #fff 0, var(--t) 70%); overflow: hidden; }
.level-art b { position: absolute; right: 14px; bottom: 6px; font-family: var(--display); font-size: 84px; line-height: 1; color: var(--c); opacity: .22; }
.level-art span { position: absolute; font-family: var(--display); font-weight: 800; color: var(--c); animation: bob 6s ease-in-out infinite; }
.level-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.level-tag { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--c); }
.level-card h3 { margin: 0; font-size: 1.35rem; }
.age { display: inline-block; background: var(--t); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: .85rem; width: max-content; }
.level-card ul { margin: 4px 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.level-card li { font-size: .8rem; font-weight: 700; background: var(--soft); color: var(--ink-2); border-radius: 8px; padding: 3px 8px; }
.level-card .text-link { margin-top: auto; color: var(--c); }
.level-sample { font-size: .85rem; color: var(--muted); font-style: italic; }
@media (max-width: 1100px) {
  .journey { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0 -4px; }
  .journey::before { display: none; }
  .level-card { scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 1100px) { .journey { grid-auto-columns: minmax(280px, 42%); } }
.disclaimer { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: .92rem; color: var(--muted); background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------ curriculum */
.curr-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.curr-points li { background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; color: var(--ink); box-shadow: var(--shadow-sm); }
.curr-points li::before { content: '✓ '; color: var(--green); }
.area { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); border-left: 6px solid var(--c); }
.area h3 { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; }
.area h3 span { font-size: 1.5rem; }
.area ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.area li { font-size: .86rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--ink); }

/* ------------------------------------------------------------ how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 4px; background: linear-gradient(90deg, var(--purple), var(--teal), var(--orange), var(--pink)); border-radius: 4px; }
.steps li { position: relative; text-align: center; background: #fff; border-radius: var(--r); padding: 74px 18px 24px; box-shadow: var(--shadow-sm); margin-top: 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translate(-50%, 0); width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; background: var(--c, var(--purple)); box-shadow: 0 0 0 8px #fff; }
.steps li:nth-child(1) { --c: var(--purple); } .steps li:nth-child(2) { --c: var(--teal); } .steps li:nth-child(3) { --c: var(--orange); } .steps li:nth-child(4) { --c: var(--pink); }
.steps h3 { text-transform: none; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
.steps-wrap { padding-top: 34px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ learning experience mini demos */
.exp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; padding: 0; list-style: none; }
.exp-tags li { background: var(--purple-50); color: var(--purple); font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.demo { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.demo h3 { font-size: 1.1rem; margin: 0; }
.demo .q { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--ink); text-align: center; }
.demo .opts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.demo .opt { min-width: 56px; min-height: 48px; border-radius: 14px; border: 3px solid var(--line); background: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); cursor: pointer; padding: 0 12px; }
.demo .opt:hover { border-color: #C9B8FA; }
.demo .opt.right { border-color: var(--green); background: #E3F8EC; }
.demo .opt.wrong { border-color: #EE4B5A; background: #FDE8EA; }
.demo .fb { min-height: 1.6em; font-weight: 800; text-align: center; font-size: .95rem; }
.demo .fb.good { color: #138A4C; } .demo .fb.bad { color: #B4232F; }
.demo .items { font-size: 32px; text-align: center; letter-spacing: 4px; line-height: 1.3; }
.demo .frac { display: flex; gap: 4px; height: 56px; }
.demo .frac button { flex: 1; border: 3px solid var(--purple); background: #fff; border-radius: 10px; cursor: pointer; }
.demo .frac button.on { background: var(--pink); border-color: #C2306C; }
.demo .race { height: 46px; border-radius: 23px; background: repeating-linear-gradient(90deg, #EDE7FF 0 24px, #F7F4FF 24px 48px); position: relative; }
.demo .race span { position: absolute; top: 4px; font-size: 30px; transition: left .4s; transform: scaleX(-1); }
.demo .race em { position: absolute; right: 10px; top: 6px; font-size: 26px; font-style: normal; }
.demo .tiny { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }

/* ------------------------------------------------------------ parents */
.parents-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .parents-split { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--ink); }
.check-list li span { font-size: 1.4rem; }
.safety-note { background: #E3F8EC; color: #11733F; border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: .95rem; margin-bottom: 22px; }
.dash { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; font-size: .9rem; }
.dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash-head .av { width: 52px; height: 52px; border-radius: 50%; background: var(--purple-50); display: grid; place-items: center; font-size: 30px; }
.dash-head b { font-family: var(--display); font-size: 1.3rem; color: var(--ink); display: block; line-height: 1.1; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.kpis div { background: var(--soft); border-radius: 12px; padding: 10px; }
.kpis span { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; }
.kpis b { font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr 1fr; } }
.hbar { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; margin: 7px 0; font-weight: 700; color: var(--ink); }
.hbar i { display: block; height: 10px; border-radius: 10px; background: var(--soft-2); overflow: hidden; }
.hbar i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--c, var(--purple)); border-radius: 10px; }
.dash-chart { margin-top: 12px; }
.dash-chart svg { width: 100%; height: auto; }

/* ------------------------------------------------------------ future */
.future { position: relative; background: #fff; border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); border: 2px dashed #D6CBF6; }
.soon { position: absolute; top: -14px; left: 22px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; letter-spacing: .3px; }
.future ul { margin: 10px 0 0; color: var(--muted); }
.future li { margin: 3px 0; }

/* ------------------------------------------------------------ FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; gap: 14px; align-items: center; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--purple-50); position: relative; transition: transform .2s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 3px; background: var(--purple); border-radius: 2px; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 22px 18px; }
.faq-a p { margin: 0; }

/* ------------------------------------------------------------ why / final CTA */
.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.why-art { border-radius: 50%; overflow: hidden; background: #fff; box-shadow: var(--shadow); max-width: 340px; justify-self: center; border: 10px solid #fff; aspect-ratio: 1; }
.why-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }
.quote { font-family: var(--display); font-size: 1.4rem; color: var(--purple); line-height: 1.3; margin: 0 0 18px; }
.final { background: radial-gradient(800px 400px at 15% 20%, rgba(255,196,46,.35), transparent 60%), radial-gradient(700px 380px at 90% 80%, rgba(34,184,160,.3), transparent 60%), linear-gradient(135deg, #2A1561, var(--purple)); color: #E9E2FF; text-align: center; position: relative; overflow: hidden; }
.final h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.final p { max-width: 640px; margin: 0 auto 28px; font-size: 1.15rem; }
.final .cta-row { justify-content: center; }
.final .float { opacity: .5; }
.final-voya { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 6px solid #fff; background: #fff; }
.final-voya img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ------------------------------------------------------------ inner pages */
.page-hero { background: linear-gradient(180deg, #FBF9FF, #F1EBFF); padding: 40px 0 56px; }
.page-hero .lead { max-width: 760px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .88rem; font-weight: 700; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.level-row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 26px; scroll-margin-top: 100px; }
.level-row .level-art { height: 230px; border-radius: 22px; }
@media (max-width: 820px) { .level-row { grid-template-columns: 1fr; } }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.topic-chips li { background: var(--soft); border-radius: 12px; padding: 6px 12px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.notice { background: var(--soft); border-radius: 16px; padding: 14px 18px; color: var(--ink-2); font-weight: 600; }
.notice.warn { background: #FFF6D9; color: #6E5000; }

/* ------------------------------------------------------------ forms (login / contact) */
.auth { min-height: calc(100vh - var(--head-h)); padding: 48px 0 72px; background: radial-gradient(900px 420px at 80% 0%, #E9DFFF 0, transparent 60%), linear-gradient(180deg, #FBF9FF, #F3EEFF); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .auth-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); max-width: 480px; width: 100%; justify-self: center; }
.form-card h1 { font-size: 2rem; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 800; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.input, textarea.input, select.input { width: 100%; min-height: 54px; border-radius: 16px; border: 2px solid var(--line); padding: 12px 16px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s; }
.input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(106, 53, 217, .15); }
textarea.input { min-height: 150px; resize: vertical; }
.err { display: block; color: #B4232F; font-weight: 700; font-size: .88rem; margin-top: 4px; }
.alert { border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
.alert.error { background: #FDE8EA; color: #A4202C; }
.alert.ok { background: #E3F8EC; color: #11733F; }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-weight: 700; font-size: .95rem; }
.hp { position: absolute; left: -9999px; }
.code-input { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: 6px; text-align: center; text-transform: uppercase; min-height: 70px; }
.student-hero { text-align: center; }
.student-hero .voya { width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: #fff; }
.student-hero .voya img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.help-steps { counter-reset: h; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.help-steps li { counter-increment: h; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; overflow-wrap: anywhere; background: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 600; }
.help-steps li::before { content: counter(h); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* ------------------------------------------------------------ footer */
.site-foot { background: var(--ink); color: #CFC6EE; padding: 64px 0 24px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--yellow); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h2 { font-size: 1.05rem; color: var(--yellow); margin-bottom: 12px; }
.site-foot h2.mt { margin-top: 22px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.foot-logo img { width: 96px; border-radius: 18px; background: #fff; }
.foot-tag { font-family: var(--display); font-size: 1.25rem; color: #fff; margin: 14px 0 2px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.foot-bottom p { margin: 0; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ reveal on scroll + reduced motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
