/* ============================================================
   Migreren naar Sarrai / Migrate to Sarrai — landingspagina.
   Bovenop tokens.css + site.css (globaal inline in _Layout).
   Gebruikt bewust de Sarrai.Site-fonts (Poppins / Bricolage Grotesque
   / JetBrains Mono via de tokens), NIET de Inter uit het designbundel.
   Nav + footer komen van _Layout, dus de dropdown-CSS uit het design
   is hier niet overgenomen.
   ============================================================ */

/* ---- Sectieritme ------------------------------------------- */
.mg-sec { padding-block: clamp(56px, 6vw, 96px); }
.mg-sec--alt { background: var(--bg-surface-2); border-block: 1px solid var(--border-subtle); }
.mg-sec--plain { background: #fff; }
.mg-sec h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.375rem);
  font-weight: 800; letter-spacing: -0.025em; color: var(--brand-navy-800);
  max-width: 20ch; margin-bottom: 20px;
}
.mg-sec h3 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.625rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--brand-navy-800);
  max-width: 22ch; margin-bottom: 16px;
}
.mg-sec p { color: var(--fg-3); font-size: 1.0625rem; line-height: 1.65; max-width: 56ch; }
.mg-sec p:last-child { margin-bottom: 0; }

/* ---- Hero -------------------------------------------------- */
.mg-hero { background: var(--bg-app); padding-block: clamp(44px, 4.5vw, 76px) clamp(40px, 4vw, 68px); }
.mg-hero h1 {
  font-size: clamp(2.125rem, 1.1rem + 3.3vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--brand-navy-800); max-width: 16ch; margin-bottom: 24px;
}
.mg-hero__lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--fg-3); line-height: 1.6; max-width: 58ch; margin-bottom: 30px;
}
.mg-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* Het hero-beeld is een smalle, liggende strook: het blijft in de tekstkolom
   (col-lg-9) onder de knoppen, met een bijschrift, in plaats van los over de
   volle breedte te zweven. */
.mg-hero__shot { margin-top: clamp(32px, 3.5vw, 48px); }
.mg-hero__figure { margin: 0; }
.mg-hero__cap {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px; max-width: 64ch;
  font-size: 0.9375rem; line-height: 1.55; color: var(--fg-3);
}
.mg-hero__cap::before {
  content: ""; flex: none; width: 18px; height: 2px; margin-top: 0.75em;
  background: var(--brand-orange); border-radius: 2px;
}

/* ---- Sectie 2: enkel tekst, kop links / body rechts -------- */
.mg-lede-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.mg-lede-grid h2 { margin-bottom: 0; }
.mg-lede-grid p { font-size: 1.125rem; line-height: 1.7; color: var(--fg-2); max-width: 60ch; }
.mg-lede-grid p + p { margin-top: 18px; }

/* ---- Vertrekpunten ----------------------------------------- */
.mg-routes { display: grid; gap: clamp(40px, 4.5vw, 72px); margin-top: clamp(36px, 4vw, 56px); }
.mg-route {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
  padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--border-default);
}
.mg-route:first-child { padding-top: 0; border-top: 0; }
.mg-route--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mg-route--flip .mg-route__text { order: 2; }
.mg-route--flip .mg-route__media { order: 1; }
.mg-route--narrow { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
/* Twee vertrekpunten naast elkaar, met één gedeeld screenshot eronder. */
.mg-route--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: clamp(32px, 3.5vw, 52px); }
.mg-route--pair .mg-route__media { grid-column: 1 / -1; width: 100%; max-width: 940px; justify-self: center; }
.mg-route__text p + p { margin-top: 14px; }

/* ---- Split (redirects, goedkeuringsinbox) ------------------ */
.mg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mg-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mg-split--flip .mg-split__text { order: 2; }
.mg-split--flip .mg-split__media { order: 1; }
.mg-split__text p + p { margin-top: 14px; }

/* ---- Inline tekstlink -------------------------------------- */
.mg-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--brand-navy);
  margin-top: 24px; border-bottom: 1px solid transparent;
}
.mg-link:hover { color: var(--brand-navy-700); border-bottom-color: currentColor; }
.mg-link svg { transition: transform var(--dur-fast) var(--ease-out); }
.mg-link:hover svg { transform: translateX(3px); }

/* ---- Screenshot-plaatshouders ------------------------------ */
/* Deze tegels zijn bewust PLAATSHOUDERS: het echte productbeeld (GIF's en
   screenshots) bestaat nog niet. De ruit-arcering + het "plaatshouder"-label
   maken dat zichtbaar, zodat ze niet per ongeluk als afgewerkt beeld live gaan.
   Vervang elke tegel door een echte <img>/<video> vóór livegang. */
