/* ==========================================================================
   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; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

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: hidden;
  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; }
}

/* ==========================================================================
   Living calm — motion layer (aurora / tilt / choreography / magnetic / spotlight)
   Added progressively; see docs/superpowers/plans/2026-07-10-jee-living-calm-motion.md
   ========================================================================== */

/* ---------- 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; }

/* ---------- 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%; }

.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; }
.mock > * { position: relative; z-index: 1; }

/* ---------- hero constellation (exam universe) ---------- */
#hero-constellation { position: absolute; inset: 0; z-index: 0; display: block; }
.hc-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 380px at 82% 10%, var(--sage), transparent 60%),
    radial-gradient(440px 320px at 12% 22%, var(--gold-soft), transparent 62%);
  opacity: .5;
}
.dark .hc-glow { opacity: .2; }
.hc-tip {
  position: absolute; z-index: 3; width: 190px; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(5px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.hc-tip.show { opacity: 1; transform: none; }
.hc-tip .hc-s { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.hc-tip .hc-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.hc-tip .hc-t { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15.5px; margin: 5px 0 2px; color: var(--ink); }
.hc-tip .hc-l { font-size: 11.5px; font-weight: 700; color: var(--gold-ink); }

/* ---------- feel the physics section ---------- */
.fp-panel { margin-top: 26px; }
.fp-eq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.fp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--ink); font-weight: 600; }
.fp-row .fp-k { font-family: 'Fraunces', serif; font-size: 20px; color: var(--green); }
.fp-big { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fp-big #fp-omega { font-family: 'Fraunces', serif; font-size: 30px; color: var(--green); }
.fp-cap { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; }
.fp-chips { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fp-chips b { color: var(--ink); }
.fp-slider { display: block; margin-top: 18px; }
.fp-slider > span { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.fp-slider > span b { color: var(--gold-ink); }
.fp-slider input[type=range] { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: var(--mint); border-radius: 999px; outline: none; }
.fp-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.fp-slider input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); cursor: pointer; }
.fp-stage { position: relative; }
.fp-tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
.fp-tag span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
#fp-canvas { width: 100%; display: block; }

/* ---------- how it works: reasoning theater ---------- */
.rt { max-width: 940px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rt-headr { display: flex; align-items: center; gap: 16px; }
.rt-skip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.rt-skip input { accent-color: var(--green); }
.rt-count { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); }
.rt-nextbtn { border: none; background: none; color: var(--green); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.rt-q { font-size: clamp(19px, 2.3vw, 24px); font-weight: 500; line-height: 1.3; margin: 16px 0 18px; color: var(--ink); }
.rt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .rt-opts { grid-template-columns: 1fr; } }
.rt-opt { display: flex; align-items: center; gap: 11px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; cursor: pointer; font-size: 15px; color: var(--ink); font-weight: 600; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.rt-opt:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.rt-opt .rt-ol { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.rt-opt .rt-oh { font-size: 16px; }
.rt-opt.sel { border-color: var(--green); background: var(--mint); }
.rt-opt.sel .rt-ol { background: var(--green); color: #fff; border-color: var(--green); }
.rt-solve { margin-top: 18px; }
.rt.solving .rt-opts { opacity: .85; pointer-events: none; }
.rt-body { display: none; grid-template-columns: 302px 1fr; gap: 24px; margin-top: 22px; align-items: start; }
.rt.solving .rt-body { display: grid; }
@media (max-width: 720px) { .rt-body { grid-template-columns: 1fr; } }
.rt-diagram { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: sticky; top: 88px; }
@media (max-width: 720px) { .rt-diagram { position: static; } }
.rt-svg { width: 100%; height: auto; display: block; overflow: visible; }
.rt-steps { display: flex; flex-direction: column; gap: 12px; min-height: 40px; }
.rt-think { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.rt-think span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .3; animation: rtdot 1.1s infinite; }
.rt-think span:nth-child(2) { animation-delay: .18s; }
.rt-think span:nth-child(3) { animation-delay: .36s; }
@keyframes rtdot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.rt-step { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rt-step.in { opacity: 1; transform: none; }
.rt-sh { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 15px; }
.rt-sh .num { width: 25px; height: 25px; flex: none; border-radius: 8px; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.rt-sb { color: var(--ink-soft); font-size: 14.5px; margin: 9px 0 0; padding-left: 36px; line-height: 1.55; }
.rt-sb b { color: var(--ink); }
.rt-answer { display: none; border-radius: 16px; }
.rt.done .rt-answer { display: block; margin-top: 20px; background: var(--gold-soft); border: 1px solid var(--gold); padding: 18px 20px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rt.done .rt-answer.in { opacity: 1; transform: none; }
.rt-ans { display: flex; align-items: center; gap: 14px; }
.rt-tick { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; }
.rt-tick svg { width: 20px; height: 20px; }
.rt-al { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.rt-av { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--green); }
.rt-verdict { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rt.done .rt-answer.wrong { background: var(--surface-2); border-color: var(--line); }
.rt.done .rt-answer.wrong .rt-tick { background: var(--ink-soft); }

/* diagram reveal primitives */
.rt-diagram [data-phase] { opacity: 0; transition: opacity .6s var(--ease); }
.rt-diagram [data-phase].on { opacity: 1; }
.rt-svg .rt-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.rt-svg .rt-wall { stroke: var(--ink-faint); stroke-width: 4; stroke-linecap: round; }
.rt-svg .rt-draw { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease), opacity .6s var(--ease); }
.rt-svg .rt-draw.on { stroke-dashoffset: 0; }
.rt-svg .rt-accent, .rt-svg .rt-spin { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; }
.rt-svg .rt-vec { stroke: var(--green); stroke-width: 2; }
.rt-svg .rt-dash { stroke: var(--gold-ink); stroke-width: 1.4; stroke-dasharray: 4 4; }
.rt-svg .rt-node { fill: var(--green); }
.rt-svg .rt-fill { fill: var(--green); }
.rt-svg .rt-area { fill: var(--sage); }
.rt-diagram .rt-area[data-phase].on { opacity: .85; }
.rt-svg .rt-ring { fill: none; stroke: rgba(180,150,0,.5); stroke-width: 2; }
.rt-svg .rt-field { fill: rgba(27,59,54,.05); stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 5; }
.rt-svg .rt-charges circle { fill: var(--gold); }
.rt-svg .rt-earr line { stroke: var(--green); stroke-width: 1.6; }
.rt-svg .rt-t { fill: var(--ink-soft); font: 700 12px 'Plus Jakarta Sans', system-ui, sans-serif; }
.rt-svg .rt-t.rt-gold { fill: var(--gold-ink); }
.rt-svg .rt-t.rt-big { font-size: 16px; }
.rt-svg .rt-spring { fill: none; stroke: var(--ink-faint); stroke-width: 2; }
.rt-svg .rt-box { fill: var(--green); }
.rt-mass.on .rt-box { animation: rtbob 1.6s ease-in-out infinite; }
@keyframes rtbob { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(44px); } }
.dark .rt-svg .rt-field { fill: rgba(127,216,190,.06); }
.dark .rt-svg .rt-area { fill: rgba(127,216,190,.16); }
.dark .rt-svg .rt-draw, .dark .rt-svg .rt-vec { stroke: #7FD8BE; }
.dark .rt-svg .rt-node, .dark .rt-svg .rt-fill { fill: #7FD8BE; }
.dark .rt-av { color: var(--ink); }
.dark .rt-sh .num { color: #7FD8BE; }
.dark .fp-row .fp-k, .dark .fp-big #fp-omega { color: #7FD8BE; }
@media (prefers-reduced-motion: reduce) {
  .rt-mass.on .rt-box { animation: none !important; }
  .rt-svg .rt-draw { transition: none !important; }
}

/* reduced-motion: neutralize all new 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; }
}
