/* QuickStatus 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;
}

/* Primary actions use the accent so "Start free" is the loudest element. */
body:has(.lp-main) {
  --lp-cta-text: #ffffff;
}
[data-theme="dark"] body:has(.lp-main) {
  --lp-cta-text: #141310;
}
.lp-main .landing-btn--primary,
.lp-main .pricing-cta:not(.pricing-cta--ghost),
body:has(.lp-main) .landing-nav-cta {
  background: var(--color-primary);
  color: var(--lp-cta-text);
}
.lp-main .landing-btn--primary:hover,
.lp-main .pricing-cta:not(.pricing-cta--ghost):hover,
body:has(.lp-main) .landing-nav-cta:hover {
  background: var(--color-primary-hover);
  color: var(--lp-cta-text);
}

.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.
   Hidden only under html.lp-js (set in <head> by landing-redirect.js), so the page
   still shows everything when scripts are blocked or a tool captures it unscrolled. */
.lp-js .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-js .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-lead b { color: var(--color-text); font-weight: 600; }
.lp-sub {
  margin: var(--space-2) 0 0;
  max-width: 44rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.lp-sub b { color: var(--color-text); font-weight: 600; }
.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-hero .landing-title {
  max-width: 18em;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 500;
}
.lp-hero-line { display: block; text-wrap: balance; }
.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;
  text-wrap: balance;
}
.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-price-line a { color: var(--color-text); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--color-divider); }
.lp-price-line a:hover { text-decoration-color: currentColor; }
.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; }
.lp-hero > *:nth-child(6) { animation-delay: 0.5s; }
.lp-hero-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: calc(-1 * var(--space-1));
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.lp-hero-demo svg { flex: none; color: var(--color-primary); }
.lp-hero-demo:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- 1 Live proof ---------- */
.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-agent-bar--section { margin-top: var(--space-4); }
.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-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; }

/* Scan your site: the hero panel previews the visitor's status page */
.lp-scan-form { flex-wrap: wrap; margin: 0; padding-block: var(--space-3); }
.lp-scan-label { display: inline-flex; align-items: center; min-width: 0; font-size: 0.9rem; }
.lp-scan-label strong { overflow: hidden; text-overflow: ellipsis; }
.lp-scan.has-result .lp-scan-label strong::after {
  content: 'Preview';
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
  vertical-align: 0.1em;
}
.lp-scan-field { display: flex; gap: var(--space-2); flex: 1 1 18rem; max-width: 26rem; }
.lp-scan-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.25rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border, var(--color-divider));
  border-radius: var(--radius-md, 6px);
  background: var(--color-bg, var(--color-surface));
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
}
/* One green frame on focus (the border itself), not an outline around the grey border. */
.lp-scan-field input:focus,
.lp-scan-field input:focus-visible { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.lp-scan-btn {
  height: 2.25rem;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-md, 6px);
  background: var(--color-primary);
  color: var(--color-text-inverse, #fff);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lp-scan-btn:hover { background: var(--color-primary-hover); }
.lp-scan-btn:disabled { opacity: 0.7; cursor: progress; }
/* Touch screens: 16px text so iOS Safari does not zoom the page when the box is
   tapped. Height stays 2.25rem for both, as on desktop. Kept after the base
   .lp-scan-btn rule so it wins. */
@media (max-width: 640px), (pointer: coarse) {
  .lp-scan-field input { font-size: 16px; -webkit-appearance: none; appearance: none; }
}

/* Status line: plain hint before a scan, a status-page banner after it */
.lp-scan-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.lp-scan-status-text { min-width: 0; }
.lp-scan-status-meta { margin-left: auto; font-size: 0.75rem; color: var(--color-text-muted); font-weight: 400; text-align: right; }
.lp-scan-status-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.lp-scan-status.is-ok,
.lp-scan-status.is-warn {
  padding-block: var(--space-3);
  font-size: 0.88rem;
  font-weight: 600;
}
.lp-scan-status.is-ok { color: var(--lp-ok); background: color-mix(in srgb, var(--lp-ok) 9%, transparent); }
.lp-scan-status.is-warn { color: var(--lp-bad); background: color-mix(in srgb, var(--lp-bad) 8%, transparent); }
.lp-scan-status.is-busy { color: var(--color-text); }
.lp-scan-status.is-busy .lp-scan-status-dot { color: var(--color-primary); animation: lp-blink 1s ease-in-out infinite; }
.lp-scan-status.is-error { color: var(--lp-bad); }

/* Group heads, as on a status page */
.lp-group-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4) 0.35rem;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-text) 2.5%, transparent);
}
.lp-group-count { font-variant-numeric: tabular-nums; font-weight: 500; opacity: 0.8; }

