/* ==========================================================================
   NVSR Advisory: the one stylesheet for the whole site.
   Edit colors, fonts, and spacing in the :root block at the top. Everything
   below uses those variables. Page-specific rules are at the end of the file.
   ========================================================================== */

/* ==========================================================================
   NVSR Advisory design tokens and base styles
   Colors follow the spec palette. Text/background pairs are chosen to meet
   WCAG 2.2 AA contrast (4.5:1 for body text, 3:1 for large text and UI).
   ========================================================================== */

:root {
  /* Color */
  --color-midnight: #0b1220;
  --color-ink: #182338;
  --color-primary: #315cf5;
  --color-primary-strong: #2448d4; /* hover/active, darker for contrast on white */
  --color-teal: #20b8a8;
  --color-teal-ink: #0d6f66; /* teal text on light backgrounds (AA) */
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-text: #182230;
  --color-muted: #5d6b82;
  --color-border: #dce3ee;
  --color-focus: #ffb703;
  --color-danger: #b42318;
  --color-success: #067647;
  --color-on-dark: #f4f7fb;
  --color-on-dark-muted: #b9c4d6;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.3125rem;
  --text-2xl: 1.6rem;
  --text-3xl: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --text-4xl: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);
  --leading-tight: 1.15;
  --leading-body: 1.65;

  /* Space and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08);

  /* Layout */
  --max-width: 1180px;
  --max-width-prose: 68ch;
  --gutter: 1rem;
  --header-height: 4.25rem;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@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;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--color-ink);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 750;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
}
h3 {
  font-size: var(--text-xl);
  font-weight: 650;
}
h4 {
  font-size: var(--text-lg);
  font-weight: 650;
}

p {
  margin: 0 0 var(--space-4);
  max-width: var(--max-width-prose);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  max-width: var(--max-width-prose);
}

li + li {
  margin-top: var(--space-2);
}

a {
  color: var(--color-primary-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-ink);
}

/* Visible focus for every interactive element (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-ink);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-3);
}

.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;
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.5rem;
  }
}

main {
  flex: 1 0 auto;
}

.section {
  padding-block: var(--space-8);
}

.section--tinted {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section--dark {
  background: var(--color-midnight);
  color: var(--color-on-dark);
}
.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}
.section--dark p {
  color: var(--color-on-dark-muted);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-ink);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow {
  color: var(--color-teal);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 60ch;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}
.section-heading p {
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2,
.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--color-primary-strong);
  color: #ffffff;
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--on-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--on-dark:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  color: inherit;
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card h3 {
  margin: 0;
}
.card p {
  margin: 0;
  color: var(--color-muted);
}
.card__more {
  margin-top: auto;
  font-weight: 600;
}

.card--link {
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.card--link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-midnight);
  color: var(--color-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #ffffff;
  font-weight: 750;
  font-size: var(--text-lg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: #ffffff;
}
.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  align-items: center;
  gap: var(--space-5);
}
.nav-list li + li {
  margin: 0;
}
.nav-list a {
  color: var(--color-on-dark);
  text-decoration: none;
  font-weight: 500;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--color-teal);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: #ffffff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: var(--color-midnight);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-4) var(--space-6);
}
.mobile-nav[data-open="true"] {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.mobile-nav li + li {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav a {
  display: block;
  padding: var(--space-4) 0;
  color: var(--color-on-dark);
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: 500;
}
.mobile-nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 650;
}
.mobile-nav .btn {
  width: 100%;
  margin-top: var(--space-4);
}

@media (min-width: 960px) {
  .nav-list {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding-block: var(--space-4) 0;
  font-size: var(--text-sm);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  max-width: none;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--color-muted);
  margin-right: var(--space-2);
}
.breadcrumbs li {
  margin: 0;
}
.breadcrumbs a {
  color: var(--color-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--color-midnight);
  color: var(--color-on-dark);
  padding-block: var(--space-8) var(--space-9);
  overflow: hidden;
}
.hero h1 {
  color: #ffffff;
  max-width: 16ch;
}
.hero p {
  color: var(--color-on-dark-muted);
  font-size: var(--text-lg);
  max-width: 56ch;
}
.hero .eyebrow {
  color: var(--color-teal);
}

.page-hero {
  padding-block: var(--space-7) var(--space-8);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.page-hero p {
  color: var(--color-muted);
  font-size: var(--text-lg);
  max-width: 60ch;
}

/* ---------- Process steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
.steps li {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.steps li + li {
  margin-top: 0;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.steps p {
  color: var(--color-muted);
  margin: 0;
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Checklists and lists with visual weight ---------- */

