/* =========================================================
   JUNE20 · Business Innovation Scan
   Design system extracted from Figma
   ========================================================= */

:root {
  /* Colors - June20 Brand */
  --j20-white: #ffffff;
  --j20-off-black: #211419;
  --j20-red: #e6371e;
  --j20-red-dark: #c02b0a;  /* WCAG AA compliant for small text on dark backgrounds */
  --j20-lila: #f0c8eb;

  /* Legacy aliases for backwards compatibility */
  --bg: var(--j20-white);
  --ink: var(--j20-off-black);
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --red: var(--j20-red);
  --red-deep: #991b1b;
  --red-tint: #fee2e2;

  /* Typography - June20 Design System */
  --font-inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing Scale - 4px base unit */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;

  /* Border Radius Scale */
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-full: 50px;  /* Only buttons keep rounded */

  /* Font sizes & line heights */
  --h1-size: 52px;
  --h1-line: 52px;
  --h1-weight: 900;        /* Inter Black for H1 */
  --h2-size: 44px;
  --h2-line: 50px;
  --h2-weight: 800;        /* Inter Extra Bold for H2 */
  --h3-size: 32px;
  --h3-line: 44px;
  --h3-weight: 600;        /* Inter Semi Bold for H3 */
  --h4-size: 24px;
  --h4-line: 32px;
  --h4-weight: 600;        /* Inter Semi Bold for H4 */
  --body-s-size: 18px;
  --body-s-line: 32px;
  --body-m-size: 24px;
  --body-m-line: 34px;

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 780px;  /* For quiz, forms, and focused content */
  --gutter: clamp(20px, 4vw, 56px);

  /* Legacy font aliases */
  --serif: var(--font-inter);
  --sans: var(--font-inter);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--j20-off-black);
  color: var(--j20-white);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography - Headings (all Inter) */
h1 {
  font-family: var(--font-inter);
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: var(--h1-weight);
  margin: 0;
}

h2 {
  font-family: var(--font-inter);
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: var(--h2-weight);
  margin: 0;
}

h3 {
  font-family: var(--font-inter);
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: var(--h3-weight);
  margin: 0;
}

h4 {
  font-family: var(--font-inter);
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  font-weight: var(--h4-weight);
  margin: 0;
}

a { color: var(--j20-red); text-decoration: none; }
a:hover { text-decoration: underline; }
em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-inter);
  font-weight: 500;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-8) var(--gutter);
  backdrop-filter: blur(30px);
  background: rgba(33, 20, 25, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  display: block;
  height: 19px;
  width: auto;
  /* Original June20 red logo - no filter */
}
.brand-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.diag-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- views ---------- */
.view {
  display: none;
  min-height: calc(100vh - 90px);
  padding: clamp(var(--space-8), 7vw, var(--space-12)) var(--gutter);
}
.view-active { display: block; }

/* ---------- INTRO ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- sector-keuze (eigen stap, na Start, voor de test) ---------- */
.sector-step {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.sector-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.sector-motiv {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
  margin: 0 0 36px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-3);
}
.cat-chip {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--j20-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
}
.cat-chip:hover {
  border-color: var(--j20-red);
  background: rgba(230, 55, 30, 0.1);
}
.cat-chip.selected {
  background: var(--j20-lila);
  border-color: var(--j20-lila);
  color: var(--j20-off-black);
  font-weight: 600;
}
.cat-card-chosen {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin: 18px 0 0;
}
.cat-card-chosen[hidden] { display: none; }
.sector-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--j20-off-black); border-color: var(--j20-white); }
.btn-primary:disabled:hover .arrow { transform: none; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--j20-red-dark);
  margin: 0 0 var(--space-5);
  font-weight: 600;
}
.hero-title {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 24ch;
}

.hero-title .ethereal-light {
  font-family: 'Ethereal', var(--font-inter);
  font-weight: 400;
  font-style: normal;
}

