/* ============================================================
   MellemAI v2 — design tokens
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-bg-panel: #f7f5f2;
  --color-text: #1a1a1a;
  --color-text-muted: color-mix(in srgb, var(--color-text) 68%, white);
  --color-border: #e5e5e5;
  --color-accent: #33475b;
  --color-accent-contrast: #ffffff;

  --radius-card: 10px;
  --radius-button: 8px;
  --radius-panel: 16px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1180px;
  --space-section: clamp(56px, 8vw, 112px);
  --space-section-gap: clamp(20px, 3vw, 32px);
}

/* ---------- Reset & basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Toegankelijkheid ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Zorgt dat het hidden-attribuut altijd wint, ook als een element ook een
   class heeft die zijn eigen display-waarde zet (bijv. .btn, .faq-question-form). */
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-button) 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Subtiele scroll-animatie per sectie (klasse wordt alleen door JS
   toegevoegd, zodat content zonder JS of bij prefers-reduced-motion altijd
   gewoon meteen zichtbaar is). */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in-section { opacity: 1; transform: none; transition: none; }
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.btn-primary:hover { opacity: 0.92; }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary:disabled:hover { opacity: 0.45; }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo__image {
  height: 34px;
  width: auto;
  display: block;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
}
.nav-list a.is-active { color: var(--color-accent); }
.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
}
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav {
    display: none;
    border-top: 1px solid var(--color-border);
    padding: 16px 24px 24px;
  }
  body.nav-open .mobile-nav { display: block; }
  .mobile-nav .nav-list { flex-direction: column; gap: 16px; }
}

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

