/* Nexgeneratie Software — own identity within the Nexgeneratie family.
   Palette: deep petrol, warm off-white, signal orange as the only action colour, mint for data
   flows on dark surfaces. Montserrat links it to the parent brand; small technical labels use the
   system monospace stack (no extra download). Mobile-first. */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --ink: #0c1f22;
  --ink-2: #12302f;
  --ink-3: #173b3a;
  --ink-line: #27484a;
  --ink-text: #c9dcd8;
  --accent: #c2410c;
  --accent-deep: #9a3412;
  --accent-soft: #fff1e8;
  --accent-on-dark: #fb923c;
  --data: #5eead4;
  --teal: #0f766e;
  --bg: #fcfbf8;
  --paper: #f4f1ea;
  --white: #ffffff;
  --text: #15201f;
  --muted: #4b5856;
  --line: #e3dfd5;
  --line-strong: #6f7a78;
  --ok: #166534;
  --ok-bg: #effaf3;
  --error: #b42318;
  --error-bg: #fef3f2;
  --warn-bg: #fff8eb;
  --warn-line: #b45309;

  /* Typography: scale ≈ 1.25 */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4.125rem);

  /* Spacing: 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-y: clamp(64px, 8vw, 128px);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;

  --radius-s: 6px;
  --radius: 8px;
  --radius-l: 12px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  interpolate-size: allow-keywords;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

body.is-menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
  /* Long Dutch compounds ("systeemkoppelingen") must break on small screens instead of overflowing. */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

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

.visually-hidden {
  position: absolute !important; /* must win over any component positioning */
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-s);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
}

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

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

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

.logo__img {
  flex: none;
  width: auto;
  height: 30px;
}

.logo__sub {
  /* sits on the baseline of the "nexgeneratie" wordmark in the image */
  align-self: flex-end;
  margin-bottom: 8px;
  margin-left: -8px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.logo--light .logo__sub {
  color: var(--accent-on-dark);
}

@media (min-width: 960px) {
  .logo__img {
    height: 34px;
  }

  .logo__sub {
    margin-bottom: 9px;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px -12px rgb(194 65 12 / 0.8);
}

.button--primary::after {
  content: '→';
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.button--primary:hover {
  background: var(--accent-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.button--primary:hover::after {
  transform: translateX(4px);
}

.button--primary:active {
  transform: none;
}

.button--large {
  min-height: 54px;
  padding-inline: var(--space-5);
}

@media (min-width: 480px) {
  .button--large {
    padding-inline: var(--space-6);
  }
}

.button--block {
  width: 100%;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.text-link::after {
  content: '→';
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover {
  text-decoration: underline;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--data);
}

.text-link--light:hover {
  color: var(--white);
}

/* ---------- Eyebrow and section heads ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--teal);
}

.eyebrow__index {
  padding: 2px var(--space-2);
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
}

.eyebrow--dark {
  color: var(--data);
}

.section-intro {
  max-width: 62ch;
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
}

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

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

.section--ink {
  background: var(--ink);
  color: var(--ink-text);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--ink .eyebrow {
  color: var(--data);
}

.section--ink .eyebrow__index {
  color: var(--ink);
  background: var(--data);
}

.section--ink .section-intro {
  color: var(--ink-text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(252 251 248 / 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -24px rgb(12 31 34 / 0.6);
}

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

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

/* On very narrow screens only the icon is shown; the label stays available to screen readers. */
.menu-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 360px) {
  .menu-toggle__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.menu-toggle__bars {
  position: relative;
  flex: none;
  margin-right: 2px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5) var(--gutter) var(--space-7);
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

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

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav__list a:hover {
  color: var(--accent);
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
  }

  .site-nav__list {
    display: flex;
    gap: var(--space-5);
  }

  .site-nav__list a {
    position: relative;
    min-height: 44px;
    font-size: 0.9375rem;
    border: 0;
  }

  .site-nav__list a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }

  .site-nav__list a:hover::after {
    transform: scaleX(1);
  }

  .site-nav__cta {
    min-height: 44px;
    padding-inline: var(--space-5);
  }
}

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

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 112px) clamp(56px, 8vw, 120px);
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  color: var(--white);
}

.hero .accent {
  color: var(--accent-on-dark);
}

.hero__lead {
  max-width: 58ch;
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

.hero__note {
  max-width: 52ch;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  font-size: var(--fs-small);
  border-top: 1px solid var(--ink-line);
}

.hero__diagram {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.diagram__grid line {
  stroke: var(--ink-line);
  stroke-width: 1;
  opacity: 0.5;
}

.diagram__lines path {
  fill: none;
  stroke: #3d6b6b;
  stroke-width: 1.5;
}

.diagram__dot {
  fill: var(--data);
}

.diagram__node rect {
  fill: var(--ink-2);
  stroke: #3d6b6b;
  stroke-width: 1.5;
}

.diagram__node text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink-text);
}

.diagram__center-ring {
  fill: none;
  stroke: var(--accent-on-dark);
  stroke-width: 1.5;
  opacity: 0;
}

.diagram__center rect.diagram__center-box {
  fill: var(--accent);
  stroke: var(--accent-on-dark);
  stroke-width: 1.5;
}

.diagram__center text {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  fill: var(--white);
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-8);
  }
}