.hero-title .inter-black {
  font-family: var(--font-inter);
  font-weight: 900;
  text-transform: uppercase;
}
.hero-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  margin: 0 0 44px;
}
.hero-lede.hero-lede-top {
  margin: 0 0 40px;
  color: var(--j20-white);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-10);
}
.meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.usp {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 36px;
  max-width: var(--maxw);
}
.usp li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  position: relative;
  padding-left: 22px;
}
.usp li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px;
  height: 2px;
  background: var(--red);
}
.usp strong { color: var(--j20-white); display: block; font-weight: 600; margin-bottom: 4px; }

/* ---------- buttons ---------- */
.btn-primary {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--j20-lila);
  color: var(--j20-off-black);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--j20-red);
  color: var(--j20-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 55, 30, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(230, 55, 30, 0.2);
}
.btn-primary .arrow { transition: transform .15s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  background: transparent;
  color: var(--j20-white);
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--j20-white); }

/* ---------- QUIZ ---------- */
.quiz-wrap {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
/* ---------- progress (top, full-width, segmented) ---------- */
.progress-top {
  max-width: var(--maxw);
  margin: 0 auto 44px;
  padding: 0;
}
.progress-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.seg {
  position: relative;
  padding-top: 8px;
}
.seg-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.seg-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(to right, var(--j20-lila), var(--j20-red));
  width: 0%;
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.seg.seg-current .seg-bar { background: rgba(240, 200, 235, 0.2); }
.seg.seg-current .seg-fill { background: linear-gradient(to right, var(--j20-lila), var(--j20-red)); }
.seg.seg-done .seg-fill { width: 100% !important; }
.seg-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  font-weight: 500;
}
.seg.seg-current .seg-label { color: var(--j20-white); font-weight: 600; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.progress-microcopy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  flex: 1;
  min-height: 1.2em;
}
.progress-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- responsive breakpoints ---------- */
@media (max-width: 640px) {
  .seg-label { font-size: 9px; letter-spacing: 0.08em; }

  /* Improve touch targets on mobile */
  .btn-primary,
  .btn-ghost,
  .answer-btn,
  .cat-chip {
    min-height: 44px; /* iOS recommended touch target */
  }

  /* Better font sizes on small screens */
  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .quiz-question {
    font-size: clamp(22px, 6vw, 32px);
  }

  /* Reduce gaps on mobile for better space usage */
  .cta-row {
    gap: var(--space-4);
  }

  .answers {
    gap: var(--space-2);
  }
}

.quiz-dim-tag { margin-bottom: 18px; }
.dim-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--j20-red-dark);
  font-weight: 600;
}

/* ---------- halverwege overlay (V3 stoïsch) ---------- */
.halverwege[hidden] { display: none !important; }
.halverwege {
  position: fixed;
  inset: 0;
  background: rgba(33, 20, 25, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: halverwege-in .3s cubic-bezier(.2,.7,.2,1);
  padding: 24px;
}
@keyframes halverwege-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.halverwege-card {
  max-width: 660px;
  text-align: center;
  animation: halverwege-card-in .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes halverwege-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.halverwege-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--j20-red-dark);
  margin: 0 0 var(--space-5);
  font-weight: 600;
}
.halverwege-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--j20-white);
  margin: 0 0 36px;
  text-wrap: balance;
}
.halverwege-btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--j20-lila);
  color: var(--j20-off-black);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  transition: all .2s ease;
}
.halverwege-btn:hover {
  background: var(--j20-red);
  color: var(--j20-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 55, 30, 0.3);
}
.halverwege-btn .arrow { transition: transform .15s; }
.halverwege-btn:hover .arrow { transform: translateX(4px); }

.quiz-question {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.quiz-help {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 44px;
  max-width: 60ch;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.answer-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: var(--space-4) var(--space-5);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--j20-white);
  cursor: pointer;
  transition: all .2s ease;
}
.answer-btn:hover {
  border-color: var(--j20-red);
  background: rgba(230, 55, 30, 0.1);
  transform: translateX(4px);
}
.answer-btn.selected {
  border-color: var(--j20-lila);
  background: var(--j20-lila);
  color: var(--j20-off-black);
}
/* uniform neutrale cirkels, geen voor-coding van het antwoord */
.answer-glyph {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: transparent;
  transition: all .2s ease;
  font-size: 0;
}
.answer-btn:hover .answer-glyph {
  border-color: var(--j20-red);
}
.answer-btn.selected .answer-glyph {
  background: var(--j20-off-black);
  border-color: var(--j20-off-black);
}

