/* ScaledPapers homepage — section styles for the animated product story.
   Shared chrome (header, footer, buttons, titles, pricing cards) stays in styles.css.
   Prefix: lp- */

/* Homepage only. Amber reads as degraded, so the landing accent is the operational green. */
body:has(.lp-main) {
  --color-primary: var(--color-success);
  --color-primary-hover: #2d6116;
  --color-primary-active: #234d12;
  --color-primary-highlight: #dce8d4;
}
[data-theme="dark"] body:has(.lp-main) {
  --color-primary-hover: #8bc46a;
  --color-primary-active: #a6d488;
  --color-primary-highlight: #24331c;
}

.lp-main {
  --lp-gutter: var(--space-6);
  --lp-panel-bg: var(--color-surface);
  --lp-panel-border: var(--color-divider);
  --lp-ok: var(--color-success);
  --lp-bad: #c23b3b;
  --lp-warn: var(--color-success);
  max-width: 1080px;
  margin-inline: auto;
  padding: var(--space-8) var(--lp-gutter) var(--space-6);
  display: grid;
  gap: 0;
}
[data-theme="dark"] .lp-main {
  --lp-bad: #e26a6a;
  --lp-warn: var(--color-success);
}

.lp-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--color-divider);
  scroll-margin-top: calc(var(--nav-h) + var(--space-4));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  min-width: 0;
}
.lp-section > * { min-width: 0; }
.lp-section--hero {
  border-top: 0;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.lp-section--live {
  border-top: 0;
  padding-top: 0;
}

/* Reveal on scroll. landing.js adds .is-in once; reduced motion shows final frame. */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-reveal.is-in { opacity: 1; transform: none; }
.lp-reveal[data-delay="1"] { transition-delay: 0.1s; }
.lp-reveal[data-delay="2"] { transition-delay: 0.2s; }
.lp-reveal[data-delay="3"] { transition-delay: 0.3s; }

.lp-eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.lp-eyebrow b {
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 0.6em;
}
.lp-h2 {
  margin: 0;
  max-width: 22ch;
}
.lp-lead {
  margin: var(--space-4) 0 0;
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.lp-lead a { color: var(--color-text); }
.lp-sub {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--space-10);
  align-items: start;
}
.lp-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lp-split > * { min-width: 0; }

.lp-panel {
  border: 1px solid var(--lp-panel-border);
  border-radius: var(--radius-lg);
  background: var(--lp-panel-bg);
  overflow: hidden;
}
.lp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lp-panel-head strong {
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
}
.lp-panel-head > span:last-child { text-align: right; }
.lp-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lp-ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-ok) 22%, transparent);
  vertical-align: middle;
  margin-right: 0.45rem;
}
.lp-dot--bad { background: var(--lp-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-bad) 22%, transparent); }
.lp-dot--warn { background: var(--lp-warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-warn) 22%, transparent); }
.lp-dot--live { animation: lp-blink 1.6s ease-in-out infinite; }
@keyframes lp-blink { 50% { opacity: 0.35; } }

.lp-points {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.lp-points li {
  display: grid;
  gap: 0.2rem;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}
.lp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6em;
  height: 0.3em;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}
.lp-points strong { font-weight: 600; }
.lp-points span { color: var(--color-text-muted); font-size: 0.9rem; }

.lp-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------- 0 Hero ---------- */
.lp-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-5);
}
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lp-hero .landing-title {
  max-width: 18em;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 500;
}
.lp-hero-line { display: block; }
.lp-hero-line--quiet {
  margin-top: 0.12em;
  font-family: var(--font-reading);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
}
.lp-hero .lp-lead {
  margin-top: 0;
  text-align: center;
}
.lp-hero .landing-intro-actions { justify-content: center; }
.lp-price-line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.lp-price-line b { color: var(--color-text); font-weight: 600; }
.lp-hero > * { animation: landing-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lp-hero > *:nth-child(1) { animation-delay: 0.05s; }
.lp-hero > *:nth-child(2) { animation-delay: 0.14s; }
.lp-hero > *:nth-child(3) { animation-delay: 0.24s; }
.lp-hero > *:nth-child(4) { animation-delay: 0.34s; }
.lp-hero > *:nth-child(5) { animation-delay: 0.42s; }

/* ---------- 1 Live proof ---------- */
.lp-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}
.lp-features svg { width: 14px; height: 14px; color: var(--color-primary); }

