:root {
  --bg: #f7f4ee;
  --ink: #18201d;
  --muted: #65726c;
  --line: #dcd6ca;
  --panel: #fffdf8;
  --accent: #176b61;
  --danger: #aa3030;
  --shadow: 0 18px 50px rgba(32, 39, 35, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.shell, .verify {
  min-height: 100vh;
  padding: 28px;
}

.narrow { display: grid; place-items: center; }

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 1180px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  font-weight: 800;
}

.mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: grid;
  height: 36px;
  place-items: center;
  width: 36px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 132px);
}

.visual {
  background:
    linear-gradient(135deg, rgba(23, 107, 97, .88), rgba(24, 32, 29, .9)),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.72), transparent 12rem),
    radial-gradient(circle at 70% 55%, rgba(196,106,58,.55), transparent 14rem),
    #d9d1c4;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.kicker {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: .95; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
p { color: var(--muted); line-height: 1.65; }
.lede { font-size: 1.15rem; max-width: 620px; }

.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 760px;
  padding: 28px;
}

.panel.wide { max-width: 1180px; }
.card { padding: 20px; }

.cards, .split {
  display: grid;
  gap: 18px;
  margin: 24px auto;
  max-width: 1180px;
}

.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }

.actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 800; }
input, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
}
textarea { min-height: 100px; resize: vertical; }
.copy { min-width: 280px; }

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

.status {
  background: #e9efe8;
  border-radius: 999px;
  color: #25483c;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  padding: 6px 10px;
}
.status.voltooid { background: #dcf0e5; color: #1d6241; }
.status.geweigerd { background: #f4dfdc; color: #7f2828; }

.verify {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}
.verify-panel { max-width: 900px; width: 100%; }
.privacy { margin: 0 auto; max-width: 900px; width: 100%; }

.step {
  align-items: flex-start;
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
}

.camera {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.camera video, .camera img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}
.camera .front { transform: scaleX(-1); }

.photos {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.photos img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}
figure { margin: 0; }
figcaption { color: var(--muted); margin-top: 6px; }

.processing {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247,244,238,.78);
  display: grid;
  gap: 14px;
  inset: 0;
  justify-items: center;
  position: fixed;
  z-index: 20;
}
.hidden { display: none; }
.spinner {
  animation: spin .8s linear infinite;
  border: 4px solid rgba(24,32,29,.16);
  border-top-color: var(--accent);
  border-radius: 999px;
  height: 54px;
  width: 54px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.notice, .error {
  border-radius: 8px;
  margin: 16px 0;
  padding: 14px;
}
.notice { background: #fff3d7; border: 1px solid #e1be62; }
.notice.danger, .error { background: #f8dfdc; border: 1px solid #e0aaa4; color: #7f2828; }

.audit {
  border-left: 2px solid var(--line);
  display: grid;
  gap: 16px;
  padding-left: 18px;
}
pre {
  background: #f1ece3;
  border-radius: 8px;
  overflow: auto;
  padding: 12px;
}

@media (max-width: 820px) {
  .shell, .verify { padding: 18px; }
  .hero, .cards, .split { grid-template-columns: 1fr; }
  .visual { min-height: 240px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
}
