/*
 * mAIxs Capaciteitsplanning & SPP — Productpagina
 * Stijl-tokens uit: ~/mAIxs website/maixs-website/src/app/globals.css (Variant C light).
 * Pagina draait altijd in light mode, conform de mAIxs-default voor marketing-content.
 * Geen externe CSS-frameworks; geen build-stap vereist.
 */

/* ============================================================================
   1. CSS Custom Properties — Brand Tokens (Variant C light, hard locked)
   ============================================================================ */

:root {
  color-scheme: light only;

  /* Backgrounds */
  --bg-main: #F8FAFC;
  --bg-soft: #EEF2F6;
  --bg-card: #FFFFFF;

  /* Text — alle niveaus voldoen aan WCAG AA 4.5:1 */
  --ink: #0b0d10;
  --mute: #475569;
  --muted-2: #52607a;

  /* Borders */
  --line: #E2E8F0;
  --line-soft: #EEF2F6;

  /* Accent */
  --accent: #2563EB;
  --accent-deep: #1d4ed8;
  --accent-soft: #3B82F6;
  --accent-warm: #d97706;
  --accent-tint: #DBEAFE;

  /* Status */
  --green: #16a34a;
  --green-tint: #DCFCE7;
  --red: #dc2626;
  --amber: #d97706;
  --amber-tint: #FEF3C7;

  /* Typography scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --radius: 0.5rem;
  --radius-l: 0.75rem;

  /* Shadows (light-mode only) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 6px 18px -8px rgba(15, 23, 42, 0.1);
}

/* ============================================================================
   2. Reset — Minimaal, box-sizing universeel
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  color-scheme: light;
}

@media (min-width: 1024px) {
  html { font-size: 18px; }
}

body {
  background-color: var(--bg-main);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

/* ============================================================================
   3. Skip-link (WCAG 2.4.1)
   ============================================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.1s ease;
}

.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

/* ============================================================================
   4. Layout Primitives
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-s);
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-m);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-l);
  }
}

.stack > * + * {
  margin-top: var(--space-m);
}

.section {
  padding-block: var(--space-xl);
}

@media (min-width: 640px) {
  .section {
    padding-block: var(--space-xxl);
  }
}

/* Alternerende achtergronden voor secties */
.section--alt {
  background-color: var(--bg-soft);
}

/* ============================================================================
   5. Typografie
   ============================================================================ */

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p {
  max-width: 64ch;
  line-height: 1.75;
  color: var(--ink);
}

p + p {
  margin-top: 0.85em;
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--mute);
  max-width: 60ch;
  line-height: 1.7;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* ============================================================================
   6. Knoppen (1-op-1 met mAIxs-website primary/secondary button)
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px; /* WCAG 2.5.8 touch-target */
  min-width: 44px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent-deep);
  color: #ffffff;
  border-color: var(--accent-deep);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ============================================================================
   7. Header & Navigatie
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}


.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  height: 64px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.site-header__logo-text span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mute);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================================================
   8. Hero Sectie (sectie 1)
   ============================================================================ */

#hero {
  padding-block: var(--space-xxl);
  padding-top: calc(var(--space-xxl) + var(--space-l));
  position: relative;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 800px;
}

.hero__label {
  margin-bottom: var(--space-xs);
}

.hero__title {
  margin-bottom: var(--space-xs);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--mute);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: var(--space-m);
}

/* Subtiele achtergrond-accent */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================================
   9. De Keten Sectie (sectie 2)
   ============================================================================ */

.keten {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-l);
}

.keten__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  width: 100%;
}

.keten__stap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.keten__stap-nummer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.keten__stap-naam {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.keten__pijl {
  color: var(--accent);
  font-size: 1.25rem;
  padding-inline: 0.5rem;
  flex-shrink: 0;
  align-self: center;
}

.keten__uitleg {
  display: grid;
  gap: var(--space-s);
}

@media (min-width: 640px) {
  .keten__uitleg {
    grid-template-columns: 1fr 1fr;
  }
}

.keten__koppeling {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-s) var(--space-m);
}

