/* ═══ WERKWIJZE PAGE ═══ */

.wp-page { background: var(--bg); }

/* Hero */
.wp-hero { padding-bottom: 60px; }

/* TLDR — eigen sectie sinds 2026-05 */
.wp-tldr-section { padding: 0 64px 60px; }
@media (max-width: 768px) { .wp-tldr-section { padding: 0 24px 40px; } }

.wp-tldr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wp-tldr-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-tldr-item:last-child { border-right: none; }
.wp-tldr-num {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  font-style: italic;
}
.wp-tldr-lbl {
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-dim);
}
@media (max-width: 768px) {
  .wp-tldr { grid-template-columns: repeat(2, 1fr); }
  .wp-tldr-item:nth-child(2) { border-right: none; }
  .wp-tldr-item:nth-child(1), .wp-tldr-item:nth-child(2) {
    border-bottom: 1px solid var(--line-soft);
  }
}

/* Sticky progress bar */
.wp-progress {
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 64px;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 768px) { .wp-progress { padding: 12px 24px; top: 56px; } }
.wp-progress-track {
  flex: 1;
  height: 2px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}
.wp-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .15s linear;
  box-shadow: 0 0 12px rgba(15, 123, 79, 0.4);
}
.wp-progress-label {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.wp-prog-current { color: var(--accent); font-weight: 500; }
.wp-prog-sep { margin: 0 4px; color: var(--ink-muted); }

/* Timeline */
.wp-timeline {
  max-width: 1200px;
  margin: 80px auto 120px;
  padding: 0 64px;
}
@media (max-width: 768px) { .wp-timeline { padding: 0 24px; margin: 40px auto 80px; } }

.wp-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  position: relative;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .wp-step { grid-template-columns: 56px 1fr; gap: 16px; }
}

.wp-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wp-step-marker {
  position: sticky;
  top: 130px;
  width: 80px; height: 80px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  transition: all .5s cubic-bezier(.2,.7,.3,1);
  z-index: 5;
}
@media (max-width: 768px) {
  .wp-step-marker { width: 48px; height: 48px; top: 110px; }
  .wp-step-num { font-size: 10px !important; }
  .wp-step-icon { width: 16px; height: 16px; }
}
.wp-step-num {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink-muted);
  transition: color .4s;
}
.wp-step-icon {
  width: 22px; height: 22px;
  color: var(--ink-muted);
  transition: color .4s;
  display: none;
}
.wp-step.active .wp-step-marker {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(15, 123, 79, 0.25);
}
.wp-step.active .wp-step-num { color: var(--accent-hi); }
.wp-step.active .wp-step-icon { color: var(--accent-hi); }

.wp-step-line {
  flex: 1;
  width: 2px;
  background: var(--line-soft);
  position: relative;
  margin-top: -10px;
  min-height: 100px;
  overflow: hidden;
}
.wp-step-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--fill, 0%);
  background: linear-gradient(to bottom, var(--accent), var(--accent));
  transition: height .3s linear;
  box-shadow: 0 0 8px rgba(15, 123, 79, 0.4);
}
.wp-step-line-end { display: none; }

