/* ══════════════════════════════════════════════════════════════════
   NAADI AI — Learn page (site/learn.html)
   Its own layout, the site's colours: the dark bands of the other pages
   (--site-ink navy) with the site's own accents, brightened for a dark
   ground. Only the header and footer come from site.css; the header is
   re-inked here so it stays dark over a dark page.
     Study       sky blue  #7db3ec   (--site-sky; solid --g500 #2f6cb3)
     Watch       amber     #f0b23e   (--amber #c07c12, lifted)
     Experiment  teal      #3cc6c9   (--indigo #0f6f8c, lifted)
     Notes       green     #4cc38a   (--site-ok, lifted)
     Nia         violet    the app's Nia colour, kept wherever Nia speaks
   ONE SCREEN AT A TIME. Every .lx-pan is one screen tall and the page
   snaps to each in turn (html scroll-snap, mandatory). The fixed header
   is the scroll-padding, so a panel lands just under it. On a phone a
   panel can be taller than the screen; .lx-stop marks the extra stops
   inside it, so a scroll never leaves a block half on screen.
   Phone first; side by side from 980px.
   ══════════════════════════════════════════════════════════════════ */
html:has(body.lx) { scroll-snap-type: y mandatory; scroll-padding-top: var(--site-nav, 66px) }
@media (prefers-reduced-motion: reduce) { html:has(body.lx) { scroll-snap-type: y proximity } }
.lx {
  --nav: var(--site-nav, 66px);
  --bg: #0B1220; --card: #121c30; --card2: #16223a; --line: rgba(255,255,255,.09);
  --ink: #f4f7fb; --ink2: #b3bfd1; --ink3: #7a879c;
  --study: #7db3ec; --study-s: #2f6cb3; --watch: #f0b23e; --watch-s: #c07c12; --exp: #3cc6c9; --exp-s: #0f8c95;
  --note: #4cc38a; --nia: #8b7cf6; --heart: #e5484d;
  --fd: 'Sora', sans-serif; --fb: 'DM Sans', sans-serif; --fm: 'JetBrains Mono', monospace;
  background: var(--bg); color: var(--ink2);
}
.lx main { overflow: clip }
.lx h1, .lx h2, .lx h3 { color: var(--ink); font-family: var(--fd); margin: 0 }
.lx em { font-style: normal }
.lx p { margin: 0 }
.lx .nd-foot { scroll-snap-align: end }

