/* ==========================================================================
   Optimosys Ltd — shared stylesheet
   One file for every page. No framework, no build step.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --white: #FFFFFF;
  --canvas: #F8FAFC;
  --ice: #EFF6FF;
  --ice-deep: #DCEEFC;
  --line: #E5E7EB;
  --line-blue: #D3EAFB;

  /* Charcoal (text and dark bands) */
  --charcoal: #1F2937;        /* headlines, footer band — 14.7:1 on white */
  --text: #374151;            /* body text — 10.3:1 on white */
  --text-muted: #4B5563;      /* secondary text — 7.6:1 on white, 6.9:1 on ice */
  --on-charcoal: #D1D5DB;     /* body text on charcoal — 10:1 */

  /* Brand blue — sampled from logo-color.png */
  --brand: #24A0EF;           /* logo and decorative accents only (white on it is 2.9:1) */
  --blue: #0A6FB8;            /* buttons — white text on it 5.3:1 */
  --blue-strong: #075E9F;     /* links and hover — 6.8:1 on white, 6.2:1 on ice */
  --blue-deep: #0B4F86;       /* CTA band */
  --blue-tint: #BAE0FB;

  /* Emerald — the "optimised / positive outcome" signal */
  --emerald: #047857;         /* 5.5:1 on white, 5.2:1 on mint */
  --emerald-deep: #065F46;    /* text on badge, 6.8:1 */
  --mint: #ECFDF5;
  --mint-deep: #D1FAE5;
  --emerald-bright: #10B981;  /* decorative fills only, never text */

  /* Neutral "today" state in the process map */
  --grey-chip: #F3F4F6;

  /* Type */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.7vw, 2.625rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  /* Space & layout */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 5.5rem;
  --shadow-card: 0 1px 2px rgba(31, 41, 55, 0.04), 0 8px 24px -12px rgba(31, 41, 55, 0.10);
  --shadow-float: 0 2px 4px rgba(10, 111, 184, 0.05), 0 32px 64px -28px rgba(10, 111, 184, 0.38);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: var(--step-3); letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 var(--space-2); max-width: 66ch; }
ul, ol { margin: 0; padding: 0; }

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-blue :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(7, 94, 159, 0.2), 0 6px 16px -6px rgba(10, 111, 184, 0.55);
}
.btn-primary:hover { background: var(--blue-strong); }

.btn-secondary { background: var(--white); color: var(--charcoal); border-color: #CBD5E1; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-strong); }

.btn-white { background: var(--white); color: var(--blue-strong); }
.btn-white:hover { background: var(--ice); }

.btn-small { min-height: 2.625rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- 4. Small shared pieces ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.badge-emerald { background: var(--mint-deep); color: var(--emerald-deep); }
.badge-blue { background: var(--ice-deep); color: var(--blue-deep); }

.check-list { list-style: none; margin: var(--space-1) 0 var(--space-4); }
.check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  line-height: 1.5;
  color: var(--charcoal);
}
/* Emerald tick in a mint circle */
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--mint-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23047857' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

/* LOGO: official broken-circle lockup, redrawn as inline SVG.
   The ring uses a non-scaling stroke so it stays crisp at small sizes. */
.logo { display: inline-flex; line-height: 0; border-radius: 6px; }
.logo svg { height: 4.5rem; width: auto; }
.logo-text { font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif; font-weight: 400; }
@media (max-width: 60rem) { .logo svg { height: 3.5rem; } }
.site-footer .logo svg { height: 6.5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 180ms ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.nav-list { display: flex; gap: 0.25rem; list-style: none; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-list a:hover { color: var(--blue-strong); background: var(--ice); }
.nav-list a[aria-current="page"] { color: var(--blue-strong); font-weight: 600; }

/* Mobile navigation — collapses only when JS is available */
@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-2) var(--gutter) var(--space-4);
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--blue);
    box-shadow: 0 18px 36px -14px rgba(31, 41, 55, 0.28);
  }
  .js .site-nav.is-open { display: flex; }

  .header-inner { flex-wrap: wrap; }
  .js .header-inner { flex-wrap: nowrap; }
  .site-nav { flex-wrap: wrap; gap: var(--space-2); }

  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a {
    padding: 0.875rem 0.75rem;
    font-size: 1.0625rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .js .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); background: var(--ice); }
  .js .site-nav .btn { width: 100%; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--space-7); }
