/* Mandate Atlas public landing (landing.html). Scoped to .lp so the older landing rules in
   styles.css / theme-lock.css (landing-* classes, no longer used on this page) do not apply. */

body[data-page="landing-public"] {
  --lp-ink: var(--ma-page-ink, #16211d);
  --lp-muted: var(--ma-page-muted, #566861);
  --lp-faint: var(--ma-page-faint, #8a9892);
  --lp-line: var(--ma-page-line, rgba(83, 103, 94, 0.16));
  --lp-line-strong: var(--ma-page-line-strong, rgba(83, 103, 94, 0.28));
  --lp-blue: #145ea8;
  --lp-action: var(--ma-action, #276ef1);
  --lp-action-strong: var(--ma-action-strong, #1859cc);
  --lp-paper: #f6f8f7;
  --lp-surface: #ffffff;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--lp-paper);
}

/* The topbar is sticky (in the flow): the page starts right under it, full width. The old
   landing rules added a 28px side gutter and a top offset. */
/* padding-top stays without !important: the privacy banner script sets it inline to make room. */
body[data-page="landing-public"] main.app-content.lp {
  padding-top: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  background: var(--lp-paper) !important;
  overflow: visible !important;
}
.lp {
  color: var(--lp-ink);
  font-family: var(--font-ui, "Inter", system-ui, sans-serif);
  padding-bottom: 0;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2, .lp h3 { font-family: var(--font-display, "IBM Plex Sans", "Inter", sans-serif); color: var(--lp-ink); }
.lp p { margin: 0; }

.lp-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.lp-muted { color: var(--lp-muted); line-height: 1.6; }
.lp-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

/* ── Buttons ── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--ma-radius, 8px);
  border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-ui, "Inter", sans-serif);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--lp-ease), border-color 160ms var(--lp-ease), transform 120ms var(--lp-ease);
}
.lp-btn:active { transform: scale(0.98); }
.lp-btn:focus-visible,
.lp-preset:focus-visible,
.lp-field select:focus-visible,
.lp-login-card input:focus-visible,
.lp a:focus-visible {
  outline: 2px solid var(--lp-action);
  outline-offset: 2px;
}
.lp-btn--primary { background: var(--lp-action); color: #fff; }
.lp-btn--primary:hover { background: var(--lp-action-strong); color: #fff; }
.lp-btn--primary:disabled { opacity: 0.7; cursor: progress; }
.lp-btn--ghost { background: transparent; color: var(--lp-ink); border-color: var(--lp-line-strong); }
.lp-btn--ghost:hover { background: rgba(20, 94, 168, 0.06); border-color: var(--lp-blue); }
.lp-btn--block { width: 100%; }

/* ── Hero: the illustration is the stage, the copy sits in its quiet left half ── */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(860px, calc(100dvh - var(--ma-topbar-h, 56px)));
  padding: 72px 0 88px;
  background: #fbfdff;
}
/* The stage takes the right of the hero and fades out towards the copy, so the hemicycle sits
   beside the headline instead of under it. */
.lp-hero-art {
  position: absolute;
  inset: 0 -4% 0 34%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.lp-hero-art .lp-art { display: block; width: 100%; height: 100%; }
/* The faint cubes on the far left of the drawing would sit under the headline. */
.lp-art #lpa-left-context { display: none; }

/* Reading scrim: paper on the left where the copy is, clear over the hemicycle. */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 18% 50%, rgba(251, 253, 255, 0.9), rgba(251, 253, 255, 0) 70%),
    linear-gradient(180deg, rgba(251, 253, 255, 0) 78%, rgba(251, 253, 255, 0.9) 100%);
  pointer-events: none;
}
.lp-hero .lp-wrap { position: relative; }
.lp-hero-copy { max-width: 36rem; }
.lp-title {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lp-title span { display: block; color: var(--lp-blue); }
.lp-lede {
  max-width: 31rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--lp-muted);
  text-wrap: pretty;
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-hero .lp-btn--ghost { background: rgba(255, 255, 255, 0.86); }

/* Coverage facts: their own band under the hero, not crammed into it. */
.lp-proof {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
}
.lp-facts {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lp-facts li {
  display: grid;
  gap: 4px;
  padding: 26px 28px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.lp-facts li:first-child { padding-left: 0; }
.lp-facts li + li { border-left: 1px solid var(--lp-line); }
.lp-facts strong { font-weight: 600; color: var(--lp-ink); }
.lp-facts span { color: var(--lp-muted); }

/* ── Sections ── */
.lp-section { padding: 96px 0; border-bottom: 1px solid var(--lp-line); }
.lp-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.lp-split-head { position: sticky; top: 96px; }
.lp-split-head .lp-muted { max-width: 30rem; }
.lp-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lp-line-strong); }
.lp-steps li {
  display: grid;
  padding: 28px 0;
  border-bottom: 1px solid var(--lp-line);
}
.lp-steps h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--lp-blue);
}
.lp-steps h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.lp-steps p { color: var(--lp-muted); line-height: 1.6; max-width: 38rem; }

/* ── Product tour: real screens, switched by tabs ── */
.lp-tour { background: var(--lp-surface); }
.lp-tour-head { max-width: 46rem; margin-bottom: 40px; }
.lp-tour-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.lp-tour-tabs { display: grid; gap: 4px; }
.lp .lp-tour-tab {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left !important;
  gap: 4px;
  width: 100%;
  padding: 16px 18px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--lp-muted);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 200ms var(--lp-ease), color 200ms var(--lp-ease);
}
.lp-tour-tab:hover { background: rgba(20, 94, 168, 0.04); }
/* Global button rules (styles.css / theme-lock.css) centre and recolour button text. */
.lp .lp-tour-tab { align-items: flex-start !important; text-align: left !important; font-weight: 400 !important; color: var(--lp-muted) !important; box-shadow: none !important; }
.lp .lp-tour-tab .lp-tour-name { font-weight: 600 !important; color: var(--lp-ink) !important; }
.lp .lp-tour-tab[aria-selected="true"] .lp-tour-name { color: var(--lp-blue) !important; }
.lp .lp-tour-tab { border: 0 !important; }
.lp .lp-tour-tab > span { align-self: stretch; width: 100%; margin: 0 !important; text-align: left !important; }
.lp .lp-tour-tab .lp-tour-desc { font-weight: 400 !important; color: var(--lp-muted) !important; text-align: left !important; }
.lp-tour-tab:focus-visible { outline: 2px solid var(--lp-action); outline-offset: 2px; }
.lp-tour-name { font-weight: 600; font-size: 1rem; color: var(--lp-ink); }
.lp-tour-desc {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0;
  transition: max-height 320ms var(--lp-ease), opacity 220ms var(--lp-ease);
}
.lp-tour-tab[aria-selected="true"] { background: #f2f6fa; }
.lp-tour-tab[aria-selected="true"] .lp-tour-name { color: var(--lp-blue); }
.lp-tour-tab[aria-selected="true"] .lp-tour-desc { max-height: 6em; opacity: 1; }
.lp-tour-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--lp-blue);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.lp-tour-tab.is-running .lp-tour-progress {
  opacity: 0.6;
  animation: lp-progress var(--tour-ms, 6500ms) linear forwards;
}
@keyframes lp-progress { to { transform: scaleX(1); } }

.lp-tour-stage { margin: 0; min-width: 0; }
.lp-tour-frame {
  position: relative;
  aspect-ratio: 1600 / 830;
  border-radius: var(--ma-panel-radius, 16px);
  overflow: hidden;
  background: #eef2f1;
  border: 1px solid var(--lp-line);
  box-shadow: 0 30px 70px -36px rgba(20, 60, 100, 0.45), 0 2px 6px rgba(20, 60, 100, 0.06);
}
.lp-tour-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.02);
  filter: blur(4px);
  transition: opacity 520ms var(--lp-ease), transform 700ms var(--lp-ease), filter 520ms var(--lp-ease);
}
.lp-tour-shot.is-active { opacity: 1; transform: none; filter: none; }
.lp-tour-stage figcaption { margin-top: 14px; font-size: 0.8rem; color: var(--lp-muted); }

