/* Trust pages (over ons, contact, privacy, redactioneel beleid + EN pairs), Phase 5 2026-10-08.
   Loaded only on those eight pages. Tokens from assets/css/src/00-tokens.css; no new colours.
   Motion: hero entrance once (opacity + small translate), red-pen underline drawn once,
   section groups use the site's .reveal (theme.js). prefers-reduced-motion: final state at once. */

.trust {
  max-width: 50rem;
  padding: var(--s-4) 0 var(--s-8);
}

/* ---------- hero ---------- */
.trust-hero {
  position: relative;
  margin: var(--s-2) 0 var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.trust-eyebrow {
  margin: var(--s-3) 0 0;
  font-family: var(--font-note);
  font-size: var(--fs-lg);
  line-height: 1.1;
  color: var(--pen);
  rotate: -1.5deg;
  transform-origin: left center;
}

.trust-hero .page-title {
  position: relative;
  display: inline-block;
  margin: var(--s-1) 0 var(--s-4);
}

/* Red pen underline under the H1 (decorative). */
.trust-pen {
  position: absolute;
  left: -0.1em;
  right: 0;
  bottom: -0.32em;
  width: calc(100% + 0.2em);
  height: 0.42em;
  overflow: visible;
  color: var(--pen);
  pointer-events: none;
}

.trust-pen path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trust-hero .lede {
  margin: 0;
}

.trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.trust-meta li {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

/* ---------- "in het kort" summary ---------- */
.trust-summary {
  margin: 0 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pen);
  border-radius: var(--r-1) var(--r-2) var(--r-2) var(--r-1);
  background: var(--surface);
  box-shadow: var(--lift);
}

.trust-summary h2 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-md);
}

.trust-ticks {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-ticks li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--s-2);
  align-items: start;
}

.trust-ticks svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15em;
  color: var(--pen);
}

/* ---------- sections ---------- */
.trust-section {
  margin: 0 0 var(--s-6);
}

.trust-section > h2 {
  margin-top: 0;
}

/* numbered steps with a margin rule */
.trust-steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}

.trust-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}

.trust-steps > li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--pen);
  font-variant-numeric: tabular-nums;
}

.trust-steps h3 {
  margin: 0 0 var(--s-1);
  font-size: var(--fs-md);
}

.trust-steps p {
  margin: 0;
}

/* cards */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
}

/* four cards: two by two, never a lone card on the last row */
@media (min-width: 40rem) {
  .trust-cards--pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}

.trust-card svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ink-2);
}

.trust-card h3 {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.25;
}

.trust-card p {
  margin: 0;
}

/* contact notice: the one big card on the contact page */
.trust-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: start;
  margin: 0 0 var(--s-6);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  box-shadow: var(--lift);
}

.trust-notice svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--pen);
}

.trust-notice h2 {
  margin: 0 0 var(--s-1);
  font-size: var(--fs-lg);
}

.trust-notice p {
  margin: 0;
}

.trust-notice p + p {
  margin-top: var(--s-2);
}

.trust code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .trust-hero > * {
    animation: trust-in 560ms var(--ease-out) both;
  }

  html.js .trust-hero > :nth-child(2) { animation-delay: 60ms; }
  html.js .trust-hero > :nth-child(3) { animation-delay: 120ms; }
  html.js .trust-hero > :nth-child(4) { animation-delay: 180ms; }
  html.js .trust-hero > :nth-child(5) { animation-delay: 240ms; }

  /* the pen line is wiped in from left to right, once */
  html.js .trust-pen {
    clip-path: inset(0 100% 0 0);
    animation: trust-draw 700ms var(--ease-draw, var(--ease-out)) 380ms forwards;
  }
}

@keyframes trust-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes trust-draw {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 480px) {
  .trust-summary,
  .trust-notice {
    padding: var(--s-4);
  }

  .trust-notice {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .trust-pen {
    display: none;
  }
}
