/* SovereignWatch — public landing.
 *
 * Kept out of styles.css: that file dresses the workspace, this one dresses the
 * door. They change for different reasons and at different times.
 *
 * The palette is institutional rather than "AI product": deep navy for ground,
 * royal blue for action, one cyan accent reserved for live signal. Red, amber
 * and green appear only as status, never as decoration.
 */

/* ── tokens ───────────────────────────────────────────────────────────────
 * Light is the base. Dark redefines only what changes, so no token can exist
 * in one theme and be missing from the other. */
:root {
  --sw-navy-900: #070d1a;
  --sw-navy-800: #0d1526;
  --sw-navy-700: #141f36;

  --sw-blue-600: #1d4ed8;
  --sw-blue-500: #2563eb;
  --sw-cyan-400: #22d3ee;

  --sw-bg: #ffffff;
  --sw-bg-alt: #f5f7fb;
  --sw-surface: #ffffff;
  --sw-surface-2: #f8fafc;
  --sw-line: #e2e8f0;
  --sw-line-strong: #cbd5e1;

  --sw-ink: #0f172a;
  --sw-ink-2: #334155;
  --sw-muted: #64748b;
  --sw-on-dark: #e8eefb;
  --sw-on-dark-2: #a9b8d4;

  --sw-risk: #b42318;
  --sw-warn: #b45309;
  --sw-ok: #15803d;

  --sw-radius: 14px;
  --sw-radius-sm: 9px;
  --sw-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .07);
  --sw-shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 22px 48px rgba(15, 23, 42, .12);
  --sw-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto,
    Helvetica, Arial, sans-serif;
  --sw-max: 1180px;
}

:root[data-theme="dark"] {
  --sw-bg: #070d1a;
  --sw-bg-alt: #0b1322;
  --sw-surface: #111b2e;
  --sw-surface-2: #0d1526;
  --sw-line: #1e2b45;
  --sw-line-strong: #2b3b5c;
  --sw-ink: #e8eefb;
  --sw-ink-2: #c3cfe6;
  --sw-muted: #8194b4;
  --sw-blue-500: #3b82f6;
  --sw-blue-600: #2563eb;
  --sw-risk: #f87171;
  --sw-warn: #fbbf24;
  --sw-ok: #4ade80;
  --sw-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --sw-shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 22px 48px rgba(0, 0, 0, .5);
}

/* The default setting stamps nothing on the root, so the system preference has
 * to be honoured on its own — guarded so an explicit light choice still wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sw-bg: #070d1a;
    --sw-bg-alt: #0b1322;
    --sw-surface: #111b2e;
    --sw-surface-2: #0d1526;
    --sw-line: #1e2b45;
    --sw-line-strong: #2b3b5c;
    --sw-ink: #e8eefb;
    --sw-ink-2: #c3cfe6;
    --sw-muted: #8194b4;
    --sw-blue-500: #3b82f6;
    --sw-risk: #f87171;
    --sw-warn: #fbbf24;
    --sw-ok: #4ade80;
    --sw-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --sw-shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 22px 48px rgba(0, 0, 0, .5);
  }
}

/* ── shell ───────────────────────────────────────────────────────────────── */

.lp {
  background: var(--sw-bg);
  color: var(--sw-ink);
  font-family: var(--sw-font);
  min-height: 100vh;
}

.lp-wrap { max-width: var(--sw-max); margin: 0 auto; padding: 0 28px; }
.lp section { padding: 88px 0; }
.lp-alt { background: var(--sw-bg-alt); }

.lp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sw-blue-500);
  margin: 0 0 14px;
}

.lp h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 650;
  max-width: 24ch;
}

.lp .lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--sw-ink-2);
  max-width: 62ch;
  margin: 0 0 44px;
}

/* ── top navigation, no sidebar on the public page ───────────────────────── */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sw-bg);
  border-bottom: 1px solid var(--sw-line);
}

.lp-nav-inner {
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.lp-logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--sw-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.lp-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--sw-blue-500), var(--sw-navy-700));
  position: relative;
  flex: none;
}