/* ── Demo ── */
.lp-demo-head { max-width: 46rem; margin-bottom: 40px; }
.lp-demo-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}
.lp-panel {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--ma-panel-radius, 16px);
  box-shadow: var(--ma-shadow-quiet, 0 1px 2px rgba(15, 23, 42, 0.05));
  padding: 22px;
  min-width: 0;
}
.lp-demo-controls { display: flex; flex-direction: column; gap: 16px; }
.lp-demo-person { display: flex; gap: 12px; align-items: center; }
.lp-demo-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f0f9;
  color: var(--lp-blue);
  font-weight: 600;
  font-size: 0.85rem;
}
.lp-demo-name { font-weight: 600; }
.lp-demo-role { font-size: 0.8rem; color: var(--lp-muted); }
.lp-field { display: grid; gap: 6px; }
.lp-field span { font-size: 0.78rem; font-weight: 600; color: var(--lp-muted); }
.lp-field select,
.lp-login-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--lp-line-strong);
  border-radius: var(--ma-radius, 8px);
  background: #fff;
  color: var(--lp-ink);
  font: 400 0.95rem var(--font-ui, "Inter", sans-serif);
}
.lp-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-preset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--lp-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-ink);
  font: 500 0.82rem var(--font-ui, "Inter", sans-serif);
  cursor: pointer;
  transition: background-color 160ms var(--lp-ease), border-color 160ms var(--lp-ease), color 160ms var(--lp-ease);
}
.lp-preset:hover { border-color: var(--lp-blue); }
.lp-preset.active { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; }
.lp-demo-result {
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  background: #f2f6fa;
  border: 1px solid rgba(20, 94, 168, 0.14);
}
.lp-demo-result span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-muted); }
.lp-demo-result strong { display: block; margin: 4px 0 6px; font-size: 1.05rem; color: var(--lp-ink); }
.lp-demo-result p { font-size: 0.86rem; line-height: 1.5; color: var(--lp-muted); }

