/* Diensten: verkooppagina. Bouwt voort op film.css (tokens, header, voortgangsbalk, knoppen, WhatsApp-knop).
   Geen vaste stage of scroll-animatie: alleen de verbindingslijn van de werkwijze komt één keer in beeld. */

html { scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#dienst { padding-top: var(--hdr); }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 52rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie en knoppen ---------- */
.page-diensten .h2 { font-size: clamp(1.9rem, 1.2rem + 2.1vw, 2.9rem); line-height: 1.02; }
.sec-h { max-width: 22ch; }
.sec-h-sm { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem) !important; }
.sec-lede { color: var(--mute); max-width: 56ch; margin-top: .8rem; text-wrap: pretty; }
.fine { color: var(--mute); font-size: .875rem; margin-top: 1.2rem; max-width: 70ch; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(242, 240, 236, .06); }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 .55rem; border-radius: 999px;
  background: var(--accent); color: var(--bg); font: 600 .75rem/1 var(--f-body); white-space: nowrap;
}
.tag-soft { background: rgba(255, 59, 48, .14); color: #FF8A82; }

.sec { padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.sec-tight { padding-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Voortgangsbalk: gewone sectienamen, geen tijdcode ---------- */
.page-diensten .tl-clips li { flex: var(--g, 1) 1 0; }
@media (max-width: 767px) { .page-diensten .tl-clips li { flex-grow: var(--gm, 1); } }
@media (min-width: 768px) { .page-diensten .tl { gap: 0; } }

/* ---------- 1. Hero ---------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-h { font-size: clamp(2.3rem, 1.2rem + 3vw, 3.9rem); max-width: 15ch; }
.hero-copy .lede { max-width: 40ch; font-size: 1.125rem; }
.hero-shot { position: relative; margin: 0 0 2.5rem 2.5rem; }
.bframe { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -40px #000; }
.bframe-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); }
.bframe-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(242, 240, 236, .2); }
.bframe-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: var(--bg); color: var(--mute); font: 400 .75rem/1.2 var(--f-mono); }
.bframe img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero-phone {
  position: absolute; left: -2.5rem; bottom: -2.5rem; width: clamp(96px, 16%, 132px);
  border: 5px solid #000; border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -20px #000;
}
.hero-phone img { width: 100%; height: auto; }
.proof {
  position: absolute; right: -.75rem; bottom: -1.75rem; width: 24rem; max-width: 90%; /* vaste breedte: de font-wissel verschuift de kaart niet */
  padding: .8rem 1rem; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px -20px #000;
  font-size: .9375rem; line-height: 1.35;
}
.proof strong { font: 800 1.3rem/1 var(--f-head); letter-spacing: -.02em; }
.proof strong, .case-stats dd { font-variant-numeric: tabular-nums; } /* tellers: vaste cijferbreedte, niets verschuift */
.proof > span { display: block; margin-top: .35rem; color: var(--mute); font-size: .75rem; }
.clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: .75rem; border-block: 1px solid var(--line);
}
.clients p { color: var(--mute); font-size: .875rem; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.clients a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.clients a:hover { color: var(--accent); }

/* ---------- 2. Instappen en 5. pakketten (zelfde kaart) ---------- */
.entries, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.entry, .plan {
  display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem;
  border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.plan { position: relative; }
.plan-glow {
  position: absolute; inset: 0; border-radius: inherit; padding: 3px; overflow: hidden; pointer-events: none; opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.plan-glow i {
  position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 50%, rgba(255, 90, 80, .6) 66%, #FFE4E1 80%, #FFFFFF 84%, rgba(255, 90, 80, .8) 92%, transparent 100%);
}
.entry.is-featured, .plan.is-featured { box-shadow: inset 0 0 0 2px var(--accent); background: #1A1616; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.entry h3, .plan h3 { font: 700 1.25rem/1.15 var(--f-head); letter-spacing: -.01em; }
.entry-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.entry-price strong { font: 800 2.4rem/1 var(--f-head); letter-spacing: -.03em; }
.entry-price s { color: var(--mute); }
.was { position: relative; text-decoration: none; }
.strike { position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left center; }
.per, .from { color: var(--mute); font-size: .9375rem; }
.entry-who, .plan-who { color: var(--mute); }
.plan-term { color: var(--mute); font-size: .8125rem; margin-top: -.5rem; }
.ticks { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .38rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.entry .btn, .plan .btn { margin-top: auto; }
.plan-notes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; color: var(--mute); font-size: .875rem; }

/* ---------- 3. Werkwijze ---------- */
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
/* verbindingslijn door de nummers; komt één keer in beeld (JS zet .is-in) */
/* verbindingslijn: grijze basis + rode vulling. Zonder JS staat de vulling vol (eindstand); diensten.js zet hem op 0
   en laat hem met de scroll meelopen. */
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background: var(--line-2); pointer-events: none; }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), rgba(255, 59, 48, .55)); transform-origin: left center; }
.steps { z-index: 1; }
.step { position: relative; display: flex; flex-direction: column; gap: .55rem; }
.step-dot {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: .4rem;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); font: 600 .875rem/1 var(--f-mono);
}
.step h3 { font: 700 1.25rem/1.15 var(--f-head); }
.step p { color: var(--mute); font-size: .9688rem; }
.step-img { margin: .5rem 0 0; }
.step-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); background: var(--surface-2); }
.step-img figcaption { margin-top: .45rem; color: var(--mute); font-size: .75rem; }