.lp-logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--sw-cyan-400);
  opacity: .85;
}

.lp-links { display: flex; gap: 24px; margin-left: 8px; flex: 1; }

.lp-links a {
  color: var(--sw-ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.lp-links a:hover { color: var(--sw-blue-500); }

.lp-nav-actions { display: flex; align-items: center; gap: 12px; }

.lp-theme {
  border: 1px solid var(--sw-line);
  background: var(--sw-surface);
  color: var(--sw-ink-2);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.lp-theme:hover { border-color: var(--sw-line-strong); }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--sw-radius-sm);
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
}

.lp-btn-primary {
  background: var(--sw-blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, .3);
}

.lp-btn-primary:hover { background: var(--sw-blue-500); transform: translateY(-1px); }

.lp-btn-ghost { background: transparent; color: var(--sw-ink); border-color: var(--sw-line-strong); }
.lp-btn-ghost:hover { border-color: var(--sw-blue-500); color: var(--sw-blue-500); }
.lp-btn-quiet { background: transparent; color: var(--sw-ink-2); padding: 11px 8px; }
.lp-btn-quiet:hover { color: var(--sw-blue-500); }
.lp-btn-lg { padding: 14px 24px; font-size: 15px; }
.lp-btn-block { width: 100%; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.lp-hero { padding: 84px 0 76px; }

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 60px;
  align-items: center;
}

.lp-hero h1 {
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.033em;
  margin: 0 0 22px;
  font-weight: 680;
}

.lp-hero h1 .accent { color: var(--sw-blue-500); }

.lp-hero p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--sw-ink-2);
  max-width: 54ch;
  margin: 0 0 32px;
}

.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.lp-hero-note {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--sw-muted);
  border-left: 2px solid var(--sw-blue-500);
  padding-left: 13px;
  line-height: 1.6;
  max-width: 48ch;
}

/* Hero visual: a structural abstraction of the desk. It carries no invented
   headlines and no fabricated sources, because this product refuses fixture
   data everywhere else and a landing page is not an exception. */
.lp-radar {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-lift);
  padding: 20px;
}

.lp-radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lp-radar-title { font-size: 13px; font-weight: 650; }

.lp-live {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sw-blue-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sw-cyan-400);
}

.lp-quadrant {
  position: relative;
  aspect-ratio: 1 / .8;
  border-radius: var(--sw-radius-sm);
  background:
    linear-gradient(var(--sw-line) 1px, transparent 1px) 0 50% / 100% 50%,
    linear-gradient(90deg, var(--sw-line) 1px, transparent 1px) 50% 0 / 50% 100%,
    var(--sw-surface-2);
  border: 1px solid var(--sw-line);
  overflow: hidden;
}

.lp-q-label {
  position: absolute;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sw-muted);
}

.lp-dot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--sw-surface);
}

.lp-radar-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--sw-muted);
  flex-wrap: wrap;
}

.lp-radar-legend span { display: flex; align-items: center; gap: 6px; }
.lp-key { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ── card grids ──────────────────────────────────────────────────────────── */

.lp-grid { display: grid; gap: 18px; }
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }

.lp-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  padding: 24px;
}

.lp-card h3 { font-size: 15.5px; margin: 0 0 9px; font-weight: 640; letter-spacing: -0.01em; }
.lp-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--sw-ink-2); }

.lp-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sw-blue-500);
  display: block;
  margin-bottom: 12px;
}

/* ── pipeline strip ──────────────────────────────────────────────────────── */

.lp-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  overflow: hidden;
  background: var(--sw-surface);
}

.lp-flow-step { padding: 24px 20px; border-right: 1px solid var(--sw-line); position: relative; }
.lp-flow-step:last-child { border-right: 0; }
.lp-flow-step h4 { margin: 0 0 7px; font-size: 13.5px; font-weight: 650; }
.lp-flow-step p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--sw-muted); }

.lp-flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sw-blue-500);
  opacity: var(--strength, .4);
}

/* ── truth levels ────────────────────────────────────────────────────────── */

