/* ============================================================
   RegentsLab, landing v2 ("The Score Terminal")
   Styles for the Home view only. Every rule is scoped under
   .rl-landing and every new token starts with --lp-, so nothing
   here can reach the Lab, Browse, Progress or any other screen.
   Night panels (hero, ticker, question terminal, closer) look the
   same in both themes. Everything between them follows the site's
   own paper and dark tokens from styles.css.
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
/* Display face. Bai Jamjuree (Cadson Demak, SIL Open Font License 1.1, license text in
   fonts/OFL.txt) is the closest open match to the squared grotesque that Palantir sets its
   headlines in, which is a commercial face. Self hosted, latin subset, two weights. */
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bai-jamjuree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bai-jamjuree-latin-600-normal.woff2") format("woff2"); }

.rl-landing {
  --lp-night-0: #070a0a;
  --lp-night-1: #0c1112;
  --lp-night-2: #131a1b;
  --lp-line: rgba(255, 255, 255, .08);
  --lp-line-2: rgba(255, 255, 255, .14);
  --lp-text: #f3f1e9;
  --lp-dim: rgba(243, 241, 233, .56);
  --lp-teal-glow: #45c2ab;
  --lp-gold: #cb964d;
  --lp-gold-deep: #9b692e;
  --lp-miss: #e07a62;

  /* paper side: the dim half of two tone headlines and small secondary text */
  --lp-ink-dim: #86837b;
  --lp-ink-dim: color-mix(in srgb, var(--ink) 52%, transparent);
  --lp-soft: #5b584f;
  --lp-soft: color-mix(in srgb, var(--ink) 66%, transparent);
  --lp-hair: var(--line-soft);

  --lp-in: cubic-bezier(.22, 1, .36, 1);     /* entrances */
  --lp-io: cubic-bezier(.65, 0, .35, 1);     /* state changes */
  --lp-r-panel: 28px;
  --lp-r-card: 16px;
  --lp-maxw: 1180px;
  --lp-display: "Bai Jamjuree", var(--sans);   /* headings */

  /* styles.css uses --ink-3 for small labels at 3.7 to 1 on paper. Inside the landing it is
     nudged darker so reused pieces (the calibration meter, hints) clear 4.5 to 1. */
  --ink-3: #6a6454;

  display: block;
  overflow-x: clip;
}
[data-theme="dark"] .rl-landing {
  --lp-ink-dim: #7d7a73;
  --lp-ink-dim: color-mix(in srgb, var(--ink) 48%, transparent);
  --ink-3: #a19b8e;
}

/* Inside a night panel the site's own variables point at night values, so shared components
   (CalibrationMeter, ChoiceInspector, SubjectLogo, Icon) render correctly without edits. */
.rl-landing .lp-night {
  --bg: var(--lp-night-0);
  --surface: var(--lp-night-1);
  --surface-2: var(--lp-night-2);
  --surface-3: #1a2325;
  --line: var(--lp-line-2);
  --line-soft: var(--lp-line);
  --ink: var(--lp-text);
  --ink-2: rgba(243, 241, 233, .78);
  --ink-3: var(--lp-dim);
  --ink-4: rgba(243, 241, 233, .5);
  --accent: var(--lp-teal-glow);
  --accent-strong: #6ad3bf;
  --accent-ink: #bdeee3;
  --accent-soft: rgba(69, 194, 171, .13);
  --accent-line: rgba(69, 194, 171, .34);
  --on-accent: #04110f;
  --correct: var(--lp-teal-glow);
  --correct-soft: rgba(69, 194, 171, .12);
  --correct-line: rgba(69, 194, 171, .32);
  --miss: var(--lp-miss);
  --miss-soft: rgba(224, 122, 98, .13);
  --miss-line: rgba(224, 122, 98, .34);
  --untouched: rgba(243, 241, 233, .3);
  --bar-track: rgba(255, 255, 255, .08);
  --shadow-sm: none;
  --shadow: none;
  color: var(--lp-text);
}
.rl-landing .lp-night .subj-logo { filter: brightness(1.45) saturate(1.05); }
.rl-landing .lp-night :focus-visible { outline: 2px solid var(--lp-teal-glow); outline-offset: 2px; border-radius: 6px; }
.rl-landing .lp-night ::selection { background: rgba(69, 194, 171, .3); }

/* ---- Shared pieces ----------------------------------------- */
.rl-landing .lp-mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 0; font-variant-numeric: tabular-nums; }
.rl-landing .lp-micro {
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.rl-landing .lp-tk { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); }
.rl-landing .lp-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* a "skip" button that only shows itself to keyboard focus */
.rl-landing .lp-skipl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rl-landing .lp-skipl:focus-visible {
  position: static; width: auto; height: 36px; clip-path: none; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600;
}
/* keyboard focus is never parked under the sticky bar, the tab bar or the resume dock */
.rl-landing a, .rl-landing button { scroll-margin: 76px 24px 104px; }
@media (max-width: 860px) { .rl-landing a, .rl-landing button { scroll-margin: 70px 16px 156px; } }
/* the pause control also holds the small looping details inside reused components */
.rl-landing.lp-paused .cal *, .rl-landing.lp-paused .cal *::before, .rl-landing.lp-paused .cal *::after { animation-play-state: paused !important; }
.rl-landing .lp-num { position: relative; display: inline-block; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
/* the counting digits sit over the real number, which holds the space */
.rl-landing .lp-num-over { position: absolute; left: 0; right: 0; top: 0; white-space: nowrap; }
.rl-landing ol { list-style: none; margin: 0; padding: 0; }

/* pills: primary is white on night and teal on paper, secondary is outlined */
.rl-landing .lp-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px; white-space: nowrap;
  font-family: var(--sans); font-weight: 650; font-size: 16.5px; letter-spacing: -.01em;
  background: var(--accent); color: var(--on-accent);
  transition: transform .2s var(--lp-io), background-color .2s var(--lp-io), box-shadow .2s var(--lp-io);
}
.rl-landing .lp-pill:hover { transform: translateY(-1px); background: var(--accent-strong); }
.rl-landing .lp-pill:active { transform: none; }
.rl-landing .lp-night .lp-pill { background: var(--lp-text); color: var(--lp-night-0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 14px 40px -14px rgba(69, 194, 171, .55); }
.rl-landing .lp-night .lp-pill:hover { background: #fff; box-shadow: 0 0 0 1px #fff, 0 18px 46px -14px rgba(69, 194, 171, .75); }
.rl-landing .lp-pill-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.rl-landing .lp-pill-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink-4); }
.rl-landing .lp-night .lp-pill-ghost { background: rgba(7, 10, 10, .66); color: var(--lp-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rl-landing .lp-night .lp-pill-ghost:hover { background: rgba(30, 38, 39, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); }
.rl-landing .lp-pill-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; gap: 8px; }

/* round icon button used for pause controls */
.rl-landing .lp-pause {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s var(--lp-io), color .2s var(--lp-io);
}
.rl-landing .lp-pause:hover { background: var(--surface-2); color: var(--ink); }

/* reveal once at 15% in view; children stagger by --lp-i */
.rl-landing .lp-rv {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .7s var(--lp-in), transform .7s var(--lp-in);
  transition-delay: calc(var(--lp-i, 0) * 75ms);
}
.rl-landing .lp-rv.lp-in { opacity: 1; transform: none; }

/* cards: 16px radius, hairline border, a soft spotlight that follows the cursor */
.rl-landing .lp-card {
  position: relative; border-radius: var(--lp-r-card); background: var(--surface);
  border: 1px solid var(--lp-hair); overflow: hidden; isolation: isolate;
  transition: border-color .25s var(--lp-io);
}
.rl-landing .lp-spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  transition: opacity .3s var(--lp-io);
}
.rl-landing .lp-spot:hover { border-color: var(--line); }
.rl-landing .lp-spot:hover::before { opacity: 1; }
/* a revealed card keeps its own border transition, without the stagger delay */
.rl-landing .lp-card.lp-rv {
  transition: opacity .7s var(--lp-in), transform .7s var(--lp-in), border-color .25s var(--lp-io);
  transition-delay: calc(var(--lp-i, 0) * 75ms), calc(var(--lp-i, 0) * 75ms), 0s;
}
/* keyboard focus inside a block that is still waiting to reveal shows it at once */
.rl-landing .lp-rv:focus-within, .rl-landing .lp-card.lp-rv:focus-within { opacity: 1; transform: none; transition: none; }
.rl-landing .lp-night.lp-card, .rl-landing .lp-night .lp-card { border-color: var(--lp-line); }
.rl-landing .lp-night.lp-card::after, .rl-landing .lp-term::after {
  /* the soft highlight along the top edge of night cards */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 30%, rgba(255, 255, 255, .22) 70%, transparent);
}

/* section scaffolding */
.rl-landing .lp-sec { max-width: var(--lp-maxw); margin: 0 auto; padding: clamp(64px, 8.5vw, 120px) 20px 0; }
/* The lower sections are in the page from the first render, so their text and links are always
   there to read, search and tab to. The browser just holds off laying them out and painting them
   until they come near the screen, which keeps the first paint as light as the old Home's. */
.rl-landing .lp-wall-sec, .rl-landing [aria-labelledby="lp-h-bento"], .rl-landing [aria-labelledby="lp-h-els"],
.rl-landing .lp-mani, .rl-landing .lp-faq, .rl-landing .lp-closer { content-visibility: auto; contain-intrinsic-size: auto 452px; }
/* Each placeholder is close to the section's real content height (its padding comes on top), so
   the page is about the right length before the sections fill in and the scrollbar does not jump. */
