/* ==========================================================================
   Sendsteps — Components
   Reusable building blocks, derived from §6 of the brand book.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--fw-heading);
  font-size: var(--fs-body);
  letter-spacing: var(--tracking-cta);
  padding: 14px 28px;
  min-height: var(--touch-target); /* 48px ergonomic touch target */
  border-radius: var(--radius-pill);
  transition: transform var(--t-hover), box-shadow var(--t-hover), background var(--t-hover);
  white-space: nowrap;
}

/* Primary CTA — violet→gold gradient pill, white text (§3.3 / §6.6 / §6.6.1).
   The single most important forward action. One per view. */
.btn-primary {
  background: var(--cta-primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--cta-primary-hover);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  background: rgba(13, 18, 22, 0.12);
  color: var(--text-faint);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Secondary CTA — orange/amber (§6.6.1). The lower-emphasis companion to
   primary: Watch demo, Learn more, Add slide, Create assignment. Always
   secondary to the gradient, never two primaries side by side. */
.btn-secondary {
  background: var(--cta-secondary);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(248, 178, 79, 0.28);
}
.btn-secondary:hover {
  background: var(--cta-secondary-strong);
  transform: translateY(-2px);
}

/* Outline variant — when even orange is too much emphasis (e.g. on a busy hero).
   Low-key violet-tinted outline on a panel. Use sparingly. */
.btn-outline {
  background: var(--panel-bg);
  color: var(--brand-violet);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand-violet); transform: translateY(-2px); }
:root[data-theme="dark"] .btn-outline { color: var(--lavender); }

/* Ghost — text button (back-style, §6.6). Tertiary. */
.btn-ghost {
  color: var(--text);
  font-weight: var(--fw-bold);
  padding-inline: var(--space-3);
}
.btn-ghost:hover { color: var(--brand-violet); }

/* Present — LIVE-SESSION ACTIONS ONLY, never for AI/marketing (§6.6.1, §11). */
.btn-present {
  background: var(--cta-present);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 178, 121, 0.28);
}

/* Share / account — solid violet (§6.6.1): Share, Invite, Log in. */
.btn-share {
  background: var(--cta-share);
  color: #fff;
  box-shadow: var(--shadow-sidebar);
}
.btn-share:hover { background: var(--brand-plum); transform: translateY(-2px); }

.btn-lg { padding: 18px 36px; font-size: var(--fs-body-lg); }
.btn-block { display: flex; width: 100%; }

.btn.is-loading {
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-primary.is-loading:disabled {
  background: var(--cta-primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
  cursor: wait;
  transform: none;
}

/* --------------------------------------------------------------------------
   Badges & chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.6875rem;
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-badge);
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--brand-violet);
  background: rgba(109, 40, 217, 0.10);
}
.badge--gold { color: var(--accent-gold-strong); background: rgba(248, 178, 79, 0.16); }

/* AI-chip met sparkle — signaleert AI zonder met groen te concurreren (§6.1) */
.chip-ai {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--brand-violet-mid);
  border: 1px solid rgba(109, 40, 217, 0.40);
  background: linear-gradient(135deg, rgba(109,40,217,0.10), rgba(248,178,79,0.10));
  transition: background var(--t-hover);
}
.chip-ai:hover {
  background: linear-gradient(135deg, rgba(109,40,217,0.18), rgba(248,178,79,0.18));
}
/* When rendered as a <button> (blog category filters) */
button.chip-ai {
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.chip-ai.is-active {
  color: #fff;
  border-color: var(--brand-violet);
  background: var(--brand-violet);
}
.chip-ai.is-active:hover {
  background: var(--brand-violet);
}
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

/* Hover-lift only on whole-card links. Static <article class="card"> must not lift. */
a.card { color: inherit; text-decoration: none; }
a.card-interactive {
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
}
a.card-interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 40, 217, 0.40);
  box-shadow: var(--shadow-card-hover);
}
a.card-interactive:focus-visible {
  outline: 2px solid var(--brand-violet);
  outline-offset: 3px;
}
.card:not(a):hover {
  transform: none;
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}
/* In a grid, linked cards stretch to equal height so trailing meta/CTAs align. */
.grid > a.card-interactive { display: flex; flex-direction: column; height: 100%; }
.grid > a.card-interactive .article-meta:last-child,
.grid > a.card-interactive > :last-child { margin-top: auto; }
.card-cta { color: var(--brand-violet); font-weight: var(--fw-heading); }

