/* ============ Fonts ============ */
@font-face { font-family: 'Neue Regrade'; src: url('../assets/fonts/NeueRegrade-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Regrade'; src: url('../assets/fonts/NeueRegrade-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Regrade'; src: url('../assets/fonts/NeueRegrade-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Regrade'; src: url('../assets/fonts/NeueRegrade-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../assets/fonts/IBMPlexMono-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }

/* ============ Tokens ============ */
:root {
  --blue: #004CBB;
  --blue-light: #6492D6;
  --blue-dark: #091262;
  --gray-light: #D8D7D7;
  --white: #FFFFFF;
  --black: #000000;

  --font-head: 'Neue Regrade', 'Syne', 'Montserrat', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Section theme tokens — overridden per-section by .on-light */
  --fg: var(--white);
  --fg-soft: rgba(255, 255, 255, 0.85);
  --fg-softer: rgba(255, 255, 255, 0.8);
  --divider: rgba(255, 255, 255, 0.28);
  --divider-strong: rgba(255, 255, 255, 0.5);
  --kicker-color: rgba(255, 255, 255, 0.85);
  --btn-solid-bg: var(--white);
  --btn-solid-fg: var(--blue);
  --pillar-icon-color: var(--white);
  --focus-color: var(--white);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.25vw + 0.875rem, 1.125rem);
  line-height: 1.8;
  color: var(--fg);
  background: linear-gradient(172deg,
    #0a4fbe 0%,
    #004cbb 22%,
    #0e3894 44%,
    #091262 66%,
    #0d2f82 84%,
    #004cbb 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { color: var(--fg); }

h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw + 1rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw + 0.6rem, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
}
.site-footer a:focus-visible { outline-color: var(--blue); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(9, 18, 98, 0.28); }

.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--blue); }

.btn-wide { width: min(560px, 100%); }

.nav-cta-mobile { display: none; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: padding 0.35s ease;
}

.site-header.is-scrolled {
  background: var(--white);
  box-shadow: 0 4px 24px rgba(9, 18, 98, 0.14);
}
.site-header.is-scrolled .header-inner { padding-block: 12px; }
.site-header.is-scrolled .logo-mark { height: 32px; }
.site-header.is-scrolled .logo-word,
.site-header.is-scrolled .nav-link { color: var(--blue); }
.site-header.is-scrolled .nav-link::after { background: var(--blue); }
.site-header.is-scrolled .btn-outline { border-color: var(--blue); color: var(--blue); }
.site-header.is-scrolled .btn-outline:hover { background: var(--blue); color: var(--white); }
.site-header.is-scrolled .bar { background: var(--blue); }

/* Header CTA: white by default, blue on hover — reversed from the generic
   outline button, with a shadow so it reads as the primary action rather
   than blending into the nav row. */
.site-header .nav-cta {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  box-shadow: 0 4px 16px rgba(9, 18, 98, 0.28);
}
.site-header .nav-cta:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(0, 76, 187, 0.4);
}
.site-header.is-scrolled .nav-cta {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(9, 18, 98, 0.16);
}
.site-header.is-scrolled .nav-cta:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(0, 76, 187, 0.35);
}
body.nav-open .nav-toggle .bar { background: var(--white); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-mark { height: 44px; width: auto; transition: height 0.35s ease; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-footer .logo-word { color: var(--blue); }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }

.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--white);
  text-decoration: none;
  padding: 10px 2px;
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-link:hover { transform: translateY(-1px); opacity: 0.85; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--white);
  transition: right 0.25s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }

.nav-toggle { display: none; }

