/*
 * HEBTECH Cyber Securities - site stylesheet
 * Plain CSS, no build step. Fonts: IBM Plex Sans / Mono (OFL, self-hosted in /fonts).
 *
 * 1. Fonts & tokens   2. Base   3. Layout   4. Header & nav   5. Buttons & links
 * 6. Home             7. Shared components  8. Forms           9. Footer
 * 10. Utilities & print
 */

/* 1. Fonts & tokens -------------------------------------------------------- */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ink: #0b1b2b;          /* headings, strong text */
  --ink-2: #33475b;        /* body text */
  --ink-3: #5a6b7d;        /* secondary text */
  --line: #e2e7ee;         /* hairlines */
  --line-2: #cfd7e1;       /* input borders */
  --bg: #ffffff;
  --bg-2: #f5f7fa;         /* alternate sections */
  --bg-3: #eef2f7;

  --brand: #1d4fbf;
  --brand-hover: #163f99;
  --brand-tint: #ebf1fc;
  --brand-line: #c9d8f5;

  --dark: #0b1b2b;
  --dark-2: #13263a;
  --on-dark: #e8eef5;
  --on-dark-2: #a9b8c8;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --p1: #b42318;  --p1-bg: #fef3f2;  --p1-line: #fecdca;
  --p2: #c4320a;  --p2-bg: #fff4ed;  --p2-line: #fbd5c0;
  --p3: #a15c07;  --p3-bg: #fffaeb;  --p3-line: #fde7b0;
  --p4: #1d4fbf;  --p4-bg: #ebf1fc;  --p4-line: #c9d8f5;
  --p5: #5a6b7d;  --p5-bg: #f5f7fa;  --p5-line: #cfd7e1;
  --ok: #137a3a;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(11, 27, 43, 0.05), 0 12px 32px rgba(11, 27, 43, 0.08);

  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3v10h10v-3M9 2h5v5M14 2 7 9' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235a6b7d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.9vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.35vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

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

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

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

code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: #cfe0ff;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

/* 3. Layout ---------------------------------------------------------------- */

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

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

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head > :last-child {
  margin-bottom: 0;
}

.section-head:last-child {
  margin-bottom: 0;
}

.section-head p {
  font-size: 1.125rem;
}

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.section-head--split > div {
  max-width: 720px;
}