.lp-agent-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.lp-agent-bar > span { margin-right: var(--space-2); }
.lp-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0 0.75rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.lp-copy-btn:hover { border-color: var(--color-border); background: var(--color-surface-2); }
.lp-copy-btn.is-copied { border-color: var(--color-success); color: var(--color-success); }
.lp-agent-bar .lp-agent-logo {
  width: 15px;
  height: 15px;
  flex: none;
  display: block;
}
.lp-agent-bar .lp-copy-btn.is-copied .lp-agent-logo { color: var(--color-text); }
.lp-agent-bar a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-live-rows { display: grid; }
.lp-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.lp-live-row:last-child { border-bottom: 0; }
.lp-live-name { display: grid; gap: 0.1rem; min-width: 0; }
.lp-live-name strong {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-live-name span { font-size: 0.75rem; color: var(--color-text-muted); }
.lp-spark { width: 100%; height: 28px; display: block; }
.lp-spark polyline {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.lp-spark circle { fill: var(--color-success); }
.lp-live-ms {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-width: 4.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lp-live-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.lp-live-foot strong { color: var(--color-text); font-weight: 600; }

/* ---------- 5 MCP terminal ---------- */
.lp-term {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  background: #15140f;
  color: #e6e2d6;
  border-color: #2a2822;
}
[data-theme="dark"] .lp-term { background: #0f0e0c; }
.lp-term .lp-panel-head {
  color: #9a968a;
  border-color: #2a2822;
  background: #1b1a15;
}
.lp-term-lights { display: inline-flex; gap: 6px; }
.lp-term-lights span { width: 10px; height: 10px; border-radius: 50%; background: #3b3a33; display: block; }
.lp-term-body {
  padding: var(--space-4);
  height: 23.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lp-term-line { display: block; min-height: 1.6em; }
.lp-term-line[data-kind="cmd"]::before { content: "$ "; color: #8fb573; }
.lp-term-line[data-kind="call"] { color: #9dcc78; }
.lp-term-line[data-kind="call"]::before { content: "→ "; }
.lp-term-line[data-kind="ret"] { color: #9a968a; }
.lp-term-line[data-kind="ret"]::before { content: "← "; }
.lp-term-line[data-kind="ok"] { color: #8fb573; }
.lp-term-line[data-kind="ok"]::before { content: "✓ "; }
.lp-term-line[data-kind="say"] { color: #e6e2d6; }
.lp-term-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 1px;
  background: #e6e2d6;
  vertical-align: -0.2em;
  animation: lp-blink 1s steps(1) infinite;
}
.lp-tools { display: grid; align-content: start; }
.lp-tools .lp-panel-head strong { font-family: var(--font-mono); font-weight: 500; }
.lp-tools-list {
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
  display: grid;
  max-height: 22rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lp-tools-list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem var(--space-4);
  border-left: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.lp-tools-list li.is-active {
  background: var(--color-primary-highlight);
  border-left-color: var(--color-primary);
}
.lp-tools-list code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.lp-tools-list span { font-size: 0.78rem; color: var(--color-text-muted); }
.lp-tools-more {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lp-tools-more a { color: var(--color-text); }

/* ---------- Tabs (alerts, wire) ---------- */
.lp-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.lp-tab-logo { width: 15px; height: 15px; flex: none; display: block; }
.lp-tab:hover { color: var(--color-text); }
.lp-tab[aria-selected="true"] {
  background: var(--color-action);
  color: var(--color-action-text);
}

/* ---------- 2 Alerts ---------- */
.lp-alerts-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.lp-alerts-head > * { min-width: 0; }
.lp-alert-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-6);
  min-height: 15rem;
}
.lp-alert-card {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: 0.82rem;
  opacity: 0.35;
  transform: scale(0.97);
  transition: opacity 0.4s, transform 0.4s, border-color 0.4s;
}
.lp-alert-card.is-on { opacity: 1; transform: none; border-color: var(--color-border); }
.lp-alert-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.lp-alert-card-title svg { width: 16px; height: 16px; }
.lp-alert-card p { margin: 0; color: var(--color-text-muted); }
.lp-alert-card code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-text); }
.lp-alert-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  min-width: 11rem;
}
.lp-alert-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.4s, color 0.4s;
}
.lp-alert-core::before,
.lp-alert-core::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--lp-ok);
  opacity: 0;
}
.lp-alert-stage[data-phase="fail1"] .lp-alert-core,
.lp-alert-stage[data-phase="fail2"] .lp-alert-core { border-color: var(--lp-bad); color: var(--lp-bad); }
.lp-alert-stage[data-phase="fail1"] .lp-alert-core::before,
.lp-alert-stage[data-phase="fail2"] .lp-alert-core::before,
.lp-alert-stage[data-phase="fail2"] .lp-alert-core::after {
  border-color: var(--lp-bad);
  animation: lp-ring 1.4s ease-out infinite;
}
.lp-alert-stage[data-phase="fail2"] .lp-alert-core::after { animation-delay: 0.7s; }
.lp-alert-stage[data-phase="ok"] .lp-alert-core { border-color: var(--lp-ok); color: var(--lp-ok); }
.lp-alert-stage[data-phase="ok"] .lp-alert-core::before { animation: lp-ring 1.4s ease-out 1; }
@keyframes lp-ring {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.9); opacity: 0; }
}
.lp-alert-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.lp-alert-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
  list-style: none;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.lp-alert-steps li {
  padding-top: var(--space-2);
  border-top: 2px solid var(--color-divider);
  transition: border-color 0.4s, color 0.4s;
}
.lp-alert-steps li.is-on { border-top-color: var(--color-primary); color: var(--color-text); }

/* ---------- 3 Dashboard ---------- */
.lp-dash .lp-live-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; }
.lp-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--lp-ok) 14%, transparent);
  color: var(--lp-ok);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- 4 Regions map ---------- */
