/*
 * landing.css — public marketing page for IKANGAI Signals.
 *
 * SAME DESIGN LANGUAGE AS THE APP. Every token below mirrors a value from
 * html/css/components/variables.css / skin-base.css / signals.css — the page
 * deliberately does NOT import styles.css (that sheet pulls Tailwind plus
 * every module stylesheet; a cold marketing visit should stay one small
 * request), so the shared values are restated here. If the app skin moves,
 * move these with it.
 *
 * The vocabulary borrowed from the app, by component:
 *   - ground/card:  gray-100 page, white cards, 1px gray-200 borders, r8
 *   - chrome:       the fixed gray-800 header bar (index.html shell)
 *   - buttons:      .pmo-btn family — r5, 12px/800, blue-600 primary
 *   - signal card:  .sig-card — 5px severity rail inline-start, chips,
 *                   blue-50 "next step" box, inline dt/dd evidence
 *   - KPI tiles:    .pmo-stat-item — 11px/800 uppercase label, 800 value
 *   - codes:        ui-monospace (the .pnav-entity-code idiom)
 *   - model prose:  indigo marker (.sig-next[data-origin="model"])
 *
 * Constraints (unchanged from v1):
 *   - Enforced CSP: this file is linked, never inlined (#381).
 *   - Direction-neutral only (#178): logical properties throughout.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --lp-font: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --lp-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Grays (Tailwind neutral scale — variables.css) */
  --lp-gray-50: #f9fafb;
  --lp-gray-100: #f3f4f6;
  --lp-gray-200: #e5e7eb;
  --lp-gray-300: #d1d5db;
  --lp-gray-400: #9ca3af;
  --lp-gray-500: #6b7280;
  --lp-gray-600: #4b5563;
  --lp-gray-700: #374151;
  --lp-gray-800: #1f2937;
  --lp-gray-900: #111827;

  /* Primary blue (--pmo-blue family) */
  --lp-blue-50: #eff6ff;
  --lp-blue-100: #dbeafe;
  --lp-blue-200: #bfdbfe;
  --lp-blue-300: #93c5fd;
  --lp-blue-400: #60a5fa;
  --lp-blue-600: #2563eb;
  --lp-blue-700: #1d4ed8;
  --lp-blue-800: #1e40af;

  /* Severity tiers — the sig-card rail + chip values */
  --lp-red-100: #fee2e2;
  --lp-red-500: #ef4444;
  --lp-red-600: #dc2626;
  --lp-red-800: #991b1b;
  --lp-amber-100: #fef3c7;
  --lp-amber-500: #f59e0b;
  --lp-amber-800: #92400e;
  --lp-green-600: #16a34a;

  /* Model-prose marker (sig-next[data-origin="model"]) */
  --lp-indigo-50: #eef2ff;
  --lp-indigo-400: #818cf8;
  --lp-indigo-800: #3730a3;

  --lp-ground: var(--lp-gray-100);
  --lp-card: #ffffff;
  --lp-line: var(--lp-gray-200);
  --lp-ink: var(--lp-gray-900);
  --lp-ink-soft: var(--lp-gray-600);
  --lp-ink-faint: var(--lp-gray-500);

  --lp-chrome: var(--lp-gray-800);

  --lp-r-card: 8px;
  --lp-r-btn: 5px;
  --lp-shadow-card: 0 1px 2px rgba(17, 24, 39, 0.05);
  --lp-shadow-float: 0 10px 30px rgba(17, 24, 39, 0.10), 0 2px 6px rgba(17, 24, 39, 0.06);

  --lp-max: 1120px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* `clip`, not `hidden`: the hero glow bleeds past the inline edge, and
   `hidden` on <html> would create a scroll container and break sticky nav. */
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-block-start: 84px;
}

body.lp {
  margin: 0;
  font-family: var(--lp-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--lp-ink);
  background: var(--lp-ground);
  -webkit-font-smoothing: antialiased;
}

.lp img, .lp svg { max-inline-size: 100%; }

/* Zero-specificity default so every .lp-* class (buttons, nav links) wins. */
:where(.lp a) { color: var(--lp-blue-600); }

/* The dark grain overlay from the v1 instrument skin. The app surface has no
   texture, so neither does the page any more; the node stays in the markup. */
.lp-grain { display: none; }

.lp-skip {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 100;
  transform: translateY(-300%);
  background: var(--lp-blue-600);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--lp-r-btn);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.lp-skip:focus-visible { transform: translateY(0); }

/* ── Type utilities ──────────────────────────────────────────────────────── */