/* Geselecteerde staat — gradient-rand via mask */
.card-selected {
  border: 1.5px solid transparent;
  background:
      linear-gradient(var(--panel-bg), var(--panel-bg)) padding-box,
      var(--icon-gradient) border-box;
  box-shadow: var(--shadow-card-hover);
}

/* Icon well — krijgt gradient bij actief/selected, anders violet-tint (§6.4) */
.icon-well {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(109, 40, 217, 0.10);
  color: var(--brand-violet);
  margin-bottom: var(--space-4);
}
.icon-well--gradient {
  background: var(--icon-gradient);
  color: #fff;
  box-shadow: var(--shadow-sidebar);
}
.icon-well svg { width: 28px; height: 28px; }

.card h3, .card h4 { margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); font-size: var(--fs-body); }
.card p.card-cta { color: var(--brand-violet); font-weight: var(--fw-heading); }

/* --------------------------------------------------------------------------
   Navigatie
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.nav-wash {
  background: var(--header-wash);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 72px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  display: block;
  height: 28px;
  width: auto;
}
.nav-logo .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--icon-gradient);
  display: grid; place-items: center; color: #fff; font-size: 14px;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: var(--fw-label);
  font-size: var(--fs-body);
}
.nav-links a { color: var(--text-muted); transition: color var(--t-hover); white-space: nowrap; }
.nav-links a:hover { color: var(--brand-violet); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-wash { position: relative; }
  /* Top bar collapses to logo + hamburger; everything else drops into a
     full-width panel that grows the header downward when opened. */
  .nav { flex-wrap: wrap; height: auto; min-height: 72px; row-gap: var(--space-3); }
  .nav-logo { margin-right: auto; }
  .nav-toggle {
    order: 2;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
  }

  .nav-links,
  .nav-actions { display: none; }
  .site-header.nav-open .nav-links,
  .site-header.nav-open .nav-actions {
    order: 3;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-left: 0;
  }
  .site-header.nav-open .nav-links {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border);
    font-size: var(--fs-body-lg);
  }
  .site-header.nav-open .nav-actions {
    align-items: stretch;
    padding-bottom: var(--space-5);
  }
  .site-header.nav-open .nav-actions .btn { width: 100%; text-align: center; }
  .site-header.nav-open .lang-btn { align-self: flex-start; }
}

/* --------------------------------------------------------------------------
   Nav dropdowns — parent items (Education, Business, Resources) are <button>s
   that reveal a submenu. Parents never navigate on their own.
   -------------------------------------------------------------------------- */
.nav-item-has-children { position: relative; }
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-weight: var(--fw-label);
  font-size: var(--fs-body);
  line-height: 1;
  white-space: nowrap;
  transition: color var(--t-hover);
}
.nav-parent:hover,
.nav-parent[aria-expanded="true"] { color: var(--brand-violet); }
.nav-caret { width: 16px; height: 16px; transition: transform var(--t-hover); }
.nav-parent[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  min-width: 220px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
}
.nav-submenu li { margin: 0; }
.nav-submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: var(--fw-label);
  white-space: nowrap;
  transition: background var(--t-hover), color var(--t-hover);
}
.nav-submenu a:hover { background: rgba(109, 40, 217, 0.08); color: var(--brand-violet); }

/* Desktop: absolute dropdown; opens on hover, keyboard focus, or JS .is-open */
@media (min-width: 861px) {
  /* Keep plain links and dropdown <button>s on the exact same baseline. */
  .nav-links { align-items: center; }
  .nav-links > li { display: flex; align-items: center; }
  .nav-links > li > a { display: inline-flex; align-items: center; line-height: 1; }
  .nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 60;
    display: none;
  }
  /* Invisible bridge so the pointer can travel from parent to submenu */
  .nav-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px;
  }
  .nav-item-has-children:hover .nav-submenu,
  .nav-item-has-children:focus-within .nav-submenu,
  .nav-item-has-children.is-open .nav-submenu { display: block; }
}

