/* Hatch v2 - startscherm van de klantomgeving als HTML/CSS (fase 3, /klantplatform/).
   Overgenomen uit het dashboard van klantplatform-beleving/ (beleving.css, tokens uit Figma "Klantomgeving v2"), hier onder .kpd
   en in em: het scherm is ontworpen op 1440px breed (90em) en schaalt met de breedte van het blok (container query).
   Smaller dan 760px: zonder zijbalk, alleen het welkomstblok en "Dit wacht op jou". Onderkant loopt weg. */

.kpd{--kp-text:#1f1c3a;--kp-text-2:#454269;--kp-muted:#5e5b82;--kp-brand:#6524e2;--kp-warn:#734716;--kp-err:#a83333;--kp-ok:#1d6b43;--kp-info:#265f9b;
  --kp-soft:#fafbff;--kp-card:#f5f7fe;--kp-line:#e8ecfa;--kp-line-2:#d8def3;--kp-sec:#ecfbff;--kp-sec-2:#b5e9f8;
  container-type:inline-size;position:relative;width:100%;margin-top:clamp(40px,5vw,64px)}
.kpd__app{--fs:calc(100cqw / 90);font-size:var(--fs);line-height:1.5;color:var(--kp-text);background:#fff;border:1px solid var(--kp-line-2);border-radius:1.25em 1.25em 0 0;box-shadow:0 2em 5em -2.5em rgba(31,10,81,.28);overflow:hidden;
  height:68em;-webkit-mask-image:linear-gradient(#000 84%,transparent);mask-image:linear-gradient(#000 84%,transparent)}
.kpd b,.kpd strong{font-weight:600}
.kpd small{display:block;font-size:.75em;line-height:1.35;color:var(--kp-muted)}
.kpd__i{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.kpd__i.is--lg{width:1.5em;height:1.5em}
.kpd__i.is--sm{width:1em;height:1em}
.kpd__i.is--info{color:var(--kp-info)}
.kpd__hl{width:1em;height:1em;color:var(--kp-brand)}

/* bovenbalk en zijbalk */
.kpd__top{display:flex;align-items:center;justify-content:space-between;height:5em;padding:0 2em;background:var(--kp-soft);border-bottom:1px solid var(--kp-line)}
.kpd__logo{display:block;width:7.6em;color:var(--kp-brand)}
.kpd__logo svg{display:block;width:100%;height:auto}
.kpd__user{display:flex;align-items:center;gap:1em;font-weight:600;color:var(--kp-text-2)}
.kpd__user .kpd__avatar{margin-left:.25em}
.kpd__avatar{display:grid;place-items:center;width:2.75em;height:2.75em;font-size:.94em;font-weight:600;color:var(--kp-text);background:var(--kp-sec-2);border-radius:50%;flex:none}
.kpd__avatar.is--sm{width:1.75em;height:1.75em;font-size:.75em;background:var(--kp-sec)}
.kpd__avatar.is--soft{background:var(--kp-sec)}
.kpd__body{display:grid;grid-template-columns:6.25em minmax(0,1fr)}
.kpd__rail{display:flex;flex-direction:column;align-items:center;gap:1.25em;padding:2.5em 0;background:var(--kp-soft);border-right:1px solid var(--kp-line);min-height:53em}
.kpd__nav{display:flex;flex-direction:column;align-items:center;gap:.25em;font-size:.875em;font-weight:600;line-height:1.4}
.kpd__tile{display:grid;place-items:center;width:2.85em;height:2.85em;color:var(--kp-text-2);border-radius:50%}
.kpd__nav.is--active .kpd__tile{color:var(--kp-text);background:var(--kp-sec-2)}
.kpd__sep{width:5.25em;height:1px;margin:.25em 0 -.25em;background:var(--kp-line-2)}
.kpd__add{display:grid;place-items:center;width:2.5em;height:2.5em;margin-top:auto;color:#fff;background:var(--kp-brand);border-radius:50%}
.kpd__main{padding:2.5em 3em 3em}

/* knoppen, chips, links */
.kpd__btn{display:inline-flex;align-items:center;gap:.5em;height:2.5em;padding:0 1em;font-weight:600;white-space:nowrap;color:var(--kp-text);background:#fff;border:1px solid var(--kp-line-2);border-radius:999px}
.kpd__btn.is--primary{color:#fff;background:var(--kp-brand);border-color:var(--kp-brand)}
.kpd__btn.is--sm{height:2.25em;padding:0 .75em;font-size:.875em}
.kpd__chip{display:inline-flex;align-items:center;padding:0 .4em;font-size:.875em;line-height:1.7;white-space:nowrap;background:var(--kp-card);border-radius:999px}
.kpd__chip.is--sec{background:var(--kp-sec)}
.kpd__chip.is--error{color:var(--kp-err);background:#fdf2f2}
.kpd__link{display:inline-flex;align-items:center;gap:.25em;font-weight:600;color:var(--kp-brand);white-space:nowrap}

/* welkomstblok */
.kpd__welcome{display:flex;align-items:center;justify-content:space-between;gap:2em;padding:3em 3.5em;background:#f2fcff;border-radius:1em}
.kpd__title{display:block;margin-bottom:.4em;font-size:2em;line-height:1.25}
.kpd__text{display:block;margin-bottom:1.5em;color:var(--kp-text-2)}
.kpd__actions{display:flex;flex-wrap:wrap;gap:.75em}
.kpd__art{position:relative;display:grid;place-items:center;flex:none;width:11em;height:11em;background:linear-gradient(135deg,#d8f3fb,#efe8fd 60%,#c9b6f7);border-radius:1.25em}
.kpd__bubble{position:relative;display:flex;align-items:center;justify-content:center;gap:.75em;width:7.4em;height:4.5em;background:#a98af2;border-radius:1.5em}
.kpd__bubble::after{content:"";position:absolute;bottom:-.85em;left:4.4em;border:.6em solid transparent;border-top:.9em solid #a98af2;border-bottom:0}
.kpd__bubble i{width:.75em;height:.75em;background:var(--kp-brand);border-radius:50%}
.kpd__badge{position:absolute;top:-.5em;right:-.5em;width:1.25em;height:1.25em;background:var(--kp-brand);border:.2em solid #d6c8fb;border-radius:50%}
.kpd__dots{position:absolute;left:2.1em;bottom:1.6em;width:4.6em;height:.3em;background:radial-gradient(circle,#b9a6f4 45%,transparent 50%) 0 0/.9em .3em repeat-x}

/* kaarten */
.kpd__card{background:#fff;border:1px solid var(--kp-line);border-radius:.75em}
.kpd__row{display:grid;grid-template-columns:minmax(0,1fr) 25em;gap:1.5em;align-items:start;margin-top:2em}
.kpd__head{display:flex;align-items:center;gap:.75em;padding:1.25em 1.5em;border-bottom:1px solid var(--kp-line)}
.kpd__head>b,.kpd__hhead>b,.kpd__ghead>b{font-size:1.125em}
.kpd__waitrow{display:grid;grid-template-columns:7.5em minmax(0,1fr) auto auto;align-items:center;gap:1em;padding:.75em 1.5em;border-bottom:1px solid var(--kp-line)}
.kpd__waitrow:last-child{border-bottom:0}
.kpd__waitrow small{font-size:.875em}
.kpd__when{font-size:.75em;color:var(--kp-warn);white-space:nowrap}
.kpd__card.is--health{padding:1.5em}
.kpd__hhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:1em}
.kpd__hhead small{display:flex;align-items:center;gap:.5em;color:var(--kp-text-2)}
.kpd__hhead .kpd__dot{margin:0}
.kpd__hitem{display:grid;grid-template-columns:1.5em minmax(0,1fr) auto;align-items:start;padding:.75em 0}
.kpd__hitem small{font-size:.875em}
.kpd__hitem em{font-size:.75em;font-style:normal;line-height:2}
.kpd__hitem em.is--warn{color:var(--kp-warn)}
.kpd__hitem em.is--err{color:var(--kp-err)}
.kpd__hitem em.is--ok{color:var(--kp-ok)}
.kpd__dot{position:relative;width:.5em;height:.5em;margin-top:.55em;border-radius:50%}
.kpd__dot.is--ok{background:#2f8a57}
.kpd__dot.is--warn{background:#a8611b}
.kpd__dot.is--err{background:#c13c3c}
.kpd__link.is--report{margin:.75em 0 0 .75em}

/* doelen */
.kpd__ghead{display:flex;align-items:center;justify-content:space-between;margin:2.5em 0 1em}
.kpd__ghead.is--in{margin:0 0 1em}
.kpd__goals{display:grid;grid-template-columns:1fr 1fr;gap:1em 1.5em}
.kpd__goal{padding:1.25em 1.5em}
.kpd__gtop{display:flex;align-items:center;justify-content:space-between;gap:.75em}
.kpd__gbar{display:flex;align-items:center;gap:1em;margin:1.1em 0 .9em}
.kpd__gbar strong{margin-left:auto;font-size:1.125em}
.kpd__goal small{font-size:.875em;color:var(--kp-text-2)}
.kpd__bar{flex:1;max-width:8em;height:3px;overflow:hidden;background:var(--kp-line);border-radius:2px}
.kpd__bar i{display:block;width:var(--w);height:100%;background:#7ed6ee;border-radius:2px}
.kpd__bar i.is--w70{--w:70%}
.kpd__bar i.is--w40{--w:40%}
.kpd__bar i.is--w25{--w:25%}
.kpd__bar i.is--w10{--w:10%}
/* rustige animatie: de balken lopen vol als het scherm in beeld komt (kp-dash.js zet .is--armed en daarna .is--in) */
.kpd.is--armed .kpd__bar i{width:0}
.kpd.is--in .kpd__bar i{width:var(--w);transition:width 1.2s cubic-bezier(.2,.7,.2,1) .4s}
@media (prefers-reduced-motion:reduce){.kpd.is--armed .kpd__bar i{width:var(--w);transition:none}}

/* recent opgeleverd en contact */
.kpd__card.is--recent,.kpd__card.is--contact{padding:1.5em}
.kpd__log{position:relative;display:grid;grid-template-columns:2em minmax(0,1fr);padding:.4em 0 .9em}
.kpd__log::before{content:"";position:absolute;left:.6em;top:1.9em;bottom:0;width:1px;background:var(--kp-line)}
.kpd__log:last-child::before{display:none}
.kpd__log small{display:flex;align-items:center;gap:.5em;margin-top:.3em;color:var(--kp-text-2)}
.kpd__over{display:block;font-size:.625em;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--kp-text-2)}
.kpd__who{display:flex;align-items:center;gap:.75em;margin:.9em 0 1em}
.kpd__who small{font-size:.875em}

/* smal blok: zonder zijbalk, groter, alleen welkomstblok en "Dit wacht op jou" */
@container (max-width:759px){
  .kpd__app{--fs:clamp(10px,calc(100cqw / 34),14px);height:auto;max-height:46em}
  .kpd__top{height:4em;padding:0 1.25em}
  .kpd__user{gap:.6em;font-size:.9em}
  .kpd__body{grid-template-columns:minmax(0,1fr)}
  .kpd__rail,.kpd__card.is--health,.kpd__ghead,.kpd__goals,.kpd__row+.kpd__ghead~.kpd__row,.kpd__art{display:none}
  .kpd__main{padding:1.25em}
  .kpd__welcome{padding:1.5em}
  .kpd__title{font-size:1.6em}
  .kpd__row{grid-template-columns:minmax(0,1fr);margin-top:1.25em}
  .kpd__head{padding:1em 1.25em}
  .kpd__waitrow{grid-template-columns:minmax(0,1fr) auto;gap:.25em .75em;padding:.75em 1.25em}
  .kpd__waitrow>.kpd__chip{grid-column:1;justify-self:start}
  .kpd__waitrow>span:nth-child(2){grid-column:1 / -1}
  .kpd__when{grid-column:1}
  .kpd__waitrow>.kpd__link{grid-column:2;grid-row:3}
}

/* ---------- "Wat zit erin" (/klantplatform/): de dienstentegels van /wat-we-doen/ (.builds/.build uit mens.css) in drie kolommen,
   zonder kaart of rand eromheen: alleen scheidingslijnen tussen de tegels. Tekening boven, kleiner dan op /wat-we-doen/. ---------- */
.builds.is--grid3{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none}
.builds.is--grid3 .build{background:none;border:0;border-radius:0;overflow:visible}
.builds.is--grid3 .build:hover{box-shadow:none}
.builds.is--grid3 .build:not(:nth-child(3n)){border-right:1px solid var(--border)}
.builds.is--grid3 .build:nth-child(-n+6){border-bottom:1px solid var(--border)}
.builds.is--grid3 .build__visual{justify-content:flex-start;height:clamp(140px,12vw,170px);padding:28px 28px 8px;background:none;border:0}
.builds.is--grid3 .build__body{gap:8px;padding:12px 28px 32px}
.builds.is--grid3 .build__body b{font-size:1.15rem;text-wrap:balance}
.builds.is--grid3 .build__body>span{color:var(--muted);font-size:.95rem;line-height:1.55}
.kpv-iso__tail{fill:var(--purple)}
.kpv-iso__sign{fill:none;stroke:var(--purple);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.kpv-iso__flap{fill:none;stroke:var(--p300);stroke-width:1.2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
@media (max-width:991px){
  .builds.is--grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .builds.is--grid3 .build:nth-child(n){border-right:0;border-bottom:1px solid var(--border)}
  .builds.is--grid3 .build:nth-child(odd){border-right:1px solid var(--border)}
  .builds.is--grid3 .build:last-child{border-bottom:0}
  /* negende tegel over de volle breedte, tekening naast de tekst */
  .builds.is--grid3 .build:last-child{grid-column:1 / -1;flex-direction:row;align-items:center;border-right:0}
  .builds.is--grid3 .build:last-child .build__visual{flex:none;width:50%;padding-bottom:28px}
  .builds.is--grid3 .build:last-child .build__body{padding-top:28px}
}
@media (max-width:640px){
  .builds.is--grid3{grid-template-columns:minmax(0,1fr)}
  .builds.is--grid3 .build:nth-child(n){border-right:0;border-bottom:1px solid var(--border)}
  .builds.is--grid3 .build:last-child{flex-direction:column;align-items:stretch;border-bottom:0}
  .builds.is--grid3 .build:last-child .build__visual{width:auto;padding-bottom:4px}
  .builds.is--grid3 .build:last-child .build__body{padding-top:10px}
  .builds.is--grid3 .build__visual{height:140px;padding:20px 0 4px}
  .builds.is--grid3 .build__body{padding:10px 0 26px}
}
