/* Email Marketing illustration: connected customer journey (.em). Built on the shared .vz system. */
.em__body {
  padding-bottom: 1.4rem;
}
.em__map {
  position: relative;
  aspect-ratio: 100 / 74;
}
.em__lines {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}
.em__lines path {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* Small arrowheads where each connection arrives. */
.em__arrow {
  position: absolute;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.45rem solid var(--secondary);
  transform: translate(-50%, -50%);
}
.em__arrow--a {
  top: 22%;
  left: 33.5%;
}
.em__arrow--b {
  top: 70%;
  left: 33.5%;
}
.em__arrow--c {
  top: 46%;
  left: 75.5%;
}
.em__arrow--d {
  top: 46%;
  left: 75.5%;
  display: none;
}
.em__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--vz-line);
  border-radius: 0.85rem;
  background-color: #fff;
  padding: 0.45rem 0.5rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0.5rem 1.1rem rgba(0, 31, 63, 0.08);
}
.em__node--t1,
.em__node--t2 {
  left: 13%;
  width: 24%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.em__node--t1 {
  top: 22%;
}
.em__node--t2 {
  top: 70%;
}
.em__node--e1,
.em__node--e2 {
  left: 49%;
  width: 30%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.45rem;
}
.em__node--e1 {
  top: 22%;
}
.em__node--e2 {
  top: 70%;
}
.em__node--out {
  top: 46%;
  left: 88%;
  width: 22%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  background: linear-gradient(145deg, #12406e, var(--primary));
  border-color: transparent;
  box-shadow: 0 0 0 0.35rem rgba(67, 183, 255, 0.22), 0 0.75rem 1.5rem rgba(0, 31, 63, 0.25);
}
.em__ico {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 0.5rem;
  background-color: var(--primary);
  height: 1.55rem;
  width: 1.55rem;
  color: #fff;
}
.em__ico svg {
  height: 0.9rem;
  width: 0.9rem;
}
.em__ico--out {
  background-color: var(--secondary);
  color: var(--primary);
}
.em__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.em__text b {
  font-size: 0.75rem;
  line-height: 1.15em;
  font-weight: 700;
  color: var(--headerColor);
}
.em__text small {
  font-size: 0.5625rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #5b6b7d;
}
.em__node--t1 .em__text small,
.em__node--t2 .em__text small {
  order: -1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vz-text-blue);
}
.em__node--out .em__text b {
  color: #fff;
}
.em__node--out .em__text small {
  color: rgba(255, 255, 255, 0.78);
}

/* A small email design preview inside each email step. */
.em__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--vz-line);
  border-radius: 0.4rem;
  background-color: #f7f9fb;
  height: 2.1rem;
}
.em__thumb i {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background-color: var(--primary);
  height: 0.5rem;
}
.em__thumb b {
  position: absolute;
  top: 0.75rem;
  left: 0.3rem;
  border-radius: 0.2rem;
  background: linear-gradient(145deg, #bfe5fb, #43b7ff);
  height: 0.8rem;
  width: 42%;
}
.em__thumb u {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  border-radius: 1rem;
  background-color: var(--primary);
  height: 0.35rem;
  width: 26%;
}

/* Floating cards */
.em__perf,
.em__health {
  padding: 0.85rem 0.95rem 0.95rem;
}
.em__perf ul,
.em__health ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.em__perf li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #5b6b7d;
}
.em__perf b {
  font-family: var(--headerFont);
  font-size: 1.125rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--headerColor);
}
.em__health li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--headerColor);
}
.em__health li svg {
  flex: none;
  border-radius: 50%;
  background-color: rgba(67, 183, 255, 0.2);
  padding: 3px;
  height: 1.2rem;
  width: 1.2rem;
  color: var(--vz-text-blue);
}
@media only screen and (min-width: 64rem) {
  .em .vz__stage {
    padding-bottom: 6.5rem;
  }
  .em__perf {
    bottom: 0;
    left: -1.5rem;
    width: 13rem;
  }
  .em__health {
    right: -1.5rem;
    bottom: 1.25rem;
    width: 14.5rem;
  }
}

/* Phones and tablets: the two cards sit side by side over the lower edge of the journey. */
@media only screen and (max-width: 63.999rem) {
  .em .vz__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 0 0.65rem;
    padding: 0 0.25rem;
  }
  .em .vz__card {
    grid-column: 1 / -1;
  }
  .em__perf,
  .em__health {
    position: relative;
    z-index: 2;
    margin-top: -0.9rem;
    padding: 0.7rem 0.7rem 0.8rem;
  }
  .em__perf {
    margin-left: 0.4rem;
  }
  .em__health {
    margin-right: 0.4rem;
  }
  .em__perf li,
  .em__health li {
    font-size: 0.6875rem;
  }
  .em__perf b {
    font-size: 1rem;
  }
}
@media only screen and (max-width: 30rem) {
  .em .vz__body {
    padding: 0.8rem 0.8rem 1.5rem;
  }
  .em__node {
    padding: 0.35rem 0.4rem;
  }
  .em__text b {
    font-size: 0.6875rem;
  }
  .em__text small {
    font-size: 0.5rem;
  }
  .em__ico {
    height: 1.3rem;
    width: 1.3rem;
  }
  .em__thumb {
    height: 1.7rem;
  }
  .em__thumb b {
    top: 0.65rem;
    height: 0.6rem;
  }
}

/* Dark mode */
html.dark-mode .em__node {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: #0d1d2b;
  box-shadow: none;
}
html.dark-mode .em__node--out {
  border-color: transparent;
  background: linear-gradient(145deg, #12406e, #0a2b4c);
}
html.dark-mode .em__ico {
  background-color: var(--secondary);
  color: var(--primary);
}
html.dark-mode .em__ico--out {
  background-color: #fff;
}
html.dark-mode .em__text b,
html.dark-mode .em__perf b,
html.dark-mode .em__health li {
  color: #fff;
}
html.dark-mode .em__text small,
html.dark-mode .em__perf li {
  color: rgba(255, 255, 255, 0.68);
}
html.dark-mode .em__node--t1 .em__text small,
html.dark-mode .em__node--t2 .em__text small {
  color: var(--secondary);
}
html.dark-mode .em__thumb {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.06);
}
html.dark-mode .em__thumb i,
html.dark-mode .em__thumb u {
  background-color: var(--secondary);
}