.section-tight { padding-block: var(--space-6); }
.section-canvas { background: var(--canvas); border-block: 1px solid var(--line); }
.section-ice { background: var(--ice); }

.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head p { color: var(--text-muted); font-size: 1.1875rem; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--space-6) var(--space-7);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(36, 160, 239, 0.20), transparent 60%),
    radial-gradient(40rem 24rem at 100% 70%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 85%);
  overflow: hidden;
}
.hero-grid { display: grid; gap: var(--space-5); align-items: center; }
.tagline {
  color: var(--blue-strong);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}
.hero h1 { margin-bottom: var(--space-3); max-width: 14ch; }
.hero-lede {
  color: var(--text);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: var(--space-4);
}
.hero-assurance {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: var(--space-3) 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.hero-assurance::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px var(--mint-deep);
  flex: none;
  margin-top: 0.5rem;
}

@media (min-width: 64rem) {
  .hero { padding-block: var(--space-7); }
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-5); }
}

/* ---------- 8. Hero before/after process map ---------- */
.process-map {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.map-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--charcoal); }
.map-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--grey-chip);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.map-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.map-table thead th {
  padding: 0.75rem 1.125rem 0.5rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.map-table thead th.col-after { color: var(--emerald); }
.map-table tbody th,
.map-table td {
  padding: 0.625rem 1.125rem;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}
.map-table tbody th { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
.map-table tbody th .map-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue-strong);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  line-height: 1.35;
  font-size: 0.875rem;
}
.chip svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.05rem; }
.chip-before { background: var(--grey-chip); color: var(--text-muted); }
.chip-after { background: var(--mint); color: var(--emerald-deep); font-weight: 600; box-shadow: inset 0 0 0 1px var(--mint-deep); }

.map-foot {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--mint);
  border-top: 1px solid var(--mint-deep);
  color: var(--emerald-deep);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}
.map-foot svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.1rem; }

/* Phones: each row becomes a small stacked block */
@media (max-width: 36rem) {
  .map-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .map-table, .map-table tbody, .map-table tr, .map-table th, .map-table td { display: block; width: 100%; }
  .map-table tr { padding: 0.75rem var(--space-2); border-top: 1px solid var(--line); }
  .map-table tbody th, .map-table td { border: 0; padding: 0.2rem 0; }
  .map-table tbody th { margin-bottom: 0.25rem; }
  .map-table td.col-after { padding-top: 0.375rem; }
  .map-head, .map-foot { padding-inline: var(--space-2); }
}

/* The page's one orchestrated moment: optimised steps switch on in sequence */
@media (prefers-reduced-motion: no-preference) {
  .chip-after { animation: optimise 520ms ease-out both; }
  .map-table tbody tr:nth-child(1) .chip-after { animation-delay: 350ms; }
  .map-table tbody tr:nth-child(2) .chip-after { animation-delay: 600ms; }
  .map-table tbody tr:nth-child(3) .chip-after { animation-delay: 850ms; }
  .map-table tbody tr:nth-child(4) .chip-after { animation-delay: 1100ms; }
  .map-table tbody tr:nth-child(5) .chip-after { animation-delay: 1350ms; }
  @keyframes optimise {
    from { background: var(--grey-chip); color: var(--text-muted); box-shadow: inset 0 0 0 1px transparent; opacity: 0.4; }
    to { opacity: 1; }
  }
}

/* ---------- 9. Capability strip ---------- */
.cap-strip { background: var(--white); border-block: 1px solid var(--line); }
.cap-list { list-style: none; display: grid; grid-template-columns: 1fr; }
.cap-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 var(--space-2);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.cap-item:last-child { border-bottom: 0; }
.cap-icon {
  grid-row: span 2;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ice);
  color: var(--blue-strong);
}
.cap-icon svg { width: 1.375rem; height: 1.375rem; }
.cap-item strong { display: block; font-family: var(--font-display); font-weight: 700; color: var(--charcoal); line-height: 1.35; }
.cap-item span:last-child { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.45; }

@media (min-width: 40rem) {
  .cap-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-4); }
  .cap-item:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (min-width: 66rem) {
  .cap-list { grid-template-columns: repeat(4, 1fr); column-gap: var(--space-3); }
  .cap-item { border-bottom: 0; padding: var(--space-4) 0; }
}

