/* ==========================================================
   Inclusafe Technologies — styles
   WCAG 2.2 AA: every text colour pair below is >= 4.5:1,
   every UI boundary / focus ring >= 3:1.
   Mobile-first: base styles target small screens, media
   queries add columns as space allows.
   ========================================================== */

:root {
  --navy: #023159;        /* 13.24:1 on white */
  --navy-deep: #01223f;
  --navy-soft: #0a3d6b;
  --teal-text: #0E7C78;   /* 5.03:1 on white — text & links on light bg */
  --teal-bright: #00C9C2; /* graphics / text on navy only (6.39:1) */
  --teal-tint: #e3f6f5;
  --ink: #1a2433;         /* 15.6:1 */
  --muted: #4a5566;       /* 7.4:1 */
  --surface: #ffffff;
  --surface-alt: #f2f6f9;
  --line: #d3dce5;        /* decorative dividers only */
  --border: #66768a;      /* 4.6:1 — form control borders */
  --error: #b3261e;       /* 6.5:1 */
  --error-bg: #fdf1f0;
  --success: #146c2e;
  --focus: #b35c00;       /* 4.72:1 on white */
  --focus-dark: #ffd28a;  /* 9.35:1 on navy */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(2, 49, 89, .06), 0 8px 28px rgba(2, 49, 89, .08);
  --max: 74rem;
  --header-h: 4.5rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  /* WCAG 2.4.11 Focus Not Obscured — keep focused items clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.0625rem; } }
main { flex: 1; }
main:focus { outline: none; }

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

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .75rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; max-width: 68ch; }

a { color: var(--teal-text); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); text-decoration-thickness: 0.15em; }

/* WCAG 2.4.7 / 2.4.13 — thick, high-contrast focus indicator */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--focus-dark); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

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

/* Skip link (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1.25rem; background: var(--navy); color: #fff;
  font-weight: 700; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; outline-color: var(--focus-dark); }

/* ==================== Header & navigation ==================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--navy); min-height: 44px; flex: none;
}
.brand img { width: 34px; }
.brand-name { font-weight: 800; font-size: 1.25rem; line-height: 1; display: block; }
.brand-sub {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-text); font-weight: 700; margin-top: .25rem;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; min-width: 44px; padding: .5rem .9rem;
  font: inherit; font-weight: 700; color: var(--navy);
  background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile: menu drops down full width under the header */
.nav-list {
  display: none; list-style: none; margin: 0; padding: .75rem var(--gutter) 1.25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: .15rem;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(2, 49, 89, .12);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-toggle[aria-expanded="true"] + .nav-list { display: flex; }
.nav-list a {
  display: flex; align-items: center; min-height: 48px;
  padding: .5rem .85rem; color: var(--ink); font-weight: 600;
  text-decoration: none; border-radius: var(--radius-sm);
}
.nav-list a:hover { background: var(--surface-alt); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--navy); background: var(--teal-tint); }
.nav-list .nav-cta { margin-top: .5rem; }
.nav-list .nav-cta a { justify-content: center; background: var(--navy); color: #fff; }
.nav-list .nav-cta a:hover { background: var(--navy-deep); color: #fff; }
.nav-list .nav-cta a[aria-current="page"] { background: var(--navy-deep); color: #fff; }

/* Desktop: inline menu (needs ~1376px for 8 links + button) */
@media (min-width: 86rem) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex; position: static; flex-direction: row; align-items: center;
    padding: 0; gap: .15rem; background: none; border: 0; box-shadow: none;
    max-height: none; overflow: visible;
  }
  .nav-list a { min-height: 44px; padding: .5rem .75rem; }
  .nav-list a[aria-current="page"] {
    background: none; text-decoration: underline; text-decoration-thickness: 3px;
    text-decoration-color: var(--teal-bright); text-underline-offset: .45em;
  }
  .nav-list .nav-cta { margin: 0 0 0 .5rem; }
  .nav-list .nav-cta a { padding: .5rem 1.1rem; }
  .nav-list .nav-cta a[aria-current="page"] { text-decoration: none; }
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 20px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-tint); color: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--surface-alt); color: var(--navy-deep); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 30rem) { .actions .btn { width: 100%; } }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-text); margin-bottom: .75rem;
}
.on-dark .eyebrow { color: var(--teal-bright); }

