/* =========================================================
   SURELIA — Design System
   Insurance Intelligence for Africa
   Palette : Navy #0F1E34 / Gold #C8A96A / Slate #6B7280 / Mist #F2F4F7
   Type    : Montserrat (display) / Inter (body)
   ========================================================= */

:root {
  --navy-900: #0a1422;
  --navy-800: #0f1e34;
  --navy-700: #1a2c47;
  --navy-600: #243a5b;
  --navy-500: #3a4f6f;
  --gold-600: #b8985b;
  --gold-500: #c8a96a;
  --gold-400: #d6bb80;
  --gold-300: #e4cf9f;
  --gold-100: #f6ecd4;
  --slate-700: #475467;
  --slate-600: #6b7280;
  --slate-500: #8a93a0;
  --slate-400: #b0b7c2;
  --slate-300: #d5d9e0;
  --slate-200: #e6e9ee;
  --slate-100: #f2f4f7;
  --mist-50: #f8f9fb;
  --white: #ffffff;

  --bg-page: var(--white);
  --bg-soft: var(--slate-100);
  --bg-dark: var(--navy-800);
  --ink-primary: var(--navy-800);
  --ink-secondary: var(--slate-700);
  --ink-muted: var(--slate-600);
  --rule: rgba(15, 30, 52, 0.08);
  --rule-strong: rgba(15, 30, 52, 0.18);

  --font-display: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  --shadow-1: 0 1px 2px rgba(15, 30, 52, 0.04), 0 1px 1px rgba(15, 30, 52, 0.03);
  --shadow-2: 0 8px 24px -8px rgba(15, 30, 52, 0.12), 0 2px 6px rgba(15, 30, 52, 0.05);
  --shadow-3: 0 24px 48px -16px rgba(15, 30, 52, 0.18), 0 4px 12px rgba(15, 30, 52, 0.06);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --container-max: 1240px;
  --section-y: clamp(4rem, 8vw, 7rem);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--navy-800); color: var(--gold-300); }

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--gold-600); }

p { margin: 0 0 1rem; color: var(--ink-secondary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

.lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-secondary);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-500);
}
.eyebrow--light { color: var(--gold-400); }
.eyebrow--light::before { background: var(--gold-400); }

.section-title-block { max-width: 760px; margin-bottom: 3rem; }
.section-title-block.center { margin-inline: auto; text-align: center; }
.section-title-block.center .eyebrow { justify-content: center; }

/* ---------- Layout ---------- */
.container,
.container-narrow {
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container { max-width: var(--container-max); }
.container-narrow { max-width: 920px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.78); }
.section--dark .eyebrow { color: var(--gold-400); }
.section--dark .eyebrow::before { background: var(--gold-400); }

.surface-grid-bg {
  position: relative;
  isolation: isolate;
}
.surface-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,30,52,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,30,52,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 75%);
  z-index: -1;
}
.surface-grid-bg.is-dark::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.005em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.btn--primary:hover {
  background: var(--navy-700);
  color: var(--gold-300);
  border-color: var(--navy-700);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-800);
  border-color: var(--gold-500);
}
.btn--gold:hover {
  background: var(--gold-400);
  color: var(--navy-800);
  border-color: var(--gold-400);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost-light:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.btn--link {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--navy-800);
  position: relative;
  font-weight: 600;
}
.btn--link::after {
  content: "→";
  display: inline-block;
  margin-left: .5rem;
  transition: transform .2s ease;
}
.btn--link:hover { color: var(--gold-600); }
.btn--link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.site-header__brand img {
  height: auto;
  width: 168px;
  max-width: 100%;
  display: block;
}
@media (max-width: 1080px) {
  .site-header__brand img { width: 140px; }
}
@media (max-width: 480px) {
  .site-header__brand img { width: 118px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-secondary);
  position: relative;
  padding-block: .35rem;
}
.site-nav a:hover { color: var(--ink-primary); }
.site-nav a.is-active { color: var(--ink-primary); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
}

