/* ============================================================
   EMAIL MARKETING — IMAGINE THIS SECTION
   em-imagine.css
   ============================================================ */

.ei-section {
  background: #080808;
  padding: 0 40px 100px;
  position: relative;
}

.ei-card {
  max-width: 1280px;
  margin: 0 auto;
  background: radial-gradient(
    ellipse at 72% 50%,
    rgba(124,58,237,0.38) 0%,
    rgba(60,15,85,0.42) 35%,
    rgba(15,5,25,0.90) 75%,
    #0a0510 100%
  );
  border-radius: 28px;
  padding: 70px 80px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Ambient glows */
.ei-glow-1 {
  position: absolute;
  top: -10%; right: 15%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(233,30,140,0.42) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.ei-glow-2 {
  position: absolute;
  bottom: 10%; right: -5%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(124,58,237,0.52) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.ei-glow-3 {
  position: absolute;
  bottom: 5%; right: 28%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(233,30,140,0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

/* ── Left column ── */
.ei-left {
  position: relative;
  z-index: 2;
}

.ei-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 24px;
}

.ei-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: #e91e8c;
  font-weight: 500;
  display: block;
  margin-top: 6px;
}

.ei-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.63);
  margin: 0 0 38px;
  max-width: 460px;
}

.ei-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: #e91e8c;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 50px rgba(233,30,140,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ei-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(233,30,140,0.6);
  color: #fff;
}
.ei-cta svg { transition: transform 0.3s ease; flex-shrink: 0; }
.ei-cta:hover svg { transform: translate(2px, -2px); }

/* ── Right column ── */
.ei-right {
  position: relative;
  z-index: 2;
  min-height: 380px;
}

/* Floating ambient dots */
.ei-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ei-dot-1 {
  width: 5px; height: 5px;
  background: #e91e8c;
  top: 10%; right: 16%;
  box-shadow: 0 0 14px rgba(233,30,140,0.75);
  animation: ei-pulse 3s ease-in-out infinite;
}
.ei-dot-2 {
  width: 4px; height: 4px;
  background: #b59bff;
  top: 58%; right: 6%;
  box-shadow: 0 0 10px rgba(181,155,255,0.65);
  animation: ei-pulse 3.5s ease-in-out infinite 0.5s;
}
.ei-dot-3 {
  width: 5px; height: 5px;
  background: #4ade80;
  bottom: 20%; right: 24%;
  box-shadow: 0 0 12px rgba(74,222,128,0.6);
  animation: ei-pulse 4s ease-in-out infinite 1s;
}

/* Floating pill cards */
.ei-pill {
  position: absolute;
  background: rgba(12,8,20,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 13px 20px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* Pill 1 — top — pink (Open Rate) */
.ei-pill-1 {
  top: 12%;
  left: 24%;
  transform: rotate(-4deg);
  border: 1px solid rgba(233,30,140,0.4);
  animation: ei-float-1 4s ease-in-out infinite;
}

/* Pill 2 — middle right — purple (Click Rate) */
.ei-pill-2 {
  top: 44%;
  left: 52%;
  transform: rotate(5deg);
  border: 1px solid rgba(181,155,255,0.4);
  animation: ei-float-2 5s ease-in-out infinite;
}

/* Pill 3 — bottom — neutral (Revenue / Email) */
.ei-pill-3 {
  bottom: 12%;
  left: 18%;
  transform: rotate(-2deg);
  border: 1px solid rgba(255,255,255,0.1);
  animation: ei-float-3 4.5s ease-in-out infinite;
}

.ei-pill-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.ei-pill-1 .ei-pill-label { color: #e91e8c; }
.ei-pill-2 .ei-pill-label { color: #b59bff; }
.ei-pill-3 .ei-pill-label { color: rgba(255,255,255,0.55); }

.ei-pill-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(74,222,128,0.8);
  animation: ei-pulse 2.5s ease-in-out infinite;
}

.ei-pill-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ei-pill-3 .ei-pill-value { font-size: 18px; }

/* Target ring */
.ei-target {
  position: absolute;
  top: 34%; left: 38%;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(233,30,140,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ei-ring-pulse 3s ease-in-out infinite;
}
.ei-target::after {
  content: '';
  width: 9px; height: 9px;
  background: #e91e8c;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(233,30,140,0.8);
}

/* Keyframes */
@keyframes ei-float-1 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%       { transform: rotate(-4deg) translateY(-9px); }
}
@keyframes ei-float-2 {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%       { transform: rotate(5deg) translateY(-11px); }
}
@keyframes ei-float-3 {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%       { transform: rotate(-2deg) translateY(-7px); }
}
@keyframes ei-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.35); }
}
@keyframes ei-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233,30,140,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(233,30,140,0); }
}

/* Scroll animations */
.ei-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.ei-card.ei-visible { opacity: 1; transform: translateY(0); }

.ei-headline {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1) 0.1s,
              transform 0.75s cubic-bezier(0.22,1,0.36,1) 0.1s;
}
.ei-sub {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.24s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.24s;
}
.ei-cta {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.38s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.38s;
}
.ei-pill {
  opacity: 0; transform: translateY(20px) scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.ei-pill-1 { transition-delay: 0.45s; }
.ei-pill-2 { transition-delay: 0.60s; }
.ei-pill-3 { transition-delay: 0.75s; }

.ei-card.ei-visible .ei-headline,
.ei-card.ei-visible .ei-sub,
.ei-card.ei-visible .ei-cta {
  opacity: 1; transform: translateY(0);
}
.ei-card.ei-visible .ei-pill {
  opacity: 1; transform: translateY(0) scale(1);
}

/* Mobile */
@media (max-width: 900px) {
  .ei-section { padding: 0 20px 70px; }
  .ei-card {
    grid-template-columns: 1fr;
    padding: 44px 28px;
    gap: 32px;
    min-height: auto;
  }
  .ei-right { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .ei-pill-1, .ei-pill-2, .ei-pill-3,
  .ei-dot-1, .ei-dot-2, .ei-dot-3,
  .ei-target, .ei-pill-dot { animation: none; }
}

/* ════════════════════════════════════════════════
   "NOW IMAGINE" PHOTO — full-bleed right half
   Bleeds past .ei-card's 70px/80px padding to the
   card edge; .ei-card has overflow:hidden so the
   28px corner radius clips it cleanly.
   Swap /images/em-imagine-img.jpg to change the image.
   ════════════════════════════════════════════════ */
.ei-photo {
  position: absolute;
  top: -70px;        /* cancel card padding-top    */
  bottom: -70px;     /* cancel card padding-bottom */
  right: -80px;      /* cancel card padding-right  */
  left: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 1;
}

.ei-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Soft fade on the left edge so the photo melts into the
   purple gradient rather than ending on a hard vertical line. */
.ei-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(15,5,25,0.95) 0%,
    rgba(15,5,25,0.55) 18%,
    rgba(15,5,25,0.12) 40%,
    transparent 62%
  );
}

/* Keep the headline/CTA above the photo */
.ei-left { z-index: 3; }

@media (max-width: 900px) {
  .ei-photo {
    position: relative;
    top: auto; bottom: auto; right: auto; left: auto;
    width: 100%;
    height: 260px;
    margin-top: 24px;
    border-radius: 16px;
  }
  .ei-photo::after {
    background: linear-gradient(0deg, rgba(15,5,25,0.55) 0%, transparent 55%);
  }
}

/* mobile readability: micro-labels under 10px are raised on phones */
@media (max-width: 768px) {
  .ei-pill-label { font-size: 10.5px; }
}
