/* InnoDexis conversion cards — briefs wire placements */

/* ── Animated pill button ─────────────────────────────── */
.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 7px 53px 7px 22px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  background: #FAF8F4;
  color: #0E0A1C;
  box-shadow: none;
  transition:
    box-shadow 420ms cubic-bezier(0.65, 0.05, 0.36, 1),
    transform 90ms ease,
    background 200ms ease,
    padding 420ms cubic-bezier(0.65, 0.05, 0.36, 1);
}
.pill-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.pill-btn-label {
  display: inline-block;
  position: relative;
  z-index: 0;
  transition: transform 420ms cubic-bezier(0.65, 0.05, 0.36, 1);
}
.pill-btn-disc {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
  background: #B45309;
  color: #fff;
  transition: right 420ms cubic-bezier(0.65, 0.05, 0.36, 1);
}
.pill-btn-arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  will-change: transform;
}
.pill-btn:hover {
  /* Reserve left space for parked disc: 7px inset + 34px disc + 12px gap */
  padding-left: 53px;
  padding-right: 22px;
  box-shadow: 0 5px 20px rgba(91, 33, 182, 0.28);
}
.pill-btn:hover .pill-btn-disc {
  right: calc(100% - 41px);
}
.pill-btn:hover .pill-btn-label {
  transform: translateX(4px);
}
.pill-btn:hover .pill-btn-arrow {
  animation: pill-arrow-travel 420ms cubic-bezier(0.65, 0.05, 0.36, 1) 320ms;
}
.pill-btn:active {
  transform: scale(0.975);
}
.pill-btn.on-light {
  background: #5B21B6;
  color: #fff;
}
.pill-btn.on-light .pill-btn-disc {
  background: #fff;
  color: #5B21B6;
}
.pill-btn.on-light:hover {
  background: #5B21B6;
}
.btn-full {
  width: 100%;
  justify-content: flex-start;
}

@keyframes pill-arrow-travel {
  0% { transform: translateX(0); }
  45% { transform: translateX(140%); }
  46% { transform: translateX(-140%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pill-btn,
  .pill-btn-label,
  .pill-btn-disc {
    transition-duration: 1ms !important;
  }
  .pill-btn:hover .pill-btn-arrow {
    animation: none !important;
  }
  .pill-btn:hover .pill-btn-disc {
    right: 7px;
  }
  .pill-btn:hover {
    padding-left: 22px;
    padding-right: 53px;
  }
  .pill-btn:hover .pill-btn-label {
    transform: none;
  }
  .pill-btn:active {
    transform: none;
  }
}

/* ── Unit 1 — dark rail card ──────────────────────────── */
.cta-dark {
  background: var(--dark);
  border-radius: 6px;
  padding: var(--s5);
  color: var(--d-text);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--s5);
}
.cta-dark::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, .13), transparent 68%);
}
.cta-dark .eyebrow {
  font-family: var(--font-util);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--d-cyan);
  margin-bottom: var(--s3);
}
.cta-dark h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0 0 var(--s3);
  color: var(--d-text);
}
.cta-dark h3 .em { color: var(--d-cyan); }
.cta-dark p {
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 400;
  color: #B8C0CC;
  margin: 0 0 var(--s4);
  position: relative;
  z-index: 1;
}
.statrow {
  display: flex;
  gap: var(--s5);
  border-top: 1px solid rgba(148, 163, 184, .28);
  padding-top: var(--s3);
  margin-bottom: var(--s5);
  position: relative;
  z-index: 1;
}
.statrow div { display: flex; flex-direction: column; }
.statrow .fig {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--d-text);
  line-height: 1.1;
}
.statrow .lbl {
  font-family: var(--font-util);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--d-muted);
  margin-top: 3px;
}
.cta-dark .pill-btn { position: relative; z-index: 1; margin-top: var(--s5); }

/* ── Unit 2 — digest signup ───────────────────────────── */
.cta-mail {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--s5);
  margin-bottom: var(--s5);
}
.cta-mail .eyebrow {
  font-family: var(--font-util);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--s3);
}
.cta-mail h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.24;
  letter-spacing: -.02em;
  margin: 0 0 var(--s3);
  color: var(--ink);
}
.cta-mail p {
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink2);
  margin: 0 0 var(--s4);
}
.cta-mail .field { display: block; margin-bottom: var(--s3); }
.cta-mail .field input {
  width: 100%;
  border: 1px solid var(--ink4);
  background: var(--cream);
  border-radius: 4px;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}
