/* ============================================================
   DEMANDCAST DESIGN SYSTEM — Core Tokens
   Source of truth for all visual properties.
   Inlined into every template via demandcast-core.css.
   ============================================================ */

:root {
  /* ── Blue ramp (10-step) ────────────────────────────────── */
  --blue-950: #041A33;
  --blue-900: #072C54;
  --blue-800: #0A3F78;
  --blue-700: #0B6FDE;
  --blue-600: #0D81FF;   /* ← PRIMARY */
  --blue-500: #3D9BFF;   /* ← ACCENT (lighter) */
  --blue-400: #6AB5FF;
  --blue-300: #99CFFF;
  --blue-200: #C7E3FF;
  --blue-100: #EBF4FF;

  /* ── Neutral ramp ───────────────────────────────────────── */
  --ink-950: #121212;
  --ink-900: #1A1A1A;
  --ink-800: #2B2B2B;    /* ← DARK TEXT */
  --ink-700: #3D3D3D;
  --ink-600: #525252;
  --ink-500: #6E6E6E;    /* ← MUTED TEXT */
  --ink-400: #8A8A8A;
  --neutral-300: #B0B0B0;
  --neutral-200: #D4D4D4;
  --neutral-100: #F0F0F0;
  --white: #FFFFFF;

  /* ── Semantic aliases ───────────────────────────────────── */
  --brand: var(--blue-600);
  --brand-hover: var(--blue-700);
  --accent: var(--blue-500);
  --text: var(--ink-800);
  --text-2: var(--ink-500);
  --text-3: var(--ink-400);
  --on-dark: var(--white);
  --on-dark-2: rgba(255,255,255,0.72);
  --on-dark-3: rgba(255,255,255,0.48);
  --hairline: rgba(0,0,0,0.10);
  --hairline-dark: rgba(255,255,255,0.12);

  /* ── Signature surfaces ─────────────────────────────────── */
  --field-blue: linear-gradient(160deg, var(--blue-950) 0%, #061E3B 50%, var(--blue-900) 100%);
  --field-ink:  linear-gradient(160deg, var(--ink-950) 0%, #141820 50%, var(--ink-900) 100%);

  /* ── Typography ─────────────────────────────────────────── */
  --font: 'Futura', 'Futura PT', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Radii ──────────────────────────────────────────────── */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-pill: 999px;

  /* ── Spacing (4px base) ─────────────────────────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 120px;
  --space-11: 160px;

  /* Semantic spacing */
  --gutter:      var(--space-5);
  --section-pad:  var(--space-8);
  --card-pad:     var(--space-5);
  --stack-sm:     var(--space-3);
  --stack-md:     var(--space-5);
  --stack-lg:     var(--space-7);

  /* ── Shadows (blue-tinted) ──────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(13,129,255,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(13,129,255,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(13,129,255,0.12), 0 4px 8px rgba(0,0,0,0.06);
}


/* ── Reset ────────────────────────────────────────────────── */

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
body { font-family: var(--font); color: var(--text); }


/* ── Signal Waves (broadcast arcs) ────────────────────────── */
/* Concentric curved arcs radiating outward — like broadcast
   signals. CSS radial gradients, not tiling SVG.              */

.dc-wave-dark::before,
.dc-wave-light::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.dc-wave-dark::before {
  background:
    radial-gradient(ellipse 160% 160% at -20% 120%,
      rgba(13,129,255,0.18) 0%,
      rgba(10,63,120,0.12) 8%,
      transparent 16%,
      rgba(13,129,255,0.14) 22%,
      rgba(10,63,120,0.09) 30%,
      transparent 38%,
      rgba(13,129,255,0.10) 44%,
      rgba(10,63,120,0.06) 52%,
      transparent 60%,
      rgba(13,129,255,0.06) 66%,
      rgba(10,63,120,0.03) 74%,
      transparent 82%
    );
}
.dc-wave-light::before {
  background:
    radial-gradient(ellipse 160% 160% at -20% 120%,
      rgba(13,129,255,0.06) 0%,
      rgba(13,129,255,0.03) 8%,
      transparent 16%,
      rgba(13,129,255,0.04) 22%,
      rgba(13,129,255,0.02) 30%,
      transparent 38%,
      rgba(13,129,255,0.03) 44%,
      rgba(13,129,255,0.01) 52%,
      transparent 60%
    );
}

/* Right-side wave variant (arcs from right edge) */
.dc-wave-right::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 160% 160% at 120% -20%,
      rgba(13,129,255,0.18) 0%,
      rgba(10,63,120,0.12) 8%,
      transparent 16%,
      rgba(13,129,255,0.14) 22%,
      rgba(10,63,120,0.09) 30%,
      transparent 38%,
      rgba(13,129,255,0.10) 44%,
      rgba(10,63,120,0.06) 52%,
      transparent 60%,
      rgba(13,129,255,0.06) 66%,
      rgba(10,63,120,0.03) 74%,
      transparent 82%
    );
}


/* Fade the wave arcs at top */
.dc-wave-fade::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--blue-950), transparent);
  pointer-events: none;
  z-index: 0;
}