.check-list {
  list-style: none;
  padding: 0;
  max-width: none;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0 0 var(--space-3);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--color-teal);
}

.two-col {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

/* ---------- Notice / callout ---------- */

.callout {
  border-left: 4px solid var(--color-teal);
  background: var(--color-surface);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: var(--max-width-prose);
}
.callout p:last-child {
  margin-bottom: 0;
}

.disclosure {
  font-size: var(--text-sm);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: var(--space-6);
  max-width: var(--max-width-prose);
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: var(--space-5);
  max-width: 40rem;
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label,
.field legend {
  font-weight: 600;
  color: var(--color-ink);
}
.field__hint {
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid #8794aa;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  min-height: 46px;
  width: 100%;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 0;
  border-color: var(--color-ink);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-color: var(--color-danger);
  border-width: 2px;
}
.field__error {
  color: var(--color-danger);
  font-weight: 600;
  font-size: var(--text-sm);
  display: none;
}
.field[data-invalid="true"] .field__error {
  display: block;
}
.field--check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 0.2rem;
  flex: none;
}
.field--check label {
  font-weight: 400;
}

.error-summary {
  border: 2px solid var(--color-danger);
  background: #fff5f4;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--color-text);
}
.error-summary h2 {
  font-size: var(--text-lg);
  color: var(--color-danger);
  margin-bottom: var(--space-2);
}
.error-summary ul {
  margin: 0;
}

.status-box {
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  max-width: 40rem;
}
.status-box--success {
  border-color: var(--color-success);
  border-left-width: 6px;
}
.status-box--error {
  border-color: var(--color-danger);
  border-left-width: 6px;
}
.status-box--notice {
  border-color: var(--color-muted);
  border-left-width: 6px;
}
.status-box strong {
  display: block;
  margin-bottom: var(--space-1);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Article ---------- */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e8edfb;
  color: #1d3fbf;
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
}
.badge--draft {
  background: #fff1c2;
  color: #6b4b00;
  border: 1px solid #e6c15c;
}

.prose {
  max-width: var(--max-width-prose);
}
.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-7);
}
.prose h3 {
  margin-top: var(--space-6);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin-bottom: var(--space-5);
}
.prose th,
.prose td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.prose th {
  color: var(--color-ink);
  background: var(--color-surface);
}
.prose blockquote {
  margin: var(--space-5) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-teal);
  color: var(--color-muted);
}
.prose code {
  font-size: 0.92em;
  background: #e9eef7;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.article-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1000px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.aside-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.aside-box h2 {
  font-size: var(--text-lg);
}
.aside-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-box li {
  margin: 0 0 var(--space-3);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-midnight);
  color: var(--color-on-dark-muted);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}
.footer-brand {
  color: #ffffff;
  font-size: var(--text-lg);
}
.site-footer h2 {
  font-size: var(--text-sm);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.site-footer li {
  margin: 0 0 var(--space-2);
}
.site-footer a {
  color: var(--color-on-dark);
  text-decoration: none;
}
.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}
.footer-base {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}
.footer-base p {
  margin: 0;
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: var(--space-9);
}

/* ---------- Table of contents ---------- */

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.toc li {
  margin: 0 0 var(--space-2);
}
.toc a {
  color: var(--color-ink);
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

.note-muted {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Page-specific rules
   ========================================================================== */

/* Call-to-action band */
.cta-section__inner {
  max-width: 44rem;
}
.cta-section__inner h2 {
  color: #ffffff;
}

/* Interior page hero */
.page-hero__body {
  margin-top: var(--space-5);
  max-width: 48rem;
}

/* Home page hero */
.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero__figure {
  margin: 0;
}
.hero__figure figcaption {
  margin-top: var(--space-3);
  color: var(--color-on-dark-muted);
}
.hero .btn--primary {
  background: var(--color-primary);
}

/* FAQ (native details/summary) */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  max-width: 48rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--color-ink);
}
.faq details p {
  margin-top: var(--space-3);
  color: var(--color-muted);
}