.keten__koppeling strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.keten__koppeling p {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

/* ============================================================================
   10. Het Probleem Sectie (sectie 3)
   ============================================================================ */

.probleem__grid {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .probleem__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.probleem__punt {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-m);
}

.probleem__nummer {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: var(--space-s);
}

.probleem__punt h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.probleem__punt p {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

.probleem__kern {
  margin-top: var(--space-l);
  padding: var(--space-m) var(--space-l);
  background: var(--bg-card);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-l);
  border-left: 4px solid var(--accent-deep);
}

.probleem__kern p {
  max-width: none;
  color: var(--ink);
}

/* ============================================================================
   11. Hoe Werkt Het Sectie (sectie 4)
   ============================================================================ */

.stappen {
  counter-reset: stap-teller;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stap {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-s);
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.stap:last-child {
  border-bottom: none;
}

.stap__nummer {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-soft);
  flex-shrink: 0;
  margin-top: 0.35rem;
  min-width: 2.5rem;
  letter-spacing: 0.04em;
}

.stap__inhoud h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.stap__inhoud p {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

.stap__badge {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.badge--toe {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge--af {
  background: rgba(255, 184, 107, 0.1);
  color: var(--accent-warm);
  border: 1px solid rgba(255, 184, 107, 0.3);
}

.badge--nieuw {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}


/* ============================================================================
   12. Drie Lagen Sectie (sectie 5) — SVG-diagram
   ============================================================================ */

.drie-lagen__diagram-wrapper {
  margin-block: var(--space-l);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.drie-lagen__diagram {
  width: 100%;
  max-width: 860px;
  min-width: 280px;
  display: block;
}

.drie-lagen__artikelen {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .drie-lagen__artikelen {
    grid-template-columns: repeat(3, 1fr);
  }
}

.laag-artikel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-m);
  position: relative;
}

.laag-artikel__nummer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--space-xs);
}

.laag-artikel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.laag-artikel p {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

.laag-artikel ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.laag-artikel ul li {
  font-size: 0.875rem;
  color: var(--mute);
  padding-left: 1rem;
  position: relative;
}

.laag-artikel ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

.bidirectioneel {
  margin-top: var(--space-l);
  padding: var(--space-m) var(--space-l);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-l);
}

.bidirectioneel h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-soft);
  font-size: 1rem;
}