.lp-radar { display: flex; flex-direction: column; }
.lp-radar-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.lp-radar-head h3 { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; }
.lp-radar-score { text-align: right; flex-shrink: 0; }
.lp-radar-score strong { display: block; font: 600 2rem/1 var(--font-display, sans-serif); color: var(--lp-blue); font-variant-numeric: tabular-nums; }
.lp-radar-score span { font-size: 0.78rem; color: var(--lp-muted); }
.lp-radar-stage { flex: 1; display: grid; place-items: center; padding: 8px 0; }
.lp-radar-svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.lp-radar-grid polygon, .lp-radar-grid line { fill: none; stroke: rgba(83, 103, 94, 0.18); stroke-width: 1; }
.lp-radar-benchmark { fill: rgba(86, 104, 97, 0.08); stroke: #8a9892; stroke-width: 1.5; stroke-dasharray: 5 4; }
.lp-radar-member { fill: rgba(20, 94, 168, 0.16); stroke: var(--lp-blue); stroke-width: 2; transition: all 220ms var(--lp-ease); }
.lp-radar-dots circle { fill: #fff; stroke: var(--lp-blue); stroke-width: 2; }
.lp-radar-labels text { font: 600 12px var(--font-ui, "Inter", sans-serif); fill: var(--lp-muted); }
.lp-radar-legend { display: flex; justify-content: center; gap: 20px; font-size: 0.82rem; color: var(--lp-muted); }
.lp-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.lp-dot--member { background: var(--lp-blue); }
.lp-dot--benchmark { border: 1.5px dashed #8a9892; }

.lp-demo-groups { display: flex; flex-direction: column; gap: 18px; }
.lp-demo-groups-head strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.lp-bars { display: grid; gap: 14px; }
.lp .lp-bar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}
.lp .lp-bar span { font-weight: 600; }
.lp .lp-bar i {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(83, 103, 94, 0.12);
  overflow: hidden;
}
.lp .lp-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: inherit;
  background: #8aa9c9;
  transition: width 260ms var(--lp-ease);
}
.lp .lp-bar.is-benchmark i::after { background: var(--lp-blue); }
.lp .lp-bar strong { text-align: right; font-variant-numeric: tabular-nums; }
.lp-demo-note { margin-top: auto; font-size: 0.8rem; line-height: 1.5; color: var(--lp-muted); }

/* ── Access ── */
.lp-access { background: var(--lp-surface); }
.lp-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 64px;
  align-items: center;
}
.lp-access-copy .lp-muted { max-width: 34rem; }
.lp-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.lp-checks li { position: relative; padding-left: 26px; line-height: 1.5; color: var(--lp-ink); }
.lp-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--lp-blue);
  border-bottom: 2px solid var(--lp-blue);
  transform: rotate(-45deg);
}
.lp-login-card { padding: 28px; }
.lp-login-card h3 { margin: 0 0 18px; font-size: 1.15rem; font-weight: 600; }
.lp-login-card form { display: grid; gap: 8px; }
.lp-login-card label { font-size: 0.82rem; font-weight: 600; color: var(--lp-muted); }
.lp-login-card label + input { margin-bottom: 8px; }
.lp-login-card .lp-btn { margin-top: 8px; }
.lp .lp-login-error { margin-top: 12px; font-size: 0.86rem; color: var(--ma-danger, #b42318); }
.lp .lp-login-error:empty { display: none; }

/* ── Partners, footer ── */
.lp-partners { padding: 32px 0; border-bottom: 1px solid var(--lp-line); }
.lp-partners-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.lp-partners-title { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-muted); }
.lp-partners-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; align-items: center; }
.lp-partner { display: inline-flex; opacity: 0.75; transition: opacity 160ms var(--lp-ease); }
.lp-partner:hover { opacity: 1; }