.site-footer {
  background: var(--color-bg-panel);
  margin-top: var(--space-section);
  padding-top: 56px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer__col h3 { font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 12px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__col a { text-decoration: none; color: var(--color-text-muted); }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer__legal {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero split (Taak 2/5/6 hergebruiken dit) ---------- */

.hero {
  padding: var(--space-section) 0 var(--space-section-gap);
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-split--wide-image { grid-template-columns: 0.85fr 1.3fr; }
@media (max-width: 860px) {
  .hero-split--wide-image { grid-template-columns: 1fr; }
}
.hero-split__text .eyebrow { margin-bottom: 12px; }
.hero-split__actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__image { order: -1; }
}

.hero-banner {
  padding: 40px 0;
  background: var(--color-bg-panel);
  text-align: center;
}
.hero-banner h1 { margin: 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  border: 2px dashed var(--color-border);
  background: var(--color-bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

.photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* ---------- Secties ---------- */

.section { padding: var(--space-section-gap) 0; }
.section-panel {
  background: var(--color-bg-panel);
  border-radius: var(--radius-panel);
  padding: 40px;
  margin-top: var(--space-section-gap);
  margin-bottom: var(--space-section-gap);
}
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head .eyebrow { display: block; margin-bottom: 8px; }

.badge-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}
.badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* Plain (niet-.card) grid-items gebruiken h3 voor correcte heading-order,
   maar behouden hun kleinere, oorspronkelijke tekstgrootte. */
.grid-3 > div:not(.card) h3,
.grid-4 > div h3 {
  font-size: 1rem;
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card .link-arrow { margin-top: auto; }
.card h3 { margin-bottom: 8px; }
.link-arrow { display: inline-block; margin-top: 12px; text-decoration: none; font-weight: 600; color: var(--color-accent); }

/* ---------- Dienstenoverzicht: gestapelde secties met voorbeeld-mockups ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-block:nth-child(even) .service-block__intro { order: 2; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-block__intro { order: 0; }
}

.service-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.example-mockup__caption {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.browser-mockup, .chat-mockup, .flow-mockup {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.browser-mockup { overflow: hidden; }
.browser-mockup__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--color-bg-panel);
  border-bottom: 1px solid var(--color-border);
}
.browser-mockup__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}
.browser-mockup__body { padding: 16px; }
.browser-mockup__hero { margin-bottom: 12px; }
.browser-mockup__line {
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  margin-bottom: 6px;
  width: 70%;
}
.browser-mockup__line--title { width: 50%; height: 12px; background: var(--color-accent); opacity: 0.3; border: none; }
.browser-mockup__cards { display: flex; gap: 8px; }
.browser-mockup__card {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
}
.browser-mockup .example-mockup__caption { padding: 0 16px 16px; }

/* Echte voorbeeldbeelden in een dienstenblok: compact, twee naast elkaar */
.example-shot { margin: 0; }
.example-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Websites-pagina: probleem, aanpak en wat u krijgt
   ============================================================ */

/* Probleem-hero: rij statistiek-kaarten onder de intro */
.stat-grid { margin-top: clamp(12px, 2vw, 20px); }
.stat-card { gap: 6px; }
.stat-card__num {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-accent);
}
.stat-card__cap {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
@media (min-width: 560px) and (max-width: 860px) {
  .stat-grid.grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Wat u krijgt: vinkjeslijst, twee kolommen die los van elkaar doorlopen
   zodat er geen ongelijke witregels tussen de regels ontstaan */
.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  column-count: 2;
  column-gap: 48px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.45;
  break-inside: avoid;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
@media (max-width: 640px) {
  .check-list { column-count: 1; }
}

/* Wat wij anders doen: 2x2 kaarten met mini-mockup */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .diff-grid { grid-template-columns: 1fr; gap: 16px; }
}
.diff-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px;
}
.diff-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 18px 0 6px;
}
.diff-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Realistisch voorbeeldbeeld per kaart */
.diff-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .diff-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .diff-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }
}

.chat-mockup {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-mockup__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-mockup__bubble--user {
  align-self: flex-end;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-bottom-right-radius: 4px;
}
.chat-mockup__bubble--bot {
  align-self: flex-start;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-bottom-left-radius: 4px;
}

.flow-mockup {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.flow-mockup__step {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.flow-mockup__arrow { color: var(--color-accent); font-weight: 700; }

/* ---------- Bewegend workflow-schema (Automatiseringen-hero) ---------- */

.automation-hero-diagram { width: 100%; }
.automation-hero-diagram svg { width: 100%; height: auto; display: block; }
.wf-node {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-card);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 10px;
  color: var(--color-text);
  animation: wf-pulse 9.4s ease-in-out infinite;
}
.wf-node--trigger { animation-delay: 1.41s; }
.wf-node--branch { animation-delay: 5.41s; }
.wf-node--final { animation-delay: 0.41s; }
@keyframes wf-pulse {
  0%, 70%, 100% { box-shadow: var(--shadow-card); border-color: var(--color-border); border-width: 2px; }
  80% { box-shadow: 0 0 0 8px rgba(51, 71, 91, 0.3), var(--shadow-card); border-color: var(--color-accent); border-width: 3px; }
}
.wf-dot { filter: drop-shadow(0 0 3px rgba(51, 71, 91, 0.6)); }
@media (prefers-reduced-motion: reduce) {
  .wf-dot { display: none; }
  .wf-node { animation: none; }
}
.flow-mockup .example-mockup__caption { width: 100%; }

/* ---------- Chatbot-demo (Chatbots-hero) ---------- */

.chat-demo {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.chat-demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--color-bg-panel);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.chat-demo__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}
.chat-demo__name { font-weight: 700; }
.chat-demo__online { color: var(--color-text-muted); font-size: 0.8rem; }
.chat-demo__body {
  height: 300px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--color-bg-panel);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.chat-msg--visitor {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-bottom-right-radius: 4px;
}
.chat-msg--typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: chat-typing 1.2s ease-in-out infinite;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-demo__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}
.chat-demo__input-field {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.chat-demo__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  flex-shrink: 0;
}
.chat-demo--live .chat-msg { animation: chat-msg-in 0.32s ease both; }
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.chat-demo__body.is-clearing { opacity: 0; transition: opacity 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  .chat-msg--typing span,
  .chat-demo--live .chat-msg { animation: none; }
  .chat-demo__body.is-clearing { opacity: 1; transition: none; }
}

.values-grid--steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.value-step .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.value-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-border);
}
.value-step:first-child::before { left: 50%; width: 50%; }
.value-step:last-child::before { width: 50%; }
.value-step__badge {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.value-step .card { width: 100%; }

@media (max-width: 860px) {
  .values-grid--steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
  }
  .values-grid--steps::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
  }
  .value-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .value-step::before { display: none; }
  .value-step__badge { margin-bottom: 0; flex-shrink: 0; }
}

/* Homepage-stappen: de verbindingslijn tekent zich bij het in beeld scrollen,
   elke stap 'landt' als de lijn hem bereikt. Alles is standaard gewoon zichtbaar;
   de start-staat wordt alleen gezet als JS de animatieklasse heeft toegevoegd
   (dus niet bij prefers-reduced-motion of zonder JS). */
.steps-section .values-grid--steps {
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.steps-section .value-step .card { justify-content: flex-start; }
.steps-section .value-step .card h3 { font-size: 1.05rem; }
.steps-section .value-step::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform-origin: left center;
}
.steps-section .value-step:first-child::after { left: 50%; width: 50%; }
.steps-section .value-step:last-child::after { width: 50%; }

/* de sectie zelf niet als blok laten faden, alleen de stappen animeren */
.steps-section.fade-in-section { opacity: 1; transform: none; }

.steps-section.fade-in-section .value-step {
  opacity: 0;
  transform: translateY(10px);
}
.steps-section.fade-in-section .value-step::after { transform: scaleX(0); }