/* ---------- Split layout (heading left, content right) ---------- */

.split {
  display: grid;
  gap: var(--space-7);
}

/* Grid items may shrink below their longest word, so text wraps instead of widening the page. */
.split > *,
.cta-band__inner > * {
  min-width: 0;
}

.split__closing {
  max-width: 44ch;
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid var(--accent);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-8);
    align-items: start;
  }

  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

/* ---------- Problems ---------- */

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

.problem {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.problem__index {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
}

.problem p {
  margin-top: var(--space-2);
  color: var(--muted);
}

/* ---------- Services ---------- */

.service-list {
  border-top: 1px solid var(--line-strong);
}

.service {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.service::before {
  /* accent line that grows on hover */
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__index {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
}

.service__lead {
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--ink);
}

.service__text {
  color: var(--muted);
}

.service__examples {
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service__examples-label {
  margin-bottom: var(--space-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}

.service__examples ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service__examples li {
  position: relative;
  padding-left: var(--space-5);
  font-size: 0.9375rem;
  line-height: 1.55;
}

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

.service__examples li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.footnote {
  margin-top: var(--space-5);
  font-size: var(--fs-small);
  color: var(--muted);
}

@media (min-width: 720px) {
  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-6);
  }

  .service__examples {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .service {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: var(--space-7);
    padding-block: var(--space-7);
  }

  .service__examples {
    grid-column: auto;
  }
}

/* ---------- Benefits ---------- */

.benefit-grid {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  position: relative;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.benefit::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
}

.benefit p {
  margin-top: var(--space-2);
  color: var(--muted);
}

.callout {
  max-width: 70ch;
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-7);
  }
}

@media (min-width: 1100px) {
  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

.steps {
  position: relative;
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-left: 64px;
}

.step::before,
.step::after {
  /* rail on mobile: base line plus a progress line drawn over it */
  content: '';
  position: absolute;
  top: 44px;
  bottom: calc(-1 * var(--space-6));
  left: 21px;
  width: 2px;
  background: var(--ink-line);
}

.step::after {
  background: var(--data);
  transform-origin: top;
}

.step:last-child::before,
.step:last-child::after {
  display: none;
}

.step__marker {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
  background: var(--data);
  border: 1px solid var(--data);
  border-radius: var(--radius-s);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.step h3 {
  padding-top: 8px;
}

.step p {
  margin-top: var(--space-2);
}

.step .step__result {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--white);
  border-top: 1px solid var(--ink-line);
}

.step__result strong {
  color: var(--data);
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .step {
    padding-left: 0;
    padding-top: 68px;
  }

  .step::before,
  .step::after {
    top: 21px;
    bottom: auto;
    left: 52px;
    right: calc(-1 * var(--space-5));
    width: auto;
    height: 2px;
  }

  .step::after {
    transform-origin: left;
  }

  .step h3 {
    padding-top: 0;
  }
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.about__photo {
  position: relative;
  max-width: 380px;
  margin: 0;
}

.about__photo img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-l);
  background: var(--paper);
}

.about__photo::before {
  /* offset frame behind the photo */
  content: '';
  position: absolute;
  inset: 16px -16px auto 16px;
  aspect-ratio: 480 / 608;
  border: 2px solid var(--accent);
  border-radius: var(--radius-l);
}

.about__photo figcaption {
  margin-top: var(--space-5);
  font-size: var(--fs-small);
  color: var(--muted);
}

.person-card {
  max-width: 380px;
  padding: var(--space-6) var(--space-5);
  color: var(--ink-text);
  background: var(--ink);
  border-radius: var(--radius-l);
}

.person-card__mark {
  width: 64px;
  height: auto;
  margin-bottom: var(--space-5);
}

.person-card__label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--data);
}

