/* Self-hosted (Google Fonts, latin subset, variabel gewicht) */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/fredoka-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format('woff2');
  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;
}

/* Schoolpas landingspagina — gebouwd op het Claude Design "Schoolpas landingspagina" (pagina Definitief) */

:root {
  --primary: #2a7bff;
  --primary-700: #1f63d6;
  --primary-btn: #126dff;   /* knopvlak: net iets donkerder dan --primary, zodat witte tekst 4.5:1 haalt */
  --primary-50: #eaf2ff;
  --secondary: #21c97a;
  --secondary-50: #e6f8ef;
  --success: #13947e;
  --warning: #ff7700;
  --info: #3da7be;
  --danger: #ba0070;
  --danger-50: #f9e6f1;
  --light: #f2f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --ink: #111827;
  --ink-muted: #636a77;   /* ≥ 4.5:1 op wit, --light en --primary-50 */
  --gradient-brand: linear-gradient(135deg, #21c97a 0%, #2a7bff 100%);

  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-sans: "Nunito", "Segoe UI", system-ui, sans-serif;

  --gutter: 80px;
  --section-y: 104px;
  --shadow-3d: 0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 28px rgba(17,24,39,0.18), 0 4px 8px rgba(17,24,39,0.10);

  /* 1 ontwerp-pixel: schaalt mee onder 1440px zodat de hero-compositie klopt */
  --u: min(1px, calc(100vw / 1440));
  /* schaal van de hero-fotocompositie: 0.92 zodat de foto (1672×941) niet wordt opgerekt */
  --hu: calc(var(--u) * 0.92);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
/* tekstlinks in het donkerdere blauw: --primary op wit haalt geen 4.5:1 */
a { color: var(--primary-700); }
a:hover { color: #1a4fae; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: 44px; line-height: 52px; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, button { font-family: var(--font-sans); }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.stack-72 { display: flex; flex-direction: column; gap: 72px; }
.lead { font-size: 18px; line-height: 28px; }
.lead-lg { font-size: 19px; line-height: 30px; }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--primary-btn); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 16px; line-height: 24px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; line-height: 24px; }
.btn-glow { box-shadow: 0 8px 24px rgba(42,123,255,0.28); }

/* ---------- HERO ---------- */
.hero { position: relative; z-index: 2; background: #fff; min-height: calc(788 * var(--hu)); padding-top: 112px; }

.hero-media {
  position: absolute; right: 0; top: 0; width: 100%;
  height: calc(880 * var(--hu)); overflow: hidden; pointer-events: none; /* ruim genoeg voor de onderste hoek van het gedraaide vierkant (~859) */
}
/* De vorm (afgerond vierkant uit het ontwerp) staat vast t.o.v. de gecentreerde
   content. Tot 1440px valt de rechterkant buiten beeld, precies zoals het ontwerp;
   op zeer brede schermen wordt het vierkant volledig zichtbaar. */
.hero-media { --off: max(0px, 50% - 720px); }
.hero-photo {
  position: absolute; left: calc(var(--off) + 665 * var(--u)); top: calc(-423 * var(--hu));
  width: calc(1240 * var(--hu)); height: calc(1240 * var(--hu));
  border-radius: calc(154 * var(--hu)); overflow: hidden; transform: rotate(4deg);
}
.hero-photo img {
  position: absolute; left: calc(-551 * var(--hu)); top: calc(391 * var(--hu));
  width: calc(1814 * var(--hu)); height: calc(1021 * var(--hu)); max-width: none;
  object-fit: cover;
}
/* als de rechterkant in beeld komt: foto iets hoger laten beginnen, zodat de
   geroteerde bovenrand nooit een kiertje laat zien */
@media (min-width: 1800px) {
  .hero-photo img { top: calc(311 * var(--hu)); height: calc(1101 * var(--hu)); object-position: 50% 100%; transform-origin: calc(1171 * var(--hu)) calc(309 * var(--hu)); }
}
.hero-diamond { position: absolute; transform: rotate(45deg); mix-blend-mode: multiply; }
.hero-diamond--green {
  left: calc(var(--off) + 601 * var(--u)); top: calc(111 * var(--u));
  width: calc(239 * var(--u)); height: calc(239 * var(--u)); border-radius: calc(46 * var(--u));
  background: linear-gradient(135deg, #7ee2b0 0%, #21c97a 45%, #2aa9a0 100%); opacity: .9;
}
.hero-diamond--blue {
  left: calc(var(--off) + 501 * var(--u)); top: calc(-298 * var(--u));
  width: calc(440 * var(--u)); height: calc(440 * var(--u)); border-radius: calc(101 * var(--u));
  background: #cfe0ff;
}
/* iOS Safari laat mix-blend-mode wegvallen zolang er gescrold wordt (ruiten worden
   dan even dekkend). Daar echte transparantie die er op wit hetzelfde uitziet:
   merkblauw op 22% = #cfe0ff. */
@supports (-webkit-touch-callout: none) {
  .hero-diamond { mix-blend-mode: normal; }
  .hero-diamond--blue { background: rgba(42, 123, 255, 0.22); }
  .hero-diamond--green { opacity: .72; }
}

.nav {
  position: relative; z-index: 3; height: 112px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height .35s var(--ease-out, ease);
}

/* Vaste header: bovenaan transparant (zoals het ontwerp), bij scrollen wit glas */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .35s ease, box-shadow .35s ease;   /* bewust geen transition op backdrop-filter: iOS Safari struikelt daarover */
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.06);
}
.site-header.is-scrolled .nav { height: 72px; }
.site-header .brand { transform-origin: left center; transition: scale .35s var(--ease-out, ease); }
.site-header.is-scrolled .brand { scale: .8; }
.nav-pill { transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled .nav-pill { background: transparent; box-shadow: none; }
@media (max-width: 1100px) {
  /* mobiel/tablet: altijd wit glas, ook zonder scroll-status (robuust op iOS) */
  .site-header, .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  }
}
/* zonder backdrop-filter-ondersteuning: dekkender wit zodat de tekst leesbaar blijft */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.94); }
  @media (max-width: 1100px) { .site-header { background: rgba(255, 255, 255, 0.94); } }
}
/* ankerlinks niet onder de vaste header laten verdwijnen */
section[id] { scroll-margin-top: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 38px; }
.brand:hover { color: var(--ink); }
.nav-pill {
  display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 28px;
  border-radius: 999px; background: rgba(255,255,255,0.92); box-shadow: 0 8px 24px rgba(17,24,39,0.12);
}
.nav-link { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--primary-700); }