/* difficulty-schaal, verschijnt na antwoord op dilemma-vraag */
.difficulty {
  margin-top: 28px;
  padding: 24px 24px 22px;
  background: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: difficulty-in .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes difficulty-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.difficulty-q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--j20-white);
}
.difficulty-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  max-width: 440px;
  margin: 0 0 10px;
}
.diff-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: transform .12s, border-color .12s, background .12s;
  flex-shrink: 0;
}
.diff-dot:hover { border-color: var(--j20-white); transform: scale(1.08); }
.diff-dot.selected {
  background: var(--blue);
  border-color: var(--blue);
}
.difficulty-axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 440px;
  gap: 4px;
}
.difficulty-axis span {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  white-space: nowrap;
}

.quiz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 32px;
}
.link-back {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 4px;
}
.link-back:hover { color: var(--j20-white); border-color: rgba(255, 255, 255, 0.5); }
.link-back:disabled { color: rgba(255, 255, 255, 0.5); cursor: not-allowed; }
.quiz-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

/* ---------- LEAD ---------- */
.lead-form .field span::after { content: " *"; color: var(--red); }
.lead-required-note { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin: 0 0 6px; }
.lead-wrap {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.lead-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.lead-lede {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.lead-form .btn-primary {
  align-self: flex-start; /* Prevents button from stretching to full width */
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 540px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.field input {
  background: var(--j20-white);
  border: 2px solid transparent;
  border-radius: 4px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--j20-off-black);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder {
  color: rgba(33, 20, 25, 0.7);
}
.field input:hover {
  border-color: rgba(230, 55, 30, 0.3);
}
.field input:focus {
  border-color: var(--j20-red);
  box-shadow: 0 0 0 3px rgba(230, 55, 30, 0.1);
}
.field select {
  background: var(--j20-white);
  border: 2px solid transparent;
  border-radius: 4px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--j20-off-black);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23211419' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: 40px;
}
.field select:hover {
  border-color: rgba(230, 55, 30, 0.3);
}
.field select:focus {
  border-color: var(--j20-red);
  box-shadow: 0 0 0 3px rgba(230, 55, 30, 0.1);
}
.field-opt {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  cursor: pointer;
  padding: 6px 0;
}
.consent input { margin-top: 3px; accent-color: var(--blue); }
.lead-fineprint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0;
}
.consent a { color: var(--blue); text-decoration: underline; }
.lead-confirm {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  margin: 10px 0 0;
}

/* ---------- RAPPORT ---------- */
.report {
  max-width: var(--maxw);
  margin: 0 auto;
}
.report-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
  margin-bottom: 48px;
}
.report-brand {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.report-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.report-greet {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 0;
}
.block:first-of-type { border-top: none; padding-top: 0; }
.block-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
}
.block-label-red  { color: var(--red); }
.block-label-blue { color: var(--blue); }

/* gauge */
.gauge {}
.gauge-track {
  position: relative;
  height: 14px;
  background: linear-gradient(to right, var(--red-tint), var(--blue-tint));
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
  overflow: visible;
}
.gauge-range {
  position: absolute;
  top: -2px; bottom: -2px;
  background: rgba(10, 10, 10, 0.10);
  border-left: 1px dashed rgba(10,10,10,0.45);
  border-right: 1px dashed rgba(10,10,10,0.45);
  left: 0%;
  width: 0%;
  transition: left .8s cubic-bezier(.2,.7,.2,1), width .8s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.gauge-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(to right, var(--j20-lila), var(--j20-red));
  width: 0%;
  transition: width .8s cubic-bezier(.2,.7,.2,1);
  opacity: 0.85;
}
.gauge-marker {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 30px;
  background: var(--j20-off-black);
  left: 0%;
  transition: left .8s cubic-bezier(.2,.7,.2,1);
}
.gauge-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.gauge-axis span:nth-child(2) { color: var(--j20-white); font-weight: 600; }
.gauge-status {
  margin: 18px 0 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.confidence-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 60ch;
  line-height: 1.5;
  font-style: italic;
}