/* Mobile: submenu becomes an inline accordion inside the open nav panel */
@media (max-width: 860px) {
  .nav-parent { width: 100%; justify-content: space-between; font-size: var(--fs-body-lg); }
  .nav-submenu {
    display: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: var(--space-2) 0 0 var(--space-4);
  }
  .nav-item-has-children.is-open .nav-submenu { display: block; }
  .nav-submenu a { font-size: var(--fs-body); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.footer-col h4 {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: var(--text-muted); font-size: var(--fs-small); transition: color var(--t-hover); }
.footer-col a:hover { color: var(--brand-violet); }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--brand-violet); }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Footer wordmark — oversized brand letterform that spans the full footer width
   (Gamma-style), filled with Sendsteps' gradient via mask. Decorative. */
.footer-wordmark {
  margin-top: var(--space-7);
  width: 100%;
  aspect-ratio: 1024 / 176;
  background: var(--icon-gradient);
  -webkit-mask: url('../assets/images/sendsteps-wordmark.webp') no-repeat center / contain;
  mask: url('../assets/images/sendsteps-wordmark.webp') no-repeat center / contain;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Language selector — globe button in the nav + "Choose language" modal.
   DESIGN-ONLY: the picker UI is built; actual locale routing (hreflang,
   translated URLs) is wired up by the dev team during migration.
   -------------------------------------------------------------------------- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-target);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-label);
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--t-hover), background var(--t-hover);
}
.lang-btn:hover { color: var(--brand-violet); background: rgba(109, 40, 217, 0.08); }
.lang-btn svg { width: 18px; height: 18px; }

/* Modal — uses native <dialog>. Centered panel with the ambient wash. */
.lang-modal {
  width: min(880px, 92vw);
  max-height: 86vh;
  margin: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--panel-bg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.lang-modal::backdrop { background: rgba(13, 18, 22, 0.45); backdrop-filter: blur(2px); }
.lang-modal__head {
  position: relative;
  text-align: center;
  padding: var(--space-7) var(--space-6) var(--space-5);
  background: var(--ambient-radial), var(--header-wash);
  border-bottom: 1px solid var(--border);
}
.lang-modal__head h2 { font-size: var(--fs-h3); }
.lang-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.lang-modal__close:hover { background: rgba(13, 18, 22, 0.06); color: var(--text); }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  padding: var(--space-6);
  overflow-y: auto;
}
.lang-grid a {
  display: block;
  text-align: center;
  padding: 12px 8px;
  min-height: var(--touch-target);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-label);
  color: var(--text);
  transition: background var(--t-hover), color var(--t-hover);
}
.lang-grid a:hover { background: rgba(109, 40, 217, 0.10); color: var(--brand-violet); }
.lang-grid a[aria-current="true"] {
  background: var(--icon-gradient);
  color: #fff;
}
@media (max-width: 680px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Ambient orbs — hero background (§3.5). Replicate orb+wash, never a flat fill.
   -------------------------------------------------------------------------- */
.ambient {
  position: relative;
  overflow: hidden;
  background: var(--ambient-radial);
}
.ambient > .container { position: relative; z-index: 2; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}
.orb--violet { width: 360px; height: 360px; background: var(--brand-violet); top: -80px; left: -60px; animation: drift 24s var(--ease-premium) infinite alternate; }
.orb--gold   { width: 320px; height: 320px; background: var(--accent-gold); top: -40px; right: -40px; filter: blur(90px); animation: drift 28s var(--ease-premium) infinite alternate-reverse; }
.orb--mid    { display: none; }

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 24px); }
}

/* --------------------------------------------------------------------------
   Loop band — signature element: Create → Engage → Validate → Improve
   -------------------------------------------------------------------------- */
