/* ============================================================
   Easyboeken — DARK terminal-stijl (gedeeld systeem)
   Gebaseerd op het goedgekeurde index.html-ontwerp.
   Fonts: Space Grotesk (sans) + JetBrains Mono (mono)
   ============================================================ */

:root {
  --bg: #070a08;
  --panel: #0c120e;
  --panel2: #101812;
  --line: rgba(156, 203, 178, 0.13);
  --line-strong: rgba(156, 203, 178, 0.26);
  --ink: #e8eff5;
  --muted: #8b9dad;
  --lime: #2f8f63;
  --lime-soft: rgba(47, 143, 99, 0.12);
  --lime-line: rgba(47, 143, 99, 0.4);
  --amber: #f5b453;
  --amber-soft: rgba(245, 180, 83, 0.12);
  --amber-line: rgba(245, 180, 83, 0.4);
  --sans: "Space Grotesk", -apple-system, sans-serif;
  --mono: "JetBrains Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(156, 203, 178, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 203, 178, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}
::selection { background: var(--lime); color: #eef6f0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }

/* ============ NAV (marketing) ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 8, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav-logo { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.nav-logo i { font-style: normal; color: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: lowercase;
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--lime); background: var(--lime-soft); }
.nav-links a.on { color: var(--lime); background: var(--lime-soft); }
.nav-links a.cta { background: var(--lime); color: #eef6f0; font-weight: 700; margin-left: 10px; }
.nav-links a.cta:hover { background: #37a674; color: #eef6f0; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--mono); font-size: 11px; padding: 9px 16px; cursor: pointer; border-radius: 4px; }
.mnav { display: none; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 49; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 17px 28px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 15px; }
.mnav a:hover { color: var(--lime); }

/* ============ APP BAR (account / admin) ============ */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 8, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar-inner { display: flex; align-items: stretch; justify-content: space-between; height: 64px; }
.appbar .nav-logo { align-self: center; }
.appbar-right { display: flex; align-items: stretch; }
.ab-link {
  display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-left: 1px solid var(--line); color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: lowercase;
  background: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.ab-link:hover { color: var(--lime); background: var(--lime-soft); }
.ab-link.on { color: var(--lime); background: var(--lime-soft); box-shadow: inset 0 -2px 0 var(--lime); }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-left: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.user-chip .ava {
  width: 30px; height: 30px; border-radius: 6px; background: var(--lime); color: #eef6f0;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; flex-shrink: 0;
}

/* ============ KNOPPEN ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: lowercase;
  text-decoration: none; cursor: pointer; border-radius: 6px;
  padding: 15px 26px; background: var(--lime); color: #eef6f0; border: 1px solid var(--lime);
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #37a674; border-color: #37a674; box-shadow: 0 0 34px rgba(47, 143, 99, 0.3); transform: translateY(-1px); }
.btn.ghost, .btn.white { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover, .btn.white:hover { border-color: var(--lime); color: var(--lime); box-shadow: none; background: var(--lime-soft); }
.btn.dark { background: var(--lime); color: #eef6f0; border-color: var(--lime); }
.btn.sm { padding: 10px 16px; font-size: 12px; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* ============ KICKER / SLAB / HERO ============ */
.kicker, .slab {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--lime); margin-bottom: 24px; text-transform: lowercase; letter-spacing: 0;
  background: none; border: none; padding: 0;
}
.kicker::before, .slab::before { content: "// "; color: var(--muted); }

.phero { padding: 76px 0 48px; position: relative; }
.phero::before {
  content: ""; position: absolute; top: -260px; right: -140px; width: 780px; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 143, 99, 0.06), transparent 70%);
}
.phero h1 {
  font-family: var(--sans); font-weight: 700; text-transform: none;
  font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.035em;
}
.phero .sub { font-size: 18px; color: var(--muted); margin-top: 24px; max-width: 36em; }
.phero .sub b { color: var(--ink); font-weight: 600; }
.phero.center { text-align: center; }
.phero.center h1 { margin: 0 auto; max-width: 16ch; }
.phero.center .sub { margin-left: auto; margin-right: auto; }
.hl { color: var(--lime); background: none; border: none; box-shadow: none; padding: 0; transform: none; display: inline; margin: 0; }
.u { box-shadow: inset 0 -0.22em 0 rgba(47, 143, 99, 0.28); }

