/* ─────────────────────────────────────────────────────────────
   OnDemand Leaders — shared core styles.
   Tokens, type, buttons, sections, eyebrow, h2/lead, page-hero.
   Page-specific styles live inline in each page.
   ───────────────────────────────────────────────────────────── */

:root {
  --blue-normal:  #1D4696;
  --blue-dark:    #0B1E3B;
  --blue-mid:     #163680;
  --blue-deepest: #050F22;
  --blue-accent:  #3D6EC9;
  --blue-tint-1:  #E8EEF9;
  --white:        #FFFFFF;
  --bg-soft:      #F8FAFC;
  --text-main:    #0B1E3B;
  --text-muted:   #4B5E77;
  --text-light:   #8A9BB8;
  --border-clean: #E2E8F0;
  --border-mid:   #CBD5E8;
  --signal-amber: #E0A53A;
  --signal-green: #2E8B6A;

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Fraunces', serif;

  --nav-h: 72px;
  --max-w: 1240px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img { max-width: 100%; display: block; }

/* Layout primitives */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 112px 0; }
.section--white { background: var(--white); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--blue-dark); color: var(--white); }
.section--deepest { background: var(--blue-deepest); color: var(--white); }
.section--gradient {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(29,70,150,0.55), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(11,30,59,0.9), transparent 60%),
    linear-gradient(180deg, var(--blue-deepest) 0%, var(--blue-dark) 100%);
  color: var(--white);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Type */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-normal);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,0.55); }

.display {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--text-main);
}
.display em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue-normal); letter-spacing: -0.02em; }
.display--light { color: var(--white); }
.display--light em { color: rgba(255,255,255,0.55); }

.h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
}
.h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue-normal); }
.h2--light { color: var(--white); }
.h2--light em { color: rgba(255,255,255,0.5); }

.h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h3--light { color: var(--white); }

.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.78; color: var(--text-muted); }
.lead--light { color: rgba(255,255,255,0.72); }
.lead strong { color: var(--text-main); font-weight: 600; }
.lead--light strong { color: var(--white); }

.prose p { font-size: 17px; line-height: 1.78; color: var(--text-muted); margin-bottom: 18px; }
.prose p strong { color: var(--text-main); font-weight: 600; }
.prose ul { padding-left: 0; list-style: none; margin: 20px 0; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px; line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.prose ul li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 12px; height: 1.5px; background: var(--blue-normal);
}
.prose ul li strong { color: var(--text-main); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn .arrow {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; font-size: 14px;
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--primary { background: var(--blue-normal); color: var(--white); box-shadow: 0 8px 20px -10px rgba(29,70,150,0.6); }
.btn--primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(29,70,150,0.65);
}
.btn--invert { background: var(--white); color: var(--blue-dark); }
.btn--invert:hover { background: var(--bg-soft); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.32); }
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.06); }
.btn--secondary { background: var(--white); color: var(--blue-dark); border-color: var(--border-mid); }
.btn--secondary:hover { border-color: var(--blue-normal); color: var(--blue-normal); }
.btn--ghost-dark { background: transparent; color: var(--text-main); border-color: var(--border-mid); }
.btn--ghost-dark:hover { border-color: var(--blue-normal); color: var(--blue-normal); }

/* Page hero (used on all interior pages) */
.page-hero {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(29,70,150,0.55), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(11,30,59,0.9), transparent 60%),
    linear-gradient(180deg, var(--blue-deepest) 0%, var(--blue-dark) 65%, var(--blue-mid) 130%);
  color: var(--white);
  padding: calc(var(--nav-h) + 80px) 0 88px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero__inner { max-width: 880px; }
.page-hero__h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--white);
  margin: 16px 0 24px;
}
.page-hero__h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: -0.02em; }
.page-hero__sub {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 720px;
  margin-bottom: 32px;
}
.page-hero__sub strong { color: var(--white); font-weight: 600; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Section header pattern (eyebrow + h2 + lead) */
.section-head { max-width: 820px; margin: 0 auto 56px; }
.section-head--left { margin-left: 0; }
.section-head h2 { margin-top: 6px; }
.section-head .lead { margin-top: 20px; }

/* TBD callout — used on scaffold pages */
.tbd-banner {
  background: rgba(224,165,58,0.08);
  border: 1px solid rgba(224,165,58,0.28);
  border-radius: var(--r-md);
  padding: 16px 22px;
  font-size: 13.5px;
  color: #8B6915;
  margin: 32px auto 0;
  max-width: 820px;
  line-height: 1.6;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.tbd-banner strong { color: #6B4F0E; }

/* Generic card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border-clean);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--blue-normal); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(11,30,59,0.18); }
.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-normal);
  margin-bottom: 14px;
}
.card__title {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--text-main);
  margin-bottom: 12px;
}
.card__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue-normal); }
.card__body {
  font-size: 15px; line-height: 1.68;
  color: var(--text-muted);
}
.card__body strong { color: var(--text-main); font-weight: 600; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 13px; font-weight: 600;
  color: var(--blue-normal);
  letter-spacing: -0.005em;
}
.card__link:hover { color: var(--blue-mid); }

/* Dark variant of card */
.card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
.card--dark:hover { border-color: rgba(255,255,255,0.28); box-shadow: none; background: rgba(255,255,255,0.055); }
.card--dark .card__tag { color: rgba(255,255,255,0.55); }
.card--dark .card__title { color: var(--white); }
.card--dark .card__title em { color: rgba(255,255,255,0.55); }
.card--dark .card__body { color: rgba(255,255,255,0.7); }
.card--dark .card__body strong { color: var(--white); }
.card--dark .card__link { color: rgba(255,255,255,0.85); }

/* Bullet list with checkmarks */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  align-items: start;
  font-size: 15px; line-height: 1.6;
  color: var(--text-muted);
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue-normal);
  background-image: linear-gradient(135deg, var(--blue-normal), var(--blue-accent));
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}
.check-list--light li { color: rgba(255,255,255,0.78); }

/* Numbered list */
.num-list { list-style: none; padding: 0; margin: 0; counter-reset: nl; }
.num-list li {
  counter-increment: nl;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-clean);
  font-size: 16px; line-height: 1.6;
  color: var(--text-main);
}
.num-list li::before {
  content: '0' counter(nl);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--blue-normal);
  padding-top: 3px;
}
.num-list--light li { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.08); }
.num-list--light li::before { color: rgba(255,255,255,0.55); }

/* CTA band (full-bleed) */
.cta-band {
  background: var(--blue-dark);
  color: var(--white);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-band__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-band__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-band__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: rgba(255,255,255,0.5); }
.cta-band__body {
  font-size: 16.5px; line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 26px;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
}
@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
}
