/* Partnerpagina datatoegang, altijd in de EnergyBytes-stijl "Warm Editorial"
   (DESIGN.md). De partner komt enkel terug als "in samenwerking met" + logo
   in de kop en als contactregel in de voet. */

:root {
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --accent: #0D9488;
  --ink: #292524;
  --muted: #78716C;
  --light: #A8A29E;
  --border: #E7E5E4;
  --surface: #FFFFFF;
  --background: #FAFAF9;
  --on-primary: #FFFFFF;
  --radius: 8px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

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

.page {
  min-height: 100vh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .page { padding: 80px 32px 48px; } }

/* Merk */
.brand { margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand__logo { display: block; color: inherit; text-decoration: none; }
.brand__logo img { display: block; height: 30px; width: auto; }
.brand__with { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.brand__with img { display: block; height: 34px; width: auto; max-width: 120px; }

/* Tekst */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.title {
  margin: 16px 0 0;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .title { font-size: 40px; } }
.lead { margin: 20px 0 0; font-size: 17px; color: var(--muted); }

/* Formulier */
.form { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; }
.field input[type="text"], .field input[type="email"] {
  margin-top: 8px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field input::placeholder { color: var(--light); }
.field input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.segmented {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.segmented label { position: relative; display: block; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background 150ms ease-out, color 150ms ease-out;
}
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span { background: var(--primary); color: var(--on-primary); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary); }

.notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid;
}
.notice--warning { color: #92400E; background: #FFFBEB; border-color: #FDE68A; }
.notice--error { color: #991B1B; background: #FEF2F2; border-color: #FECACA; }

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-primary);
  background: var(--primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 150ms ease-out;
}
.button:hover { background: var(--primary-hover); }
.button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.button[disabled] { cursor: not-allowed; opacity: 0.7; }
.button__spinner {
  display: none;
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--on-primary) 40%, transparent);
  border-top-color: var(--on-primary);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.button[data-loading="true"] .button__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.fineprint { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Goed om te weten */
.faq { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.faq__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.faq__list { margin: 0; }
.faq__list dt { margin: 20px 0 4px; font-weight: 600; font-size: 15px; }
.faq__list dd { margin: 0; font-size: 14px; color: var(--muted); }

/* Klaar */
.steps { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.step__dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
}
.step--done { color: var(--ink); }
.step--done .step__dot { background: var(--primary); border-color: var(--primary); }
.step--active { color: var(--ink); }
.step--active .step__dot { border-color: var(--primary); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); } }

/* Voet */
.footer {
  margin-top: auto;
  padding-top: 48px;
  font-size: 13px;
  color: var(--muted);
}
.footer p { margin: 0 0 6px; }
.footer p:last-child { margin-bottom: 0; }
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--ink); }

/* Skeleton tijdens het laden van de huisstijl */
.skeleton {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  margin-top: 16px;
}
.skeleton--eyebrow { width: 90px; height: 12px; margin-top: 0; }
.skeleton--title { width: 70%; height: 36px; }
.skeleton--text { width: 100%; }
.skeleton--text.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .skeleton, .step--active .step__dot, .button__spinner { animation: none; }
}