.kicker {
  display: block;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.lede {
  max-width: 660px;
  font-size: clamp(1.125rem, 1.04rem + 0.38vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* 4. Header & nav ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-mark .mark-bg {
  fill: var(--ink);
}

.brand-mark .mark-fg {
  stroke: #fff;
}

.brand-mark .mark-accent {
  stroke: #6f9cf5;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name strong {
  color: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.brand-name span {
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.nav-toggle,
.nav-fallback {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 18px;
  height: 18px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon .bar-1 {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon .bar-2 {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon .bar-3 {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle-icon line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 960px) {
  .nav-toggle,
  .nav-fallback {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(11, 27, 43, 0.08);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }

  .nav-links a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--brand);
  }

  .nav .btn {
    width: 100%;
  }
}

/* 5. Buttons & links ------------------------------------------------------- */

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

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9063rem;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}

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

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--bg-3);
  color: var(--ink);
}

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

.btn .icon,
.link-arrow::after,
.link-external::after {
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
}

.link-arrow,
.link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after,
.link-external::after {
  content: "";
  transition: transform 0.15s ease;
}

.link-external::after {
  width: 14px;
  height: 14px;
  -webkit-mask-image: var(--icon-external);
  mask-image: var(--icon-external);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 6. Home ------------------------------------------------------------------ */

.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-top: 24px;
}

.hero .actions {
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9063rem;
  color: var(--ink-3);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--ok);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero .actions .btn {
    width: 100%;
  }
}

/* Sample finding (report excerpt) */

.finding {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
}

.finding-head,
.finding-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 20px;
  background: var(--bg-2);
}

.finding-head {
  border-bottom: 1px solid var(--line);
}

.finding-foot {
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.finding-ref {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.finding-body {
  padding: 20px;
}

.finding-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.finding-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0 0 18px;
}

.finding-meta dt {
  color: var(--ink-3);
}

.finding-meta dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.finding-meta .vector {
  color: var(--ink-3);
}

@media (max-width: 480px) {
  .finding-body {
    padding: 18px 16px;
  }

  .finding-head,
  .finding-foot {
    padding-inline: 16px;
  }

  .finding-meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .finding-meta dd + dt {
    margin-top: 8px;
  }

  .http {
    font-size: 0.72rem;
  }
}

.finding-label {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.http {
  margin: 0 0 14px;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--dark);
  color: #d7e1ec;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}

.http .t-method,
.http .t-status {
  color: #7fb0ff;
}

.http .t-key {
  color: #8fa3b8;
}

.http .t-note {
  color: #f0b37e;
}

.finding-fix {
  margin: 0;
  color: var(--ink-2);
}

.finding-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  font-weight: 600;
}

.finding-status::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

/* Severity badges */

.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.sev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.sev-p1 { color: var(--p1); background: var(--p1-bg); border-color: var(--p1-line); }
.sev-p2 { color: var(--p2); background: var(--p2-bg); border-color: var(--p2-line); }
.sev-p3 { color: var(--p3); background: var(--p3-bg); border-color: var(--p3-line); }
.sev-p4 { color: var(--p4); background: var(--p4-bg); border-color: var(--p4-line); }
.sev-p5 { color: var(--p5); background: var(--p5-bg); border-color: var(--p5-line); }

/* Proof / stats */

.proof {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.stat {
  margin: 0;
  padding: 36px 28px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat dt {
  font-size: clamp(2rem, 1.6rem + 1.3vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat dd {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.stat--verify dt {
  padding-top: 4px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.stat--verify dt a {
  text-decoration: none;
}

.stat--verify dt a:hover {
  text-decoration: underline;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 2px 9px;
  border: 1px solid #abefc6;
  border-radius: 999px;
  background: #ecfdf3;
  color: #085d3a;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.stat .live-badge {
  display: flex;
  width: fit-content;
}

h2 .live-badge {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

.proof-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.proof-note p {
  margin: 0;
  max-width: 820px;
}

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

  .stat,
  .stat:first-child {
    padding: 28px 20px 28px 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Service list (home) */

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.35fr) 24px;
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.service-row h3 {
  margin: 0;
  font-size: 1.1875rem;
}

.service-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.service-row h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-row p {
  margin: 0;
  color: var(--ink-2);
}

.service-row .service-go {
  width: 18px;
  height: 18px;
  align-self: center;
  background: var(--ink-3);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.service-row:hover h3 a,
.service-row:focus-within h3 a {
  color: var(--brand);
}

.service-row:hover .service-go {
  background: var(--brand);
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .service-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 24px 0;
  }

  .service-row p {
    grid-column: 2;
  }

  .service-row .service-go {
    display: none;
  }
}

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  counter-increment: step;
}

.steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--brand);
}

.steps .step-num::before {
  content: "0" counter(step);
}

.step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brand);
}

.steps h3 {
  font-size: 1.125rem;
}

.steps p {
  margin: 0;
  font-size: 0.9688rem;
}

.steps-note {
  margin: 40px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9688rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Comparison table */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.compare caption {
  padding: 0;
}

.compare th,
.compare td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  border-bottom-color: var(--line-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.compare tbody th {
  width: 26%;
  color: var(--ink);
  font-weight: 600;
}

.compare .is-us {
  background: var(--brand-tint);
  color: var(--ink);
}

.compare thead .is-us {
  color: var(--brand);
}

@media (max-width: 720px) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare tr {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .compare tr:last-child {
    border-bottom: 0;
  }

  .compare th,
  .compare td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .compare tbody th {
    width: auto;
    margin-bottom: 10px;
  }

  .compare td {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-2);
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .compare td.is-us::before {
    color: var(--brand);
  }
}

/* Industry chips (home) */

.industry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.industry-strip li {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.industry-strip strong {
  display: block;
  margin-bottom: 4px;
}

.industry-strip span {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

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

@media (max-width: 520px) {
  .industry-strip {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  max-width: 880px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font-size: 1.0938rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: none;
  background: var(--ink-3);
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--brand);
}

.faq .answer {
  max-width: 760px;
  padding-bottom: 24px;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* CTA band */

.cta {
  background: var(--dark);
  color: var(--on-dark-2);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 600px;
  margin: 0;
  font-size: 1.125rem;
}

.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  justify-self: end;
}

.cta-side p {
  font-size: 0.9375rem;
}

.cta-side a:not(.btn) {
  color: #fff;
}

@media (max-width: 860px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-side {
    justify-self: start;
  }
}

/* 7. Shared components ----------------------------------------------------- */

/* Page header (inner pages) */

.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.page-hero h1 {
  max-width: 22ch;
}

.page-hero .lede {
  margin-top: 20px;
}

.page-hero .actions {
  margin-top: 32px;
}

.page-hero--narrow h1 {
  max-width: 28ch;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.subnav a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.subnav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Bulleted lists */

.bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 22px;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--brand);
}

/* Cards */

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card > p {
  font-size: 0.9688rem;
}

.card .bullets {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.card-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brand);
}

.card-foot {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9063rem;
  color: var(--ink-3);
}

.card-foot strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* Service detail (services page) */

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 88px);
  padding-block: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail .card-label {
  margin-bottom: 12px;
}

.service-detail h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.85vw, 2rem);
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.facts dt {
  color: var(--ink-3);
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.service-detail .actions {
  margin-top: 28px;
}

.list-panel {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.list-panel + .list-panel {
  margin-top: 16px;
}

.list-panel h3 {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

/* Data tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.data-table th,
.data-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table thead th {
  background: var(--bg-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.data-table tbody th {
  color: var(--ink);
  font-weight: 600;
}

.data-table .nowrap {
  white-space: nowrap;
}

.kv-table tbody th {
  width: 34%;
  color: var(--ink-3);
  font-weight: 500;
}

.kv-table td {
  color: var(--ink);
}

@media (max-width: 640px) {
  .kv-table tr {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .kv-table tr:last-child {
    border-bottom: 0;
  }

  .kv-table th,
  .kv-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .kv-table tbody th {
    width: auto;
    margin-bottom: 2px;
    font-size: 0.875rem;
  }

  .sev-table td,
  .sev-table th {
    padding: 14px 16px;
  }
}

/* Metrics (track record) */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.metric {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.metric dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
}

.metric .value {
  display: block;
  margin: 8px 0 6px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.metric dd {
  margin: 0;
  font-size: 0.9063rem;
  line-height: 1.5;
}

.metric--verify .value {
  margin: 10px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.metric--verify a.value {
  display: inline-flex;
  color: var(--brand);
  text-decoration: none;
}

.metric--verify a.value:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

/* Organisations (track record) */

.org-groups {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 24px;
}

.org-group {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.org-group + .org-group {
  margin-top: 24px;
}

.org-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.org-group h3 span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
}

.org-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3 150px;
  column-gap: 28px;
}

.org-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  break-inside: avoid;
}

.org-list--single {
  columns: 1;
}

.callout {
  margin: 32px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9688rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .org-groups {
    grid-template-columns: 1fr;
  }
}

/* Quotes */

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.quote blockquote {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.quote blockquote p {
  margin: 0;
}

.quote figcaption {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}

.quote figcaption strong {
  display: block;
  color: var(--ink);
}

/* Commitments (company) */

.commitments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.commitments li {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.commitments li:nth-child(3n + 2),
.commitments li:nth-child(3n + 3) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.commitments h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.commitments p {
  margin: 0;
  font-size: 0.9688rem;
}

@media (max-width: 960px) {
  .commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commitments li,
  .commitments li:nth-child(3n + 2),
  .commitments li:nth-child(3n + 3) {
    padding: 24px 24px 24px 0;
    border-left: 0;
  }

  .commitments li:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .commitments {
    grid-template-columns: 1fr;
  }

  .commitments li,
  .commitments li:nth-child(even) {
    padding: 22px 0;
    border-left: 0;
  }
}

/* Team (person profile) */

.person {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.person-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
}

.person-body h2 {
  margin-bottom: 4px;
}

.person-role {
  margin: 0 0 18px;
  color: var(--brand);
  font-weight: 600;
}

.person-body .bullets {
  margin: 20px 0 0;
}

.person-contact {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.person-contact dt {
  color: var(--ink-3);
}

.person-contact dd {
  margin: 0;
}

.person-contact a {
  font-weight: 600;
  text-decoration: none;
}

.person-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .person {
    grid-template-columns: 1fr;
  }

  .person-photo {
    max-width: 260px;
  }
}

/* Contact cards */

.contact-cards .card h3 {
  font-size: 1.0625rem;
}

.contact-cards .card a {
  margin-top: auto;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Prose (legal pages) */

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.125rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--ink-3);
}

.updated {
  margin-top: 16px;
  font-size: 0.9063rem;
  color: var(--ink-3);
}

.toc {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 760px);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.toc nav {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  font-size: 0.9375rem;
}

.toc nav h2 {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc nav ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.toc nav a:hover {
  color: var(--brand);
}

@media (max-width: 860px) {
  .toc {
    grid-template-columns: 1fr;
  }

  .toc nav {
    position: static;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
}

/* Not found */

.not-found {
  padding-block: clamp(80px, 12vw, 160px);
}

.not-found .code {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* 8. Forms ----------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .form-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .form-row,
  .form-row--3 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.field .optional {
  color: var(--ink-3);
  font-weight: 400;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #8593a3;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #aebac8;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 79, 191, 0.16);
}

.input:user-invalid,
.textarea:user-invalid {
  border-color: var(--p1);
}

.select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: var(--icon-chevron);
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

.textarea {
  min-height: 168px;
  line-height: 1.55;
  resize: vertical;
}

.hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.scope-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.scope-box summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.scope-box summary::-webkit-details-marker {
  display: none;
}

.scope-box summary span {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 400;
}

.scope-box summary::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
  background: var(--ink-3);
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
  transition: transform 0.2s ease;
}

.scope-box[open] summary::after {
  transform: rotate(45deg);
}

.scope-box .scope-fields {
  padding: 4px 22px 22px;
}

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

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.form-foot p {
  margin: 0;
  font-size: 0.9063rem;
  color: var(--ink-3);
}

.form-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.notice {
  padding: 16px 18px;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: 0.9688rem;
}

.notice:focus {
  outline: none;
}

.notice strong {
  color: inherit;
}

.notice > :last-child {
  margin-bottom: 0;
}

.notice-success {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #085d3a;
}

.notice-error {
  border-color: var(--p1-line);
  background: var(--p1-bg);
  color: #912018;
}

/* Messages shown by URL fragment after a no-JavaScript form post. */
.target-msg {
  display: none;
  margin-bottom: 24px;
}

.target-msg:target,
.target-msg.is-visible {
  display: block;
}

/* Contact aside */

.aside {
  display: grid;
  gap: 16px;
}

.aside-block {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.aside-block h2 {
  margin-bottom: 14px;
  font-size: 1.0625rem;
}

.aside-block p {
  font-size: 0.9375rem;
}

.aside-block > :last-child {
  margin-bottom: 0;
}

.aside-block--muted {
  background: var(--bg-2);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.num-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
  font-size: 0.9375rem;
}

.num-steps li {
  position: relative;
  padding-left: 36px;
  counter-increment: n;
}

.num-steps li::before {
  content: counter(n);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* 9. Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 48px;
  border-top: 1px solid var(--on-dark-line);
}

.footer-about p {
  max-width: 380px;
  margin: 20px 0 16px;
  line-height: 1.6;
}

.footer-meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-meta .mono {
  color: var(--on-dark);
  font-size: 0.8125rem;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li span {
  display: block;
  font-size: 0.8125rem;
}

.brand--on-dark {
  color: #fff;
}

.brand--on-dark:hover {
  color: #fff;
  text-decoration: none !important;
}

.brand--on-dark .brand-name span {
  color: var(--on-dark-2);
}

.brand--on-dark .mark-bg {
  fill: #fff;
}

.brand--on-dark .mark-fg {
  stroke: var(--ink);
}

.brand--on-dark .mark-accent {
  stroke: var(--brand);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.8438rem;
}

.footer-legal p {
  margin: 0;
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

/* 10. Utilities & print ---------------------------------------------------- */

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

.mt-lg {
  margin-top: clamp(40px, 5vw, 64px);
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.9063rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .cta,
  .nav-toggle,
  .nav-fallback,
  .skip-link,
  .subnav {
    display: none !important;
  }

  .site-footer {
    background: none;
    color: #000;
  }

  .site-footer a,
  .site-footer h2 {
    color: #000;
  }

  .page-hero,
  .section--alt,
  .proof {
    background: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