.lp-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.lp-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
}
.lp-map-land {
  position: absolute;
  inset: 0;
  background: var(--color-text);
  opacity: 0.13;
  -webkit-mask: url("/world-map.svg") center / 100% 100% no-repeat;
  mask: url("/world-map.svg") center / 100% 100% no-repeat;
}
[data-theme="dark"] .lp-map-land { opacity: 0.22; }
/* Soften the Arctic crop line where northern coastlines meet the viewBox edge. */
.lp-map::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16%;
  background: linear-gradient(var(--color-bg) 10%, transparent);
  z-index: 1;
  pointer-events: none;
}
.lp-map-dot { z-index: 2; }
.lp-map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-bg);
}
.lp-map-dot::before,
.lp-map-dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  opacity: 0;
  animation: lp-ring 2.8s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.lp-map-dot::after { animation-delay: calc(var(--d, 0s) + 1.4s); }
.lp-map-dot--soon {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--color-text-faint);
}
.lp-map-dot--soon::before,
.lp-map-dot--soon::after { display: none; }
.lp-map-tap {
  position: absolute;
  inset: -17px;
  border-radius: 50%;
}
.lp-map-dot:hover .lp-map-label,
.lp-map-dot:focus-within .lp-map-label { opacity: 1; }
.lp-map-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-action);
  color: var(--color-action-text);
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lp-regions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.lp-regions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.88rem;
}
.lp-regions li:last-child { border-bottom: 0; }
.lp-regions li.is-soon { color: var(--color-text-muted); }
.lp-regions span { font-size: 0.75rem; color: var(--color-text-muted); margin-left: 0.4rem; }
.lp-regions b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- 6 Custom domain ---------- */
.lp-domain-body { padding: var(--space-5) var(--space-4); display: grid; gap: var(--space-4); }
.lp-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  transition: background 0.4s, color 0.4s;
}
.lp-badge[data-state="dns"] { background: color-mix(in srgb, var(--lp-warn) 16%, transparent); color: var(--lp-warn); }
.lp-badge[data-state="verify"] { background: var(--color-primary-highlight); color: var(--color-primary); }
.lp-badge[data-state="live"] { background: color-mix(in srgb, var(--lp-ok) 14%, transparent); color: var(--lp-ok); }
.lp-domain-dns {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.lp-domain-dns b { color: var(--color-text); font-weight: 500; }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lp-step;
}
.lp-steps li {
  counter-increment: lp-step;
  padding-top: var(--space-2);
  border-top: 2px solid var(--color-divider);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: border-color 0.4s, color 0.4s;
}
.lp-steps li::before { content: counter(lp-step) " "; font-family: var(--font-mono); }
.lp-steps li.is-on { border-top-color: var(--color-primary); color: var(--color-text); }

/* ---------- 7 Incident timeline ---------- */
.lp-timeline { padding: var(--space-8) var(--space-6) var(--space-6); display: grid; gap: var(--space-8); }
.lp-tl-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}
.lp-tl-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 7px;
  height: 2px;
  background: var(--color-divider);
}
.lp-tl-progress {
  position: absolute;
  left: 10%;
  top: 7px;
  height: 2px;
  width: 0;
  background: var(--color-text);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-tl-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
}
.lp-tl-step i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-divider);
  background: var(--color-bg);
  transition: border-color 0.3s, background 0.3s;
}
.lp-tl-step b { font-family: var(--font-mono); font-weight: 500; }
.lp-tl-step.is-done i { border-color: var(--color-text); }
.lp-tl-step.is-on i { border-color: var(--color-text); background: var(--color-text); }
.lp-tl-step.is-on { color: var(--color-text); }
.lp-tl-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  min-height: 7.5rem;
}
.lp-tl-card time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-text-muted); }
.lp-tl-card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.lp-tl-card p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.55; }
.lp-tl-card code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-text); }