/* ── header, inked for a dark page ─────────────────────────────── */
.lx .nd-nav, .lx .nd-nav.scrolled { background: rgba(11,18,32,.94); border-bottom-color: var(--line); box-shadow: none;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px) }
.lx .nd-nav:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none }
.lx .nd-nav .nd-wordmark-text { color: #fff }
.lx .nd-nav .nd-wordmark-text span { color: var(--study) }
.lx .nd-nav .nd-wordmark-underline path { stroke: #fff }
.lx .nd-nav .nd-link { color: rgba(255,255,255,.78) }
.lx .nd-nav .nd-link:hover, .lx .nd-nav .nd-link.on { color: #fff; background: rgba(255,255,255,.1) }
.lx .nd-nav .nd-nav-cta { border-left-color: rgba(255,255,255,.18) }
.lx .nd-nav .nd-burger { background: rgba(255,255,255,.12); color: #fff }

/* ── reveal on scroll ──────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1) }
.rv.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none } }

/* ── a panel: one screen ───────────────────────────────────────── */
.lx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px }
.lx-pan { position: relative; min-height: calc(100svh - var(--nav)); display: flex; align-items: center; padding: 28px 0; scroll-snap-align: start }
@media (max-width: 979px) { .lx-stop { scroll-snap-align: start; scroll-margin-top: 12px } }

/* ══════════ HERO ══════════ */
.lx-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 12px) 0 70px; scroll-snap-align: start;
  background: radial-gradient(110% 80% at 72% 32%, #2a1424 0%, #121a2e 45%, var(--bg) 75%) }
.lx-hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s }
.lx-hero-3d.ready { opacity: 1 }
@media (max-width: 979px) { .lx-hero-3d.ready { opacity: .5 } }
.lx-hero-glow { position: absolute; width: 70vmin; height: 70vmin; right: -10vmin; top: 8vh; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,72,77,.28), rgba(229,72,77,0) 65%); filter: blur(10px); animation: glow 0.83s infinite; pointer-events: none }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: .75 } 12% { transform: scale(1.08); opacity: 1 } 30% { transform: scale(1.02) } }
.lx-ecg { position: absolute; left: 0; right: 0; bottom: 56px; width: 100%; height: 110px; pointer-events: none; opacity: .85 }
.lx-hero-in { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px }
.lx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: #f3a6a9 }
.lx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: ping .83s infinite }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.6) } 70% { box-shadow: 0 0 0 10px rgba(229,72,77,0) } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0) } }
.lx-h1 { margin: 14px 0 14px; font-size: clamp(44px, min(13vw, 10vh), 100px); line-height: .95; letter-spacing: -.035em; font-weight: 800 }
.lx-h1 .w { display: block; opacity: 0; transform: translateY(40px) skewY(4deg); animation: wordIn .9s cubic-bezier(.2,.8,.2,1) forwards }
.lx-h1 .w1 { color: #fff; animation-delay: .15s }
.lx-h1 .w2 { color: var(--watch); animation-delay: .55s }
.lx-h1 .w3 { color: var(--exp); animation-delay: .95s }
@keyframes wordIn { to { opacity: 1; transform: none } }
.lx-lead { max-width: 40ch; font-size: 17px; line-height: 1.5; color: #c9d2e1; opacity: 0; animation: wordIn .9s 1.3s forwards }

.lx-quiz { margin-top: 22px; max-width: 520px; padding: 16px; border-radius: 20px; background: rgba(18,28,48,.78);
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; animation: wordIn .9s 1.6s forwards }
.lx-quiz-k { font: 700 11px/1 var(--fm); letter-spacing: .12em; text-transform: uppercase; color: var(--watch) }
.lx-quiz-q { margin-top: 8px !important; font: 700 18px/1.3 var(--fd); color: #fff }
.lx-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px }
.lx-quiz-opts button { text-align: left; padding: 11px 13px; border-radius: 13px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #e6ecf5; font: 600 14px/1.3 var(--fb); cursor: pointer; transition: background .2s, border-color .2s, transform .15s }
.lx-quiz-opts button:hover { background: rgba(255,255,255,.08) }
.lx-quiz-opts button:active { transform: scale(.98) }
.lx-quiz-opts button.ok { background: rgba(76,195,138,.16); border-color: var(--note); color: #fff }
.lx-quiz-opts button.no { background: rgba(229,72,77,.14); border-color: var(--heart) }
.lx-quiz-opts.done button:not(.ok):not(.no) { opacity: .45 }
.lx-quiz-a { margin-top: 10px !important; font-size: 14.5px; line-height: 1.5; color: #dbe3ef }
.lx-quiz-a:empty { display: none }
.lx-quiz-a b { color: #fff }
.lx-quiz-a a { color: var(--study); font-weight: 700; text-decoration: none }

.lx-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--fb); color: #cbd5e1; text-decoration: none; white-space: nowrap }
.lx-scroll i { animation: bob 1.6s infinite }
@keyframes bob { 50% { transform: translateY(5px) } }

/* ── the three steps: a rail on a laptop, a line on a phone ────── */
.lx-bar { position: fixed; z-index: 41; left: 0; right: 0; top: var(--nav); height: 3px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--study), var(--watch), var(--exp)); opacity: 0; transition: opacity .3s; pointer-events: none }
.lx-bar.show { opacity: 1 }
.lx-rail { display: none }
@media (min-width: 980px) {
  .lx-bar { display: none }
  .lx-rail { position: fixed; z-index: 40; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
    opacity: 0; pointer-events: none; transition: opacity .4s }
  .lx-rail.show { opacity: 1; pointer-events: auto }
  .lx-rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink3); font: 700 12.5px/1 var(--fd) }
  .lx-rail a span { order: 1; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap;
    padding: 6px 10px; border-radius: 999px; background: rgba(11,18,32,.9); border: 1px solid var(--line) }
  .lx-rail a span b { font: 700 10px/1 var(--fm); opacity: .7; margin-right: 3px }
  .lx-rail a i { order: 2; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); transition: height .3s, background .3s }
  .lx-rail a:hover span { opacity: 1; transform: none }
  .lx-rail a.on i { height: 30px }
  .lx-rail a.on[data-s=study] i { background: var(--study) } .lx-rail a.on[data-s=study] span { color: var(--study) }
  .lx-rail a.on[data-s=watch] i { background: var(--watch) } .lx-rail a.on[data-s=watch] span { color: var(--watch) }
  .lx-rail a.on[data-s=experiment] i { background: var(--exp) } .lx-rail a.on[data-s=experiment] span { color: var(--exp) }
}
/* the label only shows where there is a margin for it */
@media (min-width: 1400px) { .lx-rail a.on span { opacity: 1; transform: none } }

