.walkthrough-study-world {
    display: none;
}

.vibenotes-product-page #demo-video.is-walkthrough-enhanced {
    min-height: 430svh;
    padding: 0;
    overflow: clip;
    isolation: isolate;
    background: #07070a;
}

.vibenotes-product-page #demo-video.is-walkthrough-enhanced .walkthrough-sticky {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
    width: min(1160px, 100%);
    max-width: none;
    height: 100svh;
    margin: 0 auto;
    padding: clamp(96px, 14svh, 130px) clamp(20px, 4vw, 48px) 32px;
}

.walkthrough-heading {
    position: relative;
    z-index: 2;
    align-self: start;
    text-align: center;
}

.vibenotes-product-page #demo-video .walkthrough-heading .hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(218, 207, 239, 0.16);
    background: rgba(218, 207, 239, 0.035);
    color: #c7bfd2;
    box-shadow: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: none;
}

.vibenotes-product-page #demo-video .walkthrough-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.16;
    text-wrap: balance;
}

.walkthrough-stage {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    perspective: 1400px;
}

.is-walkthrough-enhanced .walkthrough-stage {
    transform: scale(var(--walkthrough-scene-scale, 1));
    transform-origin: center;
    transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}

.is-walkthrough-active[data-walkthrough-state='scene'] .walkthrough-stage {
    will-change: transform;
}

.walkthrough-device {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
}

.is-walkthrough-enhanced .walkthrough-device {
    width: min(900px, 100%, calc((100svh - 280px) * 1.537));
    padding: 8px;
    border: 1px solid rgba(218, 207, 239, 0.22);
    border-radius: 25px;
    background: linear-gradient(135deg, #35343e, #121217 30%, #24232d 76%, #45414f);
    box-shadow: -5px 7px 0 #131218, -6px 8px 0 rgba(218, 207, 239, 0.14), 0 28px 64px rgba(0, 0, 0, 0.45);
    transform: translate3d(0, var(--walkthrough-lift, 0px), 0)
        rotateX(var(--walkthrough-pitch, 0deg))
        rotateY(var(--walkthrough-yaw, 0deg))
        rotateZ(var(--walkthrough-roll, 0deg))
        scale(var(--walkthrough-scale, 1));
    transform-origin: center;
    transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}

.is-walkthrough-active .walkthrough-device {
    will-change: transform;
}

.is-walkthrough-enhanced .walkthrough-device::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 18%, rgba(245, 237, 255, 0.65) 42%, transparent 64%);
    opacity: var(--walkthrough-sheen, 0);
    content: '';
    pointer-events: none;
    transition: opacity 300ms ease;
}

.vibenotes-product-page #demo-video .walkthrough-device .demo-video-frame,
.vibenotes-product-page #demo-video .walkthrough-device .demo-video-frame:hover {
    margin: 0;
    border: 1px solid rgba(218, 207, 239, 0.13);
    border-radius: 17px;
    background: #08080c;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.vibenotes-product-page #demo-video .walkthrough-device .demo-video-player,
.vibenotes-product-page #demo-video .walkthrough-device .demo-video-frame:hover .demo-video-player {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1600 / 1041;
    object-fit: contain;
    transform: none;
    filter: none;
}

.is-walkthrough-enhanced[data-walkthrough-state='scene'] .custom-video-controls {
    opacity: 0;
    pointer-events: none;
}

.is-walkthrough-enhanced[data-walkthrough-state='scene'] .custom-video-player:focus-within .custom-video-controls {
    opacity: 1;
    pointer-events: auto;
}

/* A compact glass control surface, with distinct seek and volume tracks. */
.vibenotes-product-page #demo-video .custom-video-controls {
    width: min(560px, calc(100% - 20px));
    bottom: 10px;
    padding: 10px 12px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(245, 240, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015) 48%), rgba(18, 18, 24, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 -1px 0 rgba(255, 255, 255, 0.025), 0 12px 32px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
    opacity: 0;
    filter: none;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 240ms ease, transform 350ms cubic-bezier(.22, 1, .36, 1);
}

.vibenotes-product-page #demo-video .custom-video-player:is(:focus-within, .is-controls-visible) .custom-video-controls {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.vibenotes-product-page #demo-video[data-walkthrough-state='scene'] .custom-video-player .custom-video-controls {
    opacity: 0;
    pointer-events: none;
}