.bidirectioneel p {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

/* ============================================================================
   13. Vier AI-superkrachten Sectie (sectie 6)
   ============================================================================ */

.ai-krachten__grid {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .ai-krachten__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ai-kracht {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-kracht__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ai-kracht__letter {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.ai-kracht__titel-wrapper {
  flex: 1;
}

.ai-kracht h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.ai-kracht__richting {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

.ai-kracht__omschrijving {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

.ai-kracht__voorbeeld {
  font-size: 0.85rem;
  color: var(--muted-2);
  padding: 0.75rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.ai-kracht__voorbeeld::before {
  content: 'Voorbeeld: ';
  font-style: normal;
  font-weight: 600;
  color: var(--accent-soft);
}

/* ============================================================================
   14. Wat Levert Het Op Sectie (sectie 7)
   ============================================================================ */

.uitkomsten__grid {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .uitkomsten__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.uitkomst {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uitkomst__icoon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid #BFDBFE;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-xs);
}
.uitkomst__icoon .icon { display: block; }

.uitkomst h3 {
  font-size: 1.05rem;
}

.uitkomst p {
  font-size: 0.9rem;
  color: var(--mute);
  max-width: none;
}

/* ============================================================================
   15. USPs Sectie (sectie 8)
   ============================================================================ */

.usps__lijst {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.usp {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  align-items: flex-start;
}

.usp__icoon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  border: 1px solid #BFDBFE;
  color: var(--accent);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.usp__icoon .icon { display: block; }

.usp__tekst strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-size: 0.975rem;
}

.usp__tekst p {
  font-size: 0.875rem;
  color: var(--mute);
  max-width: none;
}

/* ============================================================================
   16. Voor Wie Sectie (sectie 9)
   ============================================================================ */

.voor-wie__grid {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .voor-wie__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doelgroep {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-m);
}

.doelgroep h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.doelgroep p {
  font-size: 0.875rem;
  color: var(--mute);
  max-width: none;
}

.voor-wie__rollen {
  margin-top: var(--space-l);
  padding: var(--space-m) var(--space-l);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.voor-wie__rollen h3 {
  font-size: 1rem;
  margin-bottom: var(--space-s);
  color: var(--ink);
}

.voor-wie__rollen dl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.voor-wie__rollen dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.voor-wie__rollen dd {
  color: var(--mute);
  font-size: 0.875rem;
  margin-left: 0;
  padding-left: var(--space-s);
  border-left: 2px solid var(--line);
  margin-bottom: 0.25rem;
}

/* ============================================================================
   17. Methodologisch Fundament Sectie (sectie 10)
   ============================================================================ */

.fundament__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

@media (min-width: 640px) {
  .fundament__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
  }
}

.hoeksteen {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  align-items: flex-start;
}

.hoeksteen__afkorting {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.hoeksteen h3 {
  font-size: 0.975rem;
  margin-bottom: 0.25rem;
}

.hoeksteen p {
  font-size: 0.875rem;
  color: var(--mute);
  max-width: none;
}

/* ============================================================================
   18. CTA-blok Sectie (sectie 11)
   ============================================================================ */

#cta {
  text-align: center;
}

.cta__inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
}

.cta__label {
  margin-bottom: var(--space-xs);
}

.cta__title {
  text-align: center;
}

.cta__subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--mute);
  max-width: 50ch;
}

/* ============================================================================
   19. Footer
   ============================================================================ */

.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: var(--space-l);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--muted-2);
  max-width: none;
}

.site-footer a {
  font-size: 0.875rem;
  color: var(--muted-2);
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.site-footer__links {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
}

/* ============================================================================
   20. Sectie-inleidingen
   ============================================================================ */

.sectie-intro {
  margin-bottom: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sectie-intro h2 {
  margin-bottom: 0.5rem;
}

.sectie-intro p {
  font-size: 1rem;
  color: var(--mute);
}

/* ============================================================================
   21. Tekst-accenten
   ============================================================================ */

.accent-text {
  color: var(--accent-soft);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: var(--space-l);
}

/* ============================================================================
   22. Responsive aanpassingen (640px, 1024px)
   ============================================================================ */

@media (min-width: 640px) {
  .stap {
    grid-template-columns: 3rem 1fr;
  }
}

@media (min-width: 1024px) {
  .keten__flow {
    flex-wrap: nowrap;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}

/* ============================================================================
   23. prefers-reduced-motion — alle transities en animaties uitschakelen
   ============================================================================ */

@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;
  }

  #hero::before {
    display: none;
  }
}

/* ============================================================================
   24. Tekstspatiering-override — WCAG 1.4.12
   Layout blijft intact bij: line-height 1.5x, letter-spacing 0.12em,
   word-spacing 0.16em, paragraph-spacing 2x
   ============================================================================ */

/* Alle flex/grid containers zijn niet afhankelijk van line-height voor layout */
/* Padding en gap gebruiken rem, niet em-waarden die opblazen */

/* ============================================================================
   25. Focus-indicatoren — alle interactieve elementen
   ============================================================================ */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* scroll-margin voor sticky header */
:focus-visible {
  scroll-margin-top: 80px;
}

/* =====================================================================
   App-design preview (Sectie 6b)
   Pure CSS mockup van de Workspace home zoals in het ontwerp.
   Gebruikt bestaande Variant C tokens, geen extra dependencies.
   ===================================================================== */

.app-preview {
  margin: 0 auto;
  max-width: 1080px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft, #EEF2F6);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.18),
              0 6px 18px -8px rgba(15, 23, 42, 0.1);
}

.app-preview__chrome {
  height: 32px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.app-preview__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.app-preview__url {
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mute2, #6b7382);
  letter-spacing: 0.02em;
}

.app-preview__body {
  display: flex;
  background: var(--bg-main);
  min-height: 480px;
}

/* ---------- Sidebar ---------- */
.app-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 12px 10px 14px;
  font-size: 11.5px;
}
.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line-soft, #EEF2F6);
  margin-bottom: 10px;
}
.app-sidebar__brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.app-sidebar__brand-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink, #0b0d10);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-sidebar__brand-text span { color: #2563EB; }
.app-sidebar__brand-text small {
  font-size: 9.5px;
  color: var(--mute2, #6b7382);
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0;
}

.app-sidebar__tenant {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 10px;
}
.app-sidebar__tenant-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #DBEAFE;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: #1e40af;
  flex-shrink: 0;
}
.app-sidebar__tenant-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}
.app-sidebar__tenant-text small {
  font-size: 9.5px;
  color: var(--mute2);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-top: 2px;
}

.app-sidebar__nav ul {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.app-sidebar__nav li {
  padding: 5px 8px 5px 10px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  color: var(--mute, #475569);
  margin-bottom: 1px;
  position: relative;
}
.app-sidebar__nav li.is-active {
  background: var(--bg-card);
  border-left-color: #3b82f6;
  color: var(--ink);
}
.app-sidebar__nav li.is-active::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563EB;
  transform: translateY(-50%);
}
.app-sidebar__nav li.is-active { padding-left: 26px; }

.app-sidebar__group {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute2, #6b7382);
  padding: 8px 8px 4px;
  margin: 8px 0 0;
}

/* ---------- Main ---------- */
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
  height: 42px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
  background: var(--bg-card);
  font-size: 11.5px;
  color: var(--mute);
}
.app-crumb { color: var(--mute); }
.app-crumb.is-current { color: var(--ink); font-weight: 500; }
.app-crumb-sep { color: var(--mute2); font-size: 10px; }
.app-topbar__action {
  margin-left: auto;
  font-size: 11px;
  color: var(--mute);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.app-topbar__action + .app-topbar__action { margin-left: 8px; }
.app-topbar__action.is-primary {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
  font-weight: 500;
}

.app-body { padding: 20px 22px; flex: 1; overflow: hidden; }

.app-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 18px;
  flex-wrap: wrap;
}
.app-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #2563EB;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.app-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.app-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mute);
  max-width: 480px;
  line-height: 1.5;
}