/* Workflow page: larger sub-section heading */
.h3-style {
  font-size: var(--text-2xl);
}

/* Contact page and article sidebar */
.aside-stack {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.aside-box p {
  color: var(--color-muted);
}
.article-grid .aside-box p {
  margin-bottom: var(--space-3);
}
.plain-list {
  padding-left: 1.25rem;
}

/* Article layout refinements */
@media (min-width: 1000px) {
  .article-grid {
    align-items: start;
  }
}
.article-grid .disclosure {
  margin-top: var(--space-7);
}

/* Insights index groups */
.insight-group {
  margin-bottom: var(--space-8);
}
.insight-group h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

/* Legal and statement pages */
.prose-wrap {
  max-width: var(--max-width-prose);
}
.prose-wrap h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-7);
}

/* Article "About this article" note */
.note-box {
  margin-top: var(--space-8, 3rem);
  padding: var(--space-5) var(--space-6, 1.5rem);
  border: 1px solid var(--color-border, #dbe2ef);
  border-left: 4px solid #315cf5;
  border-radius: 12px;
  background: #f5f7fc;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.note-box h2 {
  font-size: var(--text-base, 1rem);
  margin: 0 0 var(--space-2);
  color: var(--color-text, #101828);
}
.note-box p {
  margin: 0 0 var(--space-3);
}
.note-box p:last-child {
  margin-bottom: 0;
}

/* Logo images */
.brand__logo {
  display: block;
  height: 52px;
  width: auto;
}
.footer-logo {
  display: block;
  height: 96px;
  width: auto;
  max-width: 100%;
}

/* Insights index: compact vertical list */
.insight-list {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .insight-list .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--space-6, 1.5rem);
    align-items: center;
  }
  .insight-list .card > * {
    grid-column: 1;
  }
  .insight-list .card .card__more {
    grid-column: 2;
    grid-row: 1 / span 3;
    white-space: nowrap;
  }
  .insight-list .card p:last-of-type {
    margin-bottom: 0;
  }
}
.insight-list .card {
  padding: var(--space-5) var(--space-6, 1.5rem);
}
.insight-list .card h3 {
  margin: var(--space-2) 0 var(--space-2);
}
.insight-list .card p {
  margin: 0 0 var(--space-3);
}
.insight-list .article-meta {
  margin-bottom: 0;
}

/* ==========================================================================
   Modern skin: fonts, gradients, glass surfaces, motion.
   Self-hosted fonts (no third-party requests).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --grad-brand: linear-gradient(120deg, #6f8cff 0%, #3d6bff 38%, #19c3a4 100%);
  --grad-button: linear-gradient(135deg, #3a66ff 0%, #2448d4 100%);
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 4px 14px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 18px 44px rgba(26, 52, 140, 0.14);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}
h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
}
h3 {
  font-weight: 750;
  letter-spacing: -0.015em;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Header: translucent glass */
.site-header {
  background: rgba(11, 18, 32, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.nav-list a {
  transition: color 0.15s ease;
}

/* Buttons */
.btn {
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.btn--primary,
.hero .btn--primary {
  background: var(--grad-button);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 22px rgba(49, 92, 245, 0.35);
}
.btn--primary:hover,
.hero .btn--primary:hover {
  background: var(--grad-button);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 28px rgba(49, 92, 245, 0.45);
}
.btn--on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Home hero: aurora glow, grid texture, glass figure */
.hero {
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(49, 92, 245, 0.42), transparent 70%),
    radial-gradient(45% 45% at 5% 100%, rgba(25, 195, 164, 0.24), transparent 70%),
    var(--color-midnight);
  padding-block: var(--space-8) var(--space-9);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);
  line-height: 1.04;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #7fe3cf;
  letter-spacing: 0.08em;
}
.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4b4;
  box-shadow: 0 0 0 4px rgba(45, 212, 180, 0.2);
}
.hero__figure svg {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(20, 40, 120, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__figure svg {
    animation: nvsr-float 7s ease-in-out infinite;
  }
}
@keyframes nvsr-float {
  50% {
    transform: translateY(-8px);
  }
}

/* Interior page hero */
.page-hero {
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(49, 92, 245, 0.1), transparent 70%),
    radial-gradient(40% 100% at 0% 100%, rgba(25, 195, 164, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  padding-block: var(--space-8) var(--space-7);
}
.page-hero__body {
  margin-top: 0;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.5rem);
  line-height: 1.06;
}
.back-link {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
}
.back-link a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
}
.back-link a:hover {
  color: var(--color-primary);
}