/* ── Dark field helpers ───────────────────────────────────── */

.dc-field-blue {
  background: var(--field-blue);
  color: var(--on-dark);
  position: relative;
}
.dc-field-ink {
  background: var(--field-ink);
  color: var(--on-dark);
  position: relative;
}


/* ── Accent bar (bottom of dark panels) ───────────────────── */

.dc-accent-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  z-index: 1;
}


/* ── Type system ──────────────────────────────────────────── */

.dc-display {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.dc-h1 {
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dc-h2 {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dc-h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}
.dc-body {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
.dc-lede {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}
.dc-eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.dc-pill {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: var(--r-pill);
  padding: 4px 14px;
}
.dc-micro {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}


/* ── Components ───────────────────────────────────────────── */

/* Stat block */
.dc-stat { display: flex; flex-direction: column; gap: 6px; }
.dc-stat .value {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
}
.dc-stat .value .unit { color: var(--accent); }
.dc-stat .label {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.dc-stat--dark .value { color: var(--white); }
.dc-stat--dark .label { color: var(--on-dark-2); }
.dc-stat--light .value { color: var(--brand); }
.dc-stat--light .label { color: var(--text-2); }

/* Checklist */
.dc-check { list-style: none; }
.dc-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.dc-check li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%230D81FF'/%3E%3Cpath d='M5.5 9.2 7.8 11.5 12.5 6.5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Card */
.dc-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--card-pad);
  box-shadow: var(--shadow-sm);
}
.dc-card.--accent {
  border-top: 3px solid var(--brand);
}

/* Button */
.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.dc-btn--primary {
  background: var(--brand);
  color: var(--white);
}
.dc-btn--primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-md);
}
.dc-btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.dc-btn--ghost:hover {
  background: var(--blue-100);
}
.dc-btn--dark {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.24);
}
.dc-btn--dark:hover {
  background: rgba(255,255,255,0.18);
}

/* Accent rule */
.dc-rule {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border: none;
  border-radius: 2px;
}

/* Footer band */
.dc-band {
  background: var(--ink-950);
  color: var(--on-dark-2);
  padding: var(--space-5) var(--space-6);
  border-top: 3px solid var(--brand);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo lockup */
.dc-logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dc-logo-lockup img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.dc-logo-lockup .tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-left: 1px solid var(--hairline);
  padding-left: 12px;
}

/* Stat row */
.dc-stat-row {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}
.dc-stat-row .dc-stat + .dc-stat {
  border-left: 2.5px solid var(--brand);
  padding-left: var(--space-6);
}

/* Episode card */
.dc-episode {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--card-pad);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.dc-episode .ep-number {
  font-weight: 700;
  font-size: 32px;
  color: var(--brand);
  line-height: 1;
  min-width: 48px;
}
.dc-episode .ep-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.dc-episode .ep-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Pull quote */
.dc-quote {
  position: relative;
  padding-left: var(--space-5);
  border-left: 3px solid var(--brand);
}
.dc-quote .text {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  font-style: italic;
}
.dc-quote .attribution {
  margin-top: var(--space-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

/* Content multiplier */
.dc-multiplier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.dc-multiplier .source {
  font-weight: 600;
  font-size: 16px;
  color: var(--brand);
}
.dc-multiplier .arrow {
  width: 24px; height: 24px;
  color: var(--accent);
}
.dc-multiplier .outputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}
.dc-multiplier .output-item {
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}

/* Process steps */
.dc-steps {
  display: flex;
  gap: var(--space-5);
}
.dc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dc-step .step-num {
  width: 36px; height: 36px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.dc-step .step-title {
  font-weight: 600;
  font-size: 16px;
}
.dc-step .step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}


/* ── Utility ──────────────────────────────────────────────── */

.dc-center { text-align: center; }
.dc-z { position: relative; z-index: 2; }
.dc-gap-sm { gap: var(--stack-sm); }
.dc-gap-md { gap: var(--stack-md); }
.dc-gap-lg { gap: var(--stack-lg); }
