/* Vanadio interim site · design system v0.5.4 tokens
   Every color/font/radius flows through a variable. Re-skin = edit :root only. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #000833;
  --cta: #0047FF;
  --cta-hover: #003ADA;
  --cta-soft: #E8EEFF;
  --page: #FAF9F4;
  --card: #FFFFFF;
  --bg-soft: #F1EEE6;
  --bg-active: #ECEFF7;
  --rule: #EFEBE0;
  --border: #E1DCCB;
  --ink-1: #000833;
  --ink-2: #2A2D45;
  --ink-3: #6B6D7E;
  --ink-4: #9A9BA8;
  --ok: #2D8659;
  --ok-soft: #E6F4EC;
  --warn: #DC7B1A;
  --warn-soft: #FFEED4;
  --err: #BD4138;
  --err-soft: #FCE3E0;
  --accent: #8E59FF;
  --accent-soft: #F1EAFF;
  --teal: #0E9AC2;
  --teal-soft: #DEF0F7;
  --ok-on-dark: #6FCF97;

  --font-sans: "Space Grotesk", Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-cta: 4px;
  --radius-md: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 2px rgba(0, 8, 51, 0.04);
  --shadow-pop: 0 8px 24px rgba(0, 8, 51, 0.10);

  --container: 1120px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--cta); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: var(--radius-cta);
}

img, svg { max-width: 100%; display: block; }

::selection { background: var(--cta-soft); }

/* ---------- Type scale ---------- */

.display { font-size: 56px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.h1      { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.h2      { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.h3      { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.h4      { font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }
.body-l  { font-size: 16px; line-height: 1.5; font-weight: 400; }
.body-s  { font-size: 12px; line-height: 1.5; font-weight: 400; }
.caption { font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--ink-3); }

.eyebrow {
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta);
  display: block;
  margin-bottom: 12px;
}

.tnum { font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .display { font-size: 40px; }
  .h1 { font-size: 28px; }
  .h2 { font-size: 24px; }
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

@media (max-width: 767px) {
  .section { padding: 48px 0; }
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .lead { color: var(--ink-2); margin-top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.wordmark:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 24px; }

.nav-link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover { color: var(--ink-1); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-cta);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }

.btn-secondary { background: var(--card); border-color: var(--border); color: var(--ink-1); }
.btn-secondary:hover { background: var(--bg-soft); }

.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }

/* ---------- Chips, pills, cards ---------- */

.chip-row {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 10px 24px;
  margin-top: 20px;
}
@media (max-width: 480px) { .chip-row { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.chip svg { width: 14px; height: 14px; stroke: var(--ok); flex: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill svg { width: 11px; height: 11px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-teal { background: var(--teal-soft); color: var(--teal); }
.pill-muted { background: var(--bg-soft); color: var(--ink-3); }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card .h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); }

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--rule); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 620px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px max(24px, calc((100vw - var(--container)) / 2));
}

.hero-copy .display { margin-bottom: 16px; }
.hero-copy .body-l { color: var(--ink-2); max-width: 480px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Navy blueprint-grid panel */
.blueprint {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(ellipse at 30% 20%, rgba(0, 71, 255, 0.22), transparent 60%),
    var(--navy);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
}

/* ---------- Inbox mock ---------- */

.inbox {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  font-size: 13px;
}

.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  font-size: 12px;
}
.inbox-head .count { color: var(--ink-4); font-weight: 500; }
.inbox-head .label { display: inline-flex; align-items: center; gap: 6px; }
.inbox-head svg { width: 14px; height: 14px; stroke: var(--ink-3); }

.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
}
.inbox-row:last-child { border-bottom: none; }

.inbox-row .from { font-weight: 600; font-size: 12.5px; }
.inbox-row .meta { display: flex; align-items: center; gap: 8px; justify-self: end; }
.inbox-row .time { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.inbox-row .subject { grid-column: 1 / -1; color: var(--ink-2); font-size: 12.5px; }
.inbox-row .preview {
  grid-column: 1 / -1;
  color: var(--ink-4);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Classification happens live: rows arrive, pills land a beat later */
@media (prefers-reduced-motion: no-preference) {
  .inbox-row { opacity: 0; transform: translateY(6px); animation: row-in 0.4s ease-out forwards; }
  .inbox-row:nth-child(2) { animation-delay: 0.12s; }
  .inbox-row:nth-child(3) { animation-delay: 0.24s; }
  .inbox-row:nth-child(4) { animation-delay: 0.36s; }
  .inbox-row:nth-child(5) { animation-delay: 0.48s; }
  .inbox-row:nth-child(6) { animation-delay: 0.60s; }
  .inbox-row:nth-child(7) { animation-delay: 0.72s; }
  .inbox-row .pill { opacity: 0; transform: scale(0.85); animation: pill-in 0.25s ease-out forwards; }
  .inbox-row:nth-child(2) .pill { animation-delay: 0.72s; }
  .inbox-row:nth-child(3) .pill { animation-delay: 0.84s; }
  .inbox-row:nth-child(4) .pill { animation-delay: 0.96s; }
  .inbox-row:nth-child(5) .pill { animation-delay: 1.08s; }
  .inbox-row:nth-child(6) .pill { animation-delay: 1.20s; }
  .inbox-row:nth-child(7) .pill { animation-delay: 1.32s; }
  @keyframes row-in { to { opacity: 1; transform: none; } }
  @keyframes pill-in { to { opacity: 1; transform: none; } }
}

/* ---------- Problem timeline (a day in your inbox) ---------- */

.timeline {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 900px) { .timeline-track { grid-template-columns: 1fr; } }

.timeline-track::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--border);
}
@media (max-width: 900px) { .timeline-track::before { display: none; } }

.tl-step { position: relative; padding-top: 24px; }
.tl-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 4px solid var(--cta);
}
.tl-step.lost::before { border-color: var(--err); }