/* ── section heads ─────────────────────────────────────────────── */
.lx-head { max-width: 640px; margin-bottom: 22px }
.lx-num { font: 700 12px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase }
.lx-study .lx-num { color: var(--study) } .lx-watch .lx-num { color: var(--watch) } .lx-exp .lx-num { color: var(--exp) } .lx-thread .lx-num { color: var(--note) }
.lx-head h2, .lx-shelf h2 { margin: 12px 0 12px; font-size: clamp(32px, min(8.6vw, 6.4vh), 56px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800 }
.lx-study h2 em { color: var(--study) } .lx-watch h2 em { color: var(--watch) } .lx-exp h2 em { color: var(--exp) } .lx-thread h2 em { color: var(--note) }
.lx-head > p:last-child { font-size: 16.5px; line-height: 1.55; color: var(--ink2) }
.lx-head-row h2 { font-size: clamp(30px, min(8vw, 5.4vh), 48px) }
.lx-head-sm h2 { font-size: clamp(28px, min(7vw, 4.6vh), 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12 }
.lx-head-sm h2 em { color: var(--watch) }
.lx-head-sm > p:last-child { font-size: 15.5px }
.lx-cap { margin-top: 10px !important; font-size: 13px; color: var(--ink3); text-align: center }
.lx-cap b { color: var(--ink) }

/* ── phone frame ───────────────────────────────────────────────── */
.lx-phone { position: relative; height: min(calc(100svh - var(--nav) - 76px), 760px); aspect-ratio: 9 / 18.6; max-width: 100%; margin: 0 auto; border-radius: 42px; padding: 10px;
  background: linear-gradient(145deg, #2a3346, #121826); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset }
.lx-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #0b1220; isolation: isolate }
.lx-phone-screen iframe, .lx-phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: #0b1220 }
.lx-phone-notch { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 99px; background: #05070c }
.lx-phone-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--ink3); font-size: 14px; z-index: 0 }
.lx-phone-wait i { font-size: 28px; color: var(--heart); animation: glow .83s infinite }
.lx-phone-screen iframe { z-index: 1; opacity: 0; transition: opacity .5s }
.lx-phone-screen iframe.on { opacity: 1 }

/* ══════════ 01 STUDY ══════════ */
.lx-study { background: radial-gradient(90% 60% at 10% 0%, rgba(47,108,179,.22), transparent 60%), var(--bg) }
.lx-study-grid { display: grid; gap: 18px }
.lx-study-grid > *, .lx-exp-grid > * { min-width: 0 }
.lx-stages { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px }
.lx-stages::-webkit-scrollbar { display: none }
.lx-stages li { flex: none }
.lx-stages li > button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 9px 13px 9px 9px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink2); cursor: pointer; transition: background .3s, border-color .3s, transform .2s }
.lx-stages li > button:hover { background: rgba(125,179,236,.08) }
.lx-stages i { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--ink3); font-size: 14px; transition: background .3s, color .3s }
.lx-stages b { display: block; font: 700 14.5px/1.25 var(--fd); color: var(--ink); white-space: nowrap }
.lx-stages small { display: none; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink3) }
.lx-stages li.on > button { background: rgba(47,108,179,.22); border-color: rgba(125,179,236,.65) }
.lx-stages li.on i { background: var(--study-s); color: #fff }
.lx-stages li.seen i { color: var(--study) }
.lx-stages li.on.seen i { color: #fff }

/* the real studio, each step whole: laid out at laptop width, scaled to fit */
.lx-screen { display: flex; flex-direction: column; height: min(calc(100svh - var(--nav) - 24px), 820px); min-height: 520px; border-radius: 22px; overflow: hidden;
  background: #f4f6fa; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.1) }
.lx-screen-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #e8edf4; border-bottom: 1px solid #d7dee8; font: 500 13px/1.2 var(--fb); color: #475569; min-width: 0 }
.lx-screen-dots { display: none; gap: 6px } .lx-screen-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1 }
.lx-screen-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lx-screen-t b { color: #0f172a; font-family: var(--fd) }
.lx-live { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--fd); color: #157f3c; background: #dcf3e5; padding: 6px 9px; border-radius: 99px }
.lx-live i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; animation: ping 1.6s infinite }
.lx-screen-in { position: relative; flex: 1; min-height: 0; overflow: hidden }
.lx-screen-in iframe { position: absolute; top: 0; left: 0; border: 0; display: block; transform-origin: 0 0; opacity: 0; transition: opacity .5s; z-index: 1 }
.lx-screen-in iframe.on { opacity: 1 }
.lx-screen .lx-phone-wait { color: #64748b }

/* phones: the stage icons along the top of the screen; the open stage's words under the grid */
.lx-screen-tabs { display: none }
.lx-st-now { display: none }
@media (max-width: 979px) {
  .lx-study .lx-head { margin-bottom: 14px }
  .lx-study-l .lx-head h2 { font-size: 30px }
  .lx-study-l .lx-head > p:last-child { font-size: 14.5px; line-height: 1.5 }
  .lx-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible }
  .lx-stages li > button { padding: 8px 10px 8px 8px }
  .lx-stages li.on > button { background: rgba(47,108,179,.3); border-color: rgba(125,179,236,.7) }
  .lx-study .lx-stages li.on { background: none; box-shadow: none }
  .lx-study .lx-stages li .lx-st-more { display: none !important }
  .lx-st-now { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(47,108,179,.14); border: 1px solid rgba(125,179,236,.35) }
  .lx-st-now p { font-size: 13.5px; line-height: 1.5; color: #c9d6e8 }
  .lx-st-now p b { color: #fff }
  .lx-screen { height: calc(100svh - var(--nav) - 18px); min-height: 0; margin-top: 18px }
  .lx-screen-bar { padding: 9px 12px }
  .lx-screen-tabs { flex: none; display: flex; gap: 4px; padding: 7px 8px; background: #eef2f7; border-bottom: 1px solid #d7dee8 }
  .lx-screen-tabs button { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 6px; border: 0; border-radius: 10px;
    background: transparent; color: #64748b; font: 700 12px/1 var(--fd); cursor: pointer; transition: flex-grow .3s, background .3s }
  .lx-screen-tabs button i { font-size: 13px }
  .lx-screen-tabs button span { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .lx-screen-tabs button.on { flex-grow: 3.2; background: var(--study-s); color: #fff }
  .lx-screen-tabs button.on span { display: inline }
}

/* the open stage: what it does for you, and its steps */
.lx-st-more { display: none; padding: 2px 14px 12px 56px }
.lx-stages li.on .lx-st-more { display: block; animation: dIn .35s }
.lx-stages li.on > button small { display: none }
@keyframes dIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.lx-st-more p { font-size: 13.5px; line-height: 1.5; color: #c9d6e8 }
.lx-st-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px }
.lx-st-steps button { padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(125,179,236,.35); background: transparent; color: #cfe0f5; font: 600 12px/1 var(--fd); cursor: pointer }
.lx-st-steps button.on { background: var(--study); border-color: var(--study); color: #0B1220 }
.lx-stages li.on { background: rgba(47,108,179,.16); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(125,179,236,.55) }
.lx-stages li.on > button { background: transparent; border-color: transparent; transform: none }

.lx-lock .lx-head { margin-bottom: 26px }
.lx-study-extras { display: grid; gap: 12px }
.lx-card { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line) }
.lx-card-k { font: 700 11px/1 var(--fm); letter-spacing: .12em; text-transform: uppercase; color: var(--study) }
.lx-card h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.25 }
.lx-card h3 em { color: var(--study) }
.lx-card > p { font-size: 14.5px; line-height: 1.55 }
.lx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #0B1220; font: 700 15px/1 var(--fd); text-decoration: none; transition: transform .15s, box-shadow .2s }
.lx-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255,255,255,.4) }
.lx-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22) }
.lx-btn.blue { background: var(--study-s); color: #fff }
.lx-revise .lx-btn { margin-top: 16px; padding: 11px 16px; font-size: 14px }
.lx-cal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 14px 0 }
.lx-cal span { aspect-ratio: 1 / 1.25; border-radius: 10px; background: rgba(255,255,255,.05); display: grid; place-content: center; text-align: center;
  font: 700 10.5px/1.1 var(--fd); color: var(--ink3); transition: background .4s, color .4s, transform .4s }
.lx-cal span small { display: block; font: 500 9px/1.2 var(--fb); margin-top: 3px; opacity: .8 }
.lx-cal span.off { font-size: 10px; opacity: .45 }
.lx-cal span.lit { background: var(--study-s); color: #fff; transform: translateY(-3px) }
.lx-cal span.lit[data-d="0"] { background: #334155 }
.lx-cal span.lit[data-d="7"] { background: linear-gradient(135deg, var(--study-s), var(--exp-s)) }
.lx-card .lx-big { font: 800 56px/1 var(--fd); color: #fff; margin: 12px 0 6px !important; letter-spacing: -.03em }

/* ══════════ 02 WATCH ══════════ */
.lx-watch { background: radial-gradient(90% 60% at 90% 0%, rgba(192,124,18,.16), transparent 60%), var(--bg) }
.lx-watch-grid { display: grid; gap: 18px }
.lx-watch-grid > * { min-width: 0 }
.lx-side { display: grid; gap: 12px }
.lx-desk-video { order: -1 }
.lx-desk-notes, .lx-desk-nia { padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px }
.lx-desk-h { font: 700 15px/1.2 var(--fd); color: #fff }
.lx-desk-h > .fa-regular { color: var(--watch); margin-right: 4px }
.lx-desk-h small { display: block; margin-top: 4px; font: 500 12.5px/1.2 var(--fb); color: var(--ink3) }
.lx-desk-pad { min-height: 96px; flex: 1; padding: 14px; border-radius: 14px; background: #0f1828; border: 1px solid rgba(255,255,255,.08);
  font: 14.5px/1.6 var(--fb); color: #eef2f8; white-space: pre-wrap }
.lx-desk-pad::after { content: "▍"; color: var(--watch); animation: blink 1s steps(1) infinite }
@keyframes blink { 50% { opacity: 0 } }
.lx-desk-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.lx-chip { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font: 700 12.5px/1 var(--fd); color: #cbd5e1 }
.lx-chip.v { border-color: rgba(139,124,246,.4); background: rgba(139,124,246,.12); color: #e9e5ff; font-family: var(--fb); font-weight: 600 }
.lx-saved { font-size: 12px; color: var(--note); opacity: 0; transition: opacity .4s }
.lx-saved.on { opacity: 1 }
.lx-spark { font-style: normal; color: var(--nia) }
.lx-nia-log { flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 10px }
.lx-nia-q { align-self: flex-end; max-width: 88%; padding: 10px 13px; border-radius: 16px 16px 4px 16px; background: #6d5ce8; color: #fff; font-size: 14px; line-height: 1.4 }
.lx-nia-a { max-width: 94%; min-height: 3.2em; padding: 11px 13px; border-radius: 16px 16px 16px 4px; background: var(--card2); color: #e6ecf5; font-size: 14px; line-height: 1.5 }
.lx-phone-v { aspect-ratio: 9 / 16.9; height: auto; width: min(100%, 340px) }
.lx-phone-v video { object-fit: contain; background: #000 }
.lx-sound { position: absolute; z-index: 2; right: 12px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font: 600 12.5px/1 var(--fb); cursor: pointer; backdrop-filter: blur(6px) }
.lx-sound.on span { display: none }

.lx-reel-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent) }
.lx-reel-track::-webkit-scrollbar { display: none }
.lx-reel figure { flex: none; margin: 0; scroll-snap-align: start }
.lx-reel video { height: min(calc(100svh - var(--nav) - 230px), 520px); aspect-ratio: 9 / 16; border-radius: 18px; background: #101828; object-fit: cover; display: block; border: 1px solid var(--line) }
.lx-reel figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--ink2) }
.lx-reel figcaption b { display: block; font: 700 11px/1.2 var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--watch) }

.lx-shelf { display: grid; gap: 16px; padding: 20px; border-radius: 28px; background: linear-gradient(160deg, #15203a, #0d1526); border: 1px solid var(--line) }
.lx-shelf h2 em { color: var(--watch) }
.lx-shelf-copy > p:not(.lx-num):not(.lx-credit) { font-size: 15px; line-height: 1.55 }
.lx-shelf-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px }
.lx-shelf-pick button { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #cbd5e1; font: 700 13px/1 var(--fd); cursor: pointer }
.lx-shelf-pick button[aria-pressed=true] { background: var(--watch-s); border-color: var(--watch); color: #fff }
.lx-credit { font-size: 11.5px; color: var(--ink3) }
.lx-shelf-stage { position: relative; height: min(46svh, 340px); border-radius: 20px; background: radial-gradient(circle at 50% 60%, #1e2a45, #0c1322 70%); overflow: hidden; cursor: grab; touch-action: pan-y }
.lx-shelf-stage:active { cursor: grabbing }
.lx-shelf-stage canvas { width: 100%; height: 100%; display: block }
.lx-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden }
.lx-tags[hidden] { display: none }
.lx-hero-tags { z-index: 1; opacity: 0; transition: opacity 1s }
.lx-hero-tags.in { opacity: 1 }
.lx-hero-tags .lx-t i { box-shadow: 0 0 0 3px rgba(229,72,77,.6) }
.lx-hero-tags .lx-t b { border-color: rgba(255,255,255,.22); font-size: 13px; padding: 6px 10px }
.lx-hero-tags .lx-t b::before { background: rgba(255,255,255,.5) }
@media (max-width: 980px) { .lx-hero-tags { display: none } }
.lx-t { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .25s; will-change: transform }
.lx-t.on { opacity: 1 }
.lx-t i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(240,178,62,.55) }
.lx-t b { position: absolute; left: 14px; top: -12px; white-space: nowrap; padding: 5px 9px; border-radius: 8px; background: rgba(11,18,32,.86);
  border: 1px solid rgba(240,178,62,.5); font: 700 12px/1 var(--fd); color: #fff; backdrop-filter: blur(4px) }
.lx-t b::before { content: ""; position: absolute; top: 50%; left: -11px; width: 10px; height: 1px; background: rgba(240,178,62,.7) }
.lx-t.l b { left: auto; right: 14px }
.lx-t.l b::before { left: auto; right: -11px }
.lx-tag-sw { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(11,18,32,.7); color: var(--ink2); font: 700 12px/1 var(--fd) }
.lx-tag-sw[aria-pressed=true] { color: #fff; border-color: rgba(240,178,62,.6) }
.lx-drag { position: absolute; right: 12px; bottom: 12px; font: 600 12px/1 var(--fb); color: var(--ink3); pointer-events: none }

/* ══════════ 03 EXPERIMENT ══════════ */
.lx-exp { background: radial-gradient(90% 60% at 10% 10%, rgba(15,140,149,.18), transparent 60%), var(--bg) }
.lx-mini { padding: 18px; border-radius: 26px; background: #08121d; border: 1px solid rgba(60,198,201,.25); box-shadow: 0 0 60px -20px rgba(60,198,201,.25) }
.lx-mini-k { font: 700 11px/1 var(--fm); letter-spacing: .12em; text-transform: uppercase; color: var(--exp) }
.lx-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.lx-mini-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; counter-reset: ms }
.lx-mini-steps li { counter-increment: ms; padding: 5px 10px; border-radius: 99px; font: 700 11.5px/1 var(--fd); color: var(--ink3); background: rgba(255,255,255,.04) }
.lx-mini-steps li::before { content: counter(ms) " · "; opacity: .7 }
.lx-mini-steps li.on { color: #08121d; background: var(--exp) }
.lx-mini-steps li.done { color: var(--exp) }
.lx-mini-task { margin-top: 8px !important; font: 700 18px/1.35 var(--fd); color: #fff }
.lx-mini-task b { color: var(--exp) }
.lx-monitor { position: relative; margin-top: 14px; border-radius: 18px; background: #020a0a; border: 1px solid rgba(74,222,128,.18); overflow: hidden }
.lx-monitor canvas { display: block; width: 100%; height: 180px; cursor: crosshair }
.lx-monitor-read { position: absolute; top: 10px; right: 10px; text-align: right; color: #4ade80; pointer-events: none; padding: 8px 10px; border-radius: 12px; background: rgba(2,10,10,.82); box-shadow: 0 0 0 1px rgba(74,222,128,.15) }
.lx-monitor-read b { display: inline-block; font: 800 32px/1 var(--fm) }
.lx-monitor-read small { display: block; font: 500 11px/1.2 var(--fm); opacity: .8 }
.lx-rr { display: block; margin-top: 4px; font: 500 11px/1.2 var(--fm); color: #86efac }
.lx-rr b { font-size: 11px }
.lx-heart { display: inline-block; margin-right: 6px; color: var(--heart); font-size: 18px; vertical-align: 8px }
.lx-heart.beat { animation: beat .25s }
@keyframes beat { 40% { transform: scale(1.35) } }
.lx-phases { display: flex; gap: 3px; margin-top: 10px }
.lx-phases span { min-width: 0; flex: 1 1 0; padding: 7px 9px; border-radius: 9px; transition: flex-grow .35s; overflow: hidden }
.lx-phases b { display: block; font: 700 11.5px/1.2 var(--fd); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lx-phases em { display: block; white-space: nowrap; margin-top: 2px; font: 600 12px/1.2 var(--fm); color: rgba(255,255,255,.85) }
.lx-phases .a { background: rgba(240,178,62,.3); box-shadow: inset 0 -3px 0 rgba(240,178,62,.9) }
.lx-phases .v { background: rgba(229,72,77,.3); box-shadow: inset 0 -3px 0 rgba(229,72,77,.9) }
.lx-phases .r { background: rgba(125,179,236,.16); box-shadow: inset 0 -3px 0 rgba(125,179,236,.6) }
.lx-mini-out { margin-top: 10px !important; font: 600 13.5px/1.3 var(--fb); color: var(--ink2) }
.lx-mini-out b { font: 800 16px/1 var(--fm); color: #fff }
.lx-mini-out small { margin-left: 6px; color: var(--ink3); font-size: 12px }
.lx-slider { display: flex; align-items: center; gap: 14px; margin-top: 14px; font: 600 13px/1 var(--fb); color: var(--ink2) }
.lx-slider input { flex: 1; accent-color: var(--exp); height: 28px }
.lx-mini-waves[hidden] { display: none }
.lx-mini-waves { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px }
.lx-mini-waves span { padding: 8px 12px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.2); font: 700 14px/1.2 var(--fd); color: var(--ink2) }
.lx-mini-waves span small { display: block; font: 500 11.5px/1.2 var(--fb); color: var(--ink3) }
.lx-mini-waves span.got { border-style: solid; border-color: #4ade80; background: rgba(74,222,128,.1); color: #fff }
.lx-mini-done { margin-top: 12px !important; font-size: 15px; line-height: 1.5; color: #d1fae5 }
.lx-mini-done:empty { display: none }
.lx-mini-done b { color: #fff }

.lx-labs { display: grid; gap: 12px }
.lx-lab { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; color: var(--ink2);
  transition: transform .2s, border-color .2s, box-shadow .2s }
.lx-lab:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 18px 40px -18px var(--c) }
.lx-lab img { flex: none; width: 84px; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 13px }
.lx-lab small { display: block; font: 700 11px/1.2 var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--c) }
.lx-lab b { display: block; margin: 5px 0 4px; font: 700 17px/1.25 var(--fd); color: #fff }
.lx-lab em { font-size: 13.5px; color: var(--ink3) }

.lx-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(4,8,16,.84); backdrop-filter: blur(10px); padding: 14px }
.lx-modal[hidden] { display: none }
.lx-modal-in { position: relative; height: min(92svh, 860px); aspect-ratio: 9 / 18.6; max-width: 100% }
.lx-phone-lab { width: 100%; height: 100% }
.lx-modal-x { position: absolute; z-index: 3; top: -6px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0B1220; font-size: 18px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4) }

/* ══════════ THE THREAD ══════════ */
.lx-thread { background: radial-gradient(80% 60% at 50% 0%, rgba(76,195,138,.12), transparent 60%), var(--bg) }
.lx-flow { display: grid; gap: 14px; align-items: center }
.lx-src { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center }
.lx-src span { padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font: 700 13.5px/1 var(--fd); color: #fff; opacity: .5; transition: opacity .4s, border-color .4s, transform .4s }
.lx-src span i { margin-right: 6px; color: var(--note) }
.lx-src span.on { opacity: 1; border-color: var(--note); transform: translateY(-2px) }
.lx-book { padding: 18px; border-radius: 22px; background: #fbf8f1; color: #1e293b; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); background-image: repeating-linear-gradient(#fbf8f1 0 27px, #e8eef6 27px 28px) }
.lx-book-h { font: 800 17px/1.2 var(--fd); color: #0f172a; padding-bottom: 12px; border-bottom: 2px solid #2f6cb3; margin-bottom: 10px !important }
.lx-book-h i { color: #2f6cb3; margin-right: 6px }
.lx-note { margin-top: 10px; padding: 10px 13px; border-radius: 12px; background: #fff; border-left: 4px solid #94a3b8; font: 600 15px/1.45 var(--fb); color: #0f172a; box-shadow: 0 2px 6px rgba(15,23,42,.06);
  opacity: 0; transform: translateX(-40px) rotate(-2deg); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1) }
.lx-note small { display: block; margin-bottom: 4px; font: 700 11px/1.2 var(--fb); color: #64748b }
.lx-note.n2 { border-left-color: #0f8c95 } .lx-note.n1, .lx-note.n3 { border-left-color: #c07c12 }
.lx-note.in { opacity: 1; transform: none }
.lx-nia { justify-self: center; text-align: center; padding: 14px 20px; border-radius: 18px; background: rgba(139,124,246,.12); border: 1px solid rgba(139,124,246,.32) }
.lx-nia p { font-size: 12.5px; color: #c4b5fd }
.lx-nia b { display: block; margin-top: 4px; font: 700 15px/1.2 var(--fd); color: #fff; transition: opacity .3s }

/* ══════════ END ══════════ */
.lx-end { background: var(--bg) }
.lx-now { display: grid; gap: 10px; margin-top: 18px }
.lx-now div { padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px }
.lx-now b { font: 800 15px/1.2 var(--fd); color: #fff }
.lx-now div:nth-child(1) b { color: var(--study) } .lx-now div:nth-child(2) b { color: var(--watch) } .lx-now div:nth-child(3) b { color: var(--exp) }
.lx-now span { font-size: 13.5px; line-height: 1.45 }
.lx-cta { text-align: center; padding: 40px 20px; border-radius: 30px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(47,108,179,.45), rgba(192,124,18,.14) 55%, rgba(15,140,149,.12) 80%), #101a2e; border: 1px solid var(--line) }
.lx-cta h2 { font-size: clamp(34px, min(8vw, 7vh), 60px); letter-spacing: -.03em; line-height: 1.05 }
.lx-cta h2 em { background: linear-gradient(90deg, var(--study), var(--watch), var(--exp)); -webkit-background-clip: text; background-clip: text; color: transparent }
.lx-cta p { max-width: 52ch; margin: 14px auto 0 !important; font-size: 16px; line-height: 1.55; color: #cbd5e1 }
.lx-cta-b { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px }
.lx-cta-b .lx-btn:first-child { background: var(--study-s); color: #fff }
.lx-info { position: relative; margin-top: 14px; display: flex; justify-content: flex-end }
.lx-info-b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent;
  color: var(--ink3); font: 600 12px/1 var(--fb); cursor: pointer }
.lx-info-b:hover, .lx-info-b[aria-expanded=true] { color: #fff; border-color: rgba(255,255,255,.25) }
.lx-info-p { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: min(420px, calc(100vw - 36px)); padding: 14px 16px; border-radius: 14px;
  background: #16223a; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-size: 12.5px; line-height: 1.55; color: var(--ink2) }
.lx-info-p[hidden] { display: none }
.lx-info-p p + p { margin-top: 8px !important }
.lx-info-p b { color: #fff }

/* ══════════ wider screens ══════════ */
@media (min-width: 700px) {
  .lx-wrap { padding: 0 28px }
  .lx-labs { grid-template-columns: repeat(3, 1fr) }
  .lx-lab { flex-direction: column; align-items: stretch; padding: 12px }
  .lx-lab img { width: 100%; height: min(calc(100svh - var(--nav) - 330px), 440px); aspect-ratio: auto }
  .lx-study-extras { grid-template-columns: repeat(3, 1fr) }
  .lx-now { grid-template-columns: repeat(3, 1fr) }
}
@media (min-width: 980px) {
  .lx-wrap { padding: 0 56px }
  .lx-hero-in { padding: 0 56px }
  .lx-lead { font-size: 18px }
  .lx-pan { height: calc(100svh - var(--nav)); padding: 20px 0 }
  .lx-pan.lx-end { height: auto; min-height: calc(100svh - var(--nav)) }

  .lx-study-grid { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 44px; align-items: center }
  .lx-study-l .lx-head h2 { font-size: clamp(30px, 5vh, 46px) }
  .lx-study-l .lx-head > p:last-child { font-size: 15px }
  .lx-stages { display: grid; grid-template-columns: 1fr; gap: 6px; overflow: visible }
  .lx-stages li > button { padding: 10px 14px 10px 10px }
  .lx-stages small { display: block }
  .lx-screen-dots { display: inline-flex }

  .lx-watch-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center }
  .lx-desk-video { order: 2 }
  .lx-watch-l { display: flex; flex-direction: column }
  .lx-watch-l .lx-head { margin-bottom: 18px }
  .lx-phone-v { height: min(calc(100svh - var(--nav) - 70px), 800px); width: auto }
  .lx-head-row { max-width: none }
  .lx-head-row > p:last-child { max-width: 70ch }

  .lx-shelf { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 34px }
  .lx-shelf-stage { height: min(calc(100svh - var(--nav) - 120px), 560px) }

  .lx-exp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center }
  .lx-exp-grid .lx-head { margin: 0 }
  .lx-mini { padding: 24px }
  .lx-monitor canvas { height: min(calc(100svh - var(--nav) - 380px), 340px) }

  .lx-flow { grid-template-columns: 1fr 1.3fr 1fr }
  .lx-src { flex-direction: column; align-items: flex-end }
}
/* short laptop screens: give the content back a little room */
@media (min-width: 980px) and (max-height: 760px) {
  .lx-stages small { display: none }
  .lx-head-sm > p:last-child, .lx-study-l .lx-head > p:last-child { display: none }
  .lx-nia-log { min-height: 0 }
  .lx-head > p:last-child { font-size: 15px }
  .lx-desk-pad { min-height: 90px }
}