/* ============ Side dot navigation ============ */
.side-dots {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 9px;
  background: rgba(9, 18, 98, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}
.dot-mark {
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background-color 0.25s ease;
}
.dot:hover .dot-mark { background: rgba(255, 255, 255, 0.85); }
.dot.is-active .dot-mark { width: 10px; height: 10px; background: var(--white); }
.dot:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

@media (max-width: 900px) {
  .side-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dot-mark { transition: none; }
}

/* ============ Squares (pixel decor) ============ */
.squares {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.square { position: absolute; display: block; will-change: transform; }
.square.drifting { animation: drift 9s ease-in-out infinite alternate; }
@media (min-width: 769px) {
  .site-footer .squares { display: none; }
}
@keyframes drift {
  from { translate: 0 0; }
  to { translate: 0 -16px; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 170px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-content { max-width: 620px; }
.hero-content .kicker { margin-bottom: 18px; }
.hero-h1 { font-size: clamp(31px, 5vw, 60px); }
.hero-lead { margin-top: 40px; max-width: 560px; }
.usp-badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.usp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.usp-badge:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.flag-nl { display: block; flex-shrink: 0; border-radius: 2px; }
.usp-hosting-short { display: none; }
.hero .btn { margin-top: 36px; }
.hero .cta-row { justify-content: flex-start; }

.hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero-visual-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  box-shadow: 0 28px 72px rgba(9, 18, 98, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--white);
}
@media (max-width: 980px) {
  .hero .container { display: block; }
  .hero-visual { display: none; }
  /* On mobile the hero video switches to a vertical (9:16) source — shown
     small and centered rather than stretched full-width like the desktop
     16:9 cut, so it reads as a phone-sized preview instead of dominating
     the screen. */
  .hero-visual.hero-visual-mobile-space {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 24px auto 0;
  }
  .hero-visual-mobile-space .hero-visual-video { aspect-ratio: 9 / 16; }
  .hero-lead { margin-top: 26px; }
  .usp-badges { margin-top: 18px; }
  .usp-hosting-full { display: none; }
  .usp-hosting-short { display: inline; }
  .usp-nl-text { display: none; }
  .hero .cta-row { gap: 12px; margin-top: 30px; }
  .hero .cta-row .btn { margin-top: 0; }
}

/* ============ Sections ============ */
.section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 152px);
  transition: background-color 0.3s ease;
}

#werkwijze {
  background: linear-gradient(172deg, #12409a 0%, #1f5fc4 100%);
}
#prijzen {
  background: linear-gradient(172deg, #2f66c9 0%, #6492d6 100%);
}

.section.on-light {
  background: var(--white);
  color: var(--fg);
  --fg: var(--blue-dark);
  --fg-soft: rgba(9, 18, 98, 0.75);
  --fg-softer: rgba(9, 18, 98, 0.66);
  --divider: rgba(9, 18, 98, 0.16);
  --divider-strong: rgba(9, 18, 98, 0.28);
  --kicker-color: var(--blue);
  --btn-solid-bg: var(--blue);
  --btn-solid-fg: var(--white);
  --pillar-icon-color: var(--blue);
  --focus-color: var(--blue);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kicker-color);
}

.section-head h2 { margin-top: 22px; max-width: 680px; }

.rule {
  height: 1px;
  background: var(--divider-strong);
  margin-top: 44px;
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 96px);
}

.cta-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin-top: 44px; }

/* Shared lead paragraph, used by Product / Oplossing / Prijzen */
.section-lead {
  margin-top: clamp(40px, 6vw, 64px);
  max-width: 720px;
  color: var(--fg-soft);
}

/* Product: pillar block grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
}
.pillar-card {
  padding: 36px 28px;
}
.pillar-icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--blue);
  margin-bottom: 20px;
}
.pillar-icon svg { display: block; width: 100%; height: 100%; }
.pillar-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.3;
}
.pillar-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 76, 187, 0.05);
  border: 1px solid var(--divider);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--fg-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.pillar-list li:hover {
  border-color: var(--blue);
  background: rgba(0, 76, 187, 0.1);
  transform: translateX(3px);
}
.pillar-chip-icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--blue);
}

/* Werkwijze steps */
.steps {
  list-style: none;
  max-width: 760px;
  margin-left: auto;
  margin-top: clamp(48px, 7vw, 80px);
}
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 26px;
  padding-block: 26px;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
}
.step-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.step-body ul { list-style: none; margin-top: 14px; }
.step-body li { position: relative; padding-left: 1.6em; margin-bottom: 6px; }
.step-body li::before { content: '\2022'; position: absolute; left: 0; }

/* Oplossing: icon block grid */
.challenge-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 7vw, 80px);
}
.challenge-item {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 28px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.challenge-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.challenge-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--blue);
  margin-bottom: 18px;
}
.challenge-icon svg { display: block; width: 100%; height: 100%; }
.challenge-icon-flag { height: 21px; }
.challenge-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
}
.challenge-body p {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--fg-soft);
}

