/* 
 * RMCPro v3.1 — Codename: NEO
 * Typography System
 */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADINGS (Apple / Stripe style: tight tracking, high contrast)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: 1.75rem; /* 28px */
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.3;
}

/* ==========================================================================
   DOMINANT KPI
   ========================================================================== */
.kpi-value {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  display: block;
}

.kpi-value.kpi-success {
  /* Using gradient text for primary KPI */
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary-600); /* Fallback */
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.subtitle {
  font-size: 0.875rem; /* 14px */
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.body-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.caption {
  font-size: 0.75rem; /* 12px */
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Responsive adjustments */
@media (min-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .kpi-value { font-size: 2.5rem; }
}