.lp-footer { padding: 40px 0 48px; background: var(--lp-paper); color: var(--lp-muted); font-size: 0.88rem; }
.lp-footer-row { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; flex-wrap: wrap; }
.lp-footer h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: var(--lp-ink); }
.lp-footer p { margin: 0; max-width: 36rem; line-height: 1.55; }
.lp-footer a { color: var(--lp-blue); }

/* One authored moment: the illustration settles in behind the copy. Load only, once. */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-art { animation: lp-stage 1400ms var(--lp-ease) both; }
  .lp-hero-copy > * { animation: lp-rise 620ms var(--lp-ease) both; }
  .lp-hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .lp-hero-copy > :nth-child(3) { animation-delay: 140ms; }
  html { scroll-behavior: smooth; }
}
@keyframes lp-stage {
  from { opacity: 0; transform: scale(1.035); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-preset, .lp-radar-member, .lp .lp-bar i::after { transition: none; }
}

/* ── The stage comes alive (inline SVG parts) ── */
.lp-art #lpa-satellites, .lp-art #lpa-links, .lp-art #lpa-particles, .lp-art #lpa-left-context, .lp-art #lpa-fibonacci-paths {
  transition: transform 80ms linear;
}
/* Pointer drift: nearer layers move further (values set by the page script). */
.lp-art #lpa-satellites { transform: translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -11px)); }
.lp-art #lpa-particles { transform: translate(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -16px)); }
.lp-art #lpa-links { transform: translate(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -4px)); }
.lp-art #lpa-left-context, .lp-art #lpa-fibonacci-paths { transform: translate(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 6px)); }

