 @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --navy:        #243380;
  --navy-mid:    #1A1F6B;
  --navy-light:  #252B7A;
  --green:       #1D9E75;
  --green-dim:   rgba(29,158,117,0.12);
  --green-line:  rgba(29,158,117,0.35);
  --gold:        #C8A96E;
  --gold-dim:    rgba(200,169,110,0.12);
  --cream:       #F8F6F1;
  --warm-white:  #FDFCFA;
  --ink:         #1A1A1A;
  --ink-60:      rgba(26,26,26,0.6);
  --ink-30:      rgba(26,26,26,0.3);
  --ink-10:      rgba(26,26,26,0.07);
  --white:       #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Outfit', system-ui, sans-serif;

  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(1.875rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 3vw, 2.125rem);
  --fs-h4: clamp(1.125rem, 2vw, 1.5rem);
  --fs-p: clamp(0.9375rem, 1.2rem + 0.35vw, 1.0925rem);
  --fs-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  --fs-sm: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-md: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
  --fs-lg: clamp(0.875rem, 0.84rem + 0.25vw, 0.9375rem);
  --fs-xl: clamp(0.9375rem, 0.9rem + 0.3vw, 1rem);
  --fs-xxl: clamp(1rem, 0.96rem + 0.35vw, 1.0625rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Semantic mappings voor bestaande code */
  --navy-light-compat: var(--navy-light);
  --gold-light: color-mix(in srgb, var(--gold) 80%, white);
  --light:      var(--ink-10);
  --text:       var(--ink);
  --muted:      var(--ink-60);
  --orange:     #C87A2E;
  --red:        #B84040;
}

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

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* INTRO */
#intro {
  min-height: 55vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#intro::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
}

#intro::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%);
	pointer-events: none;
}

.intro-badge {
  font-size: var(--fs-xs);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
  font-family: var(--font-ui);
  background: var(--gold-dim);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(200,169,110,0.4);
}

#intro h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 500;
}

#intro h2 span { color: var(--gold); }

#intro p {
  font-size: var(--fs-p);
  color: rgba(253,252,250,0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

#intro h4 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;  font-size: var(--fs-p);
  color: rgba(253,252,250,0.65); font-weight: 500; margin-bottom: 1rem; }
#intro ul { list-style: none;padding: 0.7rem 0; }
#intro ul li {
  font-size: var(--fs-lg); color: rgba(253,252,250,0.65);; padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink-10); font-weight: 300;
  display: flex; align-items: center; gap: 8px;
}
#intro ul li:last-child { border-bottom: none; }
#intro ul li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.themes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  max-width: 560px;
}

.theme-pill {
  background: var(--warm-white);
  border: none;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: var(--fs-sm);
  letter-spacing: 0.3px;
  font-weight: 600;
  font-family: var(--font-ui);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 18px 48px;
  font-family: var(--font-ui);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--gold) 85%, white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.3);
}

/* SCAN */
#scan { display: none; padding: 40px 24px 80px; max-width: 760px; margin: 0 auto; }

.progress-bar-wrap {
  position: sticky;
  top: 0;
  background: var(--cream);
  padding: 16px 0 20px;
  z-index: 10;
  border-bottom: 1px solid var(--ink-10);
  margin-bottom: 40px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-60);
  font-family: var(--font-ui);
}

.progress-count {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--navy);
  font-weight: 600;
}

.progress-track {
  height: 3px;
  background: var(--ink-10);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
  width: 0%;
}

.theme-section {
  margin-bottom: 56px;
  animation: fadeUp 0.4s var(--ease-out) forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.theme-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  font-family: var(--font-ui);
}

.theme-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--navy);
  font-weight: 500;
}

.question-block {
  margin-bottom: 28px;
  background: var(--warm-white);
  padding: 24px;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(26,26,26,0.05);
  border-left: 3px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}

.question-block.answered { border-left-color: var(--gold); }

