/* Uitlegfilmpje "Step 3 in action" in de How it works-sectie (js/howto.js) */
.howto {
  margin: 28px 0 0; padding: 20px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.howto-stage { position: relative; background: var(--wall); border-radius: 12px; overflow: hidden; }
.howto-anim { aspect-ratio: 1233 / 1141; } /* js/howto.js zet de exacte verhouding */
.howto-anim svg { display: block; width: 100%; height: 100%; }
.howto-done {
  position: absolute; left: 50%; bottom: 3%; margin: 0; padding: 7px 16px 7px 12px; display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); border-radius: 999px; font-weight: 650; font-size: 15px;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.howto-done svg { width: 16px; height: 16px; }
.howto-done.is-on { opacity: 1; transform: translate(-50%, 0); }

.howto-side { min-width: 0; }
.howto-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.howto-title { margin: 0 0 16px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.howto-step button {
  position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: start;
  padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: pointer; overflow: hidden;
}
.howto-step button:hover { background: var(--accent-soft); }
.howto-step button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.howto-no {
  grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.howto-step strong { font-size: 16px; font-weight: 650; color: var(--muted); transition: color 0.2s; }
.howto-desc { font-size: 14px; color: var(--muted); }
.howto-progress {
  position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
.howto-step.is-active button { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.howto-step.is-active .howto-progress { opacity: 1; }
.howto-step.is-active .howto-no { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.howto-step.is-active strong, .howto-step.is-done strong { color: var(--ink); }
.howto-step.is-done .howto-no { border-color: var(--ink); color: var(--ink); }

.howto-toggle {
  margin: 14px 0 0 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.howto-toggle:hover { border-color: var(--muted); }
.howto-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.howto-toggle svg { width: 14px; height: 14px; }
.howto-toggle .icon-pause { display: none; }
.howto-toggle.is-playing .icon-pause { display: block; }
.howto-toggle.is-playing .icon-play { display: none; }

/* scène */
.ht-band { fill: #dcdcdc; }
.ht-open { fill: #ffffff; }
.ht-guide { stroke: #2a6bb8; }
.ht-ring { fill: none; stroke: var(--nail); }
.ht-nail-head { fill: #3a3a3a; }
.ht-nail-shine { fill: #9a9a9a; }
.ht-handle { fill: #6b6b6b; }
.ht-grip { fill: #2f2f2f; }
.ht-head { fill: #2b2b2b; }
.ht-face { fill: #555555; }

@media (max-width: 860px) {
  .howto { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  .howto { padding: 12px; margin-top: 20px; }
  .howto-title { font-size: 22px; }
  .howto-step button { padding: 10px; gap: 2px 12px; }
  .howto-toggle { margin-left: 10px; }
}
