/* TheorieXL — site stylesheet
   Ontwerp: donker met lichtmodus op voorkeur van het apparaat, wegen-motief uit het app-icoon,
   zelf gehoste lettertypen (geen verzoeken naar derden). */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #060d1c;
  --bg-2: #0a1530;
  --surface: #0f1d3a;
  --surface-2: #132547;
  --line: #1f3560;
  --ink: #eef4ff;
  --muted: #a9bcd9;
  --brand: #5ec8ff;
  --brand-ink: #04223a;
  --accent: #ffc562;
  --violet: #8a8dff;
  --ok: #35d68f;
  --road: #2a2f35;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .65);
  --radius: 28px;
  --radius-sm: 16px;
  --wrap: 1160px;
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fc;
    --bg-2: #eaf0fb;
    --surface: #ffffff;
    --surface-2: #f0f4fc;
    --line: #d8e1f1;
    --ink: #0a1630;
    --muted: #4a5d7e;
    --brand: #0b6bbd;
    --brand-ink: #ffffff;
    --accent: #b86e00;
    --violet: #4f52d6;
    --ok: #0e8a5c;
    --shadow: 0 30px 70px -35px rgba(20, 40, 90, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigatie ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand b { color: var(--brand); font-weight: 800; }
.menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .98rem; }
.menu a:hover { color: var(--ink); }
.menu a.btn-primary, .menu a.btn-primary:hover { color: var(--brand-ink); font-size: .95rem; }
.burger { display: none; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--font-display); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); }
.btn-sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .92rem; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -2;
  background:
    radial-gradient(60% 60% at 75% 20%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(50% 50% at 15% 10%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%);
}
.road-lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 75%); }
.road-lines svg { width: 100%; height: 100%; }
.road-lines path { stroke: color-mix(in srgb, var(--brand) 55%, transparent); stroke-width: 2; fill: none; stroke-dasharray: 14 18; animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -640; } }