/* Step body */
.wp-step-body {
  padding: 24px 0 100px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.wp-step.in-view .wp-step-body {
  opacity: 1;
  transform: translateY(0);
}

.wp-step-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.wp-step-week { color: var(--accent); }
.wp-step-dur {
  color: var(--ink-dim);
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
}

.wp-step-h {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.wp-step-h em { color: var(--accent); }

.wp-step-p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 28px;
}

.wp-step-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.wp-step-deliverables li {
  font-family: var(--ff-mono);
  font-size: 12px;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  color: var(--ink);
  letter-spacing: .02em;
  transition: all .3s;
}
.wp-step.in-view .wp-step-deliverables li {
  animation: chipIn .5s backwards cubic-bezier(.2,.7,.3,1);
}
.wp-step.in-view .wp-step-deliverables li:nth-child(1) { animation-delay: .2s; }
.wp-step.in-view .wp-step-deliverables li:nth-child(2) { animation-delay: .3s; }
.wp-step.in-view .wp-step-deliverables li:nth-child(3) { animation-delay: .4s; }
.wp-step.in-view .wp-step-deliverables li:nth-child(4) { animation-delay: .5s; }
.wp-step.in-view .wp-step-deliverables li:nth-child(5) { animation-delay: .6s; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Visuals */
.wp-step-visual {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 32px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Visual 1 — Document */
.wp-doc {
  width: 240px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  position: relative;
  transform: rotate(-2deg);
  transition: transform .6s;
}
.wp-step.in-view .wp-doc { animation: docFloat 3s ease-in-out infinite; }
@keyframes docFloat {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-6px); }
}
.wp-doc-head {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.wp-doc-head span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-soft);
}
.wp-doc-head span:first-child { background: var(--accent); }
.wp-doc-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.wp-doc-line {
  height: 8px;
  background: var(--line-soft);
  border-radius: 2px;
  width: 0;
  transition: width .8s cubic-bezier(.2,.7,.3,1);
}
.wp-step.in-view .wp-doc-line-1 { width: 90%; transition-delay: .3s; }
.wp-step.in-view .wp-doc-line-2 { width: 70%; transition-delay: .5s; }
.wp-step.in-view .wp-doc-line-3 { width: 85%; transition-delay: .7s; }
.wp-step.in-view .wp-doc-line-4 { width: 60%; transition-delay: .9s; }
.wp-step.in-view .wp-doc-line-5 { width: 75%; transition-delay: 1.1s; background: var(--accent); }
.wp-doc-stamp {
  position: absolute;
  bottom: 16px; right: -10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(-8deg) scale(0);
  background: var(--bg);
}
.wp-step.in-view .wp-doc-stamp { animation: stampIn .5s 1.4s forwards cubic-bezier(.5, 1.6, .4, 1); }
@keyframes stampIn { to { transform: rotate(-8deg) scale(1); } }