/* Eyebrow = the app's KPI-tile label face (11px/800, uppercase, 0.04em). */
.lp-eyebrow,
.lp-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-eyebrow::before,
.lp-kicker::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: 2px;
  background: var(--lp-blue-600);
  flex-shrink: 0;
}

/* Display type: the app has one family, so scale IS the hierarchy —
   Inter 800 with the #appTitle tracking, tightened as it grows. */
.lp-display {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--lp-ink);
}
.lp-display-sm { font-size: clamp(28px, 3.6vw, 40px); }

/* Emphasis is COLOR, not italics — the one accent, same as every primary
   action in the app. */
.lp-display em, .lp-h2 em {
  font-style: normal;
  color: var(--lp-blue-600);
}

.lp-h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lp-h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lp-h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.lp-body {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--lp-ink-soft);
  max-inline-size: 58ch;
}
.lp-body-sm {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-ink-soft);
}
.lp-body-wide { max-inline-size: 68ch; }

.lp-lede {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--lp-ink-soft);
  max-inline-size: 56ch;
}

/* Pull quote → the app's notice idiom: tinted card, 4px accent rail. */
.lp-pull {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--lp-blue-600);
  border-radius: 6px;
  background: var(--lp-blue-50);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--lp-blue-800);
}

.lp-neg { color: var(--lp-red-600); font-weight: 600; }

/* ── Buttons — the .pmo-btn family, verbatim geometry ────────────────────── */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--lp-gray-300);
  background: #fff;
  color: var(--lp-gray-700);
  border-radius: var(--lp-r-btn);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lp-btn:hover { background: var(--lp-gray-50); }

.lp-btn-primary {
  background: var(--lp-blue-600);
  border-color: var(--lp-blue-600);
  color: #fff;
}
.lp-btn-primary:hover {
  background: var(--lp-blue-700);
  border-color: var(--lp-blue-700);
}

/* Quiet: the app's secondary button, on light ground. */
.lp-btn-quiet { background: #fff; }

/* Ghost: lives on the dark chrome bar only. */
.lp-btn-ghost {
  background: transparent;
  border-color: var(--lp-gray-600);
  color: var(--lp-gray-200, #e5e7eb);
}
.lp-btn-ghost:hover {
  background: var(--lp-gray-700);
  border-color: var(--lp-gray-500);
  color: #fff;
}

.lp-btn-lg {
  padding: 11px 20px;
  font-size: 13px;
  border-radius: 6px;
}

.lp-btn-arrow { font-weight: 400; }

.lp-btn:focus-visible {
  outline: 2px solid var(--lp-blue-600);
  outline-offset: 2px;
}

/* ── Nav — the app's fixed gray-800 chrome bar ───────────────────────────── */

.lp-nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  block-size: 56px;
  padding-inline: clamp(16px, 4vw, 32px);
  background: var(--lp-chrome);
  color: #fff;
}
.lp-nav.is-stuck { box-shadow: 0 4px 16px rgba(17, 24, 39, 0.25); }

.lp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

/* Brand mark: dark plate + blue signal trace (the app's primary). */
.lp-mark { inline-size: 28px; block-size: 28px; flex-shrink: 0; }
.lp-mark-sm { inline-size: 24px; block-size: 24px; }
.lp-mark-plate {
  fill: var(--lp-gray-900);
  stroke: var(--lp-gray-600);
  stroke-width: 1.5;
}
.lp-mark-trace {
  fill: none;
  stroke: var(--lp-blue-400);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stacked lockup: quiet org line over the product name — the product name
   carries the app-title face (800, tight tracking). */
.lp-wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.lp-wordmark-org {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-gray-400);
}
.lp-wordmark-product {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.lp-footer .lp-wordmark-product { font-size: 15px; }

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-inline-size: 0;
}
.lp-nav-links a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-gray-300);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lp-nav-links a:hover {
  color: #fff;
  background: var(--lp-gray-700);
}

.lp-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.lp-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--lp-gray-600);
  border-radius: 6px;
  color: var(--lp-gray-200, #e5e7eb);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}
.lp-nav-toggle-bar {
  display: block;
  inline-size: 16px;
  block-size: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* ── Layout primitives ───────────────────────────────────────────────────── */

.lp-section {
  max-inline-size: var(--lp-max);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px);
  padding-inline: clamp(16px, 4vw, 32px);
}

.lp-section-head { margin-block-end: 36px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.lp-hero {
  position: relative;
  max-inline-size: var(--lp-max);
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
  padding-inline: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* Quiet atmosphere: the grid every app table lives on, fading out. */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--lp-gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-gray-200) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

.lp-hero-glow {
  position: absolute;
  inset-block-start: -10%;
  inset-inline-end: -6%;
  inline-size: 46%;
  block-size: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--lp-blue-100), transparent 72%);
  opacity: 0.8;
  pointer-events: none;
}

