.cta { padding: 3rem 0; }
.cta h2 { color: var(--color-heading); }

/* Theme accent, used by both layouts. */
.cta-purple { --cta-accent: var(--color-purple); }
.cta-blue   { --cta-accent: var(--color-blue); }
.cta-yellow { --cta-accent: var(--color-yellow); }

/* ====================================================================
   Full-width (bleed) variant: the original edge-to-edge banner.
   ==================================================================== */
.cta-bleed .cta-icon { display: none; }
.cta-bleed .cta-inner { display: grid; gap: 0.75rem; justify-items: start; }
.cta-bleed .cta-copy { display: grid; gap: 0.5rem; }
.cta-bleed .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cta-bleed.cta-purple,
.cta-bleed.cta-blue,
.cta-bleed.cta-yellow { color: #fff; }
.cta-bleed.cta-purple { background: #3b2346; }
.cta-bleed.cta-blue   { background: var(--color-blue); }
.cta-bleed.cta-yellow { background: #8a6200; }
.cta-bleed.cta-purple h2, .cta-bleed.cta-blue h2, .cta-bleed.cta-yellow h2,
.cta-bleed.cta-purple p,  .cta-bleed.cta-blue p,  .cta-bleed.cta-yellow p { color: #fff; }
.cta-bleed.cta-purple .button:hover,
.cta-bleed.cta-blue .button:hover,
.cta-bleed.cta-yellow .button:hover {
  background: #e6b93e;
  border-color: #e6b93e;
  color: var(--color-navy);
}

/* ====================================================================
   Boxed variant (default): a contained card, like the pricing example.
   ==================================================================== */
.cta-boxed { padding: 1.5rem 0; }
.cta-boxed .cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.cta-boxed.cta-purple .cta-inner { background: #ece4f2; background: color-mix(in srgb, var(--color-purple) 16%, white); }
.cta-boxed.cta-blue .cta-inner   { background: #daebf4; background: color-mix(in srgb, var(--color-blue) 16%, white); }
.cta-boxed.cta-yellow .cta-inner { background: #fff8e4; background: color-mix(in srgb, var(--color-yellow) 16%, white); }

.cta-boxed .cta-copy { flex: 1 1 18rem; display: grid; gap: 0.2rem; }
.cta-boxed .cta-copy h2 { margin: 0; font-size: 1.3rem; }
.cta-boxed .cta-copy p { margin: 0; color: var(--color-text); }

.cta-boxed .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cta-boxed .cta-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #fff;
  color: var(--cta-accent, var(--color-navy));
}
.cta-boxed .cta-icon::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-8.5 8.5 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-8.5 8.5 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Secondary (outline) button, used for the second action. */
.cta-button-secondary {
  background: #fff;
  border-color: #737b89; /* >=3:1 tegen de lichte kaart-tinten (WCAG 1.4.11) */
  color: var(--color-navy);
}
.cta-button-secondary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

@media (max-width: 640px) {
  .cta-boxed .cta-inner { align-items: flex-start; }
  .cta-boxed .cta-actions { width: 100%; }
}
