/* "Which device do I need?" — animated link to the two device finders, for the [HERO] snippet.
   Loaded by the <link> at the top of the snippet. Brand pink = #f23058. */
@property --hf-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.hero-finder {
    --hf-pink: #f23058;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 28px; padding: 12px 12px 12px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -12px rgba(80, 0, 20, .45);
    color: #fff; font-weight: 600; line-height: 1.2;
    animation: hfIn .7s cubic-bezier(.2,.7,.2,1) .35s both;
}
/* rotating light around the border */
.hero-finder::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--hf-angle), rgba(255,255,255,.15) 0deg, #fff 60deg, rgba(255,255,255,.15) 140deg, rgba(255,255,255,.15) 220deg, #ffd3dc 280deg, rgba(255,255,255,.15) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: hfSpin 4.5s linear infinite;
}
.hero-finder-label { display: inline-flex; align-items: center; gap: 9px; margin-right: 10px; font-size: 1rem; }
.hero-finder-label i { display: inline-block; animation: hfWand 3.2s ease-in-out infinite; transform-origin: 30% 70%; }

.hero-finder-opt {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 13px;
    background: #fff; color: var(--hf-pink) !important; text-decoration: none !important;
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 2px 8px rgba(80, 0, 20, .18);
    transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
}
.hero-finder-opt:hover, .hero-finder-opt:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(80, 0, 20, .45); }
.hero-finder-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-finder-opt .fa-arrow-right { font-size: .8em; transition: transform .2s; }
.hero-finder-opt:hover .fa-arrow-right { transform: translateX(4px); }
/* light sweep across each option, staggered */
.hero-finder-opt::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(242,48,88,.14), transparent);
    transform: skewX(-18deg); animation: hfSweep 5s ease-in-out infinite;
}
.hero-finder-opt + .hero-finder-opt::after { animation-delay: .6s; }
.hero-finder-opt:hover::after { animation-duration: 1.1s; }

@keyframes hfSpin  { to { --hf-angle: 360deg; } }
@keyframes hfIn    { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hfSweep { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
@keyframes hfWand  { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-16deg); } 86% { transform: rotate(12deg); } 93% { transform: rotate(-6deg); } }

@media (max-width: 560px) {
    .hero-finder { display: flex; padding: 18px; gap: 12px; }
    .hero-finder-label { width: 100%; justify-content: center; margin: 0 0 4px; }
    .hero-finder-opt { flex: 1 1 0; justify-content: center; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-finder, .hero-finder::before, .hero-finder-label i, .hero-finder-opt::after { animation: none !important; }
}
