/* Email Marketing concept v2 — "Revenue per send"
   Orbiting envelopes converging on a live dollar counter, with a stack of
   real-channel outcome rows beneath. Replaces the previous send-log art.
*/

.email-card .wide-art { display: none; } /* belt-and-suspenders */

.email-art {
  position: relative;
  display: flex; flex-direction: column;
  gap: 18px;
  background: linear-gradient(160deg, #2A0855 0%, #1E0438 100%);
  border-radius: var(--radius-2xl);
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  min-height: 360px;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.email-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 50% 30%, rgba(241,197,24,.18) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(123,61,184,.4) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.email-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 75%);
  pointer-events: none; z-index: 0;
}
.email-art > * { position: relative; z-index: 1; }

/* ── Orbit / centerpiece ─────────────────────────────────────── */
.email-orbit {
  position: relative;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.email-orbit-ring {
  position: absolute; left: 50%; top: 50%;
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 99px;
  border: 1px dashed rgba(241,197,24,.32);
  animation: email-spin 24s linear infinite;
}
.email-orbit-ring-2 {
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  border-color: rgba(255,255,255,.08);
  animation-duration: 40s;
  animation-direction: reverse;
}
@keyframes email-spin { to { transform: rotate(360deg); } }

.email-core {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, #F5D24A 0%, #F1C518 60%, #C9A412 100%);
  color: var(--brand-purple-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 16px;
  box-shadow:
    0 18px 50px rgba(241,197,24,.45),
    inset 0 -8px 22px rgba(154,120,8,.4),
    inset 0 8px 22px rgba(255,255,255,.4);
  animation: email-pulse 3.6s ease-in-out infinite;
}
@keyframes email-pulse {
  0%, 100% { box-shadow: 0 18px 50px rgba(241,197,24,.45), inset 0 -8px 22px rgba(154,120,8,.4), inset 0 8px 22px rgba(255,255,255,.4); }
  50%      { box-shadow: 0 18px 70px rgba(241,197,24,.7),  inset 0 -8px 22px rgba(154,120,8,.4), inset 0 8px 22px rgba(255,255,255,.5); }
}

.email-core-eyebrow {
  font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-purple-700);
  opacity: .85;
}
.email-core-amount {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-family: var(--font-display); font-weight: 300; line-height: 1;
  font-size: 46px; letter-spacing: -.03em;
  color: var(--brand-purple-900);
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.email-core-amount .curr { font-size: 22px; font-weight: 400; opacity: .7; transform: translateY(-10px); }
.email-core-amount .dec { font-size: 16px; font-weight: 400; opacity: .55; align-self: flex-end; transform: translateY(-4px); }
.email-core-sub {
  font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  color: rgba(40,5,80,.65);
  margin-top: 2px;
}

/* ── Orbiting envelope packets ───────────────────────────────── */
.email-pkt {
  position: absolute;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  color: var(--brand-purple-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.3), 0 0 0 1px rgba(241,197,24,.4);
  z-index: 2;
}
.email-pkt svg { width: 16px; height: 16px; }

.email-pkt-1 { animation: pkt-orbit-1 5.2s ease-in-out infinite; }
.email-pkt-2 { animation: pkt-orbit-2 6.4s ease-in-out infinite; animation-delay: -1.6s; }
.email-pkt-3 { animation: pkt-orbit-3 7.6s ease-in-out infinite; animation-delay: -3.2s; }

/* Each packet enters from an outer point, curves in, and "lands" into the core (fade out near center) */
@keyframes pkt-orbit-1 {
  0%   { transform: translate(-160px, -90px) scale(1);   opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translate(-30px, -10px) scale(.9);   opacity: .95; }
  85%  { transform: translate(0, 0) scale(.4);           opacity: 0; }
  100% { transform: translate(0, 0) scale(.4);           opacity: 0; }
}
@keyframes pkt-orbit-2 {
  0%   { transform: translate(150px, -80px) scale(1);    opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translate(35px, -12px) scale(.9);    opacity: .95; }
  85%  { transform: translate(0, 0) scale(.4);           opacity: 0; }
  100% { transform: translate(0, 0) scale(.4);           opacity: 0; }
}
@keyframes pkt-orbit-3 {
  0%   { transform: translate(20px, 130px) scale(1);     opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translate(8px, 30px) scale(.9);      opacity: .95; }
  85%  { transform: translate(0, 0) scale(.4);           opacity: 0; }
  100% { transform: translate(0, 0) scale(.4);           opacity: 0; }
}

/* ── Outcome stack ──────────────────────────────────────────── */
.email-stack {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.email-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
  animation: email-row-in .55s var(--ease-out) both;
}
.email-row-1 { animation-delay: .15s; }
.email-row-2 { animation-delay: .3s; }
.email-row-3 { animation-delay: .45s; }
@keyframes email-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.email-row-dot {
  width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0;
}
.dot-yellow { background: #F1C518; box-shadow: 0 0 10px rgba(241,197,24,.6); }
.dot-purple { background: var(--brand-purple-300, #A77FD0); box-shadow: 0 0 10px rgba(167,127,208,.5); }
.email-row-label { flex: 1; font-weight: 500; }
.email-row-val {
  font-family: var(--font-mono); font-weight: 700; font-size: 11.5px;
  color: #F1C518;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

@media (max-width: 600px) {
  .email-orbit { height: 190px; }
  .email-core { width: 144px; height: 144px; }
  .email-core-amount { font-size: 36px; }
  .email-orbit-ring { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
  .email-orbit-ring-2 { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
}
