/* School Study — design system
   Royal blue + deep navy brand, sunshine-yellow highlight, friendly rounded shapes.
   Fonts: Plus Jakarta Sans (English headings), Inter (English body), Noto Sans Devanagari (Marathi). */
:root {
  --navy-950: #0B1538;
  --navy-900: #102A80;
  --navy-800: #15339A;
  --blue-700: #1739A8;
  --blue-600: #1D4ED8;
  --blue-500: #2563EB;
  --blue-100: #DBE6FF;
  --blue-50: #EEF3FF;
  --sky: #0EA5E9;
  --yellow: #FFC400;
  --yellow-2: #FFD95C;
  --orange: #FF8A1F;
  --purple: #6D3AE0;
  --pink: #E83E8C;
  --green: #13A26B;
  --ink: #0E1A3A;
  --text: #1E2945;
  --muted: #5E6A86;
  --line: #E3E8F3;
  --bg: #F5F7FC;
  --card: #FFFFFF;
  --display: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --deva: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
  --head-bg: rgba(255, 255, 255, .86);
  --fs: 1;
  --wrap: 1200px;
  --read: 780px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-sm: 0 1px 2px rgba(14, 26, 58, .06), 0 2px 8px rgba(14, 26, 58, .05);
  --sh: 0 2px 6px rgba(14, 26, 58, .05), 0 12px 32px -8px rgba(14, 26, 58, .14);
  --sh-lg: 0 30px 60px -20px rgba(11, 31, 92, .35), 0 12px 24px -12px rgba(11, 31, 92, .2);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 1.2rem + .6vw, 1.6rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.7vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--step-0)/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
[lang="mr"] { line-height: 1.75; font-family: var(--deva); }
h1 [lang="mr"], h2 [lang="mr"], h3 [lang="mr"], [lang="mr"] h1, [lang="mr"] h2, [lang="mr"] h3 { font-family: var(--deva); }
h1 [lang="mr"], h2 [lang="mr"], h3[lang="mr"] { letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.read { max-width: calc(var(--read) + 44px); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.hl { color: var(--yellow); }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-sm { padding: clamp(28px, 4vw, 48px) 22px; }
.wrap.section-sm { padding-left: 22px; padding-right: 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; text-decoration: none; font: 600 1rem/1 var(--display); letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s; position: relative; overflow: hidden; white-space: nowrap; }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: var(--navy-950); box-shadow: 0 8px 20px -8px rgba(255, 170, 0, .7); }
.btn-primary:hover { color: var(--navy-950); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(255, 170, 0, .8); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-primary-blue { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .8); }
.btn-primary-blue:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(29, 78, 216, .9); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--blue-700); color: #fff; }
.btn-outline-y { background: var(--card); color: var(--navy-900); box-shadow: inset 0 0 0 3px var(--yellow); }
.btn-outline-y:hover { background: var(--yellow); color: var(--navy-950); transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-sm); }
.btn-ghost:hover { color: var(--blue-600); box-shadow: inset 0 0 0 1.5px var(--blue-100), var(--sh); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.i-play { width: 20px; height: 20px; flex: none; }

.gp-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
  padding: 7px 16px 7px 12px; border-radius: 12px; border: 1.5px solid #3a3a3a; min-height: 50px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gp-badge .i-play { width: 26px; height: 26px; }
.gp-badge span { display: flex; flex-direction: column; font: 600 1.15rem/1 var(--display); letter-spacing: -.01em; }
.gp-badge small { font: 500 .6rem/1 var(--display); letter-spacing: .06em; margin-bottom: 3px; }
.gp-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); }
.gp-lg { min-height: 58px; padding: 8px 20px 8px 14px; }
.gp-lg .i-play { width: 30px; height: 30px; }
.gp-lg span { font-size: 1.35rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-50); padding: 7px 14px; border-radius: 999px; margin: 0 0 16px; }
.eyebrow.on-dark { color: var(--yellow); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.eyebrow [lang="mr"] { text-transform: none; }
.kicker { font: 600 .9rem/1.4 var(--display); color: var(--blue-600); margin: 0 0 10px; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 64ch; }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-h { font-size: var(--step-3); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.sec-h.left { text-align: left; }
.sec-h-sm { font-size: var(--step-2); margin: 0 0 20px; }
.sec-sub { color: var(--muted); font-size: 1.12rem; margin: 0 auto; max-width: 60ch; }
.sec-sub.left { margin-left: 0; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: var(--head-bg); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-head.is-scrolled { box-shadow: 0 8px 30px -12px rgba(11, 31, 92, .25); border-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); font: 800 1.45rem/1 var(--display); letter-spacing: -.03em; flex: none; }
.brand:hover { color: var(--navy-900); }
.brand.on-dark { color: #fff; }
.logo-img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(11, 31, 92, .55); transition: transform .4s var(--ease); }
.brand:hover .logo-img { transform: rotate(-6deg) scale(1.06); }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li > a, .mega-btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--text); font: 500 .98rem/1 var(--display); background: none; border: 0; position: relative; }
.nav-list > li > a::after, .mega-btn::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--blue-600); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .mega-btn:hover::after, .has-mega.is-open .mega-btn::after { transform: scaleX(1); }
.nav-list > li > a[aria-current="page"], .nav-list > li > a:hover, .mega-btn:hover { color: var(--blue-600); }
.mega-btn .ic { transition: transform .3s var(--ease); width: 16px; height: 16px; }
.has-mega { position: relative; }
.has-mega.is-open .mega-btn .ic { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 560px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--line); padding: 20px; transition: .3s var(--ease); }
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) { .has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.mega-h { font: 600 .78rem/1 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px 6px; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-grid a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.mega-grid a:hover { background: var(--blue-50); }
.mega-grid b { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 700 1.05rem/1 var(--display); color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple)); flex: none; transition: transform .3s var(--ease); }
.mega-grid a:hover b { transform: scale(1.08) rotate(-4deg); }
.mega-grid li:nth-child(-n+5) b { background: linear-gradient(135deg, var(--sky), var(--blue-600)); }
.mega-grid li:nth-child(n+9) b { background: linear-gradient(135deg, var(--purple), #9B4DE0); }
.mega-grid span { display: flex; flex-direction: column; font: 600 .98rem/1.2 var(--display); }
.mega-grid small { font: 400 .82rem/1.3 var(--body); color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--navy-900); background: transparent; border: 0;
  transition: background .2s, color .2s; text-decoration: none; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue-600); }
.icon-btn .ic { width: 22px; height: 22px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.nav-mobile-cta { display: none; }

.class-strip { background: linear-gradient(90deg, var(--navy-900), var(--navy-800)); position: relative; z-index: 5; }
.class-strip ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 10px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.class-strip ul::-webkit-scrollbar { display: none; }
.class-strip a { display: block; padding: 7px 18px; border-radius: 999px; color: #E3EAFF; text-decoration: none; font: 500 .92rem/1.2 var(--display);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); white-space: nowrap; transition: .25s var(--ease); }
.class-strip a:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-1px); }
.class-strip a.is-active { background: var(--yellow); color: var(--navy-950); box-shadow: none; font-weight: 600; }