/* Visual 2 — Research network */
.wp-research {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 200px;
}
.wp-research-node {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity .5s, transform .5s cubic-bezier(.5, 1.6, .4, 1);
}
.wp-research-node span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: nodePulse 2s infinite ease-in-out;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.wp-rn-1 { top: 20%; left: 12%; }
.wp-rn-2 { top: 30%; right: 18%; }
.wp-rn-3 { bottom: 20%; left: 22%; }
.wp-rn-4 { bottom: 12%; right: 12%; }
.wp-step.in-view .wp-research-node { opacity: 1; transform: scale(1); }
.wp-step.in-view .wp-rn-1 { transition-delay: .2s; }
.wp-step.in-view .wp-rn-2 { transition-delay: .4s; }
.wp-step.in-view .wp-rn-3 { transition-delay: .6s; }
.wp-step.in-view .wp-rn-4 { transition-delay: .8s; }
.wp-research-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: var(--ink);
  opacity: 0.4;
}
.wp-research-svg line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.wp-step.in-view .wp-rl-1 { animation: drawLine 1s 1s forwards; }
.wp-step.in-view .wp-rl-2 { animation: drawLine 1s 1.2s forwards; }
.wp-step.in-view .wp-rl-3 { animation: drawLine 1s 1.4s forwards; }
.wp-step.in-view .wp-rl-4 { animation: drawLine 1s 1.6s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Visual 3 — Frames sliding */
.wp-frames {
  display: flex;
  gap: 12px;
  perspective: 1000px;
}
.wp-frame {
  width: 100px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(20px) rotateY(0deg);
  opacity: 0;
  transition: all .6s cubic-bezier(.2,.7,.3,1);
}
.wp-step.in-view .wp-frame { opacity: 1; transform: translateY(0); }
.wp-step.in-view .wp-frame-1 { transition-delay: .2s; transform: translateY(0) rotateY(-8deg); }
.wp-step.in-view .wp-frame-2 { transition-delay: .4s; transform: translateY(-8px) scale(1.05); }
.wp-step.in-view .wp-frame-3 { transition-delay: .6s; transform: translateY(0) rotateY(8deg); }
.wp-frame-bar {
  height: 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.wp-fb-accent { background: var(--accent); }
.wp-frame-block {
  margin: 6px;
  height: 8px;
  background: var(--line-soft);
  border-radius: 2px;
}
.wp-fb-1 { width: 80%; }
.wp-fb-2 { width: 60%; height: 24px; }
.wp-fb-3 { width: 70%; }

/* Visual 4 — Code */
.wp-code {
  background: #0f1413;
  border-radius: 6px;
  padding: 18px 16px;
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #f2f5f3;
  width: 100%;
  max-width: 420px;
  position: relative;
}
.wp-code-line {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .4s, transform .4s;
}
.wp-step.in-view .wp-code-line { opacity: 1; transform: translateX(0); }
.wp-step.in-view .wp-code-line:nth-child(1) { transition-delay: .2s; }
.wp-step.in-view .wp-code-line:nth-child(2) { transition-delay: .5s; }
.wp-step.in-view .wp-code-line:nth-child(3) { transition-delay: .8s; }
.wp-step.in-view .wp-code-line:nth-child(4) { transition-delay: 1.1s; }
.wp-step.in-view .wp-code-line:nth-child(5) { transition-delay: 1.4s; }
.wp-code-line .wp-c-grey { color: #4a5450; margin-right: 12px; user-select: none; }
.wp-c-pink { color: #c778dd; }
.wp-c-white { color: #f2f5f3; }
.wp-c-orange { color: #ffb86c; }
.wp-c-green { color: #7CFF6B; }
.wp-code-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: #7CFF6B;
  margin-left: 30px;
  animation: blink 1s infinite step-start;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* Visual 5 — Launch gauge */
.wp-launch-gauge {
  position: relative;
  width: 180px; height: 180px;
  color: var(--accent);
}
.wp-launch-gauge svg { width: 100%; height: 100%; }
.wp-launch-arc {
  transition: stroke-dashoffset 2s cubic-bezier(.2,.7,.3,1);
}
.wp-step.in-view .wp-launch-arc {
  stroke-dashoffset: 2;
}
.wp-launch-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
}
.wp-launch-lbl {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, 80%);
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* Visual 6 — Growth chart */
.wp-chart {
  width: 100%;
  max-width: 400px;
  position: relative;
}
.wp-chart svg {
  width: 100%;
  height: 140px;
  color: var(--accent);
}
.wp-chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.5s cubic-bezier(.2,.7,.3,1);
}
.wp-step.in-view .wp-chart-line { stroke-dashoffset: 0; }
.wp-chart-fill {
  opacity: 0;
  transition: opacity .8s 2s;
}
.wp-step.in-view .wp-chart-fill { opacity: 0.15; }
.wp-chart-dot {
  opacity: 0;
  transition: opacity .4s 2.3s;
}
.wp-step.in-view .wp-chart-dot {
  opacity: 1;
  animation: dotPulse 1.8s 2.5s infinite;
}
@keyframes dotPulse {
  0%, 100% { r: 4; }
  50% { r: 7; }
}
.wp-chart-label {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .6s 2.5s, transform .6s 2.5s;
}
.wp-step.in-view .wp-chart-label { opacity: 1; transform: translateY(0); }

/* CTA */
.wp-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 64px;
  text-align: center;
}
.wp-cta .sp-cta-inner {
  max-width: 800px;
  margin: 0 auto;
}
.wp-cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}
.wp-cta h2 em { color: var(--accent-hi); }

@media (prefers-reduced-motion: reduce) {
  .wp-step-body { opacity: 1; transform: none; }
  .wp-doc, .wp-doc-line, .wp-doc-stamp,
  .wp-research-node, .wp-research-svg line,
  .wp-frame, .wp-code-line,
  .wp-launch-arc, .wp-chart-line, .wp-chart-fill, .wp-chart-dot, .wp-chart-label {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