/* ---------- 10. Service pillars ---------- */
.pillars { display: grid; gap: var(--space-3); }
@media (min-width: 54rem) { .pillars { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #8ACDF6);
}
.pillar.is-optimise::before { background: linear-gradient(90deg, var(--emerald-bright), var(--brand)); }
.pillar .badge { align-self: flex-start; margin-bottom: var(--space-3); }
.pillar h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.pillar > p { color: var(--text-muted); }
.pillar .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 11. Three-step method ---------- */
.steps { list-style: none; display: grid; gap: var(--space-4); counter-reset: step; }
.step { position: relative; counter-increment: step; }
.step-marker {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.step-marker::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step-marker::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-tint) 0 8px, transparent 8px 14px);
}
.step:last-child .step-marker::before { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.step:last-child .step-marker::after { display: none; }
.step h3 { font-size: 1.3125rem; }
.step p { color: var(--text-muted); font-size: 1rem; }

@media (min-width: 54rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 53.99rem) { .step-marker::after { display: none; } }

/* ---------- 12. Contrast table ---------- */
.contrast-grid { display: grid; gap: var(--space-4); }
.contrast-grid .section-head { margin-bottom: 0; }
@media (min-width: 64rem) {
  .contrast-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-6); align-items: start; }
  .contrast-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.contrast-table { width: 100%; border-collapse: collapse; font-size: 0.9875rem; line-height: 1.5; }
.contrast-table th,
.contrast-table td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contrast-table tr:last-child th,
.contrast-table tr:last-child td { border-bottom: 0; }
.contrast-table thead th { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; color: var(--charcoal); background: var(--canvas); }
.contrast-table thead th.col-us { color: var(--emerald-deep); background: var(--mint-deep); }
.contrast-table tbody th { font-weight: 600; color: var(--charcoal); width: 22%; }
.contrast-table td.col-them { color: var(--text-muted); }
.contrast-table td.col-us {
  position: relative;
  background: var(--mint);
  color: var(--charcoal);
  font-weight: 500;
  padding-left: 2.75rem;
}
.contrast-table td.col-us::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 1.15rem;
  width: 1.125rem;
  height: 1.125rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23047857'/%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 40rem) {
  .contrast-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .contrast-table, .contrast-table tbody, .contrast-table tr, .contrast-table th, .contrast-table td { display: block; width: 100%; }
  .contrast-table tr { border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
  .contrast-table tr:last-child { border-bottom: 0; }
  .contrast-table tbody th { width: 100%; padding-bottom: 0.25rem; border: 0; font-family: var(--font-display); }
  .contrast-table td { border: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .contrast-table td.col-them::before { content: attr(data-label) ": "; font-weight: 600; }
  .contrast-table td.col-us { margin: 0.25rem 1.25rem 0; width: auto; border-radius: var(--radius-sm); }
}

/* ---------- 13. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(36rem 18rem at 100% 0%, rgba(36, 160, 239, 0.45), transparent 60%),
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-strong) 100%);
  color: var(--white);
}
.cta-banner { display: grid; gap: var(--space-4); align-items: center; }
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-2); }
.cta-banner p { color: var(--ice-deep); margin: 0; font-size: 1.125rem; }   /* 5.5:1 on the lightest part of the band */
.cta-banner a:not(.btn) { color: var(--white); font-weight: 600; }
@media (min-width: 54rem) { .cta-banner { grid-template-columns: 1fr auto; gap: var(--space-6); } }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--on-charcoal);
  padding-block: var(--space-5) var(--space-4);
  font-size: 0.9375rem;
}
.footer-top {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 54rem) { .footer-top { grid-template-columns: 1.2fr 1fr auto; align-items: start; } }
.footer-tagline { margin: var(--space-2) 0 0; color: var(--white); font-weight: 600; }
.footer-sub { margin: 0.25rem 0 0; }
.footer-nav ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-nav a,
.footer-social a { color: var(--white); text-decoration: none; }
.footer-nav a:hover,
.footer-social a:hover { text-decoration: underline; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.footer-social svg { width: 1.25rem; height: 1.25rem; }

.legal { padding-top: var(--space-3); font-size: var(--step--1); line-height: 1.6; }
.legal-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  overflow: hidden;
}
/* Separator sits in the gap to the left, so a wrapped line never starts with one */
.legal-list li { position: relative; }
.legal-list li::before {
  content: "";
  position: absolute;
  left: -0.625rem;
  top: 0.3em;
  height: 1em;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.legal a { color: var(--white); }

/* ==========================================================================
   INNER PAGES — audit, interim, about, privacy
   ========================================================================== */

/* ---------- 15. Page hero ---------- */
.page-hero {
  padding-block: var(--space-6);
  background:
    radial-gradient(56rem 26rem at 90% -20%, rgba(36, 160, 239, 0.18), transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid { display: grid; gap: var(--space-5); align-items: center; }
.page-hero h1 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem); max-width: 18ch; }
.page-hero .hero-lede { margin-bottom: var(--space-4); }
.page-hero .hero-lede:last-child { margin-bottom: 0; }
@media (min-width: 64rem) {
  .page-hero { padding-block: var(--space-7) var(--space-6); }
  .page-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-6); }
}

