:root {
  --bg: #040427;
  --bg-2: #09094a;
  --card: rgba(0, 30, 140, 0.92);
  --card-border: rgba(89, 108, 255, 0.35);
  --primary: #0000dc;
  --primary-soft: #4e5aff;
  --text: #eef1ff;
  --muted: #bcc2f0;
  --danger: #d94456;
  --green: #2dd19b;
  --amber: #f7b84a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: #E3E9F1;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.background-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 90%);
  opacity: 0.5;
}

.app-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.hero {
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: 0;
  padding: 48px 64px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.card {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 0;
  padding: 40px 56px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Gate and lead form are short — center them vertically */
#gateSection,
#leadSection {
  justify-content: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.2;
}

.hero-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 24px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badges span {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── Card ── */
.card {
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: 0;
  padding: 36px 40px;
}

@media (max-width: 560px) {
  .hero, .card { padding: 28px 20px; min-height: unset; }
}

.hidden { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--primary-soft);
  color: #fff;
  border-color: var(--primary-soft);
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(255,255,255,0.15);
}

.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-ghost:disabled { opacity: 0.35; cursor: not-allowed; }

#startBtn { min-width: 220px; padding: 15px 32px; font-size: 1rem; }
@media (max-width: 600px) { #startBtn { width: 100%; } }

.btn-danger {
  background: rgba(217,68,86,0.18);
  color: #ffc0c8;
  border-color: rgba(217,68,86,0.4);
}

/* ── Progress ── */
.progress-wrap { margin-bottom: 28px; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--muted);
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-soft), #8a5aff);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ── Vraag ── */
.question-head { margin-bottom: 24px; }

.pillar {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin: 0 0 10px;
}

.question-head h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.4;
}

.answer-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.answer-option {
  text-align: left;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.45;
}

.answer-option:hover { background: rgba(78,90,255,0.14); border-color: var(--primary-soft); }
.answer-option[aria-checked="true"] { background: rgba(78,90,255,0.22); border-color: var(--primary-soft); }

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ── Gate ── */
#gateSection {
  align-items: center;
}

#gateSection > * {
  width: 100%;
  max-width: 560px;
}

.preview-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
}

.preview-list li {
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-size: 0.95rem;
  color: var(--muted);
}

.preview-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

#toFormBtn {
  width: 100%;
  max-width: 560px;
  padding: 15px 32px;
  font-size: 1rem;
}

/* ── Lead form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

input, select, textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}

input:focus, select:focus { border-color: var(--primary-soft); }

select option { background: #09094a; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
  cursor: pointer;
}

.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary-soft);
}

.form-error {
  color: #ffc0c8;
  font-size: 0.85rem;
  background: rgba(217,68,86,0.12);
  border: 1px solid rgba(217,68,86,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ── Resultaat ── */
.result-header {
  margin-bottom: 28px;
}

