/* Compact notification-card CTA · design "send" (partials/cta-card-send.php). The home cta_send art (glossy bubble,
   pink diamond, pearly plane) shrunk into a frosted card with an animated light rim, plus an iOS-style notification stack
   that plays Quote accepted → Invoice sent → Paid on one shared 10 s timeline. Prefix cc-send-, laid out by container
   width (it sits in a narrow guide column on tool pages and full width on the preview). Reduced motion = finished frame. */
@property --cc-send-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.cc-send { --cc-send-t: 10s; --cc-send-ink: #0e1a5c; --cc-send-k: .6; --cc-send-artw: 372px;
  container-type: inline-size; container-name: ccsend; margin: 48px 0; color: var(--cc-send-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.cc-send *, .cc-send *::before, .cc-send *::after { box-sizing: border-box; }

/* ---------- Card: frosted glass, animated rim, depth ---------- */
.cc-send-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden; max-width: 1080px; margin: 0 auto; border-radius: 30px;
  display: grid; grid-template-columns: var(--cc-send-artw) minmax(0, 1fr); align-items: center; gap: 0 30px; padding: 22px 40px 22px 18px;
  background: radial-gradient(120% 140% at 0% 0%, #ffffff 0%, #f4f6ff 42%, #e8eeff 100%);
  box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(43, 92, 255, .08) inset, 0 30px 60px -28px rgba(31, 63, 214, .38), 0 10px 24px -14px rgba(240, 55, 143, .18), 0 2px 6px rgba(14, 26, 92, .05);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.cc-send-card.is-hover { transition: transform .12s linear, box-shadow .4s;
  box-shadow: 0 1px 0 #fff inset, 0 36px 70px -28px rgba(31, 63, 214, .45), 0 14px 30px -14px rgba(240, 55, 143, .24), 0 2px 6px rgba(14, 26, 92, .05); }
/* animated light rim: a conic sweep masked to a 1.5px ring */
.cc-send-card::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--cc-send-a), rgba(255, 255, 255, .95) 0deg, rgba(160, 182, 255, .55) 70deg, rgba(255, 140, 210, .9) 120deg, rgba(255, 255, 255, .95) 170deg,
    rgba(150, 170, 255, .45) 250deg, rgba(122, 92, 255, .8) 300deg, rgba(255, 255, 255, .95) 360deg);
  -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-send-rim 9s linear infinite; }
@keyframes cc-send-rim { to { --cc-send-a: 360deg; } }
/* dotted texture */
.cc-send-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(#c3cdf6 1px, transparent 1.2px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(60% 90% at 18% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 90% at 18% 50%, #000 0%, transparent 75%); }
.cc-send-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cc-send-glow--a { width: 340px; height: 300px; left: -40px; top: -60px; background: #ffb3e6; opacity: .5; }
.cc-send-glow--b { width: 420px; height: 300px; left: 18%; bottom: -55%; background: #9fb4ff; opacity: .55; }
/* pointer shine */
.cc-send-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); mix-blend-mode: soft-light; }
.cc-send-card.is-hover .cc-send-shine { opacity: 1; }

/* ---------- Art ---------- */
.cc-send-art { position: relative; width: var(--cc-send-artw); height: calc(470px * var(--cc-send-k) + 8px); }
.cc-send-world { position: absolute; left: 0; top: calc(-34px * var(--cc-send-k)); width: 520px; height: 520px; transform: scale(var(--cc-send-k)); transform-origin: 0 0; }
.cc-send-svg { position: absolute; inset: 0; width: 520px; height: 520px; overflow: visible; }
.cc-send-dia { transform-box: fill-box; transform-origin: center; animation: cc-send-float 7s ease-in-out infinite; }
@keyframes cc-send-float { 50% { transform: translateY(-7px) rotate(1.5deg); } }
.cc-send-bubble { transform-box: fill-box; transform-origin: 50% 70%; animation: cc-send-bounce var(--cc-send-t) cubic-bezier(.3, .7, .3, 1) infinite; }
@keyframes cc-send-bounce { 0%, 33% { transform: none; } 36% { transform: translate(-5px, 2px) scale(1.035, .975); } 40% { transform: translate(1px, -3px) scale(.99, 1.02); } 45%, 100% { transform: none; } }
.cc-send-ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: cc-send-ring var(--cc-send-t) ease-out infinite; }
@keyframes cc-send-ring { 0%, 35% { opacity: 0; transform: scale(1); } 36% { opacity: .9; } 50%, 100% { opacity: 0; transform: scale(1.65); } }
.cc-send-check path { stroke-dasharray: 1 1; animation: cc-send-check var(--cc-send-t) ease-in-out infinite; }
@keyframes cc-send-check { 0%, 34% { stroke-dashoffset: 0; } 35% { stroke-dashoffset: 1; } 44%, 100% { stroke-dashoffset: 0; } }
.cc-send-trail { animation: cc-send-trailFade var(--cc-send-t) linear infinite; }
@keyframes cc-send-trailFade { 0%, 4% { opacity: 0; } 8%, 40% { opacity: .95; } 56%, 100% { opacity: 0; } }
.cc-send-trailReveal { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: cc-send-reveal var(--cc-send-t) linear infinite; }
@keyframes cc-send-reveal { 0%, 4% { stroke-dashoffset: 1; } 33% { stroke-dashoffset: .02; } 60%, 100% { stroke-dashoffset: .02; } }

.cc-send-plane { position: absolute; left: 292px; top: 219px; width: 240px; height: 132px; filter: drop-shadow(-6px 14px 14px rgba(40, 52, 160, .28)); }
.cc-send-plane svg { display: block; width: 100%; height: 100%; }
@supports (offset-path: path("M0 0L1 1")) {
  .cc-send-plane { left: 0; top: 0; offset-path: path("M545 468C505 445 468 375 450 300C430 230 440 160 490 150C540 140 555 200 530 240C510 275 465 283 402 280");
    offset-anchor: 46% 46%; offset-rotate: auto 180deg; offset-distance: 100%;
    animation: cc-send-fly var(--cc-send-t) cubic-bezier(.45, .05, .35, 1) infinite, cc-send-bob 3.2s ease-in-out infinite; }
}
@keyframes cc-send-fly {
  0% { offset-distance: 0%; opacity: 0; scale: .6; translate: 0 0; }
  6% { opacity: 1; }
  33% { offset-distance: 100%; scale: 1; translate: 0 0; animation-timing-function: ease-out; }
  36% { offset-distance: 100%; translate: -10px 1px; }
  42%, 88% { offset-distance: 100%; translate: 0 0; opacity: 1; scale: 1; }
  96% { offset-distance: 100%; translate: -70px 4px; opacity: 0; scale: .55; }
  100% { offset-distance: 0%; opacity: 0; scale: .6; translate: 0 0; }
}
@keyframes cc-send-bob { 50% { rotate: -1.5deg; } }

/* ---------- Notification stack (iOS style: newest in front, older ones tuck behind) ---------- */
.cc-send-stack { position: absolute; z-index: 2; right: 0; bottom: 4px; width: 248px; height: 58px; }
.cc-send-note { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 18px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 1px 0 #fff inset, 0 16px 32px -12px rgba(31, 63, 214, .42), 0 2px 6px rgba(31, 63, 214, .08);
  transform-origin: 50% 0; opacity: 0; animation: var(--cc-send-t) cubic-bezier(.2, .9, .3, 1.15) infinite; }
.cc-send-note--1 { z-index: 1; animation-name: cc-send-n1; }
.cc-send-note--2 { z-index: 2; animation-name: cc-send-n2; }
.cc-send-note--3 { z-index: 3; animation-name: cc-send-n3; }
@keyframes cc-send-n1 {
  0%, 35% { opacity: 0; transform: translateY(18px) scale(.9); }
  39%, 47% { opacity: 1; transform: none; }
  51%, 59% { opacity: .9; transform: translateY(-7px) scale(.94); }
  63%, 88% { opacity: .7; transform: translateY(-13px) scale(.88); }
  94%, 100% { opacity: 0; transform: translateY(-24px) scale(.84); }
}
@keyframes cc-send-n2 {
  0%, 47% { opacity: 0; transform: translateY(18px) scale(.9); }
  51%, 59% { opacity: 1; transform: none; }
  63%, 88% { opacity: .9; transform: translateY(-7px) scale(.94); }
  94%, 100% { opacity: 0; transform: translateY(-18px) scale(.9); }
}
@keyframes cc-send-n3 {
  0%, 59% { opacity: 0; transform: translateY(18px) scale(.9); }
  63%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); }
}
/* once a note tucks behind a newer one its content fades, leaving a clean glass slab */
.cc-send-note--1 > *, .cc-send-note--2 > * { animation: var(--cc-send-t) ease infinite; }
.cc-send-note--1 > * { animation-name: cc-send-c1; }
.cc-send-note--2 > * { animation-name: cc-send-c2; }
@keyframes cc-send-c1 { 0%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes cc-send-c2 { 0%, 60% { opacity: 1; } 63%, 100% { opacity: 0; } }
.cc-send-txt { display: grid; min-width: 0; flex: 1; line-height: 1.22; }
.cc-send-txt strong { font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; color: var(--cc-send-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-send-txt small { font-size: 11.5px; font-weight: 600; color: #5a6390; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-send-now { align-self: flex-start; margin-top: 2px; font: 600 10.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; font-style: normal; color: #8a92b8; }
.cc-send-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 4px rgba(0, 0, 0, .12) inset, 0 6px 12px -4px rgba(20, 30, 120, .4); }
.cc-send-ico--1 { background: linear-gradient(160deg, #6ff0b0, #19b874); }
.cc-send-ico--2 { background: linear-gradient(160deg, #6f8dff, #1f3fd6); }
.cc-send-ico--3 { background: linear-gradient(160deg, #ff8ad8, #e0247a); }

/* ---------- Copy ---------- */
.cc-send-copy { min-width: 0; padding: 6px 0; }
.cc-send-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 13px 6px 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #1f3fd6; background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 22px -12px rgba(31, 63, 214, .45), 0 1px 0 #fff inset; }
.cc-send-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, .22); animation: cc-send-dot 2s ease-in-out infinite; }
@keyframes cc-send-dot { 50% { box-shadow: 0 0 0 7px rgba(62, 224, 143, 0); } }
.cc-send h2 { margin: 0 0 10px; font: 800 40px/1.04 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.04em; color: var(--cc-send-ink); text-wrap: balance; }
.cc-send h2 span { display: inline-block; padding-bottom: .06em; background: linear-gradient(95deg, #2b5cff 0%, #7a5cff 45%, #f0378f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-send-line { margin: 0 0 14px; max-width: 620px; font-size: 16px; line-height: 1.45; font-weight: 500; color: #46507e; }

/* intent chips: the visitor's search, tap to swap the story */
.cc-send-intents { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; min-width: 0; }
.cc-send-for { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #1f3fd6; background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 #fff inset, 0 4px 10px -4px rgba(31, 63, 214, .35); }
.cc-send-chips { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 6px 2px; margin: -2px 0 -6px -2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.cc-send-chips::-webkit-scrollbar { display: none; }
.cc-send-chip { flex: none; }
.cc-send-chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; max-width: 100%; height: 30px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  font: 700 12.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #33407a; white-space: nowrap; text-overflow: ellipsis;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(43, 92, 255, .14); box-shadow: 0 1px 0 #fff inset;
  transition: background .2s, color .2s, border-color .2s, transform .2s; }
.cc-send-chip:hover { background: #fff; transform: translateY(-1px); }
.cc-send-chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(180deg, #5b7dff, #2b5cff 55%, #2446dc);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 14px -6px rgba(31, 63, 214, .7); }
/* progress of the story for the active chip */
.cc-send-chip[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .75);
  transform-origin: 0 50%; transform: scaleX(0); animation: cc-send-prog var(--cc-send-t) linear infinite; }
@keyframes cc-send-prog { to { transform: scaleX(1); } }
.cc-send-chip--mine { font-style: italic; }
.cc-send-chip:focus-visible, .cc-send-btn:focus-visible, .cc-send-link:focus-visible { outline: 3px solid #8cff5a; outline-offset: 3px; }

/* the hero button */
.cc-send-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.cc-send-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 17px;
  font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #5a80ff 0%, #2b5cff 45%, #1f3fd6 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -3px 8px rgba(11, 31, 143, .35) inset, 0 16px 30px -12px rgba(31, 63, 214, .8), 0 0 0 0 rgba(43, 92, 255, .35);
  transition: transform .2s, box-shadow .25s; animation: cc-send-pulse 3.4s ease-in-out infinite; }
.cc-send-btn svg { transition: transform .2s; }
.cc-send-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -3px 8px rgba(11, 31, 143, .35) inset, 0 22px 36px -12px rgba(31, 63, 214, .9); }
.cc-send-btn:hover svg { transform: translateX(4px); }
@keyframes cc-send-pulse { 0%, 60%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -3px 8px rgba(11, 31, 143, .35) inset, 0 16px 30px -12px rgba(31, 63, 214, .8), 0 0 0 0 rgba(43, 92, 255, .35); }
  80% { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -3px 8px rgba(11, 31, 143, .35) inset, 0 16px 30px -12px rgba(31, 63, 214, .8), 0 0 0 10px rgba(43, 92, 255, 0); } }
.cc-send-btnShine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%);
  transform: translateX(-120%); animation: cc-send-sweep 4.5s ease-in-out 1s infinite; }
@keyframes cc-send-sweep { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.cc-send-link { font-size: 14.5px; font-weight: 700; color: #1f3fd6; text-decoration: none; border-bottom: 1px solid rgba(31, 63, 214, .25); padding-bottom: 1px; }
.cc-send-link:hover { border-bottom-color: currentColor; }
.cc-send-link span { display: inline-block; transition: transform .2s; }
.cc-send-link:hover span { transform: translateX(3px); }

/* restart (js) and pause off screen */
.cc-send.is-reset *, .cc-send.is-reset *::after { animation: none !important; }
.cc-send.is-paused *, .cc-send.is-paused *::before, .cc-send.is-paused *::after, .cc-send.is-paused .cc-send-card::before { animation-play-state: paused !important; }

/* ---------- Layout by container width ---------- */
@container ccsend (max-width: 899.98px) {
  .cc-send-card { --cc-send-k: .52; --cc-send-artw: 318px; gap: 0 22px; padding: 20px 28px 20px 14px; }
  .cc-send-stack { width: 232px; }
  .cc-send h2 { font-size: 32px; }
  .cc-send-line { font-size: 15px; }
}
@container ccsend (max-width: 679.98px) {
  .cc-send-card { --cc-send-k: .44; --cc-send-artw: 320px; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 4px; padding: 14px 18px 18px; text-align: center; border-radius: 28px; }
  .cc-send-art { width: var(--cc-send-artw); height: calc(470px * var(--cc-send-k) + 2px); justify-self: center; }
  .cc-send-world { left: 4px; }
  .cc-send-stack { right: -4px; bottom: 0; width: 262px; height: 54px; }
  .cc-send-copy { padding: 0; width: 100%; max-width: 460px; justify-self: center; }
  .cc-send-eyebrow { margin-bottom: 10px; }
  .cc-send h2 { font-size: 29px; margin-bottom: 8px; }
  .cc-send h2 span { display: block; }
  .cc-send-line { font-size: 14.5px; margin: 0 auto 12px; }
  .cc-send-intents { justify-content: center; margin-bottom: 16px; }
  .cc-send-for { display: none; }
  .cc-send-btns { flex-direction: column; gap: 12px; }
  .cc-send-btn { width: 100%; }
}

@media (hover: none) { .cc-send-card { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cc-send *, .cc-send *::before, .cc-send *::after, .cc-send .cc-send-card::before { animation: none !important; }
  .cc-send-card { transform: none !important; }
  .cc-send-note { opacity: 1; }
  .cc-send-note--1 { transform: translateY(-13px) scale(.88); opacity: .7; }
  .cc-send-note--2 { transform: translateY(-7px) scale(.94); opacity: .9; }
  .cc-send-note--1 > *, .cc-send-note--2 > * { opacity: 0; }
  .cc-send-trail { opacity: 0; }
  .cc-send-plane { offset-distance: 100%; opacity: 1; }
  .cc-send-chip[aria-pressed="true"]::after { display: none; }
}
