/* Walkthrough clips: 9:16 phone frame, app mocks, motion — scoped to landing walkthrough */

.landing-walkthrough .st-clip1-bg {
    background: #0a0a0c;
    animation: none;
    filter: none;
}

.landing-walkthrough .st-clip-bg {
    filter: none;
}

.landing-walkthrough .st-clip--2 .st-clip-bg {
    background: linear-gradient(180deg, #0a0a0c 0%, #0c1824 55%, #0f172a 100%);
}
.landing-walkthrough .st-clip--3 .st-clip-bg {
    background: linear-gradient(145deg, #0a0a0c 0%, #0d1f14 50%, #0f172a 100%);
}
.landing-walkthrough .st-clip--4 .st-clip-bg {
    background: linear-gradient(180deg, #0a0a0c 0%, #1a1008 45%, #0f172a 100%);
}
.landing-walkthrough .st-clip--5 .st-clip-bg {
    background: linear-gradient(200deg, #0a0a0c 0%, #12102a 40%, #0f172a 100%);
}

/* Vertical 9:16 stage */
.st-walk-phone {
    width: min(100%, 17.5rem);
    aspect-ratio: 9 / 16;
    max-height: min(58vh, 32rem);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #050608;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.st-clip1-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    text-align: left;
}

.st-clip1-app-chrome {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.85);
    letter-spacing: 0.02em;
}

.st-clip1-app-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.st-clip1-app-title {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.st-clip1-app-body {
    flex: 1;
    min-height: 0;
    position: relative;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.st-clip1-app-body--home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-clip1-app-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.9);
}

.st-clip1-app-body--cam {
    padding: 0;
}

.st-clip1-cam-preview {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 40%, #14532d 100%);
    opacity: 0;
    animation: stWalkCamReveal 18s ease-in-out infinite;
}

.st-clip1-cam-preview::after {
    content: "";
    position: absolute;
    inset: 18% 22%;
    border-radius: 12px;
    border: 2px solid rgba(61, 214, 140, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
    animation: stWalkDeskPulse 18s ease-in-out infinite;
}

@keyframes stWalkCamReveal {
    0%,
    11.4% {
        opacity: 0;
        transform: scale(1.04);
    }
    14%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes stWalkDeskPulse {
    0%,
    11.4% {
        opacity: 0;
    }
    15%,
    100% {
        opacity: 1;
    }
}

.st-clip1-cam-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(61, 214, 140, 0.4);
    color: #86efac;
    z-index: 2;
    animation: stWalkCamReveal 18s ease-in-out infinite;
}

.st-clip1-app-footer {
    flex-shrink: 0;
    padding: 10px 12px 12px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.st-clip1-app-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 900;
    color: #041208;
    background: linear-gradient(135deg, #2eb574 0%, #3dd68c 100%);
    box-shadow: 0 4px 20px rgba(61, 214, 140, 0.25);
    animation: stWalkBtnIdle 18s ease-in-out infinite;
}

.st-clip1-app--live .st-clip1-app-btn {
    animation: stWalkBtnPress 18s ease-in-out infinite;
}

@keyframes stWalkBtnIdle {
    0%,
    10.8% {
        transform: scale(1);
    }
    11% {
        transform: scale(0.97);
    }
    11.5% {
        transform: scale(1);
    }
    11.51%,
    100% {
        transform: scale(1);
    }
}

@keyframes stWalkBtnPress {
    0%,
    11.4% {
        transform: scale(1);
        filter: brightness(1);
    }
    12% {
        transform: scale(0.94);
        filter: brightness(0.92);
    }
    14%,
    100% {
        transform: scale(0.98);
        filter: brightness(1);
    }
}

.st-walk-copy {
    margin: 0.75rem 0 0;
    max-width: 18rem;
    font-size: clamp(1.15rem, 4.8vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.st-walk-copy--sub {
    margin-top: 0.45rem;
    font-size: clamp(0.85rem, 3.2vw, 1rem);
    font-weight: 600;
    color: rgba(203, 213, 225, 0.92);
}

/* Clip 2 — session desk UI */
.st-walk-session {
    width: min(100%, 18rem);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.85);
    padding: 12px;
    text-align: left;
}

.st-walk-session-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.st-walk-timer {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.st-walk-live {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fca5a5;
}

.st-walk-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #ef4444;
    vertical-align: middle;
    animation: stRecBlink 1s step-end infinite;
}

.st-walk-phone-detect {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.st-walk-phone-icon {
    width: 36px;
    height: 52px;
    border-radius: 6px;
    background: linear-gradient(145deg, #334155, #1e293b);
    border: 2px solid rgba(248, 113, 113, 0.6);
    flex-shrink: 0;
    animation: stWalkPhoneFlash 18s ease-in-out infinite;
}

@keyframes stWalkPhoneFlash {
    0%,
    26.9% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: rgba(248, 113, 113, 0.3);
    }
    28%,
    48% {
        box-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
        border-color: #f87171;
    }
    49%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: rgba(248, 113, 113, 0.5);
    }
}

.st-walk-detect-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fecaca;
}

.st-walk-detect-label strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-top: 2px;
}

.st-walk-score-row {
    position: relative;
    margin-top: 8px;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    min-height: 1.2em;
}

.st-walk-score-a,
.st-walk-score-b {
    position: absolute;
    left: 0;
    top: 0;
}

.st-walk-score-a {
    color: #fef3c7;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
    animation: stWalkScoreA 18s ease-in-out infinite;
}

.st-walk-score-b {
    color: #fdba74;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
    animation: stWalkScoreB 18s ease-in-out infinite;
}

@keyframes stWalkScoreA {
    0%,
    61% {
        opacity: 1;
    }
    62.01%,
    100% {
        opacity: 0;
    }
}

@keyframes stWalkScoreB {
    0%,
    61% {
        opacity: 0;
    }
    62.01%,
    100% {
        opacity: 1;
    }
}

/* Clip 3 — timeline */
.st-walk-timeline {
    width: min(100%, 19rem);
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-walk-timeline-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.st-walk-timeline-dip {
    position: absolute;
    left: 42%;
    width: 18%;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.45);
    animation: stWalkDipFlash 18s ease-in-out infinite;
}

@keyframes stWalkDipFlash {
    0%,
    50% {
        opacity: 0.35;
    }
    54%,
    58% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
    }
    62%,
    100% {
        opacity: 0.45;
    }
}

.st-walk-timeline-scrub {
    position: absolute;
    left: 55%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #3dd68c;
    box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.25);
    animation: stWalkScrub 18s ease-in-out infinite;
}

@keyframes stWalkScrub {
    0%,
    50% {
        left: 38%;
    }
    58%,
    100% {
        left: 58%;
    }
}

.st-walk-timeline-meta {
    margin-top: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.95);
    text-align: left;
}

/* Clip 4 — XP + streak */
.st-walk-reward {
    width: min(100%, 18rem);
    padding: 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-walk-xp-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
}

.st-walk-xp-bar > span {
    display: block;
    height: 100%;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2eb574, #3dd68c);
    animation: stWalkXpFill 18s ease-in-out infinite;
}

@keyframes stWalkXpFill {
    0%,
    60% {
        width: 28%;
    }
    72%,
    100% {
        width: 72%;
    }
}

.st-walk-xp-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 800;
    color: #e2e8f0;
}

