/* Ordanta — landingspagina
   Kleur en typografie volgen brand/code/tokens.css uit de merkset.
   Geen build-stap, geen framework, geen externe verzoeken. */

@font-face {
  font-family: 'Inter Display';
  src: url('/assets/fonts/inter-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #F2F5F6;
  --surface: #FFFFFF;
  --line: #D7E0E4;
  --line-strong: #B6C5CD;
  --text: #0E2338;
  --body: #3D4F5E;
  --muted: #6B7D8A;
  --accent: #10A06A;
  --accent-hover: #0C875A;
  --accent-soft: #E3F3EC;
  --on-accent: #FFFFFF;
  --danger: #C0392B;
  --danger-soft: #FBEAE8;
  --focus: #0E2338;

  --display: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(24px, 6vw, 72px);
  --shadow: 0 1px 2px rgb(14 35 56 / 0.05), 0 8px 24px rgb(14 35 56 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A1622;
    --surface: #101E2C;
    --line: #22374B;
    --line-strong: #33506B;
    --text: #EAF1F5;
    --body: #B4C4D0;
    --muted: #7F94A3;
    --accent: #2FD498;
    --accent-hover: #4FE3AC;
    --accent-soft: #12312A;
    --on-accent: #06231A;
    --danger: #F0736A;
    --danger-soft: #2C1614;
    --focus: #2FD498;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

.shell {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) var(--pad) clamp(40px, 7vw, 80px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vw, 64px);
}

/* --- header ------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: block; line-height: 0; border-radius: 6px; }
.logo { width: 168px; height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

.langs { display: flex; gap: 4px; }
.langs button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.langs button:hover { color: var(--text); }
.langs button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

/* --- main --------------------------------------------------- */
main { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }

.eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.13;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
  max-width: 19ch;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.62;
  max-width: 56ch;
}

.who {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  max-width: 56ch;
}

/* --- proof points ------------------------------------------- */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 36px);
}
@media (min-width: 720px) {
  .points { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.points h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.points p { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* --- signup ------------------------------------------------- */
.signup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3.5vw, 32px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.signup h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

form { display: grid; gap: 14px; }
@media (min-width: 560px) {
  form { grid-template-columns: 1fr auto; align-items: end; }
}

.field { display: grid; gap: 0; }
label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.hint { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

input[type="email"] {
  font: inherit;
  font-size: 16px; /* voorkomt inzoomen op iOS */
  width: 100%;
  padding: 11px 13px;
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}
input[type="email"]::placeholder { color: var(--muted); }

input:user-invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}
input:user-valid { border-color: var(--accent); }

.error-msg {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
}
input:user-invalid ~ .error-msg { display: block; }

.cta {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.cta:hover { background: var(--accent-hover); }
.cta[disabled] { opacity: .6; cursor: progress; }

.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note { margin: 0; font-size: 13px; color: var(--muted); }

.form-status { margin: 0; font-size: 14.5px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--accent); }
.form-status[data-state="err"] { color: var(--danger); }

.eu {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eu::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- footer ------------------------------------------------- */
.bottom {
  margin-top: auto;
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.bottom a:hover { color: var(--text); }
.sep { color: var(--line-strong); }

/* --- focus & motion ----------------------------------------- */
:where(a, button, input):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- privacypagina ------------------------------------------ */
.prose { max-width: 62ch; display: grid; gap: 18px; }
.prose h1 { font-size: clamp(26px, 4vw, 34px); max-width: none; }
.prose h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.prose p, .prose li { font-size: 15px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--accent); }
