/* CoachDossier — Bloei publieke pagina: hoe werkt het.*/
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ============================================================
       Huisstijl "Bloei", warme crème, gedempt teal, klei.
       De oude variabelenamen blijven bestaan (--blue-* enz.) maar
       wijzen nu naar het nieuwe palet, zodat bestaande templates
       die ernaar verwijzen automatisch meekleuren.
       ============================================================ */
    :root {
      /* legacy-namen, geremapt naar het nieuwe palet */
      --blue-dark:    var(--brand-deep);   /* diepste teal, identiek aan de app-balk */
      --blue-mid:     var(--action);        /* teal, knoppen, links, accenten */
      --blue-light:   #DCE9E8;   /* teal-soft */
      --bg:           #F4EFE7;   /* warme crème-doek */
      --text:         #3A352F;   /* warm bijna-zwart */
      --muted:        #756E63;
      --orange:       #C2774E;   /* klei, AVG/aandacht */
      --orange-bg:    #F2E2D5;
      --orange-border:#E0A878;
      --radius:       8px;
      --shadow:       0 2px 10px rgba(58,53,47,.10);
      --sidebar-w:    240px;

      /* nieuw */
      --surface:      #FBF8F2;   /* kaarten / papier */
      --surface-2:    #EDE7DC;   /* inputs / genest */
      --border:       #E6DFD2;
      --border-strong:#CFC8BA;
      --teal-300:     #8FC0C2;
      --teal-deep:    #34646B;
      --sage:         #6E8A6F;
      --bordeaux:     #8A2E2E;
      --on-brand:     #F4EFE7;
      --on-brand-muted:#B7C9C7;
      --font:  'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
      --mono:  'IBM Plex Mono', ui-monospace, "SF Mono", Menlo, monospace;
    }

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex; flex-direction: column;
      -webkit-font-smoothing: antialiased;
      line-height: 1.55;
    }

    /* ── Topbar (identiek aan landingspagina / Over) ────── */
    .lp-nav {
      position: sticky; top: 0; z-index: 100;
      background: var(--blue-dark); color: var(--on-brand);
      border-bottom: 1px solid rgba(255,255,255,.10);
    }
    .lp-nav-in {
      max-width: 1180px; margin: 0 auto; height: 62px;
      display: flex; align-items: center; gap: 6px; padding: 0 1.5rem;
    }
    .lp-nav .wm-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; flex-shrink: 0; }
    .lp-nav .cd-mark { flex-shrink: 0; }
    .lp-nav .wm { font-family: var(--font); font-weight: 700; font-size: 1.12rem; color: #fff; letter-spacing: -.02em; line-height: 1; }
    .lp-nav .wm span { font-weight: 400; color: var(--teal-300); }
    .lp-nav a.lpl {
      font-size: .86rem; color: var(--on-brand-muted); padding: 7px 12px;
      border-radius: var(--radius); text-decoration: none; white-space: nowrap;
      transition: color .12s, background .12s;
    }
    .lp-nav a.lpl:hover { color: #fff; background: rgba(255,255,255,.06); }
    .lp-nav a.lpl.active { color: #fff; background: rgba(255,255,255,.09); }
    .lp-nav .nav-spacer { width: 1px; height: 22px; background: rgba(255,255,255,.16); margin: 0 6px; flex-shrink: 0; }
    @media (max-width: 860px) {
      .lp-nav a.lpl { display: none; }
      .lp-nav .nav-spacer { display: none; }
    }

    /* ── Page wrap ──────────────────────────────────────── */
    #page-wrap {
      flex: 1; min-height: 0; width: 100%;
      display: flex; flex-direction: column;
      background: linear-gradient(180deg, #EDE7DC 0%, var(--bg) 170px);
    }
    main { flex: 1; max-width: var(--content-max, 940px); width: 100%; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

    /* ── Verlopen banner ────────────────────────────────── */
    .verlopen-banner {
      background: var(--orange-bg); border-bottom: 1px solid var(--orange);
      color: #9C4521; font-size: .85rem; padding: .6rem 1.5rem; text-align: center;
    }

    /* ── Page headings ──────────────────────────────────── */
    .page-title {
      font-family: var(--font); font-size: 1.75rem; font-weight: 800;
      letter-spacing: -.02em; color: var(--blue-dark); margin-bottom: .25rem;
    }
    .page-subtitle { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }

    /* ── AVG banner ─────────────────────────────────────── */
    .avg-banner {
      background: var(--orange-bg); border: 1px solid var(--orange-border);
      color: var(--orange); border-radius: var(--radius);
      padding: .75rem 1rem; font-size: .85rem; margin-bottom: 1.5rem;
      display: flex; align-items: flex-start; gap: .5rem;
    }
    .avg-banner svg { flex-shrink: 0; margin-top: 1px; }

    /* ── Section card ───────────────────────────────────── */
    .section-card {
      background: var(--surface); border-radius: var(--radius);
      box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden;
      border: 1px solid var(--border);
    }
    .section-card h2 {
      background: var(--blue-mid); color: #fff;
      font-family: var(--font); font-size: 1rem; font-weight: 600;
      padding: .7rem 1rem; letter-spacing: -.01em;
    }
    .section-body { padding: 1.25rem 1rem; display: grid; gap: .9rem; }
    .two-col { grid-template-columns: 1fr 1fr; }
    @media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

    /* ── Form elements ──────────────────────────────────── */
    label {
      display: flex; flex-direction: column; gap: .3rem;
      font-size: .85rem; color: var(--muted); font-weight: 500;
    }
    input[type="text"], input[type="date"], input[type="email"],
    input[type="password"], textarea, select {
      font-family: var(--font); font-size: .9rem; color: var(--text);
      background: var(--surface-2); border: 1px solid var(--border-strong);
      border-radius: var(--radius); padding: .55rem .7rem;
      transition: border-color .15s, box-shadow .15s; width: 100%;
    }
    input:focus, textarea:focus, select:focus {
      outline: none; border-color: var(--blue-mid);
      box-shadow: 0 0 0 3px rgba(63,117,123,.18);
    }
    textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
    input::placeholder, textarea::placeholder { color: #9A9285; }

    /* ── Pills ──────────────────────────────────────────── */
    .pill-group { display: flex; flex-wrap: wrap; gap: .4rem; }
    .pill-group label {
      flex-direction: row; align-items: center;
      font-size: .82rem; font-weight: normal; color: var(--text); cursor: pointer;
    }
    .pill-group input { display: none; }
    .pill-group .pill {
      display: inline-block; padding: .3rem .75rem;
      border: 1.5px solid var(--blue-mid); border-radius: 999px;
      color: var(--blue-mid); background: var(--surface);
      font-size: .82rem; transition: background .12s, color .12s; user-select: none;
    }
    .pill-group input:checked + .pill { background: var(--blue-mid); color: #fff; }
    .pill-group label:hover .pill { background: var(--blue-light); }

    /* ── Buttons ────────────────────────────────────────── */
    .btn-primary {
      display: inline-flex; align-items: center; gap: .5rem;
      background: var(--blue-mid); color: #fff; border: none;
      border-radius: var(--radius); padding: .7rem 1.5rem;
      font-family: var(--font); font-size: .95rem; font-weight: 600;
      cursor: pointer; transition: background .15s, transform .1s; text-decoration: none;
    }
    .btn-primary:hover { background: var(--teal-deep); }
    .btn-primary:active { transform: translateY(1px); }
    .btn-primary:disabled { opacity: .55; cursor: not-allowed; }
    .btn-download {
      display: inline-flex; align-items: center; gap: .5rem;
      background: var(--sage); color: #fff; border: none;
      border-radius: var(--radius); padding: .65rem 1.25rem;
      font-family: var(--font); font-size: .9rem; font-weight: 600; cursor: pointer;
      text-decoration: none; transition: background .15s; margin-top: .75rem;
    }
    .btn-download:hover { background: #5C7A5E; }

    /* ── Loader ─────────────────────────────────────────── */
    #loader { display: none; align-items: center; gap: .75rem; color: var(--blue-mid); font-size: .9rem; margin-top: 1rem; }
    .spinner {
      width: 22px; height: 22px; border: 3px solid var(--blue-light);
      border-top-color: var(--blue-mid); border-radius: 50%;
      animation: spin .7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Result / error boxes ───────────────────────────── */
    .result-box {
      background: var(--surface); border: 1px solid var(--border-strong);
      border-radius: var(--radius); padding: 1.25rem; white-space: pre-wrap;
      font-family: var(--mono); font-size: .82rem; color: var(--text);
      max-height: 480px; overflow-y: auto; line-height: 1.7;
    }
    .error-box {
      background: #F6E4E4; border: 1px solid #DDA9A9; border-radius: var(--radius);
      padding: 1rem; color: var(--bordeaux); font-size: .9rem;
    }

    /* ── Demo overlay ───────────────────────────────────── */
    .demo-overlay {
      display: none; position: fixed; inset: 0; background: rgba(38,71,75,.6);
      z-index: 1000; align-items: center; justify-content: center; padding: 1.5rem;
    }
    .demo-overlay.active { display: flex; }
    .demo-card {
      background: var(--surface); border-radius: 12px; padding: 2rem;
      max-width: 440px; width: 100%; box-shadow: 0 18px 44px rgba(38,71,75,.25);
    }
    .demo-card h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .75rem; }
    .demo-card p { font-size: .9rem; color: #4A453C; line-height: 1.7; margin-bottom: 1.25rem; }
    .demo-card-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
    .btn-demo-close {
      background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
      border-radius: var(--radius); padding: .55rem 1.1rem; font-size: .88rem; cursor: pointer; font-weight: 600;
    }
    .btn-demo-close:hover { background: #E0DACE; }
    .btn-demo-contact {
      background: var(--blue-mid); color: #fff; border: none; border-radius: var(--radius);
      padding: .55rem 1.1rem; font-size: .88rem; font-weight: 600; text-decoration: none;
      display: inline-flex; align-items: center;
    }
    .btn-demo-contact:hover { background: var(--teal-deep); }

    /* ── Footer ─────────────────────────────────────────── */
    footer {
      text-align: center; font-size: .75rem; color: var(--muted);
      padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
    }
  main { max-width: 920px; }
  .hw-intro { font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: 64ch; margin-bottom: 1.75rem; }

  /* twee-flow grid */
  .hw-flows { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
  @media (max-width: 740px) { .hw-flows { grid-template-columns: 1fr; } }
  .hw-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  .hw-card > h2 {
    background: var(--blue-mid); color: #fff; font-family: var(--font);
    font-size: 1rem; font-weight: 600; padding: .7rem 1.1rem; letter-spacing: -.01em;
    display: flex; align-items: center; gap: .55rem;
  }
  .hw-card > h2 svg { width: 17px; height: 17px; opacity: .9; }
  .hw-body { padding: 1.1rem 1.25rem 1.35rem; }

  .hw-steps { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
  .hw-steps li { display: flex; gap: .8rem; align-items: flex-start; }
  .hw-steps .n {
    flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%;
    background: var(--blue-light); color: var(--blue-mid);
    font-family: var(--mono); font-size: .76rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center; margin-top: 1px;
  }
  .hw-steps .t { font-size: .88rem; line-height: 1.55; color: var(--text); }
  .hw-steps .t b { font-weight: 600; color: var(--blue-dark); }
  .hw-out {
    margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--border-strong);
    display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.55;
  }
  .hw-out svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }

  .hw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  @media (max-width: 600px) { .hw-two { grid-template-columns: 1fr; } }
  .hw-ref { display: flex; gap: .8rem; align-items: flex-start; }
  .hw-ref .ic {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
    background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  }
  .hw-ref .ic svg { width: 19px; height: 19px; color: var(--blue-mid); }
  .hw-ref h3 { font-size: .92rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .2rem; letter-spacing: -.01em; }
  .hw-ref p { font-size: .84rem; color: var(--muted); line-height: 1.55; }
  .hw-ref a.meer { font-size: .82rem; color: var(--blue-mid); font-weight: 600; text-decoration: none; }
  .hw-ref a.meer:hover { text-decoration: underline; }

  .hw-data p { font-size: .89rem; line-height: 1.75; color: var(--text); }
  .hw-data p + p { margin-top: .7rem; }
  .hw-data b { font-weight: 600; color: var(--blue-dark); }
  .hw-checks { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin: .25rem 0 0; }
  .hw-checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--text); line-height: 1.55; }
  .hw-checks svg { width: 17px; height: 17px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }

  .hw-link-card {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: #F4EFE7; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem 1.35rem; margin-top: 1.25rem;
  }
  .hw-link-card .lc-tx { flex: 1; min-width: 220px; }
  .hw-link-card h3 { font-size: .95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .15rem; }
  .hw-link-card p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
  .hw-link-card a {
    display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    background: var(--surface); color: var(--blue-mid); border: 1px solid var(--border-strong);
    border-radius: var(--radius); padding: .55rem 1rem; font-size: .85rem; font-weight: 600; text-decoration: none;
  }
  .hw-link-card a:hover { background: var(--blue-light); border-color: var(--blue-mid); }
