/* Compact notification-card CTA · "leads" (partials/cta-card-leads.php). Blue glass card with an animated light rim,
   search bar → intent chips → 3D arrow → iOS-style notification stack (lead → step → paid). Prefix cc-leads-.
   Laid out by the width it is given (container queries): copy + button left, art right when wide; stacked when narrow. */
@property --cc-leads-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cc-leads { container-type: inline-size; container-name: ccleads; margin: 40px 0; padding: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.bpost__body .cc-leads { margin: 44px 0; }
.cc-leads *, .cc-leads *::before, .cc-leads *::after { box-sizing: border-box; }

.cc-leads-card { --rx: 0deg; --ry: 0deg; --mx: 70%; --my: 20%;
  position: relative; isolation: isolate; overflow: hidden; max-width: 1080px; margin: 0 auto; padding: 22px;
  display: grid; grid-template-columns: 1fr; grid-template-areas: "copy" "art" "act"; gap: 18px;
  border-radius: 30px; color: #fff; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(196, 214, 255, .45) 0%, rgba(120, 156, 255, .14) 45%, transparent 72%),
    radial-gradient(45% 70% at 0% 100%, rgba(11, 31, 143, .7), transparent 70%),
    linear-gradient(150deg, #3a6bff 0%, #2b5cff 24%, #1f3fd6 58%, #0b1f8f 100%);
  box-shadow: 0 30px 60px -36px rgba(11, 31, 143, .9), 0 10px 24px -18px rgba(11, 31, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .4); }
/* animated light rim: 1px conic sweep masked to the border */
.cc-leads-card::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; padding: 1.5px; border-radius: inherit;
  background: conic-gradient(from var(--cc-leads-a), rgba(255, 255, 255, .22) 0deg, rgba(255, 255, 255, .22) 200deg, #fff 250deg, #c6ff7a 285deg, rgba(255, 255, 255, .22) 330deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: cc-leads-rim 6s linear infinite; }
@keyframes cc-leads-rim { to { --cc-leads-a: 360deg; } }
.cc-leads-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(60% 80% at 75% 45%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 75% 45%, #000, transparent 75%); }
.cc-leads-shine { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 60%); }
.cc-leads-card:hover .cc-leads-shine { opacity: 1; }
.cc-leads-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(56px); pointer-events: none; }
.cc-leads-glow--a { width: 320px; height: 320px; right: 2%; top: -170px; background: rgba(255, 255, 255, .3); animation: cc-leads-drift 12s ease-in-out infinite; }
.cc-leads-glow--b { width: 260px; height: 260px; left: 26%; bottom: -190px; background: rgba(62, 224, 143, .24); animation: cc-leads-drift 14s ease-in-out -5s infinite reverse; }
@keyframes cc-leads-drift { 50% { transform: translate(-36px, 22px) scale(1.08); } }

/* Copy */
.cc-leads-copy { grid-area: copy; position: relative; z-index: 2; min-width: 0; }
.cc-leads-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 6px 12px 6px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cc-leads-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 3px rgba(62, 224, 143, .28), 0 0 10px #3ee08f; animation: cc-leads-ping 2.2s ease-in-out infinite; }
@keyframes cc-leads-ping { 50% { box-shadow: 0 0 0 6px rgba(62, 224, 143, 0), 0 0 14px #3ee08f; } }
.cc-leads h2 { margin: 0; font: 800 27px/1.08 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.03em; color: #fff; text-wrap: balance; text-shadow: 0 2px 20px rgba(11, 31, 143, .35); }
.cc-leads h2 span { background: linear-gradient(95deg, #c6ff7a 0%, #8cff5a 35%, #3ee08f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.cc-leads-line { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .84); }

/* Action */
.cc-leads-act { grid-area: act; position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cc-leads-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 100%; min-height: 52px; padding: 0 26px; border-radius: 99px;
  font: 800 16px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #0b1f6f; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #d4ff9a 0%, #8cff5a 38%, #3ee08f 100%);
  box-shadow: 0 14px 30px -12px rgba(62, 224, 143, .9), inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(10, 120, 70, .25);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.cc-leads-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: cc-leads-sheen 4.5s ease-in-out 1.5s infinite; }
@keyframes cc-leads-sheen { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.cc-leads-btn.is-pop { animation: cc-leads-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cc-leads-pop { 40% { transform: scale(1.04); box-shadow: 0 18px 40px -10px rgba(62, 224, 143, 1), 0 0 0 6px rgba(198, 255, 122, .25), inset 0 2px 0 rgba(255, 255, 255, .7); } }
.cc-leads-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.cc-leads-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(62, 224, 143, 1), inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(10, 120, 70, .25); }
.cc-leads-btn:hover svg { transform: translateX(3px); }
.cc-leads-link { font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; opacity: .92; }
.cc-leads-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.cc-leads-note-sm { margin: 0; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.cc-leads-btn:focus-visible, .cc-leads-link:focus-visible, .cc-leads-chip:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Art */
.cc-leads-art { grid-area: art; position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.cc-leads-search { position: relative; z-index: 3; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 5px 0 16px; border-radius: 99px;
  background: linear-gradient(180deg, #fff 0%, #f3f6ff 60%, #e3eaff 100%);
  box-shadow: 0 18px 32px -16px rgba(5, 16, 90, .8), 0 0 0 4px rgba(255, 255, 255, .16), inset 0 2px 0 #fff, inset 0 -3px 7px rgba(70, 100, 220, .16); }
.cc-leads-g { flex: none; width: 14px; height: 14px; fill: none; stroke: #b6c4f0; stroke-width: 2.4; }
.cc-leads-q { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; font-size: 15px; font-weight: 600; color: #1b2a6b; white-space: nowrap; overflow: hidden; }
.cc-leads-q [data-cc-leads-q] { overflow: hidden; text-overflow: clip; }
.cc-leads-caret { flex: none; width: 2px; height: 18px; margin-left: 2px; border-radius: 2px; background: #2b5cff; animation: cc-leads-blink 1s steps(1) infinite; }
@keyframes cc-leads-blink { 50% { opacity: 0; } }
.cc-leads-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(120% 90% at 30% 15%, #8fb0ff 0%, #3a6bff 45%, #1f3fd6 100%);
  box-shadow: 0 7px 14px -6px rgba(31, 63, 214, .9), inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -3px 5px rgba(8, 20, 120, .45); }
.cc-leads-go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.cc-leads-art.is-fire .cc-leads-go { animation: cc-leads-press .5s ease; }
@keyframes cc-leads-press { 40% { transform: scale(.84); } }

.cc-leads-chips { display: flex; gap: 6px; margin: 10px -2px 0; padding: 2px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.cc-leads-chips::-webkit-scrollbar { display: none; }
.cc-leads-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 99px; cursor: pointer;
  font: 700 12.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: background .25s, color .25s, transform .2s; }
.cc-leads-chip:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .14)); }
.cc-leads-chip[aria-pressed="true"] { color: #13237e; background: linear-gradient(180deg, #fff, #e8eeff); box-shadow: 0 8px 16px -8px rgba(5, 16, 90, .8), inset 0 1px 0 #fff; }
.cc-leads-chip--you::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 6px #3ee08f; }

.cc-leads-flow { display: flex; justify-content: center; height: 36px; margin: 2px 0 2px; }
.cc-leads-flow svg { width: 120px; height: 36px; overflow: visible; }
.cc-leads-rib { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 8; stroke-linecap: round; }
.cc-leads-dots { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1.5 12; opacity: .4;
  filter: drop-shadow(0 0 3px #fff); animation: cc-leads-flowd 1.1s linear infinite; transition: opacity .4s; }
.cc-leads-art.is-fire .cc-leads-dots { opacity: 1; }
@keyframes cc-leads-flowd { to { stroke-dashoffset: -13.5; } }
.cc-leads-arrow { animation: cc-leads-nudge 2.4s ease-in-out infinite; }
@keyframes cc-leads-nudge { 50% { transform: translateY(3px); } }

/* Notification stack (iOS style): --s 0 = front; older notes peek underneath */
.cc-leads-stack { position: relative; height: 84px; }
.cc-leads-note { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; gap: 11px; padding: 0 14px 0 11px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(240, 244, 255, .8));
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 16px 30px -16px rgba(5, 16, 90, .85), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6);
  color: #10163a; z-index: calc(3 - var(--s, 0));
  transform: translateY(calc(var(--s, 0) * 9px)) scale(calc(1 - var(--s, 0) * .05)); transform-origin: 50% 100%;
  opacity: calc(1 - var(--s, 0) * .22);
  transition: transform .6s cubic-bezier(.2, .9, .25, 1.05), opacity .45s; }
.cc-leads-note:not(.is-in) { opacity: 0; transform: translateY(-22px) scale(.96); transition-duration: .3s; }
.cc-leads-note .cc-leads-txt { transition: opacity .3s; }
.cc-leads-note.is-in:not(.is-front) .cc-leads-txt, .cc-leads-note.is-in:not(.is-front) .cc-leads-ico { opacity: 0; }
.cc-leads-note.is-front { background: linear-gradient(180deg, #fff, #eef2ff); }
.cc-leads-ico { flex: none; position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff;
  background: radial-gradient(120% 90% at 30% 15%, #8fb0ff 0%, #3a6bff 45%, #1f3fd6 100%);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .55), inset 0 -3px 5px rgba(8, 20, 120, .35), 0 4px 10px -4px rgba(31, 63, 214, .7); }
.cc-leads-ico b { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.cc-leads-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cc-leads-ico.is-av { border-radius: 50%; }
.cc-leads-ico.is-av.cc-leads-ico--t1 { background: radial-gradient(110% 100% at 30% 20%, #ffb3d9 0%, #f35ca5 50%, #b42c8e 100%); }
.cc-leads-ico.is-av.cc-leads-ico--t2 { background: radial-gradient(110% 100% at 30% 20%, #c7b8ff 0%, #8a6cff 50%, #5a3ee6 100%); }
.cc-leads-ico.is-av.cc-leads-ico--t3 { background: radial-gradient(110% 100% at 30% 20%, #ffe08a 0%, #ffad3a 50%, #e8781a 100%); }
.cc-leads-note--paid .cc-leads-ico { border-radius: 50%; background: radial-gradient(110% 100% at 30% 20%, #a8ffc9, #3ee08f 55%, #19b46a);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .6), inset 0 -3px 5px rgba(5, 90, 50, .35), 0 0 16px rgba(62, 224, 143, .65); }
.cc-leads-note--paid .cc-leads-ico b { font-size: 17px; }
.cc-leads-note--paid.is-in .cc-leads-ico::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ee08f; opacity: 0; animation: cc-leads-ring 1.4s ease-out .2s; }
@keyframes cc-leads-ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.cc-leads-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-leads-txt small { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a85ad; }
.cc-leads-txt small time { text-transform: none; letter-spacing: 0; font-weight: 600; }
.cc-leads-txt b, .cc-leads-txt > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-leads-txt b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: #10163a; }
.cc-leads-note--paid .cc-leads-txt b { color: #0f8a50; }
.cc-leads-txt > span { font-size: 12.5px; font-weight: 600; color: #4a5379; }

.cc-leads-steps { display: flex; justify-content: center; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.cc-leads-steps li { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); transition: color .35s; }
.cc-leads-steps li + li::before { content: ""; width: 14px; height: 1.5px; margin-right: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.cc-leads-steps li.is-on { color: #fff; }
.cc-leads-steps li.is-on:last-child { color: #c6ff7a; }

/* Wide: copy + button left, art right */
@container ccleads (min-width: 640px) {
  .cc-leads-card { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); grid-template-areas: "copy art" "act art"; align-content: center; gap: 16px 28px; padding: 26px 26px 26px 30px; }
  .cc-leads-copy { align-self: end; }
  .cc-leads-act { align-self: start; }
  .cc-leads-btn { flex: 0 0 auto; }
  .cc-leads-note-sm { flex: 1 1 100%; }
  .cc-leads h2 { font-size: 28px; }
  .cc-leads-line { font-size: 14px; }
}
@container ccleads (min-width: 900px) {
  .cc-leads-card { grid-template-columns: minmax(0, 1fr) 400px; gap: 18px 56px; padding: 34px 40px 34px 48px; }
  .cc-leads h2 { font-size: 40px; }
  .cc-leads-line { font-size: 16px; max-width: 440px; }
}

/* Phone: keep it under ~560px tall */
@container ccleads (max-width: 639.98px) {
  .cc-leads-card { gap: 14px; padding: 20px 18px; border-radius: 28px; }
  .cc-leads h2 { font-size: 26px; }
  .cc-leads-line { font-size: 14px; margin-top: 8px; }
  .cc-leads-eyebrow { margin-bottom: 10px; }
  .cc-leads-act { gap: 6px 14px; }
  .cc-leads-flow { height: 32px; margin: 0; }
  .cc-leads-flow svg { height: 32px; }
  .cc-leads-stack { height: 80px; }
  .cc-leads-chips { margin-top: 8px; }
}
@media (hover: none) { .cc-leads-card { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cc-leads *, .cc-leads *::before, .cc-leads *::after, .cc-leads-card::before { animation: none !important; transition: none !important; }
  .cc-leads-card { transform: none; }
}
.cc-leads-card.is-paused *, .cc-leads-card.is-paused::before { animation-play-state: paused !important; }
