/**
 * Shared business line / ring group bento animation.
 * Scoped to body.pl-landing-time only.
 */
/* Phone & team — one shared line */
body.pl-landing-time .pl-time-voice-stage {
    margin-top: auto;
    flex: 0 0 auto;
    height: 276px;
    min-height: 276px;
    max-height: 276px;
    padding: 12px 10px 0;
    display: flex;
    align-items: stretch;
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

body.pl-landing-time .pl-voice-anim {
    --voice-cycle: 8.5s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 0;
}

body.pl-landing-time .pl-voice-anim__call {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 12px 12px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    animation: plVoiceCallFrame var(--voice-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

body.pl-landing-time .pl-voice-anim__rings {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 44px;
    height: 44px;
    translate: 0 -50%;
    pointer-events: none;
}

body.pl-landing-time .pl-voice-anim__rings i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    opacity: 0;
    animation: plVoiceRing var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__rings i:nth-child(2) { animation-delay: 0.28s; }
body.pl-landing-time .pl-voice-anim__rings i:nth-child(3) { animation-delay: 0.56s; }

body.pl-landing-time .pl-voice-anim__call-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body.pl-landing-time .pl-voice-anim__avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.03em;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
    animation: plVoiceAvatarPulse var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__call-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.pl-landing-time .pl-voice-anim__banner {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    animation: plVoiceBannerPulse 1.1s ease-in-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__name {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.pl-landing-time .pl-voice-anim__line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: -0.01em;
}

body.pl-landing-time .pl-voice-anim__line-chip {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.pl-landing-time .pl-voice-anim__route {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    flex: 1;
    opacity: 0;
    transform: translateY(10px);
    animation: plVoiceRouteIn var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__hub {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

body.pl-landing-time .pl-voice-anim__hub span {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

body.pl-landing-time .pl-voice-anim__hub strong {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
}

body.pl-landing-time .pl-voice-anim__branches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    margin-top: 0;
}

body.pl-landing-time .pl-voice-anim__branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

body.pl-landing-time .pl-voice-anim__pipe {
    display: block;
    flex: 1 1 auto;
    width: 2px;
    min-height: 18px;
    margin: 0 auto;
    border-radius: 2px;
    background: #d1d5db;
    transform-origin: top center;
    transform: scaleY(0);
    animation: plVoicePipe var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--b .pl-voice-anim__pipe { animation-delay: 0.06s; }
body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__pipe { animation-delay: 0.12s; }

body.pl-landing-time .pl-voice-anim__person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0;
    padding: 9px 4px 11px;
    border-radius: 12px 12px 0 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    text-align: center;
}

body.pl-landing-time .pl-voice-anim__branch--a .pl-voice-anim__person {
    animation: plVoicePersonMiss var(--voice-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person {
    animation: plVoicePersonBusy var(--voice-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person {
    animation: plVoicePersonAnswer var(--voice-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__person-av {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person-av {
    animation: plVoiceAnswerAv var(--voice-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person-av {
    animation: plVoiceBusyAv var(--voice-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person-av i {
    animation: none;
    opacity: 0;
}

body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__pipe {
    animation: plVoiceBusyPipe var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__person-av i {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.28);
    opacity: 0;
    animation: plVoicePersonRing var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person-av i {
    animation: plVoicePersonRing var(--voice-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-voice-anim__person-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

body.pl-landing-time .pl-voice-anim__person-meta strong {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
    line-height: 1.15;
}

body.pl-landing-time .pl-voice-anim__person-meta em {
    font-style: normal;
    font-size: 8px;
    font-weight: 500;
    color: #9ca3af;
}

body.pl-landing-time .pl-voice-anim__person-state {
    font-size: 0;
    min-height: 11px;
}

body.pl-landing-time .pl-voice-anim__person-state::after {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    content: "Waiting";
    color: #9ca3af;
}

body.pl-landing-time .pl-voice-anim__branch--a .pl-voice-anim__person-state::after {
    animation: plVoiceStateMiss var(--voice-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person-state::after {
    animation: plVoiceStateBusy var(--voice-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person-state::after {
    animation: plVoiceStateAnswer var(--voice-cycle) steps(1, end) 1 forwards;
}

@keyframes plVoiceCallFrame {
    0%, 5% {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }
    12%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes plVoiceBannerPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes plVoiceAvatarPulse {
    0%, 8% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    16%, 40% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes plVoiceRing {
    0%, 8% { opacity: 0; transform: scale(0.55); }
    14% { opacity: 0.6; transform: scale(0.8); }
    36% { opacity: 0; transform: scale(1.7); }
    100% { opacity: 0; transform: scale(1.7); }
}

@keyframes plVoiceRouteIn {
    0%, 28% { opacity: 0; transform: translateY(12px); }
    36%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plVoicePipe {
    0%, 32% { transform: scaleY(0); opacity: 0; }
    40%, 100% { transform: scaleY(1); opacity: 1; }
}

@keyframes plVoicePersonMiss {
    0%, 38% {
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
        opacity: 1;
    }
    44%, 68% {
        border-color: rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.07);
        opacity: 1;
    }
    76%, 100% {
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
        opacity: 0.55;
    }
}

@keyframes plVoicePersonAnswer {
    0%, 38% {
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
        background: #fff;
    }
    44%, 68% {
        border-color: rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.07);
        background: #fff;
    }
    74%, 100% {
        border-color: #16a34a;
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14), 0 10px 20px rgba(22, 163, 74, 0.16);
        background: #f0fdf4;
    }
}

@keyframes plVoiceAnswerAv {
    0%, 72% { background: #111; color: #fff; }
    73%, 100% { background: #16a34a; color: #fff; }
}

@keyframes plVoicePersonRing {
    0%, 42% { opacity: 0; transform: scale(0.7); }
    48% { opacity: 0.65; transform: scale(0.9); }
    64% { opacity: 0; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(1.35); }
}

@keyframes plVoicePersonBusy {
    0%, 72% {
        border-color: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12), 0 8px 16px rgba(245, 158, 11, 0.1);
        background: #fffbeb;
        opacity: 0.88;
    }
    76%, 100% {
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
        background: #fff;
        opacity: 0.55;
    }
}

@keyframes plVoiceBusyAv {
    0%, 72% { background: #d97706; }
    73%, 100% { background: #111; }
}

@keyframes plVoiceBusyPipe {
    0%, 32% { transform: scaleY(0); opacity: 0; background: #d1d5db; }
    40%, 72% { transform: scaleY(1); opacity: 0.55; background: #fcd34d; }
    76%, 100% { transform: scaleY(1); opacity: 0.35; background: #d1d5db; }
}

@keyframes plVoiceStateBusy {
    0%, 72% { content: "On call"; color: #d97706; }
    73%, 100% { content: "On call"; color: #9ca3af; }
}

@keyframes plVoiceStateMiss {
    0%, 40% { content: "Waiting"; color: #9ca3af; }
    41%, 70% { content: "Ringing"; color: #111; }
    71%, 100% { content: "Missed"; color: #9ca3af; }
}

@keyframes plVoiceStateAnswer {
    0%, 40% { content: "Waiting"; color: #9ca3af; }
    41%, 70% { content: "Ringing"; color: #111; }
    73%, 100% { content: "On call"; color: #16a34a; }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-voice-anim__call,
    body.pl-landing-time .pl-voice-anim__rings i,
    body.pl-landing-time .pl-voice-anim__banner,
    body.pl-landing-time .pl-voice-anim__avatar,
    body.pl-landing-time .pl-voice-anim__route,
    body.pl-landing-time .pl-voice-anim__pipe,
    body.pl-landing-time .pl-voice-anim__person,
    body.pl-landing-time .pl-voice-anim__person-av,
    body.pl-landing-time .pl-voice-anim__person-av i,
    body.pl-landing-time .pl-voice-anim__person-state::after {
        animation: none !important;
    }

    body.pl-landing-time .pl-voice-anim__call,
    body.pl-landing-time .pl-voice-anim__route {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-voice-anim__pipe {
        transform: scaleY(1);
        opacity: 1;
    }

    body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person {
        border-color: #16a34a;
        background: #f0fdf4;
    }

    body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person-av {
        background: #16a34a;
    }

    body.pl-landing-time .pl-voice-anim__branch--a .pl-voice-anim__person-state::after {
        content: "Missed";
    }

    body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person {
        border-color: rgba(0, 0, 0, 0.08);
        background: #fff;
        opacity: 0.55;
    }

    body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person-av {
        background: #111;
    }

    body.pl-landing-time .pl-voice-anim__branch--busy .pl-voice-anim__person-state::after {
        content: "On call";
        color: #9ca3af;
    }

    body.pl-landing-time .pl-voice-anim__branch--answer .pl-voice-anim__person-state::after {
        content: "On call";
        color: #16a34a;
    }
}