.vibenotes-product-page #demo-video[data-walkthrough-state='scene'] .custom-video-player:focus-within .custom-video-controls {
    opacity: 1;
    pointer-events: auto;
}

.vibenotes-product-page #demo-video .custom-video-progress-row {
    gap: 8px;
    margin: 0 0 5px;
}

.vibenotes-product-page #demo-video .custom-video-time {
    min-width: 29px;
    color: rgba(247, 243, 255, 0.72);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.vibenotes-product-page #demo-video .custom-video-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px 12px;
}

.vibenotes-product-page #demo-video .custom-video-action-group {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 6px;
}

.vibenotes-product-page #demo-video .custom-video-volume {
    width: auto;
    flex: 0 0 auto;
    gap: 6px;
}

.vibenotes-product-page #demo-video .custom-video-volume-range {
    width: 76px;
    min-width: 0;
    max-width: 76px;
    flex: 0 0 76px;
}

.vibenotes-product-page #demo-video .custom-video-progress {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
}

.vibenotes-product-page #demo-video .custom-video-range {
    height: 28px;
}

.vibenotes-product-page #demo-video .custom-video-range::-webkit-slider-runnable-track {
    height: 3px;
}

.vibenotes-product-page #demo-video .custom-video-range::-moz-range-track,
.vibenotes-product-page #demo-video .custom-video-range::-moz-range-progress {
    height: 3px;
}

.vibenotes-product-page #demo-video .custom-video-range::-webkit-slider-thumb {
    width: 9px;
    height: 9px;
    margin-top: -3px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.vibenotes-product-page #demo-video .custom-video-range::-moz-range-thumb {
    width: 9px;
    height: 9px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.vibenotes-product-page #demo-video .custom-video-volume-range::-webkit-slider-thumb {
    opacity: 1;
}

.vibenotes-product-page #demo-video .custom-video-volume-range::-moz-range-thumb {
    opacity: 1;
}

.vibenotes-product-page #demo-video .custom-video-button {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    color: #f4f0f9;
    font-size: 11px;
    font-weight: 500;
    transform: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.vibenotes-product-page #demo-video .custom-video-button svg {
    width: 16px;
    height: 16px;
}

.vibenotes-product-page #demo-video .custom-video-speed-group {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 2px;
    margin-left: auto;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.14);
}

.vibenotes-product-page #demo-video .custom-video-speed {
    width: auto;
    min-width: 34px;
    height: 30px;
    padding: 0 6px;
    border-color: transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: rgba(247, 243, 255, 0.65);
    font-variant-numeric: tabular-nums;
}

.vibenotes-product-page #demo-video .custom-video-speed.is-active {
    background: rgba(247, 243, 255, 0.9);
    box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 0, 0, 0.12);
    color: #1c1922;
}

.custom-video-mobile-speed {
    display: none;
}

.vibenotes-product-page #demo-video .custom-video-center-play {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(245, 240, 255, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)), rgba(26, 24, 32, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 8px 24px rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
}

.vibenotes-product-page #demo-video .custom-video-center-play svg {
    width: 21px;
    height: 21px;
}

.vibenotes-product-page #demo-video .custom-video-player.is-controls-visible .custom-video-center-play:not(:focus-visible) {
    opacity: 0;
    pointer-events: none;
}

.vibenotes-product-page #demo-video :is(.custom-video-button, .custom-video-center-play, .custom-video-range):focus-visible {
    outline: 2px solid #e7ddf4;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .vibenotes-product-page #demo-video:not([data-walkthrough-state='scene']) .custom-video-player:hover .custom-video-controls {
        opacity: 1;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }

    .vibenotes-product-page #demo-video .custom-video-button:not(.is-active):hover {
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }
}

@media (max-width: 400px) {
    .vibenotes-product-page #demo-video .custom-video-controls {
        width: calc(100% - 14px);
        bottom: 7px;
        padding: 8px 10px;
        border-radius: 14px;
    }

    .vibenotes-product-page #demo-video .custom-video-volume-range {
        width: 60px;
        max-width: 60px;
        flex-basis: 60px;
    }

    .vibenotes-product-page #demo-video .custom-video-speed {
        min-width: 30px;
        padding-inline: 4px;
    }
}

@media (pointer: coarse) {
    .vibenotes-product-page #demo-video .custom-video-button {
        min-height: 40px;
    }

    .vibenotes-product-page #demo-video .custom-video-speed {
        min-height: 36px;
    }
}

