/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Core palette */
  --clr-bg:              #080c14;
  --clr-surface:         #0f1623;
  --clr-surface-2:       #161f30;
  --clr-surface-3:       #1c2840;
  --clr-border:          rgba(255, 255, 255, 0.07);
  --clr-border-bright:   rgba(0, 212, 170, 0.3);

  /* Brand */
  --clr-primary:         #00d4aa;
  --clr-primary-dark:    #00a884;
  --clr-primary-glow:    rgba(0, 212, 170, 0.15);
  --clr-secondary:       #6366f1;
  --clr-secondary-glow:  rgba(99, 102, 241, 0.15);
  --clr-accent:          #f59e0b;
  --clr-accent-glow:     rgba(245, 158, 11, 0.15);

  /* Semantics */
  --clr-success:         #10b981;
  --clr-danger:          #ef4444;

  /* Text */
  --clr-text:            #e2e8f0;
  --clr-text-muted:      #94a3b8;
  --clr-text-dim:        #475569;

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-sm:  0 2px 8px  rgba(0, 0, 0, 0.3);
  --shadow-md:  0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 8px 48px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 40px rgba(0, 212, 170, 0.12);

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 240ms ease;
  --t-slow: 400ms ease;

  /* Layout */
  --max-w:      1200px;
  --nav-h:      64px;
  --sidebar-w:  320px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clr-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--clr-text); }

input, select, button { font-family: inherit; }

/* ============================================================
   SITE LAYOUT
   ============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-top: var(--nav-h);
}

/* ============================================================
   NAV BLOCK
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__logo span { color: var(--clr-text-muted); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  flex-wrap: wrap;
  flex: 1;
}

.nav__item {}

.nav__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--clr-primary);
  background: var(--clr-primary-glow);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-4) var(--sp-6);
  z-index: 999;
}

.nav__mobile--open { display: block; }

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav__mobile-link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav__mobile-link:hover { color: var(--clr-primary); background: var(--clr-primary-glow); }

/* ============================================================
   HERO BLOCK
   ============================================================ */
.hero {
  padding: var(--sp-16) var(--sp-6) var(--sp-12);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, var(--clr-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-primary);
  background: var(--clr-primary-glow);
  border: 1px solid var(--clr-border-bright);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-6);
  letter-spacing: 0.05em;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.hero__title-accent { color: var(--clr-primary); }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.hero__stat {}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-primary);
  display: block;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  padding: var(--sp-12) var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__header {
  margin-bottom: var(--sp-8);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--sp-2);
}

.section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

/* ============================================================
   CALC CARD (home page cards)
   ============================================================ */
.calc-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.calc-card:hover {
  border-color: var(--clr-border-bright);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
  color: inherit;
}

.calc-card:hover::before { opacity: 1; }

.calc-card__icon {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-glow);
  border: 1px solid var(--clr-border-bright);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--sp-4);
}

.calc-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-secondary);
  background: var(--clr-secondary-glow);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calc-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--clr-text);
}

.calc-card__desc {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  flex: 1;
}

.calc-card__cta {
  margin-top: var(--sp-4);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  transition: gap var(--t-fast);
}

.calc-card:hover .calc-card__cta { gap: var(--sp-2); }

/* ============================================================
   CALCULATOR PAGE LAYOUT
   ============================================================ */
.calc-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-6);
}

.calc-page__header {
  margin-bottom: var(--sp-8);
}

.calc-page__breadcrumb {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.calc-page__breadcrumb a { color: var(--clr-text-muted); }
.calc-page__breadcrumb a:hover { color: var(--clr-primary); }

.calc-page__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
}

.calc-page__subtitle {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.calc-page__body {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--sp-6);
  align-items: start;
}

/* ============================================================
   CALC PANEL (inputs)
   ============================================================ */
.calc-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calc-panel__header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.calc-panel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 8px var(--clr-primary);
}

.calc-panel__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc-panel__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ============================================================
   FIELD BLOCK (input groups)
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field__hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-primary);
  font-weight: 700;
}

.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field__prefix,
.field__suffix {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  pointer-events: none;
  z-index: 1;
}

.field__prefix { left: var(--sp-3); }
.field__suffix { right: var(--sp-3); }

.field__input {
  width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -moz-appearance: textfield;
}

.field__input::-webkit-outer-spin-button,
.field__input::-webkit-inner-spin-button { -webkit-appearance: none; }

.field__input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.field__input--prefixed  { padding-left: var(--sp-8); }
.field__input--suffixed  { padding-right: var(--sp-8); }

.field__input[type="range"] {
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 20px;
}

.field__input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--clr-surface-3);
  border-radius: var(--radius-full);
}

.field__input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clr-primary);
  margin-top: -6px;
  box-shadow: 0 0 8px var(--clr-primary);
  transition: box-shadow var(--t-fast);
}

.field__input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--clr-primary-glow);
}