.loop {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.loop-step {
  flex: 1 1 200px;
  position: relative;
  padding: var(--space-5);
  background: var(--panel-bg);
  border: 1px solid var(--border);
}
.loop-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.loop-step:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.loop-step::after {
  content: "→";
  position: absolute;
  right: -11px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: var(--brand-violet);
  font-weight: var(--fw-heading);
  background: var(--bg);
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.loop-step:last-child::after { content: "↻"; color: var(--accent-gold-strong); }
.loop-step .step-num {
  font-size: var(--fs-overline);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-overline);
  color: var(--brand-violet);
}
.loop-step h4 { margin: var(--space-2) 0; font-size: var(--fs-h5); }
.loop-step p { color: var(--text-muted); font-size: var(--fs-small); }
a.loop-step {
  color: inherit;
  display: block;
}
a.loop-step:hover {
  border-color: var(--brand-violet);
}
a.loop-step:focus-visible {
  outline: 2px solid var(--brand-violet);
  outline-offset: 2px;
  border-color: var(--brand-violet);
}
.loop-step.is-current {
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-panel);
}
.nav-submenu a[aria-current="page"] {
  background: rgba(109, 40, 217, 0.08);
  color: var(--brand-violet);
}
@media (max-width: 760px) {
  .loop-step { flex-basis: 100%; border-radius: var(--radius-lg) !important; }
  .loop-step::after { display: none; }
}

/* Homepage cycle: icons, connecting arc, Improve emphasis */
.loop-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.loop-return {
  position: relative;
  height: 44px;
  margin: 4px 11% 0;
  pointer-events: none;
}
.loop-arc {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.loop-return__head {
  position: absolute;
  left: 1%;
  top: 0;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--brand-violet);
}
.loop--cycle {
  gap: var(--space-5);
  padding-top: 18px;
}
.loop--cycle .loop-step {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
}
.loop--cycle .loop-step:first-child,
.loop--cycle .loop-step:last-child {
  border-radius: var(--radius-lg);
}
.loop--cycle .loop-step::after {
  right: calc(-0.5 * var(--space-5) - 11px);
  background: var(--panel-bg);
}
.loop--cycle .loop-step:last-child::after {
  display: none;
}
.loop--cycle .icon-well {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
}
.loop--cycle .icon-well svg {
  width: 20px;
  height: 20px;
}
.loop--cycle .loop-step--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(109, 40, 217, 0.08), var(--panel-bg) 46%);
  box-shadow: 0 0 0 2px var(--brand-violet), var(--shadow-panel);
}
.loop--cycle .loop-step--featured:hover {
  border-color: transparent;
}
.loop-step--featured .badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  margin: 0;
  white-space: nowrap;
  background: var(--panel-bg);
  border: 1.5px solid var(--brand-violet);
  box-shadow: 0 0 0 3px var(--panel-bg);
}
.loop-caption {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  max-width: 36ch;
  margin: 2px 0 0;
  padding: 6px 14px;
  font-size: var(--fs-small);
  font-weight: var(--fw-heading);
  line-height: 1.4;
  color: var(--brand-violet);
  background: rgba(109, 40, 217, 0.08);
  border-radius: var(--radius-pill);
  text-align: right;
}
@media (max-width: 760px) {
  .loop-return { display: none; }
  .loop--cycle { padding-top: 18px; }
  .loop-caption {
    align-self: stretch;
    text-align: left;
    max-width: none;
    margin-top: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.price-card--featured {
  border: 1.5px solid transparent;
  background:
      linear-gradient(var(--panel-bg), var(--panel-bg)) padding-box,
      var(--icon-gradient) border-box;
  box-shadow: var(--shadow-panel);
}
.price-card--current {
  border: 1.5px solid var(--brand-violet);
  box-shadow: var(--shadow-panel);
}
.price-amount { font-size: 2.75rem; font-weight: var(--fw-heading); line-height: 1; margin: var(--space-3) 0; }
.price-amount .per { font-size: var(--fs-body); font-weight: var(--fw-label); color: var(--text-muted); }
.price-features { list-style: none; padding: 0; margin: var(--space-5) 0; flex: 1; }
.price-features li { display: flex; gap: var(--space-2); padding: var(--space-2) 0; font-size: var(--fs-small); color: var(--text-muted); }
.price-features svg { flex: none; width: 18px; height: 18px; color: var(--brand-violet); margin-top: 3px; }
.price-features a { color: var(--brand-violet); font-weight: var(--fw-bold); }

/* Billing period toggle (monthly / annually) */
.billing-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto var(--space-7);
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.billing-opt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  min-height: var(--touch-target);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-label);
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: background var(--t-hover), color var(--t-hover);
}
.billing-opt:hover { color: var(--text); }
.billing-opt.is-active {
  background: var(--cta-share);
  color: var(--text-on-dark);
}
.billing-save {
  font-size: var(--fs-overline);
  font-weight: var(--fw-heading);
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(248, 178, 79, 0.22);
  color: var(--accent-gold-strong);
}
.billing-opt.is-active .billing-save {
  background: rgba(255, 255, 255, 0.22);
  color: var(--text-on-dark);
}