.fact-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.fact-card div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-2);
  padding: 0.9rem var(--space-3);
  border-bottom: 1px solid var(--line);
}
.fact-card div:last-child { border-bottom: 0; }
.fact-card dt { color: var(--text-muted); font-size: 0.9375rem; }
.fact-card dd { margin: 0; font-weight: 600; color: var(--charcoal); line-height: 1.45; }

/* ---------- 16. Problem grid ---------- */
.problem-grid { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .problem-grid { grid-template-columns: 1fr 1fr; } }
.problem-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.problem-grid h3 { font-size: 1.1875rem; margin-bottom: var(--space-1); }
.problem-grid p { color: var(--text-muted); margin: 0; font-size: 1rem; }

/* ---------- 17. Week-by-week timeline ---------- */
.weeks { list-style: none; counter-reset: week; max-width: 58rem; }
.week {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 var(--space-3);
  padding-bottom: var(--space-5);
  counter-increment: week;
}
.week:last-child { padding-bottom: 0; }
.week::before {
  content: counter(week);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}
.week:last-child::before { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.week:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--blue-tint) 0 8px, transparent 8px 14px);
}
.week-label { margin: 0.25rem 0 0.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--blue-strong); }
.week h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.week p { color: var(--text-muted); }
.week .badge { margin-top: 0.25rem; }

/* ---------- 18. Split layout & list variants ---------- */
.split { display: grid; gap: var(--space-5); }
@media (min-width: 64rem) {
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-6); align-items: start; }
}
@media (min-width: 40rem) {
  .check-list.cols-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
}
.check-list.detailed li { padding-top: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.check-list.detailed li::before { top: 0.85rem; }
.check-list li strong { display: block; color: var(--charcoal); font-weight: 600; }
.check-list li span { display: block; color: var(--text-muted); font-size: 0.9375rem; }

.callout {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
}
.callout h3 { font-size: 1.0625rem; margin-bottom: var(--space-1); }
.callout p { margin: 0; font-size: 1rem; color: var(--text-muted); }
.callout.is-emerald { border-left-color: var(--emerald); background: var(--mint); border-color: var(--mint-deep); }

/* ---------- 19. Principles (three-up) ---------- */
.principles { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 54rem) { .principles { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.principle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-card);
}
.principle .cap-icon { margin-bottom: var(--space-3); }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--text-muted); font-size: 1rem; margin: 0; }

/* ---------- 21. After week 4: two options ---------- */
.options { list-style: none; display: grid; gap: var(--space-3); counter-reset: option; }
@media (min-width: 54rem) { .options { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.option {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  counter-increment: option;
}
.option-num {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-2);
}
.option-num::before {
  content: counter(option);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ice-deep);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
}
.option h3 { font-size: var(--step-1); }
.option p { color: var(--text-muted); }
.option .check-list { margin-bottom: 0; }
.option.is-clean { border-color: var(--mint-deep); background: linear-gradient(180deg, var(--mint) 0%, var(--white) 55%); }
.option.is-clean .option-num::before { background: var(--emerald); color: var(--white); }

/* ---------- 22. FAQ ---------- */
.faq { max-width: 52rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue-strong);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--canvas); }
.faq details p { color: var(--text-muted); padding: 0 var(--space-3) var(--space-3); margin: 0; }

