/* ---------- Fonts: self-hosted Baloo 2 + Hind (latin & devanagari subsets) ---------- */
/* Metric-matched Arial fallbacks (measured in Chrome): text keeps the same size while the
   web fonts load, so the font swap does not move the layout (CLS) */
@font-face { font-family: 'Baloo 2 Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); font-weight: 600 800; size-adjust: 93.3%; ascent-override: 115.5%; descent-override: 56.2%; line-gap-override: 0%; }
@font-face { font-family: 'Hind Fallback'; src: local('Arial'), local('ArialMT'); size-adjust: 94%; ascent-override: 112.2%; descent-override: 58.1%; line-gap-override: 0%; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/baloo2-devanagari.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/baloo2-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/hind-devanagari-400.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Hind'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/hind-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/hind-devanagari-500.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Hind'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/hind-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/hind-devanagari-600.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: 'Hind'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/hind-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Bihar Board Test — single lightweight stylesheet (no framework)
   ========================================================================== */
:root {
    --brand: #4338ca;
    --brand-dark: #312e81;
    --brand-soft: #eef2ff;
    --brand-line: #dfe3ff;
    --violet: #7c3aed;
    --accent: #f97316;
    --accent-dark: #c2410c; /* text-safe orange (4.5:1+) */
    --ok: #15803d; /* text-safe green (4.5:1+) */
    --ok-soft: #ecfdf3;
    --bad: #dc2626;
    --bad-soft: #fef2f2;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #576579; /* readable on white and the soft section background */
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f4f6ff;
    --grad: linear-gradient(135deg, #4f46e5, #7c3aed);
    --grad-accent: linear-gradient(135deg, #fb923c, #f97316);
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --sh-sm: 0 1px 3px rgba(15, 23, 42, .07);
    --sh: 0 10px 28px -10px rgba(30, 27, 75, .18), 0 2px 6px rgba(15, 23, 42, .04);
    --sh-lg: 0 28px 60px -18px rgba(30, 27, 75, .3);
    --f-head: "Baloo 2", "Baloo 2 Fallback", "Hind", system-ui, sans-serif;
    --f-body: "Hind", "Hind Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1200px;
    --hh: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 10px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); line-height: 1.2; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.ico { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 8px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7); }
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(249, 115, 22, .7); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }

.pill, .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; }
.pill { background: #fff; box-shadow: var(--sh-sm); }

/* ---------- Store button ---------- */
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 12px; background: #0f172a; color: #fff; border: 1.5px solid #0f172a; transition: transform .15s; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 10.5px; letter-spacing: .04em; opacity: .85; }
.store-btn strong { font-size: 17px; font-family: var(--f-head); }
.store-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.store-btn.is-soon { opacity: .85; cursor: default; }
.store-btn.is-soon:hover { transform: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--hh); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .2); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .8); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { font-family: var(--f-head); font-size: 21px; font-weight: 800; color: var(--ink); }
.logo__text b span { color: #ea580c; } /* large bold text: passes 3:1 */
.logo__text small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__text small { color: #a5b4fc; }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.header__cta { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(360px, 90vw); display: flex; flex-direction: column; background: #f8f9ff; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 50px -20px rgba(15, 23, 42, .45); border-radius: 24px 0 0 24px; }
.menu-open .drawer { transform: none; }
.menu-open .drawer-backdrop { opacity: 1; visibility: visible; }

.drawer__head { position: relative; padding: 22px 20px 20px; color: #fff; background: radial-gradient(260px 140px at 100% 0%, rgba(249, 115, 22, .45), transparent 70%), linear-gradient(135deg, #3730a3, #6d28d9); border-radius: 24px 0 24px 0; }
.drawer__head .logo__mark { background: rgba(255, 255, 255, .18); box-shadow: none; }
.drawer__head .logo__text small { color: #c7d2fe; }
.drawer__close { position: absolute; top: 20px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .16); transition: background .2s, transform .2s; }
.drawer__close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
.drawer__hello { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; background: rgba(255, 255, 255, .14); }

.drawer__body { padding: 18px 16px 24px; display: flex; flex-direction: column; }
.drawer__label { margin: 4px 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.drawer__classes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.drawer__class { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.drawer__class::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 56px; height: 56px; border-radius: 50%; background: var(--c); opacity: .1; }
.drawer__class:active, .drawer__class:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.drawer__class-ico { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 11px; color: #fff; background: var(--c); box-shadow: 0 6px 14px -6px var(--c); }
.drawer__class b { font-family: var(--f-head); font-size: 16px; line-height: 1.2; }
.drawer__class small { font-size: 12.5px; color: var(--muted); }

.drawer__nav { display: flex; flex-direction: column; padding: 6px; margin-bottom: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; font-weight: 600; font-size: 16px; color: var(--ink); transition: background .15s, color .15s; }
.drawer__nav a + a { margin-top: 2px; }
.drawer__link-ico { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand); transition: background .15s, color .15s; }
.drawer__chev { margin-left: auto; color: #cbd5e1; transition: transform .2s, color .2s; }
.drawer__nav a:hover, .drawer__nav a.is-active, .drawer__nav a.is-current { background: var(--brand-soft); color: var(--brand); }
.drawer__nav a:hover .drawer__link-ico, .drawer__nav a.is-current .drawer__link-ico { background: var(--grad); color: #fff; }
.drawer__nav a:hover .drawer__chev, .drawer__nav a.is-current .drawer__chev { color: var(--brand); transform: translateX(3px); }

.drawer__cta { display: flex; flex-direction: column; gap: 4px; padding: 18px; margin-bottom: 14px; border-radius: 18px; background: radial-gradient(200px 120px at 100% 0%, rgba(249, 115, 22, .18), transparent 70%), #fff7ed; border: 1px solid #fed7aa; }
.drawer__cta b { font-family: var(--f-head); font-size: 18px; }
.drawer__cta span { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.drawer__cta .btn { width: 100%; }

.drawer__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer__contact a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.drawer__contact .ico { color: var(--brand); }
.drawer__contact .is-wa .ico { color: #16a34a; }


/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(700px 380px at 85% 10%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(600px 360px at 5% 30%, rgba(79, 70, 229, .12), transparent 60%),
    radial-gradient(500px 300px at 60% 100%, rgba(249, 115, 22, .10), transparent 60%),
    linear-gradient(180deg, #f6f7ff, #fff); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1, .page-hero h1 { margin: 18px 0 16px; font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.015em; line-height: 1.1; }
.hero__underline { position: relative; white-space: nowrap; }
.hero__underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; z-index: -1; border-radius: 6px; background: rgba(249, 115, 22, .3); }
.hero__lead { font-size: 18.5px; color: var(--ink-2); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__points li { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink-2); }
.hero__points .ico { color: var(--ok); }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0; align-self: start; } /* top-aligned: font swap in the copy column must not move it (CLS) */
.phone { position: relative; width: 300px; padding: 12px; border-radius: 40px; background: #0f172a; box-shadow: var(--sh-lg); animation: floaty 6s ease-in-out infinite; }
.phone__notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 22px; transform: translateX(-50%); background: #0f172a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen { border-radius: 30px; background: #f8fafc; padding: 40px 16px 20px; min-height: 500px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--brand); }
.mock-top span { display: inline-flex; align-items: center; gap: 5px; }
.mock-timer { padding: 3px 9px; border-radius: 999px; background: #fff7ed; color: var(--accent-dark); }
.mock-progress { height: 6px; margin: 14px 0; border-radius: 6px; background: var(--brand-line); overflow: hidden; }
.mock-progress i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.mock-qno { font-size: 12.5px; color: var(--muted); }
.mock-q { margin: 6px 0 14px; font-family: var(--f-head); font-size: 18px; font-weight: 700; line-height: 1.3; }
.mock-opts { display: grid; gap: 9px; }
.mock-opts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14.5px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.mock-opts b { width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }
.mock-opts .is-correct { border-color: var(--ok); background: var(--ok-soft); font-weight: 600; }
.mock-opts .is-correct b { background: var(--ok); color: #fff; }
.mock-opts .is-correct .ico { margin-left: auto; color: var(--ok); }
.mock-sol { margin-top: 14px; padding: 10px 12px; font-size: 13px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; }
.stats li { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--f-head); font-size: clamp(24px, 3vw, 32px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.stats span { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--white { background: #fff; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-title { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.section-sub { color: var(--muted); font-size: 17px; }
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* reveal on scroll (JS adds .in; without JS everything stays visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 14px; font-weight: 600; font-size: 17px; background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); transition: all .2s; }
.tab small { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--brand-soft); color: var(--brand); }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .8); }
.tab.is-active small { background: rgba(255, 255, 255, .22); color: #fff; }
.tab--sm { padding: 8px 16px; font-size: 15px; border-radius: 999px; }
.tabs--stream { margin-bottom: 24px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Subjects ---------- */
.grid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.grid-head h3 { font-size: 22px; }
.grid-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--ok); }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.subject-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.subject-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); opacity: .9; }
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.subject-card__top { display: flex; gap: 14px; align-items: center; }
.subject-card__ico { flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.subject-card h4 { font-size: 19px; }
.subject-card p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 10px; font-size: 13px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--line); color: var(--ink-2); }
.chips-more { margin-top: -6px; }
.chips-more summary { display: inline-block; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--c); padding: 2px 0; }
.chips-more summary::-webkit-details-marker { display: none; }
.chips-more[open] summary { margin-bottom: 6px; }
.subject-card__foot { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--c) 72%, #000); }

/* ---------- Demo quiz ---------- */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz__pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.quiz__card { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.quiz__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.quiz__label { color: var(--brand); }
.quiz__count { font-size: 14px; color: var(--muted); }
.quiz__bar { height: 8px; margin: 14px 0 22px; border-radius: 8px; background: var(--brand-soft); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width .35s ease; }
.quiz__q { font-family: var(--f-head); font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.quiz__opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; text-align: left; font-size: 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.opt b { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; background: var(--brand-soft); color: var(--brand); }
.opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.opt:disabled { cursor: default; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-soft); font-weight: 600; }
.opt.is-correct b { background: var(--ok); color: #fff; }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.is-wrong b { background: var(--bad); color: #fff; }
.quiz__sol { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-2); font-size: 15px; border-left: 4px solid var(--brand); }
.quiz__sol strong { color: var(--brand); }
.quiz__nav { display: flex; justify-content: flex-end; margin-top: 20px; }
.quiz__nav--center { justify-content: center; flex-wrap: wrap; gap: 10px; }
.quiz__result { text-align: center; padding: 10px 0; }
.quiz__trophy { width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #fff7ed; color: var(--accent); }
.quiz__result h3 { font-size: 28px; }
.quiz__result p { color: var(--muted); margin-top: 6px; }

/* ---------- PYQ ---------- */
.pyq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pyq-grid--single { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
.pyq-card { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.pyq-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pyq-card__badge { flex-shrink: 0; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--grad); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 24px; }
.pyq-card__badge sup { font-size: 12px; }
.pyq-card h3 { font-size: 21px; }
.pyq-card p { color: var(--muted); font-size: 14.5px; }
.pyq-years { display: grid; gap: 8px; }
.pyq-years a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); font-weight: 600; transition: all .2s; }
.pyq-years a span { display: inline-flex; align-items: center; gap: 10px; }
.pyq-years a .ico { color: var(--brand); }
.pyq-years a:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateX(4px); }
.pyq-years small { padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--ok-soft); color: var(--ok); }
.pyq-years li:first-child small { background: #fff7ed; color: var(--accent-dark); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.feature__ico { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8); }
.feature:nth-child(even) .feature__ico { background: var(--grad-accent); box-shadow: 0 8px 18px -8px rgba(249, 115, 22, .8); }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.coverage h3 a { color: inherit; }
.coverage h3 a:hover { color: var(--brand); }
.feature .coverage__count { margin-bottom: 8px; font-weight: 600; color: var(--brand); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; text-align: center; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--brand-line); }
.step__no { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--f-head); font-size: 24px; font-weight: 800; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--brand-line); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Download banner ---------- */
.download { padding: 0 0 88px; background: #fff; }
.section--soft + .download { background: var(--bg-soft); padding-top: 0; }
.download__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; border-radius: 28px; color: #fff; background: radial-gradient(500px 240px at 90% 0%, rgba(249, 115, 22, .35), transparent 60%), linear-gradient(135deg, #3730a3, #6d28d9); box-shadow: var(--sh-lg); }
.download h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 8px; }
.download p { color: #e0e7ff; max-width: 560px; }
.download__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--brand-line); box-shadow: var(--sh); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-family: var(--f-head); font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); transition: transform .25s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__item p { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--brand-line); }
.contact-card__ico { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.contact-card--wa .contact-card__ico { background: #dcfce7; color: #16a34a; }
.contact-card h3 { font-size: 18px; }
.contact-card p { font-weight: 600; color: var(--ink-2); word-break: break-word; }
.contact-card small { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 0; background: #0f172a; color: #cbd5e1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer__brand p { margin: 16px 0 18px; font-size: 15px; color: #94a3b8; max-width: 360px; }
.footer h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer ul a { color: #cbd5e1; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .ico { color: #a5b4fc; flex-shrink: 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #e2e8f0; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--brand); transform: translateY(-2px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 20px; padding: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #94a3b8; }

/* ---------- Floating ---------- */
.wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .8); transition: transform .2s, bottom .3s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__label { position: absolute; left: calc(100% + 12px); top: 50%; padding: 6px 12px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s, transform .2s; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .8); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, visibility .25s, transform .25s, bottom .3s; }
.to-top:hover { transform: translateY(-3px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.mcta { display: none; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 48px 0 56px; }
.page-hero .hero__lead { max-width: 760px; }
.crumbs { margin-bottom: 16px; font-size: 14.5px; color: var(--muted); }
.crumbs a { color: var(--brand); font-weight: 500; }
.crumbs span { margin: 0 4px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.prose p { color: var(--ink-2); margin-bottom: 16px; font-size: 17px; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ol { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); font-size: 17px; }

/* ---------- Inner page hero ---------- */
.page-hero__inner { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.page-hero__art { position: relative; height: 260px; display: grid; place-items: center; }
.page-hero__tile { width: 168px; height: 168px; display: grid; place-items: center; border-radius: 40px; color: #fff; background: var(--grad); box-shadow: var(--sh-lg); animation: floaty 6s ease-in-out infinite; }
.page-hero__dot { position: absolute; border-radius: 50%; }
.page-hero__dot--1 { width: 64px; height: 64px; top: 10px; right: 20px; background: var(--grad-accent); opacity: .9; animation: floaty 5s ease-in-out infinite -2s; }
.page-hero__dot--2 { width: 26px; height: 26px; bottom: 30px; left: 30px; background: #a5b4fc; }
.page-hero__dot--3 { width: 90px; height: 90px; bottom: 0; right: 10px; border: 3px dashed var(--brand-line); }

/* ---------- Test types ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.type-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.type-card:nth-child(even) .feature__ico { background: var(--grad-accent); }
.type-card h3 { font-size: 19px; margin-bottom: 6px; }
.type-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.type-card__meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); }
.type-card__tag { position: absolute; top: 16px; right: 16px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff7ed; color: var(--accent-dark); }

/* ---------- Split block ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__title { margin-top: 14px; }
.split__text { color: var(--ink-2); font-size: 17px; margin-bottom: 18px; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink-2); }
.checklist .ico { color: var(--ok); margin-top: 3px; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }

.score-card { padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); display: grid; gap: 24px; justify-items: center; }
.score-card__ring { width: 160px; height: 160px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(#4f46e5 0 92%, var(--brand-soft) 92% 100%); }
.score-card__ring span { font-family: var(--f-head); font-size: 38px; font-weight: 800; line-height: 1; color: var(--brand); }
.score-card__ring small { color: var(--muted); }
.score-card__rows { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.score-card__rows li { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); display: flex; flex-direction: column; }
.score-card__rows span { font-size: 13px; color: var(--muted); }
.score-card__rows b { font-family: var(--f-head); font-size: 20px; }

/* ---------- PYQ page ---------- */
.pyq-table { display: grid; gap: 12px; }
.pyq-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); transition: box-shadow .2s; }
.pyq-row:hover { box-shadow: var(--sh); }
.pyq-row__sub { display: flex; align-items: center; gap: 14px; min-width: 220px; }
.pyq-row__sub .subject-card__ico { width: 44px; height: 44px; border-radius: 12px; }
.pyq-row h4 { font-size: 18px; }
.pyq-row p { font-size: 13.5px; color: var(--muted); }
.pyq-row__years { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.year-chip { padding: 7px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; background: var(--bg-soft); border: 1.5px solid var(--brand-line); color: var(--brand); transition: all .15s; }
.year-chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.year-chip--new { background: #fff7ed; border-color: #fed7aa; color: var(--accent-dark); }
.year-chip--new:hover { background: var(--accent); border-color: var(--accent); }

.year-stack { display: grid; gap: 12px; }
.year-stack__item { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); margin-left: calc(var(--i) * 18px); font-weight: 600; }
.year-stack__item span { display: inline-flex; align-items: center; gap: 10px; }
.year-stack__item .ico { color: var(--brand); }
.year-stack__item b { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.year-stack__item:first-child b { background: #fff7ed; color: var(--accent-dark); }

/* ---------- Features page ---------- */
.stats--flat { margin-top: 0; }
.report-card { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); display: grid; gap: 14px; }
.report-card__head { display: flex; justify-content: space-between; align-items: center; }
.report-card__head b { font-family: var(--f-head); font-size: 20px; }
.report-card__head span { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; font-size: 14.5px; }
.bar-row__track { height: 10px; border-radius: 10px; background: #f1f5f9; overflow: hidden; }
.bar-row__track i { display: block; height: 100%; border-radius: 10px; }
.bar-row b { text-align: right; }
.report-card__tip { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: var(--ink-2); font-size: 14.5px; }
.report-card__tip .ico { color: var(--accent); }

.compare { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--sh-sm); }
.compare__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.compare__row > span:not(:first-child) { display: flex; justify-content: center; text-align: center; }
.compare__row--head { border-top: 0; background: var(--grad); color: #fff; font-weight: 600; }
.compare .yes { color: var(--ok); }
.compare .no { color: #cbd5e1; }

/* ---------- Stream links ---------- */
.stream-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stream-link { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.stream-link .feature__ico { margin: 0; flex-shrink: 0; }
.stream-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.stream-link b { font-family: var(--f-head); font-size: 19px; }
.stream-link small { color: var(--muted); font-size: 14px; }
.stream-link > .ico { color: var(--brand); transition: transform .2s; }
.stream-link:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--brand-line); }
.stream-link:hover > .ico { transform: translateX(4px); }

/* ---------- FAQ page ---------- */
.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--hh) + 20px); display: grid; gap: 16px; }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s; }
.faq-search:focus-within { border-color: var(--brand); }
.faq-search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.faq-cats { display: grid; gap: 6px; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.faq-cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-align: left; color: var(--ink-2); transition: background .15s, color .15s; }
.faq-cat small { margin-left: auto; padding: 1px 9px; border-radius: 999px; font-size: 12px; background: var(--bg-soft); color: var(--muted); }
.faq-cat:hover { background: var(--brand-soft); color: var(--brand); }
.faq-cat.is-active { background: var(--grad); color: #fff; }
.faq-cat.is-active small { background: rgba(255, 255, 255, .22); color: #fff; }
.faq-main { display: grid; gap: 32px; }
.faq-group__title { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 14px; }
.faq-group__title .ico { color: var(--brand); }
.faq-empty { padding: 24px; text-align: center; border-radius: var(--r); background: #fff; border: 1px dashed var(--line); color: var(--muted); }
.faq-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 26px 28px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, #3730a3, #6d28d9); }
.faq-help h3 { color: #fff; font-size: 22px; }
.faq-help p { color: #e0e7ff; }
.faq-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Legal pages ---------- */
.legal__layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--hh) + 20px); padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.legal__toc p { font-weight: 700; font-family: var(--f-head); font-size: 17px; margin-bottom: 10px; }
.legal__toc ol { display: grid; gap: 4px; }
.legal__toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.legal__toc a:hover { background: var(--brand-soft); color: var(--brand); }
.legal__toc .legal__switch { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 10px 0; border-top: 1px solid var(--line); border-radius: 0; font-weight: 600; color: var(--brand); }
.legal__body { padding: 36px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 28px; }
.legal__body h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 8px; }
.legal__body h2 span { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; font-size: 16px; background: var(--brand-soft); color: var(--brand); }
.legal__body p { color: var(--ink-2); font-size: 16.5px; }
.legal__body a { color: var(--brand); font-weight: 600; }
.legal__contact { padding: 20px; border-radius: var(--r); background: var(--bg-soft); }
.legal__contact h2 .ico { color: var(--brand); }


/* ---------- Header: download app button ---------- */
.nav a { white-space: nowrap; }
.app-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #0f172a, #312e81 60%, #4c1d95); box-shadow: 0 10px 22px -10px rgba(49, 46, 129, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); white-space: nowrap; transition: transform .2s, box-shadow .2s; isolation: isolate; }
.app-btn::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, #22c55e, #6366f1, #f97316); opacity: .55; filter: blur(8px); }
.app-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(49, 46, 129, 1); }
.app-btn__ico { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 10px -3px rgba(34, 197, 94, .8); }
.app-btn__text { display: flex; flex-direction: column; line-height: 1.1; }
.app-btn__text small { font-size: 11px; font-weight: 500; letter-spacing: .03em; color: #a5b4fc; }
.app-btn__text b { font-family: var(--f-head); font-size: 16px; font-weight: 700; }
.app-btn__dl { color: #4ade80; transition: transform .2s; }
.app-btn:hover .app-btn__dl { animation: dl-bounce .7s ease infinite; }
@media (max-width: 1280px) { .nav { gap: 0; } .nav a { padding: 8px 9px; font-size: 15px; } .header__inner { gap: 16px; } }
@keyframes dl-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- Download app ---------- */
.btn-app { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-app:hover { background: #1e293b; }
.btn-app .ico { color: #4ade80; }
.drawer__app { width: 100%; margin-top: 8px; }

.hero__stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 22px; }
.hero__stores-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.hero__stores .store-btn { padding: 7px 14px; }
.hero__stores .store-btn strong { font-size: 15px; }

.app-section { overflow: hidden; }
.app-promo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.app-promo__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.app-promo__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.app-promo__points li > span { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.app-promo__stores { display: flex; flex-wrap: wrap; gap: 12px; }
.app-promo__apk { margin-top: 14px; }
.app-promo__soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; background: #fff7ed; color: var(--accent-dark); }

.app-promo__visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.app-promo__glow { position: absolute; width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .28), rgba(249, 115, 22, .12) 50%, transparent 70%); }
.phone--app .phone__screen { min-height: 470px; }
.app-ui__hello { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-ui__hello small { display: block; font-size: 12.5px; color: var(--muted); }
.app-ui__hello b { font-family: var(--f-head); font-size: 18px; }
.app-ui__avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: var(--grad-accent); }
.app-ui__card { padding: 14px; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8); }
.app-ui__card small { font-size: 12px; opacity: .85; }
.app-ui__card b { display: block; font-family: var(--f-head); font-size: 19px; }
.app-ui__card .mock-progress { margin: 10px 0 6px; background: rgba(255, 255, 255, .25); }
.app-ui__card .mock-progress i { background: #fdba74; }
.app-ui__card span { font-size: 12px; opacity: .9; }
.app-ui__label { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.app-ui__subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-ui__subjects li { padding: 11px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.app-ui__subjects li > span { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 9px; color: #fff; background: var(--c); }
.app-ui__subjects b { display: block; font-size: 13.5px; }
.app-ui__subjects em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c); }

/* ---------- Top announcement bar ---------- */
.topbar { background: linear-gradient(90deg, #312e81, #6d28d9, #312e81); color: #e0e7ff; font-size: 14px; }
.topbar { position: relative; overflow: hidden; }
.topbar__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); } /* edge fade without overlays covering the links */
.topbar__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.topbar:hover .topbar__track, .topbar:focus-within .topbar__track { animation-play-state: paused; }
.topbar__list { display: flex; }
.topbar__list li { display: flex; align-items: center; }
.topbar__list li::after { content: "\2726"; margin: 0 22px; font-size: 11px; color: #fdba74; opacity: .8; }
.topbar__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; white-space: nowrap; color: #e0e7ff; font-weight: 500; transition: color .2s; }
.topbar__list a:hover { color: #fff; }
.topbar__list b { margin-left: 2px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #1e1b4b; background: #fdba74; transition: background .2s; }
.topbar__list a:hover b { background: #fff; }
.topbar__ico { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fdba74; }

/* ---------- Desktop dropdown ---------- */
.nav__drop { position: relative; }
.nav__drop > a { display: inline-flex; align-items: center; gap: 4px; }
.nav__caret { transform: rotate(90deg); transition: transform .2s; }
.nav__drop:hover .nav__caret, .nav__drop:focus-within .nav__caret { transform: rotate(-90deg); }
.nav__menu { position: absolute; top: calc(100% + 10px); left: 50%; width: 260px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 5; }
.nav__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.nav__menu a:hover { background: var(--brand-soft); }
.nav__menu b { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.nav__menu small { font-size: 12.5px; color: var(--muted); }
.nav__menu-ico { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--grad); color: #fff; }

/* ---------- Hero extras ---------- */
.hero__hindi { margin: -4px 0 12px; font-size: 18px; font-weight: 600; color: var(--brand); }
.hero__bg::after { content: ""; position: absolute; width: 420px; height: 420px; top: -120px; right: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 65%); }
.btn-accent, .btn-primary { position: relative; overflow: hidden; }
.btn-accent::after, .btn-primary::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-accent:hover::after, .btn-primary:hover::after { left: 130%; }

.districts { margin-top: 40px; text-align: center; overflow: hidden; }
.districts p { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.districts__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.districts:hover .districts__track { animation-play-state: paused; }
.districts ul { display: flex; gap: 10px; padding-right: 10px; }
.districts li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.districts li .ico { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--line); transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.plan--popular { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--sh); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #fff; background: var(--grad-accent); box-shadow: 0 6px 14px -6px rgba(249, 115, 22, .8); }
.plan h3 { font-size: 22px; }
.plan__tag { color: var(--muted); font-size: 15px; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.plan__price b { font-family: var(--f-head); font-size: 46px; font-weight: 800; line-height: 1; color: var(--ink); }
.plan__price s { color: var(--muted); font-size: 18px; }
.plan__price em { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.plan__price .plan__free { background: var(--brand-soft); color: var(--brand); }
.plan__validity { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.plan__validity .ico { color: var(--brand); }
.plan__list { display: grid; gap: 10px; margin-bottom: 26px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.plan__list .ico { color: var(--ok); margin-top: 2px; }
.plan__list .is-missing { color: var(--muted); text-decoration: line-through; }
.plan__list .is-missing .ico { color: #cbd5e1; }
.plan__btn { margin-top: auto; width: 100%; }
.plan--mini { padding: 26px 22px; }
.plan--mini .plan__price { margin-bottom: 14px; }
.plan__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }

.pay-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--brand-line); }
.pay-strip__lock { width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; background: var(--ok); color: #fff; }
.pay-strip > div { flex: 1; min-width: 220px; }
.pay-strip b { font-family: var(--f-head); font-size: 18px; }
.pay-strip p { font-size: 14.5px; color: var(--ink-2); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods li { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.policy-note { margin-top: 28px; text-align: center; font-size: 14.5px; color: var(--muted); }
.policy-note a { color: var(--brand); font-weight: 600; }

/* ---------- About ---------- */
.mission-card { display: grid; gap: 16px; }
.mission-card__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.mission-card__item .feature__ico { margin: 0; flex-shrink: 0; }
.mission-card__item b { font-family: var(--f-head); font-size: 19px; }
.mission-card__item p { color: var(--muted); }
.info-table { margin: 0; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--sh-sm); }
.info-table div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.info-table div:first-child { border-top: 0; }
.info-table div:nth-child(odd) { background: #fafbff; }
.info-table dt { font-weight: 600; color: var(--muted); }
.info-table dd { margin: 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.info-table a { color: var(--brand); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
a.contact-row:hover { transform: translateX(4px); box-shadow: var(--sh); }
.contact-row .contact-card__ico { margin: 0; flex-shrink: 0; }
.contact-row--wa .contact-card__ico { background: #dcfce7; color: #16a34a; }
.contact-row small { display: block; font-size: 13px; color: var(--muted); }
.contact-row b { display: block; font-size: 17px; word-break: break-word; }
.contact-row span:not(.contact-card__ico) { font-size: 14px; color: var(--ink-2); }
.contact-form { padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.contact-form h2 { font-size: 26px; }
.contact-form > p { color: var(--muted); margin: 4px 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form-grid__full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #f8fafc; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: border-color .2s, background .2s; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--brand); background: #fff; }
.form-alert { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-alert .ico { flex-shrink: 0; margin-top: 2px; }
.form-alert a { font-weight: 700; text-decoration: underline; color: inherit; }
.form-alert--ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bbf7d0; }
.form-alert--bad { background: var(--bad-soft); color: var(--bad); }
.form-field-error { font-size: 13px; font-weight: 500; color: var(--bad); }
.form-grid [aria-invalid="true"] { border-color: var(--bad); background: #fff; }
.form-captcha__row { display: flex; align-items: center; gap: 12px; }
.form-captcha__q { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 1.5px solid var(--brand-line); }
.form-captcha__row input { max-width: 160px; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; }

/* ---------- Legal extras ---------- */
.legal__toc-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal__others { display: grid; gap: 2px; }
.legal__others a { display: flex !important; align-items: center; gap: 8px; font-weight: 600; color: var(--brand) !important; }
.legal__list { display: grid; gap: 10px; }
.legal__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.legal__list .ico { color: var(--ok); margin-top: 3px; }
.legal__contact-list { display: grid; gap: 8px; margin-top: 10px; }
.legal__contact-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.legal__contact-list .ico { color: var(--brand); }

/* ---------- Footer extras ---------- */
.footer__brand .socials { margin-bottom: 18px; }
.footer__brand .footer__contact { display: grid; gap: 8px; font-size: 14.5px; }
.footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

/* ---------- 404 ---------- */
.error-page { position: relative; overflow: hidden; padding: 72px 0 96px; text-align: center; }
.error-page__inner { display: flex; flex-direction: column; align-items: center; }
.error-page__code { font-family: var(--f-head); font-size: clamp(96px, 18vw, 170px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: floaty 5s ease-in-out infinite; }
.error-page h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 42px); }
.error-page .hero__actions { justify-content: center; }
.error-page__links { width: 100%; margin-top: 18px; text-align: left; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav { display: none; }
    .burger { display: flex; }
    .header__inner { justify-content: space-between; }
    .feature-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .subject-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .stream-links { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .plan-grid--mini { grid-template-columns: repeat(3, 1fr); max-width: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .faq-layout, .legal__layout { grid-template-columns: 1fr; }
    .faq-side, .legal__toc { position: static; }
    .faq-cats { display: flex; flex-wrap: wrap; }
    .faq-cat small { margin-left: 4px; }
}
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__lead { margin: 0 auto; }
    .hero__actions, .hero__points { justify-content: center; }
    .download__inner { flex-direction: column; text-align: center; padding: 36px 24px; }
    .download__actions { justify-content: center; }
    .pyq-grid { grid-template-columns: 1fr; }
    .page-hero__inner, .split, .app-promo { grid-template-columns: 1fr; gap: 36px; }
    .hero__stores { justify-content: center; }
    .page-hero__art { display: none; }
    .split--reverse > :first-child { order: 0; }
    .pyq-row { flex-direction: column; align-items: flex-start; }
    .pyq-row__years { justify-content: flex-start; }
}
@media (max-width: 640px) {
    :root { --hh: 64px; }
    .section { padding: 64px 0; }
    .download { padding-bottom: 64px; }
    .download__inner { padding: 32px 20px; border-radius: 22px; gap: 22px; }
    .download h2 { font-size: 24px; line-height: 1.3; }
    .download p { font-size: 15.5px; }
    .download__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
    .download__actions > * { justify-content: center; }
    .container { padding: 0 16px; }
    .header__cta .btn { display: none; }
    .header { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; } /* blur is costly on phones */
    .logo__text b { font-size: 19px; }
    .hero { padding: 40px 0 44px; }
    .hero__lead { font-size: 17px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .phone { width: 260px; }
    .phone__screen { min-height: 440px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats li:nth-child(2) { border-right: 0; }
    .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .subject-grid, .feature-grid, .contact-grid, .steps { grid-template-columns: 1fr; }
    .tab { padding: 10px 18px; font-size: 16px; }
    .quiz__card { padding: 20px 16px; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .legal__body { padding: 22px 18px; }
    .type-grid { grid-template-columns: 1fr; }
    .plan-grid--mini { grid-template-columns: 1fr; }
    .app-promo__points { grid-template-columns: 1fr; }
    .app-btn { padding: 4px; }
    .app-btn__text, .app-btn__dl { display: none; }
    .hero__stores-label { width: 100%; justify-content: center; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 22px 16px; }
    .info-table div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
    .topbar { font-size: 13px; }
    .hero__hindi { font-size: 16px; }
    .pay-strip { padding: 20px 16px; }
    .bar-row { grid-template-columns: 96px 1fr 40px; font-size: 13.5px; }
    .compare__row { padding: 12px 14px; font-size: 14.5px; }
    .year-stack__item { margin-left: calc(var(--i) * 8px); }
    .faq-help { padding: 22px 18px; }

    /* mobile sticky CTA */
    .mcta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 41; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; color: var(--ink); background: rgba(255, 255, 255, .97); border: 1px solid var(--brand-line); box-shadow: 0 18px 40px -14px rgba(30, 27, 75, .38), 0 2px 6px rgba(15, 23, 42, .06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(calc(100% + 40px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
    .mcta.is-visible { transform: none; }
    .mcta__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; }
    .mcta__ico { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -8px rgba(79, 70, 229, .9); }
    .mcta__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
    .mcta__text b { font-family: var(--f-head); font-size: 15.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mcta__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
    .mcta__tag { flex-shrink: 0; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700; color: #c2410c; background: #fff7ed; border: 1px solid #fed7aa; }
    .mcta__tag.is-free { color: var(--ok); background: var(--ok-soft); border-color: #bbf7d0; }
    .mcta__btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 11px 14px; border-radius: 13px; font-weight: 700; font-size: 14px; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -8px rgba(79, 70, 229, .9); }
    .mcta__btn:active { transform: scale(.97); }
    .mcta__close { position: absolute; top: -9px; right: -6px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; box-shadow: var(--sh-sm); cursor: pointer; }
    .has-mcta .wa-float, .has-mcta .to-top { bottom: calc(98px + env(safe-area-inset-bottom)); }
    /* keep the copyright line clear of the floating WhatsApp / to-top buttons */
    .footer__bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
    .wa-float { width: 50px; height: 50px; left: 14px; bottom: 14px; }
    .wa-float::before { animation-duration: 3.2s; }
    .wa-float__label { display: none; }
}
@media (max-width: 370px) {
    .mcta { gap: 8px; padding: 8px; }
    .mcta__main { gap: 10px; }
    .mcta__ico { width: 40px; height: 40px; border-radius: 12px; }
    .mcta__text b { font-size: 14.5px; }
    .mcta__btn { padding: 10px 11px; font-size: 13px; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--brand-line); }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.post-card__cat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; color: var(--brand); background: var(--brand-soft); }
.post-card__title { font-size: 20px; line-height: 1.35; }
.post-card__title a { color: var(--ink); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.post-card p { color: var(--muted); font-size: 15px; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--brand); }

.page-hero--post h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article > * + * { margin-top: 16px; }
.article h2 { margin-top: 40px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; color: var(--ink); scroll-margin-top: calc(var(--hh) + 16px); }
.article h3 { margin-top: 28px; font-size: 19px; color: var(--ink); }
.article h3 small { font-family: var(--f-body); font-size: 14.5px; font-weight: 500; color: var(--muted); }
.article ul, .article ol { display: grid; gap: 8px; padding-left: 22px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li::marker { color: var(--brand); font-weight: 600; }
.article a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article b { color: var(--ink); }
.chapter-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.article th, .article td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.article thead th { border-top: 0; background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.article-note { padding: 16px 18px; border-radius: var(--r); background: var(--bg-soft); border-left: 4px solid var(--brand); font-size: 15.5px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 48px; padding: 24px 28px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, #3730a3, #6d28d9); }
.article-cta b { font-family: var(--f-head); font-size: 20px; }
.article-cta p { color: #e0e7ff; font-size: 15px; }

@media (max-width: 900px) {
    .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
    .article { font-size: 16.5px; }
    .chapter-list { grid-template-columns: 1fr; }
    .article-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; }
}
