/* Alleen de vernieuwde Maildirect-hero; typografie en knoppen komen uit style.css. */
.maildirect-hero {
  position: relative;
  isolation: isolate;
  padding: 150px 0 65px;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 45%, #dceaff 0, #eef5ff 35%, #f7f9fd 72%);
}

.maildirect-hero .maildirect-hero-layout {
  position: relative;
  z-index: 1;
}

.maildirect-hero .maildirect-hero-stage {
  position: static;
}

.maildirect-hero .maildirect-hero-copy {
  position: relative;
  z-index: 1;
  width: 44%;
}

.maildirect-hero .subtitle {
  display: block;
  letter-spacing: 5px;
}

.maildirect-hero .maildirect-hero-title {
  margin-bottom: 40px;
  line-height: 1.0;
}

.maildirect-hero .maildirect-hero-accent {
  color: #00aeef;
}

.maildirect-hero .maildirect-hero-description {
  max-width: 560px;
  margin-bottom: 40px;
}

.maildirect-hero .maildirect-hero-actions {
  gap: 20px 28px;
  margin-bottom: 30px;
}

.maildirect-hero .maildirect-hero-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #4382ff;
  font-size: 16px;
  font-weight: 600;
}

.maildirect-hero .maildirect-hero-benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.maildirect-hero .maildirect-hero-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.maildirect-hero .maildirect-hero-check {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 11px;
}

.maildirect-hero .maildirect-hero-background {
    position: absolute;
    z-index: 0;
    top: 160px;
    left: calc(50% - 79px); /* gecentreerd + 100px naar rechts */
    width: 878px;
    height: auto;
    background-image: url(../images/maildirectheader.svg);
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% auto;
    pointer-events: none;
}

.maildirect-hero a:focus-visible {
  outline: 3px solid #284a9f;
  outline-offset: 5px;
}


/* Reserveer ruimte voor de desktopvisual, onafhankelijk van de tekst. */
@media (min-width: 992px) {
  .maildirect-hero .maildirect-hero-layout {
    min-height: 640px;
  }
}

/* Vanaf 1400px blijft de kop boven de tekst, links naast de visual. */
@media (min-width: 1400px) {
  .maildirect-hero .maildirect-hero-heading {
    position: relative;
    z-index: 1;
    width: 44%;
  }

  .maildirect-hero .maildirect-hero-stage {
    position: static;
    min-height: 0;
    aspect-ratio: auto;
  }

}

/* Onder 1400px krijgt de kop een eigen rij over de hele container. */
@media (max-width: 1399.98px) {
  .maildirect-hero .maildirect-hero-title {
    margin-bottom: 40px;
  }


}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .maildirect-hero .maildirect-hero-title {
    font-size: 50px; /* Bestaande desktop-slidergrootte op dit breakpoint. */
  }
}

@media (max-width: 991.98px) {
  .maildirect-hero {
    padding: 130px 0 45px;
  }

  .maildirect-hero .maildirect-hero-title-break,
  .maildirect-hero .maildirect-hero-description br {
    display: none;
  }

  .maildirect-hero .maildirect-hero-stage {
    min-height: 0;
    aspect-ratio: auto;
  }

  .maildirect-hero .maildirect-hero-copy {
    width: 100%;
  }

  .maildirect-hero .maildirect-hero-heading {
    width: 100%;
  }

  .maildirect-hero .maildirect-hero-description {
    max-width: none;
  }

  .maildirect-hero .maildirect-hero-background {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 2560 / 1440;
    margin-top: 15px;
    background-size: contain;
  }
}

@media (max-width: 575.98px) {
  .maildirect-hero {
    padding: 115px 0 30px;
  }

  .maildirect-hero .subtitle {
    letter-spacing: 3px;
  }

  .maildirect-hero .maildirect-hero-actions {
    gap: 20px;
  }

}

@media (min-width: 1399.98px) {
    .maildirect-hero .maildirect-hero-background {
    left: calc(50% - 170px)!important; /* gecentreerd + 100px naar rechts */
  }
}

/* Desktop hero: match the introduction spacing below the fixed header.
   The visual includes transparent space above the tool itself. */
@media (min-width: 1400px) {
  .maildirect-hero {
    padding-top: 190px;
  }
  .maildirect-hero .maildirect-hero-background {
    top: 150px;
  }
}

