/* apps/site/src/assets/page.css — pagina-layout van apps/site. Geen eigen component; gebruikt
   uitsluitend var(--c-*) uit packages/tokens/xscheck.css (geladen vóór dit bestand). Public Sans
   self-hosted (X-09a), geen fontservice van derden. Basis 18 px, regelhoogte 1,6.
   P2a-correctie A: lay-out volgt docs/design/homepage-desktop.html (≥768 px, breed canvas met
   kolommen) en docs/design/homepage-mobiel.html (< 768 px, alles onder elkaar) — hetzelfde
   Nunjucks-template, alleen CSS/media-queries, geen JS. */

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  font-family: "Public Sans", system-ui, sans-serif;
}

body {
  background: var(--c-page-bg);
  color: var(--c-body-text);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- Header/voettekst ---- */

.c-site-header,
.c-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--c-divider-border);
}

.c-site-footer {
  border-bottom: none;
  border-top: 1px solid var(--c-divider-border);
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--c-label-text);
}

.c-site-footer__status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.c-site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.c-site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.c-site-header__wordmark {
  color: var(--c-wordmark-text); /* ink, niet de linkkleur — P2a-correctie A */
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.c-site-footer a {
  color: var(--c-link-text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .c-site-header,
  .c-site-footer {
    padding: 1.75rem 4rem;
  }

  .c-site-footer {
    flex-direction: row;
    align-items: center;
  }
}

/* ---- Pagina-canvas ---- */

main {
  max-width: 1312px; /* 1440px canvas − 2×64px zijmarge, zie homepage-desktop.html */
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

h1 { font-size: 1.875rem; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 1.375rem; font-weight: 600; margin: 0; }
h3 { font-size: 1.1875rem; font-weight: 600; margin: 0; }

.c-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--c-divider-border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.c-section__intro {
  margin: -1rem 0 0;
  max-width: 64ch;
}

.c-section__caveat {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--c-label-text);
}

@media (min-width: 768px) {
  .c-section {
    padding: 3.5rem 0 4.5rem;
  }
}

/* ---- Hero ---- */

.c-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3.5rem 0 3rem;
  gap: 1rem;
}

.c-hero__lead {
  font-size: 1.25rem;
  color: var(--c-label-text);
  margin: 0;
}

.c-hero__form {
  width: 100%;
}

.c-hero__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.c-hero__row .c-field {
  flex: 1 1 auto;
}

.c-hero__helper {
  color: var(--c-label-text);
  font-size: 0.9375rem;
  margin: 0;
}

@media (min-width: 768px) {
  .c-hero {
    align-items: center;
    text-align: center;
    padding: 6rem 0 5rem;
  }

  .c-hero__lead {
    max-width: 46ch;
  }

  .c-hero__form {
    max-width: 760px;
  }

  .c-hero__row {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* ---- Hoe het werkt ---- */

.c-hiw {
  display: grid;
  gap: 2rem;
}

.c-hiw__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-hiw__label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-label-text);
}

.c-hiw__item p {
  margin: 0;
}

@media (min-width: 768px) {
  .c-hiw {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

/* ---- In de praktijk ---- */

.c-pillars {
  display: grid;
  gap: 2.5rem;
}

.c-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-pillar p {
  margin: 0;
}

.c-pillar__example {
  background: var(--c-badge-caution-bg);
  color: var(--c-heading-text);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.c-pillar__example-flag {
  color: var(--c-badge-caution-text);
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .c-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 3rem;
  }
}

/* ---- Maken: de overstap / Zo houden (naast elkaar) ---- */

.c-section--split {
  display: grid;
  gap: 2.5rem;
}

.c-overstap,
.c-zo-houden {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.c-overstap__rows,
.c-maandrapport__rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-divider-border);
}

.c-overstap__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-divider-border);
  font-size: 0.9375rem;
}

.c-overstap__row span:first-child {
  color: var(--c-label-text);
}

.c-maandrapport {
  background: var(--c-page-bg);
  border: 1px solid var(--c-divider-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.c-maandrapport__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--c-label-text);
}

.c-maandrapport__summary {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

.c-maandrapport__row {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--c-divider-border);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .c-section--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

/* ---- Referenties ---- */

.c-references {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .c-references {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

/* ---- Overige ---- */

.c-timeline {
  border-collapse: collapse;
  width: 100%;
}

.c-timeline th,
.c-timeline td {
  border-bottom: 1px solid var(--c-divider-border);
  padding: 0.5rem;
  text-align: left;
}

.c-proef-page {
  text-align: center;
  padding: 4rem 1rem;
}