.app-stats { display: flex; gap: 22px; }
.app-stat { display: flex; flex-direction: column; min-width: 88px; }
.app-stat__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute2);
  margin-bottom: 4px;
}
.app-stat__v {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.app-stat__sub { font-size: 10px; color: var(--mute2); margin-top: 2px; }

.app-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.app-stage {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}
.app-stage__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.app-stage__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mute2);
}
.app-stage__pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid;
}
.app-stage--done .app-stage__pill {
  color: #15803d;
  border-color: #86efac;
  background: #DCFCE7;
}
.app-stage--active .app-stage__pill {
  color: #1d4ed8;
  border-color: #93C5FD;
  background: #DBEAFE;
}
.app-stage--pending .app-stage__pill {
  color: var(--mute2);
  border-color: var(--line);
  background: var(--bg-soft);
}

.app-stage__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.app-stage__sub { font-size: 10.5px; color: var(--mute); margin: 2px 0 10px; }

.app-stage__bar {
  height: 4px;
  background: var(--line-soft, #EEF2F6);
  border-radius: 2px;
  overflow: hidden;
}
.app-stage__bar span { display: block; height: 100%; }
.app-stage--done .app-stage__bar span { background: #16a34a; }
.app-stage--active .app-stage__bar span { background: #2563EB; }
.app-stage--pending .app-stage__bar span { background: var(--mute2); }

.app-stage__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mute2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-stage__pct { color: var(--ink); }
.app-stage--done .app-stage__pct { color: #4ade80; }
.app-stage--active .app-stage__pct { color: #1d4ed8; }

.app-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.app-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.app-panel__head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.app-panel__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.app-panel__sub { font-size: 10.5px; color: var(--mute); margin: 1px 0 0; }
.app-panel__body { padding: 0; }

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
}
.app-row:first-child { border-top: 0; }
.app-row__date {
  width: 42px;
  font-family: var(--font-mono);
  text-align: left;
}
.app-row__date span {
  display: block;
  font-size: 9.5px;
  color: var(--mute2);
  text-transform: uppercase;
}
.app-row__date strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.app-row__main { flex: 1; min-width: 0; }
.app-row__main p { font-size: 11.5px; color: var(--ink); font-weight: 500; margin: 0; }
.app-row__main span { font-size: 10.5px; color: var(--mute); }

.app-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid;
  flex-shrink: 0;
}
.app-pill--green { color: #4ade80; border-color: rgba(74, 222, 128, 0.34); background: rgba(74, 222, 128, 0.08); }
.app-pill--blue { color: #1d4ed8; border-color: #93C5FD; background: #DBEAFE; }

.app-act {
  display: flex;
  gap: 11px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
}
.app-act:first-child { border-top: 0; }
.app-act__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563EB;
  margin-top: 6px;
  flex-shrink: 0;
}
.app-act__dot--green { background: #16a34a; }
.app-act__dot--warm { background: #d97706; }
.app-act > div { flex: 1; min-width: 0; }
.app-act p { font-size: 11.5px; color: var(--ink); margin: 0; line-height: 1.45; }
.app-act span {
  font-size: 10px;
  color: var(--mute2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- Screen thumbnails ---------- */
.screen-thumbs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}
.screen-thumbs li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 14px 12px;
}
.screen-thumb__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mute2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.screen-thumbs strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.screen-thumbs p {
  font-size: 11.5px;
  color: var(--mute);
  margin: 0;
  line-height: 1.45;
}

.preview-caption {
  margin: 18px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--mute2);
  max-width: 720px;
  font-style: italic;
}

/* Responsive: stack body op smaller screens */
@media (max-width: 900px) {
  .app-preview__body { flex-direction: column; min-height: 0; }
  .app-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-sidebar__nav { display: none; }
  .app-stages { grid-template-columns: 1fr; }
  .app-cols { grid-template-columns: 1fr; }
  .app-stats { flex-wrap: wrap; gap: 14px; }
  .app-title-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .app-preview__url { display: none; }
  .app-body { padding: 14px; }
  .app-topbar__action { display: none; }
}

/* =====================================================================
   Sectie 6b — Zes app-design schermen (light mode)
   Hergebruik bestaande .app-* classes, plus de classes hieronder.
   ===================================================================== */

.screen { margin: 0 0 var(--space-l); }
.screen + .screen { margin-top: var(--space-xl); }
.screen__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto var(--space-m);
  padding: 0 var(--space-s);
}
.screen__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid #BFDBFE;
}
.screen__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.screen__head p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 64ch;
}

/* Common helpers reused across screens */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.cap-cap {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.muted { color: var(--mute); font-size: 11.5px; line-height: 1.55; margin-top: 4px; }
.red { color: var(--red); }
.num { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); }
.num.mute { color: var(--mute); }
.app-title-sm { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mute);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Live-pill (Sessie 1 topbar) */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  border-color: #86efac;
  background: var(--green-tint);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Scenario-tag (gebruikt in topbar voor screens 3, 5) */
.scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-card);
  margin-left: auto;
}
.scenario-tag .version {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 1px 6px;
}

