/* ==========================================================================
   Master Your Business — funnel styles
   Tokens komen 1-op-1 uit BRANDING.md (geëxtraheerd van masteryourbusiness.org)
   ========================================================================== */

:root {
  /* Merk */
  --myb-blue:        #347EE0;
  --myb-blue-light:  #A8D1FF;
  --myb-blue-dark:   #004F9E;
  --myb-navy:        #16314D;
  --myb-gold:        #C2A57A;

  /* Grijs (donker -> licht) */
  --myb-grey-900: #1F2933;
  --myb-grey-850: #1B2733;
  --myb-grey-800: #323F4B;
  --myb-grey-700: #3E4C59;
  --myb-grey-600: #52606D;
  --myb-grey-500: #616E7C;
  --myb-grey-300: #9AA5B1;
  --myb-grey-200: #CBD2D9;
  --myb-grey-100: #EDF2F7;
  --myb-grey-50:  #F6F8FA;

  /* Feedback */
  --myb-success: #3F9142;
  --myb-error:   #BA2525;
  --myb-error-border: #911111;

  /* Typografie & layout */
  --myb-font: "Rubik", -apple-system, sans-serif;
  --myb-container: 1400px;
  --myb-space: 24px;
  --myb-section-y: 80px;
  --myb-radius-card: 15px;
  --myb-radius-input: 5px;
  --myb-radius-button: 100px;
  --myb-shadow-card: 0px 15px 40px rgba(50, 72, 92, 0.2);
  --myb-transition: 250ms;

  --myb-gradient-cta: linear-gradient(135deg, #000E1A 0%, #3FA6FF 100%);
}

/* ---- Basis ---- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 15px/1.75 var(--myb-font);
  color: var(--myb-grey-800);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--myb-container);
  margin: 0 auto;
  padding: 0 var(--myb-space);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section { padding: var(--myb-section-y) 0; }

/* ---- Typografie ---- */

h1, h2, h3 { margin: 0 0 var(--myb-space); line-height: 1.25; }

h1 { font-size: 48px; font-weight: 700; color: var(--myb-navy); }
h2 { font-size: 40px; font-weight: 700; color: var(--myb-navy); }
h3 { font-size: 22px; font-weight: 500; color: var(--myb-grey-800); }

.eyebrow {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--myb-blue);
  margin: 0 0 12px;
}

.lead {
  font-size: 17px;
  font-weight: 500;
  color: #2B3E52;
  margin: 0 0 var(--myb-space);
}

p { margin: 0 0 var(--myb-space); }

.section-dark { background-color: var(--myb-grey-850); color: #F2F6FA; }
.section-dark h2 { color: var(--myb-grey-50); }
.section-dark h3 { color: var(--myb-grey-100); }
.section-dark .lead { color: #F7F9FA; }
.section-shade { background-color: var(--myb-grey-50); }

/* ---- Navigatie ---- */

.nav {
  padding: 20px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--myb-grey-100);
}

.nav .container { display: flex; align-items: center; justify-content: center; }

.nav__logo { height: 44px; width: auto; }

/* ---- Hero & slotsectie (tekst + afbeelding) ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split__media img {
  border-radius: var(--myb-radius-card);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero { padding: 56px 0 var(--myb-section-y); }

.hero .split { align-items: center; }

.hero .split__media img { aspect-ratio: 1 / 1; }

/* ---- Checklijst ---- */

.checklist-intro {
  font-size: 18px;
  margin-bottom: 12px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--myb-space);
}

.checklist li {
  position: relative;
  font-size: 18px;
  padding-left: 34px;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--myb-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.checklist strong { color: var(--myb-navy); font-weight: 500; }

/* ---- Formulier ---- */

.optin-block h3 { margin-bottom: 16px; }

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

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 400 15px/1 var(--myb-font);
  color: var(--myb-grey-800);
  border: 1px solid var(--myb-grey-200);
  border-radius: var(--myb-radius-input);
  background-color: #ffffff;
  transition: border-color var(--myb-transition);
}

.form-field input::placeholder { color: var(--myb-grey-300); opacity: 1; }