@media (max-width: 640px) {
    .vibenotes-product-page #demo-video .custom-video-controls {
        display: grid;
        grid-template-columns: 32px minmax(32px, 1fr) 32px 32px 42px;
        grid-template-areas: 'play seek time mute speed';
        align-items: center;
        gap: 4px;
        width: calc(100% - 12px);
        bottom: 6px;
        padding: 4px 6px;
        border-radius: 13px;
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 55%), rgba(18, 18, 24, 0.56);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 16px rgba(0, 0, 0, 0.18);
    }

    .vibenotes-product-page #demo-video :is(.custom-video-progress-row, .custom-video-actions, .custom-video-action-group, .custom-video-volume) {
        display: contents;
    }

    .vibenotes-product-page #demo-video :is(.custom-video-volume-range, .custom-video-speed-group, [data-video-duration]) {
        display: none;
    }

    .vibenotes-product-page #demo-video .custom-video-controls [data-video-play] {
        grid-area: play;
    }

    .vibenotes-product-page #demo-video .custom-video-progress {
        grid-area: seek;
        width: 100%;
        height: 32px;
    }

    .vibenotes-product-page #demo-video [data-video-current] {
        grid-area: time;
        min-width: 0;
        text-align: center;
        font-size: 10px;
    }

    .vibenotes-product-page #demo-video .custom-video-mute {
        grid-area: mute;
    }

    .vibenotes-product-page #demo-video .custom-video-button {
        width: 32px;
        height: 32px;
        min-height: 32px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .vibenotes-product-page #demo-video .custom-video-button svg {
        width: 14px;
        height: 14px;
    }

    .vibenotes-product-page #demo-video .custom-video-mobile-speed {
        position: relative;
        display: block;
        grid-area: speed;
        height: 32px;
    }

    .custom-video-mobile-speed select {
        width: 100%;
        height: 32px;
        margin: 0;
        padding: 0 12px 0 6px;
        appearance: none;
        -webkit-appearance: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.045);
        color: #f4f0f9;
        font: inherit;
        font-size: 10px;
        font-variant-numeric: tabular-nums;
        cursor: pointer;
        color-scheme: dark;
    }

    .custom-video-mobile-speed::after {
        position: absolute;
        top: 12px;
        right: 7px;
        width: 4px;
        height: 4px;
        border-right: 1px solid rgba(244, 240, 249, 0.6);
        border-bottom: 1px solid rgba(244, 240, 249, 0.6);
        transform: rotate(45deg);
        content: '';
        pointer-events: none;
    }

    .custom-video-mobile-speed select:focus-visible {
        outline: 2px solid #e7ddf4;
        outline-offset: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vibenotes-product-page #demo-video :is(.custom-video-controls, .custom-video-button, .custom-video-center-play) {
        transition: none;
    }

    .vibenotes-product-page #demo-video .custom-video-button:hover {
        transform: none;
    }
}

.is-walkthrough-enhanced .walkthrough-study-world {
    position: absolute;
    inset: 0;
    display: block;
    opacity: var(--walkthrough-art-opacity, 1);
    perspective: 1000px;
    pointer-events: none;
    transition: opacity 240ms linear;
}

.walkthrough-study-world::before {
    position: absolute;
    inset: -12% -8%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(170, 148, 207, 0.1), transparent 67%);
    content: '';
}

.walkthrough-orbit {
    position: absolute;
    inset: 12% 0;
    border: 1px solid rgba(196, 181, 220, 0.15);
    border-radius: 50%;
    transform: translate3d(var(--walkthrough-look-x, 0px), var(--walkthrough-look-y, 0px), -80px)
        rotateX(62deg) rotateZ(calc(-16deg + var(--walkthrough-paper-turn, 0deg)));
    transition: transform 350ms cubic-bezier(.2,.7,.2,1);
}

