/* INFO block on /create-email-account (src/create-email-account.html, task 261, design A): 2 white cards with a
   drawing on top (addresses on your own domain, an inbox that blocks spam) and the green "Your own mail server" card
   (#mailserver) across both columns. Texts: DB imageCards.0/1 + map create-email-account.json. No text below 14px. */

.cei {
  padding-top: 84px;
  padding-bottom: 92px;
  color: var(--foreground);
}

.cei :where(h2, h3, p, ul) {
  margin: 0;
}

.cei :where(ul) {
  padding: 0;
  list-style: none;
}

.cei-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.cei-card {
  display: flex;
  flex-direction: column;
  overflow: clip;
  border: 1.5px solid #e3e1ef;
  border-radius: 24px;
  background: #fff;
}

.cei-card-addresses {
  --dot: rgb(var(--yellow));
}

.cei-card-inbox {
  --dot: var(--aqua);
}

/* ---------- Texts ---------- */
.cei-text {
  padding: 30px 34px 36px;
}

.cei-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 700 14px/1.5 var(--font-overpass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cei-eyebrow::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  transform: translateY(-1px);
}

.cei h2 {
  margin-top: 12px;
  font: 800 28px/1.15 var(--font-uni-neue);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cei h3 {
  margin-top: 12px;
  font: 400 20px/1.4 var(--font-uni-neue);
  text-wrap: pretty;
}

.cei-body {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.cei-body p + p {
  margin-top: 14px;
}

.cei-body a,
.cei-more a {
  color: #e8565b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.cei-body a:hover,
.cei-body a:focus-visible,
.cei-more a:hover,
.cei-more a:focus-visible {
  text-decoration-thickness: 2.5px;
}

.cei-more {
  margin-top: 20px;
  font-weight: 800;
}

.cei-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  font-weight: 800;
}

.cei-more .icon-arrow-right {
  font-size: 14px;
}

/* ---------- Drawings (aria-hidden) ---------- */
.cei-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 240px;
  margin: 10px 10px 0;
  overflow: clip;
  border-radius: 18px;
}

.cei-card-addresses .cei-art {
  background: var(--yellow-light);
}

.cei-card-inbox .cei-art {
  background: var(--blue);
}

.cei-art svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cei-quarter,
.cei-diamond,
.cei-circle {
  position: absolute;
}

.cei-quarter {
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  border-bottom-left-radius: 100%;
  background: rgb(var(--yellow));
}

.cei-diamond {
  bottom: 34px;
  left: 34px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--green);
  transform: rotate(45deg);
}

.cei-circle {
  top: -46px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--blue-light);
}

.cei-card-inbox .cei-diamond {
  top: 30px;
  right: 30px;
  bottom: auto;
  left: auto;
  width: 26px;
  height: 26px;
  background: var(--pink);
}

/* Card 1: the main address with two smaller ones (like the hero's address card). */
.cei-stack {
  container-type: inline-size;
  position: relative;
  width: min(84%, 380px);
}

.cei-stack::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 6px;
  left: 6px;
  height: calc(100% + 2px);
  border-radius: 12px;
  background: var(--pink);
  transform: rotate(2.5deg);
}

.cei-address {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 19px 12px;
  border: 2px solid var(--foreground);
  border-radius: 12px;
  background: #fff8ed;
  font: 800 clamp(16px, 6.9cqi, 26px) / 1.2 var(--font-uni-neue);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cei-address svg {
  width: 1.08em;
  height: 1.08em;
}

.cei-address b,
.cei-pill b {
  color: var(--purple-400);
}

.cei-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  padding: 7px 14px;
  border: 2px solid var(--foreground);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--foreground);
  font: 800 15px/1.2 var(--font-nunito);
  white-space: nowrap;
}

.cei-pill-top {
  top: -50px;
  left: -4%;
  transform: rotate(-5deg);
}

.cei-pill-bottom {
  right: -3%;
  bottom: -58px;
  transform: rotate(4deg);
}

/* Card 2: an inbox window that stops a spam message. */
.cei-window-wrap {
  position: relative;
  width: min(74%, 310px);
}

.cei-window {
  overflow: clip;
  border: 2px solid var(--foreground);
  border-radius: 14px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--foreground);
}

.cei-window-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 2px solid var(--foreground);
  background: #f4f3f8;
}

.cei-window-bar i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--foreground);
  border-radius: 50%;
  background: var(--pink);
}

.cei-window-bar i:nth-child(2) {
  background: rgb(var(--yellow));
}

.cei-window-bar i:nth-child(3) {
  background: var(--green);
}

.cei-window ul {
  padding: 4px 14px;
}