/* ==================== Hero (home) ==================== */
.hero {
  background: var(--navy); color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -9rem; top: -9rem;
  width: 26rem; height: 26rem; border: 3.25rem solid rgba(0, 201, 194, .13);
  border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.hero h1 { color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 2.5vw, 1.2rem); color: #e3edf5; }

.hero-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list svg { flex: none; width: 22px; margin-top: .2rem; }

/* ==================== Sub-page hero ==================== */
.page-hero { background: var(--navy); color: #fff; padding: clamp(2.25rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -6rem; bottom: -10rem;
  width: 20rem; height: 20rem; border: 2.5rem solid rgba(0, 201, 194, .13);
  border-radius: 50%; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #e3edf5; margin: .85rem 0 0; font-size: clamp(1.05rem, 2.5vw, 1.2rem); }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; font-size: .92rem; }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; color: #e3edf5; }
.breadcrumb li + li::before { content: "/"; color: #b9cbdb; }
.breadcrumb a { color: #fff; display: inline-flex; align-items: center; min-height: 24px; }
.breadcrumb [aria-current="page"] { color: #e3edf5; }

/* ==================== Sections & grids ==================== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #e3edf5; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #e3edf5; }
.section-foot { margin-top: 2rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.card ul li { margin-bottom: .35rem; }
.card .card-link { margin-top: auto; padding-top: .5rem; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }
.section-dark .card p { color: #e3edf5; }
.section-dark a:not(.btn) { color: #fff; }
.section-dark a:not(.btn):hover { color: #bff1ee; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--navy);
  display: grid; place-items: center; margin-bottom: 1rem; flex: none;
}
.card-icon svg { width: 26px; }
.tag {
  align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--navy);
  background: var(--teal-tint); border-radius: 999px; padding: .2rem .75rem; margin-bottom: .75rem;
}
.pillar { border-top: 4px solid var(--teal-bright); }

/* Service detail rows */
.service-detail {
  display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.service-detail + .service-detail { margin-top: 1.25rem; }
@media (min-width: 56rem) { .service-detail { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; } }
.service-detail h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.service-detail p { color: var(--muted); }
.service-detail .head { display: flex; gap: 1rem; align-items: flex-start; }
.deliverables { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; }
.deliverables h3 { font-size: 1rem; }
.deliverables ul { margin: 0; padding-left: 1.2rem; }
.deliverables li { margin-bottom: .4rem; }
.ideal { font-size: .95rem; color: var(--muted); margin-top: 1rem; }
.ideal strong { color: var(--ink); }

/* Compliance */
.compliance { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .compliance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compliance-item {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--navy);
  border-radius: var(--radius-sm); padding: 1.25rem 1.4rem;
}
.compliance-item h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.compliance-item p { margin: 0 0 .5rem; color: var(--muted); }
.compliance-item p:last-child { margin-bottom: 0; }
.compliance-item .who { font-size: .92rem; color: var(--ink); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-size: 1.6rem; font-weight: 800; color: var(--teal-text); margin-bottom: .35rem;
}
.steps p { color: var(--muted); }
.steps > li > :last-child { margin-bottom: 0; }
.steps ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 52rem) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: #e3edf5; margin: 0; }
.cta-band .actions { margin: 0; }

/* Two-column page layout (content + aside) */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 62rem) { .split { grid-template-columns: minmax(0, 1fr) 22rem; } .split.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.aside-card { background: var(--surface-alt); border-radius: var(--radius); padding: 1.5rem; }
.aside-card + .aside-card { margin-top: 1.25rem; }
.section-alt .aside-card { background: #fff; border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.15rem; }
@media (min-width: 62rem) { .sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; counter-increment: ms; }
.mini-steps li::before {
  content: counter(ms); width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.mini-steps strong { display: block; color: var(--navy); }
.mini-steps span { color: var(--muted); font-size: .95rem; }

/* ==================== Forms ==================== */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.25rem);
}
.form-card > h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin-bottom: .35rem; }
.form-intro { color: var(--muted); margin-bottom: 1.5rem; }

.form { display: grid; gap: 1.75rem; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.15rem; }
.form-section > legend {
  float: left; width: 100%; padding: 0 0 .65rem; margin-bottom: .25rem;
  font-size: 1.05rem; font-weight: 800; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.form-section > legend + * { clear: both; }

.form-row { display: grid; gap: 1.15rem; align-items: start; }
@media (min-width: 40rem) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* align-content:start keeps every input the same height, even when a neighbour has hint text */
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.field > label, .field > .label { font-weight: 700; color: var(--ink); line-height: 1.35; }
.optional { font-weight: 500; color: var(--muted); font-size: .9rem; }
.req { color: var(--error); font-weight: 700; }
.hint { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.45; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  display: block; width: 100%; height: 52px; padding: 0 1rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23023159' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field textarea { height: auto; min-height: 9.5rem; padding: .85rem 1rem; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #6b7686; }

.field input:not([type="checkbox"]):not([type="radio"]):hover,
.field select:hover, .field textarea:hover { border-color: var(--navy); }

.field input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--navy);
}

/* Radio tiles */
.choice-grid { display: grid; gap: .65rem; }
@media (min-width: 40rem) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: .75rem;
  min-height: 56px; padding: .85rem 1rem;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  cursor: pointer; line-height: 1.4;
}
.choice:hover { border-color: var(--navy); background: var(--surface-alt); }
.choice input { width: 24px; height: 24px; margin: .1rem 0 0; flex: none; accent-color: var(--navy); cursor: pointer; }
.choice strong { display: block; color: var(--ink); font-weight: 700; }
.choice small { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }

.checkbox {
  display: flex; align-items: flex-start; gap: .75rem; min-height: 44px;
  font-weight: 500; cursor: pointer; line-height: 1.5;
}
.checkbox input { width: 24px; height: 24px; margin: .15rem 0 0; flex: none; accent-color: var(--navy); cursor: pointer; }

/* Errors: shown only after the user interacts (:user-invalid) */
.error-msg {
  display: none; align-items: flex-start; gap: .4rem;
  color: var(--error); font-weight: 600; font-size: .92rem; line-height: 1.4;
}
.error-msg::before {
  content: "!"; flex: none; width: 1.15rem; height: 1.15rem; margin-top: .05rem;
  border-radius: 50%; background: var(--error); color: #fff;
  font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.field :is(input, select, textarea):user-invalid { border-color: var(--error); border-width: 2px; background-color: var(--error-bg); }
.field :is(input, select, textarea):user-invalid ~ .error-msg,
.field:has(.checkbox input:user-invalid) .error-msg,
.field:has(.choice input:user-invalid) .error-msg { display: flex; }
.field:has(.choice input:user-invalid) .choice { border-color: var(--error); }
/* After a failed submit attempt (JS adds .was-submitted), show every error */
.was-submitted .field :is(input, select, textarea):invalid { border-color: var(--error); border-width: 2px; background-color: var(--error-bg); }
.was-submitted .field :is(input, select, textarea):invalid ~ .error-msg,
.was-submitted .field:has(.checkbox input:invalid) .error-msg,
.was-submitted .field:has(.choice input:invalid) .error-msg { display: flex; }
.was-submitted .field:has(.choice input:invalid) .choice { border-color: var(--error); }

.form-submit { display: grid; gap: .75rem; padding-top: .25rem; }
@media (min-width: 40rem) { .form-submit { grid-template-columns: auto 1fr; align-items: center; } .form-submit .btn { min-width: 13rem; } }

/* Honeypot spam trap — hidden from everyone, including assistive tech */
.hp { display: none !important; }

.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-points li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-points svg { width: 24px; flex: none; margin-top: .15rem; }
.contact-points strong { display: block; color: var(--navy); }

/* ==================== Tables (Hall of Fame) ==================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; padding: 1rem 1.25rem; font-weight: 800; color: var(--navy); }
th, td { text-align: left; padding: .8rem clamp(.6rem, 2.5vw, 1.25rem); border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-alt); color: var(--navy); font-size: .85rem; }
.table-wrap table { font-size: clamp(.9rem, 2.5vw, 1rem); }
.empty-state { text-align: center; padding: 2.5rem 1.25rem; color: var(--muted); }
.empty-state strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: .35rem; }

.rule-list { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule-list .card ul { margin-bottom: 0; }
.in-scope { border-top: 4px solid var(--success); }
.out-scope { border-top: 4px solid var(--error); }

/* ==================== Prose pages ==================== */
.prose { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.prose h2 { margin-top: 2.25rem; font-size: clamp(1.3rem, 3vw, 1.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { max-width: 68ch; padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }

/* ==================== Footer ==================== */
.site-footer { background: var(--navy-deep); color: #dbe6ef; padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.75rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #bff1ee; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } .footer-grid > :first-child { grid-column: auto; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; color: #fff; font-weight: 800; font-size: 1.2rem; }
.footer-brand img { width: 32px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2); margin-top: 2.25rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .92rem;
}
.footer-bottom p { margin: 0; }

/* ==================== Preferences ==================== */
@media (forced-colors: active) {
  .btn, .nav-toggle, .card, .choice, .form-card,
  .field input, .field select, .field textarea { border: 2px solid CanvasText; }
  :focus-visible, .choice:has(input:focus-visible) { outline: 3px solid Highlight; }
  .error-msg::before { forced-color-adjust: none; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { forced-color-adjust: none; background: ButtonText; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .error-summary { border-color: CanvasText; }
  .hero::after, .page-hero::after { display: none; } /* decorative ring would draw over text */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
@media print {
  .site-header, .skip-link, .hero::after, .page-hero::after, .site-footer, .form-card { display: none; }
  .hero, .page-hero, .section-dark { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}

/* ==================== Added components ==================== */
.h3 { font-size: 1.2rem; }
.small-head { font-size: .95rem; margin-top: .5rem; color: var(--ink); }
@media (min-width: 72rem) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Feature rows on the homepage */
.feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .feature { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.feature-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .feature-list { background: #fff; }
.feature-list li { color: var(--ink); }

/* Pill links (industries / service jump list) */
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.pill-list a:hover { border-color: var(--navy); background: var(--teal-tint); }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Placeholders for content awaiting verified information */
.placeholder { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; background: var(--surface-alt); }
.placeholder-label { font-weight: 800; color: var(--navy); margin-bottom: .35rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.placeholder p:last-child { margin-bottom: 0; color: var(--muted); }

/* Accordion (WAI-ARIA APG pattern; open by default without JS) */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-heading { margin: 0; font-size: 1.05rem; }
.accordion-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 1rem 1.25rem; text-align: left;
  font: inherit; font-weight: 700; color: var(--navy); background: transparent; border: 0; cursor: pointer;
}
.accordion-trigger:hover { background: var(--surface-alt); }
.accordion-trigger:focus-visible { outline-offset: -4px; }
.accordion-icon { flex: none; width: 12px; height: 12px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(-135deg) translateY(-3px); }
.accordion-panel { padding: 0 1.25rem 1.1rem; }
.accordion-panel[hidden] { display: none; }
.accordion-panel p { color: var(--muted); margin: 0; }

/* Error summary (shown when a submit attempt fails) */
.error-summary {
  border: 3px solid var(--error); border-radius: 10px; background: var(--error-bg);
  padding: 1.1rem 1.25rem;
}
.error-summary:focus-visible, .error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary h3 { color: var(--error); font-size: 1.1rem; margin-bottom: .35rem; }
.error-summary p { margin: 0 0 .5rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 700; display: inline-flex; min-height: 32px; align-items: center; }

@media (min-width: 86rem) {
  .nav-list a { padding: .5rem .6rem; font-size: .98rem; }
}
