/* ==========================================================================
   COVENTRA — Performance Network
   Main stylesheet. Tokens first, then base, layout, components, pages.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors (sampled from the approved logo) */
  --color-navy: #031B39;          /* wordmark navy */
  --color-primary: #0555E2;       /* logo blue */
  --color-primary-hover: #0446BC;
  --color-accent: #06B7FE;        /* logo cyan (decorative only, not for text on white) */
  --color-secondary: #0B2A5B;     /* deep navy for dark surfaces */

  /* Neutrals */
  --color-text: #0E1A2B;
  --color-muted: #536276;
  --color-subtle: #7A8699;
  --color-border: #E2E7EF;
  --color-border-strong: #CBD3DF;
  --color-background: #FFFFFF;
  --color-surface: #F5F7FA;
  --color-tint: #EEF4FE;          /* light blue tile */

  /* On-dark */
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #B6C3D6;

  /* Gradients (derived from the logo, used sparingly) */
  --gradient-brand: linear-gradient(90deg, #06B7FE 0%, #0555E2 60%, #0B2A9C 100%);

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;

  /* Layout */
  --container-width: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section-space: clamp(72px, 9vw, 128px);
  --header-height: 76px;

  /* Elevation (kept minimal) */
  --shadow-sm: 0 1px 2px rgba(3, 27, 57, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(3, 27, 57, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--color-navy); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: #CFE0FC; color: var(--color-navy); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--color-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container-width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-space); }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > p { margin-top: 16px; color: var(--color-muted); font-size: var(--fs-lg); }
/* Brand rule: the short cyan→navy line from the logo lockup */
.brand-rule { display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--gradient-brand); margin-bottom: 20px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .brand-rule { margin-inline: auto; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}

.prose { max-width: 68ch; color: var(--color-muted); font-size: var(--fs-lg); }
.prose strong { color: var(--color-text); font-weight: 600; }
.lead { font-size: var(--fs-lg); color: var(--color-muted); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn--secondary { background: #fff; color: var(--color-navy); border-color: var(--color-border-strong); }
.btn--secondary:hover { border-color: var(--color-navy); color: var(--color-navy); }
.btn--light { background: #fff; color: var(--color-navy); }
.btn--light:hover { background: #E8EFFB; color: var(--color-navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(160%) blur(8px); } }
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-height); }
.site-logo { display: block; flex: none; }
.site-logo img { width: auto; height: 38px; }
@media (min-width: 1024px) { .site-logo img { height: 42px; } }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__link {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--color-text); font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--color-primary); background: var(--color-tint); }
.nav__link[aria-current="page"] { color: var(--color-primary); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-navy); cursor: pointer;
}
.menu-toggle:hover { background: var(--color-tint); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-height) 0 0 0; z-index: 99;
  background: #fff; border-top: 1px solid var(--color-border);
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__list { list-style: none; }
.mobile-menu__link {
  display: block; padding: 16px 4px; border-bottom: 1px solid var(--color-border);
  color: var(--color-navy); font-size: 1.25rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
}
.mobile-menu__link[aria-current="page"] { color: var(--color-primary); }
.mobile-menu__cta { margin-top: auto; padding-top: 28px; }
.mobile-menu__cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- 6. Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
/* Faint arc echoing the "C" mark */
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -18vw; top: -22vw;
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  border: 1px solid #E6EDF9; box-shadow: inset 0 0 0 64px #FAFCFF;
}
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__title { max-width: 14ch; }
.hero__copy { margin-top: 24px; max-width: 52ch; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); color: var(--color-muted); }
.hero__actions { margin-top: 36px; }
.hero__visual { width: 100%; max-width: 540px; justify-self: center; }

/* Network diagram */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram__node { fill: #fff; stroke: var(--color-border-strong); stroke-width: 1; }
.diagram__label { fill: var(--color-navy); font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.diagram__sub { fill: var(--color-muted); font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; }
.diagram__chip { fill: var(--color-navy); }
.diagram__chip-label { fill: #fff; font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.diagram__hub { fill: #fff; stroke: var(--color-border); stroke-width: 1; }
.diagram__line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.diagram__line--draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 900ms var(--ease) forwards; }
.diagram__line--d2 { animation-delay: 250ms; }
.diagram__line--d3 { animation-delay: 500ms; }
.diagram__fade { opacity: 0; animation: fade-in 600ms var(--ease) forwards; }
.diagram__fade--d1 { animation-delay: 120ms; }
.diagram__fade--d2 { animation-delay: 700ms; }
.diagram__fade--d3 { animation-delay: 950ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- 7. Page hero (internal pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--color-border); }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -260px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid #E3ECFB; box-shadow: inset 0 0 0 64px #F7FAFF;
}
.page-hero__context { display: block; margin-bottom: 18px; color: var(--color-primary); font-size: var(--fs-sm); font-weight: 600; }
.page-hero h1 { max-width: 18ch; }
.page-hero__copy { margin-top: 22px; max-width: 58ch; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); color: var(--color-muted); }
.page-hero .btn-row { margin-top: 32px; }

