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

:root {
  /* Montis-Q brand palette (matches montis-q.nl Divi theme) */
  --primary: #005faa;          /* brand blue — H1/H2, fact numbers, logo, highlights */
  --primary-light: #e3eef7;    /* light blue tint for hover/selected backgrounds */
  --primary-hover: #004a85;
  --primary-dark: #003c6c;
  --accent: #e94e1b;           /* brand orange — primary CTA buttons, links */
  --accent-light: #fbe6dc;
  --accent-hover: #c43e10;
  --navy: #000000;             /* primary text */
  --navy-light: #1a1a1a;       /* gradient endpoint for dark CTA blocks */
  --bg: #edeae1;               /* warm beige background */
  --white: #FFFFFF;
  --gray-50: #f6f5f0;
  --gray-100: #ece9df;
  --gray-200: #dcd5c2;
  --gray-300: #c4c8cf;
  --gray-400: #9da3ae;
  --gray-500: #7d7d7d;         /* secondary body text per Divi base */
  --gray-600: #555555;
  --green: #24b99d;            /* Qonnecting label colour from montis-q.nl */
  --green-light: #d6f1ea;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --yellow: #faa433;           /* Qoaching label colour from montis-q.nl */
  --yellow-light: #fdecd3;
  --purple: #892890;           /* Q-circles purple from the montis-q.nl logo strip */
  --font: 'Poppins', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 10px;           /* Montis-Q button radius */
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;  /* suppress sub-pixel overshoot from 100vw bleed elements */
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.app-header {
  background: var(--white);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left { display: flex; align-items: center; }

/* "Back to montis-q.nl" link — subtle pill that clearly indicates leaving the scan */
.back-to-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.back-to-main:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateX(1px);
}

.back-to-main .ext-icon { flex-shrink: 0; opacity: 0.6; margin-left: 2px; }
.back-to-main:hover .ext-icon { opacity: 1; }

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.header-right { display: flex; align-items: center; gap: 16px; }

/* Thin white band between the header and the beige hero — the hero image
   overflows up into this strip (Montis-Q magazine-style hero). */
.hero-strip {
  height: 50px;
  background: var(--white);
}

.lang-toggle { display: flex; gap: 6px; }

.lang-btn {
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--gray-500);
  transition: var(--transition);
}

.lang-btn:hover { border-color: var(--primary); color: var(--navy); }
.lang-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--navy); font-weight: 600; }

/* ===== PROGRESS ===== */
.progress-bar-container { background: var(--gray-100); height: 4px; width: 100%; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s ease; border-radius: 0 2px 2px 0; }

.step-indicator {
  text-align: center;
  padding: 10px 24px;
  font-size: 0.8rem;
  color: var(--gray-500);
  background: var(--white);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.step-dot.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.step-dot.completed { background: var(--accent-light); color: var(--accent); }

/* ===== MAIN ===== */
.main-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }

/* ===== SCREENS ===== */
.screen { display: none; animation: fadeIn 0.4s ease; }
.screen.active { display: block; }

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

/* ===== LANDING PAGE ===== */
.landing-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: stretch;
  padding: 0 0 72px;
  min-height: 540px;
}

.landing-hero {
  text-align: left;
  align-self: center;
  padding-top: 24px;
}

.landing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.landing-hero h1 span { color: var(--primary); }

.landing-hero .subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 0 24px;
  line-height: 1.7;
}

.landing-hero-cta {
  margin-top: 8px;
}

/* Hero image bleeds to the right viewport edge (Montis-Q magazine-style hero)
   and extends vertically beyond the section padding. Rounded on the left only.
   Math: image's natural right edge is at (container.right - 24px padding). To
   reach viewport.right, extend by 24px when viewport <= 1200, else by (vp/2 - 576). */
.landing-hero-image {
  position: relative;
  margin-right: min(-24px, calc(576px - 50vw));
  margin-top: -75px;
  margin-bottom: -32px;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  min-height: 560px;
  z-index: 1;
}