.lp-truth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.lp-truth-card {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  padding: 22px;
  background: var(--sw-surface);
  border-top: 3px solid var(--tint, var(--sw-blue-500));
}

.lp-truth-card .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--tint, var(--sw-blue-500));
  display: block;
  margin-bottom: 10px;
}

.lp-truth-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--sw-ink-2); }

/* ── modes ───────────────────────────────────────────────────────────────── */

.lp-mode {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  overflow: hidden;
  background: var(--sw-surface);
  display: flex;
  flex-direction: column;
}

.lp-mode-head { padding: 26px 26px 20px; border-bottom: 1px solid var(--sw-line); }
.lp-mode-head h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
.lp-mode-head p { margin: 0; color: var(--sw-muted); font-size: 13.5px; }

.lp-mode ul { list-style: none; margin: 0; padding: 22px 26px 26px; display: grid; gap: 12px; flex: 1; }

/* Not a grid: an inline <em> inside the item would become a grid child and
   break the sentence across lines. Bullet is absolutely positioned instead. */
.lp-mode li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sw-ink-2);
}

.lp-mode li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sw-blue-500);
}

.lp-mode li em { font-style: normal; color: var(--sw-ink); font-weight: 600; }

/* ── evidence example ────────────────────────────────────────────────────── */

.lp-evidence {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  background: var(--sw-surface);
  box-shadow: var(--sw-shadow);
  overflow: hidden;
}

.lp-ev-head { padding: 22px 26px; border-bottom: 1px solid var(--sw-line); background: var(--sw-surface-2); }
.lp-ev-head h3 { margin: 0 0 12px; font-size: 17px; font-weight: 650; }

.lp-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.lp-badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--sw-line-strong);
  color: var(--sw-ink-2);
  background: var(--sw-surface);
  text-transform: uppercase;
}

.lp-badge.risk { color: var(--sw-risk); border-color: currentColor; }
.lp-badge.warn { color: var(--sw-warn); border-color: currentColor; }
.lp-badge.info { color: var(--sw-blue-500); border-color: currentColor; }

.lp-ev-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.lp-ev-col { padding: 22px 26px; border-right: 1px solid var(--sw-line); }
.lp-ev-col:last-child { border-right: 0; }

.lp-ev-col h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sw-muted);
}

.lp-ev-col p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--sw-ink-2); }
.lp-ev-col p:last-child { margin-bottom: 0; }

/* ── organization chain ──────────────────────────────────────────────────── */

.lp-chain { display: flex; align-items: stretch; flex-wrap: wrap; }

.lp-chain-step {
  flex: 1 1 160px;
  padding: 20px 18px;
  border: 1px solid var(--sw-line);
  border-right: 0;
  background: var(--sw-surface);
  min-width: 150px;
}

.lp-chain-step:first-child { border-radius: var(--sw-radius) 0 0 var(--sw-radius); }
.lp-chain-step:last-child { border-right: 1px solid var(--sw-line); border-radius: 0 var(--sw-radius) var(--sw-radius) 0; }

.lp-chain-step.gate {
  background: color-mix(in srgb, var(--sw-blue-500) 9%, var(--sw-surface));
  border-color: var(--sw-blue-500);
}

.lp-chain-step h4 { margin: 0 0 6px; font-size: 13px; font-weight: 650; }
.lp-chain-step p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sw-muted); }

/* ── final CTA ───────────────────────────────────────────────────────────── */

.lp-final {
  background: linear-gradient(155deg, var(--sw-navy-800), var(--sw-navy-900));
  color: var(--sw-on-dark);
  border-radius: var(--sw-radius);
  padding: 56px 48px;
  text-align: center;
}

.lp-final h2 { color: #fff; margin: 0 auto 14px; max-width: 22ch; }
.lp-final p { color: var(--sw-on-dark-2); max-width: 54ch; margin: 0 auto 30px; font-size: 16px; line-height: 1.65; }

/* ── auth panel ──────────────────────────────────────────────────────────── */

.lp-auth { padding: 76px 0 96px; }
.lp-auth-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; }

.lp-auth-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-lift);
  padding: 30px;
}

