/* ============================================================================
   site.css — the shared layer of the redesigned pages (workshops now; login,
   thank-you and participant pages follow)
   ----------------------------------------------------------------------------
   Self-contained on purpose: it does not load scrollcraft.css or page.css, so a
   redesigned page does not inherit the landing page's 2000 lines. Tokens are
   the ones agreed with Joost on 2026-09-30: white ground, soft colour washes in
   peach, rose, lilac and pale yellow (no green), ink #0d0e11, muted #6f6b74,
   one accent #8a3f66 for links and focus, Inter at weight 500 for headlines.
   Visual reference: docs/references/stitch/. What was taken from it is the
   family (white, washes, black pills, floating menu, one dark section); what
   was left out is the repeated card-with-icon-circle recipe.
   ========================================================================== */

:root {
  --ink: #0d0e11;
  --muted: #6f6b74;
  --accent: #8a3f66;
  --canvas: #ffffff;
  --paper: #faf8f7;
  --peach: #f6c9b0;
  --rose: #e9a8c4;
  --lilac: #c9b6f0;
  --yellow: #f7e4a0;
  --blauwgrijs: #b7cdd9;
  --line: rgba(13, 14, 17, 0.1);
  --line-strong: rgba(13, 14, 17, 0.22);
  --glass: rgba(255, 255, 255, 0.74);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 78rem;
  /* Headings: three sizes for every page. A hero (h1), a section heading and a
     card heading. Change them here, not per page. */
  --kop-hero: clamp(2.3rem, 3.3vw, 3.15rem);
  --kop-hero-lh: 1.03;
  --kop-hero-ls: -0.045em;
  --kop-sectie: clamp(2rem, 4.2vw, 3.6rem);
  --kop-sectie-lh: 1.04;
  --kop-sectie-ls: -0.035em;
  --kop-kaart: 1.2rem;
  --kop-kaart-ls: -0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 999px; transition: top 160ms var(--ease);
}
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- washes: few, large, placed by hand per section -------------------- */
.wash { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: 0.5; }
/* Touch screens: the soft edge comes from a radial mask instead of the 120px blur,
   which Safari on iOS renders slowly over a large area (2026-10-08). The scale makes
   up for the mask stopping at the element's edge where the blur spread past it. */
@media (pointer: coarse) {
  .wash {
    filter: none; transform: scale(1.35);
    -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
  }
  .orb-field { animation: none; }
}

/* ---- the hero ground (grond.js): the old opening screen's wash on a canvas, fading out at
   the bottom so the hero runs into the white page; the page's .wash elements sit over it */