.person-card__name {
  margin-top: var(--space-2);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--white);
}

.person-card__role {
  margin-top: var(--space-1);
}

.person-card__lines {
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink-line);
}

.person-card__lines li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-3);
  min-height: 44px;
  border-bottom: 1px solid var(--ink-line);
}

.person-card__lines span {
  min-width: 64px;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--data);
}

.person-card__lines a {
  font-weight: 700;
  color: var(--white);
}

.person-card__lines a:hover {
  color: var(--accent-on-dark);
}

.about__copy p + p,
.about__copy h2 + p {
  margin-top: var(--space-4);
}

.about__copy p {
  max-width: 62ch;
}

.about__copy h2 {
  margin-bottom: var(--space-5);
}

.about__copy .text-link {
  margin-top: var(--space-4);
}

.about {
  align-items: start;
}

@media (min-width: 840px) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: var(--space-8);
  }

  .about > .person-card,
  .about > .about__photo {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

@media (min-width: 1100px) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: calc(var(--space-8) * 1.5);
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line-strong);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-4);
  cursor: pointer;
  list-style: none;
}

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

.faq summary h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

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

.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), background-color 0.25s var(--ease);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq[open] .faq__icon {
  background: var(--ink);
  border-color: var(--ink);
}

.faq[open] .faq__icon::before,
.faq[open] .faq__icon::after {
  background: var(--white);
}

.faq[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq p {
  max-width: 68ch;
  padding-bottom: var(--space-5);
  color: var(--muted);
}

/* ---------- Contact ---------- */

.section--contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  gap: var(--space-7);
}

.contact__subtitle {
  margin-top: var(--space-6);
  font-size: 1rem;
}

.contact__steps {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: contact-step;
}

.contact__steps li {
  position: relative;
  padding-left: 40px;
  counter-increment: contact-step;
}

.contact__steps li + li {
  margin-top: var(--space-3);
}

.contact__steps li::before {
  content: counter(contact-step);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-s);
}

.contact__direct ul {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.contact__direct li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-3);
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.contact__direct li span {
  min-width: 96px;
  font-family: var(--mono);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--teal);
}

.contact__direct a {
  font-weight: 700;
}

.contact__form-wrap {
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-l);
  box-shadow: 0 16px 40px -32px rgb(12 31 34 / 0.45);
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-8);
    align-items: start;
  }

  .contact__form-wrap {
    padding: var(--space-7);
  }
}

/* ---------- Form ---------- */

.notice {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text);
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-line);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.field + .field {
  margin-top: var(--space-5);
}

.field label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 700;
  color: var(--ink);
}

.field__optional {
  font-weight: 500;
  color: var(--muted);
}

.field__hint {
  margin-bottom: var(--space-2);
  font-size: var(--fs-small);
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(194 65 12 / 0.3);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
  background: var(--error-bg);
}

