/* SOCOTEC-huisstijl, toegepast als hostlaag voor de procesvisualisatie.
   Bron: het huisstijldocument van 8 september 2026, afgeleid van socotec.nl
   (Drupal-theme app_theme). Sectie 07 van dat document levert deze tokens;
   de contrastcorrectie uit sectie 03 is doorgevoerd — #00ACE8 is de
   herkenningskleur en draagt nooit tekst, #00669F is de werkkleur en wel.

   Het visualisatieblok in index.html leest alleen tokens en hulpklassen en
   is ongewijzigd; alles hieronder is de omgeving eromheen. */

/* Nunito Sans, variabel 300-700, lokaal gehost: geen externe request, dus de
   Content-Security-Policy kan op font-src 'self' blijven staan. */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* merk */
  --brand-cyan: #00ace8; /* herkenning: vlakken, iconen, accenten */
  --brand-cyan-hover: #0082de;
  --brand-blue: #00669f; /* werkkleur: draagt witte tekst */
  --brand-blue-hover: #005499;
  --brand-navy: #033a67;
  --brand-teal: #42c8be;

  /* grond en inkt */
  --background: #f0f6fb;
  --surface: #ffffff;
  --foreground: #22304e;
  --muted-foreground: #5a6b85;
  --border: #e6ebf2;
  --border-strong: rgba(34, 48, 78, 0.3);
  --hover: rgba(34, 48, 78, 0.05);

  /* rollen */
  --primary: var(--brand-blue);
  --primary-hover: var(--brand-blue-hover);
  --primary-foreground: #ffffff;
  --accent: var(--brand-cyan);
  --destructive: #e03050; /* #FF4B6B verdiept naar AA op wit */

  /* categorieën / datavisualisatie */
  --viz-series-1: #00ace8; /* mens */
  --viz-series-2: #033a67; /* systeem */
  --viz-series-3: #42c8be; /* n8n */
  --viz-series-4: #f2a900; /* beslismoment */
  --viz-series-5: #ff4b6b; /* resultaat */

  /* vorm en beweging */
  --radius-pill: 25px;
  --radius-chip: 17.5px;
  --radius-tag: 5px;
  --radius-card: 5px;
  --ease-button: 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  --ease-color: 0.3s ease;

  --shadow: 0 1px 2px rgba(3, 58, 103, 0.06), 0 12px 28px -18px rgba(3, 58, 103, 0.35);

  /* type */
  --font-sans: "Nunito Sans", Arial, Helvetica, sans-serif;
}

/* De donkere set bestaat niet op socotec.nl. Dit is de afleiding uit het
   huisstijldocument: dezelfde tinten, opgetrokken tot ze op donker leesbaar
   blijven. Een voorstel, geen vastgesteld merkgegeven. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --background: #08131f;
    --surface: #0f2032;
    --foreground: #eaf2f9;
    --muted-foreground: #a8bccf;
    --border: rgba(160, 205, 240, 0.18);
    --border-strong: rgba(160, 205, 240, 0.34);
    --hover: rgba(160, 205, 240, 0.08);

    --primary: #33c0ef;
    --primary-hover: #4cc4f2;
    --primary-foreground: #06131e;
    --accent: #4cc4f2;
    --destructive: #ff7a92;

    --viz-series-1: #4cc4f2;
    --viz-series-2: #7fa8d4;
    --viz-series-3: #5fd9ce;
    --viz-series-4: #ffc24d;
    --viz-series-5: #ff7a92;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --background: #08131f;
  --surface: #0f2032;
  --foreground: #eaf2f9;
  --muted-foreground: #a8bccf;
  --border: rgba(160, 205, 240, 0.18);
  --border-strong: rgba(160, 205, 240, 0.34);
  --hover: rgba(160, 205, 240, 0.08);

  --primary: #33c0ef;
  --primary-hover: #4cc4f2;
  --primary-foreground: #06131e;
  --accent: #4cc4f2;
  --destructive: #ff7a92;

  --viz-series-1: #4cc4f2;
  --viz-series-2: #7fa8d4;
  --viz-series-3: #5fd9ce;
  --viz-series-4: #ffc24d;
  --viz-series-5: #ff7a92;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 30px -20px rgba(0, 0, 0, 0.8);
}

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

body {
  margin: 0;
  padding: 0 1.5rem 5rem;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-head,
main {
  max-width: 78rem;
  margin: 0 auto;
}

/* ---------- masthead ---------- */

.page-head {
  padding-top: 3rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.masthead__logo {
  color: var(--foreground);
  flex: 0 0 auto;
  width: 150px;
}

.masthead__logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.masthead__text {
  flex: 1 1 20rem;
}

.masthead__actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(30px, 1.5rem + 1.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted-foreground);
  font-size: 17px;
}

/* De drie logoblauwen; het enige scheidingsteken op de pagina. */
.gradient-rule {
  height: 3px;
  border: 0;
  margin: 0 0 2rem;
  background: linear-gradient(90deg, #0069a6, #008dd7 42%, #00aee5 72%, transparent);
}

/* ---------- hulpklassen die de visualisatie leest ---------- */

.text-muted {
  color: var(--muted-foreground);
}

.text-small {
  font-size: 12px;
  line-height: 1.45;
}

.viz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Knoprecept van socotec.nl: volledige pil, 14px/21px, en de karakteristieke
   ease-out die snel start en zacht landt. Niet-actief is de outline-variant,
   actief de gevulde werkkleur — die draagt wit op AA-niveau. */
.btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ease-button);
}

.btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-foreground);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--muted-foreground);
}

/* Categorietag: nadrukkelijk hoekig, als contrast met de pillen. */
.viz-badge {
  display: inline-block;
  flex: none;
  border-radius: var(--radius-tag);
  padding: 2px 8px;
  background: var(--hover);
  color: var(--muted-foreground);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

@media (max-width: 620px) {
  body {
    padding: 0 1rem 4rem;
  }

  .page-head {
    padding-top: 2rem;
  }

  .masthead {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0ms !important;
  }
}