.g-veld {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
/* The still ground for touch screens (grond.js): the canvas stays as a plain element and
   carries the field's colours as a gradient, sampled off the live field on a phone on
   2026-10-08 — peach at the top, pink through the middle, lilac below. */
.g-veld--stil { background: linear-gradient(180deg, #f5e3d5 0%, #f0dfe2 45%, #ece1f0 85%); }

/* ---- buttons ------------------------------------------------------------ */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.6rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: background 160ms var(--ease), transform 160ms var(--ease), border-color 160ms;
}
.knop:hover { background: #26272c; }
.knop:active { transform: translateY(1px); }
.knop[disabled] { opacity: 0.55; cursor: default; }
.knop__pijl { transition: transform 200ms var(--ease); }
.knop:hover .knop__pijl { transform: translateX(3px); }
.knop--wit { background: var(--canvas); color: var(--ink); border-color: var(--line-strong); }
.knop--wit:hover { background: var(--paper); border-color: var(--ink); }
.knop--klein { min-height: 2.5rem; padding: 0 1.15rem; font-size: 0.9rem; }

.link { color: var(--accent); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---- form fields -------------------------------------------------------- */
.veld { display: grid; gap: 0.4rem; }
.veld label { font-size: 0.8125rem; color: var(--muted); }
.veld input, .veld textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 1rem; border-radius: 0.75rem;
  border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color 140ms, box-shadow 140ms;
}
.veld textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.veld input::placeholder, .veld textarea::placeholder { color: rgba(13, 14, 17, 0.36); }
.veld input:hover, .veld textarea:hover { border-color: rgba(13, 14, 17, 0.4); }
.veld input:focus, .veld textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(138, 63, 102, 0.18); }
.melding { font-size: 0.9rem; color: var(--muted); }
.melding[data-soort="fout"] { color: #a12b2b; }
.melding[data-soort="goed"] { color: var(--ink); }

/* ---- the floating menu -------------------------------------------------- */
.dock {
  position: fixed; z-index: 60; top: 0.9rem; left: 50%; transform: translateX(-50%);
  width: min(72rem, calc(100% - 1.5rem)); height: 3.5rem; padding: 0 0.5rem 0 1.4rem;
  display: flex; align-items: center; gap: 0.25rem;
  border-radius: 999px; background: var(--glass); border: 1px solid rgba(13, 14, 17, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px -14px rgba(120, 90, 170, 0.28), 0 1px 3px rgba(13, 14, 17, 0.04);
}
.dock__merk { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; border-radius: 0.4rem; }
.dock__merk img { height: 1.6rem; width: auto; }
.dock__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 0.15rem; }
.dock__link { padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.9rem; color: #46464b; text-decoration: none; transition: background 140ms, color 140ms; }
.dock__link:hover { color: var(--ink); background: rgba(13, 14, 17, 0.05); }
.dock__link[aria-current="page"] { color: var(--ink); background: rgba(13, 14, 17, 0.06); }
/* Blog before it opens: visible, locked, not a link (build-site.mjs, "open": false). */
.dock__link--slot { display: inline-flex; align-items: center; gap: 0.35rem; color: #8a8790; cursor: default; }
.dock__link--slot:hover { color: #8a8790; background: none; }
.dock__binnenkort { padding: 0.1rem 0.45rem; border-radius: 999px; background: rgba(13, 14, 17, 0.06); font-size: 0.72rem; }
.slotje { flex: none; }
.voet__slot { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; opacity: 0.6; cursor: default; }
.dock__rechts { display: flex; align-items: center; gap: 0.35rem; }
.dock__inlog { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; text-decoration: none; background: rgba(13, 14, 17, 0.05); }
.dock__inlog:hover { background: rgba(13, 14, 17, 0.09); }
.dock__boek { min-height: 2.5rem; padding: 0 1.15rem; font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 26rem) {
  .dock__merk img { height: 1.35rem; }
  .dock__boek { padding: 0 0.95rem; font-size: 0.85rem; }
  .dock__boek .knop__pijl { display: none; }
}
.dock__menu { display: none; }
.dock__link--mobiel { display: none; }

@media (max-width: 52rem) {
  .dock { padding-left: 1.1rem; }
  .dock__links {
    position: fixed; left: 0.75rem; right: 0.75rem; top: 4.7rem; transform: none; flex-direction: column; gap: 0;
    padding: 0.5rem; border-radius: 1.5rem; background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(120, 90, 170, 0.35);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 180ms, transform 180ms var(--ease), visibility 180ms;
  }
  .dock.is-open .dock__links { opacity: 1; visibility: visible; transform: none; }
  .dock__link { padding: 0.85rem 1rem; font-size: 1rem; }
  .dock__link--mobiel { display: block; }
  .dock__inlog { display: none; }
  .dock__menu {
    display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
    border: 0; border-radius: 999px; background: rgba(13, 14, 17, 0.05); cursor: pointer;
  }
  .dock__menu span, .dock__menu span::before { display: block; width: 1rem; height: 1.5px; background: var(--ink); position: relative; }
  .dock__menu span::before { content: ""; position: absolute; top: -5px; left: 0; box-shadow: 0 10px 0 var(--ink); width: 1rem; background: var(--ink); }
}

/* ---- the orb ------------------------------------------------------------ */
/* The button's orb is drawn live by bubble.js (support.js), the sphere of the old opening
   screen. This CSS orb is its stand-in in the composer and without WebGL, in the colours
   measured off that sphere (2026-10-06): blue core, a lilac-pink lower right, a pale
   green rim on the left and a pink rim on the right. */
.orb { position: relative; display: block; flex-shrink: 0; width: 3.5rem; height: 3.5rem; }
.orb-body {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  box-shadow: 0 4px 14px rgba(60, 80, 170, 0.22), 0 1px 2px rgba(30, 30, 40, 0.12);
}
.orb-body::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 36% at 34% 24%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 4px 0 8px rgba(165, 177, 179, 0.6),
    inset -4px 0 8px rgba(222, 190, 189, 0.7), inset 0 4px 8px rgba(203, 207, 195, 0.5);
}
/* The live orb: a canvas larger than the button, because the sphere's soft edge reaches
   1.75 times its radius. Once it draws, the CSS body steps aside. */
.orb-canvas { position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; pointer-events: none; }
.orb.is-levend .orb-body { opacity: 0; }
/* The CSS orb is hidden under the live one, so its drift would only cost frames. */
.orb.is-levend .orb-field { animation: none; }
.orb-field {
  position: absolute; inset: -25%; filter: blur(5px); animation: orbDrift 14s ease-in-out infinite alternate;
  background: radial-gradient(24% 26% at 66% 48%, #708fc5 0%, rgba(112, 143, 197, 0) 100%),
    radial-gradient(22% 26% at 34% 60%, #82aacd 0%, rgba(130, 170, 205, 0) 100%),
    radial-gradient(22% 18% at 62% 68%, #d4c4d8 0%, rgba(212, 196, 216, 0) 100%),
    radial-gradient(26% 18% at 48% 30%, #bfd0d9 0%, rgba(191, 208, 217, 0) 100%),
    radial-gradient(40% 40% at 50% 50%, #b3bed9 0%, rgba(179, 190, 217, 0) 100%), #bccbd8;
}
.orb-rings {
  position: absolute; inset: 0; opacity: 0; transform-origin: 72% 48%;
  background: repeating-radial-gradient(circle at 72% 48%, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0) 4px, rgba(255, 255, 255, 0.25) 5px, rgba(255, 255, 255, 0) 7px);
  -webkit-mask-image: radial-gradient(30% 30% at 72% 48%, #000 0%, transparent 100%);
  mask-image: radial-gradient(30% 30% at 72% 48%, #000 0%, transparent 100%);
}
@keyframes orbDrift { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(4%, -3%) rotate(14deg); } 100% { transform: translate(-3%, 3%) rotate(-10deg); } }
@keyframes ringsOut { 0% { transform: scale(0.7); opacity: 0; } 30% { opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---- the orb button and its chat window, on every page ------------------ */
.hulp { position: fixed; z-index: 55; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.hulp__knop { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0; border: 0; background: none; cursor: pointer; }
.hulp__knop .orb { transition: transform 220ms var(--ease); }
.hulp__knop:hover .orb { transform: scale(1.06); }
.hulp__knop:focus-visible { outline: 0; }
.hulp__knop:focus-visible .orb-body { outline: 2px solid var(--accent); outline-offset: 3px; }
.hulp__label {
  padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--ink);
  background: var(--glass); border: 1px solid rgba(13, 14, 17, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px -14px rgba(120, 90, 170, 0.35); transition: opacity 160ms;
}
.hulp.is-open .hulp__label { opacity: 0; pointer-events: none; }
.hulp.is-bezig .orb-rings { animation: ringsOut 2.8s ease-in-out infinite; }
.hulp.is-weg .hulp__knop { display: none; }
.hulp__venster {
  width: min(24rem, calc(100vw - 2.5rem)); max-height: min(36rem, calc(100vh - 8rem));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.5rem; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(90, 60, 140, 0.4), 0 2px 8px rgba(13, 14, 17, 0.06);
  opacity: 0; transform: translateY(8px); transition: opacity 180ms, transform 200ms var(--ease);
}
.hulp.is-open .hulp__venster { opacity: 1; transform: none; }
.hulp__kop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.9rem 0.4rem 1rem; }
.hulp__chip { padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.75rem; color: #46464b; }
.hulp__dicht { border: 0; background: none; padding: 0.25rem 0.4rem; cursor: pointer; color: var(--muted); font-size: 1.4rem; line-height: 1; border-radius: 999px; }
.hulp__dicht:hover { color: var(--ink); background: rgba(13, 14, 17, 0.05); }
.hulp__gesprek { flex: 1 1 auto; overflow-y: auto; display: grid; align-content: start; gap: 0.6rem; padding: 0.5rem 1rem 0.75rem; }
.hulp__bericht { max-width: 88%; font-size: 0.93rem; line-height: 1.55; }
.hulp__bericht--wij { justify-self: start; color: #2c2c31; }
.hulp__bericht--jij { justify-self: end; padding: 0.55rem 0.9rem; border-radius: 1.1rem 1.1rem 0.35rem 1.1rem; background: var(--paper); border: 1px solid var(--line); color: var(--ink); white-space: pre-wrap; }
.hulp__snel { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.hulp__vraag {
  padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas);
  cursor: pointer; font-size: 0.85rem; transition: border-color 140ms, background 140ms;
}
.hulp__vraag:hover { border-color: var(--ink); background: var(--paper); }
.hulp__invoer {
  display: flex; align-items: flex-end; gap: 0.6rem; margin: 0 0.6rem 0.6rem; padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  border-radius: 1.25rem; border: 1px solid var(--line-strong); background: var(--canvas);
  transition: border-color 140ms, box-shadow 140ms;
}
.hulp__invoer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(138, 63, 102, 0.14); }
.hulp__invoer .orb { width: 1.75rem; height: 1.75rem; margin-bottom: 0.3rem; }
.hulp__invoer textarea {
  flex: 1; min-height: 2.35rem; max-height: 10rem; padding: 0.45rem 0; border: 0; outline: 0; resize: none;
  font: inherit; font-size: 0.95rem; line-height: 1.45; color: var(--ink); background: none;
}
.hulp__invoer textarea::placeholder { color: rgba(13, 14, 17, 0.42); }
.hulp__stuur {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.35rem; height: 2.35rem;
  border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: background 140ms;
}
.hulp__stuur:hover { background: #26272c; }
.hulp__stuur svg { width: 1.05rem; height: 1.05rem; }
.hulp__form { display: grid; gap: 0.65rem; margin-top: 0.6rem; }
.hulp__form .veld input { min-height: 2.6rem; padding: 0.5rem 0.85rem; font-size: 0.95rem; }
.hulp__form .knop { justify-self: start; }
.hulp .honing { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 40rem) {
  .hulp { right: 0.9rem; bottom: 0.9rem; }
  .hulp__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .orb-field, .orb-rings { animation: none !important; } }

/* ---- footer ------------------------------------------------------------- */
.voet { background: var(--paper); padding: 4.5rem var(--pad) 2.5rem; margin-top: 0; }
.voet__in { max-width: var(--max); margin: 0 auto; display: grid; gap: 3rem; grid-template-columns: 1.6fr 1fr 1fr; }
.voet__merk { display: block; height: 2rem; width: auto; }
.voet p { color: var(--muted); font-size: 0.93rem; max-width: 34ch; margin-top: 0.6rem; }
.voet h2 { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 0.8rem; }
.voet li + li { margin-top: 0.45rem; }
.voet a { text-decoration: none; font-size: 0.95rem; }
.voet a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.voet__onder { max-width: var(--max); margin: 3.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
@media (max-width: 52rem) { .voet__in { grid-template-columns: 1fr; gap: 2rem; } }
/* The newsletter form under the footer logo (nieuwsbrief.js), and the privacy link in
   the bottom line. */
.voet__brief { margin-top: 1.8rem; max-width: 27rem; }
.voet__brief p { max-width: none; }
.voet__brief-rij { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.voet__brief-rij input {
  flex: 1; min-width: 0; min-height: 2.5rem; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 0.93rem; transition: border-color 140ms, box-shadow 140ms;
}
.voet__brief-rij input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(138, 63, 102, 0.18); }
.voet__brief .melding { margin-top: 0.7rem; }
.voet__verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.voet__val { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.voet__onder a { font-size: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- section labels: a small pill with a hairline either side (shared by every page) ----------- */
.h-label { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.4rem; }
.h-label::before, .h-label::after { content: ""; flex: 0 1 5rem; height: 1px; background: var(--line-strong); }
.h-label span {
  padding: 0.3rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--canvas);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #46464b;
}
.h-label--links { justify-content: flex-start; }
.h-label--links::before { display: none; }