/* ---------- 8 Wire it in ---------- */
.lp-code {
  position: relative;
  margin: 0;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.lp-code[hidden] { display: none; }
.lp-code pre {
  margin: 0;
  padding: var(--space-5) var(--space-5) var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
}
.lp-code pre code {
  font: inherit;
  background: none;
  padding: 0;
  color: inherit;
}
.lp-code .lp-copy-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}
.lp-code-note {
  margin: 0;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-divider);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lp-code-note a { color: var(--color-text); }

/* ---------- 9 Pricing ---------- */
.lp-pricing .pricing-grid { margin: 0; }
.lp-pricing .pricing-billing { margin: 0 0 var(--space-6); }
.lp-pricing-faq {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  font-size: 0.92rem;
}
.lp-pricing-faq dt { font-weight: 600; }
.lp-pricing-faq dd { margin: 0.2rem 0 0; color: var(--color-text-muted); line-height: 1.55; }
.lp-pricing-faq a { color: var(--color-text); }
.pricing-card-tag {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lp-pricing .pricing-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}
.lp-pricing .pricing-card-tag svg {
  width: 12px;
  height: 12px;
  flex: none;
  display: block;
}
.lp-pricing .pricing-card-featured {
  border-color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-text);
}
.lp-pricing .pricing-features li::before {
  border-left-color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* ---------- 10 Video + CTAs ---------- */
.lp-video {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: #000;
  overflow: hidden;
}
.lp-video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* YouTube draws a copy-link control at a fixed inset. Paint the poster over it. */
.lp-video::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 26px;
  bottom: 5px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #100e0c;
  background-image: url("https://i.ytimg.com/vi/lkkzIxLZi-Y/maxresdefault.jpg");
  background-repeat: no-repeat;
  background-size: 100cqi calc(100cqi * 9 / 16);
  background-position: -26px calc(-100cqi * 9 / 16 + 69px);
}
.lp-final {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-4);
}
.lp-final .landing-intro-actions { justify-content: center; }

.lp-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lp-split,
  .lp-split--even,
  .lp-map-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .lp-alert-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: var(--space-6) var(--space-4);
  }
  .lp-alert-node { order: -1; }
  .lp-alert-card { width: 100%; max-width: 24rem; }
  .lp-alert-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: var(--space-4); }
  .lp-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); }
  .lp-tl-track { grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-3) var(--space-4); }
  .lp-tl-track::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .lp-tl-progress { left: 7px; top: 8px; width: 2px; height: 0; transition-property: height; }
  .lp-tl-step { display: contents; }
  .lp-tl-step i { grid-column: 1; }
  .lp-tl-step b { grid-column: 2; text-align: left; font-size: 0.8rem; }
  .lp-tl-step b::after { content: " · " attr(data-label); font-family: var(--font-body); color: inherit; }
  .lp-tl-step span { display: none; }
  .lp-timeline { padding: var(--space-5) var(--space-4); }
}
@media (max-width: 640px) {
  .lp-main { padding-inline: var(--space-4); }
  .lp-section { padding-block: 2.5rem; gap: var(--space-6); }
  .lp-hero .landing-title { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .lp-hero .landing-intro-actions,
  .lp-final .landing-intro-actions { width: 100%; }
  .lp-hero .landing-intro-actions .landing-btn,
  .lp-final .landing-intro-actions .landing-btn { flex: 1 1 100%; }
  .lp-agent-bar { justify-content: flex-start; }
  .lp-live-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--space-3); padding-inline: var(--space-3); }
  .lp-live-row.is-mobile-hidden { display: none; }
  .lp-term-body { font-size: 0.74rem; min-height: 13rem; }
  .lp-tools-list li.is-fold { display: none; }
  .lp-tools-list.is-open li.is-fold { display: grid; }
  .lp-regions { grid-template-columns: minmax(0, 1fr); }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-domain-dns { grid-template-columns: minmax(0, 1fr); }
  .lp-alert-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-pricing .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-code pre { font-size: 0.74rem; padding: var(--space-4); padding-top: 3rem; }
}
@media (max-width: 400px) {
  .lp-live-ms { display: none; }
}
@media (min-width: 641px) {
  .lp-tools-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero > * { animation: none; }
  .lp-dot--live,
  .lp-term-caret,
  .lp-map-dot::before,
  .lp-map-dot::after,
  .lp-alert-core::before,
  .lp-alert-core::after { animation: none; }
  .lp-tl-progress,
  .lp-alert-card,
  .lp-badge,
  .lp-steps li,
  .lp-alert-steps li,
  .lp-tools-list li { transition: none; }
}
