/* ==========================================================================
   HOME PAGE (/) - rendered by app/home-page-render.js, behaviour in app/home-page.js
   Ported 1-on-1 from the approved reference (homepage-referentie.html): sizes, colours, radii,
   shadows, breakpoints (980 / 860 / 760 / 600 / 560 / 480 px) and animations. Everything is
   scoped under .hp with hp- class names, so nothing collides with site.css.
   ========================================================================== */

.hp {
  --hp-orange: #F26B21;
  --hp-orange-hover: #DD5B14;
  --hp-orange-text: #C2410C;
  --hp-orange-soft: #FFF1E8;
  --hp-orange-line: #FDBA8C;
  --hp-page: #F7F8FA;
  --hp-surface: #FFFFFF;
  --hp-line: #EEF0F3;
  --hp-card: #FFFFFF;
  --hp-card-border: #E5E7EB;
  --hp-card-border-2: #E2E8F0;
  --hp-soft: #F8FAFC;
  --hp-soft-2: #F1F5F9;
  --hp-text: #0F172A;
  --hp-text-2: #1E293B;
  --hp-text-3: #334155;
  --hp-muted: #475569;
  --hp-subtle: #64748B;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--hp-text);
  background: var(--hp-page);
  line-height: normal; /* as in the reference; elements that need more set it themselves */
  overflow-x: clip;
}
[data-theme="dark"] .hp {
  --hp-orange-text: #FB923C;
  --hp-orange-soft: rgba(242, 107, 33, 0.15);
  --hp-page: #090D16;
  --hp-surface: #0F172A;
  --hp-line: rgba(255, 255, 255, 0.06);
  --hp-card: #131C2E;
  --hp-card-border: rgba(255, 255, 255, 0.1);
  --hp-card-border-2: rgba(255, 255, 255, 0.12);
  --hp-soft: #172238;
  --hp-soft-2: #1E293B;
  --hp-text: #F8FAFC;
  --hp-text-2: #E2E8F0;
  --hp-text-3: #CBD5E1;
  --hp-muted: #CBD5E1;
  --hp-subtle: #94A3B8;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
/* site.css gives every heading letter-spacing -0.025em / line-height 1.15 and every p line-height
   1.65; the reference has neither on these smaller headings and paragraphs. h1/h2 set their own. */
.hp h3 { letter-spacing: normal; line-height: normal; }
.hp-tleft p, .hp-hero-small, .hp-tnote { line-height: normal; }
.hp img { max-width: 100%; }
.hp [data-hp-section], .hp section[id] { scroll-margin-top: var(--header-height, 80px); }
.hp a:not(.hp-btn):not(.hp-pdfbar):not(.hp-pdfdl) { color: var(--hp-orange-text); }
.hp :focus-visible { outline: 3px solid var(--hp-orange-line); outline-offset: 2px; }

/* ---------- preview banner (only in ?preview=1) ---------- */
.hp-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #1E293B; color: #fff; font-size: 14px; line-height: 1.4; padding: 10px 16px; text-align: center; }
.hp-preview-bar.hp-preview-warn { background: #B45309; }
.hp-preview-bar a { color: #FED7AA !important; text-decoration: underline; }

/* ---------- layout + type ---------- */
.hp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hp-sec { padding: clamp(64px, 10vw, 112px) 0; }
.hp-alt { background: var(--hp-surface); border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.hp-center { text-align: center; }
.hp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--hp-orange-soft); color: var(--hp-orange-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.hp-eyebrow-blue { background: #EFF6FF; color: #1D4ED8; }
[data-theme="dark"] .hp-eyebrow-blue { background: rgba(37, 99, 235, .18); color: #93C5FD; }
.hp-h1 { margin: 20px auto 18px; max-width: 880px; font-size: clamp(38px, 8vw, 66px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--hp-text); }
.hp-h2 { margin: 16px 0 14px; font-size: clamp(28px, 5.2vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: var(--hp-text); }
.hp-accent { color: var(--hp-orange); }
.hp-sub { margin: 0 auto; max-width: 640px; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.6; color: var(--hp-muted); }
.hp-sub-2 { margin-top: 10px; }

.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; font-family: inherit; cursor: pointer; }
.hp-btn-sm { min-height: 44px; font-size: 15px; }
.hp-btn-o { background: var(--hp-orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 107, 33, .75); }
.hp-btn-o:hover { background: var(--hp-orange-hover); color: #fff; }
.hp-btn-w { background: var(--hp-card); color: var(--hp-text); border: 1px solid var(--hp-card-border-2); }
.hp-btn-ghost { background: transparent; color: #fff; border: 1px solid #475569; }
.hp-btn-ghost:hover { border-color: #94A3B8; color: #fff; }
.hp-more { font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 1 · hero ---------- */
.hp-hero { padding: calc(var(--header-height, 80px) + clamp(24px, 5vw, 56px)) 0 clamp(48px, 7vw, 80px); background: var(--hp-surface); }
.hp-hero .hp-h1:first-child { margin-top: 0; }
.hp-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hp-hero-small { margin: 14px 0 0; font-size: 14px; color: var(--hp-subtle); }
.hp-hero-img { display: block; width: 100%; max-width: 1120px; height: auto; margin: 48px auto 0; border-radius: 24px; box-shadow: 0 48px 96px -48px rgba(15, 23, 42, .5); }

/* ---------- 2 · logobalk ---------- */
.hp-logobalk { padding: 36px 0; border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); background: var(--hp-page); }
.hp-logobalk-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-subtle); }
.hp-marq { overflow: hidden; margin-top: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hp-track { display: flex; gap: 16px; width: max-content; animation: hp-marq 28s linear infinite; }
.hp-logo { flex: 0 0 180px; width: 180px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--hp-card); border: 1px solid var(--hp-card-border); border-radius: 12px; padding: 8px 14px; }
.hp-logo img { max-height: 40px; width: auto; object-fit: contain; }

/* ---------- A · vergelijking ---------- */
.hp-seg { display: none; margin: 32px auto 0; background: var(--hp-soft-2); border-radius: 12px; padding: 4px; max-width: 420px; gap: 4px; }
.hp-segb { flex: 1; appearance: none; border: 0; background: transparent; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--hp-muted); min-height: 44px; border-radius: 9px; cursor: pointer; }
.hp-segb.hp-on { background: var(--hp-card); color: var(--hp-text); box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .35); }
.hp-cmpgrid { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 48px; }
.hp-cmpcol { position: relative; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hp-zonder { background: var(--hp-card); border: 1px solid #FBCFE8; box-shadow: 0 24px 48px -36px rgba(190, 18, 60, .35); }
.hp-met { background: #FFFBF7; border: 1.5px solid var(--hp-orange); box-shadow: 0 24px 48px -30px rgba(242, 107, 33, .45); }
[data-theme="dark"] .hp-met { background: #1A1612; }
.hp-ribbon { position: absolute; top: -1px; right: -1px; background: var(--hp-orange); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 0 20px 0 12px; }
.hp-cmphead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-pill { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.hp-pill.hp-red { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }
.hp-pill.hp-org { background: #FFF1E8; color: #C2410C; border: 1px solid #FED7AA; }
.hp-cmpnote { font-size: 12px; font-weight: 700; color: #BE123C; }
.hp-cmpt { margin: 6px 0 4px; font-size: 19px; font-weight: 800; color: var(--hp-text); }
.hp-crow { appearance: none; width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; background: var(--hp-soft); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--hp-muted); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.hp-crow b { color: var(--hp-text); }
.hp-crow.hp-ok b { color: var(--hp-orange-text); }
.hp-crow.hp-on { border-color: var(--hp-orange-line); background: var(--hp-card); transform: scale(1.02); }
.hp-zonder .hp-crow.hp-on { border-color: #FDA4AF; }
.hp-cic { flex: 0 0 24px; height: 24px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.hp-cic.hp-x { background: #FFE4E6; color: #BE123C; }
.hp-cic.hp-v { background: #FFEDD5; color: #C2410C; }
.hp-cfoot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-radius: 14px; padding: 14px 16px; }
.hp-cfoot > div > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hp-cfoot b { font-size: 17px; color: #0F172A; }
.hp-cfoot.hp-red { background: #FFF1F2; border: 1px solid #FECDD3; }
.hp-cfoot.hp-red > div > span { color: #BE123C; }
.hp-cfoot.hp-org { background: #FFF1E8; border: 1px solid #FED7AA; }
.hp-cfoot.hp-org > div > span { color: #C2410C; }
.hp-tagp { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.hp-tagp.hp-red { background: #FFE4E6; color: #BE123C; }
.hp-tagp.hp-org { background: var(--hp-orange); color: #fff; }
.hp-vs { align-self: center; width: 44px; height: 44px; border-radius: 999px; background: var(--hp-card); border: 1.5px solid var(--hp-orange); color: #C2410C; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hp-race { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.hp-rrow { display: grid; grid-template-columns: 100px minmax(0, 1fr) 110px; align-items: center; gap: 12px; }
.hp-rlbl { font-size: 14px; font-weight: 800; color: #BE123C; }
.hp-rlbl-org { color: #C2410C; }
.hp-rtime { font-size: 14px; font-weight: 700; color: var(--hp-muted); text-align: right; }
.hp-rtime-ok { color: #15803D; }
.hp-rtrack { height: 14px; border-radius: 99px; background: var(--hp-soft-2); overflow: hidden; }
.hp-rtrack i { display: block; height: 100%; border-radius: 99px; width: 0; }
.hp-rslow { background: #FDA4AF; animation: hp-rslow 9s linear infinite; }
.hp-rfast { background: var(--hp-orange); animation: hp-rfast 9s ease-out infinite; }
@keyframes hp-rslow { 0% { width: 0; } 100% { width: 100%; } }
@keyframes hp-rfast { 0% { width: 0; } 17%, 100% { width: var(--hp-fast, 17%); } }

/* ---------- 3 · Excel → kaart ---------- */
.hp-vframe { max-width: 1040px; margin: 40px auto 0; background: var(--hp-card); border: 1px solid var(--hp-card-border-2); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -44px rgba(15, 23, 42, .45); }
.hp-video[data-hp-click] { cursor: pointer; }
.hp-vframe-video { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 576; background: #F1F5F9; object-fit: cover; }
.hp-zbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #EEF0F3; font-size: 12px; font-weight: 700; color: #475569; background: #F8FAFC; }
.hp-zbar-title { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-zdot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 99px; background: #CBD5E1; }
.hp-loopchip { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #C2410C; background: #FFF1E8; border-radius: 999px; padding: 3px 9px; }

/* ---------- B · zo werkt het ---------- */
.hp-scards { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.hp-scards::before { content: ""; position: absolute; left: 12%; right: 12%; top: 42px; height: 2px; background: #BFDBFE; z-index: 0; }
.hp-scard { position: relative; z-index: 1; background: var(--hp-card); border: 1px solid var(--hp-card-border-2); border-radius: 22px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hp-scard:hover { transform: translateY(-4px); border-color: var(--hp-orange-line); box-shadow: 0 24px 40px -28px rgba(15, 23, 42, .35); }
.hp-scard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hp-spill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.hp-sico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hp-scard h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--hp-text); }
.hp-scard p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hp-muted); }
/* Same height for icon row, title, text and checks in every card of a row, so the dashed line
   and the check marks line up (subgrid; older browsers keep the simple column layout). */
@supports (grid-template-rows: subgrid) {
  .hp-scard { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
  .hp-scard > .hp-schecks { align-self: start; }
}
.hp-schecks { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--hp-card-border-2); display: flex; flex-direction: column; gap: 8px; }
.hp-schecks li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.5; color: var(--hp-text-3); font-weight: 600; }
.hp-schecks li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: #15803D; font-weight: 800; }
.hp-pdfbar { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 32px auto 0; background: var(--hp-soft-2); border: 1px solid var(--hp-card-border-2); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--hp-text); flex-wrap: wrap; }
.hp-pdfbar:hover { border-color: var(--hp-orange-line); color: var(--hp-text); }
.hp-pdfbar-txt { flex: 1 1 220px; min-width: 0; }
.hp-pdfbar b { display: block; font-size: 16px; }
.hp-pdfbar-txt > span { display: block; font-size: 14px; color: var(--hp-subtle); }

/* ---------- 4 · functies op de kaart ---------- */
.hp-zwrap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 48px; }
.hp-zmain { min-width: 0; }
.hp-zstage { background: #fff; border: 1px solid var(--hp-card-border-2); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -44px rgba(15, 23, 42, .45); }
.hp-zview { position: relative; aspect-ratio: 1904 / 910; background: #F1F5F9; overflow: hidden; }
.hp-zview.hp-tall { aspect-ratio: 16 / 10; }
.hp-zs { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.hp-zs.hp-on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.hp-zimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hp-zprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #EEF0F3; display: none; z-index: 3; }
.hp-zprog i { display: block; height: 100%; background: var(--hp-orange); width: 0; }
.hp-touring .hp-zs.hp-on .hp-zprog { display: block; }
.hp-touring .hp-zs.hp-on .hp-zprog i { animation: hp-prog linear forwards; animation-duration: var(--hp-ms, 8s); }
@keyframes hp-prog { to { width: 100%; } }
.hp-pdfview { position: absolute; inset: 0; overflow-y: auto; background: #525659; padding: 14px 14px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; -webkit-overflow-scrolling: touch; z-index: 2; }
.hp-pdfhead { position: sticky; top: -14px; z-index: 3; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -14px -14px 0; padding: 8px 14px; background: #323639; color: #E2E8F0; font-size: 12px; font-weight: 600; }
.hp-pdfdl { color: #fff; background: var(--hp-orange); text-decoration: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 7px; white-space: nowrap; }
.hp-pdfdl:hover { color: #fff; background: var(--hp-orange-hover); }
.hp-pdfpage { margin: 0; width: min(100%, 760px); }
.hp-pdfpage img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.hp-pdfpage figcaption { font-size: 11.5px; color: #E2E8F0; text-align: center; margin-top: 6px; }
.hp-zcap { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; background: #fff; color: #0F172A; border: 1.5px solid var(--hp-orange); border-radius: 18px; padding: 16px 18px; min-height: 84px; box-shadow: 0 14px 28px -22px rgba(242, 107, 33, .55); }
[data-theme="dark"] .hp-zcap { background: var(--hp-card); color: var(--hp-text); }
.hp-zcap .hp-n { flex: 0 0 34px; height: 34px; border-radius: 999px; background: var(--hp-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hp-zcap b { display: block; font-size: 17px; margin-bottom: 2px; color: var(--hp-text); }
.hp-zcap span { font-size: 14.5px; line-height: 1.5; color: var(--hp-muted); }
.hp-flist { display: flex; flex-direction: column; gap: 8px; }
.hp-fi { appearance: none; width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; background: var(--hp-card); border: 1px solid var(--hp-card-border); border-radius: 14px; padding: 10px 14px; font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; min-height: 56px; color: var(--hp-text); }
.hp-fi:hover { border-color: var(--hp-orange-line); }
.hp-fi.hp-on { border-color: var(--hp-orange); background: #FFF7ED; transform: translateX(4px); }
[data-theme="dark"] .hp-fi.hp-on { background: rgba(242, 107, 33, .12); }
.hp-fi .hp-n { flex: 0 0 28px; height: 28px; border-radius: 999px; background: var(--hp-soft-2); color: var(--hp-text-3); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hp-fi.hp-on .hp-n { background: var(--hp-orange); color: #fff; }
.hp-fi b { display: block; font-size: 15.5px; color: var(--hp-text); }
.hp-flist-more { margin: 8px 0 0; }
@media (min-width: 981px) { .hp-fi { min-height: 50px; } .hp-fi b { font-size: 15px; } }

/* ---------- meer dan een projectkaart ---------- */
.hp-journey { position: relative; display: grid; grid-template-columns: repeat(var(--hp-cols, 4), minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.hp-jline { position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: var(--hp-card-border-2); overflow: hidden; }
.hp-jline i { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--hp-orange), transparent); animation: hp-jflow 3.2s linear infinite; }
@keyframes hp-jflow { from { left: -30%; } to { left: 100%; } }
.hp-jstep { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 6px; }
.hp-jdot { width: 54px; height: 54px; border-radius: 999px; background: var(--hp-card); border: 2px solid var(--hp-card-border-2); color: var(--hp-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; transition: transform .25s, border-color .25s; }
.hp-jstep:hover .hp-jdot { transform: translateY(-3px); border-color: var(--hp-orange-line); }
.hp-jstep b { font-size: 16px; color: var(--hp-text); }
.hp-jstep > span:not(.hp-jdot) { font-size: 14px; line-height: 1.45; color: var(--hp-subtle); }
.hp-jstep.hp-jcore { background: #FFF7ED; border: 1.5px solid var(--hp-orange); border-radius: 18px; padding: 16px 10px; }
[data-theme="dark"] .hp-jstep.hp-jcore { background: rgba(242, 107, 33, .1); }
.hp-jstep.hp-jcore .hp-jdot { border-color: var(--hp-orange); color: var(--hp-orange); }
.hp-jstep.hp-jcore > span:not(.hp-jdot) { color: var(--hp-orange-text); font-weight: 700; }
.hp-jstep.hp-soon .hp-jdot { border-style: dashed; color: #94A3B8; }
.hp-jstep.hp-soon b { color: var(--hp-subtle); }
.hp-jaddons { margin: 36px auto 0; max-width: 920px; padding-top: 24px; border-top: 1px dashed var(--hp-card-border-2); display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 20px; align-items: center; }
.hp-jalbl span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-subtle); }
.hp-jalbl small { display: block; font-size: 15px; color: var(--hp-muted); margin-top: 4px; }
.hp-jagrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp-jacard { position: relative; display: flex; align-items: center; gap: 12px; background: var(--hp-card); border: 1px solid var(--hp-card-border); border-radius: 14px; padding: 14px 16px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.hp-jacard:hover { transform: translateY(-3px); border-color: var(--hp-orange-line); box-shadow: 0 20px 36px -26px rgba(15, 23, 42, .35); }
.hp-jaic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hp-jatxt { flex: 1; min-width: 0; }
.hp-jacard b { display: block; font-size: 16px; font-weight: 800; color: var(--hp-text); margin-bottom: 2px; padding-right: 84px; }
.hp-jatxt > span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--hp-muted); }
.hp-jatag { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: #FFF1E8; color: #C2410C; white-space: nowrap; }
.hp-jfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 40px; }
.hp-jfoot:empty { display: none; }

/* ---------- rekentool: teaser bar + dialog (widget: stijl/besparingscalculator.css) ---------- */
.hp-sec-calc { padding: clamp(32px, 5vw, 56px) 0; }
.hp-calcbar { background: #0F172A; border-radius: 20px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
[data-theme="dark"] .hp-calcbar { background: #131C2E; border: 1px solid rgba(255, 255, 255, .08); } /* stays dark: one tint lighter than the page */
.hp-calcbar-txt { flex: 1 1 auto; min-width: 0; }
.hp-calcbar-lbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F2A97F; margin-bottom: 6px; }
.hp-calcbar-txt p { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; color: #fff; }
.hp-calcbar-btn { flex: 0 0 auto; }
.hp-calcbar-nojs { flex-basis: 100%; margin: 0; font-size: 15px; color: #CBD5E1; }


html.hp-calc-open { overflow: hidden; } /* the page underneath does not scroll along */
.hp-calcdlg { margin: auto; width: calc(100% - 40px); max-width: 1080px; max-height: 90vh; padding: 0; border: 0; border-radius: 22px; background: var(--hp-card); color: var(--hp-text); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); overflow: hidden; }
.hp-calcdlg[open] { display: flex; }
.hp-calcdlg::backdrop { background: rgba(20, 27, 45, .55); }
[data-theme="dark"] .hp-calcdlg { border: 1px solid var(--hp-card-border); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
[data-theme="dark"] .hp-calcdlg::backdrop { background: rgba(0, 0, 0, .65); }
.hp-calcdlg-in { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.hp-calcdlg-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 18px 26px; border-bottom: 1px solid var(--hp-card-border); }
.hp-calcdlg-t { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--hp-text); }
.hp-calcdlg-t:focus { outline: none; }
.hp-calcdlg-sub { margin: 0; max-width: 640px; font-size: 14.5px; line-height: 1.55; color: var(--hp-muted); }
.hp-calcdlg-x { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--hp-card-border-2); background: var(--hp-card); color: var(--hp-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hp-calcdlg-x:hover { border-color: var(--hp-orange-line); }
.hp-calcdlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 24px; background: var(--hp-soft); }
.hp-calc .bkbesp-kop, .hp-calc .bkbesp-intro { display: none; } /* the dialog heading replaces them */
.hp-calc-cta { width: 100%; margin-top: 14px; }
.hp-calcdlg-body > .hp-calc-cta { display: none; } /* shown once it sits under the results */

/* ---------- D · waarom + programma's ---------- */
.hp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.hp-wc { appearance: none; text-align: left; font-family: inherit; background: var(--hp-card); border: 1px solid var(--hp-card-border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--hp-text); }
.hp-wc:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(15, 23, 42, .4); border-color: var(--hp-orange-line); }
.hp-wtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.hp-wic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.hp-wc:hover .hp-wic { transform: rotate(-8deg) scale(1.08); }
.hp-wtag { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.hp-wc b { font-size: 17px; color: var(--hp-text); }
.hp-wd { font-size: 14.5px; line-height: 1.55; color: var(--hp-muted); }
.hp-wmore { display: none; font-size: 14.5px; line-height: 1.55; color: var(--hp-muted); }
.hp-wc[aria-expanded="true"] .hp-wmore { display: block; animation: hp-fadein .35s ease; }
.hp-wtoggle { display: block; font-size: 13px; margin-top: 2px; }
.hp-wtoggle::after { content: "Lees meer +"; font-weight: 700; color: var(--hp-orange-text); }
.hp-wc[aria-expanded="true"] .hp-wtoggle::after { content: "Minder −"; }
.hp-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 56px; background: var(--hp-card); border: 1px solid var(--hp-card-border); border-radius: 24px; padding: 28px; }
.hp-tleft h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--hp-text); }
.hp-tleft p { margin: 0 0 16px; font-size: 15px; color: var(--hp-subtle); }
.hp-tchips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hp-tchip { appearance: none; text-align: left; font-family: inherit; display: flex; align-items: center; gap: 12px; background: var(--hp-soft); border: 1.5px solid var(--hp-card-border); border-radius: 12px; padding: 9px 12px; cursor: pointer; min-height: 54px; transition: all .2s; color: var(--hp-text); }
.hp-tchip-txt { flex: 1; min-width: 0; }
.hp-tchip:not(.hp-on) b { color: var(--hp-subtle); }
.hp-tchip.hp-on { background: var(--hp-card); border-color: var(--hp-orange); }
.hp-tchip b { display: block; font-size: 13.5px; color: var(--hp-text); }
.hp-tchip small { display: block; font-size: 11.5px; color: var(--hp-subtle); }
.hp-tlogo { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; transition: filter .2s, opacity .2s; }
.hp-tchip:not(.hp-on) .hp-tlogo { filter: grayscale(1); opacity: .6; }
.hp-tck { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; border: 2px solid #CBD5E1; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.hp-tchip.hp-on .hp-tck { background: var(--hp-orange); border-color: var(--hp-orange); }
.hp-tchip.hp-on .hp-tck::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.hp-laptopimg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.hp-tcount { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; text-align: center; }
.hp-tcount b { display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--hp-text); font-variant-numeric: tabular-nums; }
.hp-tcount b.hp-accent { color: var(--hp-orange); }
.hp-tcount span { font-size: 13px; font-weight: 700; color: var(--hp-subtle); }
.hp-tcount .hp-tarrow { font-size: 28px; color: var(--hp-orange); animation: hp-nudge 1.6s ease-in-out infinite; }
.hp-tnote { text-align: center; font-size: 15px; font-weight: 600; color: var(--hp-text-3); margin: 16px 0 0; }

/* ---------- voor wie ---------- */
.hp-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.hp-whoc { background: var(--hp-card); border: 1px solid var(--hp-card-border); border-radius: 20px; padding: 22px; }
.hp-whoc .hp-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hp-whoc h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 800; color: var(--hp-text); }
.hp-whoc p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--hp-muted); }

/* ---------- cta + vertrouwen ---------- */
.hp-sec-cta { padding: 0 0 clamp(64px, 10vw, 104px); }
.hp-cta-box { background: #0F172A; border-radius: 28px; padding: 56px 48px; display: flex; flex-direction: column; gap: 44px; }
[data-theme="dark"] .hp-cta-box { background: #131C2E; border: 1px solid rgba(255, 255, 255, .08); }
.hp-cta-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.hp-cta-txt { flex: 1 1 380px; min-width: 0; }
.hp-cta-txt h2 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.hp-cta-txt p { margin: 0; font-size: 17px; line-height: 1.6; color: #CBD5E1; }
.hp-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 1 auto; }
.hp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hp-tr { display: flex; gap: 14px; align-items: flex-start; }
.hp-tr b { display: block; font-size: 16px; color: #fff; margin-bottom: 4px; }
.hp-tr span { font-size: 15px; line-height: 1.55; color: #CBD5E1; }
.hp-trico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }

/* ---------- keyframes ---------- */
@keyframes hp-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hp-fadein { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes hp-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes hp-jflowv { from { top: -30%; left: 0; } to { top: 100%; left: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hp-scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-scards::before { display: none; }
  .hp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-tools { grid-template-columns: minmax(0, 1fr); }
  .hp-zwrap { grid-template-columns: minmax(0, 1fr); }
  .hp-trust { grid-template-columns: minmax(0, 1fr); }
  .hp-who { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -20px; margin-right: -20px; padding: 0 20px 8px; }
  .hp-whoc { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .hp-jaddons { grid-template-columns: minmax(0, 1fr); }
  .hp-jagrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hp-seg { display: flex; }
  .hp-cmpgrid { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .hp-vs { display: none; }
  .hp-cmpgrid.hp-show-met .hp-zonder { display: none; }
  .hp-cmpgrid.hp-show-zonder .hp-met { display: none; }
  .hp-rrow { grid-template-columns: 80px minmax(0, 1fr) 84px; gap: 8px; }
  .hp-rlbl, .hp-rtime { font-size: 12.5px; }
  .hp-why { grid-template-columns: minmax(0, 1fr); }
  .hp-tools { padding: 18px; }
  .hp-tchips { grid-template-columns: minmax(0, 1fr); }
  .hp-zview.hp-tall { aspect-ratio: 4 / 5; }
  .hp-hero-cta .hp-btn { width: 100%; }
  .hp-fi { padding: 10px 12px; }
  .hp-journey { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-left: 4px; }
  .hp-jline { left: 30px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; }
  .hp-jline i { width: 100%; height: 30%; background: linear-gradient(180deg, transparent, var(--hp-orange), transparent); animation: hp-jflowv 3.2s linear infinite; }
  .hp-jstep { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; text-align: left; align-items: center; padding: 0; }
  .hp-jstep.hp-jcore { padding: 12px; margin: 0 -12px; }
  .hp-jdot { grid-row: span 2; margin: 0; }
  .hp-jfoot .hp-btn { width: 100%; }
  .hp-cta-box { padding: 36px 22px; }
  .hp-cta-btns, .hp-cta-btns .hp-btn { width: 100%; }
}
@media (max-width: 600px) { .hp-pdfbar { padding: 16px; } .hp-pdfbar .hp-btn { width: 100%; } }
@media (max-width: 760px) {
  .hp-calcbar { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .hp-calcbar-txt p { font-size: 18px; }
  .hp-calcbar-btn { width: 100%; }
  .hp-calcdlg { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .hp-calcdlg-head { padding: 16px 14px 14px 18px; }
  .hp-calcdlg-t { font-size: 21px; }
  .hp-calcdlg-sub { font-size: 13.5px; line-height: 1.5; }
  .hp-calcdlg-body { padding: 16px 14px 18px; }
}
@media (max-width: 560px) { .hp-scards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hp-jacard { padding: 14px; } }

/* Reduced motion: no animations, no transitions, no automatic tours (see home-page.js). */
@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { animation: none !important; transition: none !important; }
  .hp-rslow { width: 100%; }
  .hp-rfast { width: var(--hp-fast, 17%); }
}