/* signalen */
.signals-intro {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin: -10px 0 18px;
  max-width: 60ch;
}
/* sterkste/zwakste signaal: één vlotte zin met blauwe/rode accentrand */
.signal-line {
  font-size: 17px;
  line-height: 1.55;
  color: var(--j20-white);
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  max-width: 64ch;
}
.signal-line-strong { border-left-color: var(--blue); }
.signal-line-weak   { border-left-color: var(--red); }
.signal-cap {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 6px;
  padding-left: 19px;
}
.signal-cap-strong { color: var(--blue); }
.signal-cap-weak   { color: var(--red); }
.signal-line.is-empty {
  border-left: none;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-size: 15px;
}

/* eerlijke methodenoot onderaan het rapport */
.report-method-note {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin: 28px 0 0;
  max-width: 64ch;
}

/* ---------- samengevoegd rapport: spacing tussen delen binnen één blok ---------- */
.gauge + .dims { margin-top: 32px; }
.signal-pair { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.block-tension .narrative { margin-top: 26px; }
.block-tension .obs { margin-top: 22px; }
.block-tension .end-text { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--j20-white); }
.rki-flow { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.rki-flow p { font-size: 16px; line-height: 1.55; color: var(--j20-white); margin: 0; max-width: 64ch; }
.rki-lead { font-weight: 600; color: var(--j20-white); }
.rki-coi-line { color: rgba(255, 255, 255, 0.7); }

/* dimensies */
.dims { display: flex; flex-direction: column; gap: 18px; }
.dim-row {
  display: grid;
  grid-template-columns: 220px 1fr 56px;
  align-items: center;
  gap: 18px;
}
.dim-name {
  font-size: 14px;
  color: var(--j20-white);
  font-weight: 500;
}
.dim-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dim-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(to right, var(--j20-lila), var(--j20-red));
  width: 0%;
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}
.dim-bar-fill.weak { background: linear-gradient(to right, var(--j20-lila), var(--j20-red)); }
.dim-bar-fill.mid  { background: linear-gradient(to right, var(--j20-lila), var(--j20-red)); }
.dim-pct {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}
@media (max-width: 600px) {
  .dim-row { grid-template-columns: 1fr 48px; }
  .dim-row .dim-bar { grid-column: 1 / -1; order: 3; }
}

/* narrative */
.narrative {
  font-size: 17px;
  line-height: 1.6;
  color: var(--j20-white);
  max-width: 64ch;
}
.narrative p + p { margin-top: 14px; }

/* diepste interne spanning (uit moeilijkheidsschaal) */
.deepest-intro {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 60ch;
}
.deepest-card {
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  background: #fafafa;
}
.deepest-card-q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  color: var(--j20-white);
  margin: 0 0 14px;
}
.deepest-card-chosen {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 14px;
  line-height: 1.5;
}
.deepest-card-chosen strong { color: var(--j20-white); font-weight: 600; }
.deepest-card-signal {
  font-size: 15px;
  color: var(--j20-white);
  line-height: 1.55;
  margin: 0 0 16px;
  font-style: italic;
}
.deepest-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.deepest-dots {
  display: flex;
  gap: 4px;
}
.deepest-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.deepest-dots span.on { background: var(--red); }

/* proto-spanning */
.block-tension {
  border-top: 2px solid var(--j20-red);
  padding-top: var(--space-10);
  margin-top: var(--space-10);
}
.tension-domain {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--j20-red-dark);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.02em;
}
.tension-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  border-left: 3px solid var(--j20-red);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: 0 0 var(--space-5);
  color: var(--j20-white);
  max-width: 60ch;
}
.tension-disclaimer {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 64ch;
  margin: 0 0 var(--space-6);
}