/* Sections */
.section--tinted {
  background: linear-gradient(180deg, #ffffff 0%, #eef2fb 100%);
  border-block: 1px solid #e6ecf6;
}
.section--dark {
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(49, 92, 245, 0.28), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(25, 195, 164, 0.16), transparent 70%),
    var(--color-midnight);
}
.section-heading h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
}

/* Cards */
.card {
  border-color: #e3e9f4;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card--link,
.card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}
.card--link:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 92, 245, 0.45);
  box-shadow: var(--shadow-md);
}
section[aria-labelledby="services-heading"] .grid {
  counter-reset: svc;
}
section[aria-labelledby="services-heading"] .card::before {
  counter-increment: svc;
  content: "0" counter(svc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 2.6rem;
  height: 2.6rem;
  margin-bottom: var(--space-2);
  border-radius: 12px;
  background: var(--grad-button);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(49, 92, 245, 0.28);
}
.card__more::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.2s ease;
}
.card--link:hover .card__more::after {
  transform: translateX(4px);
}
.insight-list .card__more::after {
  content: " \2192";
}

/* Steps on dark: glass tiles */
.section--dark .steps li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.section--dark .steps__num {
  background: var(--grad-brand);
  color: #07101f;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
}
.section--dark .steps h3 {
  color: #fff;
}
.section--dark .steps p {
  color: var(--color-on-dark-muted);
}

/* Callouts */
.callout {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Footer: gradient hairline */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0.8;
}

/* Scroll reveal (only when JS has opted in; honours reduced motion) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.section--dark .section-heading p,
.section--dark .lead {
  color: var(--color-on-dark-muted);
}

@media (max-width: 599px) {
  .hero .eyebrow {
    border-radius: 14px;
  }
}

/* ==========================================================================
   Compact vertical rhythm (less empty space between blocks)
   ========================================================================== */
.section {
  padding-block: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
}
.page-hero {
  padding-block: 2.25rem 2rem;
}
.page-hero + .section {
  padding-top: 2rem;
}
.page-hero h1 {
  margin-bottom: var(--space-3);
}
.page-hero p {
  margin-bottom: 0;
}
.hero {
  padding-block: 3rem 3.5rem;
}
.hero__grid {
  gap: var(--space-6);
}
.section-heading {
  margin-bottom: var(--space-5);
}
.section-heading h2 {
  margin-bottom: var(--space-2);
}
.insight-group + .insight-group {
  margin-top: var(--space-5);
}
.back-link {
  margin-bottom: var(--space-3);
}
.site-footer {
  padding-top: var(--space-7);
}

/* ==========================================================================
   One dark-navy treatment on every page, plus violet in the palette
   ========================================================================== */
