/**
 * Website forms → Pathline Messages bento animation.
 * Scoped to body.pl-landing-time only.
 */
/* Website forms → Pathline Messages animation */
body.pl-landing-time .pl-time-forms-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);
}

body.pl-landing-time .pl-forms-anim {
    --forms-cycle: 7.2s;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(48px, 0.55fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-bottom: 0;
}

body.pl-landing-time .pl-forms-anim__browser,
body.pl-landing-time .pl-forms-anim__inbox {
    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);
    overflow: hidden;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.pl-landing-time .pl-forms-anim__browser {
    animation: plFormsBrowserPulse var(--forms-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-forms-anim__chrome {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    background: #f3f4f6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.pl-landing-time .pl-forms-anim__chrome > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
}

body.pl-landing-time .pl-forms-anim__chrome > span:nth-child(1) { background: #111; }
body.pl-landing-time .pl-forms-anim__chrome > span:nth-child(2) { background: #9ca3af; }
body.pl-landing-time .pl-forms-anim__chrome > span:nth-child(3) { background: #d1d5db; }

body.pl-landing-time .pl-forms-anim__url {
    flex: 1;
    margin-left: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 9px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pl-landing-time .pl-forms-anim__form {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.pl-landing-time .pl-forms-anim__label {
    margin: 0 0 10px !important;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111;
}

body.pl-landing-time .pl-forms-anim__field {
    height: 28px;
    margin-bottom: 9px;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fafafa;
    display: flex;
    align-items: center;
    overflow: hidden;
}

body.pl-landing-time .pl-forms-anim__field--tall {
    height: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: flex-start;
    padding-top: 8px;
    margin-bottom: 10px;
}

body.pl-landing-time .pl-forms-anim__type {
    display: inline-block;
    height: auto;
    line-height: 1.35;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 500;
    color: #111;
    border-right: 1.5px solid transparent;
}

body.pl-landing-time .pl-forms-anim__type--name {
    animation: plFormsTypeName var(--forms-cycle) steps(12, end) 1 forwards;
}

body.pl-landing-time .pl-forms-anim__type--name::after { content: "Jordan Rivera"; }

body.pl-landing-time .pl-forms-anim__type--email {
    animation: plFormsTypeEmail var(--forms-cycle) steps(18, end) 1 forwards;
}

body.pl-landing-time .pl-forms-anim__type--email::after { content: "jordan@acme.co"; }

body.pl-landing-time .pl-forms-anim__type--msg {
    animation: plFormsTypeMsg var(--forms-cycle) steps(16, end) 1 forwards;
}

body.pl-landing-time .pl-forms-anim__type--msg::after { content: "Need a quote this week"; }

body.pl-landing-time .pl-forms-anim__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-start;
    padding: 7px 16px;
    border: none;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: default;
    pointer-events: none;
    animation: plFormsSubmit var(--forms-cycle) ease-in-out 1 forwards;
    box-shadow: 0 0 0 0 rgba(21, 94, 239, 0);
}

body.pl-landing-time .pl-forms-anim__flight {
    position: relative;
    height: auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.18);
    align-self: stretch;
}

body.pl-landing-time .pl-forms-anim__path {
    width: 100%;
    height: 80px;
    overflow: visible;
    display: block;
}

body.pl-landing-time .pl-forms-anim__path-line {
    animation: plFormsPathDash var(--forms-cycle) linear 1 forwards;
}

body.pl-landing-time .pl-forms-anim__runner {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

body.pl-landing-time .pl-forms-anim__inbox {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    animation: plFormsInboxArrive var(--forms-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-forms-anim__inbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
}

body.pl-landing-time .pl-forms-anim__inbox-bar img {
    display: block;
    height: 12px;
    width: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
}

body.pl-landing-time .pl-forms-anim__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #155eef;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    opacity: 0;
    scale: 0.5;
    animation: plFormsBadge var(--forms-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-anim__threads {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

body.pl-landing-time .pl-forms-anim__thread {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.pl-landing-time .pl-forms-anim__thread--existing {
    opacity: 1;
    transform: none;
    animation: plFormsThreadExisting var(--forms-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-anim__thread--new {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-bottom-color: transparent;
    transform: translateY(-6px);
    animation: plFormsThreadNew var(--forms-cycle) ease-out 1 forwards;
    background: rgba(21, 94, 239, 0.04);
}

body.pl-landing-time .pl-forms-anim__thread--new.is-unread .pl-forms-anim__thread-top strong {
    font-weight: 700;
}

body.pl-landing-time .pl-forms-anim__thread--new.is-unread .pl-forms-anim__thread-top em {
    color: #155eef;
}

body.pl-landing-time .pl-forms-anim__thread--new.is-unread .pl-forms-anim__thread-body p {
    color: #374151;
    font-weight: 550;
}

body.pl-landing-time .pl-forms-anim__unread-dot {
    position: absolute;
    right: 12px;
    top: 50%;
    translate: 0 -50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #155eef;
    opacity: 0;
    scale: 0.5;
    animation: plFormsUnreadDot var(--forms-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-anim__avatar {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.pl-landing-time .pl-forms-anim__avatar--muted {
    background: #9ca3af;
}

body.pl-landing-time .pl-forms-anim__thread-body {
    min-width: 0;
    flex: 1;
    padding-right: 12px;
}

body.pl-landing-time .pl-forms-anim__thread-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

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

body.pl-landing-time .pl-forms-anim__thread--existing .pl-forms-anim__thread-top strong {
    font-weight: 560;
    color: #4b5563;
}

body.pl-landing-time .pl-forms-anim__thread-top em {
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    color: #9ca3af;
}

body.pl-landing-time .pl-forms-anim__thread-body p {
    margin: 0 !important;
    font-size: 10px;
    line-height: 1.35;
    color: #6b7280;
}

body.pl-landing-time .pl-forms-anim__push {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(6px);
    animation: plFormsPush var(--forms-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-forms-anim__push-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    animation: plFormsPushDot 1.4s ease-out 1 forwards;
}

@keyframes plFormsTypeName {
    0%, 4% { max-width: 0; border-right-color: #111; }
    18% { max-width: 7.2em; border-right-color: #111; }
    22%, 100% { max-width: 7.2em; border-right-color: transparent; }
}

@keyframes plFormsTypeEmail {
    0%, 18% { max-width: 0; border-right-color: transparent; }
    19% { border-right-color: #111; }
    32% { max-width: 8.5em; border-right-color: #111; }
    36%, 100% { max-width: 8.5em; border-right-color: transparent; }
}

@keyframes plFormsTypeMsg {
    0%, 32% { max-width: 0; border-right-color: transparent; }
    33% { border-right-color: #111; }
    46% { max-width: 11em; border-right-color: #111; }
    50%, 100% { max-width: 11em; border-right-color: transparent; }
}

@keyframes plFormsSubmit {
    0%, 48% { transform: scale(1); background: #111; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
    52% { transform: scale(0.94); background: #000; box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.12); }
    58%, 100% { transform: scale(1); background: #111; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@keyframes plFormsPathDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -24; }
}

@keyframes plFormsThreadNew {
    0%, 70% {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-color: transparent;
        transform: translateY(-6px);
    }
    76%, 100% {
        max-height: 64px;
        opacity: 1;
        padding-top: 10px;
        padding-bottom: 10px;
        border-bottom-color: rgba(0, 0, 0, 0.05);
        transform: translateY(0);
    }
}

@keyframes plFormsThreadExisting {
    0%, 70% { transform: translateY(0); }
    76%, 100% { transform: translateY(0); }
}

@keyframes plFormsUnreadDot {
    0%, 72% { opacity: 0; scale: 0.5; }
    78%, 100% { opacity: 1; scale: 1; }
}

@keyframes plFormsBadge {
    0%, 72% { opacity: 0; scale: 0.5; }
    78% { opacity: 1; scale: 1.15; }
    84%, 100% { opacity: 1; scale: 1; }
}

@keyframes plFormsPush {
    0%, 78% { opacity: 0; transform: translateY(6px); }
    84%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plFormsPushDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes plFormsBrowserPulse {
    0%, 50% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06); }
    54% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.14); }
    62%, 100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06); }
}

@keyframes plFormsInboxArrive {
    0%, 68% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06); }
    74% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 32px rgba(0, 0, 0, 0.14); }
    86%, 100% { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06); }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-forms-anim__type,
    body.pl-landing-time .pl-forms-anim__submit,
    body.pl-landing-time .pl-forms-anim__path-line,
    body.pl-landing-time .pl-forms-anim__thread,
    body.pl-landing-time .pl-forms-anim__thread--new,
    body.pl-landing-time .pl-forms-anim__badge,
    body.pl-landing-time .pl-forms-anim__unread-dot,
    body.pl-landing-time .pl-forms-anim__push,
    body.pl-landing-time .pl-forms-anim__push-dot,
    body.pl-landing-time .pl-forms-anim__browser,
    body.pl-landing-time .pl-forms-anim__inbox,
    body.pl-landing-time .pl-forms-anim__flight {
        animation: none !important;
    }

    body.pl-landing-time .pl-forms-anim__type {
        max-width: 12em;
        border-right-color: transparent;
    }

    body.pl-landing-time .pl-forms-anim__runner {
        opacity: 0;
    }

    body.pl-landing-time .pl-forms-anim__thread,
    body.pl-landing-time .pl-forms-anim__thread--new,
    body.pl-landing-time .pl-forms-anim__badge,
    body.pl-landing-time .pl-forms-anim__unread-dot,
    body.pl-landing-time .pl-forms-anim__push {
        opacity: 1;
        transform: none;
        scale: 1;
        max-height: none;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    @media (max-width: 720px) {
        body.pl-landing-time .pl-forms-anim__browser,
        body.pl-landing-time .pl-forms-anim__flight {
            opacity: 0;
        }

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

@media (max-width: 720px) {
    /* Mobile forms: two scenes (form → inbox) */
    body.pl-landing-time .pl-forms-anim {
        --forms-cycle: 7.2s;
        display: block;
        position: relative;
        grid-template-columns: none;
        gap: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    body.pl-landing-time .pl-forms-anim__browser,
    body.pl-landing-time .pl-forms-anim__inbox {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        align-self: stretch;
        min-height: 0;
        opacity: 0;
        pointer-events: none;
        box-shadow: none;
    }

    body.pl-landing-time .pl-forms-anim__browser {
        animation: plFormsSceneForm var(--forms-cycle) ease both;
        z-index: 1;
    }

    body.pl-landing-time .pl-forms-anim__flight {
        display: none;
    }

    body.pl-landing-time .pl-forms-anim__inbox {
        animation: plFormsSceneInbox var(--forms-cycle) ease both;
        z-index: 1;
    }

    body.pl-landing-time .pl-forms-anim__type--name {
        animation-name: plFormsTypeNameMobile;
    }

    body.pl-landing-time .pl-forms-anim__type--email {
        animation-name: plFormsTypeEmailMobile;
    }

    body.pl-landing-time .pl-forms-anim__type--msg {
        animation-name: plFormsTypeMsgMobile;
    }

    body.pl-landing-time .pl-forms-anim__submit {
        animation-name: plFormsSubmitMobile;
    }

    body.pl-landing-time .pl-forms-anim__thread--new {
        animation-name: plFormsThreadNewMobile;
    }

    body.pl-landing-time .pl-forms-anim__unread-dot {
        animation-name: plFormsUnreadDotMobile;
    }

    body.pl-landing-time .pl-forms-anim__badge {
        animation-name: plFormsBadgeMobile;
    }

    body.pl-landing-time .pl-forms-anim__push {
        animation-name: plFormsPushMobile;
    }
}

@keyframes plFormsSceneForm {
    0%, 2% { opacity: 0; transform: translateY(8px); }
    6%, 48% { opacity: 1; transform: translateY(0); }
    56%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes plFormsSceneInbox {
    0%, 52% { opacity: 0; transform: translateY(8px); }
    58%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plFormsTypeNameMobile {
    0%, 6% { max-width: 0; border-right-color: #111; }
    16% { max-width: 7.2em; border-right-color: #111; }
    20%, 100% { max-width: 7.2em; border-right-color: transparent; }
}

@keyframes plFormsTypeEmailMobile {
    0%, 18% { max-width: 0; border-right-color: transparent; }
    19% { border-right-color: #111; }
    30% { max-width: 8.5em; border-right-color: #111; }
    34%, 100% { max-width: 8.5em; border-right-color: transparent; }
}

@keyframes plFormsTypeMsgMobile {
    0%, 32% { max-width: 0; border-right-color: transparent; }
    33% { border-right-color: #111; }
    42% { max-width: 11em; border-right-color: #111; }
    46%, 100% { max-width: 11em; border-right-color: transparent; }
}

@keyframes plFormsSubmitMobile {
    0%, 44% { transform: scale(1); background: #111; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
    47% { transform: scale(0.94); background: #000; box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.12); }
    51%, 100% { transform: scale(1); background: #111; box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@keyframes plFormsThreadNewMobile {
    0%, 60% {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-color: transparent;
        transform: translateY(-6px);
    }
    68%, 100% {
        max-height: 64px;
        opacity: 1;
        padding-top: 10px;
        padding-bottom: 10px;
        border-bottom-color: rgba(0, 0, 0, 0.05);
        transform: translateY(0);
    }
}

@keyframes plFormsUnreadDotMobile {
    0%, 62% { opacity: 0; scale: 0.5; }
    70%, 100% { opacity: 1; scale: 1; }
}

@keyframes plFormsBadgeMobile {
    0%, 62% { opacity: 0; scale: 0.5; }
    70% { opacity: 1; scale: 1.12; }
    76%, 100% { opacity: 1; scale: 1; }
}

@keyframes plFormsPushMobile {
    0%, 72% { opacity: 0; transform: translateY(6px); }
    78%, 100% { opacity: 1; transform: translateY(0); }
}