/* observaties */
.obs {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.obs li {
  display: flex;
  gap: var(--space-3);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 64ch;
}
.obs li::before {
  content: "→";
  color: var(--j20-red);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* risico / kans / implicatie */
.rki {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}
.rki-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-5);
  align-items: baseline;
}
.rki-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j20-red);
  font-weight: 600;
}
.rki-val {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.coi {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 2px solid var(--j20-red);
}
.coi-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j20-red);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.coi-val {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--j20-white);
  max-width: 64ch;
  margin: 0;
}
@media (max-width: 600px) {
  .rki-row { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* open einde + CTA */
.block-end {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-10);
  margin-top: var(--space-10);
}
.end-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--j20-white);
  max-width: 60ch;
  margin: 0 0 var(--space-6);
}
.block-cta {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-10) clamp(var(--space-6), 5vw, var(--space-10));
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.block-cta .btn-primary {
  background: var(--j20-lila);
  color: var(--j20-off-black);
}
.block-cta .btn-primary:hover {
  background: var(--j20-red);
  color: var(--j20-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 55, 30, 0.3);
}
.block-cta .btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255, 255, 255, 0.9);
}
.block-cta .btn-ghost:hover {
  border-color: var(--j20-white);
  color: var(--j20-white);
}
.cta-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 0 0 var(--space-4);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--j20-white);
}
.cta-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0 0 var(--space-6);
  max-width: 60ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  gap: var(--space-4);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: center;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover {
  color: var(--j20-white);
  text-decoration: none;
}
.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}
.footer-right {
  justify-self: end;
}
@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    justify-items: center;
    text-align: center;
  }
  .footer-links {
    order: 2;
  }
  .footer-right {
    order: 3;
    justify-self: center;
  }
}
@media (max-width: 540px) {
  .footer {
    gap: 6px;
  }
}

/* ---------- sector-benchmark (rapport) ---------- */
.bench-loading, .bench-first {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}
.bench-first { font-style: italic; }
.bench-head {
  font-size: 16px;
  line-height: 1.55;
  color: var(--j20-white);
  max-width: 64ch;
  margin: 0 0 16px;
}
.bench-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.bench-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.bench-key-you { background: var(--blue); }
.bench-key-avg { background: rgba(255, 255, 255, 0.5); margin-left: 12px; }
.bench-rows { display: flex; flex-direction: column; gap: 14px; }
.bench-row {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  gap: 18px;
}
.bench-name { font-size: 14px; color: var(--j20-white); font-weight: 500; }
.bench-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bench-avg, .bench-you {
  position: absolute;
  top: 50%;
  height: 16px;
  transform: translate(-50%, -50%);
}
.bench-avg { background: rgba(255, 255, 255, 0.5); width: 2px; }
.bench-you { background: var(--blue); width: 3px; }
.bench-vals {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--j20-white);
  text-align: right;
}
.bench-vs { color: rgba(255, 255, 255, 0.5); margin-left: 8px; }
/* gecentreerd, volle breedte (Peters keuze, alleen op de tekst) */
#block-benchmark .block-label,
.bench-first, .bench-loading, .bench-head { text-align: center; }
.bench-first, .bench-loading, .bench-head { max-width: none; }
@media (max-width: 600px) {
  .bench-row { grid-template-columns: 1fr 96px; }
  .bench-row .bench-track { grid-column: 1 / -1; order: 3; }
}