/* ---------- 4. Resultaten ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.case { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.bframe-sm { border-radius: 0; box-shadow: none; }
.bframe-sm .bframe-bar { height: 26px; }
.case-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.bframe .case-shot img { aspect-ratio: auto; height: auto; object-fit: fill; }
.case-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.case h3 { font: 700 1.2rem/1.15 var(--f-head); }
.case-sector { color: var(--mute); font-size: .875rem; margin-top: -.3rem; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin: .4rem 0; }
.case-stats div { display: flex; flex-direction: column; gap: .15rem; }
.case-stats dd { order: -1; }
.case-stats dd { margin: 0; font: 800 1.6rem/1 var(--f-head); letter-spacing: -.02em; }
.case-stats dt { color: var(--mute); font-size: .8125rem; line-height: 1.3; }
.case-built { font-size: .9375rem; }
.case-src { margin-top: auto; color: var(--mute); font: 400 .75rem/1.3 var(--f-mono); }
.case-wide {
  margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; align-items: center;
  gap: 1rem 2rem; padding: 1.25rem 1.5rem;
}
.case-wide .case-body { padding: 0; }
.case-wide .case-stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2rem; margin: 0; }
.case-wide .case-src { margin: 0; align-self: end; }
#resultaten .ctas, #results .ctas, #resultados .ctas { margin-top: 1.5rem; }

/* ---------- 6. Automation ---------- */
.auto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: center; }
.auto-copy .entry-price { margin-top: 1rem; }
.auto-copy .btn { margin-top: 1.4rem; }
.flow-wrap { position: relative; }
.flow-line { position: absolute; left: 7%; right: 7%; top: 15px; height: 2px; background: var(--line-2); pointer-events: none; }
.flow-dot {
  position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 59, 48, .25); opacity: 0;
}
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; position: relative; }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-size: .8125rem; line-height: 1.3; color: var(--ink); }
.fn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 .8125rem/1 var(--f-mono); color: var(--ink); }
.fn i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--bg); font-style: normal; opacity: 0; }
.flow li:first-child .fn i, .flow li:last-child .fn i { opacity: 1; }

/* ---------- 7. Vragen ---------- */
.qas { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: .8rem 0; font: 600 1.0625rem/1.3 var(--f-body);
}
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { position: relative; flex: none; width: 16px; height: 16px; transition: transform .3s ease; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--accent); }
.qa-icon::after { transform: rotate(90deg); }
.qa[open]:not(.is-closing) .qa-icon { transform: rotate(45deg); } /* + wordt × */
@media (prefers-reduced-motion: reduce) { .qa-icon { transition: none; } }
.qa-body { overflow: hidden; }
.qa p { padding: 0 2.5rem 1.2rem 0; color: var(--mute); max-width: 62ch; }

