/* "What is PIN+?" — animated link to the PIN complexity page, for the [HERO] snippet.
   A refused PIN (123456) shakes and gets crossed out, on a loop. Brand pink = #f23058. */
.hero-pinplus {
    --hp-pink: #f23058;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 14px;
    margin-top: 16px; padding: 10px 20px 10px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, .45);
    box-shadow: 0 10px 30px -14px rgba(80, 0, 20, .5);
    color: #fff !important; text-decoration: none !important; line-height: 1.2; text-align: left;
    transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, border-color .2s;
    animation: hpIn .7s cubic-bezier(.2,.7,.2,1) .55s both;
}
.hero-pinplus:hover, .hero-pinplus:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .22); border-color: #fff; }
.hero-pinplus:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* the refused PIN */
.hp-pin {
    flex: none; position: relative; display: inline-flex; gap: 3px; padding: 7px 9px; border-radius: 999px; background: #fff;
    box-shadow: 0 2px 8px rgba(80, 0, 20, .2); animation: hpShake 4s ease-in-out infinite;
}
.hp-pin b {
    display: grid; place-items: center; width: 17px; height: 22px; border-radius: 5px; background: #fff0f3;
    color: var(--hp-pink); font: 800 .82rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    animation: hpType 4s ease-in-out infinite;
}
.hp-pin b:nth-child(2) { animation-delay: .08s; } .hp-pin b:nth-child(3) { animation-delay: .16s; }
.hp-pin b:nth-child(4) { animation-delay: .24s; } .hp-pin b:nth-child(5) { animation-delay: .32s; } .hp-pin b:nth-child(6) { animation-delay: .4s; }
.hp-pin::after {   /* the strike */
    content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2.5px; border-radius: 2px; background: var(--hp-pink);
    transform: scaleX(0); transform-origin: left; animation: hpStrike 4s ease-in-out infinite;
}
.hp-no {
    position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--hp-pink); color: #fff;
    display: grid; place-items: center; font-size: .62rem; box-shadow: 0 0 0 2px #fff; transform: scale(0); animation: hpBadge 4s ease-in-out infinite;
}

.hp-txt { display: flex; flex-direction: column; gap: 2px; }
.hp-txt strong { font-size: 1rem; font-weight: 700; }
.hp-txt small { font-size: .8rem; font-weight: 500; opacity: .85; }
.hero-pinplus .fa-arrow-right { font-size: .85em; transition: transform .2s; }
.hero-pinplus:hover .fa-arrow-right { transform: translateX(4px); }

@keyframes hpIn     { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hpType   { 0%, 4% { opacity: 0; transform: translateY(4px); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes hpShake  { 0%, 34%, 52%, 100% { transform: none; } 38% { transform: translateX(-4px); } 42% { transform: translateX(4px); } 46% { transform: translateX(-2px); } 50% { transform: translateX(1px); } }
@keyframes hpStrike { 0%, 40% { transform: scaleX(0); } 50%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes hpBadge  { 0%, 46% { transform: scale(0); } 54% { transform: scale(1.2); } 60%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }

/* Phones: the hero's pink ends in a white wave, right where these boxes sit, so white glass text
   would vanish. Give both boxes (this one and the device-finder box above it) a solid pink ground there. */
@media (max-width: 860px) {
    .hero-pinplus, .hero-finder { background: linear-gradient(135deg, #f23058 0%, #d81f45 100%); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 560px) {
    .hero-pinplus { display: flex; justify-content: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 22px; }
    .hp-pin { gap: 2px; padding: 6px 7px; } .hp-pin b { width: 13px; height: 19px; font-size: .72rem; }
    .hp-txt strong { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-pinplus, .hp-pin, .hp-pin b, .hp-pin::after, .hp-no { animation: none !important; }
    .hp-pin::after { transform: scaleX(1); } .hp-no { transform: none; }
}

/* ---- Both together: one panel, "Which device do I need?" | "What is PIN+?" ----
   <div class="hero-help"> <div class="hero-finder">…</div> <a class="hero-pinplus">…</a> </div> */
@property --hh-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.hero-help {
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0;
    margin-top: 32px; padding: 12px; border-radius: 22px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 14px 36px -14px rgba(80, 0, 20, .5);
    animation: hpIn .7s cubic-bezier(.2,.7,.2,1) .35s both;
}
.hero-help::before {   /* the rotating light around the border, moved from the device box to the panel */
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--hh-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: hhSpin 4.5s linear infinite;
}
@keyframes hhSpin { to { --hh-angle: 360deg; } }
.hero-help .hero-finder { margin: 0; padding: 0 22px 0 12px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; animation: none; }
.hero-help .hero-finder::before { display: none; }
.hero-help .hero-pinplus {
    margin: 0; padding: 6px 12px 6px 22px; background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .35); border-radius: 0;
    box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; align-self: stretch;
}
.hero-help .hero-pinplus:hover { background: none; transform: none; }
.hero-help .hero-pinplus:hover .hp-txt strong { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
    .hero-help { background: linear-gradient(135deg, #f23058 0%, #d81f45 100%); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .hero-help .hero-finder, .hero-help .hero-pinplus { background: none; }
}
/* not enough room for one row: stack the two parts, divided by a line */
@media (max-width: 1100px) {
    .hero-help { flex-direction: column; align-items: stretch; padding: 16px; }
    .hero-help .hero-finder { padding: 0 0 14px; justify-content: center; }
    .hero-help .hero-pinplus { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); padding: 14px 4px 2px; justify-content: center; }
}
@media (max-width: 760px) {
    .hero-help { display: flex; }
    .hero-help .hero-finder { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .hero-help, .hero-help::before { animation: none !important; } }