.cta-mail .field input::placeholder { color: var(--ink3); }
.cta-mail .field input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 0;
  border-color: var(--purple);
}
.trust {
  font-family: var(--font-util);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink3);
  margin: var(--s3) 0 0;
  letter-spacing: .02em;
}
.trust b { color: var(--green-ink); font-weight: 700; }

/* ── Unit 3 — in-feed ─────────────────────────────────── */
.cta-feed {
  position: relative;
  border-top: 0;
  border-bottom: 0;
  background: var(--purple);
  padding: var(--s5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: center;
  margin: var(--s5) 0;
  border-radius: 4px;
}
.cta-feed .tag {
  font-family: var(--font-util);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--d-cyan, #67E8F9);
  margin-bottom: var(--s2);
}
.cta-feed h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.26;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  color: #fff;
}
.cta-feed p {
  font-family: var(--font-util);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  margin: 0;
}
.cta-feed .pill-btn-wrap {
  position: relative;
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
}
.cta-feed .pill-btn {
  isolation: isolate;
  z-index: 1;
}
.cta-feed .pill-btn-halo {
  border-color: rgba(255, 255, 255, 0.45);
}
.cta-feed .pill-btn--live::before,
.cta-feed .pill-btn--live::after {
  border-color: rgba(91, 33, 182, 0.55);
  background: rgba(91, 33, 182, 0.12);
}

/* Continuous idle waves (no click required) */
.pill-btn-halo {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 1.5px solid rgba(91, 33, 182, 0.4);
  pointer-events: none;
  z-index: 0;
  animation: pill-halo-pulse 2.4s ease-out infinite;
}
.pill-btn-halo:nth-child(2) {
  animation-delay: 0.8s;
}
.pill-btn-halo:nth-child(3) {
  animation-delay: 1.6s;
}
.pill-btn--live::before,
.pill-btn--live::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.3);
  animation: pill-wave-idle 2.4s ease-out infinite;
}
.pill-btn--live::after {
  animation-delay: 1.2s;
}

/* Click ripple / wave rings on Contact us */
.pill-btn-wave {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.32);
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0.95;
  animation: pill-wave-expand 560ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.pill-btn:not(.on-light) .pill-btn-wave {
  border-color: rgba(91, 33, 182, 0.55);
  background: rgba(91, 33, 182, 0.18);
}
.pill-btn-label {
  z-index: 2;
}
.pill-btn.is-pressed {
  transform: scale(0.97);
}
@keyframes pill-halo-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}
@keyframes pill-wave-idle {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(14);
    opacity: 0;
  }
}
@keyframes pill-wave-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-btn-halo,
  .pill-btn--live::before,
  .pill-btn--live::after,
  .pill-btn-wave {
    animation: none !important;
    display: none !important;
  }
  .pill-btn.is-pressed { transform: none; }
}

/* ── Unit 4 — band above footer ───────────────────────── */
.cta-band {
  background: var(--purple);
  color: #fff;
  padding: var(--s7) 0;
  margin-top: var(--s7);
  position: relative;
  overflow: hidden;
}
.cta-band .inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s6);
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band .eyebrow {
  font-family: var(--font-util);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--d-cyan);
  margin-bottom: var(--s3);
}
.cta-band h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.14;
  letter-spacing: -.025em;
  margin: 0 0 var(--s3);
  max-width: 26ch;
  color: #fff;
}
.cta-band h2 .em { color: var(--d-cyan); }
.cta-band p {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #EDE9FE;
  margin: 0;
  max-width: 52ch;
}

@media (max-width: 760px) {
  .cta-feed { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .cta-band .inner { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}

/* ── Centered article end band ────────────────────────── */
.cta-band-center {
  background: var(--purple);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0;
  margin-top: var(--s7);
  position: relative;
  overflow: hidden;
  /* Break out of .wrap padding without 100vw (avoids horizontal scrollbar) */
  width: auto;
  max-width: none;
  margin-left: calc(-1 * clamp(20px, 3vw, 48px));
  margin-right: calc(-1 * clamp(20px, 3vw, 48px));
  box-sizing: border-box;
}
.cta-band-center-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band-center-accent {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--d-cyan, #67E8F9);
  margin-bottom: var(--s5);
}
.cta-band-center h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 var(--s6);
  color: #fff;
  max-width: 28ch;
}
.cta-band-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.cta-band-center .pill-btn {
  justify-content: flex-start;
}

@media (max-width: 560px) {
  .cta-band-center-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-band-center .pill-btn {
    width: 100%;
  }
}
