/**
 * Web Studio domain + SSL — lock secures, then secure URL reveal.
 * Scoped to body.pl-landing-time only.
 */
body.pl-landing-time .pl-time-webstudio-domain-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-domain-anim {
    --webstudio-domain-cycle: 8s;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

body.pl-landing-time .pl-webstudio-domain-anim__lock-scene,
body.pl-landing-time .pl-webstudio-domain-anim__secure-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

body.pl-landing-time .pl-webstudio-domain-anim__lock-scene {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    animation: plWsDomainSceneLock var(--webstudio-domain-cycle) ease both;
}

body.pl-landing-time .pl-webstudio-domain-anim__secure-scene {
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 8px 6px 0;
    animation: plWsDomainSceneSecure var(--webstudio-domain-cycle) ease both;
}

body.pl-landing-time .pl-webstudio-domain-anim__vault {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

body.pl-landing-time .pl-webstudio-domain-anim__ring {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: plWsDomainRing var(--webstudio-domain-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__ring--2 {
    animation-name: plWsDomainRing2;
}

body.pl-landing-time .pl-webstudio-domain-anim__lock {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 52px;
    animation: plWsDomainLockPop var(--webstudio-domain-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__shackle {
    position: absolute;
    left: 50%;
    top: 0;
    width: 28px;
    height: 22px;
    margin-left: -14px;
    border: 4px solid #9ca3af;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    transform-origin: center bottom;
    animation:
        plWsDomainShackleClose var(--webstudio-domain-cycle) cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards,
        plWsDomainShackleColor var(--webstudio-domain-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__body {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 34px;
    margin-left: -22px;
    border-radius: 8px;
    background: #9ca3af;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    animation: plWsDomainLockSecure var(--webstudio-domain-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__body::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 11px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}

body.pl-landing-time .pl-webstudio-domain-anim__secure-label {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    opacity: 0;
    animation: plWsDomainSecureLabel var(--webstudio-domain-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__burst {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    opacity: 0;
    transform: scale(0.2);
    animation: plWsDomainBurst var(--webstudio-domain-cycle) cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
    pointer-events: none;
}

body.pl-landing-time .pl-webstudio-domain-anim__browser {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    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 16px 36px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.88) translateY(12px);
    opacity: 0;
    animation: plWsDomainBrowserSlam var(--webstudio-domain-cycle) cubic-bezier(0.34, 1.45, 0.64, 1) 1 forwards;
}

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

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

body.pl-landing-time .pl-webstudio-domain-anim__url-bar {
    margin: 10px 12px 0;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: scale(0.92);
    opacity: 0;
    animation: plWsDomainUrlBam var(--webstudio-domain-cycle) cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__url-lock {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 2px solid #22c55e;
    position: relative;
    flex: 0 0 auto;
}

body.pl-landing-time .pl-webstudio-domain-anim__url-lock::before {
    content: "";
    position: absolute;
    left: 1px;
    top: -6px;
    width: 6px;
    height: 5px;
    border: 2px solid #22c55e;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

body.pl-landing-time .pl-webstudio-domain-anim__url-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    white-space: nowrap;
}

body.pl-landing-time .pl-webstudio-domain-anim__url-text em {
    font-style: normal;
    color: #111;
    font-weight: 650;
}

body.pl-landing-time .pl-webstudio-domain-anim__page {
    margin: 10px 12px 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(8px);
    animation: plWsDomainPageIn var(--webstudio-domain-cycle) ease-out 1 forwards;
}

body.pl-landing-time .pl-webstudio-domain-anim__page-hero {
    height: 42px;
    border-radius: 8px;
    background: #e5e7eb;
    margin-bottom: 8px;
}

body.pl-landing-time .pl-webstudio-domain-anim__page-line {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 5px;
}

@keyframes plWsDomainSceneLock {
    0%, 2% { opacity: 0; transform: translateY(8px); }
    6%, 38% { opacity: 1; transform: translateY(0); }
    44%, 100% { opacity: 0; transform: scale(0.96); visibility: hidden; }
}

@keyframes plWsDomainSceneSecure {
    0%, 40% { opacity: 0; visibility: hidden; }
    44%, 100% { opacity: 1; visibility: visible; }
}

@keyframes plWsDomainRing {
    0%, 14% { opacity: 0; transform: scale(0.6); }
    24% { opacity: 0.9; transform: scale(1); }
    36%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes plWsDomainRing2 {
    0%, 20% { opacity: 0; transform: scale(0.55); }
    30% { opacity: 0.55; transform: scale(1.05); }
    42%, 100% { opacity: 0; transform: scale(1.6); }
}

@keyframes plWsDomainLockPop {
    0%, 4% { opacity: 0; transform: scale(0.7); }
    10%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes plWsDomainShackleClose {
    0%, 8% { transform: translateY(-8px); }
    22%, 100% { transform: translateY(0); }
}

@keyframes plWsDomainShackleColor {
    0%, 26% { border-color: #9ca3af; }
    32%, 100% { border-color: #111; }
}

@keyframes plWsDomainLockSecure {
    0%, 22% {
        background: #9ca3af;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    28% {
        background: #111;
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.18);
    }
    36%, 100% {
        background: #111;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    }
}

@keyframes plWsDomainSecureLabel {
    0%, 10% { opacity: 0; transform: translateY(4px); }
    16%, 34% { opacity: 1; transform: translateY(0); }
    40%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes plWsDomainBurst {
    0%, 42% { opacity: 0; transform: scale(0.2); }
    48% { opacity: 1; transform: scale(1); }
    58%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes plWsDomainBrowserSlam {
    0%, 42% { opacity: 0; transform: scale(0.88) translateY(12px); }
    48% { opacity: 1; transform: scale(1.04) translateY(-2px); }
    54%, 100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes plWsDomainUrlBam {
    0%, 48% { opacity: 0; transform: scale(0.82); }
    54% { opacity: 1; transform: scale(1.08); }
    60%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes plWsDomainPageIn {
    0%, 56% { opacity: 0; transform: translateY(8px); }
    64%, 100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.pl-landing-time .pl-webstudio-domain-anim__lock-scene,
    body.pl-landing-time .pl-webstudio-domain-anim__secure-scene,
    body.pl-landing-time .pl-webstudio-domain-anim__ring,
    body.pl-landing-time .pl-webstudio-domain-anim__lock,
    body.pl-landing-time .pl-webstudio-domain-anim__shackle,
    body.pl-landing-time .pl-webstudio-domain-anim__body,
    body.pl-landing-time .pl-webstudio-domain-anim__secure-label,
    body.pl-landing-time .pl-webstudio-domain-anim__burst,
    body.pl-landing-time .pl-webstudio-domain-anim__browser,
    body.pl-landing-time .pl-webstudio-domain-anim__url-bar,
    body.pl-landing-time .pl-webstudio-domain-anim__page {
        animation: none !important;
    }

    body.pl-landing-time .pl-webstudio-domain-anim__lock-scene {
        opacity: 0;
        visibility: hidden;
    }

    body.pl-landing-time .pl-webstudio-domain-anim__secure-scene {
        opacity: 1;
        visibility: visible;
    }

    body.pl-landing-time .pl-webstudio-domain-anim__browser,
    body.pl-landing-time .pl-webstudio-domain-anim__url-bar,
    body.pl-landing-time .pl-webstudio-domain-anim__page {
        opacity: 1;
        transform: none;
    }

    body.pl-landing-time .pl-webstudio-domain-anim__body {
        background: #111;
    }

    body.pl-landing-time .pl-webstudio-domain-anim__shackle {
        border-color: #111;
    }

    body.pl-landing-time .pl-webstudio-domain-anim__burst {
        opacity: 0;
    }
}