/* Uptime strip rows */
.lp-live-row--bars {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 6.5rem;
  padding-block: 0.6rem;
}
.lp-live-row--bars .lp-live-name strong { font-size: 0.86rem; }
.lp-live-row--bars .lp-live-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-live-row--bars .lp-live-ms { text-align: right; color: var(--color-text-muted); }
.lp-bars { display: flex; gap: 2px; height: 18px; align-items: stretch; }
.lp-bars span { flex: 1 1 0; min-width: 2px; border-radius: 1.5px; background: color-mix(in srgb, var(--color-text) 9%, transparent); }
.lp-bars span.is-ok { background: var(--lp-ok); }
.lp-bars span.is-bad { background: var(--lp-bad); }
.lp-bars-axis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 6.5rem;
  gap: var(--space-4);
  padding: 0.35rem var(--space-4) 0.5rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}
.lp-bars-axis-ticks { display: flex; justify-content: space-between; }
.lp-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-pill-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.lp-pill--ok { color: var(--lp-ok); background: color-mix(in srgb, var(--lp-ok) 12%, transparent); }
.lp-pill--bad { color: var(--lp-bad); background: color-mix(in srgb, var(--lp-bad) 12%, transparent); }
.lp-live-row--bars.is-down .lp-live-name strong { color: var(--lp-bad); }
.is-folded { display: none !important; }
.lp-scan-more {
  display: block;
  width: 100%;
  padding: var(--space-2);
  border: 0;
  border-top: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.lp-scan-more:hover { background: color-mix(in srgb, var(--color-primary) 6%, transparent); }

/* Scanning: rows shimmer while the request runs */
.lp-scan.is-scanning .lp-live-rows { opacity: 0.5; transition: opacity 0.2s; }
.lp-scan.is-scanning .lp-bars span { animation: lp-scan-wave 1.4s ease-in-out infinite; }
.lp-scan.is-scanning .lp-bars span:nth-child(3n) { animation-delay: 0.2s; }
.lp-scan.is-scanning .lp-bars span:nth-child(3n+1) { animation-delay: 0.4s; }
@keyframes lp-scan-wave { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  .lp-scan.is-scanning .lp-bars span,
  .lp-scan-status.is-busy .lp-scan-status-dot { animation: none; }
}

/* Footer after a scan: summary left, primary CTA right */
.lp-live-foot.is-result { align-items: center; padding-block: var(--space-3); }
.lp-scan-summary { display: grid; gap: 0.15rem; min-width: 0; }
.lp-scan-fine { font-size: 0.72rem; }
.lp-live-foot .lp-scan-cta,
.lp-live-foot .lp-scan-cta:hover { flex: none; font-size: 0.85rem; color: var(--color-action-text); text-decoration: none; }
/* Same height as the Scan button (.lp-scan-btn, 2.25rem). */
.lp-live-foot .lp-scan-cta { height: 2.25rem; padding-block: 0; justify-content: center; }

/* ---------- 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); }

/* ---------- 3 Dashboard ---------- */
.lp-split--dash { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); align-items: center; }
.lp-dash .lp-live-row--bars { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 3.5rem; }
.lp-dash .lp-live-row.is-down { background: color-mix(in srgb, var(--lp-bad) 7%, transparent); }
.lp-dash .lp-live-row.is-down .lp-live-name strong,
.lp-dash .lp-live-row.is-down .lp-live-ms { color: var(--lp-bad); }
.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;
}
.lp-dash-badge--bad {
  background: color-mix(in srgb, var(--lp-bad) 14%, transparent);
  color: var(--lp-bad);
}

/* ---------- 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); }

/* ---------- Incident timeline (inside 2 Alerts; #incident anchor) ---------- */
.lp-timeline { scroll-margin-top: calc(var(--nav-h) + var(--space-4)); }
.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); }

/* ---------- 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);
}

/* ---------- Demo video + closing CTA ---------- */
.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; }
.lp-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: #100e0c;
  cursor: pointer;
}
.lp-video-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-video-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 14, 12, 0.72);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.lp-video-icon svg { width: 30px; height: 30px; margin-left: 3px; }
.lp-video-play:hover .lp-video-icon,
.lp-video-play:focus-visible .lp-video-icon { transform: scale(1.06); background: var(--color-primary); color: #100e0c; }
.lp-video-play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 640px) {
  .lp-video-icon { width: 52px; height: 52px; }
  .lp-video-icon svg { width: 22px; height: 22px; margin-left: 2px; }
}
.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);
}