.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: .9rem; font-weight: 500; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 800; margin: 1.3rem 0 1.4rem; }
.nb { white-space: nowrap; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-note { margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }

/* ---------- Telefoon ---------- */
.phone { position: relative; width: min(100%, 290px); aspect-ratio: 9 / 19.2; border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #3a4660, #121a2c 60%); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 24px; border-radius: 99px; background: #05080f; transform: translateX(-50%); }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0b1830; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phones .phone:nth-child(1) { position: absolute; left: 50%; top: 0; transform: translateX(-104%) rotate(-5deg); width: min(52%, 270px); z-index: 1; opacity: .96; }
.phones .phone:nth-child(2) { position: relative; z-index: 2; width: min(58%, 290px); margin-left: 24%; transform: translateY(26px) rotate(3deg); }
.float { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { .float, .road-lines path { animation: none; } }

/* ---------- Cijfers ---------- */
.stats { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.2rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.stat span { display: block; margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* ---------- Secties ---------- */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.eyebrow { color: var(--brand); font: 700 .85rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
.sec-head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.12rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.card { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .8rem; transition: transform .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.card h3 { font-size: 1.4rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 1rem; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); margin-bottom: .4rem; }
.card .ico svg { width: 24px; height: 24px; }
.c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.card-visual { margin-top: auto; padding-top: 1rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.chip { padding: .4rem .85rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); font-weight: 500; }
.chip.ok { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); color: var(--ok); }
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: auto; padding-top: 1rem; }
.sign { aspect-ratio: 1; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 8px; }
.sign svg { width: 100%; height: 100%; }

/* ---------- Showcase ---------- */
.showcase { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 80%, transparent), transparent); }
.rail { display: flex; gap: clamp(1.4rem, 3vw, 2.4rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.5rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 2.5rem; scrollbar-width: thin; }
.rail figure { margin: 0; flex: 0 0 auto; width: 270px; scroll-snap-align: center; }
.rail figcaption { margin-top: 1.1rem; text-align: center; }
.rail figcaption b { display: block; font: 700 1.05rem/1.3 var(--font-display); }
.rail figcaption span { color: var(--muted); font-size: .94rem; }
.rail .phone { width: 100%; }

/* ---------- Stappen ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.step { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.step::before { content: counter(s, decimal-leading-zero); font: 800 3.2rem/1 var(--font-display); color: color-mix(in srgb, var(--brand) 55%, transparent); letter-spacing: -.04em; display: block; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.step p { color: var(--muted); }

/* ---------- Talen ---------- */
.langs { display: flex; flex-wrap: wrap; gap: .8rem; }
.lang { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-family: var(--font-display); }
.lang small { font-family: var(--font-text); font-weight: 400; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* ---------- Zorgvuldigheid ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.trust .card { background: var(--surface); }

/* ---------- Over / partners ---------- */
.band { border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 4rem); background:
  radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
  linear-gradient(180deg, var(--surface-2), var(--surface)); }
.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.band p { color: var(--muted); max-width: 40em; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .45rem; font-family: var(--font-display); }
.field input, .field textarea, .field select { width: 100%; padding: .95rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; min-height: 52px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.hp { position: absolute; left: -9999px; }
.status { min-height: 1.6em; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: #ff8a7a; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; color: var(--muted); }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; color: var(--brand); }
.contact-list b { color: var(--ink); display: block; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--muted); font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h4 { font: 700 .85rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .86rem; }

/* ---------- Tekstpagina's (privacy, voorwaarden) ---------- */
.doc { padding: clamp(3rem, 6vw, 5rem) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: .6rem; }
.doc .meta { color: var(--muted); margin-bottom: 2.4rem; }
.doc h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.doc p, .doc li { color: var(--ink); opacity: .92; }
.doc p + p { margin-top: 1rem; }
.doc ul { padding-left: 1.2rem; display: grid; gap: .5rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsief ---------- */
@media (max-width: 960px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .phones { min-height: 520px; margin-top: 1rem; }
  .c-6, .c-8, .c-4 { grid-column: span 12; }
  .steps, .trust { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr; }
  .burger { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
  .menu { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.25rem 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: .9rem .2rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .menu li:last-child a { border: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .phones .phone:nth-child(1) { display: none; }
  .phones .phone:nth-child(2) { margin-left: 0; width: min(72%, 280px); transform: none; }
  .phones { min-height: 0; }
  .cta-row .btn { width: 100%; }
}

/* ---------- Hulpklassen (geen inline-stijlen, zodat de beveiliging strak kan blijven) ---------- */
.d3 { animation-delay: -3s; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.h2-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
.p-lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.12rem; }
.p-lead.nomt { margin-top: 0; }
.mt-cta { margin-top: 1.4rem; }
.pt0 { padding-top: 0; }
.items-start { align-items: start; }
.foot-tag { margin-top: 1rem; max-width: 26em; }
.legal-plain { border: 0; margin: 0; padding: 0; }
.nf { min-height: 80vh; display: grid; align-items: center; }
.tc { text-align: center; }
.nf-logo { margin: 0 auto 1.5rem; border-radius: 24px; }
.nf-text { margin: 1rem auto 2rem; max-width: 30em; }

/* Gratis-blok */
.band-free { position: relative; overflow: hidden; }
.band-free .zero { position: absolute; right: clamp(1.5rem, 6vw, 5rem); top: 50%; transform: translateY(-50%); font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(6rem, 16vw, 13rem); line-height: 1; letter-spacing: -.04em; color: transparent; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #8b7bff)); -webkit-background-clip: text; background-clip: text; opacity: .9; pointer-events: none; }
.band-free h2, .band-free p, .band-free .eyebrow { position: relative; }
@media (max-width: 960px) { .band-free .zero { position: static; transform: none; display: block; font-size: 6rem; margin-bottom: .5rem; } }