/* Menuknop (alleen tot 1100px en alleen met JS, zie RESPONSIVE) */
.nav-toggle { display: none; }
.nav-toggle {
  align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(17,24,39,0.10), 0 0 0 1px rgba(17,24,39,0.06);
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.nav-toggle-icon { position: relative; width: 20px; height: 14px; }
.nav-toggle-icon i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: translate .3s var(--ease-out), rotate .3s var(--ease-out), opacity .2s ease;
}
.nav-toggle-icon i:nth-child(1) { top: 0; }
.nav-toggle-icon i:nth-child(2) { top: 6px; }
.nav-toggle-icon i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

/* Skiplink: pas zichtbaar bij focus met het toetsenbord */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus { translate: 0 0; color: #fff; outline: 2px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }

.hero-inner { position: relative; z-index: 2; }
.hero-text {
  width: min(520px, calc(100vw * 0.4618 - var(--gutter) - 40px));
  padding: calc(60 * var(--u)) 0 96px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.hero-text h1 { font-size: clamp(40px, 3.75vw, 54px); line-height: 1.15; }
.hero-lead { font-size: 19px; line-height: 30px; max-width: 480px; }
.hero-sub { font-size: 16px; line-height: 26px; color: #374151; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
/* rustige tekstlink naast de CTA; zelfde onderstreping als de navigatie */
.hero-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.hero-link:hover { color: var(--primary-700); }
.hero-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--gradient-brand); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease-out);
}
.hero-link:hover::after { scale: 1 1; }
.hero-link svg { transition: translate .3s var(--ease-spring); }
.hero-link:hover svg { translate: 0 3px; }
.hero-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