/* ---------- 23. Roles (2 x 2) ---------- */
.roles { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 54rem) { .roles { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.role {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-card);
}
.role-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.role-head h3 { margin: 0; font-size: var(--step-1); }
.role > p { color: var(--text-muted); font-size: 1rem; }
.role .check-list { margin-bottom: 0; }
.role .check-list li { font-size: 0.9875rem; padding-top: 0.375rem; padding-bottom: 0.375rem; }
.role .check-list li::before { top: 0.45rem; }

/* ---------- 24. ERP coverage ---------- */
.stack-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
}
.stack-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stack-grid { list-style: none; display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
@media (min-width: 54rem) { .stack-grid { grid-template-columns: 1fr 1fr; } }
.stack-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-card);
}
.stack-card h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.stack-versions { color: var(--blue-strong); font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--space-2); }
.stack-card p { color: var(--text-muted); font-size: 1rem; }
.stack-card .check-list { margin-bottom: 0; }
.stack-card .check-list li { font-size: 0.9875rem; }
.also-used { color: var(--text-muted); font-size: 1rem; margin: 0; }
.also-used strong { color: var(--charcoal); }

/* ---------- 25. Engagement model ---------- */
.engage-list { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .engage-list { grid-template-columns: 1fr 1fr; } }
.engage-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 var(--space-2);
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.engage-list .cap-icon { grid-row: span 2; }
.engage-list h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.engage-list p { color: var(--text-muted); margin: 0; font-size: 1rem; }

/* ---------- 26. Leadership (about) ---------- */
.leader {
  display: grid;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
@media (min-width: 48rem) {
  .leader { grid-template-columns: 12.5rem minmax(0, 1fr); gap: var(--space-4) var(--space-5); align-items: start; }
  .leader-facts { grid-column: 2; }
}
@media (min-width: 72rem) {
  .leader { grid-template-columns: 13.5rem minmax(0, 1.3fr) minmax(0, 0.9fr); }
  .leader-facts { grid-column: auto; }
}
.leader-photo { margin: 0; max-width: 14rem; }
.leader-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  outline: 2px solid var(--brand);   /* thin brand-blue ring, echoing the logo */
  outline-offset: 5px;
  box-shadow: 0 20px 40px -24px rgba(31, 41, 55, 0.35);
}
.leader-id { margin-bottom: var(--space-3); }
.leader-id h3 { margin: 0 0 0.25rem; font-size: var(--step-2); }
.leader-id p { margin: 0; color: var(--blue-strong); font-weight: 600; font-size: 0.9375rem; }
.leader-bio p { color: var(--text); }
.leader-facts { display: grid; gap: var(--space-3); align-content: start; }
.leader-facts h4 { font-size: 1rem; margin-bottom: var(--space-1); }
.leader-facts .check-list { margin: 0; }
.leader-facts .check-list li { font-size: 0.9875rem; padding-top: 0.375rem; padding-bottom: 0.375rem; }
.leader-facts .check-list li::before { top: 0.45rem; }
.stat-row { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: var(--space-3) 0 0; }
.stat-row li { background: var(--ice); border-radius: var(--radius); padding: var(--space-2); }
.stat-row strong { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); white-space: nowrap; font-weight: 800; color: var(--blue-deep); line-height: 1.1; }
.stat-row span { font-size: 0.9375rem; color: var(--text-muted); }

/* ---------- 27. Contact ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-6); align-items: start; }
}
.contact-grid > .section-head,
.split > .section-head { margin-bottom: 0; }
.contact-direct { list-style: none; margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.contact-direct li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 var(--space-2);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.875rem var(--space-2);
}
.contact-direct .cap-icon { grid-row: span 2; }
.contact-direct span:not(.cap-icon) { font-size: 0.875rem; color: var(--text-muted); }
.contact-direct a { font-weight: 600; word-break: break-word; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: var(--space-3);
}
.form-row { display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--charcoal); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid #6B7280;   /* 4.8:1 against white — meets 3:1 for form controls */
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F2937' stroke-width='1.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid { border-color: #B42318; }
.form-note { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 28. Long-form prose (privacy) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: var(--space-3); font-size: 1.125rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--space-2); }
.prose li { margin-bottom: 0.5rem; max-width: 64ch; }
.prose li::marker { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-2) 0 var(--space-3); font-size: 0.9875rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border: 1px solid var(--line); }
.prose thead th { background: var(--ice); font-family: var(--font-display); color: var(--charcoal); }
.prose-table-wrap { overflow-x: auto; }
.updated { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ---------- 29. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}

@media print {
  .site-header, .nav-toggle, .cta-band { display: none; }
}