/* Nav dropdown */
.site-nav__group { position: relative; }
.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding-block: .35rem;
}
.site-nav__trigger:hover { color: var(--ink-primary); }
.site-nav__trigger svg {
  transition: transform .2s ease;
  opacity: .6;
}
.site-nav__group:hover .site-nav__trigger svg,
.site-nav__group:focus-within .site-nav__trigger svg {
  transform: rotate(180deg);
  opacity: 1;
}
.site-nav__panel {
  position: absolute;
  top: calc(100% + .85rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  padding: .5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.site-nav__group:hover .site-nav__panel,
.site-nav__group:focus-within .site-nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-nav__panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 8px;
}
.site-nav__panel a {
  display: block;
  padding: .65rem .85rem;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
}
.site-nav__panel a:hover {
  background: var(--slate-100);
  color: var(--ink-primary);
}
.site-nav__panel a.is-active {
  color: var(--navy-800);
  background: rgba(200, 169, 106, 0.08);
}
.site-nav__panel a.is-active::after { display: none; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 100;
  padding: 1.25rem 1.25rem 2rem;
  display: none;
  flex-direction: column;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu__top img { width: 130px; height: auto; display: block; }
.mobile-menu__top button {
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy-800);
  padding: .25rem .5rem;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-primary);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn {
  margin-top: 1.5rem;
  justify-content: center;
  position: sticky;
  bottom: 0;
}
body.no-scroll { overflow: hidden; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
  background: var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 strong {
  font-weight: 700;
  background: linear-gradient(120deg, var(--gold-600), var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__intro p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.hero__meta {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  flex-wrap: wrap;
}
.hero__meta-item { min-width: 120px; }
.hero__meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: .2rem;
}
.hero__meta-item span {
  font-size: .82rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero chip strip — used on home page below CTAs */
.hero__chip-strip {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  border-top: 1px solid var(--rule);
}
.hero__chip-strip li {
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--white);
}
.hero__chip-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-right: .5rem;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 620px;
  margin-inline: auto;
}
.hero__visual svg,
.hero-dashboard { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; aspect-ratio: 4 / 3; }
}

/* ---------- Module grid / cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 28px;
  border-top: 2px solid var(--gold-500);
  border-left: 2px solid var(--gold-500);
  border-top-left-radius: var(--radius-lg);
  opacity: 0;
  transform: translate(-4px, -4px);
  transition: opacity .25s ease, transform .25s ease;
}
.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.card:hover::before {
  opacity: 1;
  transform: translate(0, 0);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  margin-bottom: .25rem;
}
.card h3 { margin: 0; font-size: 1.18rem; }
.card p { margin: 0; font-size: .96rem; line-height: 1.55; }
.card__link {
  margin-top: auto;
  padding-top: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
}
.card__link::after { content: "→"; margin-left: .35rem; transition: transform .2s ease; }
.card:hover .card__link::after { transform: translateX(3px); }

.card--inverse {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-700);
}
.card--inverse h3, .card--inverse p { color: var(--white); }
.card--inverse p { color: rgba(255,255,255,0.75); }
.card--inverse .card__icon { background: rgba(255,255,255,0.06); color: var(--gold-400); }

/* Certainty pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--rule);
}
.pill--confirmed { background: rgba(56, 110, 65, 0.08); color: #2f6b3a; border-color: rgba(56,110,65,0.2); }
.pill--suggested { background: rgba(180, 130, 40, 0.08); color: #8a5d10; border-color: rgba(180,130,40,0.25); }
.pill--validate  { background: rgba(150, 150, 150, 0.1); color: #5a5a5a; border-color: rgba(150,150,150,0.25); }
.pill--accent    { background: var(--gold-100); color: var(--gold-600); border-color: var(--gold-300); }

/* ---------- Module strip (logos / proof line) ---------- */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem;
}
.proof-strip__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Feature row (alt-left / alt-right) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.feature-row + .feature-row { border-top: 1px solid var(--rule); }
.feature-row.is-reversed .feature-row__media { order: -1; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reversed .feature-row__media { order: 0; }
}

.feature-row__media {
  position: relative;
  background: var(--slate-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.feature-row__media svg { width: 100%; height: 100%; display: block; }

.feature-row__body h2 { margin-bottom: 1rem; }
.feature-row__body ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.feature-row__body li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .65rem;
  color: var(--ink-secondary);
}
.feature-row__body li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 12px;
  height: 1px;
  background: var(--gold-500);
}

/* ---------- Big CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,106,0.35), transparent 60%);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,58,91,0.7), transparent 60%);
  z-index: -1;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .cta-band__inner { grid-template-columns: 1fr; }
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }
.cta-band__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ---------- Audience grid ---------- */
.audience-card {
  background: var(--white);
  border-left: 2px solid var(--gold-500);
  padding: 1.25rem 1.4rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-1);
}
.audience-card h4 {
  margin-bottom: .35rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}
.audience-card p { margin: 0; font-size: .92rem; }

