/* ==========================================================================
   Inceptive Systems — design system
   Light theme only. Tokens -> reset -> base -> layout -> components -> chrome.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0D2B5C;
  --navy-2: #173A70;          /* slightly lighter navy for borders/hover on dark */
  --blue: #0A6FC2;           /* logo mid blue; white text 5.2:1 */
  --blue-dark: #085A9E;
  --blue-tint: #E7F1FA;       /* very light accent wash (icon chips, alerts) */
  --teal: #1A96A8;           /* logo teal: decorative/large only (3.5:1 on white) */
  --teal-dark: #157A89;      /* teal for small text on light bg (5.0:1 on white) */
  --teal-tint: #E6F4F6;
  --ink: #1A202C;
  --muted: #5A6577;
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --line: #E3E7EE;
  --success: #12733F;
  --success-bg: #E8F5EE;
  --error: #B42318;
  --error-bg: #FDECEA;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(13, 43, 92, 0.04), 0 8px 24px rgba(13, 43, 92, 0.08);
  --focus: 0 0 0 3px rgba(10, 111, 194, 0.45);

  --container: 1120px;
  --gutter: 24px;
  --section-y: 72px;
  --header-h: 72px;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

@media (max-width: 860px) {
  :root {
    --section-y: 48px;
    --header-h: 64px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Base typography ---------- */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }

p, li { text-wrap: pretty; }
p + p { margin-top: var(--space-4); }
strong { font-weight: 600; color: var(--navy); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }

.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.prose { max-width: 46rem; }
.prose h2 { margin: var(--space-7) 0 var(--space-4); font-size: 1.5rem; }
.prose h3 { margin: var(--space-6) 0 var(--space-3); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: var(--space-4) 0; }
.prose li + li { margin-top: var(--space-2); }

.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 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section + .section:not(.section-alt):not(.cta-band) { border-top: 1px solid var(--line); }
.section-alt + .section-alt { padding-top: 0; }

.section-header { max-width: 46rem; margin-bottom: var(--space-7); }
.section-header.text-center { margin-inline: auto; }
.section-header h2 + p, .section-header h2 + .lead { margin-top: var(--space-4); }

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

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:focus-visible { border-radius: var(--radius); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: #C9D1DE; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--bg); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); color: var(--teal-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 96px 88px;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(26, 150, 168, 0.10), transparent 70%),
    radial-gradient(800px 360px at 10% -20%, rgba(10, 111, 194, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 50rem; }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }
.hero .btn-group { margin-top: var(--space-6); }
.hero-note { margin-top: var(--space-5); font-size: 0.875rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding-block: 64px 56px; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding-block: 72px 56px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); max-width: 46rem; }
.page-header .lead { margin-top: var(--space-4); }
.page-header .btn-group { margin-top: var(--space-6); }
@media (max-width: 860px) {
  .page-header { padding-block: 48px 40px; }
}

.breadcrumb { margin-bottom: var(--space-4); font-size: 0.875rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: #A3ACBA; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #D5DBE5; }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--muted); }
.card .link-arrow, .card .card-link { margin-top: auto; padding-top: var(--space-5); }
.section-alt .card { background: var(--bg); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.card-icon svg { width: 24px; height: 24px; }

/* Whole card clickable: put .card-link-stretch on the card's main link */
.card-link-stretch::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link-stretch:focus-visible { box-shadow: none; }
.card:has(.card-link-stretch:focus-visible) { box-shadow: var(--focus); }

/* ---------- Feature list (checkmark bullets) ---------- */
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.feature-list li { position: relative; padding-left: 32px; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6FC2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.feature-list li strong { display: block; margin-bottom: 2px; }
.feature-list li span, .feature-list li p { color: var(--muted); }
.feature-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
@media (max-width: 860px) { .feature-list.two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps (numbered process) ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.step { counter-increment: step; padding-top: var(--space-5); border-top: 2px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: var(--section-y);
  background: var(--navy);
  color: #C9D3E3;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: var(--space-3); max-width: 40rem; color: #C9D3E3; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }
.cta-band .btn-group { flex-shrink: 0; }
@media (max-width: 860px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Contact card ---------- */
.contact-card { height: auto; }
.contact-email { margin: var(--space-3) 0 var(--space-4); font-size: 1.375rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-email a { color: var(--blue); text-decoration: none; }
.contact-email a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ---------- Header / nav ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 1000;
  padding: 10px 16px;
  background: var(--bg);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); box-shadow: var(--focus); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.site-header .brand img { height: 56px; }
@media (max-width: 600px) { .site-header .brand img { height: 48px; } }
.brand:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; align-items: center; gap: var(--space-1); list-style: none; padding: 0; margin: 0; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav-list a:hover { color: var(--blue); background: var(--bg-alt); }
.nav-list a.active, .nav-list a[aria-current="page"] { color: var(--blue); }
.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}
.site-header :focus-visible { box-shadow: var(--focus); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid #C9D1DE;
  border-radius: var(--radius);
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) var(--gutter) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(13, 43, 92, 0.10);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-list a:hover { background: transparent; }
  .nav-list a.active::after { left: -12px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav-cta { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 64px 32px;
  background: var(--navy);
  color: #A9B6CB;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
}
.footer-tagline { margin-top: var(--space-4); max-width: 26rem; }
.footer-brand p + p { margin-top: var(--space-4); }
.footer-heading {
  margin-bottom: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.site-footer a { color: #C9D3E3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-email { font-weight: 500; }
main:has(> .cta-band:last-child) + .site-footer { border-top: 1px solid var(--navy-2); }
.site-footer :focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--navy-2);
  font-size: 0.875rem;
  color: #8D9AB0;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.not-found { padding-block: 120px; text-align: center; }
.not-found .code { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--blue); }
.not-found h1 { margin: var(--space-3) 0 var(--space-4); }
.not-found .lead { margin-inline: auto; }
.not-found .btn-group { justify-content: center; margin-top: var(--space-6); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer { display: none; }
  body { color: #000; }
}

/* ---------- Spacing utilities (CSP forbids style="" attributes) ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-7 { margin-top: var(--space-7) !important; }
.mb-0 { margin-bottom: 0 !important; }