/* ---------- Today strip (live counters, landing-stats.mjs) ---------- */
.lp-section--stats {
  border-top: 0;
  padding-top: var(--space-8);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.lp-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--lp-panel-border);
  border-radius: var(--radius-lg);
  background: var(--lp-panel-bg);
}
.lp-stats-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid var(--lp-panel-border);
  border-radius: var(--radius-full);
  background: var(--lp-panel-bg);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.lp-stats-live {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--lp-ok) 15%, transparent);
  color: var(--lp-ok);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lp-stats-live .lp-dot { width: 0.42rem; height: 0.42rem; margin-right: 0.4rem; }
.lp-stat {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-8) var(--space-6) var(--space-6);
  min-width: 0;
  container-type: inline-size;
  transition: background-color 0.2s ease;
}
.lp-stat:hover { background: color-mix(in srgb, var(--color-text) 2.5%, transparent); }
.lp-stat + .lp-stat { border-left: 1px solid var(--color-divider); }
.lp-stat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.lp-stat-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  color: var(--color-text-muted);
}
.lp-stat-icon svg { width: 0.85rem; height: 0.85rem; }
.lp-stat-label {
  margin: 0;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-stats-rate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--lp-ok);
}
.lp-stats-rate::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.lp-stats-rate:empty { display: none; }
.lp-stat-value {
  margin: 0;
  height: 1em;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 2.7rem);
  /* 11 characters ("201,634,930") must fit the card width. */
  font-size: min(2.7rem, 100cqi / 6.4);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.lp-stat-sub {
  margin: 0;
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.lp-stat-sub b { font-weight: 500; color: var(--color-text); opacity: 0.8; }
.lp-stats[data-state="loading"] .lp-stat-value { color: var(--color-text-faint, var(--color-text-muted)); }
.lp-odo { display: inline-flex; }
.lp-odo-d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}
.lp-odo-strip {
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-odo-strip > span { display: block; height: 1em; }
.lp-odo-unit { margin-left: 0.15em; font-size: 0.5em; font-weight: 500; align-self: flex-end; line-height: 1.6; color: var(--color-text-muted); letter-spacing: 0; }
.lp-stats-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.lp-stats-foot:has(> span:only-child:empty) { display: none; }
.lp-stats-foot span { white-space: nowrap; }
/* 2x2 below 1060px: four across leaves a card under ~190px, too narrow for
   "Fastest 124 ms · slowest 12.4 s" on one line (measured 2026-11-06). */
@media (max-width: 1060px) {
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stat + .lp-stat { border-left: 0; }
  .lp-stat:nth-of-type(even) { border-left: 1px solid var(--color-divider); }
  .lp-stat:nth-of-type(n + 3) { border-top: 1px solid var(--color-divider); }
}
@media (max-width: 640px) {
  .lp-stats { grid-template-columns: minmax(0, 1fr); }
  .lp-stat { padding: var(--space-5) var(--space-5) var(--space-4); gap: var(--space-2); }
  .lp-stat:first-of-type { padding-top: var(--space-8); }
  .lp-stat:nth-of-type(even) { border-left: 0; }
  .lp-stat + .lp-stat { border-left: 0; border-top: 1px solid var(--color-divider); }
  .lp-stats-foot { padding-inline: var(--space-5); flex-wrap: wrap; gap: var(--space-2); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lp-split,
  .lp-split--even,
  .lp-split--dash,
  .lp-map-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .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-scan-form { padding-inline: var(--space-3); }
  .lp-scan-field { flex-basis: 100%; max-width: none; }
  .lp-scan-status { padding-inline: var(--space-3); flex-wrap: wrap; }
  .lp-scan-status-meta { margin-left: 0; flex-basis: 100%; text-align: left; }
  .lp-group-head { padding-inline: var(--space-3); }
  .lp-live-row--bars, .lp-bars-axis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .lp-dash .lp-live-row--bars { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .lp-bars-axis { gap: var(--space-3); padding-inline: var(--space-3); }
  .lp-bars span:nth-child(-n+12) { display: none; }
  .lp-live-foot.is-result { flex-direction: column; align-items: stretch; }
  .lp-live-foot .lp-scan-cta { text-align: center; }
  .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-pricing .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .lp-live-ms { display: none; }
}
@media (min-width: 641px) {
  .lp-tools-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-js .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 { animation: none; }
  .lp-tl-progress,
  .lp-badge,
  .lp-steps li,
  .lp-tools-list li,
  .lp-odo-strip { transition: none; }
}