.landing-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .landing-hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; text-align: center; min-height: 0; }
  .landing-hero { text-align: center; }
  .landing-hero h1 { font-size: 2.1rem; }
  .landing-hero .subtitle { margin-left: auto; margin-right: auto; }
  /* On mobile, image stays contained within the column, normal aspect ratio */
  .landing-hero-image {
    margin: 0;
    border-radius: var(--radius-sm);
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

/* Wide mid-page banner — full-bleed: breaks out of the 1200px container
   so the photo spans the full viewport width edge-to-edge. */
.full-banner {
  margin: 56px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  aspect-ratio: 3 / 1;
}

.full-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 24px;
  margin-bottom: 32px;
}

.landing-badge .pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Info Sections */
.info-section { margin-bottom: 48px; }

.info-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.info-section .section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.info-section .section-intro {
  max-width: 820px;
  margin: 0 auto 36px;
}

.info-section .section-intro p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
}

.info-section .section-intro p + p {
  margin-top: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background: #000000;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Each card gets a distinct border colour drawn from the montis-q.nl
   Q-circles logo (orange, yellow, purple, green — the brand blue is left out
   so it doesn't clash with the heading blue used elsewhere). */
.info-card:nth-child(1) { border-color: var(--accent); }
.info-card:nth-child(2) { border-color: var(--yellow); }
.info-card:nth-child(3) { border-color: var(--purple); }
.info-card:nth-child(4) { border-color: var(--green); }

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.info-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* Key Facts */
.key-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.fact-card .fact-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.fact-card .fact-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 32px 0 40px;
  position: relative;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

.timeline-dot.past { background: var(--gray-200); color: var(--gray-600); }
.timeline-dot.current { background: var(--primary); color: var(--white); box-shadow: 0 0 0 6px var(--primary-light); }
.timeline-dot.future { background: var(--accent); color: var(--white); }

.timeline-label {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.4;
}

.timeline-connector {
  height: 3px;
  flex: 1;
  background: var(--gray-600);
  max-width: 80px;
  position: relative;
  top: -24px;
}

.timeline-connector.active { background: var(--gray-600); }

/* CTA Section — full-bleed black band, edge-to-edge across the viewport */
.cta-section {
  text-align: center;
  padding: 64px 32px;
  background: #000000;
  border-radius: 0;
  color: var(--white);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 56px;
  width: 100vw;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.cta-details span { display: flex; align-items: center; gap: 6px; }

/* ===== BUTTONS ===== */
/* Montis-Q style: orange fill, white text, uppercase, rounded 10px */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* Variant used on the dark CTA panel — orange fill, white text */
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-light:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--gray-600);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 24px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover { border-color: var(--gray-400); color: var(--navy); }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 32px; }

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 640px;
}

.section-header .step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ===== QUESTION CARDS ===== */
.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.question-card:hover { box-shadow: var(--shadow-md); }

.question-card .q-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.question-card .q-label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

/* .q-hint restored 2026-05-29 after editorial round 3: short prompts
   render as small gray text under the question label, longer IFRS
   background renders as the blue callout (.q-context) below. */
.question-card .q-hint {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.6;
}

.question-card .q-context {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--navy-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
}

.question-card .q-context strong { color: var(--navy); }

.option-group { display: flex; flex-direction: column; gap: 8px; }

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--navy);
  transition: var(--transition);
  line-height: 1.5;
}

.option-btn::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  margin-top: 2px;
  transition: var(--transition);
}

.option-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.option-btn:hover::before { border-color: var(--primary); }
.option-btn.selected { border-color: var(--primary); background: var(--primary-light); font-weight: 500; }
.option-btn.selected::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--white); }

/* Multi-select variant — square indicator with a checkmark instead of the
   radio-style filled dot. Same `.selected` state, different ::before look. */