.st-walk-xp-gain {
    color: #86efac;
    animation: stWalkXpTick 18s ease-in-out infinite;
}

@keyframes stWalkXpTick {
    0%,
    62% {
        opacity: 0.6;
    }
    68%,
    100% {
        opacity: 1;
    }
}

.st-walk-streak {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
}

.st-walk-streak-flame {
    font-size: 1.35rem;
    animation: stWalkFlame 18s ease-in-out infinite;
}

@keyframes stWalkFlame {
    0%,
    58% {
        transform: scale(0.85);
        opacity: 0.5;
    }
    65%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Clip 5 — ecosystem strip */
.st-walk-eco {
    display: flex;
    gap: 8px;
    width: min(100%, 20rem);
    justify-content: center;
}

.st-walk-eco-card {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.85);
    animation: stWalkEcoPulse 18s ease-in-out infinite;
}

.st-walk-eco-card:nth-child(1) {
    animation-delay: 0s;
}
.st-walk-eco-card:nth-child(2) {
    animation-delay: 0.15s;
}
.st-walk-eco-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes stWalkEcoPulse {
    0%,
    58% {
        opacity: 0.55;
        transform: translateY(4px);
    }
    65%,
    78% {
        opacity: 1;
        transform: translateY(0);
        border-color: rgba(61, 214, 140, 0.35);
    }
    85%,
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.st-walk-eco-card span {
    display: block;
    margin-top: 6px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(148, 163, 184, 0.95);
}

@media (prefers-reduced-motion: reduce) {
    .st-clip1-cam-preview,
    .st-clip1-cam-badge,
    .st-clip1-app-btn,
    .st-walk-phone-icon,
    .st-walk-score-num,
    .st-walk-timeline-dip,
    .st-walk-timeline-scrub,
    .st-walk-xp-bar > span,
    .st-walk-xp-gain,
    .st-walk-streak-flame,
    .st-walk-eco-card {
        animation: none !important;
    }

    .st-clip1-cam-preview,
    .st-clip1-cam-badge {
        opacity: 1 !important;
    }
}
