/* NinjaWebsite — één stylesheet, geen framework.
   Kleuren en maatvoering volgen de Ninja-apps: donker, rustig, mono-accenten. */

:root {
  --bg: #0e0f11;
  --bg-soft: #121316;
  --panel: #16171a;
  --panel-2: #1d1f23;
  --border: #2a2c32;
  --border-soft: #212329;
  --text: #e7e8ea;
  --muted: #9a9da3;
  --faint: #6b6e76;
  --accent: #2dd4bf;
  --accent-dim: #155e59;
  --accent-soft: rgba(45, 212, 191, .10);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.28);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f8; --bg-soft: #eef0f2; --panel: #ffffff; --panel-2: #f2f3f5;
    --border: #dfe2e6; --border-soft: #e8eaee;
    --text: #16181c; --muted: #575c65; --faint: #868b94;
    --accent: #0d9488; --accent-dim: #99f6e4; --accent-soft: rgba(13, 148, 136, .08);
    --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 460px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 60px; }
.brand {
  font-weight: 650; font-size: 16.5px; letter-spacing: -.02em; color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--accent); }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; font-size: 14.5px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a.active { color: var(--text); text-decoration: none; }
.site-nav .btn { padding: 6px 14px; font-size: 14px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 14.5px;
  font-weight: 550; cursor: pointer; transition: background .14s, border-color .14s, opacity .14s;
}
.btn:hover { background: var(--panel); border-color: var(--faint); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #04211e;
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 54px; border-bottom: 1px solid var(--border-soft); }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 52px); margin: 14px 0 14px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero .btn-row { margin-bottom: 14px; }
.hero .note { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ---------- secties ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border-soft); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 24px; margin: 8px 0 8px; }
.section-head p { color: var(--muted); max-width: 66ch; margin: 0; }

/* ---------- app-kaarten ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.card-head { display: flex; align-items: center; gap: 12px; }
.appmark {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: -.02em;
}
.card-head .t { font-weight: 600; font-size: 16px; }
.card-head .s { font-size: 12.5px; color: var(--faint); font-family: var(--mono); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card .meta {
  display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono);
  font-size: 12px; color: var(--faint); border-top: 1px solid var(--border-soft); padding-top: 12px;
}
.card .meta b { color: var(--muted); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.pill.accent { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-soft); }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

/* ---------- kenmerken ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature .g {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--accent-dim); background: var(--accent-soft);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; margin-bottom: 12px;
}
.feature h3 { font-size: 15.5px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- formulieren ---------- */
.auth-page { padding: 56px 0 80px; }
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 30px 28px; box-shadow: var(--shadow);
}
.panel h1 { font-size: 23px; margin: 0 0 6px; }
.panel .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font: inherit; font-size: 15px;
}
.field input:focus { border-color: var(--accent); outline: none; }
.field .hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.field .hint.bad { color: var(--bad); }
.field .hint.ok { color: var(--ok); }
.field.code input { font-family: var(--mono); font-size: 22px; letter-spacing: .34em; text-align: center; }

/* honeypot: onzichtbaar voor mensen, aanwezig voor formulierinvullers */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meter { height: 4px; border-radius: 2px; background: var(--panel-2); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.meter.ok i { background: var(--ok); }
.meter.mid i { background: var(--warn); }

.msg {
  border-radius: 9px; padding: 11px 13px; font-size: 14px; margin-bottom: 16px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--muted);
}
.msg.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.msg.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.msg.busy { color: var(--muted); }
.msg[hidden] { display: none; }

.alt { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.form-foot { margin-top: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }

/* ---------- account ---------- */
.acct-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.acct-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-head .who { font-size: 22px; font-weight: 620; }
.acct-head .sub { color: var(--faint); font-family: var(--mono); font-size: 13px; }
.panel h2 { font-size: 16px; margin: 0 0 4px; }
.panel .panel-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin-bottom: 18px; }
.kv dt { color: var(--faint); font-family: var(--mono); font-size: 12.5px; }
.kv dd { margin: 0; }
.codes { font-family: var(--mono); font-size: 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 9px; padding: 14px; columns: 2; column-gap: 20px; margin: 14px 0; }

/* ---------- tabel / lijst ---------- */
.list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.list .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; }
.list .row + .row { border-top: 1px solid var(--border-soft); }
.list .row .sub { color: var(--faint); font-family: var(--mono); font-size: 12px; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border-soft); margin-top: 40px; padding: 34px 0 50px;
  color: var(--faint); font-size: 13.5px;
}
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--muted); }
.site-foot .spacer { margin-left: auto; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 72ch; padding: 46px 0 60px; }
.prose h1 { font-size: 28px; margin: 0 0 10px; }
.prose h2 { font-size: 17px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

@media (max-width: 620px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  .hero { padding: 52px 0 40px; }
  .codes { columns: 1; }
}