.gate-tabs {
  display: flex;
  gap: 4px;
  background: var(--sw-surface-2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--sw-line);
}

.gate-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-muted);
  cursor: pointer;
}

.gate-tab.active { background: var(--sw-surface); color: var(--sw-ink); box-shadow: var(--sw-shadow); }

.gate-form { display: grid; gap: 16px; }
.gate-kind { display: grid; gap: 10px; }

.gate-kind-opt {
  border: 1px solid var(--sw-line);
  border-radius: 10px;
  padding: 13px 15px;
  cursor: pointer;
  display: grid;
  background: var(--sw-surface);
  position: relative;
}

.gate-kind-opt:hover { border-color: var(--sw-line-strong); }
.gate-kind-opt input { position: absolute; opacity: 0; pointer-events: none; }

.gate-kind-opt:has(input:checked) {
  border-color: var(--sw-blue-500);
  box-shadow: 0 0 0 1px var(--sw-blue-500);
}

.gate-kind-title { font-weight: 640; font-size: 13.5px; color: var(--sw-ink); }
.gate-kind-sub { color: var(--sw-muted); font-size: 12.5px; }

.gate-field { display: grid; gap: 6px; }
.gate-field > span { font-size: 12.5px; font-weight: 650; color: var(--sw-ink-2); }

.gate-field input {
  border: 1px solid var(--sw-line);
  border-radius: 9px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  background: var(--sw-surface);
  color: var(--sw-ink);
}

.gate-field input:focus {
  outline: none;
  border-color: var(--sw-blue-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-blue-500) 18%, transparent);
}

.gate-field em { color: var(--sw-muted); font-style: normal; font-size: 12px; line-height: 1.5; }

.gate-error {
  margin: 0;
  background: color-mix(in srgb, var(--sw-risk) 12%, var(--sw-surface));
  color: var(--sw-risk);
  border: 1px solid color-mix(in srgb, var(--sw-risk) 30%, transparent);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
}

.gate-switch { margin: 18px 0 0; text-align: center; line-height: 1.55; font-size: 12.5px; color: var(--sw-muted); }

.lp-auth-side h2 { max-width: 18ch; }
.lp-assure { display: grid; gap: 18px; margin-top: 30px; }
.lp-assure div { border-left: 2px solid var(--sw-blue-500); padding-left: 15px; }
.lp-assure strong { display: block; font-size: 14px; margin-bottom: 4px; }
.lp-assure span { font-size: 13.5px; line-height: 1.6; color: var(--sw-ink-2); }

/* ── footer ──────────────────────────────────────────────────────────────── */

.lp-foot { border-top: 1px solid var(--sw-line); padding: 30px 0; color: var(--sw-muted); font-size: 13px; }

.lp-foot-inner {
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1040px) {
  .lp-hero-grid, .lp-auth-grid { grid-template-columns: 1fr; gap: 44px; }
  .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lp-truth { grid-template-columns: repeat(2, 1fr); }
  .lp-flow { grid-template-columns: repeat(3, 1fr); }
  .lp-flow-step:nth-child(3) { border-right: 0; }
  .lp-ev-body { grid-template-columns: 1fr; }
  .lp-ev-col { border-right: 0; border-bottom: 1px solid var(--sw-line); }
  .lp-ev-col:last-child { border-bottom: 0; }
  .lp-links { display: none; }
}

@media (max-width: 720px) {
  .lp section { padding: 60px 0; }
  .lp-wrap, .lp-nav-inner, .lp-foot-inner { padding: 0 18px; }
  .lp-grid-2, .lp-grid-3, .lp-grid-4, .lp-truth { grid-template-columns: 1fr; }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-flow-step { border-right: 0; border-bottom: 1px solid var(--sw-line); }
  .lp-flow-step:last-child { border-bottom: 0; }
  .lp-final { padding: 40px 24px; }
  .hide-sm { display: none; }
}

/* The viewer paints its own ground behind the page, so a transparent body
   borrows whatever the host is using. Painted explicitly, in both themes. */
body.sw-root {
  background: var(--sw-bg);
  color: var(--sw-ink);
  margin: 0;
}
