/* =====================================================================================================
   KV Coders public design system (2026-11 public-site evolution)
   Scoped under .pk so it can never restyle older public pages or the student platform (Spectrum).
   Language: "printed CBSE material, made alive": paper and ink, ruled lines and margins; dark surfaces only
   where real code runs. CS = teal, IP = amber, KV Coders = violet. Fonts are the ones the header already loads.
   Motion: every animation has a final resting state as its default style; prefers-reduced-motion removes motion.
   ===================================================================================================== */

.pk {
  --pk-ink: #0b1020; --pk-ink-2: #2a3350; --pk-muted: #5b6684; --pk-line: #e3e1da; --pk-line-2: #d5d2c8;
  --pk-paper: #f7f5f0; --pk-card: #ffffff; --pk-sunk: #efece5;
  --pk-violet: #5b4fe8; --pk-violet-2: #7c6cf5; --pk-violet-soft: #ecebff;
  --pk-cs: #0d9488; --pk-cs-2: #14b8a6; --pk-cs-soft: #dff7f3;
  --pk-ip: #d97706; --pk-ip-2: #f59e0b; --pk-ip-soft: #fdf1dc;
  --pk-coral: #e5533d; --pk-lime: #65a30d;
  --pk-night: #0b1020; --pk-night-2: #121a33; --pk-night-line: rgba(255,255,255,.1); --pk-night-text: #dbe3f5; --pk-night-muted: #93a0bf;
  --pk-display: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --pk-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --pk-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pk-ease: cubic-bezier(.2,.8,.2,1);
  --pk-r: 18px; --pk-r-sm: 12px;
  --pk-shadow: 0 1px 0 rgba(11,16,32,.04), 0 18px 40px -28px rgba(11,16,32,.35);
  color: var(--pk-ink); background: var(--pk-paper); font-family: var(--pk-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:root[data-theme="dark"] .pk {
  --pk-ink: #eef1fa; --pk-ink-2: #c9d1e6; --pk-muted: #97a3c2; --pk-line: #232c46; --pk-line-2: #2e3858;
  --pk-paper: #0a0f1d; --pk-card: #10172b; --pk-sunk: #0d1426;
  --pk-violet-soft: rgba(124,108,245,.16); --pk-cs-soft: rgba(20,184,166,.14); --pk-ip-soft: rgba(245,158,11,.14);
  --pk-shadow: 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -26px rgba(0,0,0,.7);
}
.pk *, .pk *::before, .pk *::after { box-sizing: border-box; }
.pk h1, .pk h2, .pk h3, .pk h4 { font-family: var(--pk-display); color: var(--pk-ink); letter-spacing: -.02em; margin: 0; }
.pk p { margin: 0; }
.pk-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.pk-sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.pk-sec + .pk-sec { border-top: 1px solid var(--pk-line); }
.pk-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.4 var(--pk-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pk-muted); }
.pk-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; opacity: .6; }
.pk-h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 700; margin-top: 12px; text-wrap: balance; }
.pk-lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--pk-muted); max-width: 62ch; margin-top: 14px; }
.pk-head { display: grid; gap: 4px; margin-bottom: clamp(28px, 4vw, 44px); }
.pk-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.pk-ic { width: 20px; height: 20px; flex: none; }
.pk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons and links */
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font: 700 15.5px/1 var(--pk-body); text-decoration: none; cursor: pointer; transition: transform .18s var(--pk-ease), background .18s, border-color .18s, box-shadow .18s; }
.pk-btn .pk-ic { width: 18px; height: 18px; transition: transform .18s var(--pk-ease); }
.pk-btn:hover .pk-ic { transform: translateX(3px); }
.pk-btn--primary { background: var(--pk-violet); color: #fff !important; box-shadow: 0 12px 26px -14px rgba(91,79,232,.75); }
.pk-btn--primary:hover { background: #4a3fd6; transform: translateY(-1px); }
.pk-btn--ghost { background: var(--pk-card); color: var(--pk-ink) !important; border-color: var(--pk-line-2); }
.pk-btn--ghost:hover { border-color: var(--pk-ink-2); }
.pk-btn--light { background: #fff; color: #0b1020 !important; }
.pk-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pk-violet) !important; text-decoration: none; }
.pk-link .pk-ic { width: 16px; height: 16px; transition: transform .18s var(--pk-ease); }
.pk-link:hover .pk-ic { transform: translateX(3px); }
.pk :focus-visible { outline: 3px solid var(--pk-violet-2); outline-offset: 3px; border-radius: 8px; }
:root[data-theme="dark"] .pk .pk-link { color: #a9a0ff !important; }

/* chips and tones */
.pk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12.5px/1.2 var(--pk-body); background: var(--pk-sunk); color: var(--pk-ink-2); border: 1px solid var(--pk-line); }
.pk-chip--free { background: var(--pk-cs-soft); color: var(--pk-cs); border-color: transparent; }
.pk-tone-cs { --pk-tone: var(--pk-cs); --pk-tone-2: var(--pk-cs-2); --pk-tone-soft: var(--pk-cs-soft); }
.pk-tone-ip { --pk-tone: var(--pk-ip); --pk-tone-2: var(--pk-ip-2); --pk-tone-soft: var(--pk-ip-soft); }

/* reveal (only when JS is running: html.pk-js is set inline before paint) */
.pk-js .pk [data-pk-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--pk-ease), transform .7s var(--pk-ease); transition-delay: var(--pk-d, 0s); }
.pk-js .pk [data-pk-reveal].is-in { opacity: 1; transform: none; }

/* ============================================ HERO ============================================ */
.pk-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(91,79,232,.10), transparent 60%),
  linear-gradient(var(--pk-paper), var(--pk-paper)); overflow: hidden; }
