:root {
  --purple: #461350;
  --blue: #0068ff;
  --green: #a6e33f;
  --text: #1e1a22;
  --muted: #6e6474;
  --background: #f6f3f8;
  --card: #ffffff;
  --border: #e8deed;
  --danger: #a72c2c;
  --success: #156d42;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Poppins, Verdana, Geneva, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f1e6f8, transparent 30%), var(--background);
}

a { color: var(--blue); }

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px;
}

.page { display: none; }
.page.active { display: block; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 30px;
}

.mockup {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(70, 19, 80, 0.14);
  background: #fff;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.82rem;
}

h1, h2 {
  color: var(--purple);
  line-height: 1.1;
  margin: 0 0 14px;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2.2rem); margin-top: 22px; }

p { color: var(--muted); line-height: 1.65; }
.lead { font-size: 1.25rem; color: #3d3342; }
.subtext, .privacy { font-size: 0.95rem; }

.page-landing .hero-grid h1 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

.cta-large {
  padding: 24px 52px;
  font-size: 1.5rem;
}

/* Wizard progress stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 26px;
}
.stepper .st { flex: 1; text-align: center; position: relative; }
.stepper .st::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}
.stepper .st:first-child::before { display: none; }
.stepper .st.done::before, .stepper .st.cur::before { background: var(--blue); }
.stepper .dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.stepper .done .dot { background: var(--blue); color: #fff; }
.stepper .cur .dot { background: var(--purple); color: #fff; box-shadow: 0 0 0 5px rgba(70, 19, 80, 0.15); }
.stepper .lbl { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.stepper .cur .lbl { color: var(--purple); font-weight: 700; }

@media (max-width: 640px) {
  .stepper .lbl { display: none; }
  .stepper .cur .lbl { display: block; }
}

.site-footer {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 18px 24px 30px;
  text-align: center;
  color: #6b6b7a;
}
.site-footer .privacy { margin: 0; }

/* Honeypot: visually removed, still present for bots that fill every field. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(70, 19, 80, 0.08);
  margin-bottom: 28px;
}

.intro-card { max-width: 900px; margin-inline: auto; }
.split-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.steps-list {
  display: grid;
  gap: 12px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbf9fc;
  color: var(--purple);
  font-weight: 700;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.steps-list.compact { max-width: 680px; }

.check-list { padding-left: 0; list-style: none; }
.check-list li { margin: 10px 0; }
.check-list li::before { content: '✓'; color: var(--blue); font-weight: 800; margin-right: 10px; }

.progress {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 800;
}

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 18px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 104, 255, 0.15);
}

input[type='range'] { padding: 0; accent-color: var(--blue); }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.choice, .checkbox, .option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
  margin: 0;
}

.choice input[type='radio'], .checkbox input[type='checkbox'], .option-row input[type='checkbox'] {
  width: auto;
  margin-top: 4px;
  flex: none;
}

.choice.inline { display: inline-flex; margin-right: 12px; }
.choice-with-input, .with-input { align-items: center; flex-wrap: wrap; }
.choice-with-input input[type='text'], .with-input input[type='text'] { flex: 1 1 260px; }

button, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover, .button-secondary:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.button-secondary { background: var(--purple); white-space: nowrap; }

.sales-hint {
  font-weight: 800;
  color: var(--purple);
  background: #f3ecf7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: inline-block;
}

.message { min-height: 24px; font-weight: 800; }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.hidden { display: none !important; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.meta-grid div {
  padding: 16px;
  border-radius: 16px;
  background: #f8f5fa;
  border: 1px solid var(--border);
}
.meta-grid span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.meta-grid strong { color: var(--purple); overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
.questions-table { width: 100%; border-collapse: collapse; background: #fff; }
.questions-table th, .questions-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.questions-table th { color: var(--purple); background: #fbf9fc; }
.questions-table td:first-child { font-weight: 700; color: var(--blue); }
.questions-table td:last-child { color: var(--muted); }
.costs-table td:first-child { color: var(--text); }

.decision-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.nested-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbf9fc;
}

.price-preview {
  margin: 20px 0;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff, #fff);
  border: 1px solid #dbeafe;
  color: var(--purple);
  font-size: 1.35rem;
  font-weight: 800;
}

.options-list {
  display: grid;
  gap: 12px;
}
.option-row { position: relative; align-items: center; }
.option-row input:disabled + span { color: var(--muted); }
.info-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  background: var(--purple);
  font-size: 0.85rem;
  flex: none;
}
.info-text {
  display: none;
  position: absolute;
  left: 48px;
  right: 16px;
  top: calc(100% - 4px);
  z-index: 2;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(70, 19, 80, 0.14);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.info-button:hover + .info-text,
.info-button:focus + .info-text { display: block; }

/* Ja/nee choice rendered as buttons; the radio inputs stay for accessibility. */
.yesno-buttons {
  display: flex;
  gap: 12px;
  margin: 14px 0 6px;
}
.yesno-button {
  display: inline-flex;
  margin: 0;
}
.yesno-button input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.yesno-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 14px 34px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--purple);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.yesno-button span:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.yesno-button input:focus-visible + span {
  outline: 3px solid rgba(0, 104, 255, 0.35);
  outline-offset: 2px;
}
.yesno-button input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 104, 255, 0.25);
}

.investment-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fbf9fc;
}
.investment-box p { color: var(--text); margin: 8px 0; }
.investment-box strong { color: var(--purple); }

@media (max-width: 860px) {
  .hero-grid, .choice-grid, .grid.three, .meta-grid { grid-template-columns: 1fr; }
  .split-card { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; }
  .app-shell { padding: 28px 14px; }
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.back-button {
  background: #ffffff;
  color: var(--purple);
  border: 1px solid var(--border);
  box-shadow: none;
}

.back-button:hover {
  background: #fbf9fc;
}

/* Target group choices rendered as buttons; the radio inputs stay for
   accessibility. A concrete choice advances immediately (see app.js). */
.target-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 22px 0;
}

.target-choice-list .choice {
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 16px 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(70, 19, 80, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.target-choice-list .choice:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 104, 255, 0.08);
}

.target-choice-list .choice input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.target-choice-list .choice:has(input[type='radio']:focus-visible) {
  outline: 3px solid rgba(0, 104, 255, 0.35);
  outline-offset: 2px;
}

.target-choice-list .choice:has(input[type='radio']:checked) {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 104, 255, 0.25);
}

.target-choice-list .choice:has(input[type='radio']:checked) span {
  color: #fff;
}

.target-choice-list .choice span {
  font-weight: 800;
  color: var(--purple);
}

.target-choice-list .choice-with-input {
  grid-column: 1 / -1;
  justify-content: flex-start;
  border-radius: 24px;
}

.target-choice-list .choice-with-input:has(input[type='radio']:checked) {
  background: #eef5ff;
  box-shadow: 0 10px 28px rgba(70, 19, 80, 0.05);
}

.target-choice-list .choice-with-input:has(input[type='radio']:checked) span {
  color: var(--purple);
}

.target-choice-list .choice-with-input input[type='text'] {
  margin-top: 8px;
}

#websiteUrl {
  font-weight: 700;
}