.rl-landing [aria-labelledby="lp-h-bento"] { contain-intrinsic-size: auto 744px; }
.rl-landing [aria-labelledby="lp-h-els"] { contain-intrinsic-size: auto 696px; }
.rl-landing .lp-mani { contain-intrinsic-size: auto 304px; }
.rl-landing .lp-faq { contain-intrinsic-size: auto 634px; }
.rl-landing .lp-closer { contain-intrinsic-size: auto 310px; }
/* room for card shadows inside the two card sections, since nothing may paint outside them now */
.rl-landing [aria-labelledby="lp-h-bento"], .rl-landing [aria-labelledby="lp-h-els"] { padding-bottom: 36px; margin-bottom: -36px; }
.rl-landing .lp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.6vw, 48px); }
.rl-landing .lp-h2 {
  font-family: var(--lp-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12; letter-spacing: -.03em; color: var(--ink); max-width: 21em; text-wrap: balance;
}
.rl-landing .lp-h2-b { color: var(--lp-ink-dim); }
.rl-landing .lp-night .lp-h2-b { color: var(--lp-dim); }

/* ============================================================
   S1. Hero
   ============================================================ */
/* full bleed: the night panel runs to the edges of the window, with no paper around it */
.rl-landing .lp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0; padding-bottom: 60px; border-radius: 0;
  background: var(--lp-night-0);
}
/* the one switch for background motion (reagent and topic wall), tucked in the panel's corner
   and spelled out, since an icon alone does not say what it stops */
.rl-landing .lp-hero > .lp-pause {
  position: absolute; z-index: 3; right: 20px; bottom: 15px;
  display: inline-flex; align-items: center; gap: 7px; width: auto; padding: 0 13px 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
/* the graph paper motif: a faint 24px grid that fades out toward the bottom */
.rl-landing .lp-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 82%);
}
.rl-landing .lp-hero-inner { position: relative; z-index: 2; max-width: var(--lp-maxw); margin: 0 auto; padding: 0 20px; }
/* the night panel fills the whole first screen, so no strip of paper under it reads as the end of
   the page. Its content stays centered in whatever space is left. */
.rl-landing .lp-hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.rl-landing .lp-hero > .lp-hero-inner { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; width: 100%; }
.rl-landing .lp-hero-top {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(440px, calc(100vh - 300px), 640px);
  min-height: clamp(440px, calc(100svh - 300px), 640px);
  padding: 44px 0 40px;
}
.rl-landing .lp-h1 {
  font-family: var(--lp-display); font-weight: 500; color: var(--lp-text);
  font-size: clamp(40px, min(5vw, 9.4vh), 70px); line-height: 1.06; letter-spacing: -.035em;
  text-wrap: balance;
}
.rl-landing .lp-h1-b { color: rgba(243, 241, 233, .5); }
.rl-landing .lp-h1-line { display: block; position: relative; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.rl-landing .lp-h1-line > span { display: block; text-wrap: balance; }
.rl-landing .lp-lead { font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.62; color: rgba(243, 241, 233, .78); max-width: 35em; margin-top: 26px; }
.rl-landing .lp-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }
.rl-landing .lp-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: rgba(243, 241, 233, .8); }
.rl-landing .lp-proof svg { color: var(--lp-teal-glow); flex: none; }
.rl-landing .lp-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero entrance: plain CSS so it never waits on scripts. .lp-hold pauses it under the first visit
   splash, .lp-skip drops it (late load, reduced motion), .lp-h1-skip drops only the headline rise. */