/* ============ Scherm 02 — Sessie ============ */
.session-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.session-rail {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 18px 16px;
}
.rail-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.rail-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.rail-list li:first-child { border-top: 0; }
.rail-list li.is-active p { font-weight: 600; color: var(--ink); }
.rail-list li:not(.is-done):not(.is-active) p { color: var(--mute); }
.rail-list li > div p { font-size: 12.5px; margin: 0; line-height: 1.3; }
.rail-list li > div span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 2px;
  display: inline-block;
}
.rail-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-2);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.is-done .rail-marker { color: var(--green); border-color: var(--green); background: var(--green-tint); }
.is-active .rail-marker { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }

.session-center {
  padding: 20px 24px;
  overflow: auto;
}
.session-center .app-tag { color: var(--accent); }
.session-center .app-subtitle { max-width: 540px; }

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.quote-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.quote-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.quote-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quote-meta strong { font-size: 12px; color: var(--ink); font-weight: 600; }
.quote-meta .time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}
.quote-card p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  margin: 4px 0 0;
  max-width: none;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tag-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent);
  border: 1px solid #BFDBFE;
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.ai-prompt {
  margin-top: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-tint);
  border: 1px solid #BFDBFE;
  border-radius: 7px;
}
.ai-prompt__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.ai-prompt p {
  margin: 0;
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.55;
}
.ai-prompt p strong { color: var(--accent); font-weight: 500; }
.ai-prompt code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}

.session-extracted {
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  padding: 18px 16px;
  font-size: 12px;
}
.extracted-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}
.extracted-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}
.extracted-list li:first-child { border-top: 0; }
.extracted-list .dot { margin-top: 5px; }
.extracted-list p { font-size: 12px; color: var(--ink); margin: 0; font-weight: 500; }
.extracted-list span { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); }
.suggestion {
  font-size: 11.5px;
  color: var(--mute);
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  margin-top: 6px;
}

