/* DIENSTCLIP — styled after DESIGN.md (Lovable-inspired system).
   Warm cream paper, charcoal ink, borders instead of shadows, generous editorial spacing.
   Colour comes only from the product photography (plus a faint wash of the clip colours in the hero). */

:root {
  /* Dark edition: the Lovable system inverted — warm near-black paper, warm off-white ink.
     Token names are kept from the light version: --cream = page ground, --charcoal = ink. */
  --cream: #151514;
  --cream-deep: #1c1b19;           /* the one tinted container (privacy panel) */
  --surface: #191917;              /* cards, a hair above the page */
  --surface-raised: #23221f;       /* icon pills, open FAQ item */
  --charcoal: #f3f0e8;
  --off-white: #fcfbf8;
  --text-strong: rgba(243, 240, 232, 0.86);
  --muted: #a29f97;
  --border: #2b2a27;
  --border-strong: rgba(243, 240, 232, 0.32);
  --tint: rgba(243, 240, 232, 0.06);
  --btn-bg: #f3f0e8;
  --btn-fg: #151514;
  color-scheme: dark;

  --inset: rgba(255, 255, 255, 0.5) 0 0.5px 0 0 inset, rgba(0, 0, 0, 0.35) 0 0 0 0.5px inset, rgba(0, 0, 0, 0.35) 0 1px 2px 0;
  --inset-dark: rgba(255, 255, 255, 0.07) 0 0.5px 0 0 inset, rgba(0, 0, 0, 0.5) 0 0 0 0.5px inset, rgba(0, 0, 0, 0.3) 0 1px 2px 0;
  --focus: rgba(0, 0, 0, 0.5) 0 4px 12px, 0 0 0 2px rgba(96, 165, 250, 0.7);

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;
  --section: 128px;
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 600; color: var(--charcoal); text-wrap: balance; }
.display { font-size: 60px; line-height: 1.05; letter-spacing: -1.5px; }
.h2 { font-size: 48px; line-height: 1.05; letter-spacing: -1.2px; }
.h3 { font-size: 36px; line-height: 1.1; letter-spacing: -0.9px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--text-strong); }
.muted { color: var(--muted); }
.caption { font-size: 14px; color: var(--muted); }
/* headings written in normal sentence case in the HTML, shown in capitals */
.caps { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;                      /* <button>s (form submit) show the hand too, like links */
  transition: opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:active { opacity: 0.8; transform: translateY(1px) scale(0.98); }   /* pressed */
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--inset); }
.btn-dark:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pill icon container (Lovable's pill / icon button treatment) */
.icon-pill {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--surface-raised);
  box-shadow: var(--inset-dark);
  color: var(--charcoal);
}
.icon-pill svg { width: 20px; height: 20px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.img-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--cream-deep); }

/* ---------- Nav ---------- */
/* Tall at the top of the page, compact (64px) once you scroll (.is-compact, set by script.js).
   Fixed rather than sticky, so the shrink never shifts the page content. */
