/* ============================================================
   EMAIL PARTNER SECTION — em-partner.css
   ============================================================ */

.ep-wrap {
  padding: 140px 60px 40px;
  background: #080808;
}

.ep-card {
  max-width: 1280px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 100px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.ep-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233,30,140,0.12) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}

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

.ep-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 28px;
}

.ep-heading .ep-accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #e91e8c;
}

.ep-text {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255,255,255,0.62);
  margin: 0 0 32px;
  max-width: 540px;
}

.ep-text:last-of-type { margin-bottom: 28px; }

/* CTAs */
.ep-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ep-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  background: #e91e8c;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(233,30,140,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ep-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(233,30,140,0.55);
}

.ep-cta svg {
  width: 13px; height: 13px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ep-cta:hover svg { transform: translate(2px, -2px); }

.ep-cta-ghost {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.ep-cta-ghost:hover {
  color: #fff;
  border-color: #e91e8c;
}

/* Google rating badge */
.ep-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.ep-rating-g {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.ep-rating-g span {
  background: conic-gradient(from -45deg, #ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ep-rating-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.ep-rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ep-rating-stars .s { color: #fbbc05; font-size: 10px; }

.ep-rating-score {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.ep-rating-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ── Right column — tablet ── */
.ep-right {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: auto;
}

.ep-tablet {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.65);
}

.ep-screen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-radius: 14px;
  overflow: hidden;
}

/* Email previews */
.ep-email {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 22;
  position: relative;
}

.ep-e1 { background: linear-gradient(180deg, #2563eb 0%, #1e40af 60%, #1e3a8a 100%); }
.ep-e2 { background: linear-gradient(180deg, #1a1a1a 0%, #3a2a1a 50%, #1a0f08 100%); }
.ep-e3 { background: linear-gradient(180deg, #fde8ef 0%, #fce4ec 50%, #f8bbd0 100%); }

.ep-e-pad {
  padding: 10px 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.ep-e-brand {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.ep-e1 .ep-e-brand { color: #fff; }
.ep-e2 .ep-e-brand { color: #f5d9a8; }
.ep-e3 .ep-e-brand { color: #d81b60; }

.ep-e-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ep-e1 .ep-e-tagline { color: rgba(255,255,255,0.6); }
.ep-e2 .ep-e-tagline { color: rgba(245,217,168,0.6); }
.ep-e3 .ep-e-tagline { color: rgba(216,27,96,0.7); }

.ep-e-hero {
  border-radius: 4px;
  flex: 1;
  min-height: 44px;
}
.ep-e1 .ep-e-hero { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ep-e2 .ep-e-hero { background: linear-gradient(135deg, #92400e, #451a03); }
.ep-e3 .ep-e-hero { background: linear-gradient(135deg, #f48fb1, #ec407a); }

.ep-e-headline {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
}
.ep-e1 .ep-e-headline { color: #fff; }
.ep-e2 .ep-e-headline { color: #f5d9a8; }
.ep-e3 .ep-e-headline { color: #ad1457; }

.ep-e-line {
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ep-e1 .ep-e-line { background: rgba(255,255,255,0.2); }
.ep-e2 .ep-e-line { background: rgba(245,217,168,0.2); }
.ep-e3 .ep-e-line { background: rgba(216,27,96,0.18); }

.ep-e-btn {
  border-radius: 50px;
  padding: 4px 6px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 6px;
  font-weight: 800;
  flex-shrink: 0;
}
.ep-e1 .ep-e-btn { background: #fff; color: #1e40af; }
.ep-e2 .ep-e-btn { background: #f5d9a8; color: #451a03; }
.ep-e3 .ep-e-btn { background: #d81b60; color: #fff; }

.ep-e-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex-shrink: 0;
}

.ep-e-thumb {
  aspect-ratio: 1;
  border-radius: 3px;
}
.ep-e1 .ep-e-thumb { background: rgba(255,255,255,0.12); }
.ep-e2 .ep-e-thumb { background: rgba(245,217,168,0.12); }
.ep-e3 .ep-e-thumb { background: rgba(216,27,96,0.12); }

/* Floating stat pills */
.ep-float-pill {
  position: absolute;
  padding: 9px 14px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  z-index: 4;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.ep-fp-1 {
  top: 10%;
  right: -4%;
  border: 1px solid rgba(233,30,140,0.4);
  animation: ep-float 4.5s ease-in-out infinite;
}

.ep-fp-2 {
  bottom: 12%;
  left: -5%;
  border: 1px solid rgba(124,58,237,0.4);
  animation: ep-float 5.5s ease-in-out 0.7s infinite;
}

.ep-fp-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}

.ep-fp-value {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ep-fp-value .pk { color: #e91e8c; }

@keyframes ep-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */

.ep-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 0.85s cubic-bezier(0.22,1,0.36,1);
}

.ep-card.ep-visible { opacity: 1; transform: translateY(0); }

.ep-left .ep-heading {
  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;
}

.ep-left .ep-text:nth-child(2) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.22s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.22s;
}

.ep-left .ep-text:nth-child(3) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.34s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.34s;
}

.ep-cta-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.46s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.46s;
}

.ep-rating {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.56s,
              transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.56s;
}

.ep-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s,
              transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s;
}

.ep-card.ep-visible .ep-heading,
.ep-card.ep-visible .ep-text:nth-child(2),
.ep-card.ep-visible .ep-text:nth-child(3),
.ep-card.ep-visible .ep-cta-row,
.ep-card.ep-visible .ep-rating,
.ep-card.ep-visible .ep-right {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* email cards stagger in */
.ep-email {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.ep-email:nth-child(1) { transition-delay: 0.45s; }
.ep-email:nth-child(2) { transition-delay: 0.58s; }
.ep-email:nth-child(3) { transition-delay: 0.71s; }

.ep-card.ep-visible .ep-email {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile */
@media (max-width: 860px) {
  .ep-wrap { padding: 60px 24px; }
  .ep-card {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0;
  }
  .ep-fp-1 { right: 2%; }
  .ep-fp-2 { left: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-card, .ep-card .ep-heading, .ep-card .ep-text,
  .ep-cta-row, .ep-rating, .ep-right, .ep-email,
  .ep-fp-1, .ep-fp-2 { transition: none; animation: none; opacity: 1; transform: none; }
}

/* mobile readability: micro-labels under 10px are raised on phones */
@media (max-width: 768px) {
  .ep-rating-score { font-size: 10.5px; }
  .ep-rating-sub { font-size: 10.5px; }
  .ep-e-brand { font-size: 10.5px; }
  .ep-e-tagline { font-size: 10.5px; }
  .ep-e-headline { font-size: 10.5px; }
  .ep-e-btn { font-size: 10.5px; }
  .ep-fp-label { font-size: 10.5px; }
}