/* ============ Scherm 03 — Hypothese-boom ============ */
.tree-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  flex: 1;
}
.tree-main { padding: 20px 24px; overflow: auto; }
.tree-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.tree-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}
.tree-node {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tree-node > div { flex: 1; }
.tree-node strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.tree-node p { margin: 1px 0 0; font-size: 11px; color: var(--muted-2); }
.tree-node .cap-cap { margin-left: 8px; }
.tree-node .dot { margin-top: 4px; width: 10px; height: 10px; }
.tree-branch {
  padding-left: 20px;
  margin-top: 8px;
  border-left: 1px dashed var(--line);
}
.tree-skill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}
.tree-skill > div { flex: 1; }
.tree-skill .dot { margin-top: 4px; width: 10px; height: 10px; }
.tree-skill strong { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.tree-skill .cap-cap { margin-left: 8px; }
.tree-skill p { margin: 0; font-size: 11px; color: var(--mute); }

.tree-acts {
  list-style: none;
  margin: 6px 0 0;
  padding-left: 22px;
  border-left: 1px dashed var(--line-soft);
}
.tree-acts li {
  display: grid;
  grid-template-columns: 16px 1fr auto auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}
.tree-acts li:first-child { border-top: 0; }
.tree-acts .dot { width: 6px; height: 6px; border-radius: 50%; }
.tree-acts .act-name { color: var(--ink); }
.tree-acts .src { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }

.state-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid;
}
.state--ok { color: var(--green); background: var(--green-tint); border-color: #86efac; }
.state--ai { color: var(--accent); background: var(--accent-tint); border-color: #93C5FD; }
.state--warn { color: var(--accent-warm); background: var(--amber-tint); border-color: #FCD34D; }

.tree-inspector {
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  padding: 20px 16px;
  font-size: 12px;
  overflow: auto;
}
.tree-inspector h4 { margin: 0 0 4px; }
.field-list {
  margin: 12px 0;
  padding: 0;
}
.field-list > div {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.field-list dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.field-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.field-list span {
  display: block;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 2px;
  font-family: var(--font-mono);
}
.cite-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink);
}
.cite-card strong { display: block; font-weight: 500; }
.cite-card span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; font-family: var(--font-mono); }

/* ============ Scherm 04 — Scenario simulator ============ */
.ai-prompt--scenario {
  margin: 14px 0;
  align-items: stretch;
}
.ai-prompt--scenario > div { flex: 1; }
.prompt-quote {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  margin: 4px 0 8px;
  line-height: 1.55;
}
.param-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  border-top: 2px solid var(--muted-2);
}
.scenario-card--ambitie1 { border-top-color: var(--accent); }
.scenario-card--ambitie2 { border-top-color: var(--accent-warm); }
.scenario-card h5 {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.fte-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 10px;
}
.fte-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.fte-label { font-size: 11.5px; color: var(--mute); }
.fte-delta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}
.fte-delta.mute { color: var(--muted-2); }
.fte-delta.delta-down { color: var(--green); }
.fte-delta.delta-up { color: var(--accent); }

.param-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.param-grid > div { display: flex; flex-direction: column; gap: 2px; }

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}
.comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.comparison-head h5 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.bar-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bar-rows li {
  display: grid;
  grid-template-columns: 140px 1fr 110px;
  align-items: center;
  gap: 14px;
}
.bar-label { font-size: 12.5px; color: var(--ink); }
.bar-track {
  position: relative;
  height: 26px;
  background: var(--line-soft);
  border-radius: 3px;
}
.bar {
  position: absolute;
  left: 0;
  height: 6px;
  border-radius: 2px;
}
.bar--a { top: 3px; background: #94a3b8; }
.bar--b { top: 11px; background: var(--accent); }
.bar--c { top: 19px; background: var(--accent-warm); }
.bar-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mute);
  text-align: right;
}
.bar-num strong { color: var(--ink); font-weight: 500; }

/* ============ Scherm 05 — Gap heatmap ============ */
.gap-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  flex: 1;
}
.gap-main { padding: 20px 24px; overflow: auto; }
.heatmap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  margin-top: 14px;
}
.heatmap-table {
  display: grid;
  grid-template-columns: 150px 75px repeat(8, 1fr);
  gap: 4px;
  align-items: center;
}
.heatmap-header { display: contents; }
.heatmap-quarters { display: contents; }
.heatmap-quarters span,
.year-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  text-align: center;
}
.year-label { text-align: left; padding-left: 4px; }
.heatmap-row { display: contents; }
.row-label { font-size: 12.5px; color: var(--ink); padding-top: 4px; }
.row-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  padding-top: 4px;
}
.cell {
  height: 28px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}