.option-btn.option-multi::before { border-radius: 4px; }
.option-btn.option-multi.selected::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8 L7 12 L13 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* Inline "multiple answers possible" badge above multi-select option groups */
.question-card .q-multi-hint {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* Impact feedback panel */
.impact-feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.impact-feedback.high { background: var(--red-light); border-left: 3px solid var(--red); color: #991b1b; }
.impact-feedback.medium { background: var(--yellow-light); border-left: 3px solid var(--yellow); color: #92400e; }
.impact-feedback.low { background: var(--green-light); border-left: 3px solid var(--green); color: #065f46; }

.impact-feedback .impact-title {
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Learn more toggle */
.learn-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  padding: 0;
  transition: var(--transition);
}

.learn-more-toggle:hover { color: var(--primary-hover); }
.learn-more-toggle .chevron { transition: transform 0.3s ease; font-size: 0.7rem; }
.learn-more-toggle.open .chevron { transform: rotate(180deg); }

.learn-more-content {
  display: none;
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.learn-more-content.open { display: block; }
.learn-more-content .ref { color: var(--primary); font-weight: 500; }

/* ===== NAVIGATION ===== */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Top copy of the prev/next controls: sits below the section header and above
   the questions, so no divider line and the spacing reads downward. */
.nav-buttons-top {
  margin-top: 0;
  margin-bottom: 28px;
  padding-top: 0;
  padding-bottom: 24px;
  border-top: none;
  border-bottom: 1px solid var(--gray-200);
}

/* ===== LIVE IMPACT SIDEBAR ===== */
.impact-summary-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.impact-summary-bar h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.impact-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.impact-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: var(--transition);
}

.impact-dot.high { background: var(--red); }
.impact-dot.medium { background: var(--yellow); }
.impact-dot.low { background: var(--green); }

/* ===== RESULTS PAGE ===== */
.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.score-gauge {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 32px auto;
}

.score-gauge svg { width: 200px; height: 200px; transform: rotate(-90deg); }

.score-gauge .bg { fill: none; stroke: var(--gray-100); stroke-width: 12; }

.score-gauge .fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease;
}

.score-gauge .score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-gauge .score-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.score-gauge .score-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.result-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.result-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.impact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.impact-item .item-label { font-size: 0.9rem; color: var(--navy); font-weight: 500; }

.impact-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-badge.high { background: var(--red-light); color: var(--red); }
.impact-badge.medium { background: var(--yellow-light); color: var(--yellow); }
.impact-badge.low { background: var(--green-light); color: var(--green); }

.finding-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.finding-item:last-child { border-bottom: none; }

.finding-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.finding-item p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.next-steps-list { list-style: none; }

.next-steps-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.next-steps-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

.next-steps-list li:last-child { border-bottom: none; }

.next-steps-list li strong { color: var(--navy); }

.results-cta {
  text-align: center;
  padding: 36px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  margin-top: 32px;
}

.results-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--white);
}

.results-cta p {
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== CONTACT FORM (NEW) ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  max-width: 540px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-card .sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Phone field: country-code dropdown + national number side by side.
   Assembled into a single E.164 value on submit (see onContactSubmit). */
.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row .phone-country {
  flex: 0 0 auto;
  max-width: 45%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
}

.phone-row input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}

.phone-row .phone-country:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.field-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.field-consent a { color: var(--primary); text-decoration: underline; }

.form-error {
  background: var(--red-light);
  border-left: 3px solid var(--red);
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.form-error.visible { display: block; }

.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  max-width: 540px;
  margin: 0 auto;
}

.success-card .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-card h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-card p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* ===== RESUME BANNER (NEW) ===== */
.resume-banner {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.resume-banner button {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.resume-banner button:hover { background: var(--primary); color: var(--white); }

/* ===== APP FOOTER — Montis-Q corporate style ===== */
.app-footer {
  background: var(--bg);
  padding: 80px 0 24px;
  color: var(--navy);
  font-family: var(--font);
}

/* Top: 3-column grid (brand / contact / social) */
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 64px;
  align-items: start;
}

/* === Brand column === */
.footer-col-brand .footer-logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 28px;
}

.footer-brand-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin: 0 0 24px;
  max-width: 360px;
}

.footer-jobs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: var(--transition);
}

.footer-jobs-link:hover { color: var(--accent); }