/* ---------- WAT SCHOOLPAS DOET ---------- */
.functies { padding: 96px 0; background: #fff; }

.feature-banner {
  position: relative; min-height: 520px; border-radius: 32px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.feature-banner > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%;
}
.feature-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.88) 0%, rgba(17,24,39,0.62) 45%, rgba(17,24,39,0.25) 100%);
}
.feature-banner-text {
  position: relative; z-index: 1; max-width: 760px; padding: 56px;
  display: flex; flex-direction: column; gap: 16px;
}
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7ee2b0; }
.feature-banner h2 { color: #fff; }
.feature-banner p { font-size: 19px; line-height: 30px; color: rgba(255,255,255,0.9); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bento-card { padding: 12px; background: var(--light); border-radius: 28px; display: flex; flex-direction: column; }
.bento-card--tall { grid-row: span 2; }
.bento-card--wide { grid-column: 1 / -1; }
.bento-visual {
  position: relative; height: 230px; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bento-visual--photo { height: auto; flex-grow: 1; min-height: 560px; }
.bento-visual--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 42%; }
.bento-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.bento-body h3 { font-size: 22px; line-height: 28px; }
.bento-body p { font-size: 16px; line-height: 25px; }

/* visual: SSO */
.vis-sso { gap: 14px; padding: 0 20px; container-type: inline-size; background: linear-gradient(135deg, #eaf2ff 0%, #d9e8ff 100%); }
.vis-sso > svg { flex-shrink: 0; }
.vis-sso-mark {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: 24px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transform: perspective(700px) rotateY(14deg); box-shadow: var(--shadow-3d);
}
.vis-sso-mark img { width: 48px; height: 48px; }
.vis-sso-list { flex: none; width: 190px; display: flex; flex-direction: column; gap: 12px; }
/* schaalt mee met de kaartbreedte i.p.v. de schermbreedte */
@container (max-width: 333px) { .vis-sso-mark { width: 64px; height: 64px; border-radius: 18px; } .vis-sso-mark img { width: 36px; height: 36px; } }
@container (max-width: 309px) { .vis-sso > svg { display: none; } }
.chip3d {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: #fff;
  font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-3d); white-space: nowrap;
}
.chip3d img, .chip3d svg { width: 22px; height: 22px; flex-shrink: 0; }
.chip3d--l { transform: perspective(700px) rotateY(-16deg) rotate(-2deg); }
.chip3d--r { transform: perspective(700px) rotateY(-16deg) rotate(2deg); }
.chip3d--bp { padding: 10px 18px; }
.chip3d--bp div { display: flex; flex-direction: column; gap: 2px; }
.chip3d--bp small { white-space: normal; font-size: 11px; line-height: 14px; font-weight: 600; color: #4b5563; }

/* visual: meekijken */
.vis-watch { background: radial-gradient(circle at 70% 20%, rgba(42,123,255,0.35) 0%, rgba(42,123,255,0) 55%), var(--ink); }
.vis-watch-grid {
  width: 270px; padding: 14px; border-radius: 16px; background: #1f2a44;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  transform: perspective(800px) rotateX(24deg) rotate(-8deg); box-shadow: 0 30px 50px rgba(0,0,0,0.45);
}
.tile { height: 46px; border-radius: 8px; background: #fff; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.tile i { display: block; height: 5px; width: 85%; border-radius: 3px; background: var(--border); }
.tile i:first-child { height: 6px; width: 60%; }
.tile i:last-child { width: 70%; }
.tile i.c-blue { background: var(--primary); }
.tile i.c-green { background: var(--secondary); }
.tile i.c-orange { background: var(--warning); }
.vis-watch-eye {
  position: absolute; right: 22px; top: 22px; width: 52px; height: 52px; border-radius: 16px;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(42,123,255,0.45);
}

/* visual: LAS-koppeling */
.vis-sync { gap: 12px; background: linear-gradient(135deg, #e6f8ef 0%, #d3f2e2 100%); }
.sync-card {
  width: 132px; padding: 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px; line-height: 18px;
}
.sync-card strong { font-size: 16px; line-height: 22px; font-weight: 800; }
.sync-card--las { background: #fff; color: var(--ink); box-shadow: 0 8px 0 #c7d2de, 0 18px 28px rgba(17,24,39,0.16); }
.sync-card--sp { background: var(--primary-700); color: #fff; box-shadow: 0 8px 0 #174ea6, 0 18px 28px rgba(17,24,39,0.16); }
.sync-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #fff; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sync-icon--pink { background: #fdf0f4; }
.sync-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--success); }
.sync-arrow span {
  padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ink);
  font-size: 12px; line-height: 16px; font-weight: 800; white-space: nowrap;
}

/* visual: rollen */
.vis-roles { display: block; background: linear-gradient(135deg, #eaf2ff 0%, #f2f4f6 100%); }
.vis-roles-stack {
  position: absolute; left: 50%; top: 50%; width: 330px; height: 190px;
  transform: translate(-50%, -50%) perspective(900px) rotateX(18deg) rotate(-4deg);
}
.role {
  position: absolute; width: 230px; padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-3d);
  display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 18px;
}
.role strong { font-size: 15px; line-height: 20px; font-weight: 800; }
.role--dark { left: 0; top: 0; background: var(--ink); color: #fff; }
.role--blue { left: 50px; top: 62px; background: var(--primary-700); color: #fff; }
.role--light { left: 100px; top: 124px; background: #fff; color: var(--ink); }

/* security */
.security {
  padding: 48px;
  background: radial-gradient(circle at 90% 10%, rgba(33,201,122,0.22) 0%, rgba(33,201,122,0) 45%), var(--ink);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center;
}
.security-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.security-head { display: flex; align-items: center; gap: 18px; }
.security-head h3 { font-size: 30px; line-height: 38px; color: #fff; }
.security-icon {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #21c97a 0%, #13947e 100%);
  display: flex; align-items: center; justify-content: center;
  transform: perspective(700px) rotateY(-14deg) rotateX(8deg); box-shadow: 0 8px 0 #0e6f5f, 0 20px 36px rgba(0,0,0,0.4);
}
.security-text p { font-size: 17px; line-height: 27px; color: rgba(255,255,255,0.85); }
.log-list { display: flex; flex-direction: column; gap: 10px; transform: perspective(1000px) rotateY(-10deg); }
.log-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
}
.log-list strong { font-size: 15px; line-height: 20px; font-weight: 700; color: #fff; }
.log-list li > span:last-child { margin-left: auto; font-size: 13px; line-height: 18px; color: rgba(255,255,255,0.72); text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.dot--green { background: var(--secondary); }
.dot--info { background: var(--info); }
.dot--orange { background: var(--warning); }

/* ---------- VOORDELEN ---------- */
.voordelen { position: relative; overflow: hidden; padding: var(--section-y) 0 120px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.photo-offset { position: relative; height: 420px; }
.photo-offset::before {
  /* gradient langs de zichtbare randen: groen linksonder → blauw rechtsboven */
  content: ""; position: absolute; inset: 0; border-radius: 32px;
  background: linear-gradient(45deg, #21c97a 0%, #2a7bff 100%);
  transform: translate(12px, 12px);
}
.photo-offset img {
  position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  border-radius: 32px; box-shadow: 0 20px 40px rgba(17,24,39,0.16);
}

.usp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.usp {
  min-height: 300px; padding: 40px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.usp p { font-size: 17px; line-height: 27px; }
.usp-head { display: flex; align-items: center; gap: 16px; }
.usp-head h3 { font-size: 26px; line-height: 32px; }
.usp-icon { width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.usp--dark { background: var(--ink); color: #fff; transform: rotate(-2deg); box-shadow: 0 20px 40px rgba(17,24,39,0.18); }
.usp--dark p { color: rgba(255,255,255,0.85); }
.usp--dark .usp-icon { background: rgba(33,201,122,0.16); color: var(--secondary); }
.usp--blue { background: var(--primary-700); color: #fff; transform: translateY(28px) rotate(1.5deg); box-shadow: 0 20px 40px rgba(31,99,214,0.28); }
.usp--blue .usp-icon { background: rgba(255,255,255,0.16); color: #fff; }
.usp--light { background: #fff; border: 1px solid var(--border); transform: rotate(-1deg); box-shadow: 0 20px 40px rgba(17,24,39,0.10); }
.usp--light .usp-icon { background: var(--primary-50); color: var(--primary-700); }

/* ---------- INLOGGEN ---------- */
.inloggen {
  position: relative; overflow: hidden; padding: 112px 0;
  background: radial-gradient(circle at 85% 20%, rgba(42,123,255,0.28) 0%, rgba(42,123,255,0) 45%), var(--ink);
}
.inloggen-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.inloggen-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.inloggen-text h2 { color: #fff; }
.inloggen-text .lead-lg { color: rgba(255,255,255,0.85); }
.muted-on-dark { font-size: 17px; line-height: 27px; color: rgba(255,255,255,0.72); }

.inloggen-visual { display: flex; flex-direction: column; gap: 14px; }
.app-window { border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.app-bar {
  height: 40px; padding: 0 16px; background: var(--light); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 999px; background: #d1d5db; display: block; }
.app-url {
  flex-grow: 1; height: 26px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 12px; line-height: 16px;
}
.app-body { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 8fr); }
.app-login { padding: 26px 28px 20px; display: flex; flex-direction: column; gap: 16px; }
.app-login-head { display: flex; align-items: center; justify-content: space-between; }
.brand--sm { gap: 10px; }
.brand--sm img { width: 34px; height: 34px; }
.brand--sm span { font-size: 26px; line-height: 32px; }
.lang { display: flex; align-items: center; gap: 6px; color: #9ca3af; }
.flag-nl { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.flag-nl i { flex: 1 1 0; display: block; }
.flag-nl i:nth-child(1) { background: #ae1c28; }
.flag-nl i:nth-child(2) { background: #fff; }
.flag-nl i:nth-child(3) { background: #21468b; }
.app-caption { text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.login-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.login-method {
  height: 104px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, #eaf2ff 0%, #e6f8ef 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.login-method > span { font-size: 13px; line-height: 18px; font-weight: 700; color: #0f7a68; }
.login-icons { display: flex; align-items: center; gap: 6px; }
.sso-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sso-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink);
}
.sso-btn img { width: 18px; height: 18px; }
.app-photo { position: relative; min-height: 100%; }
.app-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

.after-login {
  display: flex; align-items: center; gap: 10px; padding-left: 8px; color: #7ee2b0;
  font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.after-row { display: flex; align-items: stretch; gap: 14px; }
.startpage {
  flex: 7 1 0; border-radius: 18px; background: #fff; overflow: hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,0.30); transform: rotate(-1deg);
}
.startpage-head {
  padding: 14px 18px; background: linear-gradient(135deg, #eaf2ff 0%, #e6f8ef 100%);
  display: flex; align-items: center; gap: 10px;
}
.startpage-head > span:not(.avatar) { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 22px; }
.avatar {
  margin-left: auto; width: 28px; height: 28px; border-radius: 999px; background: #8a4bff; color: #fff;
  font-size: 12px; line-height: 28px; font-weight: 800; text-align: center;
}
.startpage-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.startpage-label { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink-muted); letter-spacing: .04em; text-transform: uppercase; }
.app-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.app-icons > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-icons i { display: block; width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 6px 12px rgba(17,24,39,0.14); }
.app-icons b { display: block; height: 8px; border-radius: 999px; background: var(--border); }
.bp-card {
  flex: 5 1 0; align-self: flex-start; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid rgba(41,44,89,0.25);
  display: flex; flex-direction: column; gap: 12px; transform: translateY(12px) rotate(1.2deg);
  font-size: 13px; line-height: 19px;
}
.bp-card strong { font-size: 16px; line-height: 22px; font-weight: 800; }
.bp-head { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bp-head img { width: 150px; height: auto; min-width: 0; flex-shrink: 1; }
.badge-orange {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--warning); color: #fff;
  font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.bp-tiles { display: flex; gap: 10px; padding-top: 4px; }
.bp-tiles i { display: block; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 12px rgba(17,24,39,0.12); }

/* ---------- PARTNERS ---------- */
.partners {
  position: relative; overflow: hidden; padding: var(--section-y) 0;
  background-color: #fff; background-image: radial-gradient(#dfe3e8 1.2px, transparent 1.2px); background-size: 26px 26px;
}
.partners-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 56px; }
/* magneetveld: main.js tekent de stippen op een canvas en neemt het CSS-patroon over */
.partners.has-field { background-image: none; }
.dot-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.partners-inner > h2 { text-align: center; max-width: 800px; }

.flow { width: 100%; max-width: 1280px; display: flex; align-items: center; }
.flow-end {
  flex-shrink: 0; width: 280px; padding: 28px; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.flow-end-icon {
  width: 80px; height: 80px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
}
.flow-end-text { display: flex; flex-direction: column; gap: 4px; }
.flow-end-text strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; color: #fff; }
.flow-end-text span { font-size: 15px; line-height: 22px; color: rgba(255,255,255,0.88); }
.flow-end--platform { background: var(--primary-700); transform: rotate(-2deg); box-shadow: 0 20px 40px rgba(31,99,214,0.28); }
.flow-end--platform .flow-end-icon { background: #fff; transform: perspective(600px) rotateY(12deg); box-shadow: 0 10px 20px rgba(0,0,0,0.18); }
.flow-end--school { background: var(--ink); transform: translateY(18px) rotate(1.8deg); box-shadow: 0 20px 40px rgba(17,24,39,0.22); }
.flow-end--school .flow-end-icon { background: rgba(33,201,122,0.16); color: var(--secondary); transform: perspective(600px) rotateY(-12deg); box-shadow: 0 10px 20px rgba(0,0,0,0.25); }
.flow-arrow { flex-shrink: 0; width: 96px; display: flex; justify-content: center; }
.flow-middle {
  flex-grow: 1; min-width: 0; padding: 32px; border-radius: 24px; background: var(--primary-50);
  transform: rotate(1deg); box-shadow: 0 20px 40px rgba(17,24,39,0.10);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.pill-label {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: rgba(42,123,255,0.14); color: #1a56bd; font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .04em;
}
.partner-logos { display: flex; gap: 16px; width: 100%; }
.partner-logo {
  flex: 1 1 0; height: 112px; padding: 20px 24px; border-radius: 18px; background: #fff;
  box-shadow: 0 6px 16px rgba(31,99,214,0.10); display: flex; align-items: center; justify-content: center;
}
.partner-logo img { max-height: 60px; max-width: 100%; width: auto; }
.service-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.service-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 6px rgba(17,24,39,0.06);
}
.service-chips li.c-blue { color: var(--primary-700); }
.service-chips li.c-green { color: var(--success); }
.service-chips li span { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }

.pilot {
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(17,24,39,0.08);
  font-size: 16px; line-height: 24px;
}
.pilot svg { flex-shrink: 0; }
.pilot .btn { font-size: 15px; line-height: 20px; padding: 0 20px; flex-shrink: 0; }

/* ---------- CONTACT ---------- */
.contact {
  position: relative; overflow: hidden; padding: var(--section-y) var(--gutter);
  background: var(--gradient-brand); display: flex; justify-content: center; align-items: center;
}
.contact-deco { position: absolute; transform: rotate(45deg); }
.contact-deco--a { width: 520px; height: 520px; border-radius: 130px; background: rgba(255,255,255,0.10); left: -180px; bottom: -200px; }
.contact-deco--b { width: 380px; height: 380px; border-radius: 96px; background: rgba(17,24,39,0.10); right: -120px; top: -140px; }
.contact-card {
  position: relative; width: 100%; max-width: 880px; padding: 56px; background: #fff; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17,24,39,0.22); display: flex; flex-direction: column; gap: 32px;
}
.contact-card h2 { font-size: 36px; line-height: 44px; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend { font-size: 16px; line-height: 24px; font-weight: 700; padding: 0; margin-bottom: 12px; }
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.radio-card {
  min-height: 88px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.radio-card input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.radio-card > span { display: flex; flex-direction: column; gap: 2px; }
.radio-card strong { font-size: 16px; line-height: 24px; font-weight: 700; }
.radio-card > span > span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.field label { font-size: 14px; line-height: 20px; font-weight: 700; }
.optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  font-size: 16px; color: var(--ink);
}
.field input { height: 48px; }
.field textarea { min-height: 120px; padding: 12px 16px; line-height: 24px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
/* validatie (main.js): rode rand + melding onder het veld, samenvatting boven de knop */
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #fffbfd; }
.field.has-error input:focus, .field.has-error textarea:focus { outline-color: var(--danger); border-color: var(--danger); }
.field-error {
  display: flex; align-items: flex-start; gap: 8px; margin: 0;
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger);
  animation: error-in .25s var(--ease-out, ease) both;
}
.field-error::before {
  content: "!"; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 12px; line-height: 18px; font-weight: 800; text-align: center;
}
.form-status {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 10px;
  background: var(--danger-50); color: var(--danger); font-size: 15px; line-height: 22px; font-weight: 700;
  animation: error-in .25s var(--ease-out, ease) both;
}
.form-status[hidden] { display: none; }
@keyframes error-in { from { opacity: 0; translate: 0 -4px; } }
@keyframes shake { 0%, 100% { translate: 0 0; } 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.field.shake input, .field.shake textarea { animation: shake .35s ease; }
/* reCAPTCHA v3: badge verbergen mag zolang de verplichte tekst bij het formulier staat */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.recaptcha-note a { color: inherit; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-footer p { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Tijdens het versturen */
.btn:disabled { opacity: .6; cursor: progress; }
.contact-form.is-sending .btn svg { animation: send-nudge .7s ease-in-out infinite; }
@keyframes send-nudge { 50% { translate: 4px 0; } }

/* Melding na verzenden (vervangt het formulier) */
.contact-form[hidden] { display: none; }
.form-result {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 32px; border-radius: 16px; animation: error-in .35s var(--ease-out, ease) both;
}
.form-result[hidden] { display: none; }
.form-result--ok { background: var(--secondary-50); }
.form-result--error { background: var(--danger-50); }
.form-result-icon {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  color: #fff; margin-bottom: 4px;
}
.form-result--ok .form-result-icon { background: var(--success); }
.form-result--error .form-result-icon { background: var(--danger); }
.form-result h3 { font-size: 26px; line-height: 32px; }
.form-result p { font-size: 17px; line-height: 27px; color: var(--ink); max-width: 560px; }
.form-result p a { font-weight: 700; white-space: nowrap; }
.form-result .btn { margin-top: 8px; }
.form-result:focus { outline: none; }
.form-result:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

/* ---------- FOOTER ---------- */
.footer { padding: 40px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 36px; width: auto; }
.footer-meta { display: flex; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; color: var(--ink-muted); flex-wrap: wrap; }
.footer-meta a { font-weight: 700; text-decoration: none; }
.footer-legal { display: flex; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.footer-kodo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.footer-kodo:hover { color: var(--ink); }
.footer-kodo img {
  height: 26px; width: auto;
  /* optisch centreren op de KODO-letters (y 10.8–34.2 van 35), niet op het oranje
     streepje erboven: letters-midden ligt 14.3% onder het beeldmidden */
  translate: 0 -14.3%;
}

/* =================== RESPONSIVE =================== */

@media (max-width: 1280px) {
  :root { --gutter: 56px; }
  .flow-end { width: 230px; padding: 24px; }
  .flow-arrow { width: 56px; }
  .flow-arrow svg { width: 56px; }
}

/* Tablet: hero stapelt, grids naar 2 kolommen */
@media (max-width: 1100px) {
  :root { --gutter: 40px; --section-y: 88px; }
  h2 { font-size: 38px; line-height: 46px; }

  .hero { min-height: 0; display: flex; flex-direction: column; overflow-x: clip; padding-bottom: 40px; }
  .hero-inner { order: 2; }
  .hero-text { width: 100%; max-width: 640px; padding: 24px 0 40px; }
  .hero-text h1 { font-size: 48px; }
  .hero-media {
    order: 3; position: relative; height: auto; width: auto; overflow: visible;
    margin: 0 var(--gutter) 0; aspect-ratio: 16 / 10;
  }
  .hero-photo { inset: 0; width: 100%; height: 100%; border-radius: 32px; transform: none; }
  .hero-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
  /* gestapeld: diagonaal om de foto, blauw rechtsboven en groen linksonder */
  .hero-diamond--green { left: -24px; right: auto; top: auto; bottom: -36px; width: 110px; height: 110px; border-radius: 24px; }
  .hero-diamond--blue { left: auto; right: -40px; top: -56px; width: 170px; height: 170px; border-radius: 38px; }
  .functies { padding-top: 40px; }   /* hero-foto is hier breed: minder lucht tot de volgende sectie */

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card--tall { grid-row: span 1; }
  .bento-visual--photo { min-height: 320px; }
  .security { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .log-list { transform: none; }

  /* gestapeld: kop + tekst en de USP-kaarten gecentreerd */
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split > .stack-24 { max-width: 640px; margin: 0 auto; text-align: center; }
  .photo-offset { margin-right: 12px; }
  .usp-grid { grid-template-columns: 1fr; gap: 24px; max-width: 640px; width: 100%; margin: 0 auto; }
  .usp { min-height: 0; }
  .usp--blue { transform: rotate(1deg); }

  .inloggen { padding: 88px 0; }
  /* gestapeld: tekst en het voorbeeldscherm gecentreerd */
  .inloggen-grid { grid-template-columns: 1fr; gap: 56px; }
  .inloggen-text { max-width: 640px; margin: 0 auto; align-items: center; text-align: center; }
  .inloggen-visual { max-width: 720px; width: 100%; margin: 0 auto; }
  .after-login { justify-content: center; padding-left: 0; }

  .flow { flex-direction: column; gap: 0; max-width: 640px; }
  .flow-end { width: 100%; flex-direction: row; text-align: left; }
  .flow-end--school { transform: rotate(1deg); }
  .flow-arrow { width: auto; height: 64px; align-items: center; }
  .flow-arrow svg { width: 64px; transform: rotate(90deg); }
  .flow-middle { width: 100%; transform: none; }
}

/* Footer: zodra logo, links en copyright/Kodo niet meer naast elkaar passen (~950px + marges),
   alles onder elkaar en gecentreerd: logo → links → copyright + Kodo */
@media (max-width: 1040px) {
  .footer-inner { flex-direction: column; justify-content: center; gap: 20px; text-align: center; }
  .footer-meta, .footer-legal { justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
}

/* Menuknop: vanaf hier past de menubalk niet meer naast het logo (logo 218 + balk 517 + marges) */
@media (max-width: 860px) {
  .nav-link { display: none; }
  .nav-pill { padding: 8px; gap: 0; }

  /* met JS: menuknop, de links klappen uit in een paneel onder de header */
  .js .nav-toggle { display: inline-flex; }
  .js .site-header .nav-pill {
    position: absolute; top: calc(100% - 4px); right: var(--gutter); width: 320px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(17,24,39,0.16), 0 0 0 1px rgba(17,24,39,0.05);
    visibility: hidden; opacity: 0; translate: 0 -8px;
    transition: opacity .2s ease, translate .25s var(--ease-out), visibility 0s linear .25s;
  }
  .js .site-header .nav-pill.is-open { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
  .js .nav-pill .nav-link { display: block; padding: 12px 16px; border-radius: 12px; font-size: 17px; }
  .js .nav-pill .nav-link:hover { background: var(--light); }
  .js .nav-pill .nav-link::after { display: none; }
  .js .nav-pill .btn { min-height: 52px; margin-top: 6px; padding: 0 22px; font-size: 16px; }
}

/* Mobiel */
@media (max-width: 720px) {
  :root { --gutter: 16px; --section-y: 64px; }
  h2 { font-size: 30px; line-height: 38px; }
  .lead-lg, .hero-lead, .feature-banner p { font-size: 17px; line-height: 27px; }

  .nav { height: 80px; }
  .site-header.is-scrolled .nav { height: 64px; }
  section[id] { scroll-margin-top: 64px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 24px; line-height: 30px; }
  .nav-pill { background: none; box-shadow: none; padding: 0; }
  .nav-pill .btn-sm { padding: 0 16px; font-size: 15px; }

  .hero-text { gap: 20px; padding: 16px 0 32px; align-items: center; text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; gap: 16px 24px; }
  .hero-text h1 { font-size: 38px; line-height: 1.15; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-photo { border-radius: 24px; }
  .hero-diamond--green { width: 72px; height: 72px; left: -10px; bottom: -24px; border-radius: 18px; }
  .hero-diamond--blue { width: 110px; height: 110px; right: -22px; top: -36px; border-radius: 26px; }

  .functies { padding: 36px 0 64px; }
  .hero { padding-top: 80px; padding-bottom: 28px; }
  .stack-56 { gap: 40px; }
  .stack-72 { gap: 48px; }
  .feature-banner { min-height: 480px; border-radius: 24px; }
  .feature-banner::after { background: linear-gradient(0deg, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.7) 55%, rgba(17,24,39,0.3) 100%); }
  .feature-banner-text { padding: 28px 24px; }

  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento-card { border-radius: 24px; }
  .bento-visual--photo { min-height: 300px; }
  .chip3d { padding: 10px 12px; font-size: 14px; }
  .sync-card { width: 118px; padding: 14px; }
  .vis-watch-grid { width: 230px; }
  .vis-roles-stack { width: 290px; }
  .role { width: 200px; }
  .role--blue { left: 40px; }
  .role--light { left: 80px; }
  .security { padding: 28px 24px; }
  .security-head h3 { font-size: 24px; line-height: 30px; }
  .security-icon { width: 52px; height: 52px; border-radius: 18px; }

  .voordelen { padding: 64px 0 72px; }
  .photo-offset { height: 280px; margin-right: 8px; }
  .photo-offset::before { transform: translate(8px, 8px); border-radius: 24px; }
  .photo-offset img { border-radius: 24px; }
  .usp { padding: 28px; gap: 16px; }
  .usp--dark { transform: rotate(-1deg); }
  .usp--light { transform: none; }
  .usp-head h3 { font-size: 22px; line-height: 28px; }

  .inloggen { padding: 64px 0; }
  .app-body { grid-template-columns: 1fr; }
  .app-photo { display: none; }
  .app-login { padding: 20px 16px; }
  .login-method { height: 92px; padding: 8px; }

  .partners-inner { gap: 40px; }
  .flow-end { padding: 20px; gap: 16px; }
  .flow-end-icon { width: 64px; height: 64px; flex-shrink: 0; }
  .flow-middle { padding: 24px 16px; }
  .partner-logos { flex-direction: column; }
  .partner-logo { height: 96px; }
  .pilot { flex-direction: column; text-align: center; border-radius: 24px; padding: 20px; gap: 12px; }

  .contact { padding: 64px var(--gutter); }
  .contact-card { padding: 28px 20px; border-radius: 20px; gap: 24px; }
  .contact-card h2 { font-size: 28px; line-height: 36px; }
  .radio-grid, .field-grid { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }

  .js .site-header .nav-pill { left: var(--gutter); width: auto; }

}

/* Startpagina + Basispoort: zo lang mogelijk naast elkaar; gestapeld even breed en gecentreerd */
@media (max-width: 600px) {
  .after-row { flex-direction: column; align-items: center; gap: 20px; }
  .startpage, .bp-card { transform: none; flex: none; align-self: auto; width: 100%; max-width: 440px; }
}

/* =================== MICRO-ANIMATIES =================== */
/* Alle bewegingen gebruiken de losse `translate`/`scale`-eigenschappen,
   zodat ze de `transform: rotate()` van het ontwerp niet overschrijven. */

:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Hero bij laden */
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
/* foto: op zijn plek en op schaal, vervaagt in; alleen het masker draait een klein
   stukje naar zijn eindstand, de foto draait tegengesteld mee en staat dus stil */
@keyframes photo-fade { from { opacity: 0; } }
@keyframes photo-spin {
  from { transform: rotate(calc(var(--photo-rot) - var(--photo-spin))); }
  to   { transform: rotate(var(--photo-rot)); }
}
@keyframes photo-counter {
  from { transform: rotate(var(--photo-spin)); }
  to   { transform: rotate(0deg); }
}
@keyframes diamond-pop { from { scale: 0; opacity: 0; } }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: -10px 8px; } }

/* Intro bij laden, in volgorde: header → titel, tekst, knop → foto vervaagt in →
   ruiten ploppen erbij → (main.js) daarna pas de blokken eronder */
.nav { animation: rise .6s var(--ease-out) both; }
.hero-text > * { animation: rise .8s var(--ease-out) .15s backwards; }
.hero-text > :nth-child(2) { animation-delay: .27s; }
.hero-text > :nth-child(3) { animation-delay: .37s; }
.hero-text > :nth-child(4) { animation-delay: .47s; }
.hero-photo {
  --photo-rot: 4deg; --photo-spin: 5deg;
  animation: photo-fade .7s ease-out .55s backwards, photo-spin 1.5s var(--ease-out) .55s backwards;
}
/* draaipunt = middelpunt van het masker (1240×1240), uitgedrukt in de foto-coördinaten */
.hero-photo img {
  transform-origin: calc(1171 * var(--hu)) calc(229 * var(--hu));
  animation: photo-counter 1.5s var(--ease-out) .55s backwards;
}
.hero-diamond--green { animation: diamond-pop .7s var(--ease-spring) .85s backwards, float-a 7s ease-in-out 1.55s infinite; }
.hero-diamond--blue { animation: diamond-pop .8s var(--ease-spring) .95s backwards, float-b 9s ease-in-out 1.75s infinite; }
@media (max-width: 1100px) {
  /* gestapeld: rechte foto die het masker vult */
  .hero-photo { --photo-rot: 0deg; }
  .hero-photo img { transform-origin: 50% 50%; }
}

/* Scroll-reveal (alleen als JS draait) */
.js .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* Sequentiële lijstjes */
.js .seq > * { opacity: 0; translate: 0 10px; transition: opacity .45s var(--ease-out), translate .45s var(--ease-out); transition-delay: calc(var(--seq, 0) * 110ms + 250ms); }
.js .seq.is-visible > * { opacity: 1; translate: 0 0; }

/* Hover: kaarten reageren bewust niet (ze zijn niet klikbaar en een lift zou dat
   suggereren). Alleen de kaart "Veilig en AVG-proof" tilt op, als podium voor het logboek. */
.bento-card.security { transition: translate .35s var(--ease-spring), box-shadow .35s var(--ease-out); }
.bento-card.security:hover { translate: 0 -4px; box-shadow: 0 18px 36px rgba(17,24,39,0.10); }

/* puls via transform/opacity (GPU) i.p.v. een geanimeerde box-shadow */
.vis-watch-eye { isolation: isolate; }
.vis-watch-eye::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(42,123,255,.5); animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

@keyframes sync-swing { 0%, 100% { translate: 0 0; } 50% { translate: 3px 0; } }
.sync-arrow svg { animation: sync-swing 2.2s ease-in-out infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.dot--orange { animation: blink 1.6s ease-in-out infinite; }

/* Logboek-labels (Veilig en AVG-proof): hangen 3D naar binnen, komen bij hover
   één voor één naar voren en draaien recht naar de kijker */
.log-list { transform-style: preserve-3d; }
.log-list li, .js .log-list.seq > li {
  transition:
    opacity .45s var(--ease-out) calc(var(--seq, 0) * 110ms + 250ms),
    translate .45s var(--ease-out) calc(var(--seq, 0) * 110ms + 250ms),
    transform .5s var(--ease-spring), background-color .3s ease, border-color .3s ease, box-shadow .4s var(--ease-out);
}
.log-list li:hover {
  transform: translateZ(48px) rotateY(10deg);
  background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.24);
  box-shadow: 0 18px 36px rgba(0,0,0,0.4);
}
.log-list li:hover .dot { animation: dot-ping 1s ease-out infinite; }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 8px transparent; } }
.dot--green { color: var(--secondary); }
.dot--info { color: var(--info); }
.dot--orange { color: var(--warning); }
@media (max-width: 1100px) { .log-list li:hover { transform: scale(1.03); } }

/* Dashed pijlen in de partner-flow lopen */
@keyframes dash { to { stroke-dashoffset: -20; } }
.flow-arrow path:first-child { animation: dash 1s linear infinite; }

/* Knoppen: logo-gradient die de muis volgt, zwevende gloed, magnetisch (JS zet --mx/--my) en ripple bij klik */
.btn-primary {
  position: relative; isolation: isolate; overflow: hidden;
  box-shadow: 0 6px 16px -6px rgba(42,123,255,.55);
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .35s var(--ease-spring), scale .2s var(--ease-spring), box-shadow .35s var(--ease-out),
    --gx .6s var(--ease-out), --gy .6s var(--ease-out);
}
.btn-primary:hover { background: var(--primary-btn); }
/* gradient-laag in de logo-kleuren: groen loopt over in precies het knopblauw.
   Schuift mee met de muis (--gx: 0–100) en draait een paar graden mee in de
   verticale richting (--gy: -1–1); main.js zet beide. */
@property --gx { syntax: "<number>"; inherits: true; initial-value: 50; }
@property --gy { syntax: "<number>"; inherits: true; initial-value: 0; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(calc(110deg + var(--gy) * 14deg), #21c97a 0%, var(--primary-btn) 55%, var(--primary-btn) 100%);
  background-size: 200% 100%;
  background-position: calc(20% + var(--gx) * 0.6%) 0;
  opacity: 0; transition: opacity .5s ease;
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { opacity: 1; }
/* wit op het groene deel: klein schaduwtje voor leesbaarheid */
.btn-primary:hover, .btn-primary:focus-visible { text-shadow: 0 1px 2px rgba(17,24,39,.25); }
.btn-primary:hover {
  translate: var(--mx, 0px) calc(var(--my, 0px) - 3px);
  box-shadow: 0 14px 28px -8px rgba(42,123,255,.55), 0 6px 18px -6px rgba(33,201,122,.6);
}
.btn-primary:active { scale: .96; transition-duration: .08s; box-shadow: 0 4px 10px -4px rgba(42,123,255,.6); }

.btn svg { transition: translate .3s var(--ease-spring); }
.btn:hover svg { translate: 4px 0; }

/* ripple (span door main.js) */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; background: rgba(255,255,255,.55);
  animation: ripple .6s var(--ease-out) forwards;
}
@keyframes ripple { to { scale: 28; opacity: 0; } }


/* Hero: typ-effect op de regel over de IT-partner (main.js, alleen bij het eerste bezoek).
   De zin staat meteen op zijn plek; de letters worden één voor één zichtbaar. */
.hero-sub.is-typing [aria-hidden] > span:not(.is-on):not(.type-caret) { visibility: hidden; }
.hero-sub.is-typing .type-caret {
  display: inline-block; width: 2px; height: 1.05em; margin: 0 1px 0 1px;
  background: currentColor; vertical-align: -.15em; border-radius: 1px;
  animation: caret-blink .9s steps(1, end) infinite;
}
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--gradient-brand); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease-out);
}
.nav-link:hover::after { scale: 1 1; }

.radio-card:hover { border-color: #c5d6f5; }

@media (hover: none) {
  .bento-card.security:hover { translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