/* ---------- 360 invite (rapport) ---------- */
.block-invite { border-top: 2px solid var(--red); }
.invite-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.invite-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 64ch;
  margin: 0 0 24px;
}
.invite-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.invite-field span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.invite-field input {
  background: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--j20-white);
  outline: none;
}
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- board-dashboard ---------- */
.dash-wrap { max-width: var(--maxw); margin: 0 auto; }
.dash-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
  margin-bottom: 40px;
}
.dash-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.dash-sub { font-size: 15px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.dash-loading, .dash-empty {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 60ch;
}
.dash-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.dash-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--j20-white);
  font-variant-numeric: tabular-nums;
}
.dash-dot-key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dash-rows { display: flex; flex-direction: column; gap: 20px; }
.dash-row {
  display: grid;
  grid-template-columns: 200px 1fr 56px;
  align-items: center;
  gap: 18px;
}
.dash-row-name { font-size: 14px; color: var(--j20-white); font-weight: 500; }
.dash-flag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-left: 6px;
}
.dash-track {
  position: relative;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-row-big .dash-track { background: var(--red-tint); border-color: var(--red); }
.dash-band { position: absolute; top: 0; bottom: 0; background: rgba(10, 10, 10, 0.08); }
.dash-row-big .dash-band { background: rgba(220, 38, 38, 0.14); }
.dash-dot {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.dash-gap {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}
.dash-row-big .dash-gap { color: var(--red); font-weight: 600; }
@media (max-width: 600px) {
  .dash-row { grid-template-columns: 1fr 48px; }
  .dash-row .dash-track { grid-column: 1 / -1; order: 3; height: 32px; }
}

/* ---------- goed doel (Art Zonder Grenzen) ---------- */
.block-charity { background: var(--blue-tint); border-top: none; margin-top: 24px; padding: 40px clamp(24px, 4vw, 48px); }
.charity-title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.charity-sub { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); max-width: 64ch; margin: 0 0 14px; }
.charity-total { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 22px; min-height: 1em; }
.charity-form { display: flex; flex-direction: column; gap: 14px; }
.charity-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.charity-fields input { background: #fff; border: 1px solid rgba(255, 255, 255, 0.1); padding: 13px 15px; font-family: var(--sans); font-size: 15px; color: var(--j20-white); outline: none; }
.charity-fields input:focus { border-color: var(--blue); }
.charity-form .btn-primary { align-self: flex-start; }
.charity-confirm { font-size: 14px; color: var(--blue); font-weight: 600; margin: 4px 0 0; }
.charity-confirm[hidden] { display: none; }
.charity-fineprint { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 4px 0 0; }

/* print */
@media print {
  /* Verberg navigatie en CTA */
  .topbar, .footer, .block-cta { display: none; }

  /* Algemene PDF styling */
  body {
    font-size: 11px;
    background: white !important;
    color: #0a0a0a !important;
  }

  .view {
    padding: 16px;
    min-height: 0;
    background: white !important;
  }

  .report {
    max-width: 100%;
    padding: 0;
    background: white !important;
  }

  /* Blocks: witte achtergrond met border ipv donkere achtergrond */
  .block {
    background: white !important;
    color: #0a0a0a !important;
    border: 1px solid #e5e7eb !important;
  }

  /* Alle tekst in blocks moet donker zijn */
  .block *, .report-title, .report-intro, .score-num, .score-lbl,
  .dim-name, .dim-score, .block-title, .tension-domain, .tension-quote,
  .tension-disclaimer, .obs li, .rki-key, .rki-val, .coi-key, .coi-val,
  .end-text {
    color: #0a0a0a !important;
  }

  /* Rode tekst behouden voor accenten */
  .rki-key, .coi-key, .tension-domain, .obs li::before {
    color: #dc2626 !important;
  }

  /* Logo toevoegen aan bovenkant rapport */
  .report::before {
    content: '';
    display: block;
    width: 99px;
    height: 19px;
    background-image: url('./assets/June20_Logo_RGB_rood-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 24px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Kleuren behouden in PDF */
  .gauge-fill, .dim-bar-fill, .block {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Tekstgroottes voor PDF */
  .report-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .report-intro {
    font-size: 12px;
    line-height: 1.5;
  }

  .score-num {
    font-size: 48px;
  }

  .dim-name {
    font-size: 10px;
  }

  .block-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .tension-quote {
    font-size: 16px;
    line-height: 1.35;
  }

  .tension-disclaimer, .obs li, .rki-val, .coi-val {
    font-size: 11px;
    line-height: 1.5;
  }

  .end-text {
    font-size: 13px;
  }

  /* Paginabreuk vermijden bij belangrijke secties */
  .block {
    page-break-inside: avoid;
  }

  .block-tension, .block-end {
    page-break-before: auto;
  }

  /* Spacing aanpassen voor PDF */
  .block {
    padding: 16px 20px;
    margin-bottom: 12px;
  }

  .gauge {
    margin: 16px 0;
  }

  .dimensions {
    gap: 12px;
    margin: 16px 0;
  }
}

/* ---------- zichtbare focus-indicator (toetsenbord) ----------
   Eén consistente ring op alle interactieve elementen. !important overruled de
   bestaande `outline:none` op inputs/selects/charity-velden. Met :focus-visible
   verschijnt de ring alleen bij toetsenbord-/assistive navigatie, niet bij muis. */
:focus-visible {
  outline: 3px solid var(--blue-mid) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- prefers-reduced-motion ----------
   Respecteer de OS-instelling: animaties en transities vrijwel uitzetten. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