@keyframes lpFade { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes lpRise { from { transform: translate3d(0, 36%, 0); } to { transform: none; } }
@keyframes lpTermIn { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
.rl-landing .lp-hero .lp-h1-line > span { animation: lpRise .72s var(--lp-in) both; animation-delay: .1s; }
.rl-landing .lp-hero .lp-h1-line + .lp-h1-line > span { animation-delay: .19s; }
.rl-landing .lp-hero .lp-lead { animation: lpFade .6s var(--lp-in) .4s both; }
.rl-landing .lp-hero .lp-proof { animation: lpFade .6s var(--lp-in) .48s both; }
.rl-landing .lp-hero .lp-cta { animation: lpFade .6s var(--lp-in) .56s both; }
.rl-landing .lp-hero .lp-term-in { animation: lpTermIn .7s var(--lp-in) .46s both; }
/* Each glass card fades in on its own. Fading their shared parent instead would make the parent
   the backdrop for the cards while it animates, and the reagent behind would show through unblurred. */
@keyframes lpIn { from { opacity: 0; } }
.rl-landing .lp-hero .lp-glass { animation: lpIn .6s var(--lp-in) .6s both; }
.rl-landing .lp-hero .lp-glass:nth-child(2) { animation-delay: .68s; }
.rl-landing .lp-hero .lp-glass:nth-child(3) { animation-delay: .76s; }
.rl-landing .lp-hero.lp-hold * , .rl-landing .lp-hero.lp-hold *::after { animation-play-state: paused !important; }
.rl-landing .lp-hero.lp-skip *, .rl-landing .lp-hero.lp-skip *::after { animation: none !important; }
.rl-landing .lp-hero.lp-h1-skip .lp-h1-line > span { animation: none; }

/* ---- S1b. Liquid reagent ----------------------------------- */
.rl-landing .lp-term-wrap { position: relative; z-index: 1; }
.rl-landing .lp-liquid {
  position: absolute; z-index: 0; pointer-events: none;
  right: -96px; bottom: calc(100% - 318px); width: 740px; height: 660px;
  transform: translate3d(calc(var(--lp-px, 0) * -14px), calc(var(--lp-py, 0) * -10px), 0);
}
.rl-landing .lp-liquid-still, .rl-landing .lp-liquid canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the live reagent fades out toward the bottom of its box, so its glow never ends on a line */
.rl-landing .lp-liquid canvas {
  opacity: 0; transition: opacity .9s var(--lp-io);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
}
.rl-landing .lp-liquid.is-live canvas { opacity: 1; }
.rl-landing .lp-liquid.is-live .lp-liquid-still { opacity: 0; transition: opacity .9s var(--lp-io) .2s; }
/* static version (also the reduced motion and low power version): a dark glass dome with a lit rim */
.rl-landing .lp-liquid-still::before {
  /* bloom */
  content: ""; position: absolute; left: 50%; top: 67%; width: 700px; height: 700px; margin: -350px 0 0 -350px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(69, 194, 171, .24), rgba(69, 194, 171, .1) 55%, transparent 78%);
  filter: blur(26px);
}
.rl-landing .lp-dome, .rl-landing .lp-dome-lit {
  position: absolute; left: 50%; top: 67%; width: 590px; height: 560px; margin: -280px 0 0 -295px;
  border-radius: 50%; transform: rotate(-9deg);
}
.rl-landing .lp-dome {
  background:
    radial-gradient(56% 44% at 40% 84%, rgba(58, 104, 255, .26), transparent 70%),
    radial-gradient(34% 28% at 68% 26%, rgba(203, 150, 77, .16), transparent 72%),
    radial-gradient(44% 38% at 42% 36%, rgba(69, 194, 171, .17), transparent 72%),
    radial-gradient(closest-side, #050a0a 0%, #060f0e 60%, rgba(12, 42, 38, .98) 82%, rgba(34, 116, 104, .95) 93.5%, rgba(108, 204, 187, .95) 97%, rgba(238, 214, 168, .96) 98.8%, rgba(203, 150, 77, 0) 100%);
  box-shadow: 0 0 40px 0 rgba(203, 160, 90, .22);
}
.rl-landing .lp-dome-lit {
  /* the brighter arc on the side facing the light */
  background: radial-gradient(closest-side, transparent 94%, rgba(255, 240, 206, .5) 97%, rgba(255, 247, 226, 1) 98.8%, transparent 100%);
  -webkit-mask-image: conic-gradient(from 215deg at 50% 50%, transparent 0deg, #000 55deg, #000 120deg, transparent 185deg);
  mask-image: conic-gradient(from 215deg at 50% 50%, transparent 0deg, #000 55deg, #000 120deg, transparent 185deg);
  filter: drop-shadow(0 0 12px rgba(255, 222, 160, .85));
}
.rl-landing .lp-liquid-noise {
  position: absolute; inset: 0; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(closest-side at 50% 67%, #000 40%, transparent 96%);
  mask-image: radial-gradient(closest-side at 50% 67%, #000 40%, transparent 96%);
}

/* ---- The Lab Terminal -------------------------------------- */
.rl-landing .lp-term-tilt { position: relative; z-index: 1; transform-origin: 50% 0; will-change: transform; }
.rl-landing .lp-term {
  position: relative; background: var(--lp-night-1); border: 1px solid var(--lp-line-2);
  border-radius: var(--lp-r-card); overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9);
}
.rl-landing .lp-term-bar {
  display: flex; align-items: center; height: 34px; padding: 0 16px;
  border-bottom: 1px solid var(--lp-line); background: rgba(255, 255, 255, .015);
}
.rl-landing .lp-term-title { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--lp-dim); line-height: 1; }
.rl-landing .lp-term-body { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 45fr) minmax(0, 25fr); }
.rl-landing .lp-pane { min-width: 0; padding: 14px 16px 14px; display: flex; flex-direction: column; }
.rl-landing .lp-pane + .lp-pane { border-left: 1px solid var(--lp-line); }
.rl-landing .lp-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 20px; }
.rl-landing .lp-pane-title { font-family: var(--lp-display); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; color: var(--lp-text); }
.rl-landing .lp-seg { display: none; }

/* watchlist */
.rl-landing .lp-rows { margin-top: 7px; display: flex; flex-direction: column; }
.rl-landing .lp-row {
  display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  width: 100%; min-height: 32px; padding: 3px 9px 3px 6px; text-align: left; border-radius: 7px;
  border-top: 1px solid var(--lp-line); position: relative;
  transition: background-color .18s var(--lp-io);
}
.rl-landing .lp-row:first-child { border-top-color: transparent; }
.rl-landing .lp-row:hover, .rl-landing .lp-row.is-on { background: var(--lp-night-2); }
.rl-landing .lp-row.is-on { box-shadow: inset 2px 0 0 var(--lp-teal-glow); }
.rl-landing .lp-row.is-on + .lp-row, .rl-landing .lp-row:hover + .lp-row, .rl-landing .lp-row.is-on, .rl-landing .lp-row:hover { border-top-color: transparent; }
.rl-landing .lp-row-name { font-weight: 600; font-size: 13.5px; line-height: 1.18; text-wrap: balance; }
/* "Calibrating" is a long status. While any subject shows it, the list drops its ticker codes so
   every subject name stays whole (the codes remain in the chart tabs). */
.rl-landing .lp-rows:has(.cal) .lp-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
.rl-landing .lp-rows:has(.cal) .lp-row > .lp-tk { display: none; }
.rl-landing .lp-st-score { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
.rl-landing .lp-st-score small { font-size: 10.5px; font-weight: 400; margin-left: 2px; color: var(--ink-3); }
.rl-landing .lp-st-empty { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.rl-landing .lp-sample { color: #d9b983; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.rl-landing .lp-streak { font-family: var(--mono); font-size: 11.5px; color: var(--lp-dim); white-space: nowrap; }
/* Resume and Random question sit at the foot of the pane */
.rl-landing .lp-acts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; }
.rl-landing .lp-resume {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 9px; font-size: 13px;
  background: rgba(69, 194, 171, .1); color: var(--accent-ink); box-shadow: inset 0 0 0 1px rgba(69, 194, 171, .2);
  transition: background-color .18s var(--lp-io);
}
.rl-landing .lp-resume:hover { background: rgba(69, 194, 171, .17); }
.rl-landing .lp-resume > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-landing .lp-resume b { font-weight: 650; color: var(--lp-text); }
.rl-landing .lp-resume svg:first-child { color: var(--lp-teal-glow); flex: none; }
.rl-landing .lp-resume svg:last-child { color: var(--lp-dim); flex: none; }
.rl-landing .lp-random {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 36px; border-radius: 9px; font-weight: 650; font-size: 13.5px;
  background: var(--lp-teal-glow); color: #04110f;
  transition: background-color .18s var(--lp-io), transform .18s var(--lp-io);
}
.rl-landing .lp-watch-foot { margin-top: 7px; text-align: center; font-size: 11.5px; color: var(--lp-dim); }
.rl-landing .lp-random:hover { background: #6ad3bf; transform: translateY(-1px); }

/* score chart */
.rl-landing .lp-chartp { gap: 0; }
.rl-landing .lp-quote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.rl-landing .lp-quote-code { font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: .05em; color: var(--lp-text); }
.rl-landing .lp-quote-dot { color: rgba(243, 241, 233, .32); }
.rl-landing .lp-quote-n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--lp-teal-glow); }
.rl-landing .lp-quote-n small { font-size: 12.5px; font-weight: 400; letter-spacing: 0; margin-left: 5px; color: var(--lp-dim); }
.rl-landing .lp-quote-empty { font-size: 14px; font-weight: 600; color: var(--lp-dim); }
.rl-landing .lp-quote-name { margin-left: auto; font-size: 13px; color: var(--lp-dim); white-space: nowrap; }
.rl-landing .lp-syms { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px -4px 0; }
.rl-landing .lp-sym {
  flex: none; padding: 5px 6px; border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .05em; color: var(--lp-dim); transition: background-color .16s var(--lp-io), color .16s var(--lp-io);
}
.rl-landing .lp-sym:hover { color: var(--lp-text); background: rgba(255, 255, 255, .05); }
.rl-landing .lp-sym[aria-selected="true"] { color: var(--lp-night-0); background: var(--lp-text); }
.rl-landing .lp-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--lp-line); }
.rl-landing .lp-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rl-landing .lp-fact b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; color: var(--lp-text); white-space: nowrap; }
.rl-landing .lp-plot { position: relative; flex: 1 1 auto; min-height: 140px; margin-top: 8px; }
.rl-landing .lp-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.rl-landing .lp-plot > svg text { font-family: var(--mono); font-size: 10px; fill: rgba(243, 241, 233, .5); letter-spacing: .04em; }
.rl-landing .lp-plot > svg text.lp-pass-tx { fill: rgba(243, 241, 233, .66); }
.rl-landing .lp-ax { stroke: rgba(255, 255, 255, .06); stroke-width: 1; shape-rendering: crispEdges; }
.rl-landing .lp-pass { stroke: rgba(243, 241, 233, .42); stroke-width: 1; stroke-dasharray: 4 5; }
.rl-landing .lp-band { fill: url(#lpBandFill); }
.rl-landing .lp-band-edge { stroke: rgba(69, 194, 171, .34); stroke-width: 1; stroke-dasharray: 2 4; }
.rl-landing .lp-line { fill: none; stroke: var(--lp-teal-glow); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rl-landing .lp-whisk { stroke: var(--lp-teal-glow); stroke-width: 1.5; stroke-linecap: round; }
.rl-landing .lp-dot { fill: var(--lp-teal-glow); stroke: var(--lp-night-1); stroke-width: 2.5; }
.rl-landing .lp-halo { fill: none; stroke: var(--lp-teal-glow); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rl-landing .lp-fadein { opacity: 0; }
@keyframes lpDraw { to { stroke-dashoffset: 0; } }
@keyframes lpShow { to { opacity: 1; } }
@keyframes lpHalo { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
.rl-landing .lp-plot.is-on .lp-line { animation: lpDraw .95s var(--lp-in) .1s forwards; }
.rl-landing .lp-plot.is-on .lp-fadein { animation: lpShow .6s var(--lp-in) forwards; animation-delay: calc(.55s + var(--lp-d, 0s)); }
.rl-landing .lp-plot.is-on .lp-halo { animation: lpHalo 1.2s var(--lp-in) 1s 2; }
.rl-landing .lp-plot-tag {
  position: absolute; left: 0; top: 0; z-index: 1; color: #d9b983;
}
.rl-landing .lp-plot-cal { position: absolute; inset: 0; display: grid; place-items: center; }
.rl-landing .lp-sum { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--lp-dim); }

/* topic book: the order book of the page */
.rl-landing .lp-book-cols { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--lp-line); }
.rl-landing .lp-book-rows { display: flex; flex-direction: column; flex: 1; }
.rl-landing .lp-book-rows li { display: flex; flex: 1; max-height: 46px; }
.rl-landing .lp-book-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: 1; min-height: 31px; padding: 4px 8px 4px 2px; border-bottom: 1px solid var(--lp-line); overflow: hidden;
  font-size: 12.5px; line-height: 1.25; color: rgba(243, 241, 233, .86);
}
.rl-landing .lp-book-row > span { position: relative; z-index: 1; }
.rl-landing .lp-book-row .lp-book-n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--lp-text); }
.rl-landing .lp-book-bar {
  position: absolute !important; z-index: 0 !important; right: 0; top: 3px; bottom: 3px; width: 100%; border-radius: 3px;
  transform-origin: 100% 50%; background: rgba(255, 255, 255, .055);
  transition: transform .7s var(--lp-in), background-color .3s var(--lp-io);
}
.rl-landing .lp-book-row.is-strong .lp-book-bar { background: rgba(69, 194, 171, .2); }
.rl-landing .lp-book-row.is-weak .lp-book-bar { background: rgba(224, 122, 98, .22); }
.rl-landing .lp-book-row:hover { color: var(--lp-text); }
.rl-landing .lp-book-row:hover .lp-book-bar { background: rgba(69, 194, 171, .16); }
.rl-landing .lp-book-foot { margin-top: 9px; font-size: 11.5px; line-height: 1.45; color: var(--lp-dim); }
.rl-landing .lp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rl-landing .lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rl-landing .lp-legend i { width: 9px; height: 9px; border-radius: 2px; background: rgba(69, 194, 171, .6); }
.rl-landing .lp-legend i.is-weak { background: rgba(224, 122, 98, .7); }

/* ---- Desktop (1200 and up): a preview, not the app. The subject list runs in two columns so
   the whole terminal stays about 350px tall. Codes live in the chart tabs. ---- */
@media (min-width: 1200px) {
  .rl-landing .lp-term-body { grid-template-columns: minmax(0, 40fr) minmax(0, 39fr) minmax(0, 21fr); }
  .rl-landing .lp-rows { display: block; column-count: 2; column-gap: 10px; }
  .rl-landing .lp-rows .lp-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; min-height: 40px; border-top: 0; break-inside: avoid; }
  .rl-landing .lp-row > .lp-tk, .rl-landing .lp-row .cal-dots { display: none; }
  /* a calibrating subject shows its flask on a second line, so every name stays whole */
  .rl-landing .lp-rows .lp-row:has(.cal) { grid-template-columns: 24px minmax(0, 1fr); row-gap: 2px; }
  .rl-landing .lp-row:has(.cal) .subj-logo { grid-row: 1 / span 2; }
  .rl-landing .lp-row:has(.cal) .cal { grid-column: 2; }
  .rl-landing .lp-acts { flex-direction: row; }
  .rl-landing .lp-resume { flex: 1.25 1 0; min-width: 0; }
  .rl-landing .lp-random { flex: 1 1 0; width: auto; }
  /* The reagent's box ends behind the terminal. The shader stops at the box edge on its own, so
     the still version is cut along the same edge and nothing glows out from under the terminal. */
  .rl-landing .lp-liquid-still { -webkit-clip-path: inset(-90px -90px 0 -90px); clip-path: inset(-90px -90px 0 -90px); }
}