.cell.selected { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.c-zero { background: var(--line-soft); color: var(--mute); }
.c-warn { background: #FED7AA; color: #9A3412; }
.c-bad { background: #FCA5A5; color: #7F1D1D; }
.c-crit { background: #DC2626; color: #fff; border: 1px solid #B91C1C; }
.c-good { background: #BBF7D0; color: #166534; }
.c-best { background: #16a34a; color: #fff; }

.legend-heatmap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.cell-key {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  border-left: 3px solid var(--muted-2);
}
.kpi--red { border-left-color: var(--red); }
.kpi--warm { border-left-color: var(--accent-warm); }
.kpi--blue { border-left-color: var(--accent); }
.kpi-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}
.kpi-card strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2px;
}
.kpi-card span {
  display: block;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 4px;
}

.gap-advice {
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  padding: 20px 16px;
  font-size: 12px;
  overflow: auto;
}
.bs-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}
.bs-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
}
.bs-list li:first-child { border-top: 0; }
.bs-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
  border: 1px solid;
  flex-shrink: 0;
}
.bs-list li > div { flex: 1; }
.bs-list strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
}
.bs-list li > div > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 2px;
}
.bs-list p {
  font-size: 11.5px;
  color: var(--mute);
  margin: 6px 0 0;
  line-height: 1.5;
}
.bron {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 8px;
}

/* ============ Scherm 06 — Rapport ============ */
.report-cover {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.report-cover > div:first-child { flex: 1; min-width: 300px; }
.report-cover h4 { font-size: 22px; }
.report-cover em { color: var(--ink); font-style: normal; font-weight: 600; }
.big-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.big-stats > div {
  min-width: 130px;
  display: flex;
  flex-direction: column;
}
.big-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.big-stats strong {
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2px;
}
.big-stats span {
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 2px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
}
.stacked-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}
.stacked-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.stacked-head h5 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.stacked-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  margin-top: 18px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bar-col .total {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 500;
}
.bar-col .bar {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line-soft);
  position: static;
}
.bar-col .bar span {
  display: block;
  position: static;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.bar-col .qlabel {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}
.legend-stacked { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.actions-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}
.action-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.action-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.action-list li:first-child { border-top: 0; }
.action-list .when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding-top: 2px;
}
.action-list .when.red { color: var(--red); }
.action-list .when.warm { color: var(--accent-warm); }
.action-list .when.blue { color: var(--accent); }
.action-list li > div { flex: 1; }
.action-list li > div p {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 4px;
  max-width: none;
}

.shifts-table {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.shifts-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.shifts-head h5 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.shifts-table ul { list-style: none; margin: 0; padding: 0; }
.shifts-table li {
  display: grid;
  grid-template-columns: 2fr 60px 30px 60px 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
}
.shifts-table .f { font-size: 12.5px; color: var(--ink); }
.shifts-table .from { font-family: var(--font-mono); font-size: 12px; color: var(--mute); text-align: right; }
.shifts-table .arrow { color: var(--muted-2); font-size: 11px; text-align: center; }
.shifts-table .to { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 500; text-align: right; }
.shifts-table .delta { font-family: var(--font-mono); font-size: 11.5px; }
.shifts-table .delta.delta-up { color: var(--green); }
.shifts-table .delta.delta-down { color: var(--accent-warm); }

.report-foot {
  margin-top: 18px;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.55;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .session-grid { grid-template-columns: 180px 1fr; }
  .session-extracted { display: none; }
  .tree-grid { grid-template-columns: 1fr; }
  .tree-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .gap-grid { grid-template-columns: 1fr; }
  .gap-advice { border-left: 0; border-top: 1px solid var(--line); }
  .scenario-cards { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .heatmap-table { grid-template-columns: 110px 60px repeat(8, minmax(28px, 1fr)); }
}

@media (max-width: 720px) {
  .session-grid { grid-template-columns: 1fr; }
  .session-rail { display: none; }
  .tree-acts li { grid-template-columns: 16px 1fr auto; gap: 6px; }
  .tree-acts li .num.mute, .tree-acts li .src, .tree-acts li .state-pill { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .heatmap-table { font-size: 10px; grid-template-columns: 90px 50px repeat(8, minmax(22px, 1fr)); }
  .cell { height: 22px; font-size: 9.5px; }
  .stacked-bars { height: 140px; }
  .shifts-table li { grid-template-columns: 1fr 50px 18px 50px; }
  .shifts-table .delta, .shifts-table .app-pill { display: none; }
  .bar-rows li { grid-template-columns: 1fr; gap: 4px; }
  .bar-num { text-align: left; }
  .big-stats > div { min-width: 100px; }
}
