/* NeugenAI Learn landing page (templates/core/landing.html). Loaded only on that page.
   Builds on the tokens in app.css (navy, gold, --bg, --surface, --ink ...), so light and dark
   mode follow the rest of the app. Motion is added by js/landing.js; with no JS, or with
   reduced motion, everything is shown in its final state. */

.lp {
  --lp-navy: #212946;
  --lp-navy-2: #171d38;
  --lp-night: #11162c;
  --lp-gold: #f5c518;
  --lp-gold-ink: #a16207;
  --lp-teal: #0f9488;
  --lp-indigo: #3f4da8;
  --lp-soft-ink: #aab1d6;
  --lp-ease: cubic-bezier(.2, .7, .2, 1);
  overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  .lp { --lp-gold-ink: var(--lp-gold); --lp-indigo: #8f9bf0; --lp-teal: #2dd4bf; }
}
.lp ::selection { background: var(--lp-gold); color: var(--lp-navy); }
html:has(.lp) { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html:has(.lp) { scroll-behavior: auto; } }

.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.lp-narrow { max-width: 760px; }
.lp-narrow.lp-flush { margin: 0; padding: 0; }
.lp-gap-top { margin-top: 72px !important; }
.lp-center { text-align: center; }

.lp-h1 { font-size: clamp(2.6rem, 4.3vw, 3.9rem); line-height: 1.02; margin: 0 0 24px; color: #fff; }
.lp-h1 .lp-rise { display: block; }
.lp-h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; margin: 0 0 20px; }
.lp-h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.25; margin: 56px 0 14px; }
.lp h4 { font-size: 1.08rem; margin: 0 0 8px; letter-spacing: -.01em; }
.lp-stack span { display: block; }
.lp-gold { color: var(--lp-gold); }
.lp-body { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.lp-lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: #c9cde6; max-width: 34ch; margin: 0 0 32px; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 1rem var(--font-display); letter-spacing: -.005em; border: 1.5px solid transparent; transition: transform .2s var(--lp-ease), background .2s, box-shadow .2s; text-decoration: none !important; white-space: nowrap; }
.lp-btn span { transition: transform .2s var(--lp-ease); }
.lp-btn:hover span { transform: translateX(4px); }
.lp-btn:active { transform: scale(.98); }
.lp-btn-gold { background: var(--lp-gold); color: var(--lp-navy); box-shadow: 0 8px 30px rgba(245, 197, 24, .25); }
.lp-btn-gold:hover { background: #ffd83d; box-shadow: 0 10px 36px rgba(245, 197, 24, .38); }
.lp-btn-line { color: #fff; border-color: rgba(255, 255, 255, .28); }
.lp-btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.lp-btn-navy { background: var(--lp-navy); color: #fff; }
.lp-btn-navy:hover { background: var(--lp-night); }
.lp-btn-sm { padding: 9px 16px; font-size: .92rem; box-shadow: none; }

/* Nav + progress */
.lp-nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.lp-nav.is-solid { background: rgba(26, 32, 60, .97); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.lp-nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.lp-nav .brand { --brand-h: 26px; margin-right: auto; }
.lp-links { display: flex; gap: 22px; }
.lp-links a, .lp-login { color: #c9cde6; font-weight: 500; font-size: .95rem; }
.lp-links a:hover, .lp-login:hover { color: #fff; text-decoration: none; }
.lp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.lp-progress span { display: block; height: 100%; width: 100%; background: var(--lp-gold); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 760px) {
  .lp-links, .lp-nav .brand-rule, .lp-nav .brand-text { display: none; }
  .lp-nav-inner { gap: 14px; height: 60px; }
  .lp-nav .brand { --brand-h: 22px; }
}

/* Section rail (wide screens) */
.lp-rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 25; display: none; flex-direction: column; gap: 18px; padding: 14px 9px; border-radius: 999px; background: rgba(17, 22, 44, .9); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
@media (min-width: 1360px) { .lp-js .lp-rail { display: flex; } }
.lp-rail a { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3b4470; transition: background .3s, transform .3s var(--lp-ease); z-index: 1; }
.lp-rail a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; font: 600 .78rem var(--font-display); color: #fff; background: var(--lp-navy); padding: 4px 10px; border-radius: 999px; transition: opacity .25s, transform .25s var(--lp-ease); }
.lp-rail a:hover span, .lp-rail a.is-flash span { opacity: 1; transform: translate(0, -50%); }
.lp-rail a.is-done { background: var(--lp-gold); }
.lp-rail a.is-now { background: var(--lp-gold); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(245, 197, 24, .22); }
.lp-rail.is-complete a { background: #4ade80; }
.lp-rail.is-complete a.is-now { box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.lp-rail-track { position: absolute; left: 50%; top: 19px; bottom: 19px; width: 2px; margin-left: -1px; background: #3b4470; }
.lp-rail-track span { display: block; width: 100%; height: 100%; background: var(--lp-gold); transform-origin: 50% 0; transform: scaleY(0); }
.lp-rail.is-complete .lp-rail-track span { background: #4ade80; }

/* Reveal on scroll (only when JS is on) */
.lp-js .lp-rise { opacity: 0; transform: translateY(22px); animation: lp-rise .9s var(--lp-ease) forwards; animation-delay: var(--d, 0s); }
@keyframes lp-rise { to { opacity: 1; transform: none; } }
.lp-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--lp-ease), transform .8s var(--lp-ease); transition-delay: var(--d, 0s); }
.lp-js [data-reveal].is-in { opacity: 1; transform: none; }

/* 1. Hero */
.lp-hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: center; padding: 120px 0 96px; color: #fff; background: radial-gradient(900px 620px at 92% -8%, rgba(245, 197, 24, .2), transparent 62%), radial-gradient(700px 500px at -10% 110%, rgba(63, 77, 168, .35), transparent 60%), linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.lp-loopline { font: 400 .95rem/1.9 var(--font-mono); color: #4d5680; margin: 0; }
.lp-loopline span { transition: color .5s; }
.lp-loopline span.is-on { color: var(--lp-gold); }
.lp-scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.lp-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lp-gold); animation: lp-cue 1.8s ease-in-out infinite; }
@keyframes lp-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.lp-shortcut { margin: 0; padding: 22px 22px 18px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(5, 8, 25, .35); }
.lp-shortcut svg { display: block; width: 100%; height: auto; overflow: visible; }
.lp-shortcut figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; min-height: 3.1em; }
.lp-sc-cap { font: 500 1.02rem/1.45 var(--font-display); color: #e4e7f5; transition: opacity .35s; }
.lp-sc-cap.is-swap { opacity: 0; }
.lp-sc-legend { flex: none; display: flex; align-items: center; gap: 6px; font: .78rem var(--font-mono); color: #7f88b5; }
.lp-sc-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.lp-dot-me { background: #fff; box-shadow: 0 0 0 2px var(--lp-navy), 0 0 0 3px rgba(255, 255, 255, .6); }
.lp-dot-ai { background: #8f9bf0; }
.lp-sc-track { stroke: rgba(255, 255, 255, .2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 8; }
.lp-sc-fill { stroke: var(--lp-gold); stroke-width: 3; stroke-linecap: round; }
.lp-sc-arc { fill: none; stroke: var(--lp-gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; transition: opacity .45s; }
.lp-sc-arc.is-on { opacity: .85; }
.lp-sc-arclabel { font: 500 13px var(--font-mono); fill: var(--lp-gold); opacity: 0; transition: opacity .45s; }
.lp-sc-arclabel.is-on { opacity: .9; }
.lp-shortcut text { font-family: var(--font-mono); font-size: 13px; fill: #7f88b5; transition: fill .3s; }
.lp-sc-node circle { fill: #2c355c; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; transition: fill .3s, stroke .3s, opacity .3s; }
.lp-sc-node.is-lit circle { fill: var(--lp-gold); stroke: var(--lp-gold); }
.lp-sc-node.is-lit text { fill: #fff; }
.lp-sc-node.is-stuck circle { fill: #f87171; stroke: #f87171; }
.lp-sc-node.is-stuck text { fill: #fca5a5; }
.lp-sc-node.is-skipped circle { opacity: .3; }
.lp-sc-node.is-skipped text { fill: #4d5680; }
.lp-sc-start circle { fill: #fff; }
.lp-sc-start text { fill: #c9cde6; }
.lp-sc-end circle { fill: transparent; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-dasharray: 3 4; transition: fill .4s, stroke .4s; }
.lp-sc-end.is-hollow circle { stroke: #c9cde6; stroke-dasharray: none; }
.lp-sc-end.is-skill circle { fill: var(--lp-gold); stroke: var(--lp-gold); stroke-dasharray: none; filter: drop-shadow(0 0 12px rgba(245, 197, 24, .8)); }
.lp-sc-end.is-skill text { fill: var(--lp-gold); font-weight: 600; }
.lp-sc-walker { transition: opacity .4s; }
.lp-sc-walker.is-gone { opacity: 0; }
.lp-sc-me { fill: #fff; stroke: var(--lp-navy); stroke-width: 3; }
.lp-sc-walker.is-shake .lp-sc-me { animation: lp-shake .45s ease-in-out 2; }
@keyframes lp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lp-sc-buddy { opacity: 0; transition: opacity .4s; }
.lp-sc-buddy.is-on { opacity: 1; }
.lp-sc-buddy circle { fill: #8f9bf0; }
.lp-js .lp-sc-buddy { animation: lp-orbit 2.6s linear infinite; }
@keyframes lp-orbit { to { transform: rotate(360deg); } }

/* Sections and cards */
.lp-sec { padding: clamp(80px, 11vw, 140px) 0; background: var(--bg); color: var(--ink); }
.lp-sec-alt { background: var(--surface); }
@media (prefers-color-scheme: dark) { .lp-sec-alt { background: #11172c; } }

.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.lp-sec-alt .lp-card { background: var(--bg); }
@media (prefers-color-scheme: dark) { .lp-sec-alt .lp-card { background: var(--surface); } }
.lp-card p { color: var(--ink-2); margin: 0; line-height: 1.6; }


/* 3. Quests */
.lp-loop { list-style: none; margin: 40px 0 0; padding: 12px; border-radius: 20px; background: var(--lp-navy); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
.lp-loop li { position: relative; padding: 16px 10px; border-radius: 12px; text-align: center; font: 500 .98rem var(--font-display); color: #c9cde6; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .4s, color .4s, transform .4s var(--lp-ease), box-shadow .4s; }
.lp-loop li + li::before { content: "→"; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: var(--lp-gold); font-size: .9rem; }
.lp-loop li.is-current { background: var(--lp-gold); color: var(--lp-navy); font-weight: 600; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 197, 24, .3); border-color: var(--lp-gold); }
.lp-loop li.lp-loop-done.is-current { background: #dcfce7; color: #166534; border-color: #bbf7d0; box-shadow: 0 8px 24px rgba(74, 222, 128, .25); }
.lp-bracket { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--lp-gold-ink); font: 600 .78rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.lp-bracket::before, .lp-bracket::after { content: ""; flex: 1; height: 2px; background: var(--lp-gold); border-radius: 2px; opacity: .8; }
.lp-helpers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-helper { border-top: 3px solid var(--lp-gold); padding: 22px; }
.lp-helper p { font-size: .95rem; }
.lp-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin: 2px 0 12px; }
.lp-toggle button { border: 0; background: transparent; padding: 5px 13px; border-radius: 999px; font: 600 .8rem var(--font-display); color: var(--ink-3); cursor: pointer; transition: background .25s, color .25s; }
.lp-toggle button[aria-pressed="true"] { background: var(--lp-navy); color: var(--lp-gold); }
@media (prefers-color-scheme: dark) { .lp-toggle button[aria-pressed="true"] { background: var(--lp-gold); color: var(--lp-navy); } }
.lp-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-helper[data-mode="on"] [data-when="off"], .lp-helper[data-mode="off"] [data-when="on"] { display: none; }
.lp-helper [data-when] { animation: lp-fade .35s var(--lp-ease); }
@keyframes lp-fade { from { opacity: 0; transform: translateY(4px); } }

/* 4. Noise (a scroll scene: the section is tall, the inside sticks) */
.lp-noise { position: relative; height: 175vh; color: #fff; background: radial-gradient(800px 500px at 50% 70%, rgba(245, 197, 24, .08), transparent 70%), var(--lp-night); }
.lp-noise-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.lp-noise-head { width: 100%; padding-top: clamp(88px, 12vh, 130px); }
.lp-noise-head .lp-h2 { color: #fff; }
.lp-noise-head .lp-body { color: #aab1d6; max-width: 60ch; }
.lp-noise-field { position: relative; flex: 1; margin: 12px auto 40px; width: min(1120px, calc(100% - 32px)); }
.lp-chip { position: absolute; left: var(--x); top: var(--y); white-space: nowrap; }
.lp-noise:not(.is-near) .lp-chip { animation-play-state: paused; }
.lp-chip { padding: 8px 16px; border-radius: 999px; border: 1.5px dashed rgba(170, 177, 214, .35); color: #9aa3cc; background: rgba(255, 255, 255, .03); font-size: .95rem; animation: lp-drift var(--t, 8s) ease-in-out infinite alternate; }
@keyframes lp-drift { from { translate: 0 0; } 50% { translate: 8px -10px; } to { translate: -6px 8px; } }
.lp-upnext { position: absolute; left: 50%; top: 62%; width: min(440px, calc(100% - 40px)); transform: translate(-50%, -50%); padding: 24px 26px; border-radius: 20px; background: #fffbea; color: var(--lp-navy); border: 1.5px solid var(--lp-gold); box-shadow: 0 0 0 8px rgba(245, 197, 24, .1), 0 30px 80px rgba(245, 197, 24, .25); }
.lp-upnext::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 14px rgba(245, 197, 24, .07), 0 30px 90px rgba(245, 197, 24, .3); opacity: 0; pointer-events: none; }
.lp-upnext.is-landed::after { animation: lp-glow 2.4s ease-in-out infinite; }
@keyframes lp-glow { 50% { opacity: 1; } }
.lp-upnext-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .84rem; color: #6b7280; }
.lp-pill-gold { background: var(--lp-gold); color: var(--lp-navy); font: 600 .8rem var(--font-display); padding: 4px 12px; border-radius: 999px; }
.lp-upnext h3 { font: 600 1.4rem/1.25 var(--font-display); letter-spacing: -.015em; margin: 14px 0 16px; color: var(--lp-navy); }
.lp-upnext-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-upnext-tags span { padding: 5px 12px; border-radius: 999px; border: 1px solid #e5e0c8; background: #fff; font-size: .82rem; color: #374151; }
@media (max-width: 760px) {
  .lp-chip { font-size: .8rem; padding: 6px 12px; }
  .lp-chip:nth-child(n+11) { display: none; }
  .lp-upnext { top: 58%; padding: 20px; }
  .lp-upnext h3 { font-size: 1.2rem; }
}
.lp-noise.is-static { height: auto; }
.lp-noise.is-static .lp-noise-sticky { position: relative; height: auto; min-height: 640px; }
.lp-noise.is-static .lp-chip { opacity: .25; animation: none; }

/* 5. Build it (scrollytelling: steps on the left, a sticky stage on the right) */
.lp-flow { list-style: none; padding: 12px 0; margin: 32px 0 8px; display: flex; flex-wrap: wrap; gap: 10px 26px; position: sticky; top: 68px; z-index: 5; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.lp-flow li { position: relative; padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 .92rem var(--font-display); color: var(--ink-3); transition: background .35s, color .35s, border-color .35s, transform .35s var(--lp-ease); }
.lp-flow li + li::before { content: "→"; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.lp-flow li.is-done { color: var(--ink); border-color: var(--line-strong); }
.lp-flow li.is-now { color: var(--lp-navy); background: var(--lp-gold); border-color: var(--lp-gold); transform: translateY(-2px); }
.lp-flow li.lp-flow-stuck.is-done, .lp-flow li.lp-flow-stuck.is-now { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.lp-flow li.lp-flow-done.is-now { background: var(--good-soft); color: var(--good); border-color: transparent; }
.lp-scrolly { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); }
.lp-step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.lp-step:first-child { min-height: 48vh; }
.lp-step.is-active { opacity: 1; }
.lp-step > h3 { font: 600 clamp(1.35rem, 2.4vw, 1.75rem)/1.25 var(--font-display); letter-spacing: -.02em; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.lp-step > p { font-size: 1.08rem; line-height: 1.7; color: var(--ink-2); margin: 0; max-width: 42ch; }
.lp-bullet { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lp-b-gold { background: var(--lp-gold); } .lp-b-green { background: #16a34a; } .lp-b-indigo { background: var(--lp-indigo); } .lp-b-teal { background: var(--lp-teal); }
.lp-stage-col { position: relative; }
.lp-stage { position: sticky; top: calc(50vh - 170px); height: 400px; margin: 10vh 0; }
.lp-scene { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--lp-ease), transform .5s var(--lp-ease); pointer-events: none; }
.lp-scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.lp-scene-dark { background: var(--lp-navy); border-color: var(--lp-navy); color: #fff; }
.lp-win-bar { flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lp-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-win-bar span { margin-left: 10px; font: .8rem var(--font-mono); color: var(--ink-3); }
.lp-scene-dark .lp-win-bar { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.lp-scene-dark .lp-win-bar i { background: rgba(255, 255, 255, .18); }
.lp-scene-dark .lp-win-bar span { color: #7f88b5; }
.lp-chat { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 26px; justify-content: center; }
.lp-msg { margin: 0; padding: 14px 16px; border-radius: 14px; line-height: 1.55; max-width: 86%; font-size: .98rem; transition: opacity .4s var(--lp-ease), transform .4s var(--lp-ease); }
.lp-msg p { margin: 0; }
.lp-msg b { display: block; font: 600 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.lp-msg code { font: .88em var(--font-mono); padding: 1px 6px; border-radius: 6px; background: rgba(33, 41, 70, .08); }
.lp-msg-me { align-self: flex-end; background: var(--lp-indigo); color: #fff; }
@media (prefers-color-scheme: dark) { .lp-msg-me { background: #3f4da8; } }
.lp-msg-tutor { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.lp-msg-tutor b { color: var(--lp-gold-ink); }
.lp-msg-exam { align-self: flex-start; background: rgba(255, 255, 255, .07); }
.lp-msg-exam b { color: var(--lp-gold); }
.lp-msg-exam code { background: rgba(255, 255, 255, .12); }
.lp-msg-ans { align-self: flex-end; background: var(--lp-gold); color: var(--lp-navy); }
.lp-msg-ans code { background: rgba(33, 41, 70, .12); }
.lp-typing { align-self: flex-start; display: none; gap: 5px; padding: 14px 16px; margin: 0; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.lp-typing.is-on { display: inline-flex; }
.lp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: lp-dots 1s infinite; }
.lp-typing i:nth-child(2) { animation-delay: .15s; } .lp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dots { 50% { opacity: .25; transform: translateY(-3px); } }
.lp .is-hidden { opacity: 0; transform: translateY(8px); }
.lp .w { transition: opacity .25s; }
.lp .w.is-hidden { transform: none; }
.lp-mastered { align-self: center; margin: 6px 0 0; padding: 8px 18px; border-radius: 999px; background: #dcfce7; color: #166534; font: 600 .95rem var(--font-display); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.lp-mastered.is-hidden { transform: scale(.6); }

.lp-tests { list-style: none; margin: 0; padding: 22px 22px 8px; display: grid; gap: 10px; }
.lp-tests li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .95rem; transition: background .3s, border-color .3s; }
.lp-st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.lp-ct { font: .82rem var(--font-mono); color: var(--ink-3); }
.lp-tests li[data-state="idle"] .lp-st { border: 1.5px dashed var(--line-strong); }
.lp-tests li[data-state="idle"] .lp-ct { opacity: 0; }
.lp-tests li[data-state="run"] .lp-st { border: 2px solid var(--line-strong); border-top-color: var(--lp-indigo); animation: lp-spin .7s linear infinite; }
.lp-tests li[data-state="run"] .lp-ct { opacity: 0; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lp-tests li[data-state="pass"] .lp-st { color: var(--good); }
.lp-tests li[data-state="pass"] .lp-st::before { content: "✓"; }
.lp-tests li[data-state="fail"] { background: var(--bad-soft); border-color: transparent; }
.lp-tests li[data-state="fail"] .lp-st { color: var(--bad); }
.lp-tests li[data-state="fail"] .lp-st::before { content: "✕"; }
.lp-tests li[data-state="fail"] .lp-ct { color: var(--bad); }
.lp-tests-note, .lp-tests-sum { margin: 6px 22px 0; font-size: .9rem; transition: opacity .4s; }
.lp-tests-note { color: var(--ink-3); }
.lp-tests-sum { color: var(--good); font-weight: 600; }
.lp-bars { flex: 1; display: grid; align-content: center; gap: 22px; padding: 26px 28px 12px; }
.lp-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: .96rem; }
.lp-bars b { font: 600 .95rem var(--font-display); }
.lp-bars i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.lp-bars i i { display: block; height: 100%; width: var(--w, 0%); border: 0; border-radius: 0; background: var(--lp-indigo); }
.lp-review-note { margin: 4px 28px 26px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: .92rem; transition: opacity .4s, transform .4s; }
.lp-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.lp-notes p { margin: 0; padding-left: 20px; border-left: 3px solid var(--lp-gold); color: var(--ink-2); line-height: 1.65; }
.lp-notes b { color: var(--ink); }

/* 6. Course path */
.lp-path { list-style: none; position: relative; margin: 40px 0 28px; padding: 0; display: grid; gap: 34px; }
.lp-path-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--line); }
.lp-path-line span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(var(--lp-gold), var(--lp-teal) 40%, var(--lp-indigo) 75%, var(--lp-gold)); transform-origin: 50% 0; }
.lp-js .lp-path-line span { transform: scaleY(0); }
.lp-path-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; align-items: start; }
.lp-path-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem var(--font-display); color: #fff; background: var(--c); box-shadow: 0 0 0 6px var(--lp-ring, var(--surface)); transition: background .4s, color .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.lp-sec-alt .lp-path-num { --lp-ring: var(--surface); }
@media (prefers-color-scheme: dark) { .lp-sec-alt .lp-path-num { --lp-ring: #11172c; } }
.lp-js .lp-path-step .lp-path-num { background: var(--surface); color: var(--c); outline: 2px solid var(--c); outline-offset: -2px; transform: scale(.85); }
.lp-js .lp-path-step.is-lit .lp-path-num { background: var(--c); color: #fff; outline-color: transparent; transform: none; }
.lp-js .lp-path-step > div { opacity: .35; transform: translateX(-6px); transition: opacity .6s var(--lp-ease), transform .6s var(--lp-ease); }
.lp-js .lp-path-step.is-lit > div { opacity: 1; transform: none; }
.lp-c-gold { --c: #ca8a04; } .lp-c-teal { --c: var(--lp-teal); } .lp-c-indigo { --c: var(--lp-indigo); }
.lp-eyebrow { font: 600 .74rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.lp-path-step h3 { font: 600 1.2rem/1.3 var(--font-display); letter-spacing: -.01em; margin: 8px 0 6px; }
.lp-eyebrow + h3 { margin-top: 0; }
.lp-path-step p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.lp-hours { font: .8rem var(--font-mono); color: var(--ink-3); }
.lp-next-course { margin: 0; padding: 20px 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .lp-next-course { background: var(--surface); } }
.lp-next-course b { color: var(--ink); }
.lp-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-stripe { display: block; width: 40px; height: 4px; border-radius: 4px; margin-bottom: 16px; }

/* 7. Closing */
.lp-close { padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 90px); color: #fff; background: radial-gradient(900px 600px at 100% 0%, rgba(245, 197, 24, .16), transparent 60%), linear-gradient(180deg, var(--lp-navy), var(--lp-navy-2)); }
.lp-close .lp-body { color: #e4e7f5; }
.lp-close .lp-dim { color: #aab1d6; }
.lp-quote { margin: 30px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--lp-gold); font: 600 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--font-display); letter-spacing: -.015em; color: var(--lp-gold); }
.lp-close .lp-h3 { margin-top: 80px; }
.lp-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-who article { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .3s, transform .3s var(--lp-ease), background .3s; }
.lp-who article:hover { border-color: rgba(245, 197, 24, .5); transform: translateY(-4px); background: rgba(255, 255, 255, .06); }
.lp-who h4 { color: var(--lp-gold); }
.lp-who p { margin: 0; color: #c9cde6; line-height: 1.6; }
.lp-cta { margin-top: 80px; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--lp-gold); color: var(--lp-navy); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 30px 80px rgba(245, 197, 24, .18); }
.lp-cta-title { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; line-height: 1; }
.lp-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lp-cta-login { color: var(--lp-navy); font-weight: 500; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.lp-foot { background: var(--lp-night); color: #7f88b5; padding: 28px 0; font-size: .9rem; }
.lp-foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-foot .brand { --brand-h: 22px; margin-right: auto; }
.lp-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-foot a { color: #aab1d6; }
.lp-foot a:hover { color: #fff; }

/* Layout breakpoints */
@media (max-width: 960px) {
  .lp-hero { padding-top: 104px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-loopline { display: none; }
  .lp-ctas { margin-bottom: 0; }
  .lp-helpers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-scroll-cue { display: none; }
}
@media (max-width: 900px) {
  .lp-scrolly { grid-template-columns: minmax(0, 1fr); }
  .lp-stage-col { display: none; }
  .lp-step, .lp-step:first-child { min-height: 0; opacity: 1; margin-bottom: 48px; }
  .lp-step .lp-scene { position: relative; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 22px; min-height: 340px; }
  .lp-flow { position: static; }
}
@media (max-width: 1000px) {
  .lp-flow { gap: 8px; }
  .lp-flow li + li::before { content: none; }
}
@media (max-width: 760px) {
  .lp-loop { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lp-loop li + li::before { content: none; }
  .lp-people, .lp-who, .lp-notes { grid-template-columns: minmax(0, 1fr); }
  .lp-flow { gap: 8px; }
  .lp-flow li + li::before { content: none; }
  .lp-flow li { padding: 7px 13px; font-size: .84rem; }
  .lp-cta-actions { align-items: flex-start; }
  .lp-shortcut { padding: 16px 12px 12px; }
  .lp-shortcut figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 520px) {
  .lp-shortcut text { font-size: 18px; }
  .lp-sc-node[data-x="113"] text, .lp-sc-node[data-x="260"] text, .lp-sc-node[data-x="407"] text { transform: translateY(-50px); }
  .lp-sc-arclabel { font-size: 15px; }
  .lp-helpers { grid-template-columns: minmax(0, 1fr); }
  .lp-ctas .lp-btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .lp-js .lp-rise, .lp-js [data-reveal] { opacity: 1; transform: none; }
}