.pk-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--pk-line) 1px, transparent 1px); background-size: 100% 32px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.pk-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pk-brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.pk-badge-best { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--pk-ink); color: #fff; font: 700 13px/1 var(--pk-body); }
.pk-badge-best b { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: linear-gradient(100deg, var(--pk-violet-2), var(--pk-cs-2)); font: 800 11px/1 var(--pk-mono); letter-spacing: .05em; }
:root[data-theme="dark"] .pk .pk-badge-best { background: #fff; color: #0b1020; }
.pk-codes { font: 600 12px/1.4 var(--pk-mono); letter-spacing: .06em; color: var(--pk-muted); text-transform: uppercase; }
.pk-h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: .98; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.pk-h1 .pk-score { background: linear-gradient(100deg, var(--pk-violet) 10%, var(--pk-cs-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.pk-hero-sub { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; color: var(--pk-muted); margin-top: 26px; max-width: 54ch; }
.pk-pick { margin-top: 26px; }
.pk-pick-label { font: 700 11.5px/1 var(--pk-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pk-muted); margin-bottom: 10px; }
.pk-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.pk-prog { position: relative; display: block; text-align: left; padding: 12px 12px 12px 15px; border-radius: 14px; background: var(--pk-card); border: 1px solid var(--pk-line-2); text-decoration: none; cursor: pointer; font: inherit; color: var(--pk-ink); overflow: hidden; transition: border-color .18s, transform .18s var(--pk-ease), box-shadow .18s; }
.pk-prog::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pk-tone); }
.pk-prog:hover { transform: translateY(-2px); border-color: var(--pk-tone); }
.pk-prog[aria-pressed="true"], .pk-prog.is-active { border-color: var(--pk-tone); background: var(--pk-tone-soft); box-shadow: 0 10px 24px -18px var(--pk-tone); }
.pk-prog-c { display: block; font: 700 11px/1 var(--pk-mono); color: var(--pk-muted); letter-spacing: .04em; }
.pk-prog-n { display: block; font: 800 14.5px/1.2 var(--pk-body); margin: 6px 0 6px; }
.pk-prog-m { display: block; font: 600 11.5px/1 var(--pk-mono); color: var(--pk-tone); }
.pk-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.pk-cta-note { margin-top: 12px; font-size: 13.5px; color: var(--pk-muted); }
.pk-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--pk-line-2); }
.pk-proof div { display: grid; gap: 2px; }
.pk-proof b { font: 700 22px/1 var(--pk-display); letter-spacing: -.02em; }
.pk-proof span { font: 600 11.5px/1.3 var(--pk-mono); color: var(--pk-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ============================ HERO MOTION EXPLAINER ("The Learning Line") ============================
   One dark stage. A path runs through six stations; the line fills to the current station while the scene
   below shows that part of KV Coders as working interface. Scenes are real HTML; their resting state is
   complete, so reduced motion and no-JS show a finished, readable composition. */
.pk-x { position: relative; border-radius: 26px; background: var(--pk-night); color: var(--pk-night-text); box-shadow: 0 40px 80px -48px rgba(11,16,32,.9), inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; isolation: isolate; }
.pk-x::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(500px 260px at 15% 0%, rgba(124,108,245,.28), transparent 70%),
  radial-gradient(420px 260px at 100% 100%, rgba(20,184,166,.18), transparent 70%),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/ 100% 28px,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/ 28px 100%; }
.pk-x-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; font: 600 11.5px/1 var(--pk-mono); color: var(--pk-night-muted); letter-spacing: .06em; text-transform: uppercase; }
.pk-x-top i { font-style: normal; color: #fff; opacity: .55; }
.pk-x-ctl { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--pk-night-line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }
.pk-x-ctl svg { width: 14px; height: 14px; }
.pk-x-ctl .pk-x-play { display: none; }
.pk-x.is-paused .pk-x-ctl .pk-x-play { display: block; }
.pk-x.is-paused .pk-x-ctl .pk-x-pause { display: none; }
/* the line */
.pk-x-line { position: relative; height: 74px; margin: 6px 18px 0; }
.pk-x-line > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pk-x-path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 4 6; }
.pk-x-fill { fill: none; stroke: url(#pkxGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - (1000 * var(--pk-x-p, .0833))); transition: stroke-dashoffset .9s var(--pk-ease); }
.pk-x-st { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #141c36; border: 1px solid rgba(255,255,255,.14); color: var(--pk-night-muted); transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--pk-ease); }
.pk-x-st svg { width: 18px; height: 18px; }
.pk-x-st.is-done { color: #fff; background: #1d2650; border-color: rgba(124,108,245,.55); }
.pk-x-st.is-on { transform: translate(-50%, -50%) scale(1.18); color: #0b1020; background: #fff; box-shadow: 0 0 0 6px rgba(124,108,245,.25), 0 0 30px rgba(124,108,245,.7); }
/* the stage */
.pk-x-stage { position: relative; height: 300px; margin: 6px 18px 0; }
.pk-x-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985); transition: opacity .55s var(--pk-ease), transform .7s var(--pk-ease), visibility 0s .55s; }
.pk-x-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--pk-ease), transform .7s var(--pk-ease), visibility 0s; }
.pk-x-cap { position: absolute; left: 0; bottom: 0; right: 0; display: flex; align-items: baseline; gap: 12px; }
.pk-x-cap b { font: 700 20px/1.1 var(--pk-display); color: #fff; letter-spacing: -.01em; }
.pk-x-cap span { font-size: 13.5px; color: var(--pk-night-muted); }
.pk-x-num { font: 700 12px/1 var(--pk-mono); color: var(--pk-violet-2); }
/* step list (real HTML; also the no-JS explanation) */
.pk-x-steps { list-style: none; margin: 14px 0 0; padding: 12px 12px 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--pk-night-line); background: rgba(0,0,0,.18); }
.pk-x-steps li { min-width: 0; }
.pk-x-steps button { width: 100%; height: 100%; display: grid; gap: 3px; padding: 8px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--pk-night-muted); text-align: left; cursor: pointer; font: inherit; }
.pk-x-steps button:hover { background: rgba(255,255,255,.04); }
.pk-x-steps button[aria-current="step"] { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; }
.pk-x-steps .s-n { font: 700 10.5px/1 var(--pk-mono); color: var(--pk-violet-2); }
.pk-x-steps .s-t { font: 700 12.5px/1.2 var(--pk-body); }
/* the one-line description is read by screen readers and shown nowhere else (the scene caption shows it visually) */
.pk-x-steps .s-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-x-steps button { position: relative; }
.pk-x-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--pk-violet-2), var(--pk-cs-2)); transform-origin: 0 50%; transform: scaleX(0); }
.pk-x.is-playing .pk-x-bar { animation: pkxBar var(--pk-x-dur, 5200ms) linear forwards; }
.pk-x.is-paused .pk-x-bar { animation-play-state: paused; }
@keyframes pkxBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* shared scene parts */
.pk-w { position: absolute; border-radius: 14px; background: #121a33; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); overflow: hidden; }
.pk-w-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); font: 600 10.5px/1 var(--pk-mono); color: var(--pk-night-muted); }
.pk-w-bar::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff6b57; box-shadow: 11px 0 0 #f5a623, 22px 0 0 #3ddc97; margin-right: 26px; }
.pk-w-body { padding: 10px 12px; font-size: 12.5px; line-height: 1.5; }
.pk-mono { font-family: var(--pk-mono); }
.pk-kw { color: #c4b5fd; } .pk-fn { color: #67e8f9; } .pk-st { color: #86efac; } .pk-nu { color: #fcd34d; } .pk-cm { color: #7d8ba0; }
.pk-x-scene.is-on [data-a] { animation-duration: .7s; animation-timing-function: var(--pk-ease); animation-fill-mode: both; animation-delay: var(--d, 0s); }
.pk-x-scene.is-on [data-a="up"] { animation-name: pkxUp; }
.pk-x-scene.is-on [data-a="pop"] { animation-name: pkxPop; }
.pk-x-scene.is-on [data-a="draw"] { animation-name: pkxDraw; transform-origin: 0 50%; }
.pk-x-scene.is-on [data-a="fade"] { animation-name: pkxFade; }
.pk-x-scene.is-on [data-a="type"] { animation: pkxType 1.4s steps(var(--n, 20)) var(--d, 0s) both; }
@keyframes pkxUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes pkxPop { from { opacity: 0; transform: scale(.85); } }
@keyframes pkxDraw { from { transform: scaleX(0); } }
@keyframes pkxFade { from { opacity: 0; } }
@keyframes pkxType { from { clip-path: inset(0 100% 0 0); } }

/* scene 1: discover */
.pk-s1-grid { position: absolute; left: 0; top: 4px; width: 56%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-s1-p { position: relative; padding: 12px; border-radius: 12px; background: #141c36; border: 1px solid rgba(255,255,255,.1); }
.pk-s1-p::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--pk-tone-2); }
.pk-s1-p small { display: block; font: 700 10px/1 var(--pk-mono); color: var(--pk-night-muted); }
.pk-s1-p b { display: block; font: 700 13px/1.2 var(--pk-body); color: #fff; margin-top: 5px; }
.pk-s1-p.is-pick { background: #1c2547; border-color: var(--pk-cs-2); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
.pk-s1-card { right: 0; top: 0; width: 40%; }
.pk-s1-card .pk-w-body { display: grid; gap: 8px; }
.pk-s1-h { color: #fff; font: 700 16px/1.25 var(--pk-display); }
.pk-s1-row { display: flex; justify-content: space-between; font: 600 11.5px/1 var(--pk-mono); color: var(--pk-night-muted); padding: 6px 0; border-top: 1px dashed rgba(255,255,255,.1); }
.pk-s1-row b { color: #fff; }
.pk-cursor { position: absolute; width: 18px; height: 18px; left: 26%; top: 34%; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.pk-x-scene.is-on .pk-cursor { animation: pkxCursor 1.6s var(--pk-ease) both; }
@keyframes pkxCursor { from { transform: translate(-60px, 60px); opacity: 0; } 60% { opacity: 1; } }

/* scene 2: learn */
.pk-s2-list { left: 0; top: 0; width: 54%; }
.pk-s2-ch { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 12.5px; color: #e7ecfa; }
.pk-s2-ch:last-child { border-bottom: 0; }
.pk-s2-ch i { font: 700 10.5px/1 var(--pk-mono); font-style: normal; color: var(--pk-night-muted); }
.pk-s2-tick { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,184,166,.2); color: #5eead4; }
.pk-s2-tick svg { width: 11px; height: 11px; }
.pk-s2-ch.is-now { color: #fff; font-weight: 700; }
.pk-s2-ch.is-now .pk-s2-tick { background: var(--pk-violet-2); color: #fff; }
.pk-s2-lesson { right: 0; top: 18px; width: 42%; }
.pk-s2-vid { height: 74px; border-radius: 10px; background: linear-gradient(135deg, #2b2370, #0f3d48); display: grid; place-items: center; margin-bottom: 10px; }
.pk-s2-vid span { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #0b1020; }
.pk-s2-vid svg { width: 14px; height: 14px; }
.pk-s2-tabs { display: flex; gap: 6px; font: 700 10.5px/1 var(--pk-mono); }
.pk-s2-tabs span { padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--pk-night-muted); }
.pk-s2-tabs span:first-child { background: rgba(124,108,245,.25); color: #fff; }
.pk-s2-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.pk-s2-prog i { display: block; height: 100%; width: 64%; border-radius: 3px; background: linear-gradient(90deg, var(--pk-violet-2), var(--pk-cs-2)); }

/* scene 3: practise */
.pk-s3-code { left: 0; top: 0; width: 48%; }
.pk-s3-code pre { margin: 0; font: 500 12px/1.65 var(--pk-mono); color: #e2e8f0; white-space: pre; }
.pk-s3-out { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); font: 600 12px/1.4 var(--pk-mono); color: #86efac; }
.pk-s3-sql { right: 0; top: 0; width: 49%; }
.pk-s3-q { font: 500 11px/1.5 var(--pk-mono); color: #e2e8f0; margin-bottom: 8px; }
.pk-s3-t { width: 100%; border-collapse: collapse; font: 500 11px/1 var(--pk-mono); }
.pk-s3-t th { text-align: left; color: var(--pk-night-muted); font-weight: 600; padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pk-s3-t td { padding: 6px 4px; color: #cbd5e1; border-bottom: 1px dashed rgba(255,255,255,.06); }
.pk-s3-t tr.is-hit td { color: #fff; background: rgba(20,184,166,.18); }
.pk-x-scene.is-on .pk-s3-t tr.is-miss td { animation: pkxDim .6s 1.6s both; }
@keyframes pkxDim { to { opacity: .3; } }
.pk-s3-mcq { left: 18%; bottom: 52px; width: 56%; }
.pk-s3-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-top: 5px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 12px; color: #cbd5e1; }
.pk-s3-opt.is-right { background: rgba(61,220,151,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(61,220,151,.45); }
.pk-s3-opt em { font: 700 10px/1 var(--pk-mono); font-style: normal; color: var(--pk-night-muted); }

/* scene 4: prepare */
.pk-s4-paper { left: 0; top: 0; width: 58%; height: 262px; background: #f8f6f0; color: #1d2340; border-color: transparent; }
.pk-s4-paper .pk-w-bar { color: #5b6684; border-color: #e3e1da; }
.pk-s4-paper .pk-w-bar::before { display: none; }
.pk-s4-sec { display: grid; grid-template-columns: 22px 1fr 54px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ebe7dd; font: 600 11.5px/1.2 var(--pk-body); }
.pk-s4-sec b { font: 800 12px/1 var(--pk-mono); color: var(--pk-violet); }
.pk-s4-sec i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #7c6cf5, #14b8a6); width: var(--w, 50%); }
.pk-s4-sec span { font: 700 10.5px/1 var(--pk-mono); color: #5b6684; text-align: right; }
.pk-s4-stamp { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border: 2px solid var(--pk-coral); border-radius: 8px; color: var(--pk-coral); font: 800 13px/1 var(--pk-mono); transform: rotate(-8deg); }
.pk-s4-timer { right: 0; top: 0; width: 38%; padding-bottom: 12px; text-align: center; }
.pk-s4-ring { width: 104px; height: 104px; margin: 10px auto 4px; }
.pk-s4-ring circle { fill: none; stroke-width: 8; }
.pk-s4-ring .bg { stroke: rgba(255,255,255,.08); }
.pk-s4-ring .fg { stroke: var(--pk-ip-2); stroke-linecap: round; stroke-dasharray: 276; stroke-dashoffset: 69; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pk-x-scene.is-on .pk-s4-ring .fg { animation: pkxRing 2.4s var(--pk-ease) .3s both; }
@keyframes pkxRing { from { stroke-dashoffset: 276; } }
.pk-s4-time { font: 700 22px/1 var(--pk-mono); color: #fff; }
.pk-s4-pyq { right: 0; top: 168px; width: 38%; }
.pk-s4-pyq b { display: block; font: 700 24px/1 var(--pk-display); color: #fff; }
.pk-s4-pyq span { font-size: 11.5px; color: var(--pk-night-muted); }

/* scene 5: find */
.pk-s5-box { left: 4%; right: 4%; top: 6px; }
.pk-s5-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font: 500 14px/1 var(--pk-body); color: #fff; }
.pk-s5-in svg { width: 18px; height: 18px; color: var(--pk-violet-2); }
.pk-s5-q { white-space: nowrap; overflow: hidden; }
.pk-s5-res { left: 4%; right: 4%; top: 72px; background: transparent; border: 0; box-shadow: none; display: grid; gap: 8px; overflow: visible; }
.pk-s5-r { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 12px; background: #141c36; border: 1px solid rgba(255,255,255,.09); }
.pk-s5-r:first-child { border-color: rgba(124,108,245,.6); background: #1b2347; }
.pk-s5-r i { font: 700 10px/1 var(--pk-mono); font-style: normal; padding: 5px 7px; border-radius: 6px; background: rgba(124,108,245,.22); color: #d9d4ff; }
.pk-s5-r b { font: 700 13px/1.3 var(--pk-body); color: #fff; }
.pk-s5-r small { display: block; font-size: 11.5px; color: var(--pk-night-muted); font-weight: 500; }
.pk-s5-r span { font: 600 10.5px/1 var(--pk-mono); color: var(--pk-night-muted); }

/* scene 6: compete & track */
.pk-s6-live { left: 0; top: 0; width: 54%; }
.pk-s6-live .pk-w-bar b { margin-left: auto; color: #ff6b57; display: inline-flex; align-items: center; gap: 5px; }
.pk-s6-live .pk-w-bar b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff6b57; }
.pk-x-scene.is-on .pk-s6-live .pk-w-bar b::before { animation: pkxBlink 1.2s ease-in-out infinite; }
@keyframes pkxBlink { 50% { opacity: .25; } }
.pk-s6-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 12.5px; }
.pk-s6-row:last-child { border: 0; }
.pk-s6-row i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 10.5px/1 var(--pk-mono); font-style: normal; background: rgba(255,255,255,.08); color: #fff; }
.pk-s6-row.is-you { color: #fff; font-weight: 700; }
.pk-s6-row.is-you i { background: var(--pk-violet-2); }
.pk-s6-row span { font: 700 11.5px/1 var(--pk-mono); color: #86efac; }
.pk-s6-track { right: 0; top: 0; width: 42%; }
.pk-s6-ring { width: 96px; height: 96px; margin: 6px auto; display: block; }
.pk-s6-ring circle { fill: none; stroke-width: 9; }
.pk-s6-ring .bg { stroke: rgba(255,255,255,.08); }
.pk-s6-ring .fg { stroke: url(#pkxGrad); stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 75; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pk-x-scene.is-on .pk-s6-ring .fg { animation: pkxRing6 2s var(--pk-ease) .4s both; }
@keyframes pkxRing6 { from { stroke-dashoffset: 251; } }
.pk-s6-weak { display: grid; gap: 5px; margin-top: 4px; font-size: 11.5px; color: var(--pk-night-muted); }
.pk-s6-weak div { display: flex; justify-content: space-between; }
.pk-s6-weak b { color: #fcd34d; font: 700 10.5px/1 var(--pk-mono); }

/* ============================================ INTENT ============================================ */
.pk-intent { padding: 22px 0; background: var(--pk-card); border-top: 1px solid var(--pk-line); border-bottom: 1px solid var(--pk-line); }
.pk-intent-in { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.pk-intent-q { font: 700 15px/1.3 var(--pk-display); }
.pk-intent-q small { display: block; font: 600 12px/1.3 var(--pk-body); color: var(--pk-muted); margin-top: 2px; }
.pk-intents { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-intents a { color: var(--pk-ink); display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--pk-paper); border: 1px solid var(--pk-line-2); text-decoration: none; font: 700 13.5px/1 var(--pk-body); transition: border-color .18s, transform .18s var(--pk-ease), background .18s; }
.pk-intents a:hover { border-color: var(--pk-violet); transform: translateY(-1px); }
.pk-intents .pk-ic { width: 17px; height: 17px; color: var(--pk-violet); }
.pk-intents em { font: 600 11px/1 var(--pk-mono); font-style: normal; color: var(--pk-muted); }

/* ===================================== PROGRAMME MAP (syllabus) ===================================== */
.pk-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--pk-sunk); border: 1px solid var(--pk-line); }
.pk-tabs button, .pk-tabs a { padding: 10px 14px; border-radius: 10px; border: 0; background: transparent; font: 700 13.5px/1 var(--pk-body); color: var(--pk-muted); cursor: pointer; text-decoration: none; }
.pk-tabs [aria-selected="true"], .pk-tabs .is-active { background: var(--pk-card); color: var(--pk-ink); box-shadow: var(--pk-shadow); }
.pk-tabs .t-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--pk-tone); }
.pk-map { display: none; }
.pk-map.is-active { display: block; }
.pk-map-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 26px; }
.pk-map-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.pk-map-title small { display: block; font: 700 12px/1 var(--pk-mono); letter-spacing: .06em; color: var(--pk-tone); margin-bottom: 10px; text-transform: uppercase; }
.pk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--pk-line); border-radius: var(--pk-r-sm); overflow: hidden; background: var(--pk-card); }
.pk-facts div { padding: 12px 14px; border-left: 1px solid var(--pk-line); }
.pk-facts div:first-child { border-left: 0; }
.pk-facts b { display: block; font: 700 22px/1 var(--pk-display); }
.pk-facts span { font: 600 11px/1.2 var(--pk-mono); color: var(--pk-muted); text-transform: uppercase; letter-spacing: .04em; }
.pk-units { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.pk-unit { scroll-snap-align: start; border-radius: var(--pk-r); background: var(--pk-card); border: 1px solid var(--pk-line); padding: 16px; position: relative; }
.pk-unit-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--pk-tone); margin-bottom: 6px; }
.pk-unit-h h3, .pk-unit-h h4 { font-size: 16px; line-height: 1.25; }
.pk-unit-h b { flex: none; font: 800 12px/1 var(--pk-mono); padding: 6px 8px; border-radius: 8px; background: var(--pk-tone-soft); color: var(--pk-tone); }
.pk-ch { color: var(--pk-ink); display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--pk-line); text-decoration: none; }
.pk-ch:last-child { border-bottom: 0; }
.pk-ch > i { font: 700 11px/1.6 var(--pk-mono); font-style: normal; color: var(--pk-muted); }
.pk-ch b { display: block; font: 700 14px/1.3 var(--pk-body); }
.pk-ch:hover b { color: var(--pk-tone); }
.pk-ch small { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font: 600 11px/1.2 var(--pk-mono); color: var(--pk-muted); }
.pk-map-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ===================================== WORKBENCH (dark) ===================================== */
.pk-bench { background: var(--pk-night); color: var(--pk-night-text); border-top: 0 !important; }
.pk-bench .pk-h2, .pk-bench h3 { color: #fff; }
.pk-bench .pk-lead, .pk-bench .pk-eyebrow { color: var(--pk-night-muted); }
.pk-bench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pk-tools { display: grid; gap: 8px; }
.pk-tool { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--pk-night-line); background: rgba(255,255,255,.02); cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; transition: background .2s, border-color .2s; }
.pk-tool:hover { background: rgba(255,255,255,.05); }
.pk-tool[aria-selected="true"] { background: rgba(124,108,245,.14); border-color: rgba(124,108,245,.55); }
.pk-tool .t-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; }
.pk-tool b { display: block; color: #fff; font: 700 15px/1.2 var(--pk-body); }
.pk-tool small { display: block; color: var(--pk-night-muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.pk-tool .t-go { color: var(--pk-night-muted); }
.pk-panel { display: none; border-radius: 20px; border: 1px solid var(--pk-night-line); background: var(--pk-night-2); overflow: hidden; }
.pk-panel.is-active { display: block; }
.pk-panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pk-night-line); font: 600 12px/1.3 var(--pk-mono); color: var(--pk-night-muted); }
.pk-panel-b { padding: 18px; }
.pk-codeblock { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; font: 500 13.5px/1.7 var(--pk-mono); }
.pk-codeblock .ln { color: #586581; text-align: right; user-select: none; white-space: pre; }
.pk-codeblock pre { margin: 0; color: #e2e8f0; white-space: pre; overflow-x: auto; }
.pk-ask { margin-top: 14px; font: 600 13px/1.4 var(--pk-mono); color: #fff; }
.pk-answer { display: flex; gap: 8px; margin-top: 10px; }
.pk-answer input { flex: 1; min-width: 0; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: #fff; font: 500 14px/1 var(--pk-mono); }
.pk-answer button, .pk-opts button { cursor: pointer; }
.pk-answer button { padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: 700 13px/1 var(--pk-mono); }
.pk-feedback { min-height: 22px; margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.pk-feedback.is-right strong { color: #86efac; } .pk-feedback.is-wrong strong { color: #fca5a5; }
.pk-feedback code { font-family: var(--pk-mono); background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; color: #fff; }
.pk-opts { display: grid; gap: 8px; margin-top: 12px; }
.pk-opts button { text-align: left; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #e2e8f0; font: 500 14px/1.4 var(--pk-body); }
.pk-opts button:hover { border-color: rgba(255,255,255,.35); }
.pk-opts button.is-right { border-color: #3ddc97; background: rgba(61,220,151,.12); color: #fff; }
.pk-opts button.is-wrong { border-color: #ff6b57; background: rgba(255,107,87,.1); }
.pk-panel-src { padding: 12px 18px; border-top: 1px solid var(--pk-night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; font-size: 12.5px; color: var(--pk-night-muted); }
.pk-panel-src .pk-link { color: #c4bcff !important; }
.pk-sql-t { width: 100%; border-collapse: collapse; font: 500 13px/1 var(--pk-mono); margin-top: 12px; }
.pk-sql-t th { text-align: left; color: var(--pk-night-muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.pk-sql-t td { padding: 9px 6px; color: #cbd5e1; border-bottom: 1px dashed rgba(255,255,255,.06); transition: background .4s, opacity .4s, color .4s; }
.pk-sql-run.is-done tr.is-hit td { background: rgba(20,184,166,.18); color: #fff; }
.pk-sql-run.is-done tr.is-miss td { opacity: .3; }
.pk-sql-run .pk-btn { min-height: 40px; margin-top: 14px; }
.pk-example { display: inline-block; font: 700 10.5px/1 var(--pk-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--pk-night-muted); }
.pk-labtests { display: grid; gap: 6px; margin-top: 12px; font: 500 12.5px/1.3 var(--pk-mono); }
.pk-labtests div { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); }
.pk-labtests b { color: #86efac; }

/* ===================================== EXAM ===================================== */
.pk-exam-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pk-sheet { position: relative; border-radius: 6px 22px 22px 6px; background: #fffdf8; border: 1px solid var(--pk-line-2); box-shadow: var(--pk-shadow), 10px 10px 0 -2px var(--pk-sunk), 10px 10px 0 -1px var(--pk-line-2); padding: 22px 22px 18px 54px; color: #1d2340; }
:root[data-theme="dark"] .pk .pk-sheet { background: #131a2f; color: var(--pk-ink); }
.pk-sheet::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 1px; background: #f2a7a0; }
.pk-sheet h3 { font-size: 17px; }
.pk-sheet-sub { font: 600 12px/1.4 var(--pk-mono); color: var(--pk-muted); margin: 4px 0 14px; }
.pk-sec-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--pk-line); }
.pk-sec-row > b { font: 800 14px/1 var(--pk-mono); color: var(--pk-violet); }
.pk-sec-row p { font-size: 13.5px; line-height: 1.4; }
.pk-sec-row p i { display: block; height: 6px; margin-top: 7px; border-radius: 3px; background: linear-gradient(90deg, var(--pk-violet-2), var(--pk-cs-2)); width: var(--w, 40%); transform-origin: 0 50%; }
.pk-js .pk [data-pk-reveal]:not(.is-in) .pk-sec-row p i { transform: scaleX(0); }
.pk-sec-row p i { transition: transform 1s var(--pk-ease) var(--pk-d2, .1s); }
.pk-sec-row > span { font: 700 12px/1.2 var(--pk-mono); color: var(--pk-muted); text-align: right; white-space: nowrap; }
.pk-sheet-note { font-size: 12.5px; color: var(--pk-muted); margin-top: 12px; }
.pk-prep { display: grid; gap: 12px; }
.pk-prep a { color: var(--pk-ink); display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--pk-card); border: 1px solid var(--pk-line); text-decoration: none; transition: border-color .18s, transform .18s var(--pk-ease); }
.pk-prep a:hover { border-color: var(--pk-violet); transform: translateX(2px); }
.pk-prep .p-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pk-violet-soft); color: var(--pk-violet); }
.pk-prep b { display: block; font: 700 15.5px/1.25 var(--pk-body); }
.pk-prep small { display: block; color: var(--pk-muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.pk-prep em { font: 700 12px/1 var(--pk-mono); font-style: normal; color: var(--pk-muted); white-space: nowrap; }

/* ===================================== RESOURCES SHELF ===================================== */
.pk-shelf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pk-proj { border-radius: var(--pk-r); background: var(--pk-ink); color: #fff; padding: 22px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .pk .pk-proj { background: #151d36; }
.pk-proj h3 { color: #fff; font-size: 22px; }
.pk-proj p { color: #b6c0da; font-size: 14px; margin-top: 6px; line-height: 1.55; }
.pk-proj-rail { position: relative; margin: 18px -22px 0; padding: 4px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pk-proj-track { display: flex; gap: 10px; width: max-content; padding: 0 22px; }
.pk-js .pk .pk-proj-track.is-moving { animation: pkRail 38s linear infinite; }
.pk-proj-rail:hover .pk-proj-track { animation-play-state: paused; }
@keyframes pkRail { to { transform: translateX(-50%); } }
.pk-proj-card { flex: none; width: 190px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pk-proj-card i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(124,108,245,.3); margin-bottom: 10px; }
.pk-proj-card b { display: block; font: 700 13.5px/1.3 var(--pk-body); text-transform: capitalize; }
.pk-proj-card small { font: 600 10.5px/1 var(--pk-mono); color: #93a0bf; }
.pk-proj .pk-btn { margin-top: 18px; }
.pk-res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-res a { color: var(--pk-ink); display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: var(--pk-card); border: 1px solid var(--pk-line); text-decoration: none; position: relative; overflow: hidden; transition: border-color .18s, transform .18s var(--pk-ease); }
.pk-res a::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--pk-tone-soft); }
.pk-res a:hover { border-color: var(--pk-tone); transform: translateY(-2px); }
.pk-res small { font: 700 11px/1 var(--pk-mono); color: var(--pk-tone); text-transform: uppercase; letter-spacing: .05em; }
.pk-res b { font: 700 16px/1.25 var(--pk-display); }
.pk-res span { font-size: 13px; color: var(--pk-muted); line-height: 1.45; position: relative; z-index: 1; }

/* ===================================== ACCOUNT / FINAL ===================================== */
.pk-acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pk-acc-list { display: grid; gap: 10px; }
.pk-acc-list div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: var(--pk-card); border: 1px solid var(--pk-line); }
.pk-acc-list i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--pk-cs-soft); color: var(--pk-cs); }
.pk-acc-list b { display: block; font: 700 15px/1.25 var(--pk-body); }
.pk-acc-list small { color: var(--pk-muted); font-size: 13px; }
.pk-final { padding: clamp(56px, 8vw, 96px) 0; text-align: center; background:
  radial-gradient(700px 300px at 50% 0%, rgba(124,108,245,.35), transparent 70%), var(--pk-night); color: #fff; }
.pk-final h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; max-width: 18ch; margin: 0 auto; }
.pk-final p { color: var(--pk-night-muted); margin: 16px auto 0; max-width: 54ch; font-size: 17px; line-height: 1.6; }
.pk-final .pk-cta-row { justify-content: center; }

/* ===================================== EXPLORE / CATALOGUE ===================================== */
.pk-stage-h { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.pk-stage-h > i { font: 800 14px/1 var(--pk-mono); font-style: normal; color: var(--pk-violet); padding-top: 6px; }
.pk-stage-h h2 { font-size: clamp(24px, 2.6vw, 32px); }
.pk-stage-h p { color: var(--pk-muted); margin-top: 4px; }
.pk-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-left: 82px; }
.pk-feat { color: var(--pk-ink); display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--pk-r); background: var(--pk-card); border: 1px solid var(--pk-line); text-decoration: none; transition: border-color .18s, transform .18s var(--pk-ease); }
.pk-feat:hover { border-color: var(--pk-violet); transform: translateY(-2px); }
.pk-feat .f-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pk-violet-soft); color: var(--pk-violet); }
.pk-feat b { font: 700 17px/1.25 var(--pk-display); }
.pk-feat p { color: var(--pk-muted); font-size: 14px; line-height: 1.55; }
.pk-feat footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pk-stage + .pk-stage { margin-top: 44px; }

/* ===================================== PROGRAMME PAGE KIT / NEXT STEP ===================================== */
.pk-kit { border-radius: 22px; background: var(--pk-card); border: 1px solid var(--pk-line); padding: clamp(18px, 3vw, 28px); margin: 0 0 28px; }
.pk-kit-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 18px; }
.pk-kit-h h2 { font-size: clamp(20px, 2.2vw, 26px); }
.pk-kit-h p { color: var(--pk-muted); font-size: 14.5px; margin-top: 4px; max-width: 60ch; }
.pk-kit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-kit-grid a { color: var(--pk-ink); display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid var(--pk-line); background: var(--pk-paper); text-decoration: none; transition: border-color .18s, transform .18s var(--pk-ease); }
.pk-kit-grid a:hover { border-color: var(--pk-tone, var(--pk-violet)); transform: translateY(-2px); }
.pk-kit-grid .pk-ic { color: var(--pk-tone, var(--pk-violet)); width: 22px; height: 22px; }
.pk-kit-grid b { font: 700 14.5px/1.25 var(--pk-body); }
.pk-kit-grid small { color: var(--pk-muted); font-size: 12.5px; line-height: 1.4; }
.pk-blueprint { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.pk-bp { border-radius: 16px; border: 1px solid var(--pk-line); padding: 16px; background: var(--pk-paper); }
.pk-bp h3 { font-size: 15px; margin-bottom: 8px; }
.pk-bp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--pk-line); font-size: 13.5px; }
.pk-bp-row:last-child { border-bottom: 0; }
.pk-bp-row b { font: 700 12.5px/1.2 var(--pk-mono); color: var(--pk-tone, var(--pk-violet)); }
.pk-bp-bar { height: 6px; border-radius: 3px; background: var(--pk-sunk); margin-top: 6px; overflow: hidden; }
.pk-bp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--pk-tone, var(--pk-violet)); }
.pk-faq { margin-top: 18px; display: grid; gap: 8px; }
.pk-faq details { border-radius: 12px; border: 1px solid var(--pk-line); background: var(--pk-paper); padding: 0 14px; }
.pk-faq summary { cursor: pointer; padding: 13px 0; font: 700 14.5px/1.35 var(--pk-body); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after { content: "+"; font: 700 18px/1 var(--pk-mono); color: var(--pk-muted); }
.pk-faq details[open] summary::after { content: "–"; }
.pk-faq details p { padding: 0 0 14px; color: var(--pk-muted); font-size: 14px; line-height: 1.6; }
.pk-next { border-radius: 20px; padding: 18px; background: linear-gradient(120deg, var(--pk-violet-soft), var(--pk-cs-soft)); border: 1px solid var(--pk-line); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); gap: 14px 24px; align-items: center; margin: 24px 0; }
.pk-next h2, .pk-next h3 { font-size: 18px; }
.pk-next p { color: var(--pk-ink-2); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.pk-next-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-next-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--pk-card); border: 1px solid var(--pk-line-2); font: 700 13.5px/1 var(--pk-body); text-decoration: none; color: var(--pk-ink) !important; }
.pk-next-links a:hover { border-color: var(--pk-violet); }
.pk-next-links .pk-ic { width: 16px; height: 16px; color: var(--pk-violet); }
.pk-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pk-related a { font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--pk-violet) !important; padding: 6px 10px; border-radius: 999px; background: var(--pk-violet-soft); }
.pk-intro { color: var(--pk-muted); font-size: 15px; line-height: 1.65; max-width: 72ch; margin: 10px auto 0; }

/* ===================================== ABOUT ===================================== */
.pk-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.pk-about-card { padding: 22px; border-radius: var(--pk-r); background: var(--pk-card); border: 1px solid var(--pk-line); }
.pk-about-card h2 { font-size: 22px; margin-bottom: 8px; }
.pk-about-card p, .pk-about-card li { color: var(--pk-muted); font-size: 15px; line-height: 1.65; }
.pk-about-card ul { margin: 8px 0 0; padding-left: 18px; }

/* ===================================== AD SLOT (reserved, labelled) ===================================== */
.pk-ad { margin: 28px auto; max-width: 820px; text-align: center; }
.pk-ad-l { display: block; font: 700 10.5px/1 var(--pk-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pk-muted, #6b7280); margin-bottom: 8px; }
.pk-ad-box { min-height: var(--pk-ad-h, 280px); border-radius: 14px; background: var(--pk-sunk, #f1efe9); display: block; overflow: hidden; }

/* ===================================== RESPONSIVE ===================================== */
@media (max-width: 1100px) {
  .pk-hero-grid { grid-template-columns: 1fr; }
  .pk-x { max-width: 720px; }
  .pk-bench-grid, .pk-exam-grid, .pk-acc, .pk-map-top { grid-template-columns: 1fr; }
  .pk-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; }
  .pk-kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pk-wrap { width: min(1200px, 100% - 28px); }
  .pk-pick-grid { grid-template-columns: 1fr 1fr; }
  .pk-proof b { font-size: 19px; }
  .pk-intent-in { grid-template-columns: 1fr; gap: 10px; }
  .pk-intents { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -14px; }
  .pk-intents a { flex: none; }
  .pk-facts { grid-template-columns: 1fr 1fr; }
  .pk-facts div:nth-child(3) { border-left: 0; }
  .pk-facts div:nth-child(n+3) { border-top: 1px solid var(--pk-line); }
  .pk-shelf, .pk-res, .pk-about-grid, .pk-blueprint { grid-template-columns: 1fr; }
  .pk-feats { grid-template-columns: 1fr; }
  .pk-stage-h { grid-template-columns: 1fr; gap: 6px; }
  .pk-kit-grid { grid-template-columns: 1fr 1fr; }
  .pk-next { grid-template-columns: 1fr; }
  .pk-head--split { grid-template-columns: 1fr; }
  /* explainer: a simpler, shorter composition on phones */
  .pk-x-line { height: 56px; margin: 4px 10px 0; }
  .pk-x-st { width: 32px; height: 32px; }
  .pk-x-st svg { width: 15px; height: 15px; }
  .pk-x-stage { height: 250px; margin: 4px 12px 0; }
  .pk-x-cap b { font-size: 17px; }
  .pk-x-cap span { display: none; }
  .pk-x-steps { grid-template-columns: repeat(6, minmax(92px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px; }
  .pk-x-steps li { scroll-snap-align: start; }
  .pk-s1-grid { width: 100%; }
  .pk-s1-card, .pk-s2-lesson, .pk-s3-sql, .pk-s4-pyq, .pk-s6-track { display: none; }
  .pk-s2-list, .pk-s6-live { width: 100%; }
  .pk-s3-code { width: 100%; }
  .pk-s3-mcq { display: none; }
  .pk-s4-paper { width: 60%; height: 200px; }
  .pk-s4-timer { width: 36%; }
  .pk-s5-res .pk-s5-r:nth-child(3) { display: none; }
}
@media (max-width: 420px) {
  .pk-h1 { font-size: 36px; }
  .pk-kit-grid { grid-template-columns: 1fr; }
  .pk-s4-paper { width: 100%; }
  .pk-s4-timer { display: none; }
}

/* ===================================== MOTION PREFERENCES ===================================== */
@media (prefers-reduced-motion: reduce) {
  .pk *, .pk *::before, .pk *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pk-js .pk [data-pk-reveal] { opacity: 1; transform: none; }
  .pk-js .pk [data-pk-reveal]:not(.is-in) .pk-sec-row p i { transform: none; }
  .pk-x-fill { transition: none; }
}


/* ===================================== LEGACY HOMEPAGE SECTIONS =====================================
   Magic Finder, Live Arena, Android and FAQ are reused unchanged inside .kv-experience; these are the shared
   tokens and entrance rules they rely on, moved here from index.php's inline <style> (cached now, not resent). */
    /* ====================================================================
       KVCODERS EXPERIENCE SYSTEM (2026 visual redesign) -- a homepage-
       only design layer, scoped entirely under .kv-experience so it can
       never bleed into any other page. Layered ON TOP of the sitewide
       design-tokens.css (which is untouched) rather than replacing it --
       every section below still uses --font-body/--font-display/
       --brand-600/etc. for baseline text and only opts into the tokens
       below for its own distinctive accent moments.
       ==================================================================== */
    .kv-experience {
        --hx-ink: #05040D;              /* near-black/midnight base, hero + dark bands */
        --hx-ink-soft: #0B0918;
        --hx-violet: #7C6CF5;           /* electric indigo/violet -- Python, MCQ, Progress */
        --hx-violet-deep: #5B4FE8;
        --hx-cyan: #34E4E0;             /* SQL, Output -- technical/code-adjacent */
        --hx-coral: #FF6B57;            /* PYQ -- exam energy (calm state) */
        --hx-amber: #F5A623;            /* Live Challenge urgency escalation ("begins soon"/waiting) */
        --hx-lime: #A3E635;             /* Live-now / active-win energy -- used sparingly */
        --hx-line: rgba(255,255,255,.12);
        --hx-glass-bg: rgba(255,255,255,.06);
        --hx-glass-border: rgba(255,255,255,.14);
        --hx-display: 'Space Grotesk', var(--font-display); /* already loaded sitewide, unused elsewhere -- zero extra cost, gives the hero its own type character */
        --hx-ease: cubic-bezier(.16,1,.3,1);
    }

    @keyframes hxRise {
        from { opacity: 0; transform: translateY(22px) scale(.985); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes hxFloat {
        0%, 100% { transform: translateY(0) rotate(var(--hx-rot, 0deg)); }
        50%      { transform: translateY(-10px) rotate(var(--hx-rot, 0deg)); }
    }
    @keyframes hxPulseDot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50%      { opacity: .45; transform: scale(1.35); }
    }
    @keyframes hxShimmerLine {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }

    /* hidden only while JavaScript is running, so no-JS readers and crawlers see every section */
    .pk-js .kv-experience [data-reveal] {
        opacity: 0; transform: translateY(22px) scale(.985);
        transition: opacity .7s var(--hx-ease), transform .7s var(--hx-ease);
        transition-delay: var(--hx-delay, 0s);
    }
    .pk-js .kv-experience [data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

    .hx-float { animation: hxFloat 5.5s ease-in-out infinite; }
    .hx-glass {
        background: var(--hx-glass-bg); border: 1px solid var(--hx-glass-border);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    .hx-pulse-dot { animation: hxPulseDot 1.8s ease-in-out infinite; }

    @media (prefers-reduced-motion: reduce) {
        .kv-experience [data-reveal] { opacity: 1; transform: none; transition: none; }
        .hx-float, .hx-pulse-dot { animation: none; }
        .kv-experience * { scroll-behavior: auto !important; }
    }