/* --------------------------------------------------------------------------
   Forms (contact, newsletter, lead capture)
   -------------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.form-label .req { color: var(--accent-gold-strong); }
.form-input,
.form-textarea,
.form-select {
  font: inherit;
  color: var(--text);
  background: var(--panel-bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: var(--touch-target); /* 48px touch target */
  transition: border-color var(--t-hover), box-shadow var(--t-hover);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.16);
  outline: none;
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: var(--fs-small); color: var(--text-muted); }
/* Error styling carries text, not color alone (WCAG 1.4.1) */
.form-error {
  display: flex; gap: var(--space-2); align-items: flex-start;
  font-size: var(--fs-small); color: #B91C1C; font-weight: var(--fw-bold);
}
:root[data-theme="dark"] .form-error { color: #FCA5A5; }
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] { border-color: #DC2626; }

/* --------------------------------------------------------------------------
   Contact / quote: headline + form in one viewport (CRO)
   Copy left, form right — the submit action is visible above the fold.
   -------------------------------------------------------------------------- */
.contact-hero {
  padding-top: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.contact-hero > .container > .breadcrumb {
  margin-bottom: var(--space-5);
}
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  column-gap: var(--space-7);
  align-items: start;
}
.contact-split > * { min-width: 0; }
.contact-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-form-card { grid-column: 2; }
.contact-copy h1 {
  font-size: clamp(1.85rem, 1.15rem + 2vw, 2.75rem);
  line-height: 1.15;
}
.contact-copy .lead {
  font-size: var(--fs-body-lg);
  max-width: min(42ch, 100%);
}
@media (min-width: 901px) {
  /* Align the card with the H1, not the overline — breadcrumb sits above both. */
  .contact-form-card {
    margin-top: calc(var(--fs-overline) * 1.4 + var(--space-4));
  }
}
.contact-aside .price-features {
  margin: 0;
}
.contact-proof .overline {
  margin-bottom: var(--space-3);
}
.contact-proof .logo-wall {
  justify-content: flex-start;
  gap: var(--space-5);
}
.contact-proof .logo-wall img {
  height: 52px;
}
.contact-form-card {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
}
.contact-form-card .stack-lg > * + * {
  margin-top: var(--space-4);
}
.contact-form-card .form-textarea {
  min-height: 88px;
}
.contact-form-card .grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.co-creation-close { scroll-margin-top: 75px; }
.co-creation-close .contact-form-card { margin-top: 0; }
@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .contact-main { display: contents; }
  .contact-copy { order: 1; }
  .contact-form-card { grid-column: 1; order: 2; margin-top: 0; }
  .contact-aside { order: 3; }
}
@media (max-width: 600px) {
  .contact-form-card .grid-2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Breadcrumbs (a11y + SEO: BreadcrumbList pairs with JSON-LD)
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; }
.text-center .breadcrumb ol { justify-content: center; }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--text-faint); }
.breadcrumb a { color: var(--brand-violet); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Stat block (institutions / proof points)
   -------------------------------------------------------------------------- */
.stat { text-align: center; }
.stat-num {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  font-weight: var(--fw-heading);
  line-height: 1;
  background: var(--icon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--space-2); }
.stat h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-heading);
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Logo wall
   -------------------------------------------------------------------------- */