.nav {
  --nav-h: 92px;
  --logo-h: 56px;
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(21, 21, 20, 0);   /* fully clear over the hero, so the glow runs through */
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.nav.is-compact {
  --nav-h: 64px;
  --logo-h: 42px;
  background: rgba(21, 21, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); transition: height 0.35s cubic-bezier(.2, .8, .2, 1); }
.nav .logo img { height: var(--logo-h); width: auto; transition: height 0.35s cubic-bezier(.2, .8, .2, 1); }
/* the hero reserves room for the tall header, so its glow also shows behind the header */
html { scroll-padding-top: 72px; }
/* Desktop: menu items inline, pushed to the right next to the order button */
.nav .wrap { gap: 8px; }
.nav-main { margin-left: auto; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: block;
  white-space: nowrap;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav-menu a:hover { background: var(--tint); }
.nav-menu a[aria-current="page"] { background: var(--tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { min-height: 38px; padding: 7px 16px; margin-left: 8px; font-size: 15px; }
.nav-panel-extra { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hamburger, only when the menu is collapsed */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 9999px;
  background: var(--surface-raised);
  box-shadow: var(--inset-dark);
  color: var(--charcoal);
  cursor: pointer;
  place-items: center;
  transition: background-color .3s ease, color .3s ease, transform .15s ease;
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1), top .45s cubic-bezier(.7, 0, .2, 1), width .45s cubic-bezier(.7, 0, .2, 1);
}
.nav-toggle-bars span:first-child { top: 1px; width: 18px; }
.nav-toggle-bars span:last-child { top: 9px; width: 11px; }          /* short second bar: a bit more character */
.nav.is-open .nav-toggle { background: #CFEA22; color: #151514; }
.nav.is-open .nav-toggle-bars span:first-child { top: 5px; width: 18px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:last-child { top: 5px; width: 18px; transform: rotate(-45deg); }

/* Collapsed menu (hamburger): set by script.js on small screens AND whenever the menu items
   no longer fit on one line - so new menu items can simply be added to the list. */
.nav.is-collapsed .nav-toggle { display: grid; }
.nav.is-collapsed .nav-cta { margin-left: 0; }
/* full-screen panel below the bar: rolls open from the top (clip-path), soft glow at the bottom;
   any number of items fits (it scrolls) */
.nav.is-collapsed .nav-main {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  margin: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #121211;
  background-image:
    radial-gradient(70% 45% at 15% 100%, rgba(202, 241, 0, 0.10), transparent 70%),
    radial-gradient(70% 45% at 95% 85%, rgba(137, 97, 254, 0.16), transparent 70%);
  z-index: 2;
  padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .55s;
}
.nav.is-collapsed.is-open .nav-main {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.nav.is-collapsed.is-open { background: rgba(18, 18, 17, 0.98); border-bottom-color: transparent; }

.nav.is-collapsed .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
.nav.is-collapsed .nav-menu li { border-bottom: 1px solid var(--border); }
.nav.is-collapsed .nav-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: clamp(30px, 9vw, 44px); font-weight: 600; letter-spacing: -1px; line-height: 1.05;
  padding: 20px 2px; border-radius: 0;
  white-space: normal;
  transition: color .2s ease, padding-left .3s cubic-bezier(.2, .8, .2, 1);
}
.nav.is-collapsed .nav-menu a::after {                         /* arrow */
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .35;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nav.is-collapsed .nav-menu a:hover, .nav.is-collapsed .nav-menu a:focus-visible { background: transparent; color: #CFEA22; padding-left: 8px; outline: none; }
.nav.is-collapsed .nav-menu a:hover::after, .nav.is-collapsed .nav-menu a:focus-visible::after { opacity: 1; transform: translateX(4px); }

/* bottom of the panel: order button + contact */
.nav.is-collapsed .nav-panel-extra {
  display: grid; gap: 16px;
  margin-top: auto; padding-top: 40px;
}
.nav-panel-cta { justify-content: center; min-height: 52px; font-size: 16px; }
.nav-panel-contact { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.nav-panel-contact a { text-decoration: none; }
.nav-panel-contact a:hover { color: var(--charcoal); }

/* items rise in one after another once the panel has rolled open (works for any number of items) */
.nav.is-collapsed .nav-menu li, .nav.is-collapsed .nav-panel-extra {
  opacity: 0; transform: translateY(18px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.nav.is-collapsed.is-open .nav-menu li, .nav.is-collapsed.is-open .nav-panel-extra {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 220ms);
}
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .nav.is-collapsed .nav-main { clip-path: none; }
}


/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: calc(92px + 112px) 64px; text-align: center; }
/* Warm wash in the clip colours. Once the page has loaded (html.is-loaded, set by script.js)
   the three glows descend one after another into place, then keep drifting very slowly. */
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow span {
  --s: min(68vw, 980px);
  position: absolute;
  width: var(--s);
  height: calc(var(--s) * 0.8);
  margin: calc(var(--s) * -0.4) 0 0 calc(var(--s) * -0.5);
  border-radius: 50%;
  filter: blur(30px);
}
.hero-glow .g-purple { left: 50%; top: 2%;  background: radial-gradient(closest-side, rgba(137, 97, 254, 0.14), transparent); --d: 0s; }
.hero-glow .g-lime   { left: 24%; top: 12%; background: radial-gradient(closest-side, rgba(202, 241, 0, 0.09), transparent); --d: 0.22s; }
.hero-glow .g-pink   { left: 76%; top: 10%; background: radial-gradient(closest-side, rgba(232, 72, 140, 0.1), transparent); --d: 0.4s; }
@keyframes glow-descend {
  from { opacity: 0; translate: 0 -42vh; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(3vw, 3vh) scale(1.08); }
}
html.js .hero-glow span { opacity: 0; }
html.js.is-loaded .hero-glow span {
  animation:
    glow-descend 2s cubic-bezier(.16, 1, .3, 1) var(--d) both,
    glow-drift 13s ease-in-out calc(var(--d) + 2s) infinite alternate;
}
html.js.is-loaded .hero-glow .g-lime { animation-duration: 2s, 17s; animation-direction: normal, alternate-reverse; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-glow span { opacity: 1; animation: none !important; }
}
/* two columns: text left, the rendered clips right */
.hero { text-align: left; padding-block: calc(92px + 56px) 48px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero-copy { display: grid; justify-items: start; gap: 20px; }
.hero .tagline { margin-top: 4px; }
.hero .lead { max-width: 560px; color: var(--muted); }
.hero .btn-row { justify-content: flex-start; margin-top: 8px; }
.hero .hero-intro { margin-top: 0; justify-self: center; width: min(520px, 100%); }
@media (max-width: 1023px) {
  .hero { text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; justify-items: center; }
  .hero-copy { justify-items: center; }
  .hero .btn-row { justify-content: center; }
  .hero .hero-intro { width: min(420px, 86%); }
}
.hero-img { width: min(400px, 78%); margin-top: 40px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.hero-intro { width: min(460px, 86%); height: auto; aspect-ratio: 5 / 6; display: block; }

/* ---------- Glow spots: the hero's soft colour wash, repeated in a few places ----------
   They fade/drift in when the section scrolls into view (.is-in, set by script.js). */
.has-glow { position: relative; isolation: isolate; overflow-x: clip; }
.scrub-pin { isolation: isolate; }
.glow-spot {
  position: absolute;
  z-index: -1;
  width: min(62vw, 860px);
  aspect-ratio: 5 / 4;
  margin: calc(min(62vw, 860px) * -0.4) calc(min(62vw, 860px) * -0.5);
  border-radius: 50%;
  filter: blur(34px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8vh) scale(0.94);
  transition: opacity 1.8s ease, transform 2.2s cubic-bezier(.16, 1, .3, 1);
}
.glow-spot.is-in { opacity: 1; transform: none; }
.gs-lime   { background: radial-gradient(closest-side, rgba(202, 241, 0, 0.13), transparent); }
.gs-purple { background: radial-gradient(closest-side, rgba(137, 97, 254, 0.2), transparent); }
.gs-pink   { background: radial-gradient(closest-side, rgba(232, 72, 140, 0.15), transparent); }
.gs-blue   { background: radial-gradient(closest-side, rgba(30, 100, 220, 0.22), transparent); }
@media (prefers-reduced-motion: reduce) {
  .glow-spot { transition: none; opacity: 1; transform: none; }
}

/* ---------- USP showcase (pinned, scroll-driven) ---------- */
.usp { position: relative; height: 320vh; }
.usp-pin {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  padding: 40px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow: hidden;
  isolation: isolate;
}
.usp-title { text-align: center; transition: opacity .6s ease, transform .6s ease; }
.usp-title span { color: var(--muted); }
.usp-stage {
  width: 100%; max-width: var(--max); height: 100%;
  display: grid; grid-template-columns: 1fr minmax(0, 1.6fr) 1fr; align-items: center; gap: 24px;
}
.usp-canvas { width: 100%; aspect-ratio: 1; max-height: 100%; justify-self: center; display: block; }
.usp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.usp-left { justify-items: end; text-align: right; }
.usp-item {
  display: grid; gap: 6px; max-width: 280px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.usp-item.is-in { opacity: 1; transform: none; }
/* the USPs are short sentences: sized so "Geoptimaliseerd" still fits on one line */
.usp-item strong { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.5px; font-weight: 600; color: var(--charcoal); }
.usp-item span { color: var(--muted); font-size: 16px; }
/* phones (and very short screens): no pinning, clip on top and the USPs stacked below it.
   Tablets keep the three-column, pinned layout. */
@media (max-width: 767px), (max-height: 640px) {
  .usp { height: auto; }
  .usp-pin { position: static; height: auto; padding-block: var(--section); }
  .usp-stage { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .usp-canvas { width: min(420px, 90%); order: -1; }
  .usp-list, .usp-left { justify-items: center; text-align: center; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .usp-item { opacity: 1; transform: none; transition: none; }
}

/* ---------- Image reveal: content width -> full width, then text (script.js sets --p 0..1) ---------- */
.reveal { --p: 0; position: relative; height: 260vh; margin-block: 32px; }
.reveal-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.reveal-frame {
  --w0: min(var(--max), 100vw - 2 * var(--gutter));
  --e: clamp(0, var(--p) / 0.6, 1);                      /* grows during the first 60 % */
  position: relative;
  margin: 0;
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--e));
  height: calc(62vh + 38vh * var(--e));
  border-radius: calc(16px * (1 - var(--e)));
  overflow: hidden;
  background: var(--surface);
}
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 55%; display: block;   /* keep the motorcycle in view */
  transform: scale(calc(1.08 - 0.08 * var(--e))); }
.reveal-frame::after {               /* darkens the photo as the text arrives, so it stays readable */
  content: ""; position: absolute; inset: 0;
  /* deepest right behind the text in the middle, lighter towards the edges so the photo still shows */
  background:
    radial-gradient(65% 55% at 50% 50%, rgba(14, 14, 13, 0.62), rgba(14, 14, 13, 0) 78%),
    linear-gradient(rgba(21, 21, 20, 0.48), rgba(21, 21, 20, 0.66));
  opacity: clamp(0, (var(--p) - 0.45) / 0.25, 1);
}
.reveal-text {
  --t: clamp(0, (var(--p) - 0.55) / 0.25, 1);         /* text fades in after the image is full width */
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  opacity: var(--t);
  transform: translateY(calc(24px * (1 - var(--t))));
}
.reveal-text .display { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.reveal-text .lead { color: rgba(247, 245, 240, 0.96); max-width: 560px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 16px rgba(0, 0, 0, 0.55); }
@media (prefers-reduced-motion: reduce) {
  .reveal { height: auto; }
  .reveal-pin { position: static; height: auto; }
  .reveal-frame { width: 100%; height: 80vh; border-radius: 0; }
  .reveal-frame img { transform: none; }
  .reveal-frame::after, .reveal-text { opacity: 1; transform: none; }
}

/* ---------- B2B page ---------- */
.accent { color: #CFEA22; }
.eyebrow-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.b2b-hero { padding-block: calc(92px + 72px) var(--section); }
.b2b-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.b2b-hero-copy { display: grid; gap: 18px; justify-items: start; }
.b2b-hero-copy .display { font-size: clamp(40px, 5.4vw, 60px); }
.b2b-kicker { margin: -10px 0 0; }
.b2b-hero-img { aspect-ratio: 3 / 2; }
.b2b-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.b2b-products { padding-block: 0 var(--section); }
.b2b-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.b2b-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.b2b-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.b2b-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.b2b-card:hover .b2b-card-img img { transform: scale(1.03); }
.b2b-card-body { display: grid; gap: 10px; align-content: start; padding: 28px; }
.b2b-card-body .caption { margin: 0; text-transform: uppercase; letter-spacing: .08em; }

.page-b2b .reveal-text .display { font-size: clamp(36px, 5vw, 60px); max-width: 900px; }
.page-b2b .reveal-text .lead { max-width: 640px; }   /* longer text on this page */
.reveal-text .caption { margin: 0; text-transform: uppercase; letter-spacing: .1em; color: rgba(247, 245, 240, 0.96); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

.b2b-quote { padding-block: var(--section); }
.b2b-quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.b2b-quote-copy { display: grid; gap: 20px; }
.b2b-contact { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); }
.b2b-contact a { color: var(--charcoal); }
.b2b-online { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.b2b-online .caption { margin: 0; }

.b2b-form { padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; color: var(--text-strong); }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border-strong); box-shadow: var(--focus); }
.field input[aria-invalid="true"] { border-color: #e8488c; }
.b2b-submit { justify-self: start; min-width: 160px; justify-content: center; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.form-status.is-error { color: #f2a3c4; }

/* Veiligheid page: B2B-style intro, the tips as a 2x2 grid of feature cards */
.tips-section { padding-block: 0 var(--section); }
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Installatie page: heading, then the three steps.
   Default (phones, no JS, reduced motion): photo cards side by side / stacked. */
.install-section { padding-block: calc(92px + 72px) var(--section); }
.install-head { display: grid; gap: 18px; justify-items: start; margin-bottom: 48px; }
.install-head .display { font-size: clamp(40px, 5.4vw, 60px); }
.install-lead { max-width: 620px; }
.install-steps { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.install-step {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;   /* same as .card */
}
.install-photo { aspect-ratio: 32 / 23; overflow: hidden; background: var(--cream-deep); }   /* photos are 1280x920 */
.install-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-text { display: grid; gap: 10px; align-content: start; padding: 28px; }

/* Animated (set by script.js on large screens): pinned for three screens of scrolling; the photos
   share one cell and fade into each other, the steps sit in a column next to them. */
.install-anim.is-anim { height: 300vh; }
/* the pinned block is a full screen high with its content centred: drop the heading's own margin */
.install-section:has(.is-anim) .install-head { margin-bottom: 0; }
.is-anim .install-pin {
  position: sticky; top: calc(64px + env(safe-area-inset-top, 0px));
  height: calc(100vh - 64px); display: grid; align-items: center;
}
.is-anim .install-steps {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto);
  column-gap: 64px; row-gap: 8px; align-items: center;
}
.is-anim .install-step { display: contents; }
.is-anim .install-photo {
  grid-column: 1; grid-row: 1 / span 3; align-self: center;
  max-height: calc(100vh - 64px - 64px);   /* always fits the screen, also on low laptop screens */
  border: 1px solid var(--border); border-radius: 16px;
  opacity: 0; transition: opacity .6s ease;
}
.is-anim .install-photo img { transform: scale(calc(1.02 + var(--t, 0) * 0.08)); transform-origin: 55% 60%; will-change: transform; }
.is-anim .install-step.is-current .install-photo { opacity: 1; }
.is-anim .install-step:nth-child(1) .install-text { grid-row: 1; }
.is-anim .install-step:nth-child(2) .install-text { grid-row: 2; }
.is-anim .install-step:nth-child(3) .install-text { grid-row: 3; }
.is-anim .install-text {
  grid-column: 2; padding: 18px 0 18px 24px; position: relative;
  opacity: .35; transition: opacity .4s ease;
}
/* progress line next to each step: fills while that step is on screen */
.is-anim .install-text::before, .is-anim .install-text::after {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px;
}
.is-anim .install-text::before { background: var(--border); }
.is-anim .install-text::after { background: #CFEA22; transform-origin: top; transform: scaleY(var(--fill, 0)); }
.is-anim .install-step.is-current .install-text { opacity: 1; }

/* 404 page: fills the screen so the footer stays at the bottom instead of floating mid-page */
.page-404 .contact-section { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }

/* Contact page: same two columns as the quote block, below the fixed header */
.contact-section { padding-block: calc(92px + 72px) var(--section); }
.contact-section .b2b-quote-copy { gap: 18px; justify-items: start; }
.contact-section .display { font-size: clamp(48px, 6.4vw, 80px); }

@media (max-width: 1023px) {
  .b2b-hero-grid, .b2b-quote-grid { grid-template-columns: 1fr; gap: 40px; }
  /* tablet: each step is a row, photo left and text right */
  .install-steps { grid-template-columns: 1fr; gap: 16px; }
  .install-step { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: none; }
  .install-photo { aspect-ratio: auto; min-height: 220px; height: 100%; }
  .install-text { align-content: center; padding: 28px 32px; }
}
@media (max-width: 639px) {
  /* phone: photo on top, text below, full width */
  .install-step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .install-photo { aspect-ratio: 32 / 23; min-height: 0; height: auto; }
  .install-text { padding: 20px 22px 24px; gap: 8px; }
  .install-text .h3 { font-size: 26px; }
  .install-head { margin-bottom: 32px; }
}
@media (max-width: 639px) {
  .b2b-hero, .contact-section, .install-section { padding-block: calc(76px + 40px) var(--section); }
  .b2b-cards, .tips { grid-template-columns: 1fr; }
  .b2b-card-body, .b2b-form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .b2b-submit { justify-self: stretch; }
}

/* ---------- Features ---------- */
.features-section { padding-block: 32px var(--section); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; gap: 12px; align-content: start; padding: 28px; }
.feature h3 { font-size: 20px; font-weight: 600; line-height: 1.25; margin-top: 8px; }
.feature p { color: var(--muted); }

/* ---------- Scroll-scrubbed video (license slides into the clip) ---------- */
/* The whole section takes on the video's colours as you scroll (set per frame by script.js
   from scrub-colors.js): cream while the clip is on the white studio background, then a
   top-to-bottom fade that continues the vest's neon band and dark fabric across the full width. */
.scrub { height: 280vh; background-color: var(--cream); transition: background-color 0.25s linear; }
.scrub-pin {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  /* full width so the colour fade spans the viewport; content still aligns to the page grid */
  padding: 32px max(var(--gutter), env(safe-area-inset-right, 0px), calc((100% - var(--max)) / 2))
           32px max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - var(--max)) / 2));
}
.scrub-media { order: 2; position: relative; }
.scrub-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* feather every edge so the video dissolves into the matching background */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
              linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.scrub-copy { display: grid; gap: 20px; align-content: center; padding-right: 32px; }
.scrub-copy > * { max-width: 540px; }
.scrub-copy .btn { margin-top: 8px; justify-self: start; }
.scrub.is-static { height: auto; }
.scrub.is-static .scrub-pin { position: relative; top: 0; height: auto; min-height: 720px; }

/* ---------- Split (image card + copy) ---------- */
.split-section { padding-block: var(--section); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .img-card { aspect-ratio: 4 / 5; }
.split .img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split .img-card .land-scrub { width: 100%; height: 100%; display: block; }
/* Animation without a card: no border, no fill, transparent frames straight on the page */
/* bleeds out of its column to the left edge of the screen, so it also uses the free space there */
.split .free-anim {
  --bleed: max(var(--gutter), (100vw - var(--max)) / 2);
  aspect-ratio: 3 / 4;
  /* right edge stays on the column, it grows to the left into the free space, up to 640px */
  width: min(calc(100% + var(--bleed)), 640px);
  justify-self: end;
}
.split .free-anim .land-scrub {
  width: 100%; height: 100%; display: block;
  /* fade in at the top and out at the bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
/* the text scrolls along normally, vertically centred next to the tall animation */
.split:has(.free-anim) { align-items: center; }
.split-copy { display: grid; gap: 20px; }
.split-copy .btn { margin-top: 8px; justify-self: start; }

/* Privacy: the one tinted container on the page */
.split-section.privacy { padding-top: 0; }
.panel { background: var(--cream-deep); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.panel .split { gap: 56px; }
.panel .img-card { aspect-ratio: 3 / 2; }
.panel .img-card img { object-position: 60% 80%; }

/* ---------- FAQ ---------- */
.faq-section { padding-block: var(--section) calc(var(--section) * 1.25); }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.section-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 40px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq details[open] { border-color: #3a3935; background: var(--surface-raised); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); }
.faq summary .icon-pill { width: 32px; height: 32px; flex: none; }
.faq summary .icon-pill svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.faq details[open] summary .icon-pill svg { transform: rotate(45deg); }
.faq details p { padding: 0 72px 22px 24px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.reviews { padding-block: 0 var(--section); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { display: grid; grid-template-rows: 1fr auto; gap: 24px; padding: 28px; }
.quote blockquote { font-size: 18px; line-height: 1.5; color: var(--text-strong); }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote cite { font-style: normal; font-size: 14px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
/* Full-width dark footer in the page palette: a hair lighter than the page, a hairline on top
   and a faint glow, so it reads as its own band. */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--charcoal);
  padding-top: 64px;
}
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 0;
  width: min(80vw, 1100px); aspect-ratio: 3 / 1;
  translate: -50% -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(137, 97, 254, 0.12), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.footer .wrap { max-width: calc(var(--max) + 2 * var(--gutter) - 98px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .logo img { height: 56px; width: auto; }
.footer .slogan { margin-top: 14px; font-size: 16px; color: var(--text-strong); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li { font-size: 14px; color: var(--muted); }
.footer li a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.footer li a:hover { text-decoration-color: currentColor; }
.footer .nav-links li { font-size: 15px; color: var(--charcoal); }
.footer .btn { margin-top: 20px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal-links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease; }
.footer-legal-links a:hover { text-decoration-color: currentColor; color: var(--charcoal); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  :root { --section: 96px; }
  .display { font-size: 48px; letter-spacing: -1.2px; }
  .h2 { font-size: 40px; letter-spacing: -1px; }
  .features, .quotes { grid-template-columns: 1fr 1fr; }
  /* a third card would sit alone on its row: let it span the full width instead */
  .features > :last-child:nth-child(odd), .quotes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .split, .panel .split { grid-template-columns: 1fr; gap: 40px; }
  .split .img-card { aspect-ratio: 4 / 3; }
  .split .free-anim { width: 100%; max-width: 520px; margin-left: 0; justify-self: center; }
  .usp-item strong { font-size: 22px; }
  .usp-list { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
/* Narrow or short screens: the video sits above the text in the normal flow (no pinning, so it
   never covers the text); it plays while it scrolls into view and is finished once fully visible. */
@media (max-width: 1023px), (max-height: 720px) {
  .scrub { height: auto; }
  .scrub-pin { position: static; display: block; height: auto; padding-block: 0; background-image: none !important; }
  .scrub-media {
    position: relative;
    height: 56vh;
    height: 56svh;
  }
  .scrub-copy { padding: 32px 0 64px; }
  .scrub.is-static .scrub-media { position: relative; top: 0; }
  .scrub.is-static .scrub-pin { min-height: 0; }
  .scrub.is-static .scrub-copy { padding-bottom: 64px; }
}
@media (max-width: 639px) {
  :root { --gutter: 16px; --section: 64px; }
  .display { font-size: 40px; letter-spacing: -1px; }
  .h2 { font-size: 32px; letter-spacing: -0.8px; }
  .h3 { font-size: 26px; letter-spacing: -0.5px; }
  .hero { padding-block: calc(76px + 64px) 40px; }
  .features, .quotes { grid-template-columns: 1fr; gap: 12px; }
  .split .free-anim { max-width: 420px; }
  .feature, .quote { padding: 22px; }
  .panel { padding: 20px; }
  .footer { padding-top: 40px; }
  .footer .logo img { height: 44px; }
  .nav { --nav-h: 76px; --logo-h: 40px; }
  .nav.is-compact { --nav-h: 64px; --logo-h: 32px; }
  .nav-cta { padding: 6px 12px; font-size: 14px; }
  .faq details p { padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* form: success message + hidden spam-trap field */
.form-status.is-ok { color: #CFEA22; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.b2b-submit:disabled { opacity: .6; cursor: progress; transform: none; }   /* while sending */