.field__select {
  width: 100%;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast);
}

.field__select:focus { border-color: var(--clr-primary); }

/* ============================================================
   CALC BTN
   ============================================================ */
.calc-btn {
  width: 100%;
  padding: var(--sp-4);
  background: var(--clr-primary);
  color: var(--clr-bg);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  letter-spacing: 0.03em;
}

.calc-btn:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35);
  transform: translateY(-1px);
}

.calc-btn:active { transform: translateY(0); }

/* ============================================================
   RESULTS PANEL
   ============================================================ */
.results {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.results__summary {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.results__summary-header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results__summary-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-dim);
}

.results__summary-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.results__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: var(--sp-6);
  gap: var(--sp-4);
}

.kpi {}

.kpi__label {
  font-size: 0.72rem;
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
}

.kpi__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
}

.kpi__value--primary { color: var(--clr-primary); }
.kpi__value--success { color: var(--clr-success); }
.kpi__value--accent  { color: var(--clr-accent); }
.kpi__value--danger  { color: var(--clr-danger); }

.kpi__sub {
  font-size: 0.72rem;
  color: var(--clr-text-dim);
  margin-top: 2px;
}

/* ============================================================
   CHART PANEL
   ============================================================ */
.chart-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chart-panel__header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.chart-panel__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-dim);
}

.chart-panel__body {
  padding: var(--sp-5);
  position: relative;
}

/* ============================================================
   BREAKDOWN TABLE
   ============================================================ */
.breakdown {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.breakdown__header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-dim);
}

.breakdown__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.breakdown__table th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-dim);
  border-bottom: 1px solid var(--clr-border);
}

.breakdown__table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-mono);
  color: var(--clr-text-muted);
}

.breakdown__table td:first-child { color: var(--clr-text-dim); }
.breakdown__table td:last-child { color: var(--clr-primary); }
.breakdown__table tr:hover td { background: var(--clr-surface-2); }
.breakdown__table tr:last-child td { border-bottom: none; }

/* ============================================================
   RELATED BLOCK
   ============================================================ */
.related {
  padding: var(--sp-12) var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--clr-border);
}

.related__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--sp-6);
  color: var(--clr-text-muted);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.related-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.related-card:hover {
  border-color: var(--clr-border-bright);
  background: var(--clr-surface-2);
  color: inherit;
}

.related-card__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.related-card__text {}

.related-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.related-card__desc {
  font-size: 0.72rem;
  color: var(--clr-text-dim);
}

/* ============================================================
   FORMULA BOX
   ============================================================ */
.formula-box {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-secondary);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-3);
}

.formula-box__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--clr-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}

.formula-box__text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  font-size: 0.78rem;
  color: var(--clr-text-dim);
}

.footer__logo {
  font-family: var(--font-mono);
  color: var(--clr-primary);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

/* ============================================================
   TICKER TAPE (decorative)
   ============================================================ */
.ticker {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
  padding: var(--sp-2) 0;
}

.ticker__inner {
  display: flex;
  gap: var(--sp-8);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker__symbol { color: var(--clr-text-muted); }
.ticker__price  { color: var(--clr-text); }
.ticker__change { }
.ticker__change--up   { color: var(--clr-success); }
.ticker__change--down { color: var(--clr-danger); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .calc-page__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; }

  .hero { padding: var(--sp-10) var(--sp-4) var(--sp-8); }
  .hero__stats { gap: var(--sp-5); }

  .section { padding: var(--sp-8) var(--sp-4); }
  .calc-page { padding: var(--sp-6) var(--sp-4); }

  .results__kpis { grid-template-columns: 1fr 1fr; }
  .kpi__value { font-size: 1.15rem; }

  .related { padding: var(--sp-8) var(--sp-4); }
  .related__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .results__kpis { grid-template-columns: 1fr 1fr; }
  .related__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTENT / PROSE SECTIONS (homepage editorial content)
   ============================================================ */
.content-section {
  border-top: 1px solid var(--clr-border);
}

/* More air between the heading and the prose below it */
.content-section .section__header {
  margin-bottom: var(--sp-10);
}

.content-prose--lead p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

/* p → p: comfortable reading gap */
.content-prose p {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

.content-prose p:last-child {
  margin-bottom: 0;
}

/* List items: slightly more room than default */
.content-prose ul,
.content-prose ol {
  color: var(--clr-text-muted);
  line-height: 1.8;
  padding-left: var(--sp-6);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.content-prose li {
  padding-left: var(--sp-2);
}

/* p → list: tighten — the list is continuing the thought */
.content-prose p + ul,
.content-prose p + ol {
  margin-top: calc(var(--sp-6) * -0.33);
}

/* list → p: more air — signals a transition back to prose */
.content-prose ul + p,
.content-prose ol + p {
  margin-top: var(--sp-8);
}

.content-prose strong {
  color: var(--clr-text);
  font-weight: 600;
}