/* floating glass stats */
.rl-landing .lp-stats { position: absolute; z-index: 3; right: -4px; bottom: calc(100% - 34px); width: 480px; height: 262px; pointer-events: none; }
.rl-landing .lp-glass {
  position: absolute; min-width: 196px; padding: 13px 16px 14px; border-radius: 16px;
  /* smoked glass: whatever the reagent paints behind is blurred and halved in brightness first,
     so the text on the card clears 4.5 to 1 even over the brightest part of the rim */
  background: rgba(10, 16, 17, .5); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.2) brightness(.5); backdrop-filter: blur(18px) saturate(1.2) brightness(.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 22px 44px -26px rgba(0, 0, 0, .8);
  transform: translate3d(calc(var(--lp-px, 0) * var(--lp-k, 6) * 1px), calc(var(--lp-py, 0) * var(--lp-k, 6) * 1px), 0);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .rl-landing .lp-glass { background: rgba(10, 16, 17, .86); }   /* no blur available: a near solid card */
}
.rl-landing .lp-glass:nth-child(1) { left: 0; top: 54px; --lp-k: 5; }
.rl-landing .lp-glass:nth-child(2) { right: 0; top: 0; --lp-k: 8; }
.rl-landing .lp-glass:nth-child(3) { right: 70px; bottom: 0; --lp-k: 4; }
.rl-landing .lp-glass-n { display: block; font-family: var(--lp-display); font-weight: 600; font-size: 29px; line-height: 1; letter-spacing: -.03em; color: var(--lp-text); }
.rl-landing .lp-glass-l { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; color: var(--lp-text); }
.rl-landing .lp-glass-s { display: block; margin-top: 1px; font-size: 12px; color: rgba(243, 241, 233, .72); }

/* ---- Hero question card (in place of the Lab Terminal) ---------------------------------------
   The copy and the buttons sit on the left. One real past question sits on a small card on the
   right with the reagent glowing behind it. The glass stats sit in a row under the buttons. The
   Lab's answer inspector draws the choices, so its inline sizes are overridden here. */
