/* Public homepage (templates/landing.html). Always dark, like the sign-in
   page's brand panel; reuses its globe and HUD pieces from style.css. */
.lp {
  --lp-bg: #000103;
  --lp-surface: #0b1220;
  --lp-surface-2: #101a2c;
  --lp-line: rgba(80, 140, 255, 0.14);
  --lp-text: #e9edf7;
  --lp-text-2: #a4aec3;
  --lp-text-3: #6c7589;
  --lp-blue: #1f6bff;
  --lp-cyan: #38c8ff;
  --brand-blue: #1f6bff;
  --brand-cyan: #38c8ff;
  --line: rgba(80, 140, 255, 0.035);
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lp main { overflow-x: clip; }
.lp a { color: inherit; }
.lp h1, .lp h2, .lp h3 { color: var(--lp-text); }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(0, 1, 3, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
/* The logo (brand_mark in landing.html): a tiny live globe, then the logo's own lettering
   over a letter-spaced "Intelligence Solutions", as in the logo art. */
.lp-mini-globe {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 66% 30%, #6fb4ff 0%, #1f6bff 45%, #03112e 100%);  /* until the script draws */
  filter: drop-shadow(0 0 7px rgba(56, 140, 255, 0.75));
}
.lp-wordmark { display: inline-grid; gap: 4px; justify-items: start; }
.lp-wordmark img { display: block; height: 15px; width: auto; }
.lp-wordmark-sub {
  /* spaced so the line runs the width of the 15px-tall wordmark above it, as in the logo */
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.71em; text-transform: uppercase; color: #b9c6dd;
  white-space: nowrap;
}
.lp-logo { gap: 12px; }
.lp-links { display: flex; gap: 22px; margin-left: auto; font-size: 0.9rem; color: var(--lp-text-2); }
.lp-links a { text-decoration: none; }
.lp-links a:hover, .lp-links a:focus-visible { color: var(--lp-text); }
.lp-nav-actions { display: flex; gap: 10px; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lp-btn-primary { background: linear-gradient(90deg, var(--lp-blue), var(--lp-cyan)); color: #fff; box-shadow: 0 6px 22px rgba(31, 107, 255, 0.35); }
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(31, 107, 255, 0.45); }
.lp-btn-ghost { border-color: var(--lp-line); background: rgba(31, 107, 255, 0.06); color: var(--lp-text); }
.lp-btn-ghost:hover { background: rgba(31, 107, 255, 0.12); }
.lp-btn:focus-visible { outline: 2px solid var(--lp-cyan); outline-offset: 2px; }
.lp-btn-lg { padding: 13px 22px; font-size: 1rem; }
.lp-btn { white-space: nowrap; }
.lp-mobile-only { display: none !important; }
.lp-signin-link { margin-top: 14px; font-size: 0.9rem; color: var(--lp-text-2); text-decoration: underline; text-underline-offset: 3px; }
.lp-btn-sm { padding: 7px 12px; font-size: 0.82rem; }

/* Hero */
.lp-hero {
  position: relative; display: grid; justify-items: center; gap: 16px;
  padding: 36px 16px 64px; text-align: center; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 38%, rgba(31, 107, 255, 0.05), transparent 70%);
}
.lp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
}
.lp-hero > *:not(.auth-hud) { position: relative; z-index: 1; }
.lp-stage .auth-logo-hero { max-height: min(62vh, 600px); }
.lp-hero-copy { max-width: 760px; }
.lp-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 680; text-wrap: balance; }
.lp-hero h1 span {
  display: inline-block;
  background: linear-gradient(90deg, #4d8bff 0%, var(--lp-blue) 35%, var(--lp-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero-copy > p { margin: 16px auto 0; max-width: 620px; color: var(--lp-text-2); font-size: 1.05rem; line-height: 1.6; }
/* The eyebrow's "live" dot: neon green with a glowing pulse, so it reads as switched on. */
.lp-hero .live-dot {
  background: #39ff7a;
  box-shadow: 0 0 6px #39ff7a, 0 0 0 0 rgba(57, 255, 122, 0.6);
  animation: lpLivePing 2.4s ease-out infinite;
}
@keyframes lpLivePing {
  0% { box-shadow: 0 0 6px #39ff7a, 0 0 0 0 rgba(57, 255, 122, 0.6); }
  80%, 100% { box-shadow: 0 0 6px #39ff7a, 0 0 0 9px rgba(57, 255, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .lp-hero .live-dot { animation: none; } }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* Sections */
.lp-section { max-width: 1120px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 40px); border-top: 1px solid var(--lp-line); scroll-margin-top: 64px; }
html:has(.lp) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.lp) { scroll-behavior: auto; } }
.lp-eyebrow { margin: 0 0 10px; font-family: 'Geist Mono', monospace; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: #7ea6e8; }
.lp-section h2 { margin: 0 0 28px; max-width: 760px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.lp-lead { margin: 0; color: var(--lp-text-2); font-size: 1rem; line-height: 1.65; max-width: 560px; }
.lp-note { margin: 14px 0 0; color: var(--lp-text-3); font-size: 0.82rem; }

.lp-grid { display: grid; gap: 16px; }
.lp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-card {
  padding: 22px; border-radius: 14px; border: 1px solid var(--lp-line);
  background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface));
}
.lp-card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 650; }
.lp-card p { margin: 0; color: var(--lp-text-2); font-size: 0.92rem; line-height: 1.6; }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-steps li { padding: 24px; border-radius: 14px; border: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-step-n { font-family: 'Geist Mono', monospace; font-size: 0.8rem; color: var(--lp-cyan); letter-spacing: 0.1em; }
.lp-steps h3 { margin: 8px 0; font-size: 1.1rem; }
.lp-steps p { margin: 0; color: var(--lp-text-2); font-size: 0.92rem; line-height: 1.6; }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-split h2 { margin-bottom: 16px; }

/* Sample alert card: the dark version of the real alert email */
.lp-alert {
  padding: 20px 22px; border-radius: 10px; border: 1px solid #283044; border-top: 4px solid #ea7a1e;
  background: #151b28; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lp-alert-top { display: flex; align-items: center; gap: 14px; }
.lp-pill { padding: 4px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.lp-pill-high { background: #ea7a1e; }
.lp-alert-topic { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a3acbd; }
.lp-alert-when { margin: 12px 0 0; font-size: 0.82rem; font-weight: 600; color: #a3acbd; }
.lp-alert-dist { margin: 8px 0 0; font-size: 0.95rem; font-weight: 600; color: #8fb0ff; }
.lp-alert-where { margin: 6px 0 0; font-size: 0.85rem; color: #d5dbe6; }
.lp-alert-title { margin: 12px 0 0; font-size: 1.2rem; line-height: 1.3; color: #f3f5fa; }
.lp-alert-label { margin: 14px 0 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a3acbd; }
.lp-alert-body { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #d5dbe6; }
.lp-alert-why { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #e5b53a; border-radius: 4px; background: #1c2333; font-size: 0.85rem; line-height: 1.5; color: #d5dbe6; }
.lp-alert-why b { color: #f3f5fa; }
.lp-alert-actions { display: flex; gap: 8px; margin-top: 16px; }
.lp-alert-actions .lp-btn { cursor: default; box-shadow: none; }
.lp-alert-actions .lp-btn:hover { transform: none; }

/* Product screenshots, in a simple browser frame */
.lp-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(80, 140, 255, 0.22);
  background: #070b14; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 140, 255, 0.05), 0 0 60px rgba(31, 107, 255, 0.12); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-browser { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--lp-line); background: #0b111d; }
.lp-browser i { width: 10px; height: 10px; border-radius: 50%; background: #2a3448; }
.lp-browser i:nth-child(1) { background: #e5484d; } .lp-browser i:nth-child(2) { background: #e5b53a; } .lp-browser i:nth-child(3) { background: #34c77b; }
.lp-browser span { margin-left: 10px; font-family: 'Geist Mono', monospace; font-size: 0.72rem; color: var(--lp-text-3); }
.lp-shot figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--lp-text-2); border-top: 1px solid var(--lp-line); }
.lp-shot-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.lp-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.lp-shot-phone { border-radius: 22px; border-width: 3px; border-color: #1b2436; }
.lp-shot-phone:nth-child(2) { margin-top: 36px; }  /* a gentle stagger */
.lp-phones-cap { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; font-size: 0.85rem; color: var(--lp-text-2); }

/* Coverage chips */
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-chips li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(80, 140, 255, 0.22);
  background: rgba(31, 107, 255, 0.07); font-size: 0.92rem; color: var(--lp-text);
}
.lp-chips small { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(56, 200, 255, 0.15); color: var(--lp-cyan); font-size: 0.72rem; }

/* Why us: the founder's story beside four credential badges, then the trust points */
.lp-mission h2 { max-width: 820px; }
.lp-mission-body { display: grid; gap: 16px; margin-top: 22px; }
.lp-mission-body .lp-lead { max-width: 720px; }
.lp-mission-close { padding-left: 16px; border-left: 3px solid #7ea6e8; color: var(--lp-text); font-weight: 500; }
.lp-founder { align-items: start; }
.lp-founder .lp-lead + .lp-lead { margin-top: 14px; }
.lp-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-badges li {
  display: grid; gap: 6px; padding: 20px; border-radius: 14px; border: 1px solid rgba(80, 140, 255, 0.22);
  background: radial-gradient(120% 120% at 100% 0%, rgba(31, 107, 255, 0.14), transparent 60%), var(--lp-surface);
}
.lp-badges b {
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #8fc0ff, var(--lp-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-badges span { color: var(--lp-text-2); font-size: 0.86rem; line-height: 1.45; }
.lp-trust.lp-trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }  /* beats .lp-trust's margin: 0 below */
.lp-trust-row li { align-content: start; }

/* Why us */
.lp-trust { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-trust li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--lp-line); background: var(--lp-surface); }
.lp-trust b { font-size: 1rem; }
.lp-trust span { color: var(--lp-text-2); font-size: 0.9rem; line-height: 1.55; }

/* Demo form */
.lp-demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.lp-demo-card { padding: 26px; border-radius: 16px; border: 1px solid rgba(80, 140, 255, 0.22); background: linear-gradient(180deg, var(--lp-surface-2), var(--lp-surface)); }
.lp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--lp-text-2); }
.lp-form .lp-full { grid-column: 1 / -1; }
.lp-form input[type="text"], .lp-form input[type="email"], .lp-form select, .lp-form textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(120, 150, 200, 0.22); background: #070d18; color: var(--lp-text);
  font: inherit; font-size: 0.95rem;
}
.lp-form textarea { resize: vertical; min-height: 96px; }
.lp-form input:focus-visible, .lp-form select:focus-visible, .lp-form textarea:focus-visible { outline: 2px solid var(--lp-cyan); outline-offset: 1px; border-color: transparent; }
.lp-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; margin: 16px 0 0; line-height: 1.5; }
.lp-consent input { margin-top: 3px; flex: none; }
.lp-consent a { color: var(--lp-cyan); }
.lp-submit { width: 100%; margin-top: 18px; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-flash { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; line-height: 1.5; }
.lp-flash-success { background: rgba(52, 199, 123, 0.12); border: 1px solid rgba(52, 199, 123, 0.4); color: #bff0d4; }
.lp-flash-error, .lp-flash-info { background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.4); color: #ffd1d3; }

/* Footer */
.lp-footer { padding: 36px clamp(16px, 4vw, 48px) 44px; border-top: 1px solid var(--lp-line); color: var(--lp-text-3); font-size: 0.85rem; }
.lp-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--lp-text); }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; color: var(--lp-text-2); }
.lp-footer nav a { text-decoration: none; }
.lp-footer nav a:hover, .lp-footer nav a:focus-visible { color: var(--lp-text); }
.lp-disclaimer { max-width: 820px; margin: 22px 0 0; line-height: 1.6; }
.lp-copy { margin: 10px 0 0; }

/* Privacy notice: the shared legal-page layout, on the homepage's dark palette */
.lp-legal { --text: var(--lp-text); --text-2: var(--lp-text-2); --accent: var(--lp-cyan); }
.lp-legal .legal-brand a { text-decoration: none; }
.lp-legal a { color: var(--lp-cyan); }
.lp-legal .legal-meta { color: var(--lp-text-3); font-size: 0.85rem; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .lp-grid-3, .lp-steps { grid-template-columns: 1fr; }
  .lp-split, .lp-demo, .lp-shot-row { grid-template-columns: 1fr; gap: 28px; }
  .lp-phones { max-width: 520px; margin: 0 auto; }
  .lp-trust.lp-trust-row { grid-template-columns: 1fr; margin-top: 32px; }
  .lp-links { display: none; }
  .lp-nav-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .lp-nav { gap: 12px; }
  .lp-nav-actions { gap: 6px; }
  .lp-nav-actions .lp-btn { padding: 7px 10px; font-size: 0.8rem; }
  .lp-nav .lp-wordmark img { height: 10px; }
  .lp-nav-actions .lp-btn-ghost { display: none; }  /* "Client sign in" sits under the hero buttons instead */
  .lp-mobile-only { display: inline-flex !important; }
  .lp-nav .lp-wordmark-sub { display: none; }
  .lp-nav .lp-mini-globe { width: 26px; height: 26px; }
  .lp-form-grid { grid-template-columns: 1fr; }
  .lp-section { padding-top: 56px; padding-bottom: 56px; }
  .lp-stage .auth-logo-hero { max-height: 40vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn { transition: none; }
}
