/* ===========================================================
   KLUSBLOK — gedeeld design-systeem
   Eigen frisse build. Donkerblauw + geel, schone marktplaats-stijl.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #0d2440;
  --navy-deep:   #0a1c33;
  --navy-soft:   #15355c;
  --yellow:      #f5c518;
  --yellow-deep: #e0b30d;
  --ink:         #1a2535;
  --slate:       #5b6b80;
  --slate-light: #8a97a8;
  --line:        #e4e9f0;
  --line-soft:   #eef2f7;
  --paper:       #ffffff;
  --paper-2:     #f6f8fb;
  --paper-3:     #eef3f9;
  --green:       #1f9d63;
  --green-soft:  #e7f6ee;
  --shadow-sm:   0 1px 2px rgba(13,36,64,.06), 0 1px 3px rgba(13,36,64,.04);
  --shadow:      0 4px 16px rgba(13,36,64,.08);
  --shadow-lg:   0 18px 50px rgba(13,36,64,.16);
  --radius:      16px;
  --radius-lg:   22px;
  --maxw:        1180px;
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yellow-deep);
}
.eyebrow.on-dark { color: var(--yellow); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 11px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--navy-deep); box-shadow: 0 6px 18px rgba(245,197,24,.35); }
.btn-primary:hover { background: var(--yellow-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245,197,24,.45); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--paper-2); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; gap: 30px;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(245,197,24,.4);
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--navy-deep); }
.logo-word b { color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 6px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--slate); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-deep); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login { font-size: 14.5px; font-weight: 700; color: var(--navy-deep); display: inline-flex; align-items: center; gap: 6px; }
.nav-login:hover { color: var(--yellow-deep); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy-deep); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c4d2e4; padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .logo-word { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: #91a4bd; max-width: 280px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: #a9bad1; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; color: #7e90a8; flex-wrap: wrap; gap: 12px; }
.footer-bottom .badges { display: flex; gap: 20px; }
.footer-bottom .badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Generic sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--navy-deep); margin: 14px 0 12px; }
.section-head p { color: var(--slate); font-size: 16.5px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.head-row h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy-deep); }
.link-arrow { font-weight: 700; font-size: 14.5px; color: var(--navy-deep); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { color: var(--yellow-deep); gap: 9px; }

/* ---------- Cards / chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--slate); }
.chip svg { color: var(--green); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Auth / form pages ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 64px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-aside::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,24,.22), transparent 70%); }
.auth-aside h2 { font-size: 32px; margin-bottom: 18px; position: relative; }
.auth-aside p { color: #b9c8dd; max-width: 380px; position: relative; }
.auth-aside ul { list-style: none; margin-top: 30px; position: relative; }
.auth-aside li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; color: #d6e1ee; }
.auth-aside li svg { color: var(--yellow); flex-shrink: 0; margin-top: 3px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; color: var(--navy-deep); margin-bottom: 8px; }
.auth-card .sub { color: var(--slate); margin-bottom: 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-deep); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px;
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--paper); color: var(--ink); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 12.5px; color: var(--slate-light); margin-top: 5px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--slate); margin-bottom: 16px; }
.field-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--slate); }
.auth-foot a { color: var(--navy-deep); font-weight: 700; }
.auth-foot a:hover { color: var(--yellow-deep); }
.form-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; display: none; }
.form-error.show { display: block; }
.form-ok { background: var(--green-soft); color: #15723f; border: 1px solid #bfe6cf; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }

/* role choose */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 6px; }
.role-pick { border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 18px; cursor: pointer; transition: .18s; background: var(--paper); text-align: left; }
.role-pick:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow); }
.role-pick .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.role-pick h3 { font-size: 17px; color: var(--navy-deep); margin-bottom: 5px; }
.role-pick p { font-size: 13.5px; color: var(--slate); line-height: 1.5; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,24,.18), transparent 70%); }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); position: relative; }
.page-hero p { color: #b9c8dd; font-size: 17px; max-width: 560px; margin-top: 14px; position: relative; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--navy-deep); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 999; opacity: 0; transition: .35s cubic-bezier(.16,.84,.44,1); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open a { padding: 11px 0; width: 100%; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