/* Hero copy and the separate benefits row below the tool visual. */
.maildirect-hero .maildirect-hero-description {
  font-family: "proxima-nova", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #001133;
}
.maildirect-hero .maildirect-hero-benefits-row {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}
.maildirect-hero .maildirect-hero-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 991.98px) {
  .maildirect-hero .maildirect-hero-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .maildirect-hero .maildirect-hero-description {
    font-size: 20px;
  }
}

/* Compact left-aligned benefits leave room for the original animated code orb. */
.maildirect-hero .maildirect-hero-benefits-row {
  padding-right: 240px;
}
.maildirect-hero .maildirect-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px 32px;
}
.maildirect-hero .maildirect-hero-benefits li {
  flex: 0 0 auto;
}
.maildirect-hero-orb-anchor {
  position: relative;
  height: 0;
  z-index: 2;
}
.maildirect-hero-orb-anchor .maildirect-hero-orb {
  right: 15px;
  bottom: -40px;
  margin-top: 0;
}
@media (max-width: 1199.98px) {
  .maildirect-hero .maildirect-hero-benefits-row {
    padding-right: 210px;
  }
}
@media (max-width: 991.98px) {
  .maildirect-hero .maildirect-hero-benefits-row {
    padding-right: 0;
  }
  .maildirect-hero .maildirect-hero-benefits {
    flex-direction: column;
    gap: 16px;
  }
  .maildirect-hero {
    padding-bottom: 70px;
  }
  .maildirect-hero-orb-anchor .maildirect-hero-orb {
    width: 120px;
    height: 120px;
    padding: 30px;
  }
}

/* Responsive line breaks in the text below the hero heading. */
@media (max-width: 1200px) {
  .maildirect-hero .maildirect-hero-description .maildirect-hero-break-email,
  .maildirect-hero .maildirect-hero-description .maildirect-hero-break-desktop {
    display: none;
  }
}
@media (max-width: 992px) {
  .maildirect-hero .maildirect-hero-description br {
    display: none;
  }
}

/* Keep text and tool in the same top-aligned row on every desktop width. */
@media (min-width: 992px) {
  .maildirect-hero > .container {
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    align-items: start;
    column-gap: 40px;
  }
  .maildirect-hero .maildirect-hero-layout {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }
  .maildirect-hero .maildirect-hero-heading,
  .maildirect-hero .maildirect-hero-copy {
    width: 100%;
  }
  .maildirect-hero .maildirect-hero-background {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    top: auto;
    left: auto !important;
    width: 100%;
    height: auto;
    aspect-ratio: 2560 / 1440;
    /* The SVG has no transparent top edge; align it with its grid row. */
    transform: none;
    margin-top: 0;
    align-self: start;
  }
  .maildirect-hero .maildirect-hero-benefits-row {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Below 1200px, give the H1 its own full-width row at the standard heading size. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .maildirect-hero .maildirect-hero-layout {
    display: contents;
  }
  .maildirect-hero .maildirect-hero-heading {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    z-index: 1;
  }
  .maildirect-hero .maildirect-hero-title {
    font-size: 60px;
  }
  .maildirect-hero .maildirect-hero-title-break {
    display: none;
  }
  .maildirect-hero .maildirect-hero-stage {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    z-index: 1;
  }
  .maildirect-hero .maildirect-hero-background {
    grid-column: 2;
    grid-row: 2;
  }
  .maildirect-hero .maildirect-hero-benefits-row {
    grid-row: 3;
  }
}

@media (max-width: 1399.98px) {
  .maildirect-hero .maildirect-hero-description .maildirect-hero-break-email {
    display: none;
  }
}

/* Dutch hero copy: use a different break only at the 1200–1399px breakpoint. */
.maildirect-hero .maildirect-hero-description .maildirect-hero-break-nl-medium {
  display: none;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  html[lang="nl"] .maildirect-hero .maildirect-hero-description .maildirect-hero-break-nl-medium {
    display: initial;
  }
  html[lang="nl"] .maildirect-hero .maildirect-hero-description .maildirect-hero-break-desktop {
    display: none;
  }
}

/* English interface visual; keep the shared positioning and rounded corners. */
html[lang="en"] .maildirect-hero .maildirect-hero-background {
  background-image: url(../images/maildirectheader-eng.svg);
}
