/* trywhm-hl.css — Variant D pulse highlight for WHM "Create a New Account" card */

#trywhm-hl-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#trywhm-hl-root.trywhm-hl-fade-out {
    opacity: 0;
}

/* Four strips that cover the viewport minus the card rect.
   Pointer events are all so clicks outside the card are caught. */
.trywhm-hl-catcher {
    position: absolute;
    pointer-events: all;
    cursor: default;
}

/* Positioned over the card; rings and chip live inside */
.trywhm-hl-pulse-root {
    position: absolute;
    pointer-events: none;
}

/* Rings: start at card bounds, scale outward, fade to 0 */
.trywhm-hl-ring {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #0a7ea4;
    box-sizing: border-box;
    transform-origin: center;
    opacity: 0;
    animation: trywhm-hl-ring-pulse 2.7s ease-out infinite;
    animation-fill-mode: backwards; /* hold opacity:0 during delay */
}

.trywhm-hl-ring-1 { animation-delay: 0s;   }
.trywhm-hl-ring-2 { animation-delay: 0.9s; }
.trywhm-hl-ring-3 { animation-delay: 1.8s; }

@keyframes trywhm-hl-ring-pulse {
    0%   { transform: scale(1);    opacity: 0;    }
    7%   {                         opacity: 0.65; }
    100% { transform: scale(1.14); opacity: 0;    }
}

/* Chip: "Start here" badge at top-right of card */
.trywhm-hl-chip {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #0a7ea4;
    color: #ffffff;
    border-radius: 20px;
    padding: 5px 10px 5px 9px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: all;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(10, 126, 164, 0.45);
    animation: trywhm-hl-chip-bob 2.8s ease-in-out infinite;
    z-index: 1;
    user-select: none;
    cursor: default;
}

.trywhm-hl-chip-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: trywhm-hl-dot-blink 1.1s ease-in-out infinite;
}

.trywhm-hl-chip-text {
    letter-spacing: 0.01em;
}

.trywhm-hl-chip-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 0 0 4px;
    margin: 0;
    display: flex;
    align-items: center;
    border-radius: 3px;
    pointer-events: all;
}

.trywhm-hl-chip-close:hover {
    color: #ffffff;
}

.trywhm-hl-chip-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@keyframes trywhm-hl-chip-bob {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-4px); }
}

@keyframes trywhm-hl-dot-blink {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.3; transform: scale(0.75); }
}

/* Reduced motion: one static ring, no animation */
@media (prefers-reduced-motion: reduce) {
    .trywhm-hl-ring-1 {
        animation: none;
        opacity: 0.45;
        transform: scale(1.06);
    }
    .trywhm-hl-ring-2,
    .trywhm-hl-ring-3 {
        display: none;
    }
    .trywhm-hl-chip {
        animation: none;
    }
    .trywhm-hl-chip-dot {
        animation: none;
    }
    #trywhm-hl-root.trywhm-hl-fade-out {
        transition: none;
    }
}