.rl-landing .lp-hero-top > .lp-h1 { position: relative; z-index: 2; }
.rl-landing .lp-hero-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 36px clamp(36px, 5.5vw, 88px); align-items: start; margin-top: 26px; }
.rl-landing .lp-hero-copy { position: relative; z-index: 2; min-width: 0; }
.rl-landing .lp-hero-copy > .lp-lead { margin-top: 0; }
.rl-landing .lp-back { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; max-width: 35em; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rl-landing .lp-back b { font-weight: 650; color: var(--lp-text); }
.rl-landing .lp-back .lp-resume { display: inline-flex; width: auto; max-width: 100%; }
.rl-landing .lp-hero-copy .lp-stats {
  position: static; width: auto; height: auto; max-width: 660px; pointer-events: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px;
}
.rl-landing .lp-hero-copy .lp-glass { position: static; min-width: 0; transform: none; }
.rl-landing .lp-bench-wrap { position: relative; z-index: 1; }
.rl-landing .lp-bench-wrap .lp-liquid { right: -220px; top: -226px; bottom: auto; width: 740px; height: 660px; }
.rl-landing .lp-bench-wrap .lp-liquid-still { -webkit-clip-path: none; clip-path: none; }
.rl-landing .lp-bench { position: relative; z-index: 1; }
/* smoked glass, so the reagent's glow shows through the card's edges */
.rl-landing .lp-sheet {
  position: relative; padding: 16px 18px; border-radius: 14px; background: rgba(12, 17, 18, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--lp-line-2), 0 40px 80px -44px rgba(0, 0, 0, .9);
}
.rl-landing .lp-hero .lp-sheet { animation: lpTermIn .7s var(--lp-in) .46s both; }
.rl-landing .lp-src { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.rl-landing .lp-src b { font-weight: 650; color: var(--lp-text); }
.rl-landing .lp-src span { text-align: right; }
.rl-landing .lp-sheet .qstem { font-size: 16.5px; line-height: 1.45; }
.rl-landing .lp-sheet .qstem .katex { white-space: nowrap; }   /* a formula moves to the next line whole */
.rl-landing .lp-sheet .choices { margin-top: 12px; gap: 6px !important; }
.rl-landing .lp-sheet .choice { gap: 10px; padding: 8px 12px !important; font-size: 14.5px !important; border-radius: 10px; }
.rl-landing .lp-sheet .choice .key { width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; }
.rl-landing .lp-sheet .choice .ctext { padding-top: 1px; }
/* the Lab dims the choices it is not explaining. On the page they stay readable. */
.rl-landing .lp-sheet .choice.dim { opacity: .74; }
.rl-landing .lp-sheet .choice.dim:hover { opacity: .92; }
/* the line under the choices already says each one can be tapped, so the "why?" on every row goes */
.rl-landing .lp-sheet .cmark.label-mono { display: none; }
.rl-landing .lp-sheet .sc-hint { font-size: 12.5px; margin-top: 10px; color: var(--ink-2); }
/* narrower laptops: the headline reaches further right, so the rim moves right to keep clear of it */
@media (min-width: 1024px) and (max-width: 1199px) {
  .rl-landing .lp-bench-wrap .lp-liquid { right: -262px; top: -214px; width: 740px; height: 660px; transform: none; }
  .rl-landing .lp-bench-wrap .lp-liquid-still::before { width: 700px; height: 700px; margin: -350px 0 0 -350px; }
  .rl-landing .lp-bench-wrap .lp-dome, .rl-landing .lp-bench-wrap .lp-dome-lit { width: 590px; height: 560px; margin: -280px 0 0 -295px; }
}
/* one column: the card follows the stats and the reagent sits behind it, toward the right */
@media (max-width: 1023px) {
  .rl-landing .lp-hero-cols { grid-template-columns: minmax(0, 1fr); }
  .rl-landing .lp-bench-wrap { max-width: 440px; margin-top: 8px; }
  .rl-landing .lp-bench-wrap .lp-liquid { right: -250px; top: -170px; width: 740px; height: 660px; transform: none; }
  .rl-landing .lp-bench-wrap .lp-liquid-still::before { width: 700px; height: 700px; margin: -350px 0 0 -350px; }
  .rl-landing .lp-bench-wrap .lp-dome, .rl-landing .lp-bench-wrap .lp-dome-lit { width: 590px; height: 560px; margin: -280px 0 0 -295px; }
}
@media (max-width: 767px) {
  .rl-landing .lp-hero-cols { margin-top: 18px; }
  .rl-landing .lp-hero-copy .lp-stats { gap: 8px; margin-top: 24px; }
  .rl-landing .lp-bench-wrap .lp-liquid { right: -175px; top: -118px; width: 420px; height: 380px; }
  .rl-landing .lp-bench-wrap .lp-liquid-still::before { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .rl-landing .lp-bench-wrap .lp-dome, .rl-landing .lp-bench-wrap .lp-dome-lit { width: 320px; height: 300px; margin: -150px 0 0 -160px; }
  .rl-landing .lp-sheet { padding: 14px 14px 12px; }
  .rl-landing .lp-sheet .qstem { font-size: 16px; }
}

/* ============================================================
   S3. Paths
   ============================================================ */
.rl-landing .lp-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rl-landing .lp-path { display: flex; flex-direction: column; }
.rl-landing .lp-path-vis {
  position: relative; height: 168px; border-bottom: 1px solid var(--lp-hair); overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent);
  background-size: 24px 24px, 24px 24px, auto; background-position: -1px -1px, -1px -1px, 0 0;
}
.rl-landing .lp-path-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rl-landing .lp-path-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.rl-landing .lp-path h3 { font-family: var(--lp-display); font-weight: 600; font-size: 20px; letter-spacing: -.015em; line-height: 1.2; }
.rl-landing .lp-path p { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); margin: 9px 0 20px; }
.rl-landing .lp-path .lp-pill { margin-top: auto; width: 100%; }
/* visuals: stroke draws and soft pulses, each plays once in view and again on hover */
.rl-landing .lp-v-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rl-landing .lp-v-guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.rl-landing .lp-v-node { fill: var(--surface); stroke: var(--accent); stroke-width: 2; opacity: 0; }
.rl-landing .lp-path-vis text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; fill: var(--ink-3); opacity: 0; }
.rl-landing .lp-v-bar { fill: var(--bar-track); }
.rl-landing .lp-v-fill { fill: var(--accent); opacity: .5; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.rl-landing .lp-v-fill.is-weak { fill: var(--miss); opacity: .95; }
.rl-landing .lp-v-cell { fill: var(--bar-track); opacity: 0; }
.rl-landing .lp-v-cell.is-today { fill: var(--accent); }
.rl-landing .lp-v-cell.is-exam { fill: var(--ink); }
@keyframes lpGrow { to { transform: scaleX(1); } }
@keyframes lpPulse { 0%, 100% { opacity: .95; } 50% { opacity: .4; } }
@keyframes lpCell { to { opacity: 1; } }
.rl-landing .lp-path.lp-in .lp-v-line { animation: lpDraw 1.1s var(--lp-in) .1s forwards; }
.rl-landing .lp-path.lp-in .lp-v-node, .rl-landing .lp-path.lp-in .lp-path-vis text { animation: lpShow .5s var(--lp-in) forwards; animation-delay: calc(.35s + var(--lp-d, 0s)); }
.rl-landing .lp-path.lp-in .lp-v-fill { animation: lpGrow .8s var(--lp-in) forwards; animation-delay: var(--lp-d, 0s); }
.rl-landing .lp-path.lp-in .lp-v-fill.is-weak { animation: lpGrow .8s var(--lp-in) forwards, lpPulse 1.1s var(--lp-io) 1s 3; animation-delay: var(--lp-d, 0s), 1s; }
.rl-landing .lp-path.lp-in .lp-v-cell { animation: lpCell .3s var(--lp-in) forwards; animation-delay: var(--lp-d, 0s); }

/* ============================================================
   S4. Worked question
   ============================================================ */
.rl-landing .lp-worked { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.rl-landing .lp-q-wrap { position: relative; }
.rl-landing .lp-q-glow {
  position: absolute; right: -6%; top: -10%; width: 62%; height: 60%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(69, 194, 171, .34), transparent 72%); filter: blur(30px); opacity: .5;
  transition: opacity .5s var(--lp-io);
}
@keyframes lpReact { 0% { opacity: .5; transform: none; } 35% { opacity: 1; transform: translate3d(0, -14px, 0) scale(1.12); } 100% { opacity: .5; transform: none; } }
.rl-landing .lp-q-glow.is-go { animation: lpReact 1.5s var(--lp-in); }
.rl-landing .lp-q { position: relative; z-index: 1; background: var(--lp-night-1); border: 1px solid var(--lp-line-2); border-radius: var(--lp-r-card); overflow: hidden; }
.rl-landing .lp-q .lp-term-title { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.rl-landing .lp-q-body { padding: 22px 22px 22px; }
.rl-landing .lp-q .qstem { font-size: 18.5px; line-height: 1.45; color: var(--lp-text); }
/* the answer choices become order book rows with a letter badge on the left */
.rl-landing .lp-q .choices { gap: 0 !important; margin-top: 16px !important; border-top: 1px solid var(--lp-line); }
.rl-landing .lp-q .choice {
  align-items: center; border-radius: 0; background: transparent; box-shadow: none;
  border-bottom: 1px solid var(--lp-line); padding: 13px 10px 13px 8px !important; font-size: 15.5px !important;
  color: rgba(243, 241, 233, .8); opacity: 1; transition: background-color .18s var(--lp-io), color .18s var(--lp-io);
}
.rl-landing .lp-q .choice:hover, .rl-landing .lp-q .choice.dim:hover { background: var(--lp-night-2); color: var(--lp-text); opacity: 1; box-shadow: none; }
.rl-landing .lp-q .choice .key { border-radius: 6px; background: transparent; color: var(--lp-dim); box-shadow: inset 0 0 0 1px var(--lp-line-2); }
.rl-landing .lp-q .choice .ctext { padding-top: 0; }
.rl-landing .lp-q .choice.correct { background: linear-gradient(90deg, rgba(69, 194, 171, .2), rgba(69, 194, 171, .04)); color: var(--lp-text); box-shadow: inset 2px 0 0 var(--lp-teal-glow); }
.rl-landing .lp-q .choice.correct .key { background: var(--lp-teal-glow); color: #04110f; box-shadow: 0 0 18px rgba(69, 194, 171, .6); }
.rl-landing .lp-q .choice.wrong { background: linear-gradient(90deg, rgba(224, 122, 98, .2), rgba(224, 122, 98, .04)); color: var(--lp-text); box-shadow: inset 2px 0 0 var(--lp-miss); }
.rl-landing .lp-q .choice.wrong .key { background: var(--lp-miss); color: #1a0b07; box-shadow: none; }
.rl-landing .lp-q .choice.inspecting { box-shadow: inset 2px 0 0 currentColor; }
.rl-landing .lp-q .choice.correct.inspecting { box-shadow: inset 2px 0 0 var(--lp-teal-glow); }
.rl-landing .lp-q .choice.wrong.inspecting { box-shadow: inset 2px 0 0 var(--lp-miss); }
.rl-landing .lp-q .choice .cmark.label-mono { color: var(--lp-dim) !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
.rl-landing .lp-q .sc-hint { color: var(--lp-dim); }
.rl-landing .lp-q .note { border-radius: 11px; }
.rl-landing .lp-q .solution { background: var(--lp-night-2); border-color: var(--lp-line); border-radius: 12px; }
.rl-landing .lp-q .step { border-top-color: var(--lp-line); }
/* the three points, as numbered rows between hairlines */
.rl-landing .lp-points { display: flex; flex-direction: column; border-top: 1px solid var(--lp-hair); }
.rl-landing .lp-point { padding: 22px 0 24px; border-bottom: 1px solid var(--lp-hair); }
.rl-landing .lp-point h3 { display: flex; align-items: center; gap: 10px; font-family: var(--lp-display); font-weight: 600; font-size: 18.5px; letter-spacing: -.012em; line-height: 1.25; }
.rl-landing .lp-point h3 svg { color: var(--accent); overflow: visible; flex: none; }
.rl-landing .lp-point p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
/* keep the existing hover play on the three small icons */
.rl-landing .lp-point:hover .s-l1 { transform: translateY(-2.4px); }
.rl-landing .lp-point:hover .s-l3 { transform: translateY(2.4px); }
.rl-landing .lp-point:hover .b-r1 { transform: scale(1.16); }
.rl-landing .lp-point:hover .b-r2 { transform: scale(1.12); }
.rl-landing .lp-point:hover .b-dot { transform: scale(1.3); }
.rl-landing .lp-point:hover .c-b1 { transform: scaleY(1.22); }
.rl-landing .lp-point:hover .c-b2 { transform: scaleY(1.3); transition-delay: .04s; }
.rl-landing .lp-point:hover .c-b3 { transform: scaleY(1.4); transition-delay: .08s; }

/* ============================================================
   S5. Topic wall
   ============================================================ */
.rl-landing .lp-wall-sec { max-width: none; padding-left: 0; padding-right: 0; }
.rl-landing .lp-wall-sec .lp-sec-head { max-width: var(--lp-maxw); margin-left: auto; margin-right: auto; padding: 0 20px; }
.rl-landing .lp-h2 .subj-logo { vertical-align: -.06em; margin: 0 .16em 0 .06em; }
.rl-landing .lp-wall-tools { display: flex; align-items: center; gap: 12px; }
.rl-landing .lp-filter { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.rl-landing .lp-filter button {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s var(--lp-io), color .2s var(--lp-io);
}
.rl-landing .lp-filter button:hover { color: var(--ink); }
.rl-landing .lp-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.rl-landing .lp-wall { display: flex; flex-direction: column; gap: 10px; transition: opacity .16s var(--lp-io); }
.rl-landing .lp-wall.is-swap { opacity: 0; }
.rl-landing .lp-wall-view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
@keyframes lpMarq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.rl-landing .lp-wall-track { display: flex; width: max-content; animation: lpMarq calc(var(--lp-n, 20) * 5.2s) linear infinite; }
.rl-landing .lp-wall-view:nth-child(even) .lp-wall-track { animation-direction: reverse; }
.rl-landing .lp-wall-set { display: flex; gap: 10px; padding-right: 10px; }
.rl-landing .lp-wall-view:hover .lp-wall-track, .rl-landing .lp-wall.is-paused .lp-wall-track, .rl-landing .lp-wall.is-off .lp-wall-track { animation-play-state: paused; }
.rl-landing .lp-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--lp-hair); font-size: 14px; font-weight: 550; color: var(--ink);
  transition: border-color .2s var(--lp-io), transform .2s var(--lp-io);
}
.rl-landing .lp-chip:hover { border-color: var(--ink-4); transform: translateY(-1px); }
.rl-landing .lp-chip .sdot { border-radius: 50%; }
.rl-landing .lp-chip .lp-tk { font-size: 10.5px; color: var(--ink-3); }
.rl-landing .lp-chip .lp-chip-n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-2); padding-left: 9px; border-left: 1px solid var(--lp-hair); }
/* keyboard focus: the rows stop and each one scrolls sideways to follow the focused topic */
.rl-landing .lp-wall.is-kb .lp-wall-view { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
.rl-landing .lp-wall.is-kb .lp-wall-view::-webkit-scrollbar { display: none; }
.rl-landing .lp-wall.is-kb .lp-wall-track { animation: none; padding: 4px 20px; }
.rl-landing .lp-wall.is-kb .lp-wall-set[aria-hidden="true"] { display: none; }
/* reduced motion: a still grid that wraps */
.rl-landing .lp-wall.is-static { max-width: var(--lp-maxw); margin: 0 auto; padding: 0 20px; }
.rl-landing .lp-wall.is-static .lp-wall-view { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.rl-landing .lp-wall.is-static .lp-wall-track { animation: none; width: auto; }
.rl-landing .lp-wall.is-static .lp-wall-set { flex-wrap: wrap; padding-right: 0; }
.rl-landing .lp-wall.is-static .lp-wall-set[aria-hidden="true"] { display: none; }

/* ============================================================
   S6. Bento
   ============================================================ */
.rl-landing .lp-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rl-landing .lp-bx { min-height: 318px; display: flex; flex-direction: column; padding: 22px 22px 0; }
.rl-landing .lp-bx h3 { font-family: var(--lp-display); font-weight: 600; font-size: 18px; letter-spacing: -.012em; line-height: 1.25; }
.rl-landing .lp-bx-note { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; max-width: 30em; }
.rl-landing .lp-bx .lp-bx-src { display: block; margin-top: 8px; color: var(--lp-soft); }
.rl-landing .lp-bx-vis { position: relative; flex: 1; min-height: 170px; margin: 18px -22px 0; padding: 0 22px 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.rl-landing .lp-tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.rl-landing .lp-bx { position: relative; }
.rl-landing .lp-night .lp-tag { color: #d9b983; }
.rl-landing .lp-bx-tag { position: absolute; right: 20px; top: 24px; z-index: 1; }
/* 1. big type */
.rl-landing .lp-bx-big { justify-content: center; padding-bottom: 22px; }
.rl-landing .lp-bx h3.lp-big { font-weight: 500; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }
.rl-landing .lp-big b { display: block; font-weight: 400; font-size: 2.3em; line-height: .96; letter-spacing: -.04em; color: var(--accent-ink); margin-bottom: .1em; }
.rl-landing .lp-big > span { color: var(--lp-ink-dim); }
/* 2. worked steps */
.rl-landing .lp-steps { display: flex; flex-direction: column; }
.rl-landing .lp-stepline { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 15px; opacity: 0; transform: translate3d(0, 8px, 0); }
.rl-landing .lp-stepline:first-child { border-top: 0; }
.rl-landing .lp-stepline i { font-style: normal; flex: none; width: 18px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent-strong); }
[data-theme="dark"] .rl-landing .lp-stepline i { color: var(--accent); }
.rl-landing .lp-stepline .katex { font-size: 1.02em; }
.rl-landing .lp-bx.lp-in .lp-stepline { animation: lpFade .55s var(--lp-in) forwards; animation-delay: calc(.15s + var(--lp-d, 0s)); }
/* 3. adapts */
.rl-landing .lp-adapt { display: flex; flex-direction: column; gap: 7px; }
.rl-landing .lp-arow { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 11px; border-radius: 9px; font-size: 13px; background: var(--surface-2); color: var(--ink-2); opacity: 0; transform: translate3d(-14px, 0, 0); white-space: nowrap; overflow: hidden; }
.rl-landing .lp-arow span { overflow: hidden; text-overflow: ellipsis; }
.rl-landing .lp-arow b { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; flex: none; }
.rl-landing .lp-arow.is-miss { background: var(--miss-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--miss-line); }
.rl-landing .lp-arow.is-miss svg, .rl-landing .lp-arow.is-miss b { color: var(--miss); }
[data-theme="light"] .rl-landing .lp-paper .lp-arow.is-miss b, .rl-landing .lp-arow.is-miss b { color: color-mix(in srgb, var(--miss) 72%, var(--ink)); }
.rl-landing .lp-arow.is-video { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.rl-landing .lp-arow svg { flex: none; }
.rl-landing .lp-bx.lp-in .lp-arow { animation: lpSlide .55s var(--lp-in) forwards; animation-delay: calc(.1s + var(--lp-d, 0s)); }
@keyframes lpSlide { to { opacity: 1; transform: none; } }
/* 4. honest score */
.rl-landing .lp-bx-score { background: var(--lp-night-1); border-color: var(--lp-line-2); }
.rl-landing .lp-score-n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 92px; line-height: .9; letter-spacing: -.05em; color: var(--lp-teal-glow); text-shadow: 0 0 44px rgba(69, 194, 171, .4); }
.rl-landing .lp-score-n small { font-size: 26px; letter-spacing: -.02em; margin-left: 10px; color: var(--lp-dim); text-shadow: none; }
.rl-landing .lp-score-who { margin-top: 12px; color: var(--lp-dim); }
.rl-landing .lp-range { position: relative; height: 34px; margin-top: 16px; }
.rl-landing .lp-range-track { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .09); }
.rl-landing .lp-range-band { position: absolute; top: 4px; height: 12px; border-radius: 6px; background: rgba(69, 194, 171, .3); box-shadow: inset 0 0 0 1px rgba(69, 194, 171, .6); transform-origin: 50% 50%; transform: scaleX(0); }
.rl-landing .lp-range-dot { position: absolute; top: 3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--lp-teal-glow); box-shadow: 0 0 0 3px var(--lp-night-1), 0 0 16px rgba(69, 194, 171, .8); opacity: 0; }
.rl-landing .lp-range-pass { position: absolute; top: 0; bottom: 0; left: 65%; width: 1px; background: rgba(243, 241, 233, .45); }
.rl-landing .lp-range-pass span { position: absolute; left: 6px; bottom: -2px; white-space: nowrap; }
.rl-landing .lp-bx.lp-in .lp-range-band { animation: lpGrowX .9s var(--lp-in) .3s forwards; }
.rl-landing .lp-bx.lp-in .lp-range-dot { animation: lpShow .5s var(--lp-in) .9s forwards; }
@keyframes lpGrowX { to { transform: scaleX(1); } }
/* 5. exams per subject */
.rl-landing .lp-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 6px; height: 150px; }
.rl-landing .lp-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.rl-landing .lp-bar span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.rl-landing .lp-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--c, var(--accent)); opacity: .8; transform-origin: 50% 100%; transform: scaleY(0); }
.rl-landing .lp-bar em { font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }
.rl-landing .lp-bx.lp-in .lp-bar i { animation: lpGrowY .8s var(--lp-in) forwards; animation-delay: var(--lp-d, 0s); }
@keyframes lpGrowY { to { transform: scaleY(1); } }
/* 6. calm text card */
.rl-landing .lp-nos { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 22px; }
.rl-landing .lp-nos li { display: flex; align-items: center; gap: 14px; font-family: var(--lp-display); font-weight: 500; font-size: clamp(20px, 1.9vw, 25px); letter-spacing: -.022em; line-height: 1.2; }
.rl-landing .lp-nos i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-line); }
[data-theme="dark"] .rl-landing .lp-nos i { color: var(--accent); }