.cei-window li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1.5px solid #ecebf3;
}

.cei-window li:last-child {
  border-bottom: 0;
}

.cei-window li > i {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--foreground);
  border-radius: 50%;
  background: rgb(var(--yellow));
}

.cei-window li:nth-child(2) > i {
  background: var(--pink);
}

.cei-window li:nth-child(3) > i {
  background: var(--green);
}

.cei-window li > span {
  position: relative;
  display: grid;
  flex: 1;
  gap: 5px;
}

.cei-window li b {
  height: 6px;
  border-radius: 3px;
  background: #dcdae8;
}

.cei-window li b:first-child {
  width: 58%;
  background: #b9b6cc;
}

.cei-spam > i,
.cei-spam > span {
  opacity: 0.35;
}

.cei-spam > span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2px;
  left: -2px;
  height: 2px;
  background: #e8565b;
}

.cei-spam em {
  color: #e8565b;
  font-size: 14px;
  font-style: normal;
}

.cei-meter {
  height: 8px;
  margin: 2px 14px 14px;
  overflow: hidden;
  border-radius: 4px;
  background: #ecebf3;
}

.cei-meter span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: 4px;
  background: var(--green-dark);
}

.cei-badge {
  position: absolute;
  right: -26px;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 3px 3px 0 var(--foreground);
  font-size: 28px;
}

/* ---------- Mail server card (#mailserver) across both columns ---------- */
.cei-server {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 36px;
  align-items: center;
  padding: 42px 48px;
  overflow: clip;
  border-radius: 24px;
  background: rgb(var(--green-light));
}

.cei .cei-server h2 {
  margin-top: 0;
  font-size: 32px;
}

.cei-server .cei-body {
  font-size: 17px;
}

.cei-server .cei-body a {
  color: var(--foreground);
}

.cei-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.cei-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border: 2px solid var(--foreground);
  border-radius: 999px;
  background: #fff;
  font: 800 14px/1.2 var(--font-nunito);
}

.cei-tags .icon-check {
  color: var(--green-dark);
  font-size: 14px;
}

.cei-art-server {
  height: 210px;
  margin: 0;
  overflow: visible;
}

.cei-rack {
  display: grid;
  gap: 12px;
  width: 230px;
}

.cei-rack li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 2px solid var(--foreground);
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--foreground);
}

.cei-rack i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9d7e6;
}

.cei-rack span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #dcdae8;
}

.cei-rack span + span {
  flex: 0.6;
}

.cei-rack b {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--foreground);
  border-radius: 50%;
  background: var(--green);
}

.cei-rack li:nth-child(2) b {
  background: rgb(var(--yellow));
}

.cei-envelope {
  position: absolute;
  top: -6px;
  right: 4%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid var(--foreground);
  border-radius: 50%;
  background: rgb(var(--yellow));
  box-shadow: 3px 3px 0 var(--foreground);
  transform: rotate(-8deg);
}

.cei-envelope svg {
  width: 28px;
  height: 28px;
}

/* ---------- Widths ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .cei-text {
    padding: 26px 26px 30px;
  }
}

/* Tablets and phones: one column, the server drawing above the mail server text. */
@media (max-width: 1023px) {
  .cei-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cei-server {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cei-art-server {
    order: -1;
    height: 190px;
  }
}

@media (max-width: 600px) {
  .cei {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .cei-grid {
    gap: 20px;
  }

  .cei-card {
    margin-inline: -8px;
    border-radius: 20px;
  }

  .cei-text {
    padding: 24px 20px 28px;
  }

  /* nl card title ends in "naam@jouwbedrijf.nl" (one word): it must fit at 320px. */
  .cei h2 {
    font-size: clamp(24px, 7.2vw, 28px);
  }

  .cei-art {
    height: 210px;
    margin: 8px 8px 0;
    border-radius: 14px;
  }

  .cei-address {
    padding: 15px 10px;
  }

  .cei-pill {
    padding: 6px 11px;
    font-size: 14px;
  }

  .cei-pill-top {
    top: -46px;
  }

  .cei-pill-bottom {
    bottom: -52px;
  }

  .cei-card-inbox .cei-diamond {
    display: none;
  }

  .cei-badge {
    right: -14px;
    bottom: -18px;
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .cei-server {
    margin-inline: -8px;
    padding: 26px 20px 30px;
    border-radius: 20px;
  }

  .cei .cei-server h2 {
    font-size: clamp(24px, 6.7vw, 26px);
  }

  .cei-art-server {
    height: 180px;
  }

  .cei-rack {
    width: 200px;
  }

  .cei-envelope {
    right: 2%;
  }
}
