/* The home hero's live tabs (assets/js/home-live.js). */

.vs-live-layer { position: absolute; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.vs-live-cursor { position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; will-change: transform; }
.vs-live-cursor svg { width: 22px; height: 22px; transition: transform .12s ease; filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .3)); }
.vs-live-cursor span { margin: 16px 0 0 -4px; padding: 2px 8px; border-radius: 6px; background: currentColor; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.vs-live-cursor span { -webkit-text-fill-color: #fff; }
.vs-live-cursor.is-down svg { transform: scale(.82); }

.vs-live-ghost { box-shadow: 0 4px 12px rgba(15, 23, 42, .15); }
.vs-live-ghost.is-lifted { box-shadow: 0 22px 40px rgba(15, 23, 42, .28); }
.vs-live-gone { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.vs-calendar-meeting-card { transition: opacity .3s ease, transform .3s ease; }

/* Tracker */
.vs-live-timer { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; color: #111827; font-size: 12px; }
.vs-live-timer i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: vs-live-blink 1.2s ease-in-out infinite; }
.vs-live-timer b { font-variant-numeric: tabular-nums; font-weight: 700; }
.vs-live-timer__who { color: #6b7280; }
.vs-time-app.is-live { border-radius: 8px; background: rgba(99, 102, 241, .08); box-shadow: 0 0 0 4px rgba(99, 102, 241, .08); }
.vs-time-app i, .vs-time-screen-bar::before { transition: width .5s ease; }
@keyframes vs-live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Chat */
.vs-live-tag { color: #4f46e5; font-style: normal; font-weight: 600; }
.vs-live-avatar { display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #ec4899); color: #fff; font-size: 15px; font-weight: 700; }
.vs-live-typing { display: flex; align-items: center; gap: 8px; color: #6b7280; font-size: 13px; }
.vs-live-typing span { display: inline-flex; gap: 3px; }
.vs-live-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a5a0f0; animation: vs-live-dot 1.1s ease-in-out infinite; }
.vs-live-typing i:nth-child(2) { animation-delay: .15s; }
.vs-live-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vs-live-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* AI agents */
.vs-ai-agents-content.is-live .vs-ai-transcript-wave svg { animation: vs-live-wave 1.2s ease-in-out infinite; transform-origin: center; }
@keyframes vs-live-wave { 0%, 100% { transform: scaleY(.65); } 50% { transform: scaleY(1.15); } }
.vs-live-lang { border-radius: 8px; background: #ecfdf5; color: #047857; }

/* Surfaces drawn over a picture: 1200 by 675, scaled to the tab */
.vs-live-surface { position: absolute; top: 0; left: 0; z-index: 2; width: 1200px; height: 675px; overflow: hidden; transform-origin: top left; background: #fff; color: #111827; text-align: left; }
.vs-live-hand { font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive; font-weight: 600; }

/* Whiteboard */
.vs-live-board { background-color: #fff; background-image: radial-gradient(#e5e7eb 1px, transparent 1px); background-size: 22px 22px; }
.vs-live-board__bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 22px; background: #17171c; color: #fff; }
.vs-live-board__bar b { font-size: 17px; }
.vs-live-board__bar em { padding: 7px 16px; border-radius: 8px; background: #6366f1; font-size: 14px; font-style: normal; font-weight: 600; }
.vs-live-board__tools { display: flex; gap: 10px; }
.vs-live-board__tools i { width: 24px; height: 24px; border-radius: 6px; background: #30303a; }
.vs-live-board__tools i:nth-child(2) { background: #6366f1; }
.vs-live-board__sheet { position: absolute; top: 60px; left: 0; width: 1200px; height: 615px; }
.vs-live-note { position: absolute; top: 60px; left: 0; width: 150px; padding: 18px 14px; background: #fde68a; box-shadow: 0 10px 22px rgba(120, 90, 0, .22); color: #1f2937; font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 22px; font-weight: 600; line-height: 1.25; }

/* Analytics */
.vs-live-stats { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; padding: 22px; background: linear-gradient(135deg, #f3f0ff, #fff 55%, #eaf1ff); }
.vs-live-stats section { min-width: 0; padding: 20px 22px; border: 1px solid #ebe9fb; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(79, 70, 229, .08); }
.vs-live-stats h4 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.vs-live-stats section > p { margin: 2px 0 12px; color: #6b7280; font-size: 13px; }
.vs-live-stats__row { display: flex; align-items: center; gap: 22px; }
.vs-live-stats__big small { display: block; color: #6b7280; font-size: 13px; }
.vs-live-stats__big strong { display: block; color: #6d28d9; font-size: 44px; font-weight: 800; line-height: 1.1; }
.vs-live-stats__big em { color: #16a34a; font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; }
.vs-live-stats__line { flex: 1; min-width: 0; height: 112px; }
.vs-live-stats__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.vs-live-stats__tiles div { padding: 8px 12px; border-radius: 10px; background: #f7f7fd; }
.vs-live-stats__tiles small { display: block; color: #6b7280; font-size: 12px; }
.vs-live-stats__tiles strong { font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 700; }
.vs-live-stats__tiles .is-red { color: #ef4444; }
.vs-live-stats__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 132px; margin-top: 12px; }
.vs-live-stats__bars div { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 0; text-align: center; }
.vs-live-stats__bars i { display: block; border-radius: 7px 7px 2px 2px; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
.vs-live-stats__bars span { color: #9ca3af; font-size: 11px; }
.vs-live-stats__donut { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 164px; height: 164px; border-radius: 50%; background: #eef0f6; }
.vs-live-stats__donut::before { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: #fff; content: ''; }
.vs-live-stats__donut b, .vs-live-stats__donut small { position: relative; }
.vs-live-stats__donut b { font-size: 21px; font-weight: 800; }
.vs-live-stats__donut small { color: #6b7280; font-size: 12px; }
.vs-live-stats__apps { display: grid; flex: 1; gap: 14px; min-width: 0; }
.vs-live-stats__apps div { display: grid; grid-template-columns: 84px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.vs-live-stats__apps u { display: block; height: 9px; overflow: hidden; border-radius: 99px; background: #eef0f6; text-decoration: none; }
.vs-live-stats__apps i { display: block; height: 100%; border-radius: 99px; transition: width .6s ease; }
.vs-live-stats__apps b { font-weight: 600; text-align: right; }

/* Remote control */
.vs-live-remote { display: flex; flex-direction: column; background: #f8f9fc; }
.vs-live-remote__top { display: flex; flex: none; align-items: center; justify-content: space-between; height: 56px; padding: 0 20px; border-bottom: 1px solid #e5e7eb; background: #fff; font-size: 13px; }
.vs-live-remote__top span { display: flex; align-items: center; gap: 8px; }
.vs-live-remote__top span i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: vs-live-blink 1.2s ease-in-out infinite; }
.vs-live-remote__top b { font-variant-numeric: tabular-nums; }
.vs-live-remote__top em { padding: 6px 14px; border-radius: 8px; background: #ecfdf5; color: #047857; font-style: normal; font-weight: 600; }
.vs-live-remote__top em.is-back { background: #eef2ff; color: #4338ca; }
.vs-live-remote__top u { color: #6b7280; text-decoration: none; }
.vs-live-remote__body { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 270px; min-height: 0; }
.vs-live-remote__screen { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; margin: 18px; padding: 34px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.vs-live-remote__pitch small { color: #4f46e5; font-size: 12px; font-weight: 600; }
.vs-live-remote__pitch h4 { margin: 8px 0 12px; font-size: 38px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.vs-live-remote__pitch p { margin: 0 0 18px; color: #6b7280; font-size: 14px; line-height: 1.55; }
.vs-live-remote__pitch button { padding: 10px 20px; border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff; color: #4338ca; font-size: 14px; font-weight: 600; transition: background .25s ease, color .25s ease; }
.vs-live-remote__pitch button.is-fixed { border-color: transparent; background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; }
.vs-live-remote__card { padding: 18px; border: 1px solid #eef0f4; border-radius: 12px; }
.vs-live-remote__card b { font-size: 14px; }
.vs-live-remote__card small { display: block; margin-top: 14px; color: #6b7280; font-size: 12px; font-weight: 600; }
.vs-live-remote__card p { margin: 6px 0 0; color: #374151; font-size: 12.5px; }
.vs-live-remote__bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 12px; }
.vs-live-remote__bars i { flex: 1; border-radius: 6px 6px 2px 2px; transition: height .7s cubic-bezier(.45, .05, .25, 1); }
.vs-live-remote__ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vs-live-remote__chat { display: flex; flex-direction: column; min-height: 0; padding: 18px 16px; border-left: 1px solid #e5e7eb; background: #fff; font-size: 13px; }
.vs-live-remote__chat > b { margin-bottom: 12px; font-size: 14px; }
.vs-live-remote__chat > div { flex: 1; min-height: 0; overflow: hidden; }
.vs-live-remote__chat p { margin: 0 0 12px; color: #374151; line-height: 1.45; }
.vs-live-remote__chat p b { display: block; color: #111827; font-size: 12px; }
.vs-live-remote__chat > span { padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 10px; color: #9ca3af; }

/* The tool stack */
[data-vs-tangle].is-tangled svg g { animation: vs-tangle-flow 1.1s linear infinite; }
[data-vs-tangle] svg { transition: opacity .4s ease; }
[data-vs-tangle] svg.vs-tangle-clear { opacity: 0; }
@keyframes vs-tangle-flow { to { stroke-dashoffset: -30; } }
[data-vs-tangle].is-tangled .grid > div > div { position: relative; animation: vs-tangle-bob 3.4s ease-in-out infinite; }
[data-vs-tangle].is-tangled .grid > div:nth-child(2n) > div { animation-duration: 2.8s; animation-delay: -.7s; }
[data-vs-tangle].is-tangled .grid > div:nth-child(3n) > div { animation-duration: 3.9s; animation-delay: -1.4s; }
[data-vs-tangle].is-tangled .grid > div:nth-child(5n) > div { animation-duration: 2.5s; animation-delay: -2s; }
@keyframes vs-tangle-bob { 0%, 100% { transform: translate(0, 0) rotate(-1.5deg); } 33% { transform: translate(5px, -9px) rotate(1.5deg); } 66% { transform: translate(-6px, 5px) rotate(-.5deg); } }
.vs-tangle-badge { position: absolute; top: -8px; right: -8px; display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; animation: vs-tangle-ping 1.5s ease both; }
@keyframes vs-tangle-ping { 0% { opacity: 0; transform: scale(.3); } 14% { opacity: 1; transform: scale(1.15); } 22%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.8); } }
.vs-tangle-one { position: absolute; inset: 0; z-index: 5; visibility: hidden; pointer-events: none; }
.vs-tangle-one.is-on { visibility: visible; }
.vs-tangle-one__spokes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vs-tangle-one__spokes line { stroke: #a5b4fc; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s ease; }
.is-full .vs-tangle-one__spokes line { stroke-dashoffset: 0; transition: stroke-dashoffset .55s ease .1s; }
.vs-tangle-one__tile { position: absolute; top: 50%; left: 50%; display: flex; width: 168px; height: 148px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid #c7d2fe; border-radius: 26px; background: #fff; box-shadow: 0 22px 54px rgba(79, 70, 229, .32); transform: translate(-50%, -50%) scale(0); transition: transform .2s cubic-bezier(.2, 1.7, .4, 1); }
.vs-tangle-one__tile img { width: 66px; height: 78px; object-fit: contain; }
.vs-tangle-one__tile b { color: #0f172a; font-size: 16px; font-weight: 700; line-height: 1; opacity: 0; transition: opacity .3s ease; }
.is-full .vs-tangle-one__tile b { opacity: 1; }
.vs-tangle-one__ring { position: absolute; top: 50%; left: 50%; width: 168px; height: 148px; margin: -74px 0 0 -84px; border: 2px solid #818cf8; border-radius: 34px; opacity: 0; }
.is-full .vs-tangle-one__ring { animation: vs-tangle-ring 2.4s cubic-bezier(.2, .6, .4, 1) infinite; }
.is-full .vs-tangle-one__ring + .vs-tangle-one__ring { animation-delay: .8s; }
@keyframes vs-tangle-ring { 0% { opacity: .7; transform: scale(.95); } 70%, 100% { opacity: 0; transform: scale(1.9); } }
.vs-tangle-one__chip { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border: 1px solid #e0e7ff; border-radius: 99px; background: #fff; color: #1e293b; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; box-shadow: 0 6px 16px rgba(79, 70, 229, .14); opacity: 0; transform: translate(-50%, -50%); }
.vs-tangle-one__chip i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 639px) {
    .vs-tangle-one__tile { width: 116px; height: 104px; gap: 7px; border-radius: 20px; }
    .vs-tangle-one__tile img { width: 44px; height: 52px; }
    .vs-tangle-one__tile b { font-size: 12px; }
    .vs-tangle-one__ring { width: 116px; height: 104px; margin: -52px 0 0 -58px; border-radius: 26px; }
}
[data-vs-tangle-target] { transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), filter .5s ease; }
[data-vs-tangle-target].vs-tangle-landed { filter: drop-shadow(0 0 28px rgba(99, 102, 241, .45)); transform: scale(1.025); }

/* Hero copy breaks evenly: no word left alone on a line. */
.hero-h1, .hero-h1 + .vs-section-lead { text-wrap: balance; }
.vs-section-header--hero { max-width: 80rem; }
.vs-section-header--hero .vs-section-lead { max-width: 58rem; }

/* Scroll depth. Tied to scroll position only: nothing is timed, pinned or hidden, so a fast scroller loses nothing,
   and everything stops when the scroll stops. Words settle at their true place before they reach reading height. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* overflow: hidden makes a scroll container, which would stop view() seeing the page scroll. */
        .site-main > section.overflow-hidden, [data-vs-drift] { overflow: clip; }
        /* The old timed fade starts words invisible, so a fast scroller lands on a blank; they use the scroll rise instead. */
        .animate-on-scroll:not(.animated) { opacity: 1; transform: none; }

        .vs-section-header:not(.vs-section-header--hero), [data-vs-rise], [data-vs-rise-kids] > * {
            animation: vs-par-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
        .vs-section-header:not(.vs-section-header--hero) { --vs-rise: 28px; animation-range: entry 0% entry 100%; }
        [data-vs-rise] { --vs-rise: 48px; }
        [data-vs-rise="far"] { --vs-rise: 90px; }
        [data-vs-rise-kids] > * { --vs-rise: 36px; }
        [data-vs-rise-kids] > :nth-child(3n + 2) { --vs-rise: 64px; }
        [data-vs-rise-kids] > :nth-child(3n) { --vs-rise: 92px; }

        @media (min-width: 1024px) {
            .vs-hero-section > .float-animation {
                animation: float 3s ease-in-out infinite, vs-par-float linear both;
                animation-delay: 0s !important;
                animation-timeline: auto, scroll(root);
                animation-range: normal, 0 1100px;
                --vs-par: -90px;
            }
            .vs-hero-section > .float-animation ~ .float-animation { --vs-par: 150px; }
            .vs-section-header--hero { animation: vs-par-hold linear both; animation-timeline: scroll(root); animation-range: 0 360px; }
            .vs-hero-showcase { transform-origin: 50% 0; animation: vs-par-grow linear both; animation-timeline: scroll(root); animation-range: 0 360px; }

            [data-vs-float] { animation: vs-par-float linear both; animation-timeline: view(); animation-range: cover; }
            [data-vs-float="a"] { --vs-par: 36px; }
            [data-vs-float="b"] { --vs-par: -30px; }
            [data-vs-float="c"] { --vs-par: 26px; }
            [data-vs-float="d"] { --vs-par: -20px; }
            [data-vs-float="soft"] { --vs-par: 12px; }
            [data-vs-drift] img { scale: 1.09; animation: vs-par-drift linear both; animation-timeline: --vs-drift; animation-range: cover; }
            [data-vs-drift] { view-timeline: --vs-drift; }
        }
    }
}
@keyframes vs-par-rise { from { translate: 0 var(--vs-rise, 36px); } to { translate: 0 0; } }
@keyframes vs-par-float { from { translate: 0 var(--vs-par, 20px); } to { translate: 0 calc(var(--vs-par, 20px) * -1); } }
@keyframes vs-par-hold { to { translate: 0 16px; } }
@keyframes vs-par-grow { from { scale: .95; } to { scale: 1; } }
@keyframes vs-par-drift { from { translate: 0 -3.6%; } to { translate: 0 3.6%; } }