/* ============ PANEEL (generieke kaart) ============ */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.p-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: lowercase;
}
.p-head b, .p-head .st { color: var(--lime); font-weight: 700; }

/* ============ TAGS ============ */
.tag {
  display: inline-block; border: 1px solid var(--lime-line); background: var(--lime-soft); color: var(--lime);
  padding: 2px 9px; border-radius: 4px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: lowercase; white-space: nowrap;
}
.tag.dark { background: var(--lime); color: #eef6f0; border-color: var(--lime); }
.tag.plain { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.tag.violet, .tag.pink { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--lime);
  background: var(--lime-soft); border: 1px solid var(--lime-line); border-radius: 4px; padding: 3px 8px; font-weight: 700;
}

/* ============ PROGRESS ============ */
.track2 { height: 8px; border: 1px solid var(--line-strong); background: rgba(156, 203, 178, 0.08); position: relative; overflow: hidden; border-radius: 4px; }
.track2 .fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--lime); border-radius: 3px; transition: width 0.35s ease; box-shadow: 0 0 12px rgba(47, 143, 99, 0.4); }

/* ============ FORMULIEREN ============ */
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { display: grid; gap: 8px; align-content: start; }
.f-field.full { grid-column: 1 / -1; }
.f-field > label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: lowercase; letter-spacing: 0.04em; color: var(--muted);
}
.f-field > label .opt { color: var(--muted); opacity: 0.65; text-transform: none; letter-spacing: 0; font-weight: 400; }
.f-input, .f-select, .f-textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--panel2); color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  padding: 12px 14px; border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.f-input::placeholder, .f-textarea::placeholder { color: rgba(139, 157, 173, 0.55); }
.f-input:focus, .f-select:focus, .f-textarea:focus {
  outline: none; border-color: var(--lime-line); box-shadow: 0 0 0 3px rgba(47, 143, 99, 0.12);
}
.f-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><path d='M1 1l5 5 5-5' fill='none' stroke='%238b9dad' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.f-select option { background: var(--panel2); color: var(--ink); }
.f-textarea { min-height: 120px; resize: vertical; }
.f-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.f-check input {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel2); flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; margin-top: 2px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.f-check input:checked { background: var(--lime); border-color: var(--lime); }
.f-check input:checked::after { content: "✓"; font-weight: 900; font-size: 12px; color: #eef6f0; }
.f-check a { color: var(--lime); }

/* ============ FOOTER ============ */
footer { background: #05070a; border-top: 1px solid var(--line); padding: 68px 0 0; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.foot-logo { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--ink); }
.foot-logo i { font-style: normal; color: var(--lime); }
.foot-brand p { font-family: var(--mono); font-size: 12.5px; color: var(--muted); max-width: 26em; margin-top: 14px; line-height: 1.7; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: grid; gap: 11px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.15s ease; }
.foot-col a:hover { color: var(--lime); }
.foot-mega {
  font-family: var(--mono); font-weight: 700; text-align: center; text-transform: lowercase;
  font-size: clamp(52px, 10.5vw, 170px); line-height: 0.9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(47, 143, 99, 0.3);
  user-select: none; transform: translateY(0.12em);
}
.foot-bottom {
  border-top: 1px solid var(--line); padding: 18px 0 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--lime); }
.foot-id { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.6; }
.foot-id b { color: var(--ink); font-weight: 500; }
.foot-id a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.foot-id a:hover { color: var(--lime); }

/* ============ REVEAL ============ */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .nav-logo i { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .f-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