.field__error {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

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

.contact-form__privacy {
  margin-block: var(--space-5);
  font-size: var(--fs-small);
  color: var(--muted);
}

.form-summary {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  color: var(--error);
  background: var(--error-bg);
  border-left: 3px solid var(--error);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.form-summary p {
  font-weight: 700;
}

.form-summary ul {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
}

.form-summary a {
  color: var(--error);
}

.form-result {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-s);
}

.form-result h3 {
  font-size: 1.0625rem;
}

.form-result p {
  margin-top: var(--space-2);
}

.form-result .button {
  margin-top: var(--space-4);
}

.form-result--pending {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-line);
}

.form-result--success {
  background: var(--ok-bg);
  border-left: 3px solid var(--ok);
}

.form-result--error {
  background: var(--error-bg);
  border-left: 3px solid var(--error);
}

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

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  font-size: 0.9375rem;
  color: var(--ink-text);
  background: var(--ink);
}

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

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

.site-footer__top {
  display: grid;
  gap: var(--space-7);
}

.site-footer__brand p {
  max-width: 44ch;
  margin-top: var(--space-4);
}

.site-footer__brand p a {
  text-decoration: underline;
}

.site-footer__head {
  margin-bottom: var(--space-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--data);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col li {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  font-size: var(--fs-small);
  border-top: 1px solid var(--ink-line);
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Discreet staff entrance to the CRM: an icon only, with a 44px touch target. */
.site-footer__bottom .crm-link {
  justify-content: center;
  min-width: 44px;
  color: var(--ink-text);
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.site-footer__bottom .crm-link:hover,
.site-footer__bottom .crm-link:focus-visible {
  color: var(--white);
  opacity: 1;
  text-decoration: none;
}

.crm-link svg {
  transition: transform 0.4s var(--ease-out);
}

.crm-link:hover svg {
  transform: rotate(60deg);
}

@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Service and contact pages ---------- */

.service__more {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
}

.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
  font-size: var(--fs-small);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '/';
  margin: 0 var(--space-2);
  font-family: var(--mono);
  color: var(--line-strong);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  font-weight: 600;
  color: var(--ink);
}

.hero--page {
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px);
}

.hero--page .hero__copy {
  max-width: 820px;
}

.hero--page h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
}