/* ---------- 8. Components ---------- */

/* Feature: icon tile + title + text. Hairline top rule, no card chrome. */
.feature { padding-top: 24px; border-top: 1px solid var(--color-border); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px; border-radius: var(--radius-sm);
  background: var(--color-tint); color: var(--color-primary);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--color-muted); font-size: var(--fs-sm); line-height: 1.6; }
.section--surface .feature__icon { background: #fff; }

/* Card */
.card {
  position: relative; padding: clamp(24px, 3vw, 32px);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-muted); font-size: var(--fs-sm); }
.card--interactive { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card--interactive:hover { border-color: #B9CDF4; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: var(--radius-sm); background: var(--color-tint); color: var(--color-primary); }
.card__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: var(--fs-xs); font-weight: 600; color: var(--color-navy) !important; }

/* Business models: ruled columns */
.models { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-border-strong); }
.model { padding: 28px 0; border-bottom: 1px solid var(--color-border); }
.model__name { display: block; margin-bottom: 10px; color: var(--color-navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.model p { color: var(--color-muted); font-size: var(--fs-sm); max-width: 36ch; }
@media (min-width: 640px) {
  .models { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 1024px) {
  .models { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-bottom: 1px solid var(--color-border); }
  .model { padding: 32px 28px 36px; border-bottom: 0; border-left: 1px solid var(--color-border); }
  .model:first-child { padding-left: 0; border-left: 0; }
  .model__name { min-height: 2.2em; }
}

/* Chips list (verticals, channels summaries) */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff;
  color: var(--color-navy); font-size: var(--fs-sm); font-weight: 600;
}
.chip .icon { width: 20px; height: 20px; color: var(--color-primary); }

/* Channel rows */
.channel-list { list-style: none; border-top: 1px solid var(--color-border); }
.channel-row { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.channel-row .feature__icon { margin: 0; grid-row: span 2; }
.channel-row h3 { font-size: 1.0625rem; }
.channel-row p { color: var(--color-muted); font-size: var(--fs-sm); }
@media (min-width: 768px) {
  .channel-list--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .channel-list--2col .channel-row:nth-child(-n+2) { border-top: 1px solid var(--color-border); }
}
.note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px;
  border-radius: var(--radius-sm); background: var(--color-tint); color: var(--color-navy); font-size: var(--fs-sm);
}
.note .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--color-primary); }

/* Steps (true sequence → numbered) */
.steps { display: grid; gap: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 0 0 36px 64px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border-strong);
  color: var(--color-primary); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums;
}
.step::after { content: ""; position: absolute; left: 22px; top: 48px; bottom: 6px; width: 1px; background: var(--color-border-strong); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 6px; padding-top: 8px; }
.step p { color: var(--color-muted); font-size: var(--fs-sm); max-width: 44ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 68px 0 0; }
  .step::before { top: 0; }
  .step::after { left: 56px; right: -24px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::after { display: none; }
  .step h3 { padding-top: 0; }
}

/* Check list */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--color-primary); }
.check-list strong { display: block; color: var(--color-navy); font-weight: 600; }
.check-list span { color: var(--color-muted); font-size: var(--fs-sm); }

/* Model flow (what we do) */
.flow { display: grid; gap: 10px; list-style: none; }
.flow__item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff;
  color: var(--color-navy); font-weight: 600; font-size: var(--fs-sm);
}
.flow__item .icon { width: 20px; height: 20px; color: var(--color-primary); }
.flow__item--hub { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.flow__item--hub img { width: 22px; height: auto; }
.flow__arrow { display: flex; justify-content: center; color: var(--color-subtle); line-height: 1; font-size: 1.1rem; }
.flow-card h3 { margin-bottom: 8px; }
.flow-card > p { color: var(--color-muted); font-size: var(--fs-sm); margin-bottom: 22px; }

/* Partnership paths */
.paths { display: grid; gap: 20px; }
@media (min-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: #fff; }
.path__for { color: var(--color-primary); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 14px; }
.path h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.path p { margin-top: 14px; color: var(--color-muted); }
.path .check-list { margin-top: 24px; }
.path .btn { margin-top: auto; align-self: flex-start; }
.path__actions { margin-top: 32px; }
.path--dark { background: var(--color-navy); border-color: var(--color-navy); }
.path--dark .path__for { color: var(--color-accent); }
.path--dark h3, .path--dark .check-list strong { color: #fff; }
.path--dark p, .path--dark .check-list span { color: var(--color-on-dark-muted); }
.path--dark .check-list .icon { color: var(--color-accent); }

/* Philosophy / meaning block */
.meaning { display: grid; gap: 0; border-top: 1px solid var(--color-border-strong); }
.meaning__item { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--color-border); }
.meaning__syllable { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--color-primary); }
.meaning__item h3 { margin-bottom: 4px; }
.meaning__item p { color: var(--color-muted); font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .meaning { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--color-border); }
  .meaning__item { grid-template-columns: 1fr; padding: 32px 28px 36px; border-bottom: 0; border-left: 1px solid var(--color-border); }
  .meaning__item:first-child { padding-left: 0; border-left: 0; }
  .meaning__syllable { font-size: 2.75rem; margin-bottom: 14px; }
}