.lp-hero-copy { min-inline-size: 0; }

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 26px;
}

.lp-hero-proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  font-size: 13px;
  color: var(--lp-ink-soft);
}
.lp-hero-proof li { display: flex; align-items: baseline; gap: 8px; }
.lp-dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--lp-green-600);
  flex-shrink: 0;
  transform: translateY(-1px);
}

/* ── Hero panel: an app window ───────────────────────────────────────────── */

.lp-hero-panel {
  position: relative;
  background: var(--lp-gray-50);
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  box-shadow: var(--lp-shadow-float);
  overflow: hidden;
}

/* Panel head = the app's chrome bar in miniature. */
.lp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--lp-chrome);
  color: #fff;
}
.lp-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
/* Live dot: the loop is running. */
.lp-panel-title::before {
  content: "";
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--lp-green-600);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
.lp-panel-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-gray-400);
}

@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

/* Sweep: a quiet scan line under the chrome — the scheduler's tick. */
.lp-sweep {
  position: relative;
  block-size: 2px;
  background: var(--lp-gray-200);
  overflow: hidden;
}
.lp-sweep-line {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -30%;
  inline-size: 30%;
  background: linear-gradient(90deg, transparent, var(--lp-blue-600), transparent);
  animation: lp-sweep-move 3.2s linear infinite;
}
@keyframes lp-sweep-move {
  from { transform: translateX(0); }
  to { transform: translateX(433%); }
}

/* ── Signal cards — .sig-card, faithful ──────────────────────────────────── */

.lp-signal {
  margin: 10px 12px;
  padding: 12px 14px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-inline-start-width: 5px;
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
}
.lp-signal:last-of-type { margin-block-end: 12px; }
.lp-signal-critical { border-inline-start-color: var(--lp-red-500); }
.lp-signal-warning { border-inline-start-color: var(--lp-amber-500); }
.lp-signal-info { border-inline-start-color: var(--lp-blue-400); }

.lp-signal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Severity chip: colour is never the only carrier — the chip spells it out
   (the app's sig-chip rule). The chip text lives in the markup. */
.lp-sev {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lp-signal-critical .lp-sev { background: var(--lp-red-100); color: var(--lp-red-800); }
.lp-signal-warning .lp-sev { background: var(--lp-amber-100); color: var(--lp-amber-800); }
.lp-signal-info .lp-sev { background: var(--lp-blue-100); color: var(--lp-blue-800); }

/* signal_type: an entity code — the app renders codes in system mono. */
.lp-signal-type {
  font-family: var(--lp-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-gray-700);
}
.lp-signal-scope {
  margin-inline-start: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lp-gray-100);
  color: var(--lp-gray-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lp-signal-title {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--lp-ink);
  overflow-wrap: anywhere;
}

/* Evidence: inline dt/dd pairs, exactly the .sig-evidence idiom. */
.lp-evidence {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 18px;
  font-size: 12px;
  color: var(--lp-gray-600);
}
.lp-evidence div { white-space: nowrap; }
.lp-evidence dt { display: inline; font-weight: 600; }
.lp-evidence dd {
  display: inline;
  margin-inline-start: 4px;
  font-family: var(--lp-mono);
  font-size: 11.5px;
}

/* The one next step: .sig-next — a blue-50 box with an uppercase label. */
.lp-signal-action {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--lp-blue-50);
  font-size: 12.5px;
  color: var(--lp-gray-800);
}
.lp-signal-action-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-blue-800);
  white-space: nowrap;
}

/* ── The gap ─────────────────────────────────────────────────────────────── */

.lp-gap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.lp-gap-figure {
  margin: 0;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  box-shadow: var(--lp-shadow-card);
  padding: 20px 20px 14px;
}

.lp-chart { display: block; inline-size: 100%; block-size: auto; }
.lp-chart-grid line { stroke: var(--lp-gray-200); stroke-width: 1; }
.lp-chart-risk {
  fill: none;
  stroke: var(--lp-red-500);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.lp-chart-attention {
  fill: none;
  stroke: var(--lp-blue-600);
  stroke-width: 2;
  stroke-linejoin: round;
}
.lp-chart-marks circle { fill: var(--lp-blue-600); }
.lp-chart-axis text {
  font-family: var(--lp-mono);
  font-size: 11px;
  fill: var(--lp-gray-500);
  text-anchor: middle;
}

.lp-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-block-start: 10px;
  font-size: 12px;
  color: var(--lp-gray-600);
}
.lp-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.lp-legend-item::before {
  content: "";
  inline-size: 14px;
  block-size: 3px;
  border-radius: 2px;
}
.lp-legend-attention::before { background: var(--lp-blue-600); }
.lp-legend-risk::before { background: var(--lp-red-500); }

