/* =========================================================
   site.css  —  Public marketing surface
   Loaded after tokens.css. Everything is scoped under
   body.public so it never leaks into the authenticated
   shells (cockpit, app, saas-admin).
   ========================================================= */

/* ---------- base ---------- */
body.public {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.public * { box-sizing: border-box; }
body.public a { color: inherit; text-decoration: none; }
body.public img { max-width: 100%; display: block; }

/* ---------- layout ---------- */
body.public .site-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  body.public .site-wrap { padding: 0 20px; }
}

body.public .section    { padding: 96px 0; }
body.public .section-sm { padding: 64px 0; }
@media (max-width: 720px) {
  body.public .section { padding: 72px 0; }
}

/* ---------- typography ---------- */
body.public .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--verified);
  font-weight: 600;
  font-family: var(--font-sans);
}
body.public .eyebrow .mark {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--verified);
  box-shadow: 0 0 0 3px rgba(53,183,200,0.18);
}

body.public .display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
body.public .display-l {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
}
body.public .display-m {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}

body.public .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 62ch;
  font-weight: 400;
}
body.public .lead b,
body.public .lead strong { color: var(--fg-1); font-weight: 600; }

body.public .section-kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
}
body.public .section-kicker .num { color: var(--verified); }
body.public .section-kicker .rule {
  flex: 1; height: 1px; background: var(--ink-line);
  transform: translateY(-3px);
}

/* ---------- buttons ---------- */
body.public .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--r-2);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
body.public .btn-primary {
  background: var(--verified);
  color: var(--ink);
}
body.public .btn-primary:hover { background: #4CC8D8; }
body.public .btn-ghost {
  color: var(--fg-1);
  border: 1px solid var(--ink-line-2);
  background: transparent;
}
body.public .btn-ghost:hover {
  background: var(--ink-2);
  border-color: var(--fg-3);
}
body.public .btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
body.public .btn:hover .arrow { transform: translateX(2px); }

/* ---------- chip / pill ---------- */
body.public .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 5px 9px;
  border-radius: var(--r-1);
  border: 1px solid var(--ink-line-2);
  color: var(--fg-2);
  background: var(--ink-2);
}
body.public .chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--verified);
}
body.public .chip.chip-inferred .dot { background: var(--inferred); }
body.public .chip.chip-ok       .dot { background: var(--ok); }
body.public .chip.chip-err      .dot { background: var(--error); }

/* ---------- card ---------- */
body.public .card {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-3);
  padding: 28px;
  box-shadow: var(--sh-card-ink);
}
body.public .card h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
body.public .card p {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
body.public .card .micro-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.public .card .micro-label .idx {
  color: var(--verified);
  font-family: var(--font-mono);
}

/* ---------- helpers ---------- */
body.public .hairline > * + * { border-top: 1px solid var(--ink-line); }
body.public .muted { color: var(--fg-3); }
body.public .hr {
  border: 0;
  border-top: 1px solid var(--ink-line);
  margin: 18px 0;
}

/* ---------- audit-log row aesthetic ---------- */
body.public .logrow {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  align-items: center;
}
body.public .logrow .ts  { color: var(--fg-3); }
body.public .logrow .tag { color: var(--verified); }

/* ---------- subtle grid background ---------- */
body.public .grid-bg {
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ---------- determinism seal ---------- */
body.public .seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--verified);
}
body.public .seal svg { flex: none; }

/* ---------- reveal animation ---------- */
@keyframes vl-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
body.public .reveal    { animation: vl-fade-up 500ms var(--ease-out) both; }
body.public .reveal.d1 { animation-delay:  80ms; }
body.public .reveal.d2 { animation-delay: 160ms; }
body.public .reveal.d3 { animation-delay: 240ms; }
body.public .reveal.d4 { animation-delay: 320ms; }