/* Over ons */
.about { align-items: center; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); margin-top: 0; }
.about-left h2 { margin-top: 22px; max-width: 560px; }
.about-left .rule { max-width: 560px; }
.about-left .btn { margin-top: 44px; }
.about-right p { text-align: center; max-width: 460px; margin-inline: auto; }

/* Team (merged into Over ons) */
.team-subhead {
  margin-top: clamp(64px, 9vw, 104px);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--divider);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 20px;
  margin-top: 40px;
}
.team-card { text-align: center; }
.member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(0, 76, 187, 0.08);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  overflow: hidden;
}
.member-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  opacity: 0.35;
}
.member-name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.0625rem;
}
.member-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.member-bio {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-softer);
}
.member-linkedin {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  color: var(--fg-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.member-linkedin svg { display: block; flex-shrink: 0; }
.member-linkedin:hover { border-color: var(--blue); color: var(--blue); }

/* FAQ */
.faq-list {
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 860px;
}
.faq-item { border-top: 1px solid var(--divider); }
.faq-item:last-child { border-bottom: 1px solid var(--divider); }
.faq-item h3 { margin: 0; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.4;
  color: var(--fg);
}

.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--blue);
  transition: transform 0.3s var(--ease-out);
}
.faq-icon::before { width: 18px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 18px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  padding: 0 32px 26px 4px;
  max-width: 720px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--fg-soft);
}

/* CTA / demo */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.cta-title {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw + 0.8rem, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta-text { margin-top: 32px; max-width: 660px; }
.section-cta .btn { margin-top: 40px; }
.cta-note {
  margin-top: 8px;
  padding: 28px 32px;
  border-left: 3px solid var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.cta-note-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.cta-note p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--fg-soft);
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--black);
  padding-block: 72px 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 120px;
}
.footer-brand { max-width: 280px; }
.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 16px;
}
.footer-nav {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 40px;
  align-content: start;
}
.footer-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.125rem;
  color: #111111;
  text-decoration: none;
  padding-block: 8px;
}
.footer-nav a:hover { color: var(--blue); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  align-items: center;
  gap: 10px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  color: #111111;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.footer-social-link svg { display: block; flex-shrink: 0; }
.footer-social-link:hover { border-color: var(--blue); color: var(--blue); background: rgba(0, 76, 187, 0.06); }

.footer-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #555555;
}
.footer-meta a { color: var(--blue); text-decoration: none; padding-block: 10px; margin-block: -10px; }
.footer-made-in {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--gray-light);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #555555;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.footer-made-in:hover {
  border-color: var(--blue);
  background: rgba(0, 76, 187, 0.05);
  transform: translateY(-1px);
}
.footer-meta > *:not(:last-child) { margin-right: 16px; }
.footer-meta > *:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--gray-light);
  margin-left: 16px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 36px; width: 100%; }
  .footer-brand { max-width: none; }
  .footer-nav { column-gap: 24px; }
  .footer-made-in { margin-top: 16px; }
}

/* ============ Cookie consent ============ */
body.cookie-lock { overflow: hidden; }

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 18, 98, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-overlay[hidden] { display: none; }

