/* The AI Platform · landingspagina gratis AI-scan
   Kleuren, type en spacing komen uit het design system "The Digital Platform". */

@font-face {
  font-family: "Glorify";
  src: url("./glorify-demo.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("./hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  /* Design system tokens */
  --white: #ffffff;
  --black: #000000;
  --graphite: #242424;
  --tdp-grey: #ececec;
  --tdp-yellow: #ffd302;
  --yellow-600: #e8be00;
  --grey-200: #dcdcdc;
  --grey-500: #6f6f6f;
  --grey-600: #4d4d4d;
  --danger: #d64545;
  --border-inverse: rgba(255, 255, 255, 0.16);

  --font-display: "Glorify", "Jost", "Halyard Display", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Halyard Display", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --radius-xs: 2px;
  --radius-pill: 999px;
  --container-lg: 1120px;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--graphite);
  background: var(--graphite);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Layout ---------- */

.section { padding: var(--section-y) var(--gutter); }
.container {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}
.stack-sm { display: flex; flex-direction: column; gap: 1rem; }

.bg-yellow { background: var(--tdp-yellow); color: var(--black); }
.bg-white { background: var(--white); }
.bg-grey { background: var(--tdp-grey); }
.bg-dark { background: var(--graphite); color: var(--white); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

/* ---------- Type ---------- */

.overline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-600);
}
.bg-yellow .overline { color: var(--black); }

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 13em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--grey-600);
}
.bg-yellow .lead { color: var(--black); }
.body { font-size: 1rem; line-height: 1.5; color: var(--grey-600); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 22rem);
  min-height: 56px;
  padding: 0.875rem 1.75rem;
  border: 0;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-dark:hover { background: var(--black); }
.btn-yellow { background: var(--tdp-yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-600); }
.btn-block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: 0.75; transform: none; }

/* Focus: zichtbaar bij tabben */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 3px;
}
.bg-dark a:focus-visible, .bg-dark button:focus-visible { outline-color: var(--tdp-yellow); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header + hero ---------- */

.site-header { padding: clamp(1.25rem, 3vw, 2rem) var(--gutter) 0; }
.site-header__inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--black);
}

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) var(--section-y); }
.hero .container { gap: clamp(3rem, 6vw, 4.5rem); }
.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero__sub {
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
.hero__intro .btn { margin-top: 0.5rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 1.75rem 1.25rem;
}
.fact {
  border-top: 2px solid var(--black);
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.fact dd { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }

/* ---------- Cards ---------- */

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card--line { border: 1px solid var(--grey-200); background: var(--white); }
.card--white { background: var(--white); }
.card__text { font-size: 1.125rem; line-height: 1.5; }

.step { gap: 1rem; }
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--tdp-yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.frame {
  border: 2px solid var(--graphite);
  padding: clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.outcome {
  border-top: 1px solid var(--graphite);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.quote {
  background: var(--white);
  border: 2px solid var(--graphite);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote blockquote {
  max-width: 40rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
}
.quote figcaption { color: var(--grey-600); }

/* ---------- Form ---------- */

.form-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form-section .lead { max-width: 30rem; }

.form-card {
  background: var(--white);
  color: var(--graphite);
  border: 2px solid var(--black);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1.0625rem;  /* 16px of meer: iOS zoomt niet in */
  line-height: 1.4;
  color: var(--graphite);
  background: var(--white);
  border: 1.5px solid var(--grey-500);
  border-radius: var(--radius-xs);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 9rem; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--graphite); }
.field ::placeholder { color: var(--grey-500); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--danger);
}
.field__error:empty { display: none; }

/* Honeypot tegen spam: onzichtbaar voor mensen */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 0.25rem; }
.form-note { font-size: 0.9375rem; color: var(--grey-600); }
.form-status {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--danger);
}
.form-status:empty { display: none; }

.confirm { align-items: flex-start; }
.confirm:focus { outline: none; }
.confirm__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--tdp-yellow);
}
.confirm__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.confirm__text { font-size: 1.125rem; color: var(--grey-600); }

[hidden] { display: none !important; }

/* ---------- Closer + footer ---------- */

.closer .container { align-items: flex-start; }
.closer .h2 { max-width: 18em; }

.site-footer { padding: 0 var(--gutter) clamp(2rem, 4vw, 3rem); }
.site-footer__inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-inverse);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer .wordmark { font-size: 1.25rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-underline-offset: 4px;
}
.site-footer a:hover { text-decoration-thickness: 2px; }