.statement { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--color-navy); max-width: 20ch; }

/* Vertical cards */
.vertical-card { display: flex; flex-direction: column; min-height: 100%; }
.vertical-card h3 { font-size: 1.3125rem; }

/* ---------- 9. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--color-navy); color: #fff; padding-block: clamp(72px, 9vw, 120px); }
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gradient-brand);
}
.cta-band::after {
  content: ""; position: absolute; right: -140px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%);
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 70px rgba(6, 183, 254, 0.04);
}
.cta-band__inner { position: relative; z-index: 1; max-width: 760px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 18px; color: var(--color-on-dark-muted); font-size: var(--fs-lg); max-width: 56ch; }
.cta-band .btn-row { margin-top: 36px; }
.cta-band .btn--primary:focus-visible, .cta-band .btn--outline-light:focus-visible { outline-color: var(--color-accent); }

/* ---------- 10. Contact ---------- */
.contact-aside h2 { font-size: 1.375rem; margin-bottom: 12px; }
.contact-aside p { color: var(--color-muted); font-size: var(--fs-sm); }
.contact-aside .contact-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: var(--fs-base); text-decoration: none; }
.contact-aside .contact-email .icon { width: 20px; height: 20px; }
.contact-routes { margin-top: 36px; }

.form-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; margin-bottom: 8px; color: var(--color-navy); font-size: var(--fs-sm); font-weight: 600; }
.field .optional { color: var(--color-subtle); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: #fff;
  font-size: 1rem; line-height: 1.4; color: var(--color-text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536276' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9EABBD; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(5, 85, 226, 0.18); }
.field [aria-invalid="true"] { border-color: #C22A2A; }
.field__error { display: block; min-height: 0; margin-top: 6px; color: #B42323; font-size: var(--fs-xs); font-weight: 500; }
.field__error:empty { display: none; }
.form-honeypot { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-footer p { color: var(--color-subtle); font-size: var(--fs-xs); max-width: 40ch; }
.form-status { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; }
.form-status:empty { display: none; }
.form-status--success { background: #E8F6EE; color: #11633A; border: 1px solid #BFE5CF; }
.form-status--error { background: #FDEEEE; color: #9B1C1C; border: 1px solid #F3C6C6; }

/* ---------- 11. Legal / prose pages ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.375rem; margin: 44px 0 12px; letter-spacing: -0.015em; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--color-muted); }
.legal ul { padding-left: 1.25rem; margin: 12px 0; display: grid; gap: 6px; }
.legal .legal__meta { margin-bottom: 40px; font-size: var(--fs-sm); color: var(--color-subtle); }

/* ---------- 12. 404 ---------- */
.error-page { min-height: calc(100vh - var(--header-height) - 320px); display: flex; align-items: center; padding-block: clamp(80px, 12vw, 160px); }
.error-code { display: block; font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); background: #fff; }
.site-footer__main { display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 80px) 40px; }
@media (min-width: 768px) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand img { width: auto; height: 40px; }
.footer-brand p { margin-top: 18px; color: var(--color-muted); font-size: var(--fs-sm); max-width: 32ch; }
.footer-col h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin-bottom: 14px; color: var(--color-navy); }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--color-muted); font-size: var(--fs-sm); text-decoration: none; }
.footer-col a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid var(--color-border); padding-block: 22px; background: var(--color-surface); }
.site-footer__bottom p { color: var(--color-subtle); font-size: var(--fs-xs); }

/* ---------- 14. Reveal (only below-the-fold elements; see main.js) ---------- */
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }

/* ---------- 15. Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: clamp(40px, 5vw, 64px); }
.mt-md { margin-top: 24px; }
.text-center { text-align: center; }

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .diagram__line--draw { stroke-dashoffset: 0; }
  .diagram__fade { opacity: 1; }
  .reveal-pending { opacity: 1; transform: none; }
}
.measure { max-width: 56ch; }

/* Grid children may shrink below their content width (prevents mobile overflow) */
.grid > *, .split > *, .paths > *, .hero__grid > * { min-width: 0; }
.contact-email { overflow-wrap: anywhere; }
@media (max-width: 479px) { .btn { white-space: normal; text-align: center; } }