/* ---------- KPI block ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kpi-grid > div {
  background: var(--white);
  padding: 1.5rem;
}
.kpi-grid__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy-800);
  margin-bottom: .2rem;
  letter-spacing: -0.02em;
}
.kpi-grid__label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Lifecycle steps ---------- */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lifecycle__step {
  position: relative;
  background: var(--white);
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-primary);
  font-weight: 500;
}
.lifecycle__step span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  color: var(--gold-600);
  letter-spacing: 0.18em;
  margin-bottom: .25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding-block: 4rem 2rem;
  font-size: .92rem;
}
.site-footer h5 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.1fr 1.1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand { grid-row: span 1; }
@media (max-width: 1200px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
.site-footer__brand img {
  width: 160px;
  height: auto;
  margin-bottom: 1.25rem;
  display: block;
}
.site-footer__brand p {
  color: rgba(255,255,255,0.7);
  max-width: 320px;
}
.site-footer__brand span {
  display: inline-block;
  color: var(--gold-400);
  font-style: italic;
  letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  color: rgba(255,255,255,0.55);
  font-size: .82rem;
}
.site-footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-2);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}
label.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: .35rem;
}
.form-control, .form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: .75rem .9rem;
  color: var(--ink-primary);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-control:focus, .form-select:focus {
  outline: 0;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(15, 30, 52, 0.08);
}
.form-control::placeholder { color: var(--slate-500); }
.errorlist {
  color: #b13a3a;
  font-size: .82rem;
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
}

/* ---------- Inline alerts / messages ---------- */
.alert-success {
  background: rgba(56, 110, 65, 0.08);
  border: 1px solid rgba(56,110,65,0.2);
  color: #2f6b3a;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* ---------- Diagrams (SVG defaults) ---------- */
.diagram-svg { width: 100%; height: auto; }
.diagram-svg .node-bg { fill: var(--white); stroke: var(--rule-strong); stroke-width: 1; }
.diagram-svg .node-center { fill: var(--navy-800); }
.diagram-svg .node-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; fill: var(--navy-800); text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.04em; text-transform: uppercase; }
.diagram-svg .node-label--light { fill: var(--white); }
.diagram-svg .node-label--gold { fill: var(--gold-400); }
.diagram-svg .edge { stroke: var(--rule-strong); stroke-width: 1; fill: none; }
.diagram-svg .edge--accent { stroke: var(--gold-500); }
.diagram-svg .ring { fill: none; stroke: var(--gold-500); stroke-width: 1; stroke-dasharray: 2 6; opacity: .6; }

/* ---------- Page hero (compact, for non-home pages) ---------- */
.page-hero {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--slate-100) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}
.page-hero__lead { max-width: 56ch; }
.page-hero__meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-left: 2rem;
  border-left: 1px solid var(--rule-strong);
}
.page-hero__meta dt {
  font-size: .72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.page-hero__meta dd {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-primary);
}
@media (max-width: 900px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__meta { padding-left: 0; padding-top: 1.5rem; border-left: 0; border-top: 1px solid var(--rule-strong); }
}

/* ---------- Module list (with description + certitude) ---------- */
.module-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.module-list__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 160px;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.module-list__row:first-child { border-top: 0; }
.module-list__row:hover { background: var(--mist-50); }
.module-list__row h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.module-list__row p { margin: 0; font-size: .92rem; color: var(--ink-secondary); }
@media (max-width: 800px) {
  .module-list__row { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---------- Module family (grouped capability list) ---------- */
.module-family {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem 1.4rem;
  margin-bottom: 1.25rem;
  background: var(--white);
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.module-family:hover {
  border-color: rgba(200, 169, 106, 0.4);
  box-shadow: var(--shadow-2);
}
.module-family__head { padding-top: .25rem; }
.module-family__head h3 {
  margin: .35rem 0 0;
  font-size: 1.2rem;
}
.module-family__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.module-family__list li {
  display: inline-flex;
  align-items: center;
  padding: .42rem .85rem;
  background: var(--mist-50);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink-secondary);
}
.module-family__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-right: .5rem;
}
@media (max-width: 800px) {
  .module-family { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Quote / pull-quote ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  color: var(--ink-primary);
  border-left: 3px solid var(--gold-500);
  padding-left: 1.5rem;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.hidden { display: none; }
@media (max-width: 720px) {
  .hide-sm { display: none; }
}

/* ---------- Reveal animation ----------
   Content is visible by default. Animation only applies when
   JavaScript adds .js to <html> AND the user has not requested
   reduced motion. This guarantees the site renders fully without JS. */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }
html.js .reveal[data-delay="4"] { transition-delay: .32s; }
html.js .reveal[data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero radial visual ---------- */
.hero-radial {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-radial svg { width: 100%; height: 100%; }