/* ── Thesis triad ────────────────────────────────────────────────────────── */

.lp-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lp-triad-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* The Loop is the compounding part — it gets the app's blue tint. */
.lp-triad-card-hero {
  background: var(--lp-blue-50);
  border-color: var(--lp-blue-200);
}
.lp-triad-card-hero .lp-triad-index,
.lp-triad-card-hero .lp-triad-tag { color: var(--lp-blue-800); }
.lp-triad-card-hero .lp-triad-tag { border-color: var(--lp-blue-200); }

.lp-triad-index {
  margin: 0 0 12px;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-gray-400);
}
.lp-triad-lede {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lp-gray-800);
}
.lp-triad-tag {
  margin: 14px 0 0;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--lp-line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-ink-faint);
  margin-block-start: auto;
}

.lp-tensor { color: var(--lp-blue-600); font-weight: 400; }

.lp-thesis-note {
  margin: 28px auto 0;
  max-inline-size: 62ch;
  text-align: center;
  font-size: 13px;
  color: var(--lp-ink-faint);
}

/* ── The loop rail ───────────────────────────────────────────────────────── */

.lp-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lp-station;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lp-station {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 12px 14px;
}

/* Station number: the entity-code chip (mono on gray-100). */
.lp-station-no {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 26px;
  block-size: 26px;
  border-radius: 6px;
  background: var(--lp-gray-100);
  border: 1px solid var(--lp-line);
  font-family: var(--lp-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-gray-700);
}
.lp-station-name {
  font-size: 13.5px;
  font-weight: 700;
}
.lp-station-note {
  grid-column: 2;
  font-size: 12px;
  color: var(--lp-ink-faint);
}

.lp-loop-guards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-block-start: 28px;
}
.lp-guard {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 16px 18px;
}

/* ── Anatomy ─────────────────────────────────────────────────────────────── */

.lp-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lp-legend-list {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-legend-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.lp-legend-list dd {
  margin: 0;
  font-size: 13px;
  color: var(--lp-ink-soft);
}

/* Provenance tags: chips in the app's tint grammar — deterministic facts are
   neutral, model prose is indigo (the sig-next origin marker), provenance is
   the quiet outline. */
.lp-tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lp-tag-det { background: var(--lp-gray-100); color: var(--lp-gray-700); border: 1px solid var(--lp-line); }
.lp-tag-model { background: var(--lp-indigo-50); color: var(--lp-indigo-800); border: 1px solid #c7d2fe; }
.lp-tag-prov { background: #fff; color: var(--lp-gray-500); border: 1px dashed var(--lp-gray-300); }

.lp-anatomy-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  box-shadow: var(--lp-shadow-float);
  overflow: hidden;
}
.lp-anatomy-card .lp-panel-title::before { content: none; }
.lp-anatomy-card .lp-panel-title { font-family: var(--lp-mono); font-weight: 600; }

.lp-anat-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 14px;
  border-block-start: 1px solid var(--lp-gray-100);
  font-size: 13px;
}
.lp-anat-row:first-of-type { border-block-start: 0; }
.lp-anat-key {
  font-family: var(--lp-mono);
  font-size: 11.5px;
  color: var(--lp-gray-500);
  padding-block-start: 1px;
}
.lp-anat-val { color: var(--lp-gray-800); overflow-wrap: anywhere; }
.lp-anat-det .lp-anat-val { font-family: var(--lp-mono); font-size: 12.5px; }

/* Model rows carry the indigo origin rail — model prose must never look
   like computed fact. */
.lp-anat-model {
  background: var(--lp-indigo-50);
  border-inline-start: 3px solid var(--lp-indigo-400);
  padding-inline-start: 11px;
}
.lp-anat-prov { background: var(--lp-gray-50); }
.lp-anat-prov .lp-anat-val {
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-gray-600);
}

.lp-anat-foot {
  margin: 0;
  padding: 10px 14px 12px;
  border-block-start: 1px solid var(--lp-gray-100);
  font-size: 12px;
  color: var(--lp-ink-faint);
}

/* ── Catalogue ───────────────────────────────────────────────────────────── */