.example-grid {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.example {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.example p {
  margin-top: var(--space-2);
  color: var(--muted);
}

@media (min-width: 720px) {
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

.check-list li {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) var(--space-7);
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  /* check mark drawn with borders, no icon font */
  content: '';
  position: absolute;
  top: calc(var(--space-4) + 0.3em);
  left: var(--space-2);
  width: 7px;
  height: 13px;
  border: solid var(--teal);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.cta-band {
  color: var(--ink-text);
  background: var(--ink);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  max-width: 56ch;
  margin-top: var(--space-3);
}

.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

@media (min-width: 960px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

.related {
  padding-block: var(--space-7);
}

.related__title {
  font-size: var(--fs-h3);
}

.related__list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.related__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.related__link span:last-child {
  transition: transform 0.25s var(--ease-out);
}

.related__link:hover span:last-child {
  transform: translateX(4px);
}

@media (min-width: 720px) {
  .related__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.not-found {
  min-height: 60svh;
}

/* ---------- Motion ----------
   Everything below only runs for visitors without a reduced-motion preference.
   Hidden start states are scoped to `.js`, so content is always visible without JavaScript. */

@media (prefers-reduced-motion: no-preference) {
  /* Hero copy enters in sequence on load */
  .js .hero__copy > * {
    animation: rise 0.8s var(--ease-out) both;
  }

  .js .hero__copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .js .hero__copy > :nth-child(3) {
    animation-delay: 0.18s;
  }

  .js .hero__copy > :nth-child(4) {
    animation-delay: 0.28s;
  }

  .js .hero__copy > :nth-child(5) {
    animation-delay: 0.38s;
  }

  /* Diagram draws itself, then data starts flowing */
  .js .diagram__lines path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 1s var(--ease-out) forwards;
  }

  .js .diagram__lines path:nth-child(2),
  .js .diagram__lines path:nth-child(5) {
    animation-delay: 0.15s;
  }

  .js .diagram__lines path:nth-child(3),
  .js .diagram__lines path:nth-child(6) {
    animation-delay: 0.3s;
  }

  .js .diagram__node {
    animation: fade-in 0.6s var(--ease-out) both;
    animation-delay: 0.4s;
  }

  .js .diagram__center {
    animation: pop 0.7s var(--ease-out) both;
    animation-delay: 0.2s;
    transform-box: fill-box;
    transform-origin: center;
  }

  .js .diagram__dots {
    animation: fade-in 0.6s linear both;
    animation-delay: 1.1s;
  }

  .diagram__node rect {
    animation: node-ping 4.8s var(--ease) infinite;
  }

  .diagram__node:nth-of-type(2) rect {
    animation-delay: 0.8s;
  }

  .diagram__node:nth-of-type(3) rect {
    animation-delay: 1.6s;
  }

  .diagram__node:nth-of-type(4) rect {
    animation-delay: 2.4s;
  }

  .diagram__node:nth-of-type(5) rect {
    animation-delay: 3.2s;
  }

  .diagram__node:nth-of-type(6) rect {
    animation-delay: 4s;
  }

  .diagram__center-ring {
    animation: ring 2.4s var(--ease-out) infinite;
    animation-delay: 1.4s;
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Process rail fills as the section scrolls into view */
  .js .steps .step::after {
    transform: scaleY(0);
    transition: transform 0.7s var(--ease-out);
  }

  .js .steps .step__marker {
    color: var(--white);
    background: var(--ink-2);
    border-color: var(--ink-line);
  }

  .js .steps.is-visible .step::after {
    transform: none;
  }

  .js .steps.is-visible .step__marker {
    color: var(--ink);
    background: var(--data);
    border-color: var(--data);
  }

  .js .steps .step:nth-child(1) .step__marker { transition-delay: 0s; }
  .js .steps .step:nth-child(1)::after { transition-delay: 0.15s; }
  .js .steps .step:nth-child(2) .step__marker { transition-delay: 0.55s; }
  .js .steps .step:nth-child(2)::after { transition-delay: 0.7s; }
  .js .steps .step:nth-child(3) .step__marker { transition-delay: 1.1s; }
  .js .steps .step:nth-child(3)::after { transition-delay: 1.25s; }
  .js .steps .step:nth-child(4) .step__marker { transition-delay: 1.65s; }
  .js .steps .step:nth-child(4)::after { transition-delay: 1.8s; }
  .js .steps .step:nth-child(5) .step__marker { transition-delay: 2.2s; }

  /* Benefit accent bars grow in */
  .js .benefit-grid .benefit::before {
    transform: scaleX(0);
    transition: transform 0.8s var(--ease-out);
  }

  .js .benefit-grid.is-visible .benefit::before {
    transform: none;
  }

  .js .benefit-grid .benefit:nth-child(2)::before { transition-delay: 0.12s; }
  .js .benefit-grid .benefit:nth-child(3)::before { transition-delay: 0.24s; }
  .js .benefit-grid .benefit:nth-child(4)::before { transition-delay: 0.36s; }

  /* Smooth FAQ opening where the browser supports it */
  .faq::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }

  .faq[open]::details-content {
    block-size: auto;
  }

  @media (min-width: 1100px) {
    .js .steps .step::after {
      transform: scaleX(0);
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes node-ping {
  0%,
  70%,
  100% {
    stroke: #3d6b6b;
  }
  80% {
    stroke: var(--data);
  }
}

@keyframes ring {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.25, 1.6);
  }
}

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

  .diagram__dots {
    display: none;
  }
}
