/**
 * AI Spam Agent — staggered messages branch off honeypot & AI, then stay landed.
 * Scoped to body.pl-landing-time only.
 */
body.pl-landing-time .pl-time-forms-spam-stage {
    margin-top: auto;
    flex: 0 0 auto;
    height: 276px;
    min-height: 276px;
    max-height: 276px;
    padding: 14px 14px 0;
    display: flex;
    align-items: stretch;
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

body.pl-landing-time .pl-forms-spam-anim {
    --forms-spam-cycle: 12s;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 12px 10px 10px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 28px rgba(0, 0, 0, 0.06);
}

body.pl-landing-time .pl-forms-spam-anim__track {
    position: relative;
    height: 100%;
    min-height: 0;
}

body.pl-landing-time .pl-forms-spam-anim__paths {
    position: absolute;
    inset: 8px 4px 28px;
    width: calc(100% - 8px);
    height: calc(100% - 36px);
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

body.pl-landing-time .pl-forms-spam-anim__path {
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

body.pl-landing-time .pl-forms-spam-anim__path--main {
    stroke: rgba(0, 0, 0, 0.12);
    stroke-dasharray: 3 3;
}

body.pl-landing-time .pl-forms-spam-anim__branch {
    position: absolute;
    top: 34%;
    width: 2px;
    height: 0;
    border: none;
    border-left: none;
    background-image: repeating-linear-gradient(
        to bottom,
        currentColor 0 3px,
        transparent 3px 6px
    );
    background-repeat: no-repeat;
    background-size: 2px 100%;
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

body.pl-landing-time .pl-forms-spam-anim__branch--hp {
    left: 34%;
    translate: -50% 0;
    color: rgba(220, 38, 38, 0.5);
    animation: plFormsSpamBranchHp var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__branch--ai {
    left: 62%;
    translate: -50% 0;
    color: rgba(234, 88, 12, 0.5);
    animation: plFormsSpamBranchAi var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__stop {
    position: absolute;
    top: 34%;
    translate: -50% -50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

body.pl-landing-time .pl-forms-spam-anim__stop--form { left: 8%; }
body.pl-landing-time .pl-forms-spam-anim__stop--hp { left: 34%; }
body.pl-landing-time .pl-forms-spam-anim__stop--ai { left: 62%; }
body.pl-landing-time .pl-forms-spam-anim__stop--inbox { left: 90%; }

body.pl-landing-time .pl-forms-spam-anim__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d1d5db;
    box-shadow: 0 0 0 3px #fff;
}

body.pl-landing-time .pl-forms-spam-anim__stop--hp .pl-forms-spam-anim__dot {
    border-color: rgba(220, 38, 38, 0.35);
}

body.pl-landing-time .pl-forms-spam-anim__stop--ai .pl-forms-spam-anim__dot {
    width: 28px;
    height: 28px;
    border: none;
    background: #111;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

body.pl-landing-time .pl-forms-spam-anim__stop--ai .pl-forms-spam-anim__dot img {
    width: 14px !important;
    height: 14px !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 3px;
    object-fit: cover !important;
}

body.pl-landing-time .pl-forms-spam-anim__stop span {
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #6b7280;
    white-space: nowrap;
}

body.pl-landing-time .pl-forms-spam-anim__stop--ai span {
    color: #111;
}

body.pl-landing-time .pl-forms-spam-anim__hp-flash {
    position: absolute;
    left: 34%;
    top: 34%;
    translate: -50% -50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

body.pl-landing-time .pl-forms-spam-anim__hp-flash--bad {
    background: rgba(220, 38, 38, 0.18);
    animation: plFormsSpamHpBad var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__hp-flash--ok {
    background: rgba(5, 150, 105, 0.16);
    animation: plFormsSpamHpOk var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__bin {
    position: absolute;
    translate: -50% 0;
    bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    z-index: 1;
}

body.pl-landing-time .pl-forms-spam-anim__bin--blocked {
    left: 34%;
    top: 74%;
    bottom: auto;
    translate: -50% -50%;
    background: #fef2f2;
    color: #dc2626;
    animation: plFormsSpamBinBlocked var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__bin--filtered {
    left: 62%;
    top: 74%;
    bottom: auto;
    translate: -50% -50%;
    background: #fff7ed;
    color: #ea580c;
    animation: plFormsSpamBinFiltered var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__bin--inbox {
    left: 90%;
    top: 48%;
    bottom: auto;
    translate: -50% -50%;
    background: #eff6ff;
    color: #155eef;
    animation: plFormsSpamBinInbox var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg {
    position: absolute;
    left: 8%;
    top: 34%;
    translate: -50% -50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    opacity: 0;
    max-width: 108px;
    overflow: hidden;
}

body.pl-landing-time .pl-forms-spam-anim__msg-av {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    flex: 0 0 auto;
}

body.pl-landing-time .pl-forms-spam-anim__msg--bot .pl-forms-spam-anim__msg-av { background: #9ca3af; }
body.pl-landing-time .pl-forms-spam-anim__msg--junk .pl-forms-spam-anim__msg-av { background: #f59e0b; }
body.pl-landing-time .pl-forms-spam-anim__msg--lead .pl-forms-spam-anim__msg-av { background: #111; }

body.pl-landing-time .pl-forms-spam-anim__msg-copy {
    position: relative;
    min-width: 0;
    flex: 1;
    min-height: 22px;
    overflow: hidden;
}

body.pl-landing-time .pl-forms-spam-anim__msg strong {
    display: block;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pl-landing-time .pl-forms-spam-anim__msg-sub {
    display: block;
    font-style: normal;
    font-size: 7px;
    line-height: 1.3;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pl-landing-time .pl-forms-spam-anim__msg-sub--result {
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    opacity: 0;
}

body.pl-landing-time .pl-forms-spam-anim__msg--bot .pl-forms-spam-anim__msg-sub--pending {
    animation: plFormsSpamBotPending var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--bot .pl-forms-spam-anim__msg-sub--result {
    color: #dc2626;
    animation: plFormsSpamBotResult var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--junk .pl-forms-spam-anim__msg-sub--pending {
    animation: plFormsSpamJunkPending var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--junk .pl-forms-spam-anim__msg-sub--result {
    color: #ea580c;
    animation: plFormsSpamJunkResult var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--lead .pl-forms-spam-anim__msg-sub--pending {
    animation: plFormsSpamLeadPending var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--lead .pl-forms-spam-anim__msg-sub--result {
    color: #155eef;
    animation: plFormsSpamLeadResult var(--forms-spam-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--bot {
    animation: plFormsSpamTravelBot var(--forms-spam-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--junk {
    animation: plFormsSpamTravelJunk var(--forms-spam-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-forms-spam-anim__msg--lead {
    animation: plFormsSpamTravelLead var(--forms-spam-cycle) ease-in-out 1 forwards;
}

/* Branch lines grow from apex as message travels down */
@keyframes plFormsSpamBranchHp {
    0%, 10% { height: 0; opacity: 0; }
    11% { height: 0; opacity: 1; }
    17%, 100% { height: 40%; opacity: 1; }
}

@keyframes plFormsSpamBranchAi {
    0%, 43% { height: 0; opacity: 0; }
    44% { height: 0; opacity: 1; }
    50%, 100% { height: 40%; opacity: 1; }
}

@keyframes plFormsSpamBotPending {
    0%, 10% { opacity: 0; }
    3%, 10% { opacity: 1; }
    12%, 100% { opacity: 0; }
}

@keyframes plFormsSpamBotResult {
    0%, 10% { opacity: 0; }
    12%, 100% { opacity: 1; }
}

@keyframes plFormsSpamJunkPending {
    0%, 28% { opacity: 0; }
    30%, 43% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes plFormsSpamJunkResult {
    0%, 44% { opacity: 0; }
    46%, 100% { opacity: 1; }
}

@keyframes plFormsSpamLeadPending {
    0%, 56% { opacity: 0; }
    58%, 78% { opacity: 1; }
    81%, 100% { opacity: 0; }
}

@keyframes plFormsSpamLeadResult {
    0%, 78% { opacity: 0; }
    81%, 100% { opacity: 1; }
}

/* Bot first — branches down at honeypot */
@keyframes plFormsSpamTravelBot {
    0%, 1% { left: 8%; top: 34%; opacity: 0; scale: 0.92; }
    3%, 5% { left: 8%; top: 34%; opacity: 1; scale: 1; }
    11% { left: 34%; top: 34%; opacity: 1; }
    17% { left: 34%; top: 74%; opacity: 1; scale: 0.96; }
    20%, 100% { left: 34%; top: 74%; opacity: 1; scale: 0.96; }
}

/* Junk second — main line then branches down at AI */
@keyframes plFormsSpamTravelJunk {
    0%, 26% { left: 8%; top: 34%; opacity: 0; scale: 0.92; }
    28%, 30% { left: 8%; top: 34%; opacity: 1; scale: 1; }
    36% { left: 34%; top: 34%; opacity: 1; }
    44% { left: 62%; top: 34%; opacity: 1; }
    50% { left: 62%; top: 74%; opacity: 1; scale: 0.96; }
    54%, 100% { left: 62%; top: 74%; opacity: 1; scale: 0.96; }
}

/* Lead last — stays on main trunk to inbox */
@keyframes plFormsSpamTravelLead {
    0%, 54% { left: 8%; top: 34%; opacity: 0; scale: 0.92; }
    56%, 58% { left: 8%; top: 34%; opacity: 1; scale: 1; }
    64% { left: 34%; top: 34%; opacity: 1; }
    72% { left: 62%; top: 34%; opacity: 1; }
    80% { left: 90%; top: 34%; opacity: 1; scale: 1; }
    84%, 100% { left: 90%; top: 34%; opacity: 1; scale: 1; }
}

@keyframes plFormsSpamHpBad {
    0%, 8% { opacity: 0; scale: 0.6; }
    11%, 17% { opacity: 1; scale: 1.4; }
    22%, 100% { opacity: 0.25; scale: 1.15; }
}

@keyframes plFormsSpamHpOk {
    0%, 33% { opacity: 0; scale: 0.6; }
    36%, 42% { opacity: 1; scale: 1.35; }
    48%, 61% { opacity: 0; scale: 1.15; }
    63%, 68% { opacity: 1; scale: 1.35; }
    74%, 100% { opacity: 0.2; scale: 1.1; }
}

@keyframes plFormsSpamBinBlocked {
    0%, 15% { opacity: 0; transform: translateY(4px); }
    18%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plFormsSpamBinFiltered {
    0%, 48% { opacity: 0; transform: translateY(4px); }
    52%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plFormsSpamBinInbox {
    0%, 78% { opacity: 0; transform: translateY(4px); }
    82%, 100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-forms-spam-anim__msg--bot {
        left: 34%;
        top: 74%;
        opacity: 1;
        scale: 0.96;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg--junk {
        left: 62%;
        top: 74%;
        opacity: 1;
        scale: 0.96;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg--lead {
        left: 90%;
        top: 34%;
        opacity: 1;
        scale: 1;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg,
    body.pl-landing-time .pl-forms-spam-anim__hp-flash,
    body.pl-landing-time .pl-forms-spam-anim__bin,
    body.pl-landing-time .pl-forms-spam-anim__branch,
    body.pl-landing-time .pl-forms-spam-anim__msg-sub {
        animation: none !important;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg-sub--pending {
        opacity: 0;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg-sub--result {
        opacity: 1;
    }

    body.pl-landing-time .pl-forms-spam-anim__branch {
        opacity: 1;
        height: 40%;
    }

    body.pl-landing-time .pl-forms-spam-anim__bin {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 720px) {
    body.pl-landing-time .pl-time-forms-spam-stage {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    body.pl-landing-time .pl-forms-spam-anim {
        padding: 10px 8px 8px;
    }

    body.pl-landing-time .pl-forms-spam-anim__paths {
        inset: 6px 2px 24px;
        width: calc(100% - 4px);
        height: calc(100% - 30px);
    }

    body.pl-landing-time .pl-forms-spam-anim__path--main {
        stroke-width: 1.6;
    }

    body.pl-landing-time .pl-forms-spam-anim__branch {
        width: 2.5px;
        background-size: 2.5px 100%;
    }

    body.pl-landing-time .pl-forms-spam-anim__stop {
        gap: 4px;
    }

    body.pl-landing-time .pl-forms-spam-anim__stop span {
        font-size: 7px;
        letter-spacing: 0;
    }

    body.pl-landing-time .pl-forms-spam-anim__stop--ai > span:last-child {
        font-size: 0;
    }

    body.pl-landing-time .pl-forms-spam-anim__stop--ai > span:last-child::before {
        content: "AI Agent";
        font-size: 7px;
        font-weight: 650;
        color: #111;
    }

    body.pl-landing-time .pl-forms-spam-anim__stop--ai .pl-forms-spam-anim__dot {
        width: 24px;
        height: 24px;
    }

    body.pl-landing-time .pl-forms-spam-anim__stop--ai .pl-forms-spam-anim__dot img {
        width: 12px !important;
        height: 12px !important;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg {
        max-width: 92px;
        gap: 5px;
        padding: 4px 6px;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg-av {
        width: 16px;
        height: 16px;
        font-size: 6px;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg-copy {
        min-height: 20px;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg strong {
        font-size: 7px;
        margin-bottom: 1px;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg-sub {
        font-size: 6px;
    }

    body.pl-landing-time .pl-forms-spam-anim__msg-sub--result {
        top: 10px;
    }

    /* Keep lead card clear of the Inbox stop/bin on the right edge */
    body.pl-landing-time .pl-forms-spam-anim__msg--lead {
        max-width: 84px;
    }

    @keyframes plFormsSpamTravelLead {
        0%, 54% { left: 8%; top: 34%; opacity: 0; scale: 0.92; }
        56%, 58% { left: 8%; top: 34%; opacity: 1; scale: 1; }
        64% { left: 34%; top: 34%; opacity: 1; }
        72% { left: 62%; top: 34%; opacity: 1; }
        80% { left: 84%; top: 34%; opacity: 1; scale: 1; }
        84%, 100% { left: 84%; top: 34%; opacity: 1; scale: 1; }
    }

    body.pl-landing-time .pl-forms-spam-anim__bin--inbox {
        left: 84%;
        top: 58%;
    }

    body.pl-landing-time .pl-forms-spam-anim__bin {
        padding: 3px 7px;
        font-size: 6px;
    }
}