.lp-cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lp-cat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 12px 14px;
}
.lp-cat-key {
  font-family: var(--lp-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-gray-800);
}
.lp-cat-desc {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--lp-ink-faint);
}
.lp-cat-scope {
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lp-gray-100);
  color: var(--lp-gray-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── The system ──────────────────────────────────────────────────────────── */

.lp-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lp-mod-group {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 16px 18px;
}
.lp-mod-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--lp-gray-700);
}
/* Rows, like the app's tables: hairline separators, no bullets. */
.lp-mod-list li {
  padding-block: 6px;
  border-block-start: 1px solid var(--lp-gray-100);
}
.lp-mod-list li:first-child { border-block-start: 0; }

/* Facts: the KPI strip (.pmo-stat-item), value-first. */
.lp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}
.lp-fact {
  flex: 1 1 200px;
  min-inline-size: 150px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-fact-n {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink);
  line-height: 1.1;
}
.lp-fact-l {
  font-size: 12px;
  color: var(--lp-ink-faint);
}

/* Agent-native: one dark band — the chrome, widened into a card. */
.lp-agentic {
  margin-block-start: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  background: var(--lp-chrome);
  color: #fff;
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
}
.lp-agentic .lp-eyebrow { color: var(--lp-blue-400); }
.lp-agentic .lp-eyebrow::before { background: var(--lp-blue-400); }
.lp-agentic .lp-h3 { color: #fff; }
.lp-agentic .lp-body-sm { color: var(--lp-gray-300); }

.lp-agentic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}
.lp-agentic-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lp-gray-700);
  border-radius: var(--lp-r-card);
}
.lp-agentic-k {
  font-family: var(--lp-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-blue-400);
}
.lp-agentic-v {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lp-gray-300);
}

/* ── Audience ────────────────────────────────────────────────────────────── */

.lp-who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lp-who-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-card);
  box-shadow: var(--lp-shadow-card);
  padding: 18px 20px;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.lp-cta {
  max-inline-size: var(--lp-max);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
  padding-inline: clamp(16px, 4vw, 32px);
}

/* The closing card borrows the app's modal presence: white, floated. */
.lp-cta-inner {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  box-shadow: var(--lp-shadow-float);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-cta-inner .lp-eyebrow { justify-content: center; }
.lp-cta-inner .lp-body { margin-inline: auto; }
.lp-cta-inner .lp-hero-actions {
  justify-content: center;
  margin-block-end: 0;
}

/* ── Footer — the chrome again ───────────────────────────────────────────── */

.lp-footer {
  background: var(--lp-chrome);
  color: var(--lp-gray-400);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 24px clamp(16px, 4vw, 32px);
  font-size: 12px;
}
.lp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lp-footer-links {
  display: flex;
  gap: 4px;
}
.lp-footer-links a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-gray-300);
  text-decoration: none;
}
.lp-footer-links a:hover { color: #fff; background: var(--lp-gray-700); }
.lp-footer-note { margin: 0; margin-inline-start: auto; }

/* ── Motion ──────────────────────────────────────────────────────────────── */

/* Hero entrance: staggered rise, driven by data-delay steps. */
.lp-in {
  animation: lp-rise 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.lp-in[data-delay="1"] { animation-delay: 0.07s; }
.lp-in[data-delay="2"] { animation-delay: 0.14s; }
.lp-in[data-delay="3"] { animation-delay: 0.21s; }
.lp-in[data-delay="4"] { animation-delay: 0.28s; }
.lp-in[data-delay="5"] { animation-delay: 0.38s; }
.lp-in[data-delay="6"] { animation-delay: 0.48s; }
.lp-in[data-delay="7"] { animation-delay: 0.58s; }

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveals (landing.js adds .is-visible once per element). */
.lp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-in { animation: none; }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-sweep-line, .lp-panel-title::before { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-glow { display: none; }
  .lp-gap, .lp-anatomy { grid-template-columns: minmax(0, 1fr); }
  .lp-triad, .lp-loop-guards, .lp-modules, .lp-who-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .lp-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-agentic { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .lp-nav { gap: 12px; }
  .lp-nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .lp-nav-cta { display: none; }

  /* Mobile menu: a chrome-toned sheet under the bar. */
  .lp-nav-links {
    display: none;
    position: absolute;
    inset-block-start: 56px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--lp-chrome);
    border-block-start: 1px solid var(--lp-gray-700);
    padding: 10px clamp(16px, 4vw, 32px) 14px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.25);
  }
  .lp-nav-links.is-open { display: flex; }

  .lp-triad, .lp-loop-guards, .lp-modules, .lp-who-grid, .lp-cat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-rail { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-proof { grid-template-columns: minmax(0, 1fr); }
  .lp-anat-row { grid-template-columns: minmax(0, 1fr); gap: 2px 12px; }
  .lp-footer-note { margin-inline-start: 0; }
}