.form-field input:focus {
  outline: none;
  border-color: var(--myb-blue);
}

.form-field input.error { border-color: var(--myb-error-border); }

/* Formulier op donkere sectie (zoals op de live site) */
.section-dark .form-field input {
  background-color: var(--myb-grey-800);
  border-color: var(--myb-grey-600);
  color: var(--myb-grey-100);
}

.section-dark .form-field input::placeholder { color: var(--myb-grey-300); }

.section-dark .form-field input:focus { border-color: var(--myb-blue); }

.form__error {
  display: none;
  font-size: 14px;
  color: var(--myb-error);
  margin: 0 0 12px;
}

.form__success {
  display: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--myb-success);
  margin: 12px 0 0;
}

.form__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--myb-grey-300);
  margin: 14px 0 0;
  text-align: center;
}

/* ---- Knoppen ---- */

.btn {
  display: inline-block;
  width: 100%;
  font: 400 17px/1 var(--myb-font);
  color: #ffffff;
  background-color: var(--myb-blue);
  border: none;
  border-radius: var(--myb-radius-button);
  padding: 18px 30px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--myb-transition);
}

.btn:hover { background-color: var(--myb-blue-dark); }

.btn:disabled { background-color: var(--myb-blue-light); cursor: default; }

.btn__spinner {
  display: inline-block;
  vertical-align: -3px;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 700ms linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ---- Pop-up met opt-in formulier ---- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--myb-space);
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(31, 41, 51, 0.6);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: var(--myb-radius-card);
  padding: 32px;
  box-shadow: var(--myb-shadow-card);
}

.modal__dialog h3 { margin-bottom: 20px; padding-right: 24px; }

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--myb-grey-300);
  cursor: pointer;
  transition: color var(--myb-transition);
}

.modal__close:hover { color: var(--myb-grey-600); }

/* ---- Opbrengst-cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--myb-space);
  margin-top: 8px;
}

.card {
  background-color: var(--myb-grey-800);
  border-radius: var(--myb-radius-card);
  padding: 32px;
}

.card h3 { margin-bottom: 12px; }

.card p { margin: 0; color: var(--myb-grey-200); }

.metaphor {
  margin: 48px 0 0;
  max-width: 920px;
  color: var(--myb-grey-100);
}

.metaphor p { margin: 0; }

.metaphor strong { color: var(--myb-grey-50); font-weight: 500; }

/* ---- Reviews ---- */

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

.review {
  margin: 0;
  background-color: #ffffff;
  border: 1px solid var(--myb-grey-200);
  border-radius: var(--myb-radius-card);
  padding: 32px;
}

.review__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.review__stars svg {
  width: 20px;
  height: 20px;
  fill: var(--myb-blue);
}

.review blockquote {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  color: #2B3E52;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--myb-grey-500);
}

.review figcaption img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--myb-navy);
}

/* ---- FAQ ---- */

.faq { max-width: 820px; margin: 0 auto; }

.faq__intro { text-align: center; margin-bottom: 40px; }

.faq details { border-bottom: 1px solid var(--myb-grey-200); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--myb-grey-800);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23347EE0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--myb-transition);
}

.faq details[open] summary::after { transform: rotate(180deg); }

.faq details p { padding: 0 0 22px; margin: 0; color: var(--myb-grey-700); max-width: 720px; }

/* ---- Slotsectie ---- */

.closing .split__media img { min-height: 420px; }

/* ---- Footer ---- */

.footer {
  background-color: var(--myb-grey-900);
  padding: 28px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer p { margin: 0; font-size: 14px; color: var(--myb-grey-300); }

.footer a {
  font-size: 14px;
  color: var(--myb-grey-200);
  text-decoration: none;
  transition: color var(--myb-transition);
}

.footer a:hover { color: #ffffff; }

.footer nav { display: flex; gap: 24px; }

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  section { padding: 48px 0; }
  .hero { padding: 32px 0 48px; }
  .split, .hero .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .closing .split__media { display: none; }
}

@media (max-width: 479px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .footer .container { flex-direction: column; }
}
