/**
 * Web Studio drop & publish bento animation.
 * Scoped to body.pl-landing-time only.
 */
body.pl-landing-time .pl-time-webstudio-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-anim {
    --webstudio-cycle: 8s;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

body.pl-landing-time .pl-webstudio-anim__shell {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 100%;
    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: plWebstudioShellIn var(--webstudio-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    overflow: hidden;
}

body.pl-landing-time .pl-webstudio-anim__editor,
body.pl-landing-time .pl-webstudio-anim__browser {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
}

body.pl-landing-time .pl-webstudio-anim__editor {
    background: #0f172a;
    border-color: rgba(15, 23, 42, 0.9);
}

body.pl-landing-time .pl-webstudio-anim__ed-bar,
body.pl-landing-time .pl-webstudio-anim__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    flex: 0 0 auto;
}

body.pl-landing-time .pl-webstudio-anim__ed-bar {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.pl-landing-time .pl-webstudio-anim__ed-bar span {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.72);
}

body.pl-landing-time .pl-webstudio-anim__ed-bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    animation: plWebstudioPublishBtn var(--webstudio-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__code {
    flex: 1;
    min-height: 0;
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
}

body.pl-landing-time .pl-webstudio-anim__line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
}

body.pl-landing-time .pl-webstudio-anim__line--1 {
    color: #93c5fd;
    animation: plWebstudioLine1 var(--webstudio-cycle) steps(18, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__line--2 {
    color: #a7f3d0;
    padding-left: 10px;
    animation: plWebstudioLine2 var(--webstudio-cycle) steps(16, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__line--3 {
    color: #fde68a;
    padding-left: 10px;
    animation: plWebstudioLine3 var(--webstudio-cycle) steps(14, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__line--4 {
    color: #93c5fd;
    animation: plWebstudioLine4 var(--webstudio-cycle) steps(10, end) 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__chrome {
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.pl-landing-time .pl-webstudio-anim__chrome > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    flex: 0 0 auto;
}

body.pl-landing-time .pl-webstudio-anim__chrome > i:nth-child(1) { background: #111; }
body.pl-landing-time .pl-webstudio-anim__chrome > i:nth-child(2) { background: #9ca3af; }

body.pl-landing-time .pl-webstudio-anim__url {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    margin-left: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: -0.01em;
}

body.pl-landing-time .pl-webstudio-anim__lock {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    border: 1.5px solid #22c55e;
    position: relative;
    flex: 0 0 auto;
    opacity: 0;
    animation: plWebstudioLockIn var(--webstudio-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__lock::before {
    content: "";
    position: absolute;
    left: 1px;
    top: -4px;
    width: 4px;
    height: 3px;
    border: 1.5px solid #22c55e;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

body.pl-landing-time .pl-webstudio-anim__page {
    flex: 1;
    min-height: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #fff;
    opacity: 0;
    transform: translateY(6px);
    animation: plWebstudioPageIn var(--webstudio-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.pl-landing-time .pl-webstudio-anim__nav strong {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

body.pl-landing-time .pl-webstudio-anim__nav span {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
}

body.pl-landing-time .pl-webstudio-anim__nav span:first-of-type {
    margin-left: auto;
}

body.pl-landing-time .pl-webstudio-anim__hero {
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 55%, #fce7f3 100%);
    animation: plWebstudioHeroPulse var(--webstudio-cycle) ease-in-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-anim__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.pl-landing-time .pl-webstudio-anim__lines i {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
}

body.pl-landing-time .pl-webstudio-anim__cta {
    align-self: flex-start;
    margin-top: auto;
    padding: 5px 10px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.01em;
}

body.pl-landing-time .pl-webstudio-anim__live {
    position: absolute;
    right: 18px;
    bottom: 18px;
    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;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    animation: plWebstudioLiveIn var(--webstudio-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    z-index: 2;
}

body.pl-landing-time .pl-webstudio-anim__live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: plWebstudioLiveDot var(--webstudio-cycle) ease-out 1 forwards;
}

@keyframes plWebstudioShellIn {
    0%, 4% { opacity: 0; transform: translateY(8px); }
    12%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plWebstudioLine1 {
    0%, 12% { max-width: 0; opacity: 0; }
    14% { opacity: 1; }
    28%, 100% { max-width: 100%; opacity: 1; }
}

@keyframes plWebstudioLine2 {
    0%, 22% { max-width: 0; opacity: 0; }
    24% { opacity: 1; }
    36%, 100% { max-width: 100%; opacity: 1; }
}

@keyframes plWebstudioLine3 {
    0%, 30% { max-width: 0; opacity: 0; }
    32% { opacity: 1; }
    42%, 100% { max-width: 100%; opacity: 1; }
}

@keyframes plWebstudioLine4 {
    0%, 38% { max-width: 0; opacity: 0; }
    40% { opacity: 1; }
    48%, 100% { max-width: 100%; opacity: 1; }
}

@keyframes plWebstudioPublishBtn {
    0%, 48% {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.85);
        transform: scale(1);
        box-shadow: none;
    }
    52% {
        background: #22c55e;
        color: #052e16;
        transform: scale(0.96);
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    }
    58%, 100% {
        background: #22c55e;
        color: #052e16;
        transform: scale(1);
        box-shadow: none;
    }
}

@keyframes plWebstudioPageIn {
    0%, 54% { opacity: 0; transform: translateY(6px); }
    64%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes plWebstudioLockIn {
    0%, 58% { opacity: 0; }
    68%, 100% { opacity: 1; }
}

@keyframes plWebstudioHeroPulse {
    0%, 62% { filter: saturate(0.7) brightness(0.98); }
    72%, 100% { filter: saturate(1) brightness(1); }
}

@keyframes plWebstudioLiveIn {
    0%, 70% { opacity: 0; transform: translateY(8px) scale(0.96); }
    80%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes plWebstudioLiveDot {
    0%, 72% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    85% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 640px) {
    body.pl-landing-time .pl-webstudio-anim__shell {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    body.pl-landing-time .pl-webstudio-anim__live {
        right: 14px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-webstudio-anim__shell,
    body.pl-landing-time .pl-webstudio-anim__line,
    body.pl-landing-time .pl-webstudio-anim__ed-bar em,
    body.pl-landing-time .pl-webstudio-anim__page,
    body.pl-landing-time .pl-webstudio-anim__lock,
    body.pl-landing-time .pl-webstudio-anim__hero,
    body.pl-landing-time .pl-webstudio-anim__live,
    body.pl-landing-time .pl-webstudio-anim__live i {
        animation: none !important;
    }

    body.pl-landing-time .pl-webstudio-anim__shell,
    body.pl-landing-time .pl-webstudio-anim__page,
    body.pl-landing-time .pl-webstudio-anim__lock,
    body.pl-landing-time .pl-webstudio-anim__live {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-webstudio-anim__line {
        max-width: 100%;
        opacity: 1;
    }

    body.pl-landing-time .pl-webstudio-anim__ed-bar em {
        background: #22c55e;
        color: #052e16;
    }
}