.logo-wall {
  display: flex; flex-wrap: wrap; gap: var(--space-7);
  align-items: center; justify-content: center;
}
.logo-wall strong { font-size: 1.25rem; color: var(--text-muted); }
.logo-wall img {
  height: 88px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--t-hover), opacity var(--t-hover);
}
.logo-wall img:hover { filter: grayscale(0); opacity: 1; }
.logo-wall img.logo-wall__zuyd {
  height: 64px;
}
@media (max-width: 600px) {
  .logo-wall img { height: 64px; }
  .logo-wall img.logo-wall__zuyd { height: 48px; }
}

.trust-badge {
  display: block;
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-4);
}
:root[data-theme="dark"] .trust-badge--iso {
  filter: invert(1);
}


.article { max-width: 920px; margin-inline: auto; }
.article-body { font-size: var(--fs-body-lg); line-height: 1.75; }
.article-body > * + * { margin-top: var(--space-5); }
.article-body h2 { margin-top: var(--space-7); }
.article-body h3 { margin-top: var(--space-6); }
.article-body blockquote {
  border-left: 3px solid;
  border-image: var(--icon-gradient) 1;
  padding-left: var(--space-5);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.article-body a { color: var(--brand-violet); font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 3px; }
.article-meta { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); font-size: var(--fs-small); }
/* Cover image: fills a fixed 16:9 box, cropping via object-fit. The explicit
   height:auto + aspect-ratio override any width/height HTML attributes so the
   image never renders at its intrinsic (tall) size. */
.article-cover {
  display: block;
  border-radius: var(--radius-lg);
  margin-block: var(--space-6);
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--header-wash);
  border: 1px solid var(--border);
}
/* When used as a card thumbnail, no vertical margin (card padding handles it). */
.card .article-cover { margin-block: 0 var(--space-4); }

/* --------------------------------------------------------------------------
   Blog overview (/en/blog/)
   -------------------------------------------------------------------------- */
.blog-intro > .container,
.blog-intro .blog-hero,
.blog-intro #blog-featured { position: relative; z-index: 2; }
.blog-intro .orb--gold {
  top: auto;
  bottom: 8%;
  right: -80px;
  width: 420px;
  height: 420px;
}

.blog-hero {
  padding-top: clamp(20px, 2.5vw, 36px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
}
.blog-hero .breadcrumb { margin-bottom: var(--space-3); }
.blog-hero .overline { display: block; }
.blog-hero-copy {
  text-align: center;
  margin-top: var(--space-3);
}
.blog-hero-copy > * + * { margin-top: var(--space-2); }
.blog-hero h1 {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
}
.blog-hero .lead {
  margin-inline: auto;
  max-width: 72ch;
}
@media (min-width: 900px) {
  .blog-hero h1,
  .blog-hero .lead { white-space: nowrap; }
}

#blog-featured {
  padding-block: var(--space-4);
}
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.blog-featured .article-cover { margin: 0; }

#blog-results {
  padding-bottom: var(--section-gap);
  scroll-margin-top: 75px;
}

.blog-toolbar {
  position: sticky;
  top: 75px; /* brand ribbon + nav */
  z-index: 40;
  padding-block: var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.blog-toolbar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.blog-results-label {
  font-size: var(--fs-h3);
  margin: 0;
}
.blog-results-count { margin: 0; font-size: var(--fs-small); }

.blog-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .blog-featured { grid-template-columns: 1fr; }
}

/* Keep the sticky filter bar short on small screens so results stay in view. */
@media (max-width: 700px) {
  .blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .blog-filters .chip-ai { flex-shrink: 0; }
}

/* --------------------------------------------------------------------------
   Split article hero — text panel + image side by side (Mentimeter-style),
   in Sendsteps' ambient orb+wash treatment. Image sits beside the text instead
   of as a full-width banner, so it reads calmer.
   -------------------------------------------------------------------------- */
/* The text panel (in normal flow) drives the hero height; the media is
   absolutely positioned to the right half so the image always covers the
   resulting height (cover) — never stretches the header, never scrolls. */
.article-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  min-height: clamp(380px, 40vw, 500px);
  background: var(--ambient-radial), var(--header-wash);
}
.article-hero__text {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 50%;
  min-height: clamp(380px, 40vw, 500px);
  padding: clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}
/* Lift real content above the decorative orbs — but do NOT touch the orbs
   themselves, or they'd drop into normal flow and stretch the hero. */