.level-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.level-starter  { background: rgba(240,82,82,0.2);    color: #ffd7d7; }
.level-growing  { background: rgba(247,184,74,0.24);   color: #ffe9b8; }
.level-advanced { background: rgba(45,209,155,0.22);   color: #d4fff0; }
.level-leading  { background: rgba(138,90,255,0.26);   color: #e4d6ff; }

.result-summary {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.model-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.6;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* ── Maturity Staircase ── */
.maturity-staircase {
  margin: 28px 0 0;
}

.staircase-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.staircase-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 44px;
}

.stair-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stair-bar-wrap {
  position: relative;
  width: 100%;
}

.stair-you-arrow {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: rgba(78, 90, 255, 0.95);
  border-radius: 999px;
  padding: 4px 12px;
  pointer-events: none;
  z-index: 2;
}

.stair-step-arrow {
  position: absolute;
  top: 8px;
  right: -14px;
  width: 22px;
  height: 22px;
  background: rgba(210, 60, 40, 0.9);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.stair-bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 5px 8px;
  gap: 2px;
  transition: box-shadow 0.3s ease;
}

.stair-past .stair-bar {
  opacity: 0.45;
}

.stair-num {
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.stair-name {
  font-size: 0.58rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 2px;
  flex-shrink: 0;
}

.stair-dims {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stair-dim {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 4px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
}

.dim-lbl {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.dim-val {
  font-size: 0.55rem;
  line-height: 1.3;
  opacity: 0.9;
}

.stair-footer-label {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ── Reflecties ── */
.reflections-wrap,
.strengths-wrap {
  margin: 28px 0;
}

.reflections-wrap h3,
.strengths-wrap h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.reflections-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.reflections-list li {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--primary-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.strengths-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.strengths-list li {
  font-size: 0.9rem;
  color: var(--green);
  padding-left: 0;
}

.strengths-list li::before {
  content: "✓ ";
  font-weight: 700;
}

/* ── CTA ── */
.result-cta-wrap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.cta-intro {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

/* ── Admin ── */
.admin-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.85rem;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.muted { color: var(--muted); font-size: 0.9rem; }
code { font-size: 0.85em; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; }

/* ── Hero two-column grid ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
}

/* ── Hero tiles (optie 2) ── */
.hero-tiles {
  display: flex;
  gap: 10px;
  margin: 22px 0 28px;
  flex-wrap: wrap;
}

.hero-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  flex: 1;
  min-width: 80px;
}

.hero-tile svg { flex-shrink: 0; stroke: var(--primary-soft); }
.hero-tile strong { display: block; font-size: 0.88rem; color: var(--text); line-height: 1.2; }
.hero-tile span { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

/* ── Pillar chips (optie 1) ── */
.pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(78,90,255,0.1);
  border: 1px solid rgba(78,90,255,0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.pillar-chip svg { stroke: var(--primary-soft); flex-shrink: 0; }

/* ── Preview card (optie 6) ── */
.preview-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
  user-select: none;
}

.preview-caption {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}

.preview-level-pill {
  display: inline-block;
  background: rgba(45,209,155,0.22);
  color: #d4fff0;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
  filter: blur(4px);
}

.preview-score {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 4px 0 14px;
  color: var(--text);
  filter: blur(6px);
  pointer-events: none;
}

.preview-score span { font-size: 1.2rem; opacity: 0.7; }

.preview-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  filter: blur(2.5px);
}

.preview-bar-row { display: flex; align-items: center; gap: 10px; }
.preview-bar-row > span { font-size: 0.68rem; color: var(--muted); width: 82px; flex-shrink: 0; }

.preview-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.preview-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-soft), #8a5aff);
  border-radius: 999px;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(4,4,39,0.25), rgba(4,4,39,0.82));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.preview-overlay svg { stroke: #fff; }

/* ── Question dots (optie 4) ── */
.question-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-bottom: 18px;
}

.qdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  flex-shrink: 0;
}

.qdot-done { background: var(--primary-soft); border-color: var(--primary-soft); }

.qdot-current {
  background: transparent;
  border-color: var(--primary-soft);
  box-shadow: 0 0 7px rgba(78,90,255,0.7);
  transform: scale(1.4);
}

/* ── Answer labels A/B/C/D (optie 3) ── */
.answer-option { display: flex; align-items: flex-start; gap: 12px; }

.answer-label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 1px;
}

.answer-option[aria-checked="true"] .answer-label {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: #fff;
}

.answer-text { flex: 1; line-height: 1.45; }

/* ── Preview card v2 ── */
.preview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preview-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.73rem;
  font-weight: 700;
}

.pill-advanced { background: rgba(45,209,155,0.22); color: #d4fff0; }
.pill-mid      { background: rgba(78,90,255,0.22);  color: #d0d8ff; }
.pill-starter  { background: rgba(180,90,255,0.22); color: #e8d0ff; }

.preview-big-num {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  filter: blur(6px);
  pointer-events: none;
  line-height: 1;
}

.preview-big-num sup { font-size: 1rem; opacity: 0.7; }

.preview-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0 12px;
}

/* Override old preview-bar-row span rule for new layout */
.preview-bars { filter: none; }

.preview-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.pb-label {
  font-size: 0.66rem;
  color: var(--muted);
  width: 76px;
  flex-shrink: 0;
}

.pb-pct {
  font-size: 0.66rem;
  color: var(--muted);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
  filter: blur(3px);
}

.pf-high { background: linear-gradient(90deg, #2dd19b, #4e5aff); }
.pf-mid  { background: linear-gradient(90deg, #4e5aff, #8a5aff); }
.pf-low  { background: linear-gradient(90deg, #f05252, #f7b84a); }
