/* ==========================================================================
   audiences.css — 3 sticky-stacking persona cards (Sales / Ops / Business)
   Sits below the Automation Workflows section, shares its lavender wash.
   ========================================================================== */
.audiences {
  background: linear-gradient(180deg, #ebe7fc 0%, #ddd5f5 100%);
  padding-block: var(--section-py);
}
.audiences__inner { max-width: 1200px; margin-inline: auto; }

/* ---- Section header ---- */
.audiences__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto var(--gap-head-body);
  max-width: 880px;
}
.audiences__head-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  font-size: var(--eyebrow-fs);
  font-weight: var(--eyebrow-fw);
  letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase;
  color: var(--color-text);
}
.audiences__head-chip i,
.audiences__head-chip [data-lucide] {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 4px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
}
.audiences__head-title {
  font-family: var(--font-display);
  font-size: var(--fs-section-h2);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.audiences__head-accent {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0 12px 4px;
  border-radius: 10px;
  transform: rotate(-0.6deg);
}
.audiences__head-lede {
  font-size: var(--fs-section-lede);
  line-height: var(--lh-section-lede);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 56ch;
}

/* Sticky-stack wrapper */
.audiences__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Trailing runway so the last card has room to stack */
.audiences__stack::after {
  content: "";
  display: block;
  height: 240px;
}

/* Each persona card sticks under the site header.
   Solid background is critical so each card cleanly occludes the one behind
   it as the stack animation progresses. */
.aud-card {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  background: linear-gradient(180deg, #ebe7fc 0%, #ddd5f5 100%);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px;
  margin-bottom: 32px;
  z-index: calc(10 + var(--i, 0));
  box-shadow: 0 24px 60px -30px rgba(36, 28, 110, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---- LEFT: copy column ---- */
.aud-card__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: clamp(8px, 2vw, 32px);
}
.aud-card__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 4px;
}

.aud-card__features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.aud-feat h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 6px;
}
.aud-feat p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 44ch;
}

/* "Get started" CTA — dark pill with brand-purple square arrow */
.aud-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 22px 6px 6px;
  background: #fff;
  color: var(--color-text) !important;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14.5px;
  align-self: flex-start;
  margin-top: 16px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: 0 8px 16px -8px rgba(36, 28, 110, 0.18);
}
.aud-card__cta:hover {
  transform: translateY(-1px);
  color: var(--color-text) !important;
  background: #fff;
}
.aud-card__cta-arrow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.aud-card__cta-arrow svg,
.aud-card__cta-arrow i,
.aud-card__cta-arrow [data-lucide] { width: 18px; height: 18px; }

/* ---- RIGHT: dashboard image (no outer frame).
   The supplied dashboard images already include their own purple
   background, so the previous gradient wrapper was a duplicate layer.
   One soft drop shadow on the image keeps it grounded. ---- */
.aud-card__media {
  position: relative;
  display: block;
}
.aud-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.4vw, 22px);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .aud-card { grid-template-columns: 1fr; padding: clamp(24px, 4vw, 40px); }
  .aud-card__media { order: 2; }
  .aud-card__copy  { order: 1; }
}
@media (max-width: 640px) {
  .aud-card { top: 80px; border-radius: 24px; margin-bottom: 24px; }
  .aud-card__media img { border-radius: 12px; }
  .audiences__stack::after { height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .aud-card { position: static; }
  .audiences__stack::after { display: none; }
}