.article-hero__text > *:not(.orb) { position: relative; z-index: 2; }
.article-hero__text h1 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); }
.article-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: var(--header-wash);
}
.article-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  margin: 0;
}
@media (max-width: 760px) {
  .article-hero { display: flex; flex-direction: column; min-height: 0; }
  .article-hero__text { width: 100%; min-height: 0; order: 2; justify-content: flex-start; }
  .article-hero__media { position: relative; width: 100%; aspect-ratio: 16 / 9; order: 1; }
}


/* --------------------------------------------------------------------------
   Testimonial slider
   -------------------------------------------------------------------------- */
.testimonial-slider { overflow: hidden; }

.testimonial-viewport {
  position: relative;
  padding-inline: var(--page-margin);
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.testimonial-cards {
  display: flex;
  gap: var(--spacing-md);
  max-width: var(--content-max);
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: var(--spacing-xs);
}

.testimonial-cards::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 min(100%, 380px);
  scroll-snap-align: center;
  background: var(--header-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  min-height: 240px;
}
.grid > .testimonial-card {
  flex: none;
  width: 100%;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--text);
}

.testimonial-card blockquote strong {
  font-weight: var(--fw-bold);
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--text-on-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
}

.testimonial-author cite {
  font-style: normal;
  display: block;
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--text);
}

.testimonial-author div span {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 2px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.testimonial-nav-btn {
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--panel-bg);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: border-color var(--t-hover), color var(--t-hover), transform var(--t-hover);
}

.testimonial-nav-btn:hover {
  border-color: var(--brand-violet);
  color: var(--brand-violet);
  transform: translateY(-2px);
}

.testimonial-nav-btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .testimonial-card { flex-basis: 420px; }
}

/* --------------------------------------------------------------------------
   Legal documents (terms, privacy, cookies)
   Compact header + sticky TOC. Not a marketing hero.
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}
.legal-hero .breadcrumb { margin-bottom: var(--space-4); }
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.legal-switch a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target-min);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
}
.legal-switch a:hover { color: var(--brand-violet); border-color: var(--brand-violet); }
.legal-switch a[aria-current="page"] {
  color: var(--text-on-dark);
  background: var(--brand-violet);
  border-color: var(--brand-violet);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
  padding-bottom: var(--space-9);
}
.legal-toc {
  position: sticky;
  top: calc(72px + var(--space-4));
  max-height: calc(100vh - 72px - var(--space-6));
  overflow: auto;
  padding-right: var(--space-2);
}
.legal-toc p {
  font-size: var(--fs-overline);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: var(--space-3);
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal-toc a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--leading-body);
}
.legal-toc a:hover { color: var(--brand-violet); }
.legal-body {
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-7);
}
.legal-body > * + * { margin-top: var(--space-5); }
.legal-body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-7);
  scroll-margin-top: calc(72px + var(--space-5));
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-heading);
  margin-top: var(--space-5);
}
.legal-body a {
  color: var(--brand-violet);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-meta {
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.legal-clause {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.legal-clause__nmb {
  font-weight: var(--fw-bold);
  color: var(--brand-violet);
  font-size: var(--fs-small);
  padding-top: 0.15em;
}
.legal-clause--sub {
  margin-left: var(--space-5);
}
.legal-clause p { margin: 0; }
.legal-clause__body > * + * { margin-top: var(--space-3); }
.legal-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  margin: 0;
}
.legal-dl dt {
  font-weight: var(--fw-bold);
  color: var(--text);
}
.legal-dl dd {
  margin: 0;
  color: var(--text-muted);
}
.legal-body ul {
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.legal-table-wrap { overflow-x: auto; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--panel-bg-2);
  font-weight: var(--fw-heading);
}
.legal-table .legal-table-group th {
  background: var(--header-wash);
}
.legal-right {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}
.legal-right__nmb { font-weight: var(--fw-heading); color: var(--brand-violet); }
.legal-cookiebot { margin-top: var(--space-5); min-height: var(--space-10); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: var(--space-4);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }
  .legal-body { padding: var(--space-5); }
  .legal-dl { grid-template-columns: 1fr; }
}