/* === Contact column === */
.footer-tagline {
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 32px;
  text-transform: uppercase;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-list a:hover { color: var(--accent); }

.footer-icon {
  flex-shrink: 0;
  color: var(--accent);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* === Social column === */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-linkedin:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Bottom row: brand circles + KVK + policies */
.footer-bottom-row {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-circles {
  height: 36px;
  width: auto;
  display: block;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-policies a {
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition);
}

.footer-policies a:hover { color: var(--accent); text-decoration: underline; }

.footer-policies .sep { margin: 0 6px; color: var(--gray-300); }

/* Tiny scan-specific notes below the corporate footer */
.footer-tiny {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 16px 24px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
}

.footer-tiny .local-note {
  max-width: 540px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

.footer-tiny .clear-link {
  background: none;
  border: none;
  color: var(--gray-500);
  text-decoration: underline;
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.footer-tiny .clear-link:hover { color: var(--red); }

.footer-tiny .legal-notice {
  max-width: 720px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--gray-400);
}

/* Footer responsive: stack columns on narrower screens */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom-row {
    justify-content: center;
    text-align: center;
  }
  .footer-meta {
    align-items: center;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .landing-hero h1 { font-size: 1.8rem; }
  .info-grid { grid-template-columns: 1fr; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  /* Timeline on mobile: stack vertically with visible connectors between items.
     On desktop the connector uses flex:1 + height:3px (horizontal stretch); in
     column flex that flex-basis:0% zeros out the height, so the connector
     disappears. Override flex sizing here so the 30px vertical bar shows. */
  .timeline { flex-direction: column; gap: 18px; align-items: center; }
  .timeline-item { max-width: none; width: 100%; }
  .timeline-connector {
    width: 3px;
    height: 30px;
    flex: 0 0 30px;
    max-width: none;
    top: 0;
  }
  .main-container { padding: 20px 16px 60px; }
  .question-card { padding: 20px; }
  .impact-grid { grid-template-columns: 1fr; }
  .results-actions { flex-direction: column; align-items: center; }
  .app-header { padding: 12px 16px; gap: 10px; }
  .header-right { gap: 10px; }
  .logo img { height: 30px; }
  .cta-section { padding: 32px 20px; }
  .step-indicator { padding: 8px 12px; }
  .contact-card, .success-card { padding: 24px; }
}

/* Narrow phones: keep the header on one row by shrinking the logo a touch
   more and collapsing the "Ga naar montis-q.nl" pill to an icon-only button. */
@media (max-width: 560px) {
  .logo img { height: 26px; }
  .lang-btn { padding: 4px 8px; }
  .back-to-main { padding: 7px 9px; gap: 0; }
  .back-to-main .back-label { display: none; }
  .back-to-main .ext-icon { margin-left: 0; opacity: 0.8; }
}

@media (max-width: 480px) {
  .key-facts { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 1.5rem; }
}

/* ===== COOKIE CONSENT (Google Consent Mode v2) ===== */
.cookie-root { font-family: var(--font); }

/* Bottom banner — first-visit consent prompt. Hidden until .visible. */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  width: min(940px, calc(100vw - 32px));
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons (shared by banner + modal) */
.cookie-btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.cookie-btn-primary {
  background: var(--accent);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cookie-btn-primary:hover { background: var(--accent-hover); }
.cookie-btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-300);
}
.cookie-btn-ghost:hover { border-color: var(--navy); background: var(--gray-50); }

/* Preferences modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1100;
}
.cookie-modal-backdrop[hidden] { display: none; }
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  outline: none;
}
.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-modal-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0 4px;
}
.cookie-modal-close:hover { color: var(--navy); }
.cookie-modal-intro {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 8px;
}

/* Category rows */
.cookie-cat {
  border-top: 1px solid var(--gray-200);
  padding: 16px 0;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-cat-name { font-weight: 600; font-size: 0.98rem; color: var(--navy); }
.cookie-cat-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 8px;
}
.cookie-always {
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 999px;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}
.cookie-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb { transform: translateX(20px); }
.cookie-toggle input:focus-visible + .cookie-toggle-track {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

/* Footer "Cookie-instellingen" link sits next to the clear-link */
.cookie-settings-link {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cookie-settings-link:hover { color: var(--accent); }

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100vw;
    left: 0;
    transform: translateY(140%);
  }
  .cookie-banner.visible { transform: translateY(0); }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .cookie-btn { flex: 1; }
  .cookie-modal-actions .cookie-btn { flex: 1; }
}
