/* ===================== EMAIL MARKETING PAGE ===================== */
@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ----- HERO layer 1 ----- */
.emhero {
  position: relative;
  padding: calc(var(--h-head) + 44px) 0 34px;
  background: #fff;
  overflow: hidden;
}
.emhero .hero-mesh .h1b {
  top: -220px;
  right: -40px;
}
.emhero .hero-mesh .h2b {
  bottom: -180px;
  left: -70px;
}
.emh-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.emh-copy {
  width: 100%;
  max-width: 760px;
}
.emh-copy .eyebrow {
  margin-bottom: 14px;
}
.emh-copy h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  min-height: 2.2em;
}
.emh-copy h1 .tw {
  color: var(--blue);
  border-right: 3px solid var(--blue);
  padding-right: 4px;
  white-space: nowrap;
}
.emh-copy h1 .tw.blink {
  animation: emCaret 0.8s step-end infinite;
}
@keyframes emCaret {
  0%, 100% {
    border-color: var(--blue);
  }
  50% {
    border-color: transparent;
  }
}
.emh-copy .sub {
  color: var(--slate);
  font-size: 1.06rem;
  max-width: 640px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
}
.emh-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
}
.emh-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.emh-visual::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at 60% 40%, var(--blue-12), transparent 62%);
  z-index: 0;
}
.emh-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  animation: floaty 6.5s ease-in-out infinite;
}
.emh-frame .img-frame {
  aspect-ratio: 16/11;
  box-shadow: 0 30px 70px rgba(24, 104, 251, 0.22);
}
.em-part {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  z-index: 1;
  animation: emPart 7s ease-in-out infinite;
}
@keyframes emPart {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-26px);
    opacity: 0.7;
  }
}
.em-part.p1 {
  width: 8px;
  height: 8px;
  top: 8%;
  left: 6%;
}
.em-part.p2 {
  width: 6px;
  height: 6px;
  bottom: 14%;
  left: 12%;
  animation-delay: 1.4s;
}
.em-part.p3 {
  width: 10px;
  height: 10px;
  top: 16%;
  right: 5%;
  animation-delay: 2.6s;
}
.em-part.p4 {
  width: 5px;
  height: 5px;
  bottom: 8%;
  right: 12%;
  animation-delay: 0.8s;
}

/* ----- HERO layer 2: banner carousel ----- */
.emcar-wrap {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  padding-bottom: 64px;
}
.emcar {
  position: relative;
  border-radius: 22px;
  aspect-ratio: 16/9;
  box-shadow: 0 28px 64px rgba(24, 104, 251, 0.2);
  isolation: isolate;
}
.emcar::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background: radial-gradient(closest-side, var(--blue-18), transparent);
  z-index: -1;
  filter: blur(14px);
}
.em-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.em-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.em-slide .img-frame {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}
.em-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--blue-12);
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.em-arrow:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.em-arrow svg {
  width: 19px;
  height: 19px;
}
.em-arrow.prev {
  left: -14px;
}
.em-arrow.next {
  right: -14px;
}
.em-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.em-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue-18);
  border: none;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
}
.em-dot.on {
  width: 26px;
  background: var(--blue);
}

/* ----- BENEFITS 2x2 ----- */
.emb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.emb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.28s;
}
.emb-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
  border-color: var(--blue-18);
}
.emb-card h4 {
  font-size: 1.15rem;
  margin-bottom: 9px;
}
.emb-card p {
  font-size: 0.9rem;
  color: var(--slate);
}
.emb-card .bimg {
  aspect-ratio: 4/3;
}
.emb-card .bimg .ph-art svg {
  width: 34px;
  height: 34px;
}
.emb-card .bimg .ph-note {
  font-size: 0.55rem;
  padding: 2px 8px;
}
.emb-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ----- STICKY: template builder ----- */
.emtpl {
  background: var(--bg-tint);
}
.es-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 56px;
  align-items: start;
}
.es-steps {
  display: flex;
  flex-direction: column;
}
.es-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.4s;
}
.es-step.on {
  opacity: 1;
}
.es-step .stepno {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  background: none;
  padding: 0;
  border-radius: 0;
}
.es-step h3 {
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  margin-bottom: 12px;
}
.es-step p {
  color: var(--slate);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 16px;
}
.es-step ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.es-step li {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.es-step li svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex: 0 0 auto;
}
.es-step .es-mini {
  display: none;
}
.es-stick {
  position: sticky;
  top: calc(var(--h-head) + 34px);
}
.es-screen {
  position: relative;
  aspect-ratio: 16/9;
}
.es-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.es-frame.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.es-frame .img-frame {
  width: 100%;
  height: 100%;
  box-shadow: 0 26px 60px rgba(24, 104, 251, 0.16);
}
.es-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 16px;
}
.es-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-18);
  transition: 0.3s;
}
.es-dots i.on {
  width: 24px;
  background: var(--blue);
}

/* ----- A/B TESTING ----- */
.emab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.emab-img .img-frame {
  aspect-ratio: 16/9;
  animation: floaty 7s ease-in-out infinite;
  box-shadow: 0 24px 58px rgba(24, 104, 251, 0.16);
}
.emab-copy h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  margin-bottom: 14px;
}
.emab-copy p {
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 470px;
  margin-bottom: 24px;
}
.emab-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* ----- responsive ----- */
@media(max-width: 1024px) {
  .emh-copy h1 {
    min-height: 0;
  }
  .emcar {
    aspect-ratio: 16/9;
  }
  .em-arrow.prev {
    left: 8px;
  }
  .em-arrow.next {
    right: 8px;
  }
  .emb-grid {
    grid-template-columns: 1fr;
  }
  .es-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .es-stick {
    display: none;
  }
  .es-step {
    min-height: 0;
    opacity: 1;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
  }
  .es-step:last-child {
    border-bottom: none;
  }
  .es-step .es-mini {
    display: block;
    margin-top: 18px;
  }
  .es-step .es-mini .img-frame {
    aspect-ratio: 16/9;
  }
  .emab-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media(max-width: 600px) {
  .emcar {
    aspect-ratio: 16/9;
  }
}