.cookie-card {
  --focus-color: var(--blue);
  width: 100%;
  max-width: 560px;
  background: var(--white);
  padding: 36px;
  box-shadow: 0 24px 64px rgba(9, 18, 98, 0.35);
}
.cookie-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue-dark);
}
.cookie-text {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(9, 18, 98, 0.75);
}
.cookie-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  flex: 1 1 auto;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.cookie-btn-accept { background: var(--blue); color: var(--white); }
.cookie-btn-accept:hover { background: var(--blue-dark); }
.cookie-btn-reject { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.cookie-btn-reject:hover { background: var(--blue-dark); color: var(--white); }

@media (max-width: 640px) {
  .cookie-overlay { padding: 16px; }
  .cookie-card { padding: 28px 24px; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; }
}

/* ============ ROI calculator (Prijzen) ============ */
.roi-calc {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 64px);
  max-width: 900px;
  background: var(--white);
  color: var(--blue-dark);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 32px 90px rgba(9, 18, 98, 0.3);
}
.roi-calc-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.roi-calc-title {
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw + 0.7rem, 2.1rem);
  line-height: 1.2;
  color: var(--blue-dark);
}
.roi-calc-lead {
  margin-top: 12px;
  max-width: 620px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(9, 18, 98, 0.68);
}
.roi-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: 34px;
}
.roi-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.roi-slider-label label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(9, 18, 98, 0.6);
}
.roi-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.roi-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 16px;
  background: linear-gradient(to right,
    var(--blue) 0%, var(--blue) var(--roi-fill, 18%),
    #E3E5EC var(--roi-fill, 18%), #E3E5EC 100%);
  cursor: pointer;
}
.roi-slider input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 6px;
  background: transparent;
}
.roi-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: 0 6px 16px rgba(0, 76, 187, 0.35);
  cursor: pointer;
}
.roi-slider input[type="range"]::-moz-range-track { height: 6px; background: #E3E5EC; }
.roi-slider input[type="range"]::-moz-range-progress { height: 6px; background: var(--blue); }
.roi-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 76, 187, 0.35);
  cursor: pointer;
}
.roi-slider input[type="range"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.roi-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(9, 18, 98, 0.4);
}
.roi-toggle-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(9, 18, 98, 0.6);
}
.roi-toggle-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.roi-toggle-btn {
  position: relative;
  display: block;
  padding: 14px 34px 14px 14px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--blue-dark);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.roi-toggle-name { display: block; }
