CTA banner gradient
CTA banner gradient: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-193 {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: 100%;
max-width: 480px;
color: #fff;
background: linear-gradient(120deg,#4f46e5,#7c3aed 50%,#db2777);
background-size: 200% 100%;
border: 0;
border-radius: 18px;
padding: 22px 28px;
cursor: pointer;
box-shadow: 0 12px 32px -12px #7c3aedaa;
transition: background-position .5s,transform .2s,box-shadow .2s
}
.btn-193 span {
font: 800 20px/1.1 system-ui,sans-serif;
letter-spacing: -.01em
}
.btn-193 small {
font: 500 13px/1.3 system-ui,sans-serif;
color: #e9d5ff
}
.btn-193:hover {
background-position: 100% 0;
transform: translateY(-2px);
box-shadow: 0 18px 40px -14px #db2777aa
}
.btn-193:focus-visible {
outline: 3px solid #7c3aed;
outline-offset: 3px
}
.btn-193:active {
transform: translateY(0);
box-shadow: 0 6px 16px -8px #7c3aedaa
}
HTML
<button class="btn-193"><span>Upgrade to Pro</span><small>Unlimited projects and priority support</small></button>Prompt
A centred gradient CTA banner (up to 480px): indigo-to-violet-to-pink (#4f46e5, #7c3aed, #db2777) at 200% width, 18px radius, 22px by 28px padding, a 20px extra-bold white headline over a 13px pale-lilac #e9d5ff subtitle, violet glow shadow. Hover slides the gradient toward pink (500ms) and lifts 2px; active settles. Focus 3px violet outline.