.mg-shot {
  margin: 0; background: #fff;
  border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
}
.mg-shot__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}
.mg-shot__chrome i { width: 10px; height: 10px; border-radius: 999px; background: var(--neutral-200); display: block; }
.mg-shot__url {
  margin-left: 8px; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--fg-3);
  padding: 4px 10px; background: #fff;
  border: 1px solid var(--border-subtle); border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mg-shot__field {
  aspect-ratio: var(--mg-ar, 16 / 10);
  display: grid; place-items: center; padding: 24px;
  background-color: var(--brand-navy-50);
  background-image: repeating-linear-gradient(135deg,
    rgba(63, 73, 127, 0.055) 0 1px, transparent 1px 9px);
}
.mg-shot__cap { text-align: center; max-width: 46ch; margin: 0; }
.mg-shot__tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-navy); background: #fff;
  border: 1px solid var(--brand-navy-200); border-radius: 999px;
  padding: 4px 10px; margin-bottom: 12px;
}
.mg-shot__tag--gif { color: var(--brand-orange-700); border-color: var(--brand-orange-200); background: var(--brand-orange-50); }
.mg-shot__desc { display: block; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--brand-navy-800); }
.mg-shot__meta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--neutral-500); margin-top: 10px; letter-spacing: 0.04em; }

/* Gevulde tegel: een echt screenshot i.p.v. de plaatshouder-arcering. De
   browser-chrome (rond-jes + url-balk) is een plaatshouder-truc en hoort niet
   bij een echt screenshot, dus die rij vervalt; het beeld bepaalt zijn eigen
   hoogte, dus geen vaste --mg-ar en geen diamantpatroon. */
.mg-shot--filled { grid-template-rows: 1fr; }
.mg-shot__field--filled {
  aspect-ratio: auto; padding: 0;
  background-color: #fff; background-image: none;
}
.mg-shot__field--filled img { display: block; width: 100%; height: auto; }

/* ---- Sectie 5: navy paneel, geen beeld --------------------- */
.mg-solid { background: var(--brand-navy-800); color: #fff; padding-block: clamp(56px, 6vw, 92px); }
.mg-solid h2 {
  color: #fff; max-width: 16ch; margin-bottom: 20px;
  font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.375rem);
  font-weight: 800; letter-spacing: -0.025em;
}
.mg-solid p { color: rgba(255, 255, 255, 0.86); font-size: 1.0625rem; line-height: 1.7; max-width: 60ch; }
.mg-solid__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.mg-solid__grid p + p { margin-top: 16px; }

/* ---- FAQ (native <details>-accordeon) ---------------------- */
.mg-faq { max-width: 860px; margin-inline: auto; }
.mg-faq h2 { max-width: none; margin-bottom: 28px; }
.mg-faq__list { border-top: 1px solid var(--border-default); }
.mg-faq__item { border-bottom: 1px solid var(--border-default); }
.mg-faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  text-align: left; cursor: pointer; padding: 20px 4px;
  font-size: 1.0625rem; font-weight: 600; color: var(--brand-navy-800); line-height: 1.45;
  list-style: none;
}
.mg-faq__q::-webkit-details-marker { display: none; }
.mg-faq__q:hover { color: var(--brand-navy); }
.mg-faq__q svg { flex: none; margin-top: 3px; color: var(--brand-navy-300); transition: transform var(--dur-base) var(--ease-out); }
.mg-faq__item[open] .mg-faq__q svg { transform: rotate(45deg); color: var(--brand-orange); }
.mg-faq__a { padding: 0 64px 22px 4px; }
.mg-faq__a p { margin: 0; font-size: 1rem; color: var(--fg-3); line-height: 1.7; max-width: 66ch; }
.mg-faq__after { margin-top: 12px; }

/* ---- Afsluiter --------------------------------------------- */
.mg-final { padding-block: clamp(56px, 6vw, 92px); text-align: center; background: var(--brand-orange-50); border-top: 1px solid color-mix(in oklch, var(--brand-orange) 20%, transparent); }
.mg-final h2 {
  max-width: 24ch; margin: 0 auto 16px;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em; color: var(--brand-navy-800);
}
.mg-final p { color: var(--fg-3); max-width: 58ch; margin: 0 auto 28px; font-size: 1.0625rem; }
.mg-final .mg-cta { justify-content: center; }

/* ---- Responsief -------------------------------------------- */
@media (max-width: 991.98px) {
  .mg-lede-grid, .mg-route, .mg-route--flip, .mg-route--narrow, .mg-route--pair, .mg-split, .mg-split--flip, .mg-solid__grid {
    grid-template-columns: 1fr; gap: 28px;
  }
  .mg-route--flip .mg-route__text, .mg-split--flip .mg-split__text { order: 1; }
  .mg-route--flip .mg-route__media, .mg-split--flip .mg-split__media { order: 2; }
  .mg-faq__a { padding-right: 24px; }
}
@media (max-width: 575.98px) {
  .mg-hero h1 { max-width: 18ch; }
  /* Op een smal scherm wordt de strook onleesbaar klein: toon dan enkel het
     rechterdeel, met de status en de knop "Generate articles". */
  .mg-hero__shot .mg-shot__field--filled img { height: 96px; object-fit: cover; object-position: right center; }
  .mg-shot__field { padding: 16px; }
  .mg-shot__desc { font-size: 11.5px; }
  .mg-shot__tag { font-size: 9.5px; margin-bottom: 8px; }
  .mg-shot__meta { font-size: 10px; }
  .mg-cta .btn { flex: 1 1 100%; justify-content: center; }
  .mg-faq__q { font-size: 1rem; gap: 16px; }
  .mg-faq__a { padding-right: 8px; }
}
