/**
 * Web Studio speed race — WordPress vs Pathline first paint.
 * Scoped to body.pl-landing-time only.
 */
body.pl-landing-time .pl-time-webstudio-speed-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-webstudio-speed-anim {
    --webstudio-speed-cycle: 9s;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 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);
    opacity: 0;
    transform: translateY(8px);
    animation: plWsSpeedShellIn var(--webstudio-speed-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    overflow: hidden;
}

body.pl-landing-time .pl-webstudio-speed-anim__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
}

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

body.pl-landing-time .pl-webstudio-speed-anim__result {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    opacity: 0;
    transform: scale(0.9);
    animation: plWsSpeedResult var(--webstudio-speed-cycle) cubic-bezier(0.34, 1.45, 0.64, 1) 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__result em {
    font-style: normal;
    color: #047857;
}

body.pl-landing-time .pl-webstudio-speed-anim__lanes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl {
    border-color: rgba(0, 0, 0, 0.1);
    background: #fff;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane-top strong {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #6b7280;
    line-height: 1.3;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__lane-top strong {
    color: #111;
}

body.pl-landing-time .pl-webstudio-speed-anim__timer {
    position: relative;
    min-width: 38px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    text-align: right;
    color: #9ca3af;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__timer {
    color: #111;
}

body.pl-landing-time .pl-webstudio-speed-anim__timer-wait,
body.pl-landing-time .pl-webstudio-speed-anim__timer-done {
    display: block;
}

body.pl-landing-time .pl-webstudio-speed-anim__timer-wait {
    animation: plWsSpeedWpTimerWait var(--webstudio-speed-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__timer-done {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--wp .pl-webstudio-speed-anim__timer-done {
    animation: plWsSpeedWpTimerDone var(--webstudio-speed-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__timer-wait {
    animation: plWsSpeedPlTimerWait var(--webstudio-speed-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__timer-done {
    animation: plWsSpeedPlTimerDone var(--webstudio-speed-cycle) steps(1, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__preview {
    position: relative;
    flex: 1;
    min-height: 52px;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    overflow: hidden;
}

body.pl-landing-time .pl-webstudio-speed-anim__skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 45%, #f3f4f6 90%);
    background-size: 200% 100%;
    animation: plWsSpeedWpSkeleton var(--webstudio-speed-cycle) linear 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__skeleton {
    animation: plWsSpeedPlSkeleton var(--webstudio-speed-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__content {
    position: relative;
    z-index: 1;
    padding: 8px;
    opacity: 0;
    transform: translateY(4px);
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--wp .pl-webstudio-speed-anim__content {
    animation: plWsSpeedWpContent var(--webstudio-speed-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__content {
    animation: plWsSpeedPlContent var(--webstudio-speed-cycle) cubic-bezier(0.34, 1.45, 0.64, 1) 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__hero {
    height: 18px;
    border-radius: 4px;
    margin-bottom: 5px;
    background: #e5e7eb;
}

body.pl-landing-time .pl-webstudio-speed-anim__line {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 4px;
}

body.pl-landing-time .pl-webstudio-speed-anim__progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
    flex: 0 0 auto;
}

body.pl-landing-time .pl-webstudio-speed-anim__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #9ca3af;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--wp .pl-webstudio-speed-anim__fill {
    animation: plWsSpeedWpFill var(--webstudio-speed-cycle) linear 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__fill {
    background: #111;
    animation: plWsSpeedPlFill var(--webstudio-speed-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
}

body.pl-landing-time .pl-webstudio-speed-anim__steps li {
    font-size: 8px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: -0.01em;
    opacity: 0.45;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__steps li {
    color: #374151;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--wp .pl-webstudio-speed-anim__step--1 {
    animation: plWsSpeedStep1 var(--webstudio-speed-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--wp .pl-webstudio-speed-anim__step--2 {
    animation: plWsSpeedStep2 var(--webstudio-speed-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--wp .pl-webstudio-speed-anim__step--3 {
    animation: plWsSpeedStep3 var(--webstudio-speed-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-speed-anim__lane--pl .pl-webstudio-speed-anim__step--1 {
    animation: plWsSpeedPlStep var(--webstudio-speed-cycle) ease-out 1 forwards;
}

@keyframes plWsSpeedShellIn {
    0%, 3% { opacity: 0; transform: translateY(8px); }
    8%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plWsSpeedResult {
    0%, 78% { opacity: 0; transform: scale(0.9); }
    84% { opacity: 1; transform: scale(1.06); }
    90%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes plWsSpeedWpTimerWait {
    0%, 72% { opacity: 1; }
    74%, 100% { opacity: 0; }
}

@keyframes plWsSpeedWpTimerDone {
    0%, 72% { opacity: 0; }
    74%, 100% { opacity: 1; }
}

@keyframes plWsSpeedPlTimerWait {
    0%, 8% { opacity: 1; }
    10%, 100% { opacity: 0; }
}

@keyframes plWsSpeedPlTimerDone {
    0%, 8% { opacity: 0; }
    10%, 100% { opacity: 1; }
}

@keyframes plWsSpeedWpSkeleton {
    0%, 8% { background-position: 100% 0; opacity: 1; }
    74% { background-position: 0% 0; opacity: 1; }
    78%, 100% { opacity: 0; }
}

@keyframes plWsSpeedPlSkeleton {
    0%, 6% { opacity: 1; }
    12%, 100% { opacity: 0; }
}

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

@keyframes plWsSpeedPlContent {
    0%, 8% { opacity: 0; transform: scale(0.94) translateY(4px); }
    14% { opacity: 1; transform: scale(1.02) translateY(0); }
    18%, 100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes plWsSpeedWpFill {
    0%, 8% { width: 0; }
    74%, 100% { width: 100%; }
}

@keyframes plWsSpeedPlFill {
    0%, 8% { width: 0; }
    12%, 100% { width: 100%; }
}

@keyframes plWsSpeedStep1 {
    0%, 12% { opacity: 0.45; color: #9ca3af; font-weight: 500; }
    14%, 28% { opacity: 1; color: #374151; font-weight: 650; }
    30%, 100% { opacity: 0.55; color: #9ca3af; font-weight: 500; }
}

@keyframes plWsSpeedStep2 {
    0%, 28% { opacity: 0.45; color: #9ca3af; font-weight: 500; }
    30%, 48% { opacity: 1; color: #374151; font-weight: 650; }
    50%, 100% { opacity: 0.55; color: #9ca3af; font-weight: 500; }
}

@keyframes plWsSpeedStep3 {
    0%, 48% { opacity: 0.45; color: #9ca3af; font-weight: 500; }
    50%, 72% { opacity: 1; color: #374151; font-weight: 650; }
    74%, 100% { opacity: 0.55; color: #9ca3af; font-weight: 500; }
}

@keyframes plWsSpeedPlStep {
    0%, 8% { opacity: 0.45; font-weight: 500; }
    12%, 100% { opacity: 1; font-weight: 650; }
}

@media (max-width: 720px) {
    body.pl-landing-time .pl-time-webstudio-speed-stage {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__lanes {
        grid-template-columns: 1fr;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__preview {
        min-height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-webstudio-speed-anim,
    body.pl-landing-time .pl-webstudio-speed-anim__result,
    body.pl-landing-time .pl-webstudio-speed-anim__timer-wait,
    body.pl-landing-time .pl-webstudio-speed-anim__timer-done,
    body.pl-landing-time .pl-webstudio-speed-anim__skeleton,
    body.pl-landing-time .pl-webstudio-speed-anim__content,
    body.pl-landing-time .pl-webstudio-speed-anim__fill,
    body.pl-landing-time .pl-webstudio-speed-anim__steps li {
        animation: none !important;
    }

    body.pl-landing-time .pl-webstudio-speed-anim {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__timer-wait {
        display: none;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__timer-done {
        opacity: 1;
        position: static;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__skeleton {
        opacity: 0;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__content {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__fill {
        width: 100%;
    }

    body.pl-landing-time .pl-webstudio-speed-anim__result {
        opacity: 1;
        transform: none;
    }
}