.question-text {
  font-size: var(--fs-p);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
  font-family: var(--font-ui);
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.option-btn {
  padding: 10px 12px;
  border: 1.5px solid var(--ink-10);
  background: var(--white);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}

.option-btn:hover { border-color: var(--gold); background: var(--gold-dim); }

.option-btn.selected-green { background: var(--green-dim); border-color: var(--green-line); color: var(--green); font-weight: 600; }
.option-btn.selected-orange { background: rgba(200,122,46,0.1); border-color: rgba(200,122,46,0.4); color: var(--orange); font-weight: 600; }
.option-btn.selected-red { background: rgba(184,64,64,0.08); border-color: rgba(184,64,64,0.3); color: var(--red); font-weight: 600; }

.scan-footer {
  text-align: center;
  margin-top: 40px;
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px 48px;
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s var(--ease-out);
}

.btn-secondary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* RAPPORT */
#rapport { display: none; padding: 40px 24px 80px; max-width: 760px; margin: 0 auto; }

.rapport-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 40px;
  border-radius: 2px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.rapport-header::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
}

.rapport-badge {
  font-size: var(--fs-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: var(--font-ui);
}

.rapport-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--white) !important;
}

.rapport-header p {
  font-size: var(--fs-md);
  opacity: 0.65;
  font-weight: 300;
}

.total-score {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(253,252,250,0.15);
}

.score-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-num {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--gold);
}

.score-label {
  font-size: var(--fs-sm);
  opacity: 0.7;
  font-weight: 300;
  line-height: 1.5;
}

.score-label strong { color: var(--white); font-weight: 600; display: block; font-size: var(--fs-xl); }

.theme-result {
  background: var(--warm-white);
  border-radius: 2px;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(26,26,26,0.05);
}

.theme-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.theme-result-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--navy);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.badge-green { background: var(--green-dim); color: var(--green); }
.badge-orange { background: rgba(200,122,46,0.1); color: var(--orange); }
.badge-red { background: rgba(184,64,64,0.08); color: var(--red); }

.score-bar-wrap { margin-bottom: 16px; }
.score-bar-track { height: 4px; background: var(--ink-10); border-radius: 2px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; transition: width 1s var(--ease-out); }
.fill-green { background: var(--green); }
.fill-orange { background: var(--orange); }
.fill-red { background: var(--red); }

.theme-advice {
  font-size: var(--fs-md);
  color: var(--ink-60);
  line-height: 1.7;
  font-weight: 300;
}

.cta-box {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: 2px;
  text-align: center;
  margin-top: 40px;
}

.cta-box h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: 12px;
  font-weight: 500;
}

.cta-box p {
  font-size: var(--fs-md);
  opacity: 0.65;
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.6;
}

.cta-box .btn-primary {
  font-size: var(--fs-sm);
  max-width: 320px;
  width: 100%;
  text-align: center;
  padding: 16px 24px;
}

/* FORMULIER */
#formulier {
  display: none;
  min-height: 100vh;
  background: var(--navy);
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  flex-direction: column;
  text-align: center;
}

.form-box {
  background: var(--warm-white);
  padding: 48px 40px;
  border-radius: 2px;
  max-width: 480px;
  width: 100%;
  text-align: left;
}

.form-label {
  font-size: var(--fs-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
  font-family: var(--font-ui);
}

.form-box h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.2;
}

.form-box p {
  font-size: var(--fs-md);
  color: var(--ink-60);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.6;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
}

.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ink-10);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s var(--ease-out);
  outline: none;
}

.form-field input:focus { border-color: var(--gold); background: var(--white); }

.form-note {
  font-size: var(--fs-xs);
  color: var(--ink-60);
  margin-top: 12px;
  line-height: 1.5;
}

.btn-form {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 20px;
  transition: all 0.2s var(--ease-out);
}

.btn-form:hover { background: var(--navy-light); }

@media (max-width: 600px) {
  .options { grid-template-columns: 1fr; }
  .rapport-header { padding: 32px 24px; }
  .cta-box { padding: 28px 20px; }
}

@media print {
  #intro, #scan, #formulier, .progress-bar-wrap { display: none !important; }
  #rapport { display: block !important; }
  .cta-box { display: none !important; }
  body { background: white; }
}