.roi-tip-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.2s var(--ease-out);
}
.roi-toggle-btn:hover { border-color: var(--blue); }
.roi-toggle-btn:hover .roi-tip-mark { opacity: 0.75; }
.roi-toggle-btn.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}
.roi-toggle-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Info tooltips (intensiteit-toggles + kaartlabels) */
.roi-tip-btn {
  appearance: none;
  -webkit-appearance: none;
  margin-left: 7px;
  width: 15px;
  height: 15px;
  padding: 0;
  vertical-align: middle;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  opacity: 0.5;
  cursor: help;
  transition: opacity 0.2s var(--ease-out);
}
.roi-tip-btn:hover,
.roi-tip-btn:focus-visible { opacity: 1; }
.roi-calc [data-tip] { position: relative; }
.roi-calc [data-tip]::after,
.roi-calc [data-tip]::before {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  z-index: 30;
}
.roi-calc [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 244px;
  padding: 10px 12px;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(9, 18, 98, 0.28);
  transform: translateY(4px);
}
.roi-calc [data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 16px;
  border: 6px solid transparent;
  border-top-color: var(--blue-dark);
  transform: translateY(4px);
}
.roi-calc [data-tip].roi-tip-end::after { left: auto; right: 0; }
.roi-calc [data-tip].roi-tip-end::before { left: auto; right: 16px; }
.roi-calc .roi-tip-btn::after { bottom: auto; top: calc(100% + 10px); }
.roi-calc .roi-tip-btn::before {
  bottom: auto;
  top: calc(100% + 4px);
  border-top-color: transparent;
  border-bottom-color: var(--blue-dark);
}
.roi-calc [data-tip]:hover::after,
.roi-calc [data-tip]:hover::before,
.roi-calc [data-tip]:focus-visible::after,
.roi-calc [data-tip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.roi-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.roi-card {
  border: 1px solid var(--gray-light);
  padding: 24px 22px;
}
.roi-card-local {
  border-color: rgba(0, 76, 187, 0.4);
  background: rgba(0, 76, 187, 0.035);
}
.roi-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(9, 18, 98, 0.55);
}
.roi-card-amount {
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}
.roi-card-local .roi-card-amount { color: var(--blue); }
.roi-card-sub {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(9, 18, 98, 0.55);
}
.roi-card-tier {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 76, 187, 0.18);
}
.roi-tier-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(9, 18, 98, 0.68);
}
.roi-banner {
  margin-top: 24px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
  line-height: 1.4;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.roi-banner[data-state="save"] { background: #12805C; color: #FFFFFF; }
.roi-banner[data-state="neutral"] { background: #ECEEF1; color: rgba(9, 18, 98, 0.75); }
.roi-warning {
  margin-top: 16px;
  padding: 15px 18px;
  border-left: 3px solid #C08A00;
  background: rgba(192, 138, 0, 0.09);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #7A5A00;
}
.roi-fineprint {
  margin-top: 16px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(9, 18, 98, 0.5);
}
.roi-legal {
  max-width: 900px;
  margin-top: 18px;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.pillar-card:nth-child(2), .step:nth-child(2), .team-card:nth-child(2) { transition-delay: 0.12s; }
.pillar-card:nth-child(3), .step:nth-child(3), .team-card:nth-child(3) { transition-delay: 0.24s; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .challenge-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split, .about, .pillars-grid, .cta-grid { grid-template-columns: 1fr; }
  .challenge-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-note { margin-top: 24px; }
  .cta-row { justify-content: flex-start; }
  .steps { margin-left: 0; }
  .about-right p { text-align: left; max-width: 560px; margin-inline: 0; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}

@media (max-width: 640px) {
  .roi-controls { grid-template-columns: 1fr; }
  .roi-toggle-options { grid-template-columns: 1fr; }
  .roi-cards { grid-template-columns: 1fr; }
  .roi-slider-label { flex-wrap: wrap; }
  .roi-count { font-size: 1.8rem; }
  .roi-banner { padding: 18px 18px; }
  .roi-calc [data-tip]::after { max-width: 220px; }
  /* Kaart-tooltips (Cloud AI / Lokale AI): op mobiel horizontaal gecentreerd in de kaart (≈ midden van het scherm) */
  .roi-card { position: relative; }
  .roi-calc .roi-tip-btn { position: static; }
  .roi-calc .roi-tip-btn.roi-tip-start::after,
  .roi-calc .roi-tip-btn.roi-tip-end::after {
    position: absolute;
    left: 50%;
    right: auto;
    top: 48px;
    bottom: auto;
    width: calc(100% - 24px);
    max-width: none;
    padding: 13px 15px;
    font-size: 0.74rem;
    line-height: 1.55;
    transform: translateX(-50%) translateY(4px);
    z-index: 40;
  }
  .roi-calc .roi-tip-btn.roi-tip-start::before,
  .roi-calc .roi-tip-btn.roi-tip-end::before { display: none; }
  .roi-calc .roi-tip-btn:hover::after,
  .roi-calc .roi-tip-btn:focus::after,
  .roi-calc .roi-tip-btn:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .challenge-list { grid-template-columns: 1fr; }
}

/* Header nav switches to the hamburger earlier than the general mobile
   breakpoint below — six nav links plus "Boek een kennismaking" no longer
   fit in one row past this width. */
@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--blue-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-link { font-size: 1.5rem; padding: 14px; }

  /* The header CTA lives outside the collapsing nav on mobile (persistently
     visible next to the toggle), so the copy inside the dropdown is hidden. */
  .site-nav .nav-cta { display: none; }

  /* Mobile overlay is always dark, regardless of the header's scrolled (white) state */
  body.nav-open .site-nav .nav-link { color: var(--white); }
  body.nav-open .site-nav .nav-link::after { background: var(--white); }

  .header-inner { gap: 12px; }
  .nav-cta-mobile {
    display: inline-flex;
    padding: 10px 16px;
    min-height: 40px;
    font-size: 0.75rem;
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(9, 18, 98, 0.3);
    flex-shrink: 0;
  }
  .nav-cta-mobile:hover,
  .nav-cta-mobile:active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
  }
  .site-header.is-scrolled .nav-cta-mobile {
    border-color: var(--blue);
  }
  .site-header.is-scrolled .nav-cta-mobile:hover,
  .site-header.is-scrolled .nav-cta-mobile:active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 110;
    width: 48px;
    height: 48px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px auto;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  body.nav-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .bar:nth-child(2) { opacity: 0; }
  body.nav-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 768px) {
  .hero { padding-top: 128px; padding-bottom: 72px; }
  .square { scale: 0.65; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .square.drifting { animation: none; }
  .btn, .btn-arrow, .logo-mark, .header-inner { transition: none; }
  .faq-answer, .faq-icon::before, .faq-icon::after { transition: none; }
}