.steps-section.fade-in-section.is-visible .value-step {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.steps-section.fade-in-section.is-visible .value-step:nth-child(1) { transition-delay: 0.05s; }
.steps-section.fade-in-section.is-visible .value-step:nth-child(2) { transition-delay: 0.45s; }
.steps-section.fade-in-section.is-visible .value-step:nth-child(3) { transition-delay: 0.80s; }
.steps-section.fade-in-section.is-visible .value-step:nth-child(4) { transition-delay: 1.15s; }

.steps-section.fade-in-section.is-visible .value-step::after {
  transform: scaleX(1);
  transition: transform 0.35s linear;
}
.steps-section.fade-in-section.is-visible .value-step:nth-child(1)::after { transition-delay: 0.10s; }
.steps-section.fade-in-section.is-visible .value-step:nth-child(2)::after { transition-delay: 0.45s; }
.steps-section.fade-in-section.is-visible .value-step:nth-child(3)::after { transition-delay: 0.80s; }
.steps-section.fade-in-section.is-visible .value-step:nth-child(4)::after { transition-delay: 1.15s; }

@media (max-width: 860px) {
  .steps-section .value-step::after { display: none; }
  .steps-section .values-grid--steps::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 2px;
    background: var(--color-accent);
    transform-origin: top center;
    z-index: 0;
  }
  .steps-section.fade-in-section .values-grid--steps::after { transform: scaleY(0); }
  .steps-section.fade-in-section.is-visible .values-grid--steps::after {
    transform: scaleY(1);
    transition: transform 1.2s ease 0.1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-section .value-step,
  .steps-section .value-step::after,
  .steps-section .values-grid--steps::after {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ---------- Prijzen ---------- */

.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  padding: 4px;
  margin: 0 auto 40px;
}
.pricing-toggle button {
  border: none;
  background: none;
  padding: 10px 20px;
  border-radius: calc(var(--radius-button) - 2px);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}
.pricing-toggle button.is-active { background: var(--color-accent); color: var(--color-accent-contrast); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.pricing-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
}
.pricing-card__label {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-radius: var(--radius-button);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-card__price { font-family: var(--font-heading); font-size: 1.8rem; margin: 8px 0; }
.pricing-card__note { font-size: 0.85rem; color: var(--color-text-muted); }
.pricing-card__features {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.pricing-card__features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
}
.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; text-align: center; }
[data-mode] { display: none; }
[data-mode].is-visible { display: block; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-compare {
  margin-top: 32px;
  overflow-x: auto;
}
.pricing-compare table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pricing-compare th, .pricing-compare td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.pricing-compare th:first-child, .pricing-compare td:first-child {
  text-align: left;
  font-weight: 600;
}
.pricing-compare thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--color-bg-panel);
}
.pricing-compare tbody tr:last-child td { border-bottom: none; }
.pricing-compare__note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- FAQ (native details/summary, geen JS nodig) ---------- */

.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* ---------- CTA-blok ---------- */

.cta-block {
  text-align: center;
  padding: 48px;
  background: var(--color-bg-panel);
  border-radius: var(--radius-panel);
}
.cta-block .guarantees { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 20px 0; font-size: 0.9rem; color: var(--color-text-muted); }

.faq-question-form {
  max-width: 480px;
  margin: 24px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-question-form__row { display: flex; flex-direction: column; gap: 6px; }
.faq-question-form__row label { font-weight: 600; font-size: 0.9rem; }
.faq-question-form__row input,
.faq-question-form__row textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-bg);
  color: var(--color-text);
}
.faq-question-form__row textarea { resize: vertical; }
.faq-question-form button[type="submit"] { align-self: center; }
.faq-question-form__status { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.faq-question-form__status:empty { display: none; }

/* ---------- Wizard ---------- */

.wizard {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.wizard__progress {
  height: 6px;
  background: var(--color-bg-panel);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.wizard__progress-bar {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.wizard__step-indicator {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.wizard__body { display: grid; gap: 12px; margin: 20px 0; }
.wizard__input {
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 1rem;
}
.wizard__option {
  text-align: left;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-bg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}
.wizard__option.is-selected {
  border-color: var(--color-accent);
  border-width: 2px;
  color: var(--color-accent);
  font-weight: 600;
}
.wizard__hint { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; }
.wizard__summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.wizard__summary dt { font-weight: 600; }
.wizard__summary dd { margin: 0; color: var(--color-text-muted); }
.wizard__summary-change {
  justify-self: start;
  border: none;
  background: none;
  padding: 0;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Honeypot-veld tegen spambots: onzichtbaar en onbereikbaar voor mensen
   (buiten beeld gepositioneerd, niet display:none/visibility:hidden, zodat
   eenvoudige bot-scripts die op die eigenschappen controleren het toch
   invullen), maar blijft aanwezig in de DOM voor formulier-invullende bots. */
.wizard__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Chat-widget (chat.js, op elke pagina) */

.chat-widget__bel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-widget__bel:hover { opacity: 0.92; }
.chat-widget__bel-icoon { width: 26px; height: 26px; display: block; }
.chat-widget__bel svg { width: 26px; height: 26px; display: block; }

.chat-widget__teaser {
  position: fixed;
  right: 5.5rem;
  bottom: 1.75rem;
  z-index: 1000;
  max-width: min(18rem, calc(100vw - 8rem));
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-widget__teaser-tekst { cursor: pointer; color: var(--color-text); }
.chat-widget__teaser-sluit {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-muted);
  padding: 0;
  flex-shrink: 0;
}

.chat-widget__paneel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 1001;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  /* one-off: panel needs a deeper shadow than --shadow-card */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .chat-widget__paneel { animation: chat-widget-in 0.22s ease both; }
}
@keyframes chat-widget-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.chat-widget__balk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-bg-panel);
  border-bottom: 1px solid var(--color-border);
}
/* Vaste lichte avatar-achtergrond in beide thema's, zodat het donkere merk altijd leesbaar blijft. */
.chat-widget__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chat-widget__avatar svg { width: 22px; height: 22px; display: block; }
.chat-widget__titel-wrap { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.chat-widget__titel-rij { display: flex; align-items: center; gap: 7px; }
.chat-widget__titel { font-weight: 700; font-size: 0.95rem; color: var(--color-text); }
.chat-widget__sub { font-size: 0.76rem; color: var(--color-text-muted); }
.chat-widget__status-stip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}
.chat-widget__sluit {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  color: var(--color-text-muted);
  border-radius: var(--radius-button);
}
.chat-widget__sluit svg { width: 16px; height: 16px; display: block; }
.chat-widget__sluit:hover { color: var(--color-text); }

.chat-widget__berichten {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-widget__rij { display: flex; gap: 8px; align-items: flex-end; max-width: 90%; }
.chat-widget__rij--bot { align-self: flex-start; }
.chat-widget__rij--user { align-self: flex-end; }
.chat-widget__rij-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.chat-widget__rij-avatar svg { width: 17px; height: 17px; display: block; }
.chat-widget__bubbel {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-widget__rij--user .chat-widget__bubbel {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-bottom-right-radius: 4px;
}
.chat-widget__rij--bot .chat-widget__bubbel {
  background: var(--color-bg-panel);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.chat-widget__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  background: var(--color-text-muted);
  vertical-align: text-bottom;
  animation: chat-widget-cursor 1s step-end infinite;
}
@keyframes chat-widget-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.chat-widget__acties { padding: 24px 14px 4px; }
.chat-widget__actie {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.chat-widget__actie:hover { opacity: 0.92; }
.chat-widget__actie:disabled { opacity: 0.45; cursor: not-allowed; }
.chat-widget__actie svg { width: 15px; height: 15px; display: block; }

.chat-widget__invoer { display: flex; gap: 8px; padding: 12px 14px 6px; }
.chat-widget__veld {
  flex: 1;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.chat-widget__veld:disabled { background: var(--color-bg-panel); }
.chat-widget__verstuur {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-widget__verstuur svg { width: 17px; height: 17px; display: block; }
.chat-widget__verstuur:hover { opacity: 0.92; }
.chat-widget__verstuur:disabled { opacity: 0.45; cursor: not-allowed; }

.chat-widget__note {
  margin: 0;
  padding: 2px 16px 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.chat-widget__voetnoot { margin: 0; padding: 2px 16px 12px; }
.chat-widget__voetnoot-klein { display: block; font-size: 0.72rem; line-height: 1.4; color: var(--color-text-muted); }
.chat-widget__voetnoot-klein a { color: var(--color-accent); }

.chat-widget__lead {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.chat-widget__lead-intro { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.chat-widget__lead-rij { display: flex; flex-direction: column; gap: 4px; }
.chat-widget__lead-label { font-size: 0.82rem; font-weight: 600; }
.chat-widget__lead-veld {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.chat-widget__lead-privacy { margin: 0; font-size: 0.74rem; color: var(--color-text-muted); }
.chat-widget__lead-privacy a { color: var(--color-accent); }
.chat-widget__lead-verzend {
  align-self: flex-start;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.chat-widget__lead-verzend:disabled { opacity: 0.45; cursor: not-allowed; }
.chat-widget__lead-status { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }
.chat-widget__lead-klaar {
  align-self: stretch;
  margin: 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  background: var(--color-bg-panel);
  border-radius: var(--radius-card);
}

@media (max-width: 40rem) {
  .chat-widget__paneel {
    inset: 0;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .chat-widget__teaser {
    right: 5.5rem;
    left: 1rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-widget__paneel { animation: none; }
  .chat-widget__cursor { animation: none; opacity: 1; }
  .chat-widget__berichten { scroll-behavior: auto; }
}