.tl-step .t { font-size: 12px; font-weight: 700; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tl-step h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 4px; }
.tl-step p { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.tl-step .pill { margin-top: 8px; }
.pill-err { background: var(--err-soft); color: var(--err); }

.timeline-coda {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  align-items: baseline;
}
.timeline-coda .line { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.timeline-coda .caption { color: var(--ink-3); }

/* ---------- Steps strip ---------- */

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--cta-soft);
  color: var(--cta);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.steps-strip {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .steps-strip { flex-direction: column; } }

.steps-strip .step { flex: 1; position: relative; }
.steps-strip .step + .step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  width: 1px;
  height: calc(100% - 12px);
  background: var(--border);
}
@media (max-width: 900px) { .steps-strip .step + .step::before { display: none; } }

.steps-strip h3 { margin-bottom: 4px; }
.steps-strip p { color: var(--ink-2); font-size: 13px; }

/* ---------- Before / after extraction panel ---------- */

.extract-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) auto minmax(0, 6fr);
  gap: 24px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
@media (max-width: 900px) {
  .extract-panel { grid-template-columns: 1fr; }
  .extract-arrow { transform: rotate(90deg); justify-self: center; }
}

.extract-mail {
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
}
.extract-mail .mail-head {
  font-size: 11.5px;
  color: var(--ink-4);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.extract-mail .mail-head strong { color: var(--ink-2); font-weight: 600; }
.extract-mail p { color: var(--ink-2); margin: 0 0 8px; }
.extract-mail .hl {
  background: var(--cta-soft);
  border-bottom: 1px dashed var(--cta);
  border-radius: 2px;
  padding: 0 2px;
}

.extract-arrow {
  align-self: center;
  color: var(--ink-4);
  display: flex;
  align-items: center;
}
.extract-arrow svg { width: 20px; height: 20px; }

.extract-table { min-width: 0; }
.extract-table .table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.extract-table .table-head .caption { color: var(--ink-3); }
.extract-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.extract-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 1px solid var(--border);
  padding: 6px 10px 6px 0;
}
.extract-table td {
  border-bottom: 1px solid var(--rule);
  padding: 7px 10px 7px 0;
  color: var(--ink-1);
  white-space: nowrap;
}
.extract-table tr:last-child td { border-bottom: none; }

.compound-line {
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.compound-line .accent { color: var(--cta); }

/* ---------- KPI tiles ---------- */

.kpi { text-align: left; }
.kpi .num {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.kpi .what { font-size: 14px; font-weight: 600; margin-top: 6px; }
.kpi .who { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- Security band ---------- */

.band { color: #fff; }
.band .eyebrow { color: rgba(255, 255, 255, 0.6); }
.band .h2 { color: #fff; }
.band .lead { color: rgba(255, 255, 255, 0.75); }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-top: 36px;
  max-width: 760px;
}
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.check svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  stroke: var(--ok-on-dark);
}
.check.check-progress svg { stroke: var(--warn); }
.check.check-progress { color: rgba(255, 255, 255, 0.75); }

.band-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; }
.band-links a {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.band .note { margin-top: 28px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* ---------- CTA section ---------- */

.cta-section { text-align: center; }
.cta-section .h2 { margin-bottom: 12px; }
.cta-section p { color: var(--ink-2); }
.cta-section .btn { margin-top: 24px; }
.cta-section .caption { margin-top: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.site-footer .container { padding-top: 48px; padding-bottom: 48px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .wordmark { color: #fff; font-size: 16px; }
.footer-tag { margin-top: 6px; max-width: 320px; }
.footer-trust { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.75); font-weight: 500; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 12px; }
.footer-links a:hover { color: #fff; }

.footer-legal { padding-top: 24px; }

/* ---------- Prose (legal pages) ---------- */

.page-title { padding: 72px 0 40px; border-bottom: 1px solid var(--rule); }
.page-title .caption { margin-top: 10px; }

.prose { max-width: 720px; padding: 48px 0 96px; font-size: 14px; color: var(--ink-2); }
.prose h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-1); margin: 40px 0 12px; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--ink-1); margin: 28px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.prose th { text-align: left; font-weight: 600; color: var(--ink-1); border-bottom: 1px solid var(--border); padding: 8px 12px 8px 0; }
.prose td { border-bottom: 1px solid var(--rule); padding: 8px 12px 8px 0; vertical-align: top; }
.prose dt { font-weight: 600; color: var(--ink-1); margin-top: 12px; }
.prose dd { margin: 2px 0 0; }
.prose .updated { color: var(--ink-4); font-size: 12px; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px 24px 40px; }
  .hero-visual { padding: 40px 24px 56px; }
}
