/* ==========================================================================
   JEEnius AI — "Calm focus" shared design layer
   Tokens + base + components. Linked from all marketing pages.
   ========================================================================== */

:root {
  --canvas: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #FBFAF5;
  --ink: #0F201D;
  --ink-soft: #4A5A55;
  --ink-faint: #7E8C87;
  --green: #1B3B36;
  --green-hover: #244A44;
  --green-deep: #0F201D;
  --gold: #FFD700;
  --gold-ink: #8A6A00;
  --gold-soft: #FBEFC2;
  --sage: #DCEFD8;
  --mint: #EAF3EF;
  --line: #E8E3D8;
  --line-strong: #D9D3C5;
  --shadow-sm: 0 2px 10px -4px rgba(15, 32, 29, .14);
  --shadow: 0 18px 44px -22px rgba(15, 32, 29, .22);
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

.dark {
  --canvas: #0E1E1B;
  --surface: #16302B;
  --surface-2: #12241F;
  --ink: #EAF3EF;
  --ink-soft: #A2B7B0;
  --ink-faint: #7C938C;
  --green: #2E5A52;
  --green-hover: #387066;
  --green-deep: #0A1714;
  --gold: #FFD700;
  --gold-ink: #FFE373;
  --gold-soft: rgba(255, 215, 0, .12);
  --sage: #1F3E38;
  --mint: #16302B;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .17);
  --shadow-sm: 0 2px 12px -4px rgba(0, 0, 0, .5);
  --shadow: 0 22px 54px -24px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) — clip prevents horizontal overflow WITHOUT
   creating a scroll container, so position:sticky (the spotlight stack) works */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

::selection { background: var(--gold); color: #0F201D; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }

.font-display {
  font-family: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -.025em;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold);
}

.section-title {
  font-size: clamp(28px, 4.4vw, 46px); font-weight: 500;
}
.lead { color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--green); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- cards & surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--sage); color: var(--green);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 60;
  height: 70px; display: flex; align-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-link { color: var(--ink-soft); font-weight: 600; font-size: 15px; transition: color .2s var(--ease); }
.nav-link:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 55;
  background: var(--canvas); border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- hero ambient glow ---------- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0; opacity: .5;
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento .tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.bento .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile-icon {
  width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage); color: var(--green); margin-bottom: 16px;
}
.tile-icon svg { width: 23px; height: 23px; }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
@media (max-width: 860px) { .bento .tile { grid-column: 1 / -1 !important; } }

/* ---------- solution steps ---------- */
.step { border-top: 1px solid var(--line); }
.step summary {
  list-style: none; cursor: pointer; padding: 16px 0; display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--ink);
}
.step summary::-webkit-details-marker { display: none; }
.step .num {
  width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--mint); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.step .chevron { margin-left: auto; transition: transform .25s var(--ease); color: var(--ink-faint); }
.step[open] .chevron { transform: rotate(180deg); }
.step .body { padding: 0 0 18px 38px; color: var(--ink-soft); font-size: 15px; }