.walkthrough-note {
    --walkthrough-note-spread: var(--walkthrough-art-spread, 0px);
    position: absolute;
    width: clamp(80px, 13vw, 150px);
    aspect-ratio: 180 / 230;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px 20px 7px 7px;
    background: linear-gradient(125deg, #f1eee9, #c8c3d0);
    box-shadow: -3px 3px 0 #827b8c, -4px 4px 0 #c4becb, 0 20px 38px rgba(0, 0, 0, 0.3);
    transition: transform 350ms cubic-bezier(.2,.7,.2,1);
    animation: walkthrough-paper-drift 9s ease-in-out infinite;
    animation-play-state: paused;
}

.is-walkthrough-active[data-walkthrough-state='scene'] .walkthrough-note {
    animation-play-state: running;
}

@keyframes walkthrough-paper-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

.walkthrough-note svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: #a49baa;
    stroke-width: 1.2;
    stroke-linecap: round;
}

.walkthrough-note .walkthrough-ink {
    stroke: #715d87;
    stroke-width: 2.4;
}

.walkthrough-note--one {
    left: 1%;
    top: 5%;
    transform: translate3d(calc(-1 * var(--walkthrough-note-spread) - var(--walkthrough-look-x, 0px)), var(--walkthrough-look-y, 0px), -40px)
        rotateX(calc(22deg - var(--walkthrough-paper-turn, 0deg))) rotateY(-18deg) rotateZ(calc(-16deg - var(--walkthrough-paper-turn, 0deg)));
}

.walkthrough-note--two {
    right: 1%;
    bottom: 2%;
    transform: translate3d(calc(var(--walkthrough-note-spread) + var(--walkthrough-look-x, 0px)), calc(-1 * var(--walkthrough-look-y, 0px)), -70px)
        rotateX(16deg) rotateY(calc(22deg + var(--walkthrough-paper-turn, 0deg))) rotateZ(calc(13deg + var(--walkthrough-paper-turn, 0deg)));
    animation-delay: -4.5s;
}

.walkthrough-pencil {
    position: absolute;
    left: 5%;
    bottom: 3%;
    width: 12px;
    height: clamp(90px, 13vw, 155px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(90deg, #9e97a8, #f4f1f7 38%, #d7d1df 70%, #a69db4);
    box-shadow: 8px 12px 16px rgba(0, 0, 0, 0.3);
    transform: translate3d(calc(-1 * var(--walkthrough-look-x, 0px)), calc(var(--walkthrough-art-spread, 0px) * 0.35), 0)
        rotateX(28deg) rotateZ(calc(-42deg - var(--walkthrough-paper-turn, 0deg)));
    transition: transform 350ms cubic-bezier(.2,.7,.2,1);
}

.walkthrough-pencil span {
    position: absolute;
    top: 100%;
    left: 1px;
    width: 8px;
    height: 17px;
    background: linear-gradient(#d8d0e1 65%, #625b6e 65%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.vibenotes-product-page #demo-video.is-walkthrough-still {
    min-height: 0;
}

.vibenotes-product-page #demo-video.is-walkthrough-still .walkthrough-sticky {
    position: relative;
    height: auto;
    padding-block: 88px;
}

.is-walkthrough-still .walkthrough-device {
    width: min(900px, 100%);
    transform: none;
    transition: none;
}

.is-walkthrough-still .walkthrough-stage {
    transform: none;
    transition: none;
}

.is-walkthrough-still .walkthrough-study-world {
    display: none;
}

@media (max-width: 767px) {
    .vibenotes-product-page #demo-video.is-walkthrough-enhanced:not(.is-walkthrough-still) {
        min-height: 410svh;
    }

    .is-walkthrough-enhanced .walkthrough-device {
        padding: 5px;
        border-radius: 19px;
    }

    .vibenotes-product-page #demo-video .walkthrough-device .demo-video-frame {
        border-radius: 13px;
    }

    .walkthrough-note { --walkthrough-note-spread: min(var(--walkthrough-art-spread, 0px), 12px); }
    .walkthrough-note--one { top: 0; left: 0; }
    .walkthrough-note--two { bottom: 1%; right: 0; }
    .walkthrough-pencil { left: 4%; bottom: 3%; }
}

@media (prefers-reduced-motion: reduce) {
    .is-walkthrough-enhanced .walkthrough-stage,
    .is-walkthrough-enhanced .walkthrough-device,
    .is-walkthrough-enhanced .walkthrough-device::after,
    .walkthrough-study-world,
    .walkthrough-note,
    .walkthrough-orbit,
    .walkthrough-pencil {
        animation: none;
        transition: none;
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .walkthrough-note { --walkthrough-note-spread: min(var(--walkthrough-art-spread, 0px), 36px); }
    .walkthrough-note--two { right: -2%; }
}
