/* Kerckh. – productsite. Rustig, typografisch, veel witruimte; koper alleen als klein accent.
   Lettertype: Instrument Sans (SIL Open Font License 1.1, zie /assets/fonts/OFL.txt). Geen inline stijlen (CSP). */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/instrument-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/instrument-sans-600.woff2') format('woff2'); }

:root {
  --paper: #f6f3ee;
  --paper-2: #efe9e0;
  --card: #fffdf9;
  --ink: #1f272c;
  --ink-2: #394147;
  --muted: #5d5750;
  --line: #e2dacf;
  --line-2: #cdc3b5;
  --copper: #b4652f;      /* accent: punt (draaicirkel), lijnen, kleine markeringen */
  --copper-text: #93511f; /* koper voor tekst (contrast ≥ 4,5:1 op --paper) */
  --dark: #1b2226;
  --dark-2: #242d32;
  --on-dark: #f3eee7;
  --on-dark-muted: #b9b1a6;
  --ok: #2f6b3a;
  --ok-bg: #e8f0e5;
  --new: #24527a;
  --new-bg: #e5edf5;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 600; color: inherit; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -10000px; top: 0; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
section[id], main { scroll-margin-top: 76px; }

/* ------------------------------------------------------------ kop */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 243, 238, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 26px; width: auto; }
.head-nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.9375rem; }
.head-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.head-nav a:hover { color: var(--ink); }
.head-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.head-cta:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------ knoppen */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 2.1rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 8px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; letter-spacing: -0.005em;
}
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #0f1417; color: var(--paper); }
.button-quiet { padding: 0 2px; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.button-quiet:hover { text-decoration-color: var(--copper); color: var(--ink); }

/* ------------------------------------------------------------ merkdetail: de punt als draaicirkel van een deur */

.swing { display: inline-block; flex: none; width: 9px; height: 9px; background: var(--copper); border-radius: 0 100% 0 0; }

.eyebrow {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 1.4rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------------ hero */

.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
h1 { font-size: clamp(2.4rem, 1.15rem + 4.3vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; }
.h1-brand { display: block; margin-bottom: 1.4rem; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.2rem); letter-spacing: -0.005em; line-height: 1.2; color: var(--copper-text); }
.lead { margin-top: 1.6rem; max-width: 33em; font-size: clamp(1.1rem, 0.98rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.hero-note { display: flex; align-items: baseline; gap: 10px; margin: 2.2rem 0 0; font-size: 0.875rem; color: var(--muted); }
.hero-note::before { content: ''; width: 9px; height: 9px; background: var(--copper); border-radius: 0 100% 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-text, .flow { animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
  .flow { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Workflow-visual: vier interfacefragmenten als trap, verbonden door een dunne lijn. */
.flow { margin: 0; position: relative; }
.flow-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 18px; }
.flow-steps::before { content: ''; position: absolute; left: 11px; top: 14px; bottom: 74px; border-left: 1px dashed var(--line-2); }
.flow-step { position: relative; padding-left: 36px; }
.flow-step:nth-child(2) .ui { margin-left: 5%; }
.flow-step:nth-child(3) .ui { margin-left: 10%; }
.flow-step:nth-child(4) .ui { margin-left: 15%; }
.flow-label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px -36px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.flow-nr {
  display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; margin-right: 6px;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); font-size: 0.75rem; letter-spacing: 0; color: var(--ink);
}
.ui {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px;
  font-size: 0.9375rem; line-height: 1.45;
  box-shadow: 0 1px 0 rgba(31, 39, 44, 0.03), 0 18px 36px -28px rgba(31, 39, 44, 0.35);
  transition: border-color 400ms ease, transform 400ms ease;
}
.ui p { margin: 0; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-meta { color: var(--muted); font-size: 0.875rem; margin-top: 2px !important; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-new { color: var(--new); background: var(--new-bg); }
.ui-check { background: var(--ok-bg); border-color: #d3e2cd; color: var(--ok); }
.tick { font-weight: 600; }
.ui-mail-head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px !important; }
.ui-event { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--copper); }
.ui-event-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.flow figcaption { margin-top: 16px; padding-left: 36px; font-size: 0.8125rem; color: var(--muted); }
/* Eén keer de route aflopen (stap 1 → 4) en dan stilstaan: binnen 5 seconden klaar (WCAG 2.2.2), geen lus. */
@media (prefers-reduced-motion: no-preference) {
  /* Alleen de tussenstand: begin en eind zijn de eigen stijl van het element (koperen agendarand blijft staan). */
  .flow-step .ui { animation: step-focus 1.1s ease-in-out 0.8s 1; }
  .flow-step:nth-child(2) .ui { animation-delay: 1.7s; }
  .flow-step:nth-child(3) .ui { animation-delay: 2.6s; }
  .flow-step:nth-child(4) .ui { animation-delay: 3.5s; }
  @keyframes step-focus { 30%, 60% { border-color: var(--copper); transform: translateX(-3px); } }
  .flow-step .ui-check { animation-name: step-focus-ok; }
  @keyframes step-focus-ok { 30%, 60% { border-color: var(--ok); transform: translateX(-3px); } }
}

/* ------------------------------------------------------------ secties */

.section { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.85rem, 1.15rem + 2.5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 19ch; margin-bottom: 1.3rem; }
.narrow-heading { max-width: 22ch; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead-small { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* Probleem */
.problem-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.problem-list li { counter-increment: p; position: relative; padding: 17px 0 17px 52px; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.problem-list li:last-child { border-bottom: 1px solid var(--line); }
.problem-list li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.04em; }

/* Hoe het werkt */
.steps { list-style: none; margin: 3.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 30px 26px 0 0; }
.steps li::before { content: ''; position: absolute; top: -11px; left: 0; width: 11px; height: 11px; background: var(--copper); border-radius: 0 100% 0 0; }
.step-nr { display: block; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.06em; }
.steps h3 { margin: 0.55rem 0 0.45rem; }
.steps p { color: var(--muted); font-size: 0.96875rem; line-height: 1.55; margin: 0; }

/* Schermafbeeldingen */
.screen { margin: 0; }
.screen-frame { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 40px 70px -50px rgba(31, 39, 44, 0.45); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-left: 14px; border-bottom: 1px solid var(--line); background: #faf8f4; }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.screen img { width: 100%; }
.screen figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); max-width: 60em; }
.how-screen { margin-top: clamp(48px, 7vw, 88px); }
.screen-phone .screen-frame { border: 9px solid var(--ink); border-radius: 36px; box-shadow: 0 40px 70px -40px rgba(31, 39, 44, 0.55); }
.screen-plain .screen-frame { border-radius: 12px; }

/* Agenda blijft leidend (donker) */
.agenda { background: var(--dark); color: var(--on-dark); border-top: 0; }
.agenda .eyebrow { color: var(--on-dark-muted); }
.agenda .lead-small { color: var(--on-dark); }
.agenda a:hover { color: var(--on-dark); }
.split-agenda { align-items: center; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; }
.facts li { position: relative; padding: 15px 0 15px 26px; border-top: 1px solid rgba(243, 238, 231, 0.13); color: var(--on-dark-muted); }
.facts li::before { content: ''; position: absolute; left: 0; top: 23px; width: 9px; height: 9px; background: var(--copper); border-radius: 0 100% 0 0; }
.layers { display: flex; flex-direction: column; align-items: stretch; max-width: 440px; justify-self: end; width: 100%; }
.layer { border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.layer-name { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.layer-sub { font-size: 0.875rem; }
.layer-top { background: var(--on-dark); color: var(--ink); }
.layer-top .layer-sub { color: var(--muted); }
.layer-mid { background: var(--dark-2); border: 1px solid rgba(243, 238, 231, 0.16); color: var(--on-dark-muted); }
.layer-mid img { height: 28px; width: auto; align-self: flex-start; }
.layer-base { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; border: 1px dashed rgba(243, 238, 231, 0.28); color: var(--on-dark-muted); font-size: 0.9375rem; }
.layer-arrow { position: relative; width: 1px; height: 34px; margin: 0 auto; background: var(--copper); }
.layer-arrow::before { content: ''; position: absolute; top: -1px; left: -4px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-bottom: 7px solid var(--copper); }
.agenda-screen { margin-top: clamp(56px, 8vw, 96px); }
.agenda .screen-frame { border-color: rgba(243, 238, 231, 0.12); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8); }
.agenda .screen-bar { background: #f3f0ea; }
.agenda .screen figcaption { color: var(--on-dark-muted); }

/* Bezoeker en kerk */
.sides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px); margin-top: 3rem; }
.side { border-top: 2px solid var(--ink); padding-top: 24px; }
.checks { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.checks li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; background: var(--copper); border-radius: 0 100% 0 0; }
.side-visual { margin-top: 2.4rem; }
.side-visual-visitor { position: relative; min-height: 420px; }
.side-visual-visitor .screen-phone { width: 52%; max-width: 270px; position: relative; z-index: 2; }
.side-visual-visitor .mail-shot { position: absolute; right: 0; top: 14%; width: 60%; z-index: 1; }
.mail-shot .screen-frame { box-shadow: 0 30px 60px -35px rgba(31, 39, 44, 0.5); }
.center-note { margin: 2.4rem 0 0; }

/* Praktijk */
.practice { background: var(--paper-2); }
.practice-text p { font-size: clamp(1.15rem, 1rem + 0.55vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.practice-text p:first-child { color: var(--ink); }

/* Eigen omgeving */
.own-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); margin: 3rem 0 0; }
.own-grid div { border-top: 1px solid var(--line-2); padding-top: 18px; }
.own-grid dt { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.own-grid dt::before { content: ''; width: 9px; height: 9px; background: var(--copper); border-radius: 0 100% 0 0; }
.own-grid dd { margin: 0.45rem 0 0; color: var(--muted); }

/* Bewust niet alles */
.not-title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.not-list { list-style: none; margin: 0; padding: 0; }
.not-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--muted);
  text-decoration: line-through; text-decoration-color: var(--copper); text-decoration-thickness: 1.5px;
}

/* Afsluiting */
.cta { background: var(--paper); }
.cta-inner h2 { max-width: 18ch; }
.cta .small { margin-top: 1.4rem; }
.talk { padding-top: 0.6rem; }
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-list li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line); color: var(--ink-2); }
.talk-list li:last-child { border-bottom: 1px solid var(--line); }
.talk-list li::before { content: ''; position: absolute; left: 0; top: 22px; width: 9px; height: 9px; background: var(--copper); border-radius: 0 100% 0 0; }

/* Voet */
.site-foot { background: var(--dark); color: var(--on-dark-muted); padding: 48px 0 28px; font-size: 0.9375rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.foot-brand img { height: 28px; width: auto; margin-bottom: 12px; }
.foot-brand p { margin: 0; }
.foot-maker { margin: 0; }
.maker-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; }
.maker-link:hover { color: var(--on-dark); }
.maker-link img { height: 24px; width: auto; }
.foot-small { margin-top: 28px; font-size: 0.8125rem; }
.foot-small p { margin: 0; padding-top: 18px; border-top: 1px solid rgba(243, 238, 231, 0.1); }

/* 404 */
.notfound { padding: 80px var(--gutter); }
.notfound h1 { margin: 2rem 0 1rem; font-size: 2rem; }

/* ------------------------------------------------------------ smaller */

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .sides-grid { grid-template-columns: minmax(0, 1fr); }
  .head-nav { display: none; }
  .head-cta { margin-left: auto; }
  .layers { justify-self: start; max-width: none; }
  .flow-step:nth-child(n) .ui { margin-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-2); row-gap: 0; margin-left: 4px; }
  .steps li { padding: 0 0 30px 26px; }
  .steps li::before { top: 4px; left: -5.5px; }
  .steps li:last-child { padding-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button-primary { width: 100%; }
  .actions .button-quiet { justify-content: flex-start; }
  .own-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .side-visual-visitor { min-height: 0; }
  .side-visual-visitor .screen-phone { width: 72%; }
  .side-visual-visitor .mail-shot { position: static; width: 100%; margin-top: 24px; }
  .problem-list li { padding-left: 44px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
