/* ==========================================================================
   IgniteYou login hero — one-time shooting-star intro for the tagline
   Pure CSS. Plays once on page open, holds the final state, never loops.
   Needs brand-group.css (the star is anchored to the tagline inside .lv2-brand).
   The path is in em of the tagline (font-size), so it scales and moves with
   the logo+tagline group at every breakpoint, and always lands on the tagline:
   it ends just after the last word, on the text's centre line.
   ========================================================================== */
.lv2-tagline {
    --ss-dx: 6.5em; --ss-dy: -5em;     /* start = end + (dx, dy): up and to the right of the line end   */
    --ss-endx: 1em; --ss-endy: -.05em; /* end = 1em after the tagline's right end, on its centre line   */
    --ss-trail: 5em;                   /* 126px at 1440×900 (desktop 120–180)                           */
    --ss-thick: 1.75px;
    --ss-delay: .45s;
    --ss-dur: 1.4s;
    --ss-ease: cubic-bezier(.2, .62, .34, 1);    /* ease-out: fast start, long deceleration */
    --ss-tag-dur: .7s;
    --ss-tag-at: .65;                  /* tagline starts at 65% of the streak */
}
/* anchor at the end point; z-index 0 inside the group = under the logo and the tagline (z 1) */
.ss-layer {
    position: absolute;
    left: calc(100% + var(--ss-endx));
    top: calc(50% + var(--ss-endy));
    width: 0; height: 0;
    z-index: 0;
    pointer-events: none;
}
.ss-mover {
    position: absolute;
    left: 0; top: 0;
    transform: translate(var(--ss-dx), var(--ss-dy));
    animation: ss-move var(--ss-dur) var(--ss-ease) var(--ss-delay) 1 both;
    will-change: transform;
}
@keyframes ss-move {
    from { transform: translate(var(--ss-dx), var(--ss-dy)); }
    to   { transform: translate(0, 0); }
}
/* local +x = direction of travel; the trail points back along the path */
.ss-star {
    position: absolute;
    left: 0; top: 0;
    transform: rotate(142.43deg);      /* fallback = atan2(5, -6.5) */
    opacity: 0;
    animation: ss-fade var(--ss-dur) linear var(--ss-delay) 1 both;
}
@supports (transform: rotate(atan2(1px, 1px))) {
    .ss-star { transform: rotate(atan2(calc(var(--ss-dy) * -1), calc(var(--ss-dx) * -1))); }
}
@keyframes ss-fade {
    0%   { opacity: 0; }
    7%   { opacity: 1; }
    72%  { opacity: 1; }
    100% { opacity: 0; }
}
.ss-head {                              /* small bright warm-white dot, soft glow */
    position: absolute;
    left: -2px; top: -2px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #FFF8EC;
    box-shadow:
        0 0 3px 1px rgba(255, 246, 228, .95),
        0 0 9px 3px rgba(255, 220, 170, .45),
        0 0 20px 6px rgba(255, 190, 120, .16);
}
.ss-trail {                             /* thin gradient tail, transparent -> 0.85 at the head */
    position: absolute;
    right: 0;
    top: calc(var(--ss-thick) / -2);
    width: var(--ss-trail);
    height: var(--ss-thick);
    border-radius: var(--ss-thick);
    background: linear-gradient(90deg,
        rgba(255, 236, 205, 0) 0%,
        rgba(255, 236, 205, .18) 45%,
        rgba(255, 242, 222, .60) 82%,
        rgba(255, 248, 236, .85) 100%);
    transform-origin: 100% 50%;
    animation: ss-trail var(--ss-dur) linear var(--ss-delay) 1 both;
}
@keyframes ss-trail {                   /* never longer than the distance travelled; shrinks as it slows */
    0%   { transform: scaleX(0); }
    3%   { transform: scaleX(.13); }
    5%   { transform: scaleX(.23); }
    7%   { transform: scaleX(.33); }
    10%  { transform: scaleX(.46); }
    14%  { transform: scaleX(.62); }
    20%  { transform: scaleX(.84); }
    25%  { transform: scaleX(1); }
    55%  { transform: scaleX(.9); }
    100% { transform: scaleX(.12); }
}
/* tagline appears in the wake of the slowing star */
.ss-tagline {
    animation: ss-tag var(--ss-tag-dur) cubic-bezier(.22, .61, .36, 1)
               calc(var(--ss-delay) + var(--ss-dur) * var(--ss-tag-at)) 1 both;
}
@keyframes ss-tag {
    from { opacity: 0; transform: translateY(7px); letter-spacing: .055em; }
    to   { opacity: 1; transform: translateY(0);   letter-spacing: .01em; }
}
/* Spanish line is ~19% longer: shorter run-in so the start stays clear of the card */
:lang(es) .lv2-tagline { --ss-dx: 4.5em; }
:lang(es) .ss-star { transform: rotate(132deg); }
@supports (transform: rotate(atan2(1px, 1px))) {
    :lang(es) .ss-star { transform: rotate(atan2(calc(var(--ss-dy) * -1), calc(var(--ss-dx) * -1))); }
}
/* tablet 769–1100px */
@media (min-width: 769px) and (max-width: 1100px) {
    .lv2-tagline { --ss-dx: 1.5em; --ss-dy: -5.5em; --ss-endx: 3em; --ss-trail: 4em; }
    :lang(es) .lv2-tagline { --ss-dx: .25em; --ss-dy: -6em; }
}
/* phone ≤768px (crosses the dark night side of the Earth in the header band) */
@media (max-width: 768px) {
    .lv2-tagline { --ss-dx: 5em; --ss-dy: -5em; --ss-trail: 4.5em; --ss-thick: 1.5px; --ss-dur: 1.3s; }
    :lang(es) .lv2-tagline { --ss-dx: 4em; --ss-dy: -5em; }
}
/* reduced motion + old browsers: no star, tagline simply visible */
@media (prefers-reduced-motion: reduce) {
    .ss-layer { display: none; }
    .ss-tagline { animation: none; opacity: 1; transform: none; }
}