/* ---------- mock UI (NTA-replica) ---------- */
.mock {
  background: var(--green-deep); border-radius: var(--radius-lg); padding: 18px; color: #EAF3EF;
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
}
.mock .palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.mock .q { width: 100%; aspect-ratio: 1; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.q-ans { background: #2E7D5B; color: #fff; }
.q-mark { background: #7A5AF0; color: #fff; }
.q-not { background: rgba(255,255,255,.09); color: #9FB5AE; }
.q-cur { background: var(--gold); color: #0F201D; }

/* ---------- pricing ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card.featured { background: var(--green); color: #fff; border-color: var(--green); transform: scale(1.02); box-shadow: var(--shadow); }
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured .feat { color: rgba(255,255,255,.85); }
.price-card .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price-card .feat { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 14.5px; padding: 7px 0; }
.price-card .feat svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.price-card.featured .feat svg { color: var(--gold); }
.toggle-wrap { display: inline-flex; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; gap: 4px; }
.toggle-wrap button { border: none; background: transparent; color: var(--ink-soft); font-weight: 700; font-size: 14px; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all .25s var(--ease); }
.toggle-wrap button.active { background: var(--green); color: #fff; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 0; display: flex; gap: 16px; align-items: center; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-q svg { margin-left: auto; flex: none; width: 20px; height: 20px; color: var(--ink-faint); transition: transform .25s var(--ease); }
.faq-item.active .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; max-width: 75ch; }
.faq-item.active .faq-a { display: block; }

/* ---------- footer ---------- */
.footer { background: var(--green-deep); color: #C9D8D2; padding: 72px 0 36px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 430px) { .footer-cols { grid-template-columns: 1fr; gap: 24px; } }
.footer a { color: #C9D8D2; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }

/* ---------- floating CTA (mobile) ---------- */
.floating-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: none; align-items: center; justify-content: center; gap: 9px;
  background: var(--green); color: #fff; font-weight: 700; padding: 16px; border-radius: 16px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.floating-cta.show { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .floating-cta { display: flex; } }

/* ---------- live dot + stat boxes (2027 section) ---------- */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; display: inline-block; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.stat-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat-box .num { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 600; color: var(--green); line-height: 1; }
.stat-box .lbl { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }

/* ---------- interactive prediction reveal ---------- */
.pred-q { filter: blur(7px); transition: filter .45s var(--ease); user-select: none; }
.pred-q.revealed { filter: none; user-select: auto; }
.pred-overlay {
  position: absolute; inset: -6px; display: flex; align-items: center; justify-content: center; gap: 9px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px dashed var(--line-strong); border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: 14.5px; color: var(--green); transition: background .25s var(--ease);
}
.pred-overlay:hover { background: color-mix(in srgb, var(--surface) 38%, transparent); }
.pred-overlay svg { width: 18px; height: 18px; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.05; margin: 0 1px; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 4px 1px; }
.frac > span:last-child { padding: 1px 4px 0; }
.pred-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; font-size: 14px; color: var(--ink); }
.pred-opt.correct { border-color: var(--green); background: var(--mint); }
.opt-letter { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--surface-2); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.pred-opt.correct .opt-letter { background: var(--green); color: #fff; }
.opt-body { flex: 1; }
.opt-check { width: 18px; height: 18px; flex: none; color: var(--green); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .bento .tile:hover, .price-card { transform: none !important; }
}

/* ---------- product-accent tokens (brand site) ---------- */
:root {
  --jee: #1B3B36; --jee-gold: #FFD700;
  --neet: #006A65; --neet-bright: #14A89D; --neet-coral: #E63946;
}
.dark { --jee: #2E5A52; --neet-coral: #FF6470; }

.accent-jee  { --accent: var(--jee);  --accent-ink: var(--green); --accent-soft: var(--sage); }
.accent-neet { --accent: var(--neet); --accent-ink: #045049;      --accent-soft: #D3ECE9; }
.dark .accent-jee  { --accent-ink: #A7DCC6; --accent-soft: #1E3A34; }
.dark .accent-neet { --accent-ink: #7FE6DC; --accent-soft: #143733; }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .pick { grid-template-columns: 1fr; } }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card > .btn { margin-top: auto; }
.product-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  align-self: flex-start;
}
.spotlight { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.dark .spotlight { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.spotlight .stat-box .num { color: var(--accent); }
.dark .spotlight .stat-box .num { color: var(--accent-ink); }
.dark .tile-icon { color: #7FD8BE; }

/* ==========================================================================
   Living calm — motion layer (aurora / tilt / choreography / magnetic / spotlight)
   Ported from jee-jeenius/landing/assets/app.css; driven by assets/motion.js
   ========================================================================== */

/* ---------- WebGL knowledge field (hero) ---------- */
.field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease); }
/* readability veil behind the hero copy — darkens/lightens the centre so the
   text stays legible while the field still shows at the edges */
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(135% 78% at 50% 32%, color-mix(in srgb, var(--canvas) 78%, transparent), transparent 56%);
}
.dark .hero-scrim {
  background: radial-gradient(135% 82% at 50% 32%, color-mix(in srgb, var(--canvas) 86%, transparent), color-mix(in srgb, var(--canvas) 30%, transparent) 45%, transparent 70%);
}
.field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* once the WebGL field is live: fade it in, retire the CSS aurora (the fallback) */
html.webgl .field { opacity: 1; }
html.webgl .aurora { opacity: 0; transition: opacity .8s var(--ease); }

/* ---------- living aurora (hero) ---------- */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora__group { position: absolute; inset: -12%; will-change: transform; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(82px); will-change: transform; }
.aurora__blob--1 { width: 520px; height: 520px; top: -120px; right: -60px; background: var(--sage); opacity: .5; animation: auroraDrift1 26s var(--ease) infinite alternate; }
.aurora__blob--2 { width: 360px; height: 360px; bottom: -120px; left: -70px; background: var(--gold-soft); opacity: .38; animation: auroraDrift2 31s var(--ease) infinite alternate; }
.aurora__blob--3 { width: 320px; height: 320px; top: 34%; left: 44%; background: var(--mint); opacity: .42; animation: auroraDrift3 22s var(--ease) infinite alternate; }
@keyframes auroraDrift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-34px,26px,0) scale(1.08); } }
@keyframes auroraDrift2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(30px,-22px,0) scale(1); } }
@keyframes auroraDrift3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(22px,20px,0) scale(1.12); } }
.dark .aurora__blob--1 { opacity: .30; }
.dark .aurora__blob--2 { opacity: .20; }
.dark .aurora__blob--3 { opacity: .24; }

/* ---------- 3D tilt & depth ---------- */
[data-tilt] { position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); }
[data-tilt].tilting { transition: transform .1s linear; will-change: transform; }
[data-tilt-layer] { transform: translateZ(var(--tz, 24px)); }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  transform: translateZ(60px); opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(240px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.22), rgba(255,215,0,.09) 42%, transparent 62%);
}
[data-tilt].tilting .tilt-glare { opacity: 1; }
/* inside a tilt wrapper the wrapper owns the motion — keep the card's depth on hover */
[data-tilt] .product-card:hover, [data-tilt] .tile:hover { transform: translateZ(var(--tz, 14px)); box-shadow: var(--shadow); }

