/* ===== How it works – zigzag timeline ===== */
.howit{padding:56px 0;background:rgba(0,0,0,.18)}
.howit-head{margin-bottom:24px}
.howit-head h2{margin:0 0 8px}
.howit .muted-hero{font-size:clamp(16px,1.6vw,18px)}

/* timeline wrapper + centrale lijn */
.howit-line{position:relative;max-width:1100px;margin:0 auto}
.howit-line::before{
  content:"";position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);
  width:2px;background:linear-gradient(180deg, rgba(0,212,255,.35), rgba(108,92,231,.25));
  filter:blur(.2px)
}

/* één rij: 3 kolommen (beeld • lijn • step) */
.hrow{
  display:grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items:start;          /* was: center/stretch → laat items hun eigen hoogte houden */
  gap:24px;
  margin:22px 0;
}


/* centrale dot per rij */
.hdot{
  width:14px;height:14px;border-radius:9999px;margin-inline:auto;
  background:linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow:0 0 0 6px rgba(0,212,255,.12), 0 10px 28px rgba(108,92,231,.25)
}

/* beeldkaarten links/rechts */
.hpic{
  border-radius:16px; overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  aspect-ratio:16/10;                    /* vaste verhouding terug */
  height:auto;                           /* niet oprekken naar rijhoogte */
  max-height:clamp(220px, 26vw, 300px);  /* cap: beeld wordt NOOIT hoger dan dit */
  position:relative;
}
.hpic img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  filter:saturate(1.05) contrast(1.05);
}


/* step-kaarten (rechts of links van de lijn) */
.hstep{
  border-radius:18px; padding:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 0 0 1px rgba(0,212,255,.08);
  height:auto;  /* was 100% → laat content bepalen */
}

.hstep h4{margin:6px 0 8px}
.hbadge{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:9999px;font-weight:800;
  background:linear-gradient(90deg, var(--cyan), var(--purple));color:#071322
}

/* om en om spiegelen: rijen 1 & 3 (beeld links), 2 & 4 (beeld rechts) */
.hrow:nth-child(odd) .hpic{grid-column:1}
.hrow:nth-child(odd) .hstep{grid-column:3}
.hrow:nth-child(even) .hpic{grid-column:3}
.hrow:nth-child(even) .hstep{grid-column:1}

/* CTA onderaan */
.howit-cta{margin-top:18px}

/* responsive: stapel alles netjes onder elkaar */
@media (max-width: 900px){
  .howit-line::before{display:none}
  .hrow{grid-template-columns:1fr;gap:14px;align-items:start} /* NEW: geen stretch mobiel */
  .hdot{display:none}
  .hrow .hpic,.hrow .hstep{grid-column:auto;height:auto;min-height:0} /* NEW: normale hoogte op mobiel */
  .hpic{aspect-ratio:16/10} /* NEW: op mobiel weer een prettige ratio */
}
