/* ============================================================
   Visibility Viewer — lgtnow.com brand system
   ============================================================ */

:root {
  --bg:        #0f1219;
  --bg-alt:    #0c1018;
  --panel:     #131824;
  --border:    #1e2433;
  --text:      #dde3ef;
  --text-2:    #8a96b0;
  --label:     #7a8299;
  --amber:     #C8892A;
  --amber-dim: #8a6020;
  --amber-fill:#FDF3E0;
  --cta-text:  #1a1005;

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: #0e0e0e; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0e0e0e; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: #333 #0e0e0e; }

/* ---------- Typography helpers ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 22px;
}
.eyebrow .num { color: var(--label); margin-right: 12px; }

.mono { font-family: var(--mono); }
.amber { color: var(--amber); }
.muted { color: var(--label); }

.lead {
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.65;
  max-width: 62ch;
}

a { color: var(--amber); text-decoration: none; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

section.band { padding: 120px 0; position: relative; }
section.band.alt { background: var(--bg-alt); }
.band > .wrap > * + * { margin-top: 0; }

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  max-width: 18ch;
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,18,25,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand .lgt { color: var(--amber); }
.brand .sol { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-practice { font-family: var(--mono); font-size: 12.5px; color: var(--label); letter-spacing: 0.04em; }

/* ---------- CTA button ---------- */
.btn-cta {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  background: var(--amber); color: var(--cta-text);
  border: 0; border-radius: 6px;
  padding: 11px 18px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,137,42,0.28);
}
.btn-cta.sm { padding: 9px 15px; font-size: 13px; }

/* ---------- Status strip (full-width amber) ---------- */
.status-strip {
  background: var(--amber); color: var(--cta-text);
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 0;
}
.status-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.status-strip .dot { opacity: 0.55; padding: 0 14px; }
.status-strip .tag { font-weight: 700; letter-spacing: 0.1em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 130px 0 110px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200,137,42,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.04;
  max-width: 16ch;
  margin-bottom: 30px;
}
.hero h1 .em { color: var(--amber); }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.panel-head {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--label);
}
.panel-head.amber-head { color: var(--amber); }
.panel-body { padding: 22px 20px; }

/* Callout — amber left border */
.callout {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 24px;
}
.callout.block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
}

/* Key-value rows */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; }
.kv dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label); padding-top: 2px; }
.kv dd { margin: 0; color: var(--text); }