:root {
  --color-violet: #7c5cff;
  --color-violet-soft: #a78bfa;
  --color-bg: #f5f6fc;
  --grad-brand: linear-gradient(110deg, #6f9bff 0%, #9a7bff 48%, #25d0b0 100%);
  --grad-button: linear-gradient(135deg, #3a66ff 0%, #6a4dff 100%);
  --shadow-md: 0 18px 44px rgba(76, 54, 190, 0.16);
  --aurora:
    radial-gradient(60% 60% at 88% 0%, rgba(58, 102, 255, 0.42), transparent 70%),
    radial-gradient(48% 55% at 45% 110%, rgba(124, 92, 255, 0.34), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(25, 195, 164, 0.2), transparent 70%);
}

.hero,
.page-hero {
  background: var(--aurora), var(--color-midnight);
}
.section--dark {
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(58, 102, 255, 0.3), transparent 70%),
    radial-gradient(45% 60% at 30% 110%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(25, 195, 164, 0.14), transparent 70%),
    var(--color-midnight);
}

/* Interior page hero, now dark like the home hero */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  color: var(--color-on-dark);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 90% at 60% 30%, #000 25%, transparent 100%);
  mask-image: radial-gradient(75% 90% at 60% 30%, #000 25%, transparent 100%);
}
.page-hero h1 {
  color: #ffffff;
}
.page-hero p {
  color: var(--color-on-dark-muted);
}
.page-hero .eyebrow {
  color: #7fe3cf;
}
.page-hero .back-link a {
  color: var(--color-on-dark-muted);
}
.page-hero .back-link a:hover {
  color: #ffffff;
}
.page-hero a:not(.btn) {
  color: #b9c9ff;
}

/* Hero accents shift toward violet */
.hero__figure svg {
  box-shadow:
    0 30px 80px rgba(70, 48, 190, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.btn--primary,
.hero .btn--primary {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 22px rgba(96, 74, 245, 0.38);
}
.btn--primary:hover,
.hero .btn--primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 28px rgba(96, 74, 245, 0.5);
}

/* Light-section surfaces pick up a faint violet tint */
.section--tinted {
  background: linear-gradient(180deg, #ffffff 0%, #f0f0fd 100%);
  border-block-color: #e7e8f7;
}
.card {
  border-color: #e5e6f6;
}
.card--link:hover {
  border-color: rgba(124, 92, 255, 0.5);
}
section[aria-labelledby="services-heading"] .card::before {
  box-shadow: 0 8px 18px rgba(106, 77, 255, 0.3);
}
.section--dark .steps__num {
  color: #0a0f24;
}
.callout {
  border-left-color: var(--color-violet);
}
.site-footer {
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    var(--color-midnight);
}

.page-hero {
  padding-block: 2.75rem 2.5rem;
}
.page-hero .eyebrow {
  margin-bottom: var(--space-2);
}
.page-hero h1 {
  margin-bottom: var(--space-4);
}

/* ---------- Site search ---------- */
.search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 12px;
  color: var(--color-on-dark);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.search-link:hover,
.search-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
@media (min-width: 960px) {
  .search-link {
    margin-left: 0;
  }
}
.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 40rem;
}
.search-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--color-text, #0b1220);
  background: #ffffff;
  border: 1px solid #c9d1e6;
  border-radius: 12px;
}
.search-form__input:focus-visible {
  outline: 3px solid #3a66ff;
  outline-offset: 2px;
}
.search-status {
  margin: 1rem 0 0.5rem;
  color: var(--color-text-muted, #4a5470);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
}
.search-result {
  padding: 1rem 0;
  border-top: 1px solid #dde3f0;
}
.search-result__meta {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5470;
}
.search-result__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.search-result__snippet {
  margin: 0;
  color: #4a5470;
}
.search-result mark {
  background: rgba(124, 92, 255, 0.18);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

/* ==========================================================
   Compact inner-page header band: content starts higher.
   (Home page hero is separate and unchanged.)
   ========================================================== */
.page-hero {
  padding-block: 1.1rem 1.35rem;
}
.page-hero .container {
  display: grid;
  gap: 0.35rem;
}
.page-hero .back-link {
  margin: 0;
  font-size: 0.9rem;
}
.page-hero__body {
  max-width: 56rem;
  margin: 0;
}
.page-hero .eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-hero__body > p:not(.eyebrow) {
  margin: 0.5rem 0 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.5;
}
.page-hero + .section {
  padding-top: 1.75rem;
}

/* ==========================================================================
   Clarity Light: light fintech theme (final layer, overrides the dark theme)
   ========================================================================== */
:root {
  --color-bg: #f5f7fd;
  --color-text: #0b1220;
  --color-muted: #3d4866;
  --color-border: #dbe1f3;
  --cl-line: #dbe1f3;
  --cl-shadow: 0 6px 24px rgba(30, 50, 120, 0.07);
  --cl-mesh:
    radial-gradient(520px 380px at 15% 8%, rgba(124, 92, 255, 0.2), transparent 70%),
    radial-gradient(560px 400px at 85% 4%, rgba(58, 102, 255, 0.22), transparent 70%),
    radial-gradient(520px 360px at 55% 40%, rgba(37, 208, 176, 0.14), transparent 70%);
  --grad-brand: linear-gradient(100deg, #315cf5 0%, #7c5cff 55%, #19b394 110%);
  --grad-button: linear-gradient(135deg, #315cf5 0%, #5a46f0 100%);
}
body {
  background: var(--color-bg);
  color: var(--color-text);
}
h1, h2, h3 { color: #0b1220; }

/* Header: light glass */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  color: #0b1220;
  border-bottom: 1px solid var(--cl-line);
}
.brand, .brand:hover { color: #0b1220; }
.nav-list a { color: #2b3552; }
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: #315cf5; border-bottom-color: #19b394; }
.search-link { color: #2b3552; }
.search-link:hover,
.search-link:focus-visible { color: #315cf5; background: rgba(49, 92, 245, 0.08); }
.nav-toggle { color: #0b1220; border-color: #c4cde6; background: #fff; }
.mobile-nav { background: #ffffff; border-top: 1px solid var(--cl-line); }
.mobile-nav li + li { border-top-color: var(--cl-line); }
.mobile-nav a { color: #2b3552; }
.mobile-nav a[aria-current="page"] { color: #315cf5; }

/* Buttons */
.btn--primary,
.hero .btn--primary {
  background: var(--grad-button);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(49, 92, 245, 0.32);
}
.btn--primary:hover,
.hero .btn--primary:hover { box-shadow: 0 12px 28px rgba(49, 92, 245, 0.42); }
.btn--on-dark {
  background: #ffffff;
  color: #0b1220;
  border-color: #d3daee;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn--on-dark:hover { background: #f0f3fb; border-color: #aab6dc; color: #0b1220; }

/* Home hero: centered, mesh background, sample workflow board */
.hero {
  background: var(--cl-mesh), var(--color-bg);
  color: var(--color-text);
  padding-block: 2.75rem 3rem;
}
.hero::before { display: none; }
.hero .hero__grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 2.75rem;
}
.hero h1 { color: #0b1220; max-width: 20ch; margin-inline: auto; }
.hero p { color: #3d4866; margin-inline: auto; }
.hero .btn-row { justify-content: center; }
.hero .eyebrow {
  background: #ffffff;
  border-color: var(--cl-line);
  color: #2b3552;
  box-shadow: 0 2px 10px rgba(30, 50, 120, 0.06);
}
.hero .eyebrow::before { background: #19b394; box-shadow: none; }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }

.kb {
  width: 100%;
  max-width: 1040px;
  margin: 0;
  text-align: left;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--cl-line);
  box-shadow: 0 40px 90px rgba(30, 50, 120, 0.16);
  overflow: hidden;
}
.kb__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #f0f3fb; border-bottom: 1px solid var(--cl-line); }
.kb__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cfd6ea; }
.kb__bar em { margin-left: 14px; font-style: normal; font-size: 12.5px; color: #4a5470; background: #fff; border: 1px solid var(--cl-line); border-radius: 8px; padding: 4px 14px; }
.kb__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.kb__side { display: none; }
.kb__main { padding: 20px 18px; }
.kb__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kb__head strong { font-family: var(--font-display); font-size: 1.2rem; color: #0b1220; }
.kb__head small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #4a5470; }
.kb__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kb__cols h3 { margin: 0 0 10px; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #4a5470; }
.kb__c { margin: 0 0 10px; padding: 12px; background: #fff; border: 1px solid #e1e7f6; border-radius: 12px; box-shadow: 0 2px 8px rgba(30, 50, 120, 0.05); font-size: 13.5px; font-weight: 500; color: #0b1220; max-width: none; }
.kb__c small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #4a5470; }
.kb__c--1 { border-left: 3px solid #315cf5; }
.kb__c--2 { border-left: 3px solid #7c5cff; }
.kb__c--3 { border-left: 3px solid #e0a02c; }
.kb__c--4 { border-left: 3px solid #19b394; }
.kb__foot { margin: 6px 0 0; font-size: 12px; color: #4a5470; max-width: none; }
@media (min-width: 860px) {
  .kb__body { grid-template-columns: 200px minmax(0, 1fr); min-height: 340px; }
  .kb__side { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; background: #fafbff; border-right: 1px solid #e6ebf7; }
  .kb__side span, .kb__side b { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: #3d4866; font-weight: 500; }
  .kb__side b { background: #e8eeff; color: #1f3fb0; font-weight: 600; }
  .kb__main { padding: 24px 28px; }
}

/* Inner-page header band: light */
.page-hero {
  background: var(--cl-mesh), var(--color-bg);
  color: var(--color-text);
  border-bottom: 1px solid var(--cl-line);
}
.page-hero::before { display: none; }
.page-hero h1 { color: #0b1220; }
.page-hero p { color: #3d4866; }
.page-hero .eyebrow { color: #2448d4; }
.page-hero .back-link a { color: #3d4866; }
.page-hero .back-link a:hover { color: #315cf5; }
.page-hero a:not(.btn) { color: #2448d4; }

/* Sections and cards */
.eyebrow { color: #2448d4; }
.section--tinted { background: transparent; border-block: 0; }
.card {
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: 24px;
  box-shadow: var(--cl-shadow);
}
.card--link:hover { border-color: rgba(49, 92, 245, 0.5); box-shadow: 0 18px 44px rgba(49, 92, 245, 0.16); }
.callout { border-radius: 20px; background: #ffffff; border-color: var(--cl-line); }

/* First service card: dark feature tile */
main > section[aria-labelledby="services-heading"] .grid > .card:first-child {
  background: linear-gradient(160deg, #0f1b4a, #1d2a7a 70%, #1a5a85);
  border-color: #243086;
}
main > section[aria-labelledby="services-heading"] .grid > .card:first-child h3,
main > section[aria-labelledby="services-heading"] .grid > .card:first-child .card-link,
main > section[aria-labelledby="services-heading"] .grid > .card:first-child .card__more { color: #ffffff; }
main > section[aria-labelledby="services-heading"] .grid > .card:first-child p { color: #e6ecff; }

/* "Our approach" (was dark): light step tiles */
.section--dark:not(.cta-section) { background: transparent; color: var(--color-text); }
.section--dark:not(.cta-section) h2,
.section--dark:not(.cta-section) h3 { color: #0b1220; }
.section--dark:not(.cta-section) p,
.section--dark:not(.cta-section) .section-heading p,
.section--dark:not(.cta-section) .lead { color: #3d4866; }
.section--dark:not(.cta-section) .eyebrow { color: #2448d4; }
.section--dark .steps li { background: #ffffff; border: 1px solid var(--cl-line); box-shadow: var(--cl-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.section--dark .steps h3 { color: #0b1220; }
.section--dark .steps p { color: #3d4866; }
.section--dark .steps__num { background: linear-gradient(135deg, #315cf5, #7c5cff); color: #ffffff; }

/* Closing call-to-action: dark rounded feature band */
.cta-section { background: transparent; }
.cta-section__inner {
  max-width: none;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(124, 92, 255, 0.5), transparent 70%),
    #0b1220;
}
.cta-section__inner h2 { color: #ffffff; max-width: 22ch; }
.cta-section__inner p { color: #c0cae8; max-width: 56ch; }
.cta-section__inner .btn--primary { background: #ffffff; color: #0b1220; box-shadow: none; }
.cta-section__inner .btn--on-dark { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }

/* Footer: light */
.site-footer { background: #ffffff; color: #3d4866; border-top: 1px solid var(--cl-line); }
.site-footer::before { display: block; }
.site-footer h2 { color: #0b1220; }
.site-footer a { color: #2b3552; }
.site-footer a:hover { color: #315cf5; }
.footer-base { border-top-color: var(--cl-line); }