/* ============================================================
   S7. The periodic table of Regents  +  S8. table view
   ============================================================ */
.rl-landing .lp-el-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rl-landing .lp-el-count { font-family: var(--mono); font-size: 12.5px; color: var(--lp-soft); white-space: nowrap; }
.rl-landing .lp-els { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rl-landing .lp-el {
  position: relative; display: flex; flex-direction: column; min-height: 246px; padding: 14px 16px 14px; text-align: left;
  border-radius: var(--lp-r-card); overflow: hidden; isolation: isolate;
  background: var(--surface); background: color-mix(in srgb, var(--c) 8%, var(--surface));
  border: 1px solid var(--lp-hair); border-color: color-mix(in srgb, var(--c) 22%, var(--line-soft));
  transition: transform .25s var(--lp-io), border-color .25s var(--lp-io), box-shadow .25s var(--lp-io);
}
[data-theme="dark"] .rl-landing .lp-el { background: color-mix(in srgb, var(--c) 11%, var(--surface)); }
.rl-landing a.lp-el:hover, .rl-landing a.lp-el:focus-visible { transform: translate3d(0, -2px, 0); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.rl-landing .lp-els:not(.lp-in) .lp-el { opacity: 0; }
.rl-landing .lp-els.lp-in .lp-el { animation: lpFade .7s var(--lp-in) backwards; animation-delay: calc(var(--lp-i, 0) * 60ms); }
.rl-landing .lp-el-idx { color: var(--lp-soft); }
.rl-landing .lp-el-sym { font-family: var(--lp-display); font-weight: 500; font-size: clamp(42px, 4.2vw, 56px); line-height: 1; letter-spacing: -.04em; margin-top: 12px; color: var(--c); color: color-mix(in srgb, var(--c) 78%, var(--ink)); }
[data-theme="dark"] .rl-landing .lp-el-sym { color: color-mix(in srgb, var(--c) 62%, #fff); }
.rl-landing .lp-el-name { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; margin-top: 10px; color: var(--ink); }
.rl-landing .lp-el-sub { font-size: 12.5px; line-height: 1.4; color: var(--lp-soft); margin-top: 3px; }
.rl-landing .lp-el-st { margin-top: auto; padding-top: 12px; display: flex; justify-content: flex-end; align-items: center; min-height: 34px; }
.rl-landing .lp-el .lp-st-empty { font-size: 12px; font-style: italic; font-weight: 500; }
.rl-landing .lp-el .lp-st-score { font-size: 20px; color: color-mix(in srgb, var(--accent) 78%, var(--ink)); }
[data-theme="dark"] .rl-landing .lp-el .lp-st-score { color: color-mix(in srgb, var(--accent) 76%, #fff); }
[data-theme="dark"] .rl-landing .lp-el .lp-st-empty, [data-theme="dark"] .rl-landing .lp-el .lp-st-score small { color: color-mix(in srgb, var(--ink-3) 80%, #fff); }
/* hover and keyboard focus reveal the three most tested topics */
.rl-landing .lp-el-top {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 16px 11px;
  background: var(--surface); background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border-top: 1px solid color-mix(in srgb, var(--c) 30%, var(--line-soft));
  transform: translate3d(0, 101%, 0); opacity: 0;
  transition: transform .32s var(--lp-in), opacity .2s var(--lp-io);
}
.rl-landing .lp-el-top ol { margin: 4px 0 0; padding: 0; list-style: none; }
.rl-landing .lp-el-top li { font-size: 12.5px; line-height: 1.3; color: var(--ink); padding: 1.5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-landing .lp-el-top .lp-micro { color: var(--lp-soft); }
.rl-landing a.lp-el:hover .lp-el-top, .rl-landing a.lp-el:focus-visible .lp-el-top { transform: none; opacity: 1; }
.rl-landing .lp-els.is-hush .lp-el .lp-el-top { opacity: 0; }   /* put away with Escape */
.rl-landing .lp-els .lp-el:focus-visible { opacity: 1; animation: none; }
.rl-landing .lp-el.is-soon { opacity: .72; }
.rl-landing .lp-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s var(--lp-io), color .2s var(--lp-io);
}
.rl-landing .lp-toggle:hover { background: var(--surface-2); color: var(--ink); }
.rl-landing .lp-tbl { width: 100%; border-collapse: collapse; }
.rl-landing .lp-tbl th { text-align: left; padding: 0 16px 12px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-soft); }
.rl-landing .lp-tbl td { padding: 17px 16px 17px 0; border-bottom: 1px solid var(--lp-hair); vertical-align: top; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rl-landing .lp-tbl td:first-child { white-space: nowrap; }
.rl-landing .lp-tbl td:first-child a { font-family: var(--lp-display); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.rl-landing .lp-tbl a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.rl-landing .lp-tbl a:hover { text-decoration-color: var(--accent); }
.rl-landing .lp-tbl td:last-child, .rl-landing .lp-tbl th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.rl-landing .lp-tbl td:last-child a { font-weight: 650; color: var(--ink); text-decoration: none; }
.rl-landing .lp-tbl td:last-child a:hover { color: var(--accent-strong); }
.rl-landing .lp-tbl .lp-mono { color: var(--ink); }

/* ============================================================
   S9. Manifesto
   ============================================================ */
.rl-landing .lp-mani { text-align: center; }
.rl-landing .lp-mani h2, .rl-landing .lp-mani p {
  font-family: var(--lp-display); font-weight: 500; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.18; letter-spacing: -.03em;
  max-width: 21em; margin: 0 auto; color: var(--ink); text-wrap: balance;
}
.rl-landing .lp-mani h2 { color: var(--accent-ink); margin-bottom: .34em; }
.rl-landing .lp-mani.is-scrub p span { opacity: clamp(.22, calc(.22 + (var(--lp-p, 0) * var(--lp-words) - var(--lp-w)) * .9), 1); }

/* ============================================================
   S10. FAQ
   ============================================================ */
.rl-landing .lp-faq { max-width: 880px; }
.rl-landing .lp-faq-list { border-top: 1px solid var(--line); }
.rl-landing .lp-faq-item { border-bottom: 1px solid var(--lp-hair); }
.rl-landing .lp-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 21px 2px; text-align: left;
  font-family: var(--lp-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 19px); letter-spacing: -.01em; line-height: 1.3; color: var(--ink);
}
.rl-landing .lp-faq-ic { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s var(--lp-io); }
.rl-landing .lp-faq-ic::before, .rl-landing .lp-faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--lp-io); }
.rl-landing .lp-faq-ic::after { transform: rotate(90deg); }
.rl-landing .lp-faq-q[aria-expanded="true"] .lp-faq-ic::after { transform: rotate(90deg) scaleX(0); }
.rl-landing .lp-faq-q:hover .lp-faq-ic { background: var(--surface-2); }
.rl-landing .lp-faq-a { padding: 0 60px 24px 2px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 46em; animation: lpFade .4s var(--lp-in) both; }
.rl-landing .lp-faq-a[hidden] { display: none; }

/* ============================================================
   S11. Closing CTA
   ============================================================ */
.rl-landing .lp-closer {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  margin: clamp(64px, 8.5vw, 120px) 14px 0; padding: clamp(72px, 9vw, 128px) 20px clamp(40px, 5vw, 60px);
  border-radius: var(--lp-r-panel); background: var(--lp-night-0);
}
.rl-landing .lp-closer > *:not(.lp-grid) { position: relative; z-index: 1; }
.rl-landing .lp-closer .lp-h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 0 auto; max-width: 15em; color: var(--lp-text); }
.rl-landing .lp-closer .lp-cta { justify-content: center; margin-top: 36px; }
.rl-landing .lp-updated { margin-top: clamp(40px, 5vw, 72px); color: var(--lp-dim); text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* ============================================================
   S12. Resume dock (rendered through a portal, so it carries the root class itself)
   ============================================================ */
.rl-landing.lp-dock-layer { position: fixed; left: 18px; bottom: 18px; z-index: 55; overflow: visible; }
.rl-landing .lp-dock {
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px; border-radius: 14px; max-width: min(340px, calc(100vw - 36px));
  background: rgba(12, 17, 18, .94); border: 1px solid var(--lp-line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translate3d(0, 16px, 0); pointer-events: none;
  transition: opacity .4s var(--lp-in), transform .4s var(--lp-in);
}
.rl-landing .lp-dock.is-up { opacity: 1; transform: none; pointer-events: auto; }
.rl-landing .lp-dock-go { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 6px 8px; border-radius: 9px; text-align: left; transition: background-color .18s var(--lp-io); }
.rl-landing .lp-dock-go:hover { background: var(--lp-night-2); }
.rl-landing .lp-dock-txt { display: flex; flex-direction: column; min-width: 0; }
.rl-landing .lp-dock-txt b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-landing .lp-dock-txt > span { display: flex; align-items: center; gap: 7px; margin-top: 1px; font-size: 12px; color: var(--lp-dim); }
.rl-landing .lp-dock .lp-st-score { font-size: 12.5px; }
.rl-landing .lp-dock .lp-st-score small { font-size: 10.5px; }
.rl-landing .lp-dock-x { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--lp-dim); transition: background-color .18s var(--lp-io), color .18s var(--lp-io); }
.rl-landing .lp-dock-x:hover { background: var(--lp-night-2); color: var(--lp-text); }

/* ============================================================
   Tablet (768 to 1199): watchlist and chart side by side, topic book underneath,
   stats in a row under the terminal, no tilt
   ============================================================ */
@media (max-width: 1199px) {
  .rl-landing .lp-wall-sec { contain-intrinsic-size: auto 410px; }
  .rl-landing [aria-labelledby="lp-h-bento"] { contain-intrinsic-size: auto 1050px; }
  .rl-landing [aria-labelledby="lp-h-els"] { contain-intrinsic-size: auto 925px; }
  .rl-landing .lp-mani { contain-intrinsic-size: auto 240px; }
  .rl-landing .lp-closer { contain-intrinsic-size: auto 264px; }
  .rl-landing .lp-faq { contain-intrinsic-size: auto 600px; }
  .rl-landing .lp-hero-top { min-height: 0; padding: 60px 0 48px; }
  .rl-landing .lp-term-tilt { transform: none !important; }
  .rl-landing .lp-term-body { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .rl-landing .lp-book { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--lp-line); }
  .rl-landing .lp-book-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .rl-landing .lp-liquid { right: -120px; bottom: calc(100% - 250px); width: 560px; height: 500px; transform: none; }
  .rl-landing .lp-liquid-still::before { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
  .rl-landing .lp-dome, .rl-landing .lp-dome-lit { width: 440px; height: 420px; margin: -210px 0 0 -220px; }
  .rl-landing .lp-stats { position: static; width: auto; height: auto; pointer-events: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .rl-landing .lp-glass { position: static; min-width: 0; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .04); }
  .rl-landing .lp-els { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rl-landing .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-landing .lp-worked { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .rl-landing [aria-labelledby="lp-h-els"] { contain-intrinsic-size: auto 1163px; }
  .rl-landing .lp-mani { contain-intrinsic-size: auto 180px; }
  .rl-landing .lp-closer { contain-intrinsic-size: auto 228px; }
  .rl-landing .lp-term-body { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .rl-landing .lp-els { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rl-landing .lp-paths { grid-template-columns: minmax(0, 1fr); }
  .rl-landing .lp-path { flex-direction: row; }
  .rl-landing .lp-path-vis { flex: none; width: 38%; height: auto; min-height: 190px; border-bottom: 0; border-right: 1px solid var(--lp-hair); }
}

/* ============================================================
   Phone (under 768): full bleed hero, one terminal card with a segmented control
   ============================================================ */
@media (max-width: 767px) {
  .rl-landing .lp-wall-sec { contain-intrinsic-size: auto 396px; }
  .rl-landing [aria-labelledby="lp-h-bento"] { contain-intrinsic-size: auto 1611px; }
  .rl-landing [aria-labelledby="lp-h-els"] { contain-intrinsic-size: auto 1238px; }
  .rl-landing .lp-mani { contain-intrinsic-size: auto 244px; }
  .rl-landing .lp-faq { contain-intrinsic-size: auto 623px; }
  .rl-landing .lp-closer { contain-intrinsic-size: auto 370px; }
  .rl-landing .lp-hero { margin: 0; padding-bottom: 54px; border-radius: 0 0 20px 20px; }
  /* On a phone the first screen is the headline and the two buttons, with the terminal's title bar
     showing just above the site's tab bar (54px top bar, 58px note, 64px tab bar, 38px of terminal).
     Once the note is gone the panel runs up under the top bar and the view tabs show as well.
     Taller phones get more of the reagent's rim in the space between, up to a 760px hero. */
  .rl-landing .lp-hero-top { justify-content: flex-start; padding: 30px 0 30px; min-height: min(calc(100vh - 214px), 760px); min-height: min(calc(100svh - 214px), 760px); }
  .rl-landing .lp-h1 { font-size: clamp(28px, 8vw, 36px); }
  .rl-landing .lp-h1-br { display: block; }   /* the same three lines whichever font has arrived */
  .rl-landing .lp-lead { font-size: 15.5px; margin-top: 18px; }
  .rl-landing .lp-proof { gap: 8px 18px; margin-top: 18px; }
  .rl-landing .lp-proof li { font-size: 13.5px; }
  .rl-landing .lp-cta { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .rl-landing .lp-cta .lp-pill { width: 100%; }
  .rl-landing .lp-liquid { right: -150px; bottom: calc(100% - 205px); width: 420px; height: 380px; }
  .rl-landing .lp-liquid-still::before { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .rl-landing .lp-dome, .rl-landing .lp-dome-lit { width: 320px; height: 300px; margin: -150px 0 0 -160px; }
  .rl-landing .lp-term-body { display: block; }
  .rl-landing .lp-seg { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--lp-line); }
  .rl-landing .lp-seg button { flex: 1; min-height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--lp-dim); transition: background-color .2s var(--lp-io), color .2s var(--lp-io); }
  .rl-landing .lp-seg button[aria-selected="true"] { background: var(--lp-night-2); color: var(--lp-text); box-shadow: inset 0 0 0 1px var(--lp-line-2); }
  .rl-landing .lp-pane { padding: 16px 14px 16px; border-left: 0 !important; border-top: 0 !important; }
  .rl-landing .lp-pane[data-on="false"] { display: none; }
  .rl-landing .lp-book-rows { display: flex; }
  .rl-landing .lp-row { min-height: 46px; }
  .rl-landing .lp-resume { padding: 11px 13px; }
  .rl-landing .lp-random { min-height: 44px; }   /* finger-sized on a phone */
  .rl-landing .lp-syms { gap: 4px; }
  .rl-landing .lp-sym { padding: 9px 10px; }   /* a finger-sized tab */
  .rl-landing .lp-plot { min-height: 190px; flex: none; height: 190px; }
  .rl-landing .lp-stats { gap: 8px; }
  .rl-landing .lp-glass { padding: 11px 10px 12px; border-radius: 13px; text-align: center; }
  .rl-landing .lp-glass-n { font-size: 25px; }
  .rl-landing .lp-glass-l { font-size: 12px; margin-top: 5px; line-height: 1.25; }
  .rl-landing .lp-glass-s { display: none; }
  .rl-landing .lp-sec { padding-left: 16px; padding-right: 16px; }
  .rl-landing .lp-wall-sec { padding-left: 0; padding-right: 0; }
  .rl-landing .lp-wall-sec .lp-sec-head { padding: 0 16px; }
  .rl-landing .lp-path { flex-direction: column; }
  .rl-landing .lp-path-vis { width: auto; height: 132px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--lp-hair); }
  .rl-landing .lp-path-body { padding: 16px 16px 18px; }
  .rl-landing .lp-q-body { padding: 18px 14px 18px; }
  .rl-landing .lp-point { padding: 18px 0 20px; }
  .rl-landing .lp-wall-tools { max-width: 100%; gap: 8px; }
  .rl-landing .lp-wall-tools .lp-pause { flex: none; }
  .rl-landing .lp-filter { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .rl-landing .lp-filter::-webkit-scrollbar { display: none; }
  .rl-landing .lp-filter button { padding: 8px 10px; font-size: 13px; flex: none; }
  .rl-landing .lp-bento { grid-template-columns: minmax(0, 1fr); }
  .rl-landing .lp-bx { min-height: 0; }
  .rl-landing .lp-bx-big, .rl-landing .lp-nos { padding-top: 26px; padding-bottom: 28px; }
  .rl-landing .lp-els { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rl-landing .lp-el { min-height: 190px; padding: 12px 13px; }
  .rl-landing .lp-el-top { display: none; }
  .rl-landing .lp-tbl-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .rl-landing .lp-tbl { min-width: 640px; }
  .rl-landing .lp-faq-a { padding-right: 8px; font-size: 15.5px; }
  .rl-landing .lp-closer { margin-left: 0; margin-right: 0; border-radius: 20px 20px 0 0; }
  .rl-landing .lp-closer .lp-cta { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  /* the dock sits above the tab bar */
  .rl-landing.lp-dock-layer { left: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }
}
/* the site's own top bar and tab bar take over at 860px */
@media (max-width: 860px) {
  .rl-landing .lp-closer { margin-bottom: -36px; }
  /* the "works best on a computer" note sits above the hero: give it a little air, which goes the
     moment the note starts to close (no layout property is animated by this stylesheet) */
  .rl-landing .mnote + .lp-hero { margin-top: 8px; }
  .rl-landing .mnote-closing + .lp-hero { margin-top: 0; }
}
@media (max-width: 389px) {
  /* the smallest phones: the subject name outranks the animated dots after "Calibrating" */
  .rl-landing .lp-row .cal-dots { display: none; }
}
@media (min-width: 768px) and (max-width: 899px) {
  /* narrow watchlist: the ticker code lives in the chart tabs, the row keeps name and status */
  .rl-landing .lp-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .rl-landing .lp-row > .lp-tk { display: none; }
}

/* ============================================================
   The shared header, while Home is on screen. Its markup and styles.css are not edited: the
   landing sets three classes on <html> (useHeader in landing.jsx) and these rules restyle the
   bar. No rule under it, it sits over the night panel, and it follows as a floating bar.
   lp-over: the night hero is under the bar. lp-scrolled: the page has moved.
   ============================================================ */
@media (min-width: 861px) {
  html.lp-home .nav {
    height: 72px; padding: 14px 34px 0; pointer-events: none;
    background: none; border-bottom-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: color .25s ease;
  }
  html.lp-home .nav-inner > .brand { margin-left: -6px; }   /* its mark lines up with the headline */
  html.lp-home .nav-inner { position: relative; max-width: 1140px; pointer-events: auto; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
  html.lp-home .nav-inner::before {
    content: ""; position: absolute; z-index: -1; inset: -7px -12px; border-radius: 16px;
    background: var(--bg); background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: inset 0 0 0 1px var(--line-soft), 0 12px 30px -20px rgba(0, 0, 0, .4);
    opacity: 0; transition: opacity .25s ease, background-color .25s ease;
  }
  html.lp-scrolled .nav-inner { transform: translate3d(0, -5px, 0); }
  html.lp-scrolled .nav-inner::before { opacity: 1; }
  html.lp-over .nav {
    --ink: #f3f1e9; --ink-2: rgba(243, 241, 233, .82); --ink-3: rgba(243, 241, 233, .62);
    --surface: rgba(255, 255, 255, .1); --surface-2: rgba(255, 255, 255, .08); --shadow-sm: none;
    color: #f3f1e9;
  }
  html.lp-over .nav .lab-word { color: #62d0bc; }
  html.lp-over .nav-inner::before { background: rgba(9, 14, 14, .64); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 34px -20px rgba(0, 0, 0, .8); }
  /* the night panel runs up under the bar to the top of the window */
  html.lp-home .rl-landing .lp-hero { margin-top: -72px; padding-top: 72px; }
}
@media (max-width: 860px) {
  html.lp-home .mtopbar { border-bottom-color: transparent; transition: background-color .25s ease, color .25s ease; }
  html.lp-home:not(.lp-scrolled) .mtopbar, html.lp-over .mtopbar { box-shadow: none; }
}
@media (max-width: 860px) {
  html.lp-over .mtopbar {
    --ink: #f3f1e9; --ink-2: rgba(243, 241, 233, .82); --surface-2: rgba(255, 255, 255, .08);
    color: #f3f1e9; background: rgba(7, 11, 11, .72);
  }
  html.lp-over .mtopbar .lab-word { color: #62d0bc; }
  html.lp-over:not(.lp-scrolled) .mtopbar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* full bleed hero with no note above it: the panel runs up under the bar */
  html.lp-home .rl-landing > .lp-hero:first-child { margin-top: -54px; padding-top: 54px; }
}

/* ============================================================
   Reduced motion: no marquees, no tilt, no parallax, no shader. Reveals become short fades.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .rl-landing .lp-hero *, .rl-landing .lp-hero *::after { animation: none !important; }
  .rl-landing .lp-rv, .rl-landing .lp-card.lp-rv { transform: none; transition: opacity .15s linear; transition-delay: 0s; }
  .rl-landing .lp-term-tilt, .rl-landing .lp-liquid, .rl-landing .lp-glass { transform: none !important; }
  html.lp-home .nav-inner { transform: none; transition: none; }
  .rl-landing .lp-liquid canvas { display: none; }
  .rl-landing .lp-wall-track { animation: none !important; }
  .rl-landing .lp-line, .rl-landing .lp-v-line { stroke-dashoffset: 0; animation: none !important; }
  .rl-landing .lp-fadein, .rl-landing .lp-v-node, .rl-landing .lp-path-vis text, .rl-landing .lp-v-cell, .rl-landing .lp-range-dot { opacity: 1; animation: none !important; }
  .rl-landing .lp-halo { animation: none !important; }
  .rl-landing .lp-v-fill, .rl-landing .lp-range-band, .rl-landing .lp-bar i { transform: none; animation: none !important; }
  .rl-landing .lp-stepline, .rl-landing .lp-arow { opacity: 1; transform: none; animation: none !important; }
  .rl-landing .lp-book-bar, .rl-landing .lp-el, .rl-landing .lp-el-top, .rl-landing .lp-pill, .rl-landing .lp-chip, .rl-landing .lp-dock { transition: none; }
  .rl-landing .lp-q-glow.is-go, .rl-landing .lp-faq-a { animation: none; }
  .rl-landing .lp-mani.is-scrub p span { opacity: 1; }
  .rl-landing .lp-els .lp-el { opacity: 1 !important; animation: none !important; }
}