/* ---------- Test scope panel (hero right) ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.85fr;
  gap: 56px; align-items: start;
}
.scope-list { display: flex; flex-direction: column; }
.scope-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.scope-row:last-child { border-bottom: 0; }
.scope-row .k { font-family: var(--mono); font-size: 12px; color: var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
.scope-row .v { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }
.scope-row .v.dim { color: var(--label); }

/* ---------- Buyer journey ---------- */
.journey {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.journey .step {
  flex: 1 1 0; min-width: 150px;
  padding: 20px 18px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.journey .step:last-child { border-right: 0; }
.journey .step.hot { background: rgba(200,137,42,0.10); }
.journey .step.hot .lbl { color: var(--amber); }
.journey .step .ix { font-family: var(--mono); font-size: 11px; color: var(--label); }
.journey .step .lbl { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

/* Risk bullets */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.risk-card { padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.risk-card .arr { color: var(--amber); font-size: 20px; line-height: 1; margin-bottom: 14px; }
.risk-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- Evidence sentence ---------- */
.evidence-sentence {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.36;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 24ch;
}

.meta-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.meta-strip .cell { flex: 1 1 0; min-width: 130px; padding: 16px 20px; border-right: 1px solid var(--border); }
.meta-strip .cell:last-child { border-right: 0; }
.meta-strip .cell .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--label); }
.meta-strip .cell .v { font-family: var(--mono); font-size: 18px; color: var(--text); margin-top: 6px; }
.meta-strip .cell .v.amber { color: var(--amber); }

/* Two-path */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; opacity: 0.42; transition: opacity 0.3s var(--ease); }
.path.survived { opacity: 1; }
.path .ph { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.path .pb { padding: 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.path.detected .ph { color: var(--amber); }
.path.clear .ph { color: var(--text); }
.path.survived.clear { border-color: var(--amber); }
.path.survived.clear .ph { background: rgba(200,137,42,0.08); color: var(--amber); }
.path.survived.detected { border-color: var(--amber); }
.path.survived.detected .ph { background: rgba(200,137,42,0.12); }
.path .stamp { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--amber); }

/* Incidence */
.incidence { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.incidence .big { font-family: var(--mono); font-size: 46px; color: var(--text); letter-spacing: -0.02em; }
.incidence .ci { font-family: var(--mono); font-size: 13px; color: var(--label); }

/* ---------- Why: two columns ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 0; overflow: hidden; }
.col-panel .ch { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.col-panel.signal .ch { color: var(--amber); }
.col-panel.gap .ch { color: var(--text); }
.col-panel .cb { padding: 20px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bullets li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--amber); }
.bullets li.empty::before { content: "·"; }
.bullets li.empty { color: var(--label); font-style: italic; }

.disclaimer { font-style: italic; color: var(--label); font-size: 14px; }
.why-limits-note { font-style: italic; color: var(--label); font-size: 14px; margin-top: 20px; max-width: 720px; }

/* ---------- Evidence cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ev-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ev-card .top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
.ev-card .excerpt { font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--bg-alt); border-left: 2px solid var(--amber); padding: 12px 14px; line-height: 1.55; }
.ev-card .foot { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 11px; color: var(--label); }
.placeholder-note {
  border: 1px dashed var(--border); border-radius: 8px;
  padding: 36px; text-align: center;
  font-family: var(--mono); font-size: 13px; color: var(--label);
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(255,255,255,0.012) 10px, rgba(255,255,255,0.012) 20px);
}

/* ---------- Matrix ---------- */
.matrix-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; position: relative; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
table.matrix th, table.matrix td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
table.matrix th:last-child, table.matrix td:last-child { border-right: 0; }
table.matrix tr:last-child td { border-bottom: 0; }
table.matrix thead th { background: var(--bg-alt); color: var(--text); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
table.matrix thead th.corner { color: var(--label); }
table.matrix tbody th { font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--panel); font-weight: 500; }
table.matrix td { font-family: var(--mono); font-size: 13px; color: var(--text); }
table.matrix td.notrun { color: var(--label); opacity: 0.5; font-style: italic; }
table.matrix td.hit { color: var(--amber); }

/* ---------- Auditability rows ---------- */
.audit-rows { display: flex; flex-direction: column; }
.audit-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.audit-row:last-child { border-bottom: 0; }
.audit-row .at { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); }
.audit-row .ad { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Process strip ---------- */
.process { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.process .pchip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel); color: var(--text-2); text-transform: uppercase;
}
.process .pchip.last { border-color: var(--amber); color: var(--amber); }
.process .parrow { color: var(--amber); font-size: 14px; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; color: var(--amber);
  border: 1px solid var(--border); border-radius: 6px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
.steps li .stext { color: var(--text-2); font-size: 15px; line-height: 1.55; padding-top: 7px; }

/* ---------- Asks ---------- */
.asks { display: flex; flex-direction: column; gap: 4px; }
.ask { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.ask:last-child { border-bottom: 0; }
.ask .circle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--amber); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 15px;
}
.ask .atext { font-size: 17px; color: var(--text); line-height: 1.5; }

.urgency-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--amber); border: 1px solid var(--amber-dim);
  border-radius: 999px; padding: 8px 16px;
}
.urgency-chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer .l { font-family: var(--mono); font-size: 12.5px; color: var(--label); }
.footer .r { font-family: var(--mono); font-size: 12.5px; color: var(--label); }

/* ============================================================
   Password gate
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gate::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(200,137,42,0.08) 0%, transparent 70%);
}
.gate-card { position: relative; width: 100%; max-width: 400px; text-align: left; }
.gate-brand { font-size: 18px; font-weight: 600; margin-bottom: 40px; }
.gate-brand .lgt { color: var(--amber); }
.gate h2 { font-size: 26px; margin-bottom: 10px; letter-spacing: -0.02em; }
.gate p { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.gate-field { display: flex; flex-direction: column; gap: 12px; }
.gate input {
  width: 100%; font-family: var(--sans); font-size: 15px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); padding: 13px 15px;
  transition: border-color 0.2s var(--ease);
}
.gate input:focus { outline: none; border-color: var(--amber); }
.gate input::placeholder { color: var(--label); }
.gate-err { font-family: var(--mono); font-size: 12px; color: #d96a5a; min-height: 16px; }
.gate-foot { margin-top: 32px; font-family: var(--mono); font-size: 11px; color: var(--label); letter-spacing: 0.05em; }
body.locked { overflow: hidden; }

/* ============================================================
   Animations
   ============================================================ */
.fade { opacity: 0; transform: translateY(18px); }
.fade.in { animation: fadeUp 0.65s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn-cta { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  section.band { padding: 80px 0; }
  .hero { padding: 90px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .paths, .two-col, .risk-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 6px; }
  .nav-practice { display: none; }
  .wrap { padding: 0 22px; }
  .nav-inner { padding: 16px 22px; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --panel: #fff; --text: #14181f; --text-2: #2c333f; --label: #555c6b; --border: #c9cfdb; }
  .gate, .nav, .btn-cta, .urgency-chip { display: none !important; }
  body { background: #fff; color: #14181f; font-size: 12pt; }
  body.locked { overflow: visible; }
  section.band { padding: 28px 0; break-inside: avoid; }
  .hero { padding: 20px 0; }
  .hero::before, .gate::before { display: none; }
  .status-strip { background: #fff; color: #8a6020; border-top: 1px solid #c9cfdb; border-bottom: 1px solid #c9cfdb; }
  .fade { opacity: 1 !important; transform: none !important; }
  .panel, .col-panel, .ev-card, .risk-card, .journey, .matrix-scroll, .meta-strip { break-inside: avoid; }
  a { color: #8a6020; }
}