/* ---------- hero (home) ---------- */
.hero { position: relative; color: #fff; padding: clamp(36px, 4.5vw, 64px) 0 0;
  background: radial-gradient(700px 520px at 72% 48%, rgba(30, 90, 215, .45) 0%, transparent 70%), linear-gradient(150deg, #08257A 0%, #0A3090 42%, #0A3496 100%); }
.hero .wrap { max-width: 1480px; }
.hero .g2 { display: none; }
.hero .g1 { opacity: .35; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.g1 { width: 420px; height: 420px; background: #2E6BFF; top: -120px; left: -120px; animation: drift 14s ease-in-out infinite alternate; }
.g2 { width: 360px; height: 360px; background: #7B3AED; bottom: -140px; left: 40%; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr 1fr; gap: 12px; align-items: center; }
.hero-text { padding-bottom: clamp(56px, 6vw, 96px); }
.hero-h { color: #fff; font-size: clamp(2.2rem, 1rem + 3.4vw, 4.1rem); font-weight: 700; line-height: 1.12; margin-bottom: 34px; letter-spacing: -.02em; }
.hero-h .hl { position: relative; display: inline-block; }
.swoosh { position: absolute; left: 2%; bottom: -16px; width: 36%; height: 14px; overflow: visible; }
.swoosh path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1s .7s var(--ease) forwards; }
.hero-kicker { display: block; font: 600 clamp(.95rem, .9rem + .3vw, 1.1rem)/1.4 var(--display); color: #A9C1FF; letter-spacing: 0; margin-bottom: 14px; }
.hero-h .hl { background: linear-gradient(90deg, var(--yellow), #FFB000); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.42rem); line-height: 1.5; color: #E4EBFF; max-width: 30em; margin-bottom: 0; }
.hero-lede strong { color: #fff; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); animation: pulseRing 2s cubic-bezier(.2, .6, .4, 1) infinite; will-change: transform, opacity; }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 18px; padding: 8px 8px 8px 20px; max-width: 600px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.hero-search:focus-within { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 196, 37, .45); }
.hero-search > .ic { color: var(--muted); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 1.08rem/1.2 var(--body); color: var(--ink); background: none; padding: 12px 6px; }
.hero-search input::placeholder { color: #8B95AD; }
.hero-search .btn { min-height: 50px; border-radius: 13px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero .hero-search { margin-top: 28px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.12rem; }
.hero .btn-outline-y { box-shadow: inset 0 0 0 3.5px var(--yellow), 0 10px 30px -12px rgba(255, 196, 37, .5); }
.hero-cta.center { justify-content: center; }
.hero-cta-l { font: 500 1.1rem/1 var(--display); color: #fff; }
.hero-note { margin: 18px 0 0; font-size: .95rem; color: #A9B9E6; }
.hero-art { position: relative; align-self: end; margin-right: -30px; }
.hero .stats { margin-top: -46px; }
.is-home .site-head .wrap { max-width: 1480px; }
.hero-photo { width: 100%; height: auto; animation: heroPhoto 1.2s var(--ease) both;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(0deg, transparent 0, #000 6%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(0deg, transparent 0, #000 6%, #000 90%, transparent 100%);
  mask-composite: intersect; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .95); color: var(--ink);
  padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); }
.float-card b { display: block; font: 700 .95rem/1.2 var(--display); }
.float-card small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.fc-ic .ic { width: 20px; height: 20px; }
.fc-1 { top: 24%; left: 8%; animation: floaty 6s ease-in-out infinite, popIn .8s .5s var(--ease) both; }
.fc-2 { top: 50%; right: 4%; animation: floaty 7s ease-in-out -2s infinite, popIn .8s .7s var(--ease) both; }
.fc-3 { bottom: 16%; left: 14%; animation: floaty 6.5s ease-in-out -4s infinite, popIn .8s .9s var(--ease) both; }
.doodle { position: absolute; fill: var(--yellow); opacity: .9; }
.d1 { width: 22px; top: 4%; left: 10%; animation: twinkle 3s ease-in-out infinite; }
.d2 { width: 28px; top: 60%; right: 2%; fill: #9EC0FF; animation: twinkle 4s ease-in-out -1s infinite; }
.hero-in { animation: slideUp .9s var(--ease) both; animation-delay: var(--d, 0s); }

.stats { list-style: none; margin: 0; padding: 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-lg); transform: translateY(50%); }
.stats li { padding: 24px 20px; text-align: center; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stats b { display: block; font: 800 clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem)/1 var(--display); color: var(--navy-900); letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--blue-600), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }
.is-home .hero + .section { padding-top: clamp(100px, 10vw, 150px); }

/* ---------- textbook marquee ---------- */
.books-band { background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%); overflow: hidden; }
.marquee { display: grid; gap: 14px; margin: 0 0 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* ---------- popular chapters ---------- */
.pop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pop-card { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-sm); transition: .35s var(--ease); height: 100%; }
.pop-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--blue-100); color: var(--ink); }
.cover.pop-cover { width: 64px; flex: none; border-radius: 8px; box-shadow: 0 6px 14px -6px rgba(11, 31, 92, .4); }
.pop-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pop-meta { font: 600 .78rem/1.3 var(--display); color: var(--blue-600); text-transform: uppercase; letter-spacing: .03em; }
.pop-t { font: 600 1.05rem/1.3 var(--display); margin: 4px 0; }
.pop-q { font-size: .88rem; color: var(--muted); }
.pop-go { color: var(--blue-600); transition: transform .3s var(--ease); }
.pop-card:hover .pop-go { transform: translateX(4px); }

/* ---------- features ---------- */
.feats-band { background: var(--card); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { padding: 28px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: .4s var(--ease); position: relative; overflow: hidden; }
.feat::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .4s; }
.feat:hover { transform: translateY(-6px); background: var(--card); box-shadow: var(--sh-lg); border-color: transparent; }
.feat h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.feat p { color: var(--muted); margin: 0; }
.feat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; transition: transform .4s var(--ease); }
.feat:hover .feat-ic { transform: rotate(-8deg) scale(1.08); }
.feat-ic .ic { width: 28px; height: 28px; }
.f-blue { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.f-orange { background: linear-gradient(135deg, #FFA33A, #FF6B1F); }
.f-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.f-green { background: linear-gradient(135deg, #22C58B, #0E9461); }
.f-pink { background: linear-gradient(135deg, #F472B6, #DB2777); }
.f-sky { background: linear-gradient(135deg, #38BDF8, #0284C7); }
.feat.f-blue, .feat.f-orange, .feat.f-purple, .feat.f-green, .feat.f-pink, .feat.f-sky { background: var(--bg); }
.feat.f-blue .feat-ic { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.feat.f-orange .feat-ic { background: linear-gradient(135deg, #FFA33A, #FF6B1F); }
.feat.f-purple .feat-ic { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.feat.f-green .feat-ic { background: linear-gradient(135deg, #22C58B, #0E9461); }
.feat.f-pink .feat-ic { background: linear-gradient(135deg, #F472B6, #DB2777); }
.feat.f-sky .feat-ic { background: linear-gradient(135deg, #38BDF8, #0284C7); }
.feat:hover { background: var(--card) !important; }

/* ---------- demo / notebook ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: .3s var(--ease); }
.steps li:hover { transform: translateX(6px); border-color: var(--blue-100); }
.steps b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--yellow); font: 700 1.05rem/1 var(--display); flex: none; }
.notebook { display: block; position: relative; text-decoration: none; color: var(--text); background: #FFFDF6; border-radius: var(--r-lg); padding: 34px 32px 30px 64px;
  box-shadow: var(--sh-lg); transform: rotate(1.2deg); transition: transform .5s var(--ease);
  background-image: linear-gradient(90deg, transparent 46px, #F2A3AE 46px, #F2A3AE 48px, transparent 48px), repeating-linear-gradient(#FFFDF6 0 33px, #DCE6F7 33px 34px);
  background-position: 0 0, 0 18px; }
.notebook:hover { transform: rotate(0) translateY(-4px); color: var(--text); }
.notebook::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 196, 37, .7); border-radius: 4px; }
.nb-tag { display: inline-block; font: 600 .78rem/1.3 var(--display); color: var(--blue-600); background: var(--blue-50); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.nb-q, .nb-a { display: flex; gap: 10px; font-size: 1.12rem; line-height: 34px; }
.nb-q { font: 600 1.15rem/34px var(--display); color: var(--ink); margin-bottom: 8px; }
.nb-n { font: 700 1rem/34px var(--display); color: #D93A50; flex: none; }
.nb-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 600 .95rem/1 var(--display); color: var(--blue-600); }
mark.swipe { background: linear-gradient(transparent 55%, rgba(255, 196, 37, .75) 55%); color: inherit; padding: 0 2px; background-size: 0 100%; background-repeat: no-repeat;
  transition: background-size 1.2s var(--ease) .3s; }
.is-in mark.swipe, .no-js mark.swipe, .notebook:hover mark.swipe { background-size: 100% 100%; }

/* ---------- app band ---------- */
.app-band { position: relative; overflow: hidden; color: #D5E0FF; background: linear-gradient(140deg, var(--navy-950), var(--navy-900) 50%, #1538A0); }
.app-bg { position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 20%, rgba(123, 58, 237, .45), transparent 70%), radial-gradient(500px 300px at 10% 90%, rgba(37, 99, 235, .5), transparent 70%); }
.app-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.app-band h1, .app-band h2 { color: #fff; font-size: var(--step-3); font-weight: 800; letter-spacing: -.025em; }
.app-band .lede.on-dark { color: #C6D3F5; }
.app-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.app-meta { display: inline-flex; align-items: center; gap: 6px; color: #A9B9E6; font-size: .95rem; }
.app-phone { display: grid; place-items: center; }
.app-hero { padding-top: 20px; }
.app-hero .crumbs { margin-bottom: 30px; }

.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #E3F7EE; color: var(--green); stroke-width: 3; margin-top: 2px; }
.ticks.on-dark li { color: #E3EAFF; }
.ticks.on-dark .ic, .install-panel .ticks .ic { background: rgba(255, 196, 37, .18); color: var(--yellow); }

/* phone mock */
.phone { width: 270px; aspect-ratio: 9 / 19; border-radius: 42px; padding: 12px; background: linear-gradient(145deg, #1C2742, #0A1022); position: relative;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .08); animation: floaty 7s ease-in-out infinite; flex: none; }
.phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 20px; background: #0A1022; z-index: 2; }
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #F4F7FF, #fff); display: flex; flex-direction: column; padding: 46px 14px 14px; color: var(--ink); }
.ps-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); color: #fff; }
.ps-top img { border-radius: 8px; }
.ps-top span { display: flex; flex-direction: column; font: 700 .9rem/1.2 var(--display); }
.ps-top small { font: 500 .72rem/1.2 var(--body); opacity: .8; }
.ps-h { font: 700 .8rem/1 var(--display); color: var(--muted); margin: 16px 4px 10px; text-transform: uppercase; letter-spacing: .05em; }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.ps-list li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 7px 10px; box-shadow: 0 2px 8px rgba(14, 26, 58, .07); }
.ps-list img { width: 30px; height: auto; border-radius: 4px; }
.ps-list span { display: flex; flex-direction: column; font: 600 .76rem/1.25 var(--display); }
.ps-list small { font: 400 .66rem/1.2 var(--body); color: var(--muted); }
.ps-tab { display: flex; justify-content: space-around; padding: 10px 0 2px; }
.ps-tab span { width: 22px; height: 6px; border-radius: 4px; background: var(--line); }
.ps-tab .is-on { background: var(--blue-600); width: 34px; }

/* banner */
.banner { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.banner img { width: 100%; transition: transform 1.4s var(--ease); }
.banner:hover img { transform: scale(1.03); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--sh); border-color: var(--blue-100); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  font: 600 1.05rem/1.4 var(--display); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); transition: transform .35s var(--ease), background .3s; }
.faq-item[open] summary .ic { transform: rotate(180deg); background: var(--blue-600); color: #fff; }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-item[open] .faq-a { animation: fadeUp .45s var(--ease); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 26px 0 40px; background: radial-gradient(800px 300px at 90% 0%, #E2EAFF 0%, transparent 70%), linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 37, .22), transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 14px; }
.page-hero-sm { padding: 22px 0 18px; }
.page-hero-sm .kicker { margin: 0; }
.h1-tail { display: block; font: 500 clamp(1rem, .9rem + .4vw, 1.25rem)/1.4 var(--display); color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.ph-row { display: flex; gap: 32px; align-items: center; }
.ph-cover { width: 130px; flex: none; animation: coverIn .9s var(--ease) both; perspective: 800px; }
.ph-cover-lg { width: 180px; }
.ph-cover .cover { border-radius: 10px; box-shadow: 0 24px 40px -18px rgba(11, 31, 92, .55); transform: rotateY(-8deg); transition: transform .6s var(--ease); }
.ph-cover:hover .cover { transform: rotateY(0) scale(1.03); }
.ph-text { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 500 .86rem/1 var(--display); color: var(--text); }
.chip .ic { width: 15px; height: 15px; color: var(--blue-600); }
.chip-ok { background: #E8F8F0; border-color: #C3EBD7; color: #0D6E48; }
.chip-ok .ic { color: var(--green); }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.stats-row span { display: flex; flex-direction: column; padding: 12px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); min-width: 110px; }
.stats-row b { font: 800 1.6rem/1.1 var(--display); color: var(--navy-900); }
.stats-row.on-dark span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #B9C8F0; backdrop-filter: blur(6px); }
.stats-row.on-dark b { color: #fff; }

.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px 0 4px; color: #A3ADC4; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-600); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.crumbs.on-dark, .crumbs.on-dark a { color: #A9B9E6; }
.crumbs.on-dark [aria-current] { color: #fff; }
.crumbs.on-dark li + li::before { color: #6F80B3; }

/* ---------- class page ---------- */
.class-hero { position: relative; overflow: hidden; color: #D5E0FF; padding: 26px 0 50px; }
.class-hero.st-1 { background: radial-gradient(700px 400px at 90% 10%, #1BA7E5 0%, transparent 60%), linear-gradient(140deg, var(--navy-950), var(--navy-900) 60%, #1162C9); }
.class-hero.st-2 { background: radial-gradient(700px 400px at 90% 10%, #2E6BFF 0%, transparent 60%), linear-gradient(140deg, var(--navy-950), var(--navy-900) 60%, #1739A8); }
.class-hero.st-3 { background: radial-gradient(700px 400px at 90% 10%, #7B3AED 0%, transparent 60%), linear-gradient(140deg, var(--navy-950), var(--navy-900) 60%, #4A1FA8); }
.class-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); max-width: 18ch; }
.class-hero .lede { color: #C6D3F5; }
.h1-mr { display: block; font: 600 clamp(1.1rem, 1rem + .6vw, 1.5rem)/1.5 var(--display); color: #A9C1FF; margin-top: 10px; letter-spacing: 0; }
.class-hero .wrap { position: relative; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar .sec-h-sm { margin: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--card); border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--sh-sm); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 500 .9rem/1 var(--display); color: var(--muted); transition: .25s var(--ease); display: inline-flex; gap: 6px; align-items: center; }
.tabs button span { font-size: .75rem; background: var(--bg); color: var(--muted); padding: 3px 7px; border-radius: 999px; }
.tabs button:hover { color: var(--blue-600); }
.tabs button.is-on { background: var(--navy-900); color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 31, 92, .6); }
.tabs button.is-on span { background: rgba(255, 255, 255, .18); color: #fff; }

.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px; }
.bk { transition: opacity .35s, transform .35s var(--ease); }
.bk.is-hidden { display: none; }
.bk > a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r-lg); padding: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.bk > a:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--blue-100); color: var(--ink); }
.bk-cover { position: relative; display: block; perspective: 900px; margin-bottom: 14px; }
.cover { width: 100%; height: auto; aspect-ratio: 300 / 372; object-fit: cover; border-radius: 10px; background: var(--blue-50); }
.bk-cover .cover { box-shadow: 0 14px 24px -14px rgba(11, 31, 92, .55); transition: transform .6s var(--ease); transform-origin: left center; }
.bk > a:hover .bk-cover .cover { transform: rotateY(-14deg) scale(1.02); }
.bk-class { position: absolute; top: 8px; left: 8px; font: 700 .72rem/1 var(--display); background: var(--yellow); color: var(--navy-950); padding: 5px 8px; border-radius: 999px; }
.bk-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.bk-name { font: 600 1rem/1.3 var(--display); }
.bk-medium { font-size: .84rem; color: var(--muted); }
.bk-status { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem/1 var(--display); color: var(--blue-600); }
.bk-status .ic { width: 15px; height: 15px; }
.bk-status.is-live { color: var(--green); }
.cover-ph { display: grid; place-items: center; padding: 14px; text-align: center; font: 700 1rem/1.25 var(--display); color: #fff; }
.k-maths { background: linear-gradient(150deg, #FF9F43, #F0592A); }
.k-science { background: linear-gradient(150deg, #8B5CF6, #5B21B6); }
.k-english { background: linear-gradient(150deg, #3B82F6, #1E3A8A); }
.k-marathi { background: linear-gradient(150deg, #F472B6, #BE185D); }
.k-geography { background: linear-gradient(150deg, #14B8A6, #0F766E); }
.k-history { background: linear-gradient(150deg, #F59E0B, #92400E); }
.k-evs { background: linear-gradient(150deg, #22C55E, #15803D); }
.k-work, .k-other { background: linear-gradient(150deg, #64748B, #1E293B); }

.online-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.online-card { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-sm); padding: 22px; display: flex; flex-direction: column; }
.oc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.cover.oc-cover { width: 64px; flex: none; border-radius: 8px; box-shadow: 0 8px 16px -8px rgba(11, 31, 92, .5); }
.oc-head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.oc-head h3 a { color: var(--ink); text-decoration: none; }
.oc-head h3 a:hover { color: var(--blue-600); }
.oc-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.oc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.oc-list a { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background .2s; }
.oc-list a:hover { background: var(--blue-50); color: var(--blue-600); }
.oc-list b { font: 700 .85rem/1 var(--display); color: var(--blue-600); min-width: 18px; }
.oc-all { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem/1 var(--display); text-decoration: none; }
.class-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.class-nav a:only-child:last-child { margin-left: auto; }

/* textbooks hub */
.tb-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.tb-jump span { font: 600 .85rem/1 var(--display); color: var(--muted); margin-right: 6px; }
.tb-jump a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); text-decoration: none;
  font: 700 .95rem/1 var(--display); color: var(--navy-900); transition: .25s var(--ease); }
.tb-jump a:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.tb-class { margin-bottom: 56px; }
.tb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.tb-head h2 { display: flex; align-items: center; gap: 14px; margin: 0; flex-wrap: wrap; }
.tb-head small { font: 500 1rem/1 var(--display); color: var(--muted); }
.tb-n { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--purple)); font-weight: 800; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 .95rem/1 var(--display); text-decoration: none; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- subject page ---------- */
.ch-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ch-cards a { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-sm); transition: .35s var(--ease); height: 100%; }
.ch-cards a:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--blue-100); color: var(--ink); }
.cl-n { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; font: 800 1.2rem/1 var(--display); color: var(--blue-600); background: var(--blue-50); transition: .35s var(--ease); }
.ch-cards a:hover .cl-n { background: linear-gradient(135deg, var(--blue-600), var(--purple)); color: #fff; transform: rotate(-6deg); }
.cl-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cl-t { font: 600 1.05rem/1.35 var(--display); }
.cl-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.cl-go { color: var(--blue-600); transition: transform .3s var(--ease); }
.ch-cards a:hover .cl-go { transform: translateX(4px); }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 .74rem/1 var(--display); padding: 4px 8px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; }
.tag .ic { width: 12px; height: 12px; }
.tag-ok { background: #E3F7EE; color: #0D6E48; }

/* ---------- chapter + question page ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 32px; padding-bottom: 20px; align-items: start; }
.main-col { min-width: 0; }
.ch-summary { background: var(--card); border-radius: var(--r); padding: 18px 22px; border-left: 4px solid var(--yellow); margin-bottom: 22px; box-shadow: var(--sh-sm); }
.ch-summary p:last-child { margin: 0; }
.ch-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--navy-900);
  font: 500 .92rem/1 var(--display); text-decoration: none; transition: .25s var(--ease); box-shadow: var(--sh-sm); }
.tool:hover { border-color: var(--blue-100); color: var(--blue-600); transform: translateY(-2px); }
.tool[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 26px; box-shadow: var(--sh-sm); }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font: 600 1rem/1.3 var(--display); color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .ic:last-child { margin-left: auto; transition: transform .3s var(--ease); color: var(--muted); }
.toc[open] summary .ic:last-child { transform: rotate(180deg); }
.toc summary .ic:first-child { color: var(--blue-600); }
.toc ol { margin: 0; padding: 0 22px 18px 46px; display: grid; gap: 6px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue-600); text-decoration: underline; }
.lock-tag { font: 600 .7rem/1 var(--display); background: #FFF4D6; color: #8A5A00; padding: 3px 7px; border-radius: 999px; vertical-align: 2px; }

.qa-list { display: grid; gap: 18px; }
.qa-section { font-size: 1.2rem; margin: 22px 0 0; padding: 10px 16px; border-radius: 12px; background: linear-gradient(90deg, var(--blue-50), transparent); color: var(--navy-900); border-left: 4px solid var(--blue-600); }
.qa { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 24px 26px; box-shadow: var(--sh-sm); transition: box-shadow .3s, border-color .3s; scroll-margin-top: 150px; }
.qa:hover { box-shadow: var(--sh); }
.qa:target { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 196, 37, .3), var(--sh); }
.qa-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qa-n { display: inline-grid; place-items: center; min-width: 42px; height: 32px; padding: 0 10px; border-radius: 10px; font: 700 .9rem/1 var(--display); color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--purple)); }
.qa-type { font: 600 .75rem/1 var(--display); color: var(--blue-600); background: var(--blue-50); padding: 7px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.qa-q { font: 600 1.18rem/1.5 var(--display); color: var(--ink); margin: 0 0 14px; letter-spacing: -.005em; }
.qa-single .qa-q { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); line-height: 1.35; }
.qa-fig { margin: 0 0 16px; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.qa-fig img { margin: 0 auto; max-height: 380px; width: auto; }
.qa-opts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-opts li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); transition: .25s; }
.opt-l { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 .85rem/1 var(--display); background: var(--bg); color: var(--muted); flex: none; }
.qa-opts li.is-correct { border-color: #9BE0C2; background: #EFFBF5; }
.qa-opts li.is-correct .opt-l { background: var(--green); color: #fff; }
.qa-a { position: relative; border-radius: var(--r); padding: 16px 20px 6px; background: linear-gradient(180deg, #F3FBF7, #fff); border: 1px solid #D4F0E2; }
.qa-a-label { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem/1 var(--display); color: var(--green); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.qa-a-label .ic { width: 16px; height: 16px; stroke-width: 3; }
.qa-a ul, .qa-a ol { padding-left: 1.3em; }
.qa-a li { margin-bottom: 4px; }
.qa-a strong { color: var(--navy-900); background: linear-gradient(transparent 62%, rgba(255, 196, 37, .45) 62%); }
.qa-a figure { margin: 12px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; background: var(--card); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--blue-50); font: 600 .92rem/1.3 var(--display); color: var(--navy-900); }
tr:last-child td { border-bottom: 0; }
.qa-reveal { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px dashed var(--blue-100); background: var(--blue-50);
  color: var(--blue-600); font: 600 .95rem/1 var(--display); transition: .25s; }
.qa-reveal:hover { background: var(--blue-600); color: #fff; border-style: solid; border-color: var(--blue-600); }
.is-practice .qa:not(.is-shown) .qa-a, .is-practice .qa:not(.is-shown) .qa-opts li.is-correct .opt-l + * { }
.is-practice .qa:not(.is-shown) .qa-a { display: none; }
.is-practice .qa:not(.is-shown) .qa-opts li.is-correct { border-color: var(--line); background: var(--card); }
.is-practice .qa:not(.is-shown) .qa-opts li.is-correct .opt-l { background: var(--bg); color: var(--muted); }
.is-practice .qa:not(.is-shown) .qa-reveal { display: inline-flex !important; }
.qa .qa-reveal[hidden] { display: none; }
.qa.is-shown .qa-a { animation: fadeUp .45s var(--ease); }
.qa-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: 600 .9rem/1 var(--display); text-decoration: none; }
.qa-link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.qa-link:hover .ic { transform: translateX(3px); }
.qa.is-locked { background: linear-gradient(180deg, #fff, #FFFBEF); }
.qa-lock { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); border: 2px dashed #F5D98A; background: #FFF9E8; }
.qa-lock-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--navy-950); flex: none; }
.qa-lock-t { font: 700 1rem/1.3 var(--display); color: var(--ink); margin: 0 0 4px; }
.qa-lock p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.report-note { display: flex; align-items: center; gap: 10px; margin: 26px 0; padding: 14px 18px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line); color: var(--muted); font-size: .94rem; }
.report-note .ic { color: var(--pink); }
.ch-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ch-nav a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  font: 600 1rem/1.35 var(--display); box-shadow: var(--sh-sm); transition: .3s var(--ease); }
.ch-nav a:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--blue-100); color: var(--blue-600); }
.ch-nav small { display: block; font: 500 .8rem/1.3 var(--body); color: var(--muted); }
.ch-nav .ic { color: var(--blue-600); width: 22px; height: 22px; }
.ch-next { grid-column: 2; justify-content: flex-end; text-align: right; }
.back-link { margin: 22px 0; }
.more-q { margin-top: 20px; }
.more-q h2 { font-size: 1.3rem; }
.more-q ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.more-q a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: .25s var(--ease); }
.more-q a:hover { border-color: var(--blue-100); color: var(--blue-600); transform: translateX(4px); }
.more-q b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); font: 700 .85rem/1 var(--display); flex: none; }
.more-q span { flex: 1; }
.more-q .ic { color: var(--blue-600); }

.side-col { position: relative; height: 100%; }
.side-sticky { position: sticky; top: 150px; display: grid; gap: 16px; }
.side-book { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--sh-sm); transition: .3s var(--ease); }
.side-book:hover { box-shadow: var(--sh); color: var(--ink); }
.cover.side-cover { width: 64px; flex: none; border-radius: 8px; box-shadow: 0 8px 16px -8px rgba(11, 31, 92, .5); }
.side-book span { display: flex; flex-direction: column; }
.side-book small { font: 600 .78rem/1.3 var(--display); color: var(--blue-600); text-transform: uppercase; letter-spacing: .04em; }
.side-book b { font: 700 1.02rem/1.3 var(--display); }
.side-book em { font-style: normal; font-size: .85rem; color: var(--muted); }
.side-box { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); padding: 14px; box-shadow: var(--sh-sm); max-height: 46vh; overflow: auto; }
.side-h { display: flex; align-items: center; gap: 8px; font: 700 .85rem/1 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 4px 6px 12px; }
.side-ch { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-ch a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .94rem; line-height: 1.4; transition: background .2s; }
.side-ch a:hover { background: var(--blue-50); color: var(--blue-600); }
.side-ch a[aria-current] { background: var(--navy-900); color: #fff; }
.side-ch b { font: 700 .85rem/1.6 var(--display); color: var(--blue-600); min-width: 16px; }
.side-ch a[aria-current] b { color: var(--yellow); }
.side-app { padding: 18px; border-radius: var(--r); background: linear-gradient(140deg, var(--navy-900), var(--blue-700)); color: #fff; display: grid; gap: 12px; grid-template-columns: auto 1fr; align-items: center; }
.side-app img { border-radius: 12px; }
.side-app p { margin: 0; display: flex; flex-direction: column; }
.side-app b { font: 700 1rem/1.2 var(--display); }
.side-app p span { font-size: .85rem; color: #C6D3F5; }
.side-app .btn { grid-column: 1 / -1; }

.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 80; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink)); }

/* ---------- install panel ---------- */
.install-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl); background: linear-gradient(140deg, var(--navy-950), var(--navy-900) 50%, #1538A0); color: #D5E0FF; box-shadow: var(--sh-lg); }
.ip-glow { position: absolute; inset: 0; background: radial-gradient(400px 260px at 85% 20%, rgba(123, 58, 237, .5), transparent 70%), radial-gradient(300px 200px at 0% 100%, rgba(255, 196, 37, .18), transparent 70%); pointer-events: none; }
.ip-text { position: relative; }
.install-panel h2 { color: #fff; font-size: var(--step-2); }
.ip-cta { margin-top: 22px; }
.ip-small { margin: 14px 0 0; font-size: .88rem; color: #9FB0DD; }
.install-panel .phone { width: 230px; position: relative; }

/* ---------- static pages / prose ---------- */
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 20px 0; margin-top: 30px; }
.shots img { width: 220px; border-radius: 20px; box-shadow: var(--sh); flex: none; }
.nf { padding: 40px 0; }
.nf-n { font: 800 clamp(6rem, 4rem + 8vw, 10rem)/1 var(--display); margin: 0; background: linear-gradient(135deg, var(--blue-600), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .lede { margin: 0 auto; }

/* search page */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 18px; padding: 8px 8px 8px 18px; border: 1px solid var(--line); box-shadow: var(--sh); }
.search > .ic { color: var(--muted); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 1.08rem/1.2 var(--body); padding: 12px 4px; background: none; }
.search select { border: 0; background: var(--bg); border-radius: 12px; padding: 12px 14px; font: 500 .95rem/1 var(--display); color: var(--navy-900); }
.search-status { color: var(--muted); margin: 16px 4px; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.search-results li { background: var(--card); border-radius: 14px; border: 1px solid var(--line); padding: 14px 18px; transition: .25s var(--ease); animation: fadeUp .4s var(--ease) both; }
.search-results li:hover { border-color: var(--blue-100); box-shadow: var(--sh); transform: translateX(4px); }
.search-results a { font: 600 1.02rem/1.4 var(--display); text-decoration: none; color: var(--ink); display: block; }
.search-results a:hover { color: var(--blue-600); }
.search-results small { color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #B9C8F0; margin-top: clamp(60px, 8vw, 110px); padding-bottom: 20px; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--yellow), #FFB000); transform: translateY(-50%); box-shadow: 0 30px 60px -20px rgba(255, 170, 0, .5); max-width: calc(var(--wrap) - 44px); }
.foot-cta h2 { color: var(--navy-950); margin: 0; font-size: var(--step-2); max-width: 26ch; font-weight: 800; }
.foot-cta .eyebrow.on-dark { background: rgba(11, 31, 92, .12); color: var(--navy-900); box-shadow: none; margin-bottom: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-top: -10px; }
.foot-brand p { margin: 16px 0 0; font-size: .95rem; max-width: 34ch; }
.foot-mr { color: #8FA2D6; }
.foot-h { color: #fff; font: 700 1rem/1 var(--display); margin: 8px 0 16px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-list a { color: #B9C8F0; text-decoration: none; font-size: .95rem; transition: color .2s, padding .25s var(--ease); }
.foot-list a:hover { color: var(--yellow); padding-left: 4px; }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: #8FA2D6; }
.foot-legal p { margin: 0; max-width: 80ch; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 65; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy-900); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-lg); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .35s var(--ease); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-600); }

/* ---------- scroll reveal (only when JS runs, so crawlers and no-JS readers always see content) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(26px); } to { transform: none; } }
@keyframes heroPhoto { from { transform: translateY(40px) scale(.97); } to { transform: none; } }
@keyframes popIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes coverIn { from { opacity: 0; transform: translateY(20px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(80px, 60px); } }
@keyframes twinkle { 0%, 100% { opacity: .9; transform: scale(1) rotate(0); } 50% { opacity: .35; transform: scale(.7) rotate(25deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slideIn { from { transform: translateY(120%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mq-row li[aria-hidden] { display: none; }
  .fx-layer, .float-slow { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .head-badge { display: none; }
}
@media (max-width: 1024px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 74px 0 auto 0; margin: 0; background: var(--card); padding: 16px 22px 24px; box-shadow: 0 30px 50px -20px rgba(11, 31, 92, .35);
    max-height: calc(100vh - 74px); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease); border-top: 1px solid var(--line); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu-open .menu-btn .i-open { display: none; }
  .menu-open .menu-btn .i-close { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .mega-btn { width: 100%; padding: 14px 12px; font-size: 1.05rem; justify-content: space-between; }
  .nav-list > li > a::after, .mega-btn::after { display: none; }
  .mega { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; opacity: 1; visibility: visible; }
  .has-mega.is-open .mega { display: block; transform: none; }
  .mega-h { display: none; }
  .nav-mobile-cta { display: block; padding: 16px 12px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; }
  .hero-art { margin: 0 auto; }
  .hero .stats { margin-top: -10px; }
  .hero-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); transform: translateY(40px); }
  .stats li:nth-child(3)::before { display: none; }
  .pop-grid, .feats { grid-template-columns: repeat(2, 1fr); }
  .demo-grid, .app-grid { grid-template-columns: 1fr; }
  .app-phone { order: 2; }
  .layout { grid-template-columns: 1fr; }
  .side-col { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 1.02rem; }
  .wrap { padding: 0 16px; }
  .wrap.section-sm { padding-left: 16px; padding-right: 16px; }
  .head-row { min-height: 66px; gap: 10px; }
  .nav { top: 66px; max-height: calc(100vh - 66px); }
  .brand { font-size: 1.2rem; gap: 10px; }
  .logo-img { width: 40px; height: 40px; }
  .icon-btn { width: 42px; height: 42px; }
  .class-strip ul { justify-content: flex-start; padding: 9px 16px; margin: 0 -16px; }
  .hero-search { padding: 6px 6px 6px 14px; border-radius: 14px; }
  .hero-search .btn { padding: 0 16px; min-height: 46px; }
  .hero-cta-l { display: none; }
  .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { display: none; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card small { display: none; }
  .stats li { padding: 18px 10px; }
  .pop-grid, .feats { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bk > a { padding: 10px; border-radius: var(--r); }
  .bk-name { font-size: .92rem; }
  .ph-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ph-cover { width: 96px; }
  .ph-cover-lg { width: 120px; }
  .qa { padding: 18px; border-radius: var(--r); }
  .qa-opts { grid-template-columns: 1fr; }
  .ch-nav { grid-template-columns: 1fr; }
  .ch-next { grid-column: 1; }
  .ch-cards { grid-template-columns: 1fr; }
  .online-grid { grid-template-columns: 1fr; }
  .install-panel { grid-template-columns: 1fr; }
  .install-panel .phone { display: none; }
  .foot-cta { padding: 26px; transform: translateY(-40%); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .notebook { padding: 28px 20px 24px 56px; }
  .tabs { width: 100%; justify-content: space-between; }
  .tabs button { padding: 9px 10px; font-size: .82rem; }
  .search { flex-wrap: wrap; }
  .search select { width: 100%; }
}
/* ======================================================================
   v2 upgrade: hero extras, class picker, shelf, features, Maharashtra,
   class page, reading tools, bottom nav, dark mode
   ====================================================================== */

/* ---------- hero refinements ---------- */
.hero { padding-top: clamp(26px, 3.4vw, 50px); }
.hero-text { padding-bottom: clamp(44px, 5vw, 76px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: .9rem; color: #D6E2FF; margin-bottom: 18px; }
.hero-h { font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; line-height: 1.08; }
.hero-lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.28rem); }
.hero-cta { margin-top: 26px; }
.hero-cta .btn-lg { min-height: 58px; }
.hero .btn-primary { box-shadow: 0 14px 30px -12px rgba(255, 196, 0, .75), 0 0 0 4px rgba(255, 196, 0, .16); }
.hero .hero-search { margin-top: 22px; position: relative; padding: 9px 9px 9px 22px; border-radius: 20px; max-width: 620px; }
.hero-search input { font-size: 1.1rem; padding: 14px 6px; }
.hero-search .btn { min-height: 52px; padding: 0 26px; }
.hero-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .9rem; color: #A9B9E6; }
.hero-try span { font: 600 .85rem/1 var(--display); margin-right: 2px; }
.hero-try a { color: #fff; text-decoration: none; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font: 500 .86rem/1.2 var(--body); transition: .25s var(--ease); }
.hero-try a:hover { background: var(--yellow); color: var(--navy-950); transform: translateY(-2px); }
.phone-glow { position: absolute; z-index: 0; left: 50%; top: 46%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 196, 0, .32) 0%, rgba(80, 140, 255, .26) 50%, rgba(80, 140, 255, .08) 80%, transparent 100%);
  animation: glowFloat 9s ease-in-out infinite; will-change: transform, opacity; pointer-events: none; }
.hero-art .hero-photo { position: relative; z-index: 1; }
.hero-art .doodle { z-index: 2; }
.fx-layer { position: absolute; inset: 0; }
.fx { position: absolute; width: 40px; height: 40px; color: rgba(255, 255, 255, .17); animation: fxFloat 9s ease-in-out infinite; }
.fx-book { top: 1.5%; left: 30%; width: 46px; height: 46px; }
.fx-cap { top: 5%; left: 45%; color: rgba(255, 196, 0, .4); width: 50px; height: 50px; animation-delay: -2s; }
.fx-pencil { bottom: 24%; left: 47%; animation-delay: -4s; }
.fx-atom { top: 16%; right: 2.5%; width: 52px; height: 52px; animation-delay: -1s; animation-duration: 12s; }
.fx-pi { bottom: 5%; left: 24%; color: rgba(255, 196, 0, .32); animation-delay: -6s; }
.fx-ruler { bottom: 7%; left: 44%; width: 44px; animation-delay: -3s; }
.fx-plus { top: 4%; left: 26%; width: 26px; height: 26px; animation-delay: -5s; }
.fx-star { bottom: 9%; left: 34%; width: 24px; height: 24px; color: rgba(255, 196, 0, .45); animation-delay: -7s; }

/* instant search suggestions */
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 6px; text-align: left;
  background: var(--card); border-radius: 18px; box-shadow: var(--sh-lg); border: 1px solid var(--line); animation: fadeUp .25s var(--ease); }
.suggest li { animation: fadeUp .3s var(--ease) both; }
.suggest a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest a.is-active { background: var(--blue-50); }
.suggest .sr-t { font: 600 .98rem/1.35 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest small { grid-column: 2; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.suggest-all a { display: block; text-align: center; font: 600 .9rem/1 var(--display); color: var(--blue-600); padding: 12px; }
.sr-kind { display: inline-block; font: 700 .64rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; padding: 5px 7px; border-radius: 7px; vertical-align: 2px; margin-right: 8px; }
.suggest .sr-kind { margin: 0; grid-row: span 2; }
.sr-kind.k3 { background: #FFF1C2; color: #7A5200; }
.sr-kind.k2 { background: var(--blue-50); color: var(--blue-600); }
.sr-kind.k1 { background: #E3F7EE; color: #0D6E48; }
.sr-kind.k0 { background: #F0F2F8; color: #4B5675; }
.search-results small { display: block; margin-top: 2px; }

/* ---------- class picker (home) ---------- */
.classes-sec { position: relative; }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.stage-card { --c1: #0EA5E9; --c2: #1D6FE0; --tint: #E7F6FE; --tint2: #CDEBFB;
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 28px; border: 1px solid var(--line);
  box-shadow: var(--sh); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.stage-card.st-2 { --c1: #2563EB; --c2: #102A80; --tint: #EAF0FF; --tint2: #D3E0FF; }
.stage-card.st-3 { --c1: #7C3AED; --c2: #4A1FA8; --tint: #F2ECFF; --tint2: #E1D5FF; }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.stage-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); z-index: 2; }
.stage-art { position: relative; padding: 18px 18px 0; background: radial-gradient(70% 80% at 50% 70%, var(--tint2), transparent 70%), linear-gradient(180deg, var(--tint), var(--card)); }
.stage-glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 30%, transparent), transparent 68%); pointer-events: none; }
.illu { width: 100%; height: auto; display: block; }
.stage-art .illu { position: relative; z-index: 1; filter: drop-shadow(0 16px 20px rgba(11, 21, 56, .18)); transition: transform .6s var(--ease); }
.stage-card:hover .stage-art .illu { transform: translateY(-4px) scale(1.02); }
.stage-body { padding: 8px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.stage-k { display: inline-flex; align-items: center; gap: 6px; font: 700 .78rem/1.2 var(--display); color: var(--c1); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.stage-k [lang="mr"] { text-transform: none; letter-spacing: 0; }
.stage-k .ic { width: 16px; height: 16px; }
.stage-body h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 2px; letter-spacing: -.02em; }
.stage-meta { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.cls-btns { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.cls-btns.n5 { grid-template-columns: repeat(5, 1fr); }
.cls-btns.n3 { grid-template-columns: repeat(3, 1fr); }
.cls-btns.n2 { grid-template-columns: repeat(2, 1fr); }
.cls-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; padding: 10px 4px 12px;
  border-radius: 18px; text-decoration: none; color: var(--c2); background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--tint2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; overflow: hidden; }
.cls-btn small { font: 700 .66rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.cls-btn b { font: 800 2.1rem/1.05 var(--display); letter-spacing: -.04em; margin: 4px 0 3px; }
.cls-btn > span { font: 500 .72rem/1 var(--body); color: var(--muted); white-space: nowrap; transition: color .3s; }
.cls-btn:hover, .cls-btn:focus-visible { color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); transform: translateY(-4px);
  box-shadow: 0 16px 26px -12px color-mix(in srgb, var(--c2) 80%, transparent); }
.cls-btn:hover > span, .cls-btn:focus-visible > span { color: rgba(255, 255, 255, .85); }
.cls-btn:active { transform: translateY(-1px) scale(.98); }
.cls-go { position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); }
.cls-btn:hover .cls-go, .cls-btn:focus-visible .cls-go { opacity: 1; transform: none; animation: nudge 1.2s ease-in-out .3s infinite; }
.cls-live { position: absolute; left: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(19, 162, 107, .2); }
.cls-btn.is-mine { box-shadow: inset 0 0 0 2.5px var(--yellow); }
.cls-btn.is-mine::after { content: attr(data-mine); position: absolute; bottom: 0; left: 0; right: 0; font: 700 .56rem/1 var(--display); text-transform: uppercase;
  letter-spacing: .04em; background: var(--yellow); color: var(--navy-950); padding: 3px 0; }
.cls-btns.n5 .cls-btn.is-mine::after { font-size: .5rem; }

/* continue learning (localStorage) */
.cont { margin: 0 0 clamp(40px, 5vw, 64px); padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm); animation: fadeUp .6s var(--ease); }
.cont-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cont-h { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0; }
.cont-h .ic { color: var(--blue-600); }
.cont-clear { border: 0; background: none; color: var(--muted); font: 500 .85rem/1 var(--display); padding: 8px; border-radius: 8px; }
.cont-clear:hover { color: var(--pink); background: var(--bg); }
.cont-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cont-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--bg); text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: .3s var(--ease); height: 100%; }
.cont-card:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--sh); color: var(--ink); }
.cont-card img { width: 44px; height: auto; border-radius: 6px; flex: none; box-shadow: 0 6px 12px -6px rgba(11, 31, 92, .5); }
.cont-t { display: flex; flex-direction: column; min-width: 0; }
.cont-t small { font: 700 .68rem/1.3 var(--display); color: var(--blue-600); text-transform: uppercase; letter-spacing: .05em; }
.cont-t b { font: 600 .98rem/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-t em { font-style: normal; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- textbook shelf ---------- */
.mq-row { list-style: none; margin: 0; padding: 16px 22px 22px; display: flex; align-items: flex-end; gap: 20px; overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.mq-row::-webkit-scrollbar { display: none; }
.mq-row li { flex: none; }
.mq-row a { display: block; position: relative; border-radius: 10px; outline-offset: 4px; }
.mq-row img { width: 148px; height: auto; border-radius: 9px; filter: drop-shadow(0 14px 14px rgba(11, 31, 92, .26)); transition: transform .45s var(--ease), filter .45s; }
.mq-row a:hover img, .mq-row a:focus-visible img { transform: translateY(-10px) rotate(-2deg) scale(1.04); filter: drop-shadow(0 24px 22px rgba(11, 31, 92, .34)); }
.mq-c { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 6px); font: 700 .7rem/1 var(--display); background: var(--yellow); color: var(--navy-950);
  padding: 5px 9px; border-radius: 999px; opacity: 0; transition: .35s var(--ease); white-space: nowrap; pointer-events: none; }
.mq-row a:hover .mq-c, .mq-row a:focus-visible .mq-c { opacity: 1; transform: translate(-50%, -10px); }

/* ---------- textbook covers: never cropped, never stretched ---------- */
.cover { width: 100%; height: auto; border-radius: 10px; aspect-ratio: auto; object-fit: initial; background: none; }
.cover-ph { aspect-ratio: 300 / 372; }
.bk-cover { aspect-ratio: 300 / 386; display: flex; align-items: flex-end; justify-content: center; }
.bk-cover .cover { box-shadow: 0 14px 22px -14px rgba(11, 31, 92, .6), 0 2px 4px rgba(11, 31, 92, .08); }
.bk-medium { align-self: flex-start; font: 600 .72rem/1 var(--display); padding: 5px 8px; border-radius: 999px; margin-top: 2px; }
.bk-medium.is-en { background: var(--blue-50); color: var(--blue-600); }
.bk-medium.is-mr { background: #FFF2CC; color: #8A5A00; }
.bk-name { min-height: 2.6em; }
.is-swap > .bk:not(.is-hidden), .is-swap > li:not(.is-hidden), .is-swap .bk:not(.is-hidden) { animation: fadeUp .4s var(--ease) both; }
.find-empty { text-align: center; color: var(--muted); padding: 30px 0; margin: 0; }

/* ---------- features with illustrations ---------- */
.feat { padding: 24px; }
.feat-art { display: grid; place-items: center; width: 100%; height: 132px; border-radius: 20px; margin-bottom: 4px; background: var(--tint, #EAF0FF); overflow: hidden; position: relative; }
.feat-art::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -60px; background: rgba(255, 255, 255, .5); }
.feat-art svg { width: 150px; height: auto; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.feat:hover .feat-art svg { transform: translateY(-5px) rotate(-2deg) scale(1.05); }
.feat.f-blue { --tint: #E6EEFF; } .feat.f-orange { --tint: #FFF1E2; } .feat.f-purple { --tint: #F1EAFF; }
.feat.f-green { --tint: #E4F7EE; } .feat.f-pink { --tint: #FDEAF4; } .feat.f-sky { --tint: #E3F4FC; }
.feat h3 { margin-top: 16px; }

/* ---------- app band ---------- */
.price-note { margin: 6px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: .95rem; color: #C6D3F5; max-width: 46ch; }
.price-note b { color: var(--yellow); }
.qr-card { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.qr-card img { width: 96px; height: 96px; padding: 7px; border-radius: 12px; background: #fff; }
.qr-card span { display: flex; flex-direction: column; font-size: .84rem; color: #A9B9E6; max-width: 21ch; line-height: 1.35; }
.qr-card b { color: #fff; font: 700 1rem/1.3 var(--display); }
.app-phone { position: relative; }
.app-phone .phone { position: relative; z-index: 1; }

/* ---------- Made in Maharashtra ---------- */
.mh-sec { background: linear-gradient(180deg, var(--bg), var(--card) 50%, var(--bg)); overflow: hidden; }
.mh-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.mh-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.mh-points li { display: flex; gap: 14px; align-items: flex-start; }
.mh-i { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--blue-600); background: var(--blue-50); transition: .35s var(--ease); }
.mh-points li:hover .mh-i { background: var(--blue-600); color: #fff; transform: rotate(-6deg); }
.mh-points li > span:last-child { display: flex; flex-direction: column; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mh-points b { color: var(--ink); font: 700 1.02rem/1.35 var(--display); }
.mh-art { position: relative; }
.mh-art .illu { position: relative; z-index: 1; filter: drop-shadow(0 26px 30px rgba(11, 31, 92, .2)); }
.mh-ring { position: absolute; z-index: 0; left: 50%; top: 50%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .22), rgba(37, 99, 235, .12) 45%, transparent 70%); }
.float-slow { animation: floaty 7s ease-in-out infinite; }
.sec-tight { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }

/* ---------- class page: compact illustrated banner ---------- */
.class-hero { padding: 20px 0 0; }
.ch-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.ch-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 430px); gap: 20px; align-items: end; }
.ch-text { padding-bottom: 30px; }
.class-hero .crumbs ol { margin-bottom: 14px; }
.class-hero .eyebrow { margin-bottom: 12px; }
.class-hero h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.7rem); max-width: 24ch; margin-bottom: 10px; }
.ch-num { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 .15em; border-radius: .36em; background: var(--yellow); color: var(--navy-950);
  margin-right: .32em; vertical-align: .04em; box-shadow: 0 10px 24px -8px rgba(255, 196, 0, .6); animation: popIn .7s .1s var(--ease) both; }
.class-hero .h1-mr { font-size: clamp(1rem, .95rem + .4vw, 1.25rem); margin-top: 6px; }
.ch-lede { margin: 0 0 4px; font-size: 1.02rem; max-width: 58ch; }
.class-hero .stats-row { margin: 14px 0 0; gap: 8px; }
.class-hero .stats-row span { padding: 8px 14px; min-width: 0; flex-direction: row; align-items: baseline; gap: 6px; border-radius: 12px; }
.class-hero .stats-row b { font-size: 1.2rem; }
.class-hero .stats-row .is-live { background: rgba(19, 162, 107, .22); border-color: rgba(34, 197, 139, .45); color: #C9F5E2; }
.ch-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ch-switch > span { font: 700 .74rem/1 var(--display); color: #A9C1FF; text-transform: uppercase; letter-spacing: .06em; }
.ch-switch-n { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-switch-n a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; color: #fff; font: 700 1rem/1 var(--display);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: .25s var(--ease); }
.ch-switch-n a:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.ch-switch-n a[aria-current] { background: var(--yellow); color: var(--navy-950); box-shadow: none; }
.ch-all { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; color: #fff; text-decoration: none; font: 600 .88rem/1 var(--display);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: .25s; }
.ch-all:hover { background: #fff; color: var(--navy-900); }
.ch-art { align-self: end; }
.ch-art .illu { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .3)); animation: heroPhoto 1s var(--ease) both, floaty 7s ease-in-out 1s infinite; }

/* textbook tools: medium + search */
.books-sec { padding-top: clamp(22px, 3vw, 34px); }
.book-tools { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 22px; }
.book-tools .sec-h-sm { margin: 0 auto 0 0; }
.tabs-lg { padding: 6px; }
.tabs-lg button { padding: 11px 18px; font-size: .95rem; font-weight: 600; min-height: 44px; }
.tab-mr { font-family: var(--deva); background: none !important; padding: 0 !important; font-size: .95rem !important; color: inherit !important; }
.find { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); flex: 1 1 240px; max-width: 360px; transition: box-shadow .25s, border-color .25s; }
.find:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.find .ic { color: var(--muted); }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 1rem/1.2 var(--body); color: var(--ink); padding: 12px 0; }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

/* ---------- reading tools (chapter + question pages) ---------- */
.ch-tools { align-items: center; }
.tool { min-height: 44px; }
.tool-size { padding: 0 6px 0 14px; gap: 4px; }
.tool-size button { border: 0; background: none; color: inherit; font: 700 .9rem/1 var(--display); min-width: 36px; height: 34px; border-radius: 999px; }
.tool-size button:hover { background: var(--blue-50); color: var(--blue-600); }
.tool[data-bookmark][aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }
.tool[data-bookmark][aria-pressed="true"] .ic { fill: currentColor; }
.ch-full { margin: -6px 0 20px; }
.qa-copy { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; opacity: .55; transition: .2s; }
.qa-copy .ic { width: 17px; height: 17px; }
.qa:hover .qa-copy, .qa-copy:focus-visible { opacity: 1; }
.qa-copy:hover { background: var(--blue-50); color: var(--blue-600); }
.qa-q { font-size: calc(1.15rem * var(--fs)); }
.qa-single .qa-q { font-size: calc(clamp(1.3rem, 1.15rem + .7vw, 1.7rem) * var(--fs)); }
.qa-a, .qa-opts, .ch-summary { font-size: calc(var(--step-0) * var(--fs)); }
.qa-a { line-height: 1.7; }
.qa-a [lang="mr"], [lang="mr"] .qa-a { line-height: 1.85; }
.q-nav { margin: 18px 0 0; }
.can-zoom { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(6, 12, 32, .88); backdrop-filter: blur(6px); animation: fadeUp .25s var(--ease); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(1100px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: 14px; background: #fff; padding: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.zoom-x { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.zoom-open { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 14px; font: 500 .92rem/1.4 var(--body); box-shadow: var(--sh-lg); transition: .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- header theme button ---------- */

/* ---------- footer ---------- */
.foot-grid-5 { grid-template-columns: 1.5fr 1fr 1.1fr 1fr 1fr; gap: 32px; }
.foot-made strong { color: var(--yellow); }

/* ---------- phone bottom navigation ---------- */
.bnav { display: none; }
@media (max-width: 860px) {
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--head-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -14px rgba(11, 31, 92, .3); }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 14px; text-decoration: none;
    color: var(--muted); font: 600 .7rem/1 var(--display); transition: color .2s, background .2s; }
  .bnav a .ic, .bnav a .i-play { width: 22px; height: 22px; }
  .bnav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }
  .bnav a:active { transform: scale(.95); }
  .bnav .bnav-app { color: var(--navy-950); background: var(--yellow); margin: 2px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 44px; height: 44px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-foot { padding-bottom: 12px; }
}

/* ---------- dark mode ---------- */

@keyframes fxFloat { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(6px, -14px) rotate(8deg); } 66% { transform: translate(-6px, -6px) rotate(-6deg); } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 3px 0; } }

/* ---------- v2 responsive ---------- */
@media (max-width: 1180px) {
  .foot-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .foot-grid-5 .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .stage-grid { grid-template-columns: 1fr; gap: 18px; max-width: 760px; margin: 0 auto; }
  .stage-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .stage-art { padding: 14px 6px 0; display: flex; align-items: flex-end; }
  .stage-body { padding: 20px 20px 20px 4px; }
  .mh-grid { grid-template-columns: 1fr; }
  .mh-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .qr-card { display: none; }
  .fx-cap, .fx-pencil, .fx-ruler { display: none; }
  .ch-grid { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); }
}
@media (max-width: 720px) {
  .hero { padding-top: 18px; }
  .hero-kicker { font-size: .78rem; padding: 6px 12px; margin-bottom: 12px; }
  .hero-h { font-size: clamp(1.9rem, 1rem + 5vw, 2.4rem); margin-bottom: 12px; }
  .hero-cta { margin-top: 18px; gap: 10px; }
  .hero-cta .btn-lg { flex: 1 1 100%; min-height: 54px; }
  .hero-cta .gp-badge { flex: 1 1 100%; justify-content: center; }
  .hero .hero-search { padding: 6px 6px 6px 14px; border-radius: 16px; margin-top: 16px; }
  .hero-search input { font-size: 1rem; padding: 12px 4px; }
  .hero-search .btn { padding: 0 16px; min-height: 48px; }
  .hero-text { padding-bottom: 4px; }
  .fx { width: 28px; height: 28px; }
  .fx-atom, .fx-plus { display: none; }
  .stage-card { grid-template-columns: 1fr; }
  .stage-art { padding: 12px 24px 0; }
  .stage-body { padding: 4px 16px 18px; }
  .stage-body h3 { font-size: 1.3rem; }
  .cls-btns { gap: 8px; }
  .cls-btns.n5 { grid-template-columns: repeat(5, 1fr); }
  .cls-btn { min-height: 78px; border-radius: 14px; padding: 8px 2px 10px; }
  .cls-btn b { font-size: 1.65rem; }
  .cls-btn > span { font-size: .62rem; }
  .cls-btns.n5 .cls-btn > span { display: none; }
  .cls-btns.n5 .cls-btn small { font-size: .56rem; }
  .cls-go { display: none; }
  .cont { padding: 16px; }
  .cont-list { grid-template-columns: 1fr; }
  .mq-row { gap: 14px; padding: 12px 16px 18px; }
  .mq-row img { width: 112px; }
  .feat-art { height: 112px; }
    .ch-grid { grid-template-columns: 1fr; }
  .ch-text { padding-bottom: 4px; }
  .ch-art { max-width: 300px; margin: 0 auto -4px; width: 78%; }
  .class-hero .stats-row span { padding: 7px 11px; font-size: .8rem; }
  .book-tools { gap: 12px; }
  .book-tools .sec-h-sm { width: 100%; }
  .find { max-width: none; flex-basis: 100%; }
  .tabs-lg button { padding: 10px 8px; font-size: .8rem; flex: 1; justify-content: center; }
  .tab-mr { display: none; }
  .bk-name { min-height: 0; }
  .ch-tools { gap: 8px; }
  .tool { padding: 0 12px; font-size: .86rem; }
  .foot-grid-5 { grid-template-columns: 1fr 1fr; }
  .price-note { font-size: .9rem; }
}
.hero-grid > *, .ch-grid > *, .mh-grid > *, .app-grid > *, .demo-grid > * { min-width: 0; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .ch-grid { grid-template-columns: minmax(0, 1fr); } .hero-h { overflow-wrap: anywhere; } }
@media (max-width: 720px) { .stage-art .illu { max-width: 420px; margin: 0 auto; } }

/* ======================================================================
   v3: hero without search, navbar search panel, class tiles,
   Maharashtra banner, more motion
   ====================================================================== */
.hero { padding-top: clamp(18px, 2.4vw, 34px); }
.hero-grid { align-items: center; }
.hero-art { align-self: end; margin-top: -8px; }
.hero-text { padding: clamp(10px, 2vw, 30px) 0 clamp(70px, 7vw, 110px); }
.hero-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; font: 600 .95rem/1.2 var(--display); color: #E4EBFF; }
.hero-points .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--yellow); color: var(--navy-950); stroke-width: 3.2; }
.hero-cta { margin-top: 28px; }
.hero-h .hl { background: linear-gradient(100deg, var(--yellow) 0%, #FFB000 30%, #FFF1A8 45%, #FFB000 60%, var(--yellow) 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmerText 6s ease-in-out 1.2s infinite; }
.hl-ink { color: var(--blue-600); }

/* navbar search panel */
.head-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 59; background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(11, 31, 92, .35); padding: 14px 0 16px; animation: dropIn .35s var(--ease); }
.head-search[hidden] { display: none; }
.hs-form { position: relative; display: flex; align-items: center; gap: 10px; max-width: 820px; margin: 0 auto; padding: 6px 6px 6px 18px; border-radius: 18px;
  background: var(--bg); border: 1.5px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.hs-form:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.hs-form > .ic { color: var(--muted); width: 22px; height: 22px; }
.hs-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 1.08rem/1.2 var(--body); color: var(--ink); padding: 12px 4px; }
.hs-form .btn { min-height: 46px; border-radius: 13px; }
.hs-x { width: 42px; height: 42px; }
.search-btn { position: relative; }
.search-btn[aria-expanded="true"] { background: var(--yellow); color: var(--navy-950); }
.search-btn::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; box-shadow: 0 0 0 2px var(--yellow); opacity: 0; animation: ringPing 3.2s ease-out 2s 3; pointer-events: none; }

/* tighter textbook shelf */
.books-band { padding-bottom: clamp(34px, 4vw, 54px); }
.books-band .sec-head { margin-bottom: clamp(18px, 2.5vw, 30px); }
.marquee { margin-bottom: 20px; }

/* section heading accent bar */
.sec-h::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 5px; margin: 14px auto 0; background: linear-gradient(90deg, var(--yellow), #FF9F1C);
  transform-origin: center; transition: transform 1s var(--ease) .25s; }
.sec-h.left::after, .sec-head.left .sec-h::after { margin-left: 0; transform-origin: left; }
.js [data-reveal]:not(.is-in) .sec-h::after, .js [data-reveal]:not(.is-in) .sec-h.left::after { transform: scaleX(0); }

/* class tiles (Jump straight to your class) */
.qc-sec { background: linear-gradient(180deg, var(--bg), var(--card) 70%); }
.qc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.qc { --c1: #0EA5E9; --c2: #1D6FE0; position: relative; display: flex; flex-direction: column; height: 100%; min-height: 224px; padding: 18px;
  background: var(--card); border-radius: 22px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; isolation: isolate; }
.qc.st-2 { --c1: #2563EB; --c2: #102A80; }
.qc.st-3 { --c1: #7C3AED; --c2: #4A1FA8; }
.qc::before { content: ""; position: absolute; z-index: -1; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%); transition: transform .7s var(--ease); }
.qc:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: color-mix(in srgb, var(--c1) 35%, transparent); color: var(--ink); }
.qc:hover::before { transform: scale(1.8); }
.qc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.qc-n { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font: 800 1.6rem/1 var(--display); color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 22px -10px var(--c2); transition: transform .5s var(--ease); }
.qc:hover .qc-n { transform: rotate(-10deg) scale(1.08); }
.qc-live { display: inline-flex; align-items: center; gap: 4px; font: 700 .68rem/1 var(--display); color: #0D6E48; background: #E3F7EE; padding: 5px 8px; border-radius: 999px; }
.qc-live .ic { width: 11px; height: 11px; stroke-width: 3; }
.qc-l { font: 800 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.qc-mr { color: var(--muted); font-size: .95rem; }
.qc-m { font: 600 .85rem/1.3 var(--display); color: var(--c1); margin-top: 2px; }
.qc-stack { position: absolute; right: -4px; bottom: -16px; width: 122px; height: 104px; pointer-events: none; }
.qc-stack img { position: absolute; bottom: 0; width: 60px; height: auto; border-radius: 6px; box-shadow: 0 8px 18px -6px rgba(11, 31, 92, .5);
  transition: transform .6s var(--ease), opacity .6s; transform-origin: bottom center; }
.qc-stack img:nth-child(1) { right: 54px; transform: rotate(-14deg); }
.qc-stack img:nth-child(2) { right: 28px; transform: rotate(-4deg); z-index: 1; }
.qc-stack img:nth-child(3) { right: 2px; transform: rotate(8deg); z-index: 2; }
.qc:hover .qc-stack img:nth-child(1) { transform: rotate(-24deg) translate(-12px, -10px); }
.qc:hover .qc-stack img:nth-child(2) { transform: rotate(-4deg) translateY(-18px); }
.qc:hover .qc-stack img:nth-child(3) { transform: rotate(18deg) translate(10px, -8px); }
.qc-go { position: absolute; left: 18px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c1) 12%, transparent); color: var(--c1); transition: .35s var(--ease); }
.qc:hover .qc-go { background: var(--c1); color: #fff; transform: translateX(5px); }
.js .qc-grid [data-reveal]:not(.is-in) .qc-stack img { transform: translateY(40px) rotate(0); opacity: 0; }

/* Made in Maharashtra banner */
.mh-grid { grid-template-columns: .95fr 1.15fr; }
.mh-frame { position: relative; z-index: 1; transition: transform .5s var(--ease); animation: floaty 8s ease-in-out infinite; }
.mh-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 28px 34px rgba(11, 31, 92, .28)); }
.mh-shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: url("../img/illustrations/maharashtra-banner-640.webp"); mask-image: url("../img/illustrations/maharashtra-banner-640.webp");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.mh-shine::before { content: ""; position: absolute; inset: 0; transform: translate3d(-100%, 0, 0); will-change: transform;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .45) 50%, transparent 62%); animation: sheen 7.5s cubic-bezier(.45, 0, .25, 1) 1.5s infinite; }
.mh-ring { width: 92%; }

/* tilt + glare */
.stage-card::after, .qc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 45%); }
.is-tilt.stage-card::after, .is-tilt.qc::after { opacity: 1; }

/* feature art pops in */
.js .feat[data-reveal]:not(.is-in) .feat-art svg { transform: scale(.55) rotate(-10deg); opacity: 0; }
.feat-art svg { transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) .2s, opacity .5s .2s; }

/* stats card shine + ripple */
.stats { overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translate3d(-100%, 0, 0); will-change: transform;
  background: linear-gradient(105deg, transparent 42%, rgba(37, 99, 235, .07) 50%, transparent 58%); animation: sheen 8s cubic-bezier(.45, 0, .25, 1) 2s infinite; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .65s ease-out forwards; pointer-events: none; }

/* app band shapes */
.app-band .fx { color: rgba(255, 255, 255, .1); }

@keyframes shimmerText { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes ringPing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 1024px) {
  .qc-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-text { padding-bottom: 8px; }
  .hero-art { margin-top: 0; }
  .mh-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-points { gap: 8px 14px; margin-top: 14px; }
  .hero-points li { font-size: .85rem; }
  .qc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qc { min-height: 196px; padding: 14px; border-radius: 18px; }
  .qc-n { width: 46px; height: 46px; font-size: 1.35rem; }
  .qc-stack { width: 90px; height: 74px; bottom: -22px; }
  .qc-stack img { width: 44px; }
  .qc-stack img:nth-child(1) { right: 38px; } .qc-stack img:nth-child(2) { right: 20px; }
  .qc-go { left: 14px; bottom: 12px; }
  .head-search { padding: 10px 0 12px; }
  .hs-form { padding-left: 12px; }
  .hs-form .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-shine, .stats::after { display: none; }
  .hero-h .hl { animation: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-delay: 0s !important; animation-delay: 0s !important; } }
@media (max-width: 720px) { .fx-book { display: none; } }

/* hero: "for Classes 1–10" as a yellow pill with navy text */
.hero-h .hl.hl-pill { position: relative; display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: .06em; margin-top: .14em;
  padding: .04em .36em .1em; border-radius: .3em; color: var(--navy-950); -webkit-text-fill-color: currentColor;
  background: linear-gradient(180deg, #FFD84D 0%, #FFC400 55%, #F5B400 100%); -webkit-background-clip: border-box; background-clip: border-box; background-size: auto;
  box-shadow: 0 14px 30px -12px rgba(255, 196, 0, .75), inset 0 -.07em 0 rgba(150, 95, 0, .28), inset 0 .05em 0 rgba(255, 255, 255, .55);
  animation: pillIn .9s cubic-bezier(.34, 1.56, .64, 1) .35s both; transform-origin: left center; }
.hero-h .hl.hl-pill::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translate3d(-100%, 0, 0); will-change: transform;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .6) 50%, transparent 64%); animation: sheen 6.5s cubic-bezier(.45, 0, .25, 1) 1.6s infinite; }
@keyframes pillIn { from { opacity: 0; transform: scale(.7) rotate(-3deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-h .hl.hl-pill::after { display: none; } }

/* proper ordinal superscripts in the hero pill (no line-height jump) */
.hero-h .hl-pill sup { font-size: .46em; line-height: 0; position: relative; top: -.95em; vertical-align: baseline; margin-left: .04em; letter-spacing: 0; font-weight: 800; }

/* hero students + phone: lifted a little, gentle 3D float, tilts toward the mouse */
.hero-art { margin-top: -34px; }
@media (max-width: 1024px) { .hero-art { margin-top: 0; } }
@media (min-width: 1025px) { .hero-art { margin-top: 0; top: -44px; } }

/* ===== smooth animation pass: transform/opacity only, no fighting animations ===== */
/* the light band crosses in the first ~25% of the cycle, then rests off-screen */
@keyframes sheen { 0% { transform: translate3d(-100%, 0, 0); } 25%, 100% { transform: translate3d(100%, 0, 0); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes glowFloat {
  0%, 100% { opacity: .85; transform: translate3d(-50%, -50%, 0) scale(1); }
  25% { opacity: 1; transform: translate3d(-47%, -51%, 0) scale(1.05); }
  50% { opacity: .9; transform: translate3d(-50%, -50%, 0) scale(1.02); }
  75% { opacity: 1; transform: translate3d(-53%, -49%, 0) scale(1.06); }
}
/* hero picture: the outer frame only tilts toward the mouse, the inner layer floats in 3D.
   Same function list in every keyframe, starts and ends at rest -> seamless loop, no snap. */
.hero-frame { position: relative; z-index: 1; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.hero-float { animation: hero3d 10s ease-in-out infinite; will-change: transform; backface-visibility: hidden; }
.hero-float .hero-photo { filter: drop-shadow(0 30px 40px rgba(3, 10, 40, .35)); }
@keyframes hero3d {
  0%, 100% { transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0); }
  25% { transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg) translate3d(0, -10px, 0); }
  50% { transform: perspective(1200px) rotateY(0deg) rotateX(-1deg) translate3d(0, -16px, 0); }
  75% { transform: perspective(1200px) rotateY(4deg) rotateX(1.5deg) translate3d(0, -8px, 0); }
}
/* mouse tilt: never !important over a running animation; eases in and back out */
/* hover lift and tilt share ONE transform function list, so moving between them interpolates smoothly */
.stage-card:hover { transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translate3d(0, -6px, 0); }
.qc { --lift: -8px; }
.qc:hover { transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translate3d(0, -8px, 0); }
[data-tilt].is-tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--lift, -6px), 0);
  transition: transform .25s ease-out, box-shadow .45s var(--ease), border-color .3s; }
.hero-frame.is-tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
/* background glow: soft radial gradient instead of a 70px live blur */
.glow { filter: none; will-change: transform; }
.g1 { width: 560px; height: 560px; top: -190px; left: -190px; background: radial-gradient(circle closest-side, #2E6BFF 0%, rgba(46, 107, 255, .55) 45%, transparent 100%); }
.g2 { width: 500px; height: 500px; background: radial-gradient(circle closest-side, #7B3AED 0%, rgba(123, 58, 237, .5) 45%, transparent 100%); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(80px, 60px, 0); } }
/* floating icons and stars: own GPU layers */
.fx, .doodle { backface-visibility: hidden; }
@keyframes fxFloat { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 33% { transform: translate3d(6px, -14px, 0) rotate(8deg); } 66% { transform: translate3d(-6px, -6px, 0) rotate(-6deg); } }
/* sections scrolled out of view pause (and resume where they left off, no restart) */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-float, .phone-glow, .pulse::after, .glow { animation: none !important; }
  .hero-frame, [data-tilt] { transition: none; }
}
/* header: a live backdrop blur re-renders every frame while anything animates under or inside it
   (the hero, the search ring). A near-solid background looks the same and costs nothing. */
:root { --head-bg: rgba(255, 255, 255, .965); }
.site-head, .bnav { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* legal pages (Terms, Privacy, Refund, AI disclaimer) */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.legal-tabs a { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .92rem/1.2 var(--display); transition: .25s var(--ease); }
.legal-tabs a:hover { border-color: var(--blue-600, #2563EB); color: var(--blue-600, #2563EB); }
.legal-tabs a.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.legal-intro { color: var(--muted); margin-bottom: 18px; }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin-bottom: 26px; }
.legal-toc summary { cursor: pointer; font: 700 1rem/1.4 var(--display); color: var(--ink); }
.legal-toc ol { margin: 12px 0 2px; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal-toc li { margin: 0 0 6px; break-inside: avoid; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--navy-900); text-decoration: underline; }
.legal .prose h2 { scroll-margin-top: 96px; font-size: 1.3rem; }
.legal .prose a { overflow-wrap: anywhere; }
.legal-note { background: #FFF8E1; border: 1px solid #FFD666; border-left: 5px solid var(--yellow); border-radius: 12px; padding: 14px 18px; color: #4A3500 !important; }
@media (max-width: 720px) { .legal-toc ol { columns: 1; } }

/* chapters whose questions are coming soon, and sub-questions of locked questions */
.soon-box { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px dashed var(--line); margin-bottom: 28px; }
.soon-box h2 { font-size: 1.25rem; margin: 0 0 6px; }
.soon-box p { color: var(--muted); margin: 0 0 14px; }
.soon-i { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #FFF4CC; color: #8A6100; }
.soon-i .ic { width: 24px; height: 24px; }
.qa-subs { margin: 4px 0 14px; padding-left: 1.3em; color: var(--text); }
.qa-subs li { margin: 0 0 6px; }
.tag-soon { background: #F1F4FA; color: #5B6788; }
/* long tables in answers scroll inside their card instead of widening the page on phones */
.layout > *, .main-col, .qa, .qa-a { min-width: 0; }
.qa-a table { display: block; max-width: 100%; overflow-x: auto; }

/* ===== protect questions and answers ===== */
.qa, .qa-list, .qa-single, .toc { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.qa img { pointer-events: none; -webkit-user-drag: none; }
/* faint diagonal watermark inside every question card, so any screenshot advertises the app */
.qa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150'%3E%3Ctext x='10' y='95' transform='rotate(-22 130 75)' font-family='Arial,sans-serif' font-size='17' font-weight='700' fill='%23102A80' fill-opacity='0.055'%3ESchool Study app%3C/text%3E%3C/svg%3E");
  background-repeat: repeat; }
.qa-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #FFF8E1; border: 1px solid #FFE08A; color: #5A4300; font-weight: 600; }
.qa-more .ic { width: 18px; height: 18px; flex: none; }
.qa-more span { flex: 1 1 220px; }
/* blur while a screenshot tool or another app is in front */
html.is-shield .qa, html.is-shield .toc { filter: blur(14px); transition: filter .05s; }
html.is-shield body::after { content: "Questions and answers are protected. Read every answer in the School Study app."; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 200; max-width: 90vw; padding: 18px 24px; border-radius: 16px; background: var(--navy-900); color: #fff; font: 700 1.05rem/1.4 var(--display); text-align: center; box-shadow: var(--sh-lg); }
/* printing shows a note instead of the questions */
@media print {
  .qa, .qa-list, .qa-single, .toc { display: none !important; }
  .main-col::before { content: "The questions and answers of this chapter are available in the School Study app on Google Play."; display: block; font-size: 16pt; margin: 20px 0; }
}
/* developer tools open: questions and answers stay blurred until they are closed */
html.is-devtools .qa, html.is-devtools .toc { filter: blur(14px); }
html.is-devtools body::after { content: "Questions and answers are protected. Close developer tools to continue, or read every answer in the School Study app."; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 200; max-width: 90vw; padding: 18px 24px; border-radius: 16px; background: var(--navy-900); color: #fff; font: 700 1.05rem/1.4 var(--display); text-align: center; box-shadow: var(--sh-lg); }
/* "N more questions in the app" after the shown questions; note under a cut question */
.more-qs { display: flex; gap: 18px; align-items: center; margin: 22px 0 8px; padding: 22px 24px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, var(--navy-900), #2453D6); box-shadow: var(--sh-md, 0 14px 30px -14px rgba(16, 42, 128, .45)); }
.more-qs h2 { color: #fff; font-size: 1.25rem; margin: 0 0 4px; }
.more-qs p { color: #DCE5FF; margin: 0 0 12px; }
.more-qs-n { flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--yellow); color: var(--navy-950); font: 800 1.5rem/1 var(--display); }
.qa-cut { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; color: #8A6100; font-weight: 600; font-size: .95rem; }
.qa-cut .ic { width: 16px; height: 16px; flex: none; }
@media (max-width: 560px) { .more-qs { flex-direction: column; align-items: flex-start; } }
/* search: the typed words are highlighted in every result */
mark.sr-hit { background: #FFD43B; color: var(--navy-950, #0B1B57); font-weight: 800; border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 1px #F2B705 inset; }
small mark.sr-hit { font-weight: 700; padding: 0 1px; }
.suggest a:hover mark.sr-hit, .suggest a.is-active mark.sr-hit { background: #FFC800; }