@media (prefers-reduced-motion: no-preference) {
  /* Entrance: arcs draw, cards arrive one by one, then everything breathes slowly. */
  .lp-art .a-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: lp-draw 1600ms var(--lp-ease) 250ms forwards;
  }
  .lp-art #lpa-hemicycle .a-draw:nth-of-type(3) { animation-delay: 380ms; }
  .lp-art #lpa-hemicycle .a-draw:nth-of-type(4) { animation-delay: 500ms; }
  .lp-art #lpa-hemicycle .a-draw:nth-of-type(5) { animation-delay: 620ms; }
  .lp-art #lpa-satellites > g { opacity: 0; animation: lp-fade 700ms var(--lp-ease) forwards; }
  .lp-art #lpa-satellites > g:nth-child(1) { animation-delay: 500ms; }
  .lp-art #lpa-satellites > g:nth-child(2) { animation-delay: 600ms; }
  .lp-art #lpa-satellites > g:nth-child(3) { animation-delay: 700ms; }
  .lp-art #lpa-satellites > g:nth-child(4) { animation-delay: 800ms; }
  .lp-art #lpa-satellites > g:nth-child(5) { animation-delay: 900ms; }
  .lp-art #lpa-satellites > g:nth-child(6) { animation-delay: 1000ms; }
  .lp-art #lpa-satellites > g:nth-child(7) { animation-delay: 1100ms; }
  .lp-art .a-float { animation: lp-float 7s ease-in-out infinite alternate; }
  .lp-art #lpa-satellites > g:nth-child(2n) .a-float { animation-duration: 8.5s; animation-delay: -2s; }
  .lp-art #lpa-satellites > g:nth-child(3n) .a-float { animation-duration: 9.5s; animation-delay: -4s; }
  .lp-art .a-flow { animation: lp-flow 2.6s linear infinite; }
  .lp-art .a-spin { animation: lp-spin 160s linear infinite; }
  .lp-art #lpa-particles circle { animation: lp-twinkle 4.5s ease-in-out infinite alternate; }
  .lp-art #lpa-particles circle:nth-child(3n) { animation-delay: -1.5s; animation-duration: 5.5s; }
  .lp-art #lpa-particles circle:nth-child(3n+1) { animation-delay: -3s; animation-duration: 3.8s; }
  .lp-art #lpa-hemicycle .a-mid circle { animation: lp-twinkle 3.2s ease-in-out infinite alternate; }
  .lp-art #lpa-hemicycle .a-mid circle:nth-child(odd) { animation-delay: -1.6s; }
  .lp-hero-art.is-paused * { animation-play-state: paused !important; }

  /* Sections rise in once as they are reached (only when the script runs). */
  .lp-motion [data-reveal]:not([data-stagger]),
  .lp-motion [data-reveal][data-stagger] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--lp-ease), transform 700ms var(--lp-ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .lp-motion [data-reveal].is-in:not([data-stagger]),
  .lp-motion [data-reveal].is-in[data-stagger] > * { opacity: 1; transform: none; }
}
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-fade { to { opacity: 1; } }
@keyframes lp-float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes lp-flow { to { stroke-dashoffset: -32; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-twinkle { from { opacity: 0.35; } to { opacity: 1; } }

/* Browser surfaces carry the palette too. */
body[data-page="landing-public"] ::selection { background: rgba(20, 94, 168, 0.18); color: var(--lp-ink); }
body[data-page="landing-public"] { scrollbar-color: rgba(83, 103, 94, 0.35) transparent; }
html:has(body[data-page="landing-public"]) { scroll-padding-top: calc(var(--ma-topbar-h, 56px) + 16px); }
.lp input { caret-color: var(--lp-blue); }
.lp a:not(.lp-btn):not(.lp-partner), .lp-footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .lp-btn--primary:hover { box-shadow: 0 8px 20px -10px rgba(39, 110, 241, 0.6); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .lp-demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-radar { grid-column: 1 / -1; order: -1; }
  .lp-tour-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-tour-stage { order: -1; }
  .lp-tour-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .lp-tour-tab { padding: 12px 12px 16px; }
  .lp-tour-tab .lp-tour-desc { display: none; }
  .lp-tour-progress { left: 12px; right: 12px; }
}
@media (max-width: 900px) {
  .lp-split, .lp-access-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-split-head { position: static; }
  .lp-section { padding: 64px 0; }
}
@media (max-width: 900px) {
  /* Narrow screens: copy on top, the illustration rises from the bottom of the hero. */
  .lp-hero { align-items: flex-start; min-height: 0; padding: 48px 0 min(78vw, 460px); }
  .lp-hero-art {
    inset: auto 0 0 0;
    height: min(86vw, 520px);
    background-position: 60% 70%;
    background-size: 150% auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  }
  .lp-hero::before { background: none; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-hero-art { background-size: 175% auto; }
  .lp-facts { grid-template-columns: minmax(0, 1fr); }
  .lp-facts li, .lp-facts li:first-child { padding: 16px 0; }
  .lp-facts li + li { border-left: 0; border-top: 1px solid var(--lp-line); }
  .lp-cta-row .lp-btn { flex: 1 1 auto; }
  .lp-demo-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-tour-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .lp .lp-tour-tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .lp-tour-name { font-size: 0.9rem; white-space: nowrap; }
  .lp-panel { padding: 18px; }
  .lp-radar-labels text { font-size: 14px; }
  .lp-steps li { padding: 22px 0; }
}