/* ---------- scroll choreography ---------- */
[data-stagger] > * { opacity: 0; transform: translateY(16px) scale(.995); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms); }
[data-stagger].stagger-in > * { opacity: 1; transform: none; filter: none; }

.hl-sweep { color: var(--green);
  background-image: linear-gradient(transparent 72%, rgba(255,215,0,.5) 72%);
  background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 1px;
  transition: background-size .9s var(--ease) .3s; }
.reveal.is-visible .hl-sweep, .hl-sweep.is-visible { background-size: 100% 100%; }
.dark .hl-sweep { color: #7FD8BE; }

.write-on { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease) .5s; }
.reveal.is-visible .write-on, .write-on.is-visible { clip-path: inset(0 0 0 0); }

/* ---------- magnetic CTA + cursor spotlight ---------- */
[data-magnetic] { will-change: transform; }
[data-spotlight] { position: relative; }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, -200px) var(--my, -200px), rgba(255,215,0,.09), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
[data-spotlight].spot-on::before { opacity: 1; }
.footer .wrap { position: relative; z-index: 1; }

/* ---------- micro-interactions ---------- */
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.webapp-link { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.webapp-link:hover { border-bottom-color: currentColor; }

/* mini worked solution (engine bento featured tile) */
.mini-sol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 16px; }
.mini-sol .ans { display: flex; align-items: center; gap: 10px; background: var(--mint); border-radius: 10px; padding: 9px 12px; margin-bottom: 4px; }
.mini-sol .ans .tick { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--green); color: #fff; display: grid; place-items: center; }
.mini-sol .ans .tick svg { width: 14px; height: 14px; }
.mini-sol .ans .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: var(--green); }
.mini-sol .ans .val { font-weight: 700; font-size: 14px; color: var(--ink); }
.dark .mini-sol .ans .lbl { color: #7FD8BE; }
.mini-sol .step .body { font-size: 13.5px; padding-bottom: 12px; }
.mini-sol .step summary { padding: 11px 0; font-size: 14px; }

/* mini mock palette (engine bento tile) */
.mini-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 16px; max-width: 340px; }
.mini-palette .q { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.mini-palette .q-not { background: var(--mint); color: var(--ink-faint); border: 1px solid var(--line); }
.dark .mini-palette .q-not { background: rgba(255,255,255,.07); color: #9FB5AE; border-color: transparent; }

/* ---------- reduced-motion: neutralize all motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora__blob { animation: none !important; }
  [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hl-sweep { background-size: 100% 100% !important; transition: none !important; }
  .write-on { clip-path: none !important; transition: none !important; }
  [data-tilt], [data-tilt-layer], [data-magnetic] { transform: none !important; }
  .tilt-glare, [data-spotlight]::before { display: none !important; }
}

/* ==========================================================================
   GSAP layer (assets/anim.js). When html.gsap is set, the legacy CSS
   reveal/stagger transitions hand over to GSAP-driven choreography.
   ========================================================================== */
html.gsap .reveal, html.gsap [data-stagger] > * { opacity: 1; transform: none; filter: none; transition: none; }
html.gsap [data-tilt] { transition: none; }
html.gsap .hl-sweep { background-size: 0% 100%; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html.gsap .hl-sweep { background-size: 100% 100% !important; }
}

/* ---------- syllabus marquee ---------- */
.marquee { overflow: hidden; padding: 20px 0; background: var(--green-deep); border-block: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.mq { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; font-size: 19px; color: #C9D8D2; white-space: nowrap; }
.mq-d { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .75; flex: none; }
@media (prefers-reduced-motion: reduce) { .marquee__track { transform: none !important; } }

/* ---------- product spotlight stack (CSS sticky on desktop) ----------
   Pure position:sticky stack — reliable, no ScrollTrigger pin. Each section
   sticks to the top and the next slides over it. Explicit z-index guarantees
   the incoming section always covers the previous one (no transparent bleed),
   and both sections are fully opaque. */
@media (min-width: 900px) {
  .stack > .section {
    position: sticky; top: 0; min-height: 100svh;
    display: flex; align-items: center;
    /* .spotlight already sets an opaque tinted background; make it explicit */
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  }
  .dark .stack > .section { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
  .stack > #jee { z-index: 1; }
  .stack > #neet {
    z-index: 2;
    border-radius: 34px 34px 0 0;
    box-shadow: 0 -30px 70px -30px rgba(10, 23, 20, .5);
  }
  /* extra scroll after NEET reaches the top, so it dwells fully covering JEE
     (JEE gone) before the stack releases to the next section */
  .stack-dwell { height: 60svh; }
}
@media (max-width: 899px) { .stack-dwell { height: 0; } }

/* ---------- immersive WebGL sections (scroll-scrubbed 3D: DNA + lattice) ---------- */
.imx-section { position: relative; }
.imx-sticky {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.dark .imx-sticky { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
@media (min-width: 900px) { .imx-section { height: 260svh; } }
.imx-stage { position: absolute; inset: 0; z-index: 0; }
/* on larger screens the 3D object sits on the RIGHT, clear of the left copy
   (this override must come AFTER the inset:0 base rule to win) */
@media (min-width: 900px) { .imx-stage { left: auto; width: 58%; } }
.dna-canvas, .lattice-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
html.dna-live .dna-canvas, html.lattice-live .lattice-canvas { opacity: 1; }
/* static fallback until (or unless) WebGL runs */
.imx-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 72% 42%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(40% 50% at 60% 70%, rgba(255,215,0,.14), transparent 70%);
  opacity: .8;
}
html.dna-live [data-dna-section] .imx-fallback,
html.lattice-live [data-lattice-section] .imx-fallback { display: none; }
/* readability scrim behind the copy (side on desktop, bottom on mobile) */
.imx-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 55%, transparent) 34%, transparent 62%);
}
.dark .imx-sticky::before {
  background: linear-gradient(90deg, #07201d 0%, color-mix(in srgb, #07201d 55%, transparent) 36%, transparent 64%);
}
.imx-overlay { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.imx-copy { max-width: 460px; }
/* live value readout — how JEEnius helps in the active subject; updates as the
   scroll wave reaches each one */
.imx-value { margin: 0 0 22px; min-height: 82px; max-width: 30ch; }
.imx-vlead {
  display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(21px, 2.6vw, 29px); line-height: 1.12; letter-spacing: -.015em;
  color: var(--accent-ink);
}
.imx-vtext { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink-soft); line-height: 1.45; }
.imx-value.change { animation: imxValue .5s var(--ease); }
@keyframes imxValue { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
.imx-beats { display: flex; flex-wrap: wrap; gap: 10px; }
.imx-beat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink-faint);
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  opacity: .55; transition: opacity .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.imx-beat .imx-dot { width: 8px; height: 8px; border-radius: 50%; opacity: .5; transition: opacity .4s var(--ease), box-shadow .4s var(--ease); }
.imx-beat.on { opacity: 1; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.imx-beat.on .imx-dot { opacity: 1; box-shadow: 0 0 10px 1px currentColor; }
@media (max-width: 899px) {
  .imx-section { min-height: 100svh; }
  .imx-copy { max-width: 100%; }
  .imx-sticky::before { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface) 70%, transparent) 55%, var(--surface) 100%); }
  .dark .imx-sticky::before { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, #07201d 70%, transparent) 55%, #07201d 100%); }
  .imx-overlay { display: flex; align-items: flex-end; min-height: 100svh; padding-bottom: 12vh; }
  /* mobile: all subjects read as selected (no scroll-cycle) */
  .imx-beat { opacity: 1; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
  .imx-beat .imx-dot { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .imx-sticky { position: static; min-height: 0; padding: 96px 0; }
  .imx-section { height: auto; }
  .stack > .section { position: static; min-height: 0; }
}
