/* ============================================
   Growth Lab — Shared Design System
   system-ui body, monospace for data/labels
   Neutral gray base + 5 Growth Lever colors
   ============================================ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutrals */
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --text: #171717;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --hover: #f5f5f5;

  /* Growth Lever Colors */
  --acquisition: #3b82f6;
  --activation: #0d9488;
  --retention: #7c3aed;
  --revenue: #d97706;
  --referral: #db2777;

  /* Status Colors */
  --status-pending: #a3a3a3;
  --status-live: #3b82f6;
  --status-read: #d97706;
  --status-hit: #16a34a;
  --status-miss: #dc2626;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);

  /* Font */
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Shell ─── */
.shell { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.shell-narrow { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ─── Nav ─── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.nav-brand { display: flex; align-items: baseline; gap: 0.6rem; }
.nav-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.nav-title:hover { color: var(--text); }
.nav-tag {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); text-decoration: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-sep { color: var(--border); font-size: 0.82rem; font-weight: 300; user-select: none; }

/* ─── Back Link ─── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--text-secondary); }

/* ─── Section Headers ─── */
.section-header { margin-bottom: 1rem; }
.section-label {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
  display: block; margin-bottom: 0.25rem;
}
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em;
}
.section-desc {
  font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; max-width: 640px;
}

/* ─── Page Header ─── */
.page-header { margin-bottom: 2rem; }
.page-title {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 0.25rem;
}
.page-desc {
  font-size: 0.85rem; color: var(--text-secondary); max-width: 640px; line-height: 1.6;
}

/* ─── Meta Row ─── */
.meta-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-label {
  font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
}
.meta-value { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); }

/* ─── Growth Lever Pills ─── */
.lever {
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.lever::before {
  content: ''; width: 5px; height: 5px; border-radius: 1px; display: inline-block;
}
.lever-acquisition { color: var(--acquisition); background: rgba(59,130,246,0.08); }
.lever-acquisition::before { background: var(--acquisition); }
.lever-activation { color: var(--activation); background: rgba(13,148,136,0.08); }
.lever-activation::before { background: var(--activation); }
.lever-retention { color: var(--retention); background: rgba(124,58,237,0.08); }
.lever-retention::before { background: var(--retention); }
.lever-revenue { color: var(--revenue); background: rgba(217,119,6,0.08); }
.lever-revenue::before { background: var(--revenue); }
.lever-referral { color: var(--referral); background: rgba(219,39,119,0.08); }
.lever-referral::before { background: var(--referral); }

/* ─── Lever Dot (small, for metric rows) ─── */
.lever-dot {
  width: 14px; height: 14px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.48rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase; color: white;
}
.lever-dot.acq { background: var(--acquisition); }
.lever-dot.act { background: var(--activation); }
.lever-dot.ret { background: var(--retention); }
.lever-dot.rev { background: var(--revenue); }
.lever-dot.ref { background: var(--referral); }

/* ─── Status Badges ─── */
.status {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.status-icon { width: 7px; height: 7px; flex-shrink: 0; }
/* Pending: diamond */
.status-pending .status-icon { background: var(--status-pending); transform: rotate(45deg); border-radius: 1px; }
.status-pending { color: var(--status-pending); }
/* Live: filled dot */
.status-live .status-icon { background: var(--status-live); border-radius: 50%; }
.status-live { color: var(--status-live); }
/* Read date: ring */
.status-read .status-icon { background: transparent; border: 1.5px solid var(--status-read); border-radius: 50%; }
.status-read { color: var(--status-read); }
/* Hit: filled square */
.status-hit .status-icon { background: var(--status-hit); border-radius: 1px; }
.status-hit { color: var(--status-hit); }
/* Miss: filled square */
.status-miss .status-icon { background: var(--status-miss); border-radius: 1px; }
.status-miss { color: var(--status-miss); }
/* Never ran */
.status-never-ran .status-icon { background: var(--text-muted); border-radius: 1px; opacity: 0.5; }
.status-never-ran { color: var(--text-muted); }
/* Superseded */
.status-superseded .status-icon { background: var(--status-read); border-radius: 1px; opacity: 0.6; }
.status-superseded { color: var(--status-read); }
/* Needs data (backlog) */
.status-needs {
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--status-read); display: inline-flex; align-items: center; gap: 0.35rem;
}
.status-needs::before {
  content: ''; width: 6px; height: 6px; border-radius: 1px;
  background: var(--status-read); display: inline-block; transform: rotate(45deg);
}

/* ─── Body Text ─── */
.body-text {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; max-width: 680px;
}
.body-text strong { color: var(--text); font-weight: 600; }

/* ─── Section Divider ─── */
.section-divider {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}

/* ─── Divider ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ─── Footer ─── */
.footer {
  display: flex; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted);
}

/* ─── Loading / Empty States ─── */
.loading-msg, .empty-msg, .error-msg {
  text-align: center; padding: 3rem 1rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.error-msg { color: var(--status-miss); }

/* ─── Hidden ─── */
.hidden { display: none !important; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-links { gap: 1rem; }
  .meta-row { gap: 1rem; }
  .shell, .shell-narrow { padding: 1.5rem 1rem 3rem; }
}
