/* ============================================================
   Lance — Public site design tokens (indigo/slate)
   ============================================================
   Single source of truth for color, typography, spacing, and
   base component styles. Loaded by every static-HTML page.

   Ported from the v7.2 indigo/slate HD token block.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Source+Serif+4:ital,wght@0,300..600;1,300..600&family=JetBrains+Mono:wght@400;500&family=Caveat:wght@400;500&display=swap");

:root {
  /* --- Primary: Indigo ---------------------------------- */
  --color-accent:       #4338ca;  /* indigo-700 — buttons, links, key text */
  --color-accent-deep:  #3730a3;  /* indigo-800 — primary hover, dark fills */
  --color-accent-soft:  #e0e7ff;  /* indigo-100 — borders, on-dark accents */
  --color-accent-tint:  #eef2ff;  /* indigo-50  — card fills, hover rows  */

  /* --- Neutrals: Slate ---------------------------------- */
  --color-bg:           #f8fafc;  /* slate-50  — page background */
  --color-surface:      #ffffff;  /* cards, inputs, dropdowns */
  --color-ink:          #0f172a;  /* slate-900 — headlines, primary text */
  --color-ink-2:        #1e293b;  /* slate-800 — body, secondary heads */
  --color-ink-3:        #475569;  /* slate-600 — captions, metadata, eyebrows */
  --color-ink-4:        #94a3b8;  /* slate-400 — placeholders, disabled */
  --color-rule:         #e2e8f0;  /* slate-200 — dividers, input borders */
  --color-rule-strong:  #cbd5e1;  /* slate-300 — emphasized dividers, dot grid */

  /* --- Page dot-grid background ------------------------- */
  --dot-bg:             #f1f5f9;
  --dot-color:          #cbd5e1;

  /* --- Annotation categories (LanceLite demo) ----------- */
  --color-cat-admin:        #d97706;  --color-cat-admin-bg:        #fef3c7;
  --color-cat-clinical:     #0369a1;  --color-cat-clinical-bg:     #e0f2fe;
  --color-cat-functional:   #7c3aed;  --color-cat-functional-bg:   #ede9fe;

  /* --- Severity (LanceLite demo) ------------------------ */
  --color-sev-supported:    #059669;  --color-sev-supported-bg:    #d1fae5;
  --color-sev-incomplete:   #d97706;  --color-sev-incomplete-bg:   #fef3c7;
  --color-sev-unsupported:  #dc2626;  --color-sev-unsupported-bg:  #fee2e2;

  /* --- Semantic accents --------------------------------- */
  --color-gold:         #d97706;
  --color-gold-bg:      rgba(217, 119, 6, 0.08);

  /* --- Typography --------------------------------------- */
  --font-ui:        "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-serif:     "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono:      "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --font-signature: "Caveat", "Snell Roundhand", cursive;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-lg:   17px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  32px;
  --text-4xl:  44px;
  --text-5xl:  56px;

  /* --- Radius & shadow ---------------------------------- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 18px 36px -18px rgba(15, 23, 42, 0.18);
}

/* ============================================================
   Base reset + global page chrome
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  letter-spacing: -0.005em;
  color: var(--color-ink);
  background-color: var(--dot-bg);
  background-image: radial-gradient(circle, var(--dot-color) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--color-accent-soft); color: var(--color-ink); }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; transition: color 0.12s; }
a:hover { color: var(--color-accent-deep); }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.15;
}
h1 { font-size: var(--text-5xl); letter-spacing: -0.04em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.03em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
@media (max-width: 720px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
}

p { margin: 0 0 16px; color: var(--color-ink-2); line-height: 1.6; }
strong { color: var(--color-ink); font-weight: 600; }
small, .small { font-size: var(--text-sm); color: var(--color-ink-3); }

/* Scrollbars */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--color-rule-strong); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--color-ink-4); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
}

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

/* ============================================================
   Eyebrow — small uppercase label above section headings
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-ink-3);
}
.eyebrow::before {
  content: "●";
  color: var(--color-accent);
  font-size: 10px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.1px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #fff; }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-rule-strong);
}
.btn-secondary:hover { background: var(--color-accent-tint); color: var(--color-ink); }

.btn-ghost {
  background: transparent;
  color: var(--color-ink-2);
}
.btn-ghost:hover { background: var(--color-accent-tint); color: var(--color-accent-deep); }

.btn-dark {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.btn-dark:hover { background: var(--color-ink-2); color: #fff; }

.btn-lg { padding: 12px 18px; font-size: var(--text-base); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-hover { transition: transform 0.15s, box-shadow 0.15s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ============================================================
   Site chrome — header / footer (used by every page)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-rule);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--color-accent); }

.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.site-nav a:hover { color: var(--color-accent-deep); }

.site-footer {
  background: var(--color-ink);
  color: #8e8a82;
  padding: 56px 0 32px;
  margin-top: 96px;
  border-top: 1px solid #1f1f1f;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
@media (max-width: 960px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h6 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 14px;
}
.site-footer a {
  display: block;
  color: #8e8a82;
  font-size: 12.5px;
  padding: 4px 0;
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-accent-soft); }
.site-footer .wordmark { color: #ffffff; font-size: 20px; }
.site-footer .wordmark .dot { color: var(--color-accent-soft); }
.site-footer .footer-tagline {
  font-size: 12.5px;
  color: #8e8a82;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 300px;
}
.site-footer .footer-badges {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.site-footer .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #c0bcb4;
  letter-spacing: 0.3px;
}
.site-footer .footer-meta {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: #6b6862;
  text-transform: uppercase;
}

/* Dark section variant (used by /bring-lance rollout, parts of /homepage) */
.section-dark {
  background: var(--color-ink);
  color: #ddd9cf;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark .eyebrow { color: var(--color-accent-soft); }
.section-dark .eyebrow::before { color: var(--color-accent-soft); }

/* ============================================================
   Utility classes
   ============================================================ */
.text-ink   { color: var(--color-ink); }
.text-ink-2 { color: var(--color-ink-2); }
.text-ink-3 { color: var(--color-ink-3); }
.text-accent { color: var(--color-accent); }
.text-mono { font-family: var(--font-mono); }
.text-serif { font-family: var(--font-serif); }

.mt-0 { margin-top: 0; }      .mt-2 { margin-top: 8px; }      .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }   .mt-8 { margin-top: 32px; }     .mt-12 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }   .mb-2 { margin-bottom: 8px; }   .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }  .gap-4 { gap: 16px; }  .gap-6 { gap: 24px; }