/* ---------- 8. Losse diensten en afsluiter ---------- */
.price-table { margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.price-table div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.price-table dt { font-weight: 500; }
.price-table dd { margin: 0; color: var(--mute); text-align: right; }
.closer { margin-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.closer .sec-h { max-width: 18ch; }

/* footer (bestaande sitefooter, in de tokens van deze pagina) */
.site-foot { padding: 3rem var(--gutter) calc(3.5rem + var(--safe-b)); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font: 400 .78rem/1 var(--f-mono); }
.footer-links a { color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--ink); }
.logo-text { font-size: 1rem; }
.logo-text b { font-weight: 700; letter-spacing: -.01em; }
.logo-text i { font-style: normal; font-weight: 500; color: var(--accent); }
.logo-text span { color: var(--accent); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .hero-grid, .auto { grid-template-columns: 1fr; }
  .hero-shot { margin: 1rem 0 3rem 1rem; }
  .entries, .plans, .cases { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .steps-line { display: none; }
  .case-wide { grid-template-columns: 1fr; }
}

/* ---------- Mobiel (<768px): alles gestapeld ---------- */
@media (max-width: 767px) {
  .hero-h { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .hero-copy .lede { font-size: 1.0625rem; }
  .hero-copy .btn { flex: 1 1 100%; }
  .hero-grid { gap: 1.5rem; }
  .hero-shot { margin: 0; }
  #instappen, #get-started, #empezar { padding-top: 2.75rem; }
  .entries, .plans, .cases { margin-top: 1.25rem; }
  .entry, .plan { padding: 1.25rem; }
  .hero-phone { display: none; }
  .proof { position: static; width: auto; max-width: none; margin-top: .75rem; }
  /* sectienaam in de balk: vaste breedte, anders schuift de balk bij elke nieuwe sectie */
  .page-diensten .tl-now { width: 6.6em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .clients { margin-top: 1.5rem; padding-block: .25rem; }
  .clients ul { gap: 0 1.1rem; }
  .entries, .plans, .cases { grid-template-columns: 1fr; }
  .plans .is-featured { order: -1; }
  /* werkwijze: verticaal, lijn links langs de nummers */
  .steps { grid-template-columns: 1fr; gap: 2rem; padding-left: 52px; }
  .steps-line { display: block; left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .steps-fill { background: linear-gradient(180deg, var(--accent), rgba(255, 59, 48, .55)); transform-origin: center top; }
  .step-dot { position: absolute; left: -52px; top: 0; margin: 0; }
  .case-wide .case-stats { grid-template-columns: repeat(3, auto); gap: .8rem 1.4rem; }
  .flow { grid-template-columns: 1fr; gap: .6rem; }
  .flow-line { left: 15px; right: auto; top: 16px; bottom: 16px; width: 2px; height: auto; }
  .flow-dot { left: 50%; top: 0; margin: -6px 0 0 -6px; }
  .flow li { flex-direction: row; text-align: left; font-size: .9375rem; }
  .qa p { padding-right: 0; }
  .price-table dd { font-size: .9375rem; }
  .closer .btn { flex: 1 1 100%; }
  .wa-fab { bottom: calc(12px + var(--safe-b)); }
}

/* link van een resultaatblok naar de volledige case op /cases */
.case-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .25rem; color: var(--ink); font-weight: 600; font-size: .9375rem; text-underline-offset: 4px; }
.case-more:hover { color: var(--accent); }
.page-cases .case-more { display: none; } /* op /cases zelf niet nodig */

/* prijs in overleg (AI & Automation) */
.price-talk strong { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.price-note { margin-top: .5rem; max-width: 46ch; color: var(--ink); }

/* ---------- Formulierpagina's (groeiscan, contact) en over ons ---------- */
.hero-grid-form { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.hero-grid-form .hero-h { max-width: 17ch; }
.hero-ticks { margin-top: 1.5rem; }
.form-card { padding: 1.5rem; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -40px #000; }
.form-card-h { font: 700 1.25rem/1.2 var(--f-head); letter-spacing: -.01em; }
.form-card .form { margin-top: 1rem; max-width: none; }
.field-hint { color: var(--mute); font-size: .8125rem; }
.scan-example { min-height: 32px; padding: 0 .2rem; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scan-example:hover { color: var(--accent); }
.form .btn-submit { margin-top: .25rem; }
.form .btn-submit:disabled { opacity: .7; cursor: default; transform: none; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #4ADE80; }
.form-status.is-err { color: #FF8A82; }
.form-status a { color: var(--ink); text-underline-offset: 3px; }
.form-legal { color: var(--mute); font-size: .8125rem; line-height: 1.5; }
.form-legal a { color: var(--ink); text-underline-offset: 3px; }
.info-intro { margin-top: 1.25rem; max-width: 44ch; color: var(--mute); }
.page-contact .hero-copy .ctas { margin-top: 1.75rem; }
.page-form #vragen { padding-bottom: clamp(4rem, 8vw, 6rem); }
.info-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; max-width: 34rem; }
.info-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .15rem .9rem; align-items: start; }
.info-ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent); }
.info-k { font-weight: 600; }
.info-v { color: var(--mute); font-size: .9375rem; }
.info-v a { color: var(--ink); text-underline-offset: 3px; }
.entry-num { color: var(--accent); font: 500 .8125rem/1 var(--f-mono); }
.step-when { color: var(--accent); font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .02em; }
.compare-wrap { margin-top: 2rem; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; background: var(--surface); font-size: .9375rem; }
.compare th, .compare td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { color: var(--mute); font: 500 .75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.compare tbody th, .compare thead th:first-child { text-align: left; }
.compare tbody th { font-weight: 500; }
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare td { color: var(--mute); }
.compare .is-us { background: rgba(255, 59, 48, .08); color: var(--ink); }
.compare thead .is-us { color: var(--accent); }
.compare .yes { color: #4ADE80; font-weight: 700; }
@media (max-width: 1023px) {
  .hero-grid-form { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .form-card { padding: 1.25rem; margin-inline: calc(var(--gutter) * -.25); }
  .page-form .tl-now { width: 7.4em; }
}
