/* A tightly scoped stage module: its tokens and selectors never leak into the landing page. */
#demo-section { scroll-margin-top: 94px; }
#demo-section .home-session {
    --hs-bg: #111317;
    --hs-ink: #f7f8fa;
    --hs-dim: rgba(247, 248, 250, .62);
    --hs-faint: rgba(247, 248, 250, .4);
    --hs-surface: rgba(255, 255, 255, .045);
    --hs-lift: rgba(255, 255, 255, .085);
    --hs-blue: #41b9f1;
    --hs-jab: #a08cf7;
    --hs-cross: #f0d056;
    --hs-hook: #f27a45;
    --hs-ok: #2fb37e;
    --hs-off: #f26d6d;
    --hs-floor: #8a9bb4;
    --hs-bone: #41b9f1;
    --hs-joint: #fff;
    color: var(--hs-ink);
    width: 100%;
    font-family: "Inter Tight", sans-serif;
    -webkit-font-smoothing: antialiased;
}

#demo-section .home-session *,
#demo-section .home-session *::before,
#demo-section .home-session *::after { box-sizing: border-box; }

#demo-section .home-session__layout {
    width: min(100%, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, .82fr) minmax(250px, 320px) minmax(280px, 1fr);
    align-items: center;
    gap: clamp(28px, 3.5vw, 48px);
}

#demo-section .home-session__intro {
    align-self: center;
    min-width: 0;
    padding-top: 0;
}
#demo-section .home-session__heading {
    align-self: start;
    margin: 0;
    max-width: 15ch;
    color: var(--hs-ink);
    font-family: "Inter Tight", sans-serif;
    line-height: .98;
    letter-spacing: -.055em;
    overflow-wrap: normal;
    word-break: normal;
}
#demo-section .home-session__cta { margin-top: 36px; }
#demo-section .home-session__cta .signup-btn {
    width: fit-content !important;
    min-width: 0 !important;
    gap: 0 !important;
    justify-content: center !important;
    padding: 6px 16px !important;
    height: 38px !important;
    min-height: 38px !important;
}

#demo-section .home-session__stage {
    position: relative;
    isolation: isolate;
    align-self: center;
    width: min(100%, 320px);
    max-width: var(--hs-stage-max-width, calc((100svh - 114px) * .5625));
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #080a0e;
    box-shadow: 0 28px 76px -30px rgba(0, 0, 0, .82);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

#demo-section .home-session__video,
#demo-section .home-session__overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
#demo-section .home-session__video { object-fit: cover; }
#demo-section .home-session__overlay { pointer-events: none; }

#demo-section .home-session__divider {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    transform: translateX(0);
    pointer-events: none;
}
#demo-section .home-session__divider-line {
    position: absolute;
    inset: 0 auto 0 -1px;
    width: 2px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 0 18px rgba(0, 0, 0, .5);
}
#demo-section .home-session__knob {
    position: absolute;
    top: 50%;
    left: -22px;
    display: grid;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    place-items: center;
    border-radius: 50%;
    color: #111317;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    transition: transform .16s ease;
}
#demo-section .home-session__knob svg { width: 25px; height: 25px; }
#demo-section .home-session__stage:hover .home-session__knob,
#demo-section .home-session__stage.is-dragging .home-session__knob { transform: scale(1.08); }

#demo-section .home-session__tag {
    position: absolute;
    z-index: 3;
    top: 18px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}
#demo-section .home-session__tag--before { left: 18px; color: #fff; background: rgba(0, 0, 0, .5); }
#demo-section .home-session__tag--after { right: 18px; color: #071018; background: var(--hs-blue); }

#demo-section .home-session__play {
    position: absolute;
    z-index: 6;
    left: 14px;
    bottom: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, .54);
    cursor: pointer;
}
#demo-section .home-session__play svg { width: 20px; height: 20px; fill: currentColor; }
#demo-section .home-session__play-icon { display: none; }
#demo-section .home-session__play.is-paused .home-session__pause-icon { display: none; }
#demo-section .home-session__play.is-paused .home-session__play-icon { display: block; }
#demo-section .home-session__range {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    /* The stage handles horizontal gestures; native range gestures otherwise
       also change the split while the user scrolls vertically on iOS. */
    pointer-events: none;
    cursor: ew-resize;
    touch-action: pan-y;
}
#demo-section .home-session__range:focus-visible {
    opacity: .001;
    outline: 3px solid var(--hs-blue);
    outline-offset: -4px;
}

#demo-section .home-session__insights {
    position: relative;
    width: min(100%, 360px);
    justify-self: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}
#demo-section .home-session__session { flex: 0 0 auto; padding: 0 4px; }

#demo-section .home-session__prompt {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 30px;
    border: 0;
    border-radius: inherit;
    color: rgba(247, 248, 250, .9);
    background: transparent;
    font: 500 16px/1.5 "Inter Tight", sans-serif;
    text-align: center;
    cursor: pointer;
}
#demo-section .home-session__prompt[hidden] { display: none; }
#demo-section .home-session__prompt > span:last-child { max-width: 28ch; }
#demo-section .home-session__prompt-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--hs-blue);
    background: rgba(8, 15, 23, .86);
    border: 1px solid rgba(65, 185, 241, .28);
    transition: transform .2s ease;
}
#demo-section .home-session__prompt-arrow svg { width: 21px; height: 21px; }
#demo-section .home-session__prompt:hover .home-session__prompt-arrow { transform: translateX(-3px); }
#demo-section [data-insight-reveal] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}
#demo-section [data-insight-reveal].is-revealed {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#demo-section .home-session__session h2 {
    margin: 0 0 12px;
    font-family: "Inter Tight", sans-serif;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--hs-ink);
}
#demo-section .home-session__timeline {
    position: relative;
    height: 42px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--hs-surface);
}
#demo-section .home-session__event {
    position: absolute;
    top: 8px;
    bottom: 8px;
    min-width: 12px;
    border-radius: 6px;
    opacity: .34;
    transition: opacity .2s ease;
}
#demo-section .home-session__event.is-active { opacity: 1; }
#demo-section .home-session__event b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #0b0d10;
    font-size: 12px;
    font-weight: 700;
}
#demo-section .home-session__playhead {
    position: absolute;
    z-index: 1;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 2px;
    border-radius: 1px;
    background: #fff;
    transform: translateX(0);
}

#demo-section .home-session__metrics {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 9px;
}
#demo-section .home-session__metric {
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .025);
    border-radius: 8px;
    background: var(--hs-surface);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
#demo-section .home-session__metric.is-active {
    transform: translateY(-2px);
    background: var(--hs-lift);
    box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .6);
}
#demo-section .home-session__metric h3 {
    margin: 0;
    color: #fff;
    font-family: "Inter Tight", sans-serif;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;
}
#demo-section .home-session__value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 5px 0 0;
    color: var(--hs-ink);
    font-size: clamp(29px, 2.8vw, 40px);
    line-height: 1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    white-space: nowrap;
}
#demo-section .home-session__value small {
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}
#demo-section .home-session__sub {
    min-height: 0;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.35;
}
#demo-section .home-session__sub strong { color: var(--hs-ink); font-weight: 600; }
#demo-section .home-session__sequence {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
#demo-section .home-session__sequence li {
    display: grid;
    width: 28px;
    min-width: 0;
    max-width: 28px;
    height: 28px;
    flex: 1 1 0;
    place-items: center;
    border-radius: 7px;
    color: var(--hs-faint);
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}
#demo-section .home-session__sequence li.is-active { color: #0b0d10; background: var(--punch-color); }
#demo-section .home-session__bars {
    display: flex;
    height: 24px;
    align-items: flex-end;
    gap: 6px;
    margin-top: 7px;
}
#demo-section .home-session__bars i {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: rgba(255, 255, 255, .08);
    transition: background-color .2s ease;
}
#demo-section .home-session__bars i.is-active { background: var(--punch-color); }
#demo-section .home-session__metric--guard {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(10px, 4vw, 18px);
    align-items: center;
}
#demo-section .home-session__metric--guard h3 { grid-column: 1 / -1; }
#demo-section .home-session__metric--guard .home-session__value {
    grid-column: 1;
    margin: 0;
}
#demo-section .home-session__metric--guard .home-session__sub {
    grid-column: 2;
    max-width: none;
    margin: 0;
}
#demo-section .home-session__coaching {
    flex: 0 0 auto;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(236, 139, 78, .22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(91, 49, 30, .72), rgba(47, 34, 29, .94) 72%);
    box-shadow: inset 0 1px 0 rgba(255, 205, 165, .05);
}
#demo-section .home-session__coaching-label,
#demo-section .home-session__next-label {
    margin: 0;
    color: #e8a16f;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
}
#demo-section .home-session__coaching h3 {
    margin: 7px 0 0;
    color: #fff;
    font-family: "Inter Tight", sans-serif;
    font-size: 17px;
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: -.018em;
}
#demo-section .home-session__coaching-copy {
    margin: 7px 0 0;
    color: rgba(247, 238, 231, .78);
    font-size: 15px;
    line-height: 1.4;
}
#demo-section .home-session__next {
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .035);
    border-radius: 7px;
    background: rgba(8, 9, 10, .58);
}
#demo-section .home-session__next-label { color: #d79366; }
#demo-section .home-session__recommendation {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .94);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}
#demo-section .home-session__disclosure {
    flex: 0 0 auto;
    margin: 0 4px;
    color: var(--hs-faint);
    font-size: 12px;
    line-height: 1.4;
}
#demo-section .home-session__retry {
    align-self: flex-start;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: var(--hs-ink);
    background: var(--hs-surface);
    font: 600 13px "Inter Tight", sans-serif;
    cursor: pointer;
}

@media (max-width: 900px) {
    #demo-section .home-session__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 20px;
    }
    #demo-section .home-session__intro {
        grid-column: 1 / -1;
        align-self: start;
        padding-top: 24px;
    }
    #demo-section .home-session__heading {
        max-width: 16ch;
        font-size: clamp(36px, 6vw, 54px);
    }
    #demo-section .home-session__stage { width: min(100%, 320px); align-self: start; }
    #demo-section .home-session__insights { gap: 10px; padding: 12px; }
    #demo-section .home-session__metric { padding: 10px 12px; }
}
@media (max-width: 680px) {
    #demo-section .home-session__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    #demo-section .home-session__intro {
        grid-column: auto;
        padding-top: 12px;
    }
    #demo-section .home-session__heading {
        max-width: 16ch;
        font-size: clamp(38px, 11vw, 54px);
    }
    #demo-section .home-session__stage { width: min(100%, 230px); }
    #demo-section .home-session__insights {
        width: min(100%, 520px);
        margin: 0 auto;
        gap: 12px;
        padding: 14px;
    }
    #demo-section .home-session__metric { min-height: 0; padding: 13px 14px; }
    #demo-section .home-session__value { font-size: clamp(30px, 8vw, 38px); }
    #demo-section .home-session__metrics {
        flex: 0 0 auto;
        grid-template-rows: auto auto;
    }
}
@media (max-width: 380px) {
    #demo-section .home-session__insights { gap: 8px; padding: 10px; }
    #demo-section .home-session__session h2 { margin-bottom: 7px; }
    #demo-section .home-session__timeline { height: 34px; }
    #demo-section .home-session__metrics { gap: 6px; }
    #demo-section .home-session__metric { padding: 7px 9px; }
    #demo-section .home-session__value { font-size: 28px; }
    #demo-section .home-session__metric h3 { font-size: 16px; }
    #demo-section .home-session__value small { font-size: 14px; }
    #demo-section .home-session__sub { font-size: 13px; line-height: 1.25; }
    #demo-section .home-session__bars { height: 16px; margin-top: 4px; }
    #demo-section .home-session__sequence { gap: 4px; }
    #demo-section .home-session__sequence li { max-width: 25px; }
    #demo-section .home-session__coaching { padding: 12px; }
}
@media (max-width: 340px) {
    #demo-section .home-session__metric { padding: 7px 7px; }
    #demo-section .home-session__value { gap: 4px; font-size: 26px; }
    #demo-section .home-session__value small { font-size: 13px; }
    #demo-section .home-session__metric h3 { font-size: 15px; }
    #demo-section .home-session__sub { font-size: 12.5px; }
    #demo-section .home-session__coaching { padding: 11px; }
    #demo-section .home-session__coaching-label,
    #demo-section .home-session__next-label { font-size: 14px; }
    #demo-section .home-session__coaching h3 { font-size: 17px; }
    #demo-section .home-session__coaching-copy,
    #demo-section .home-session__recommendation { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    #demo-section .home-session *,
    #demo-section .home-session *::before,
    #demo-section .home-session *::after {
        transition-duration: 0ms !important;
        transition-delay: 0ms !important;
    }
}

@layer sparo-typography {
    #demo-section h2.home-session__heading {
        font-family: var(--marketing-heading-font, "SPARO Montserrat", sans-serif) !important;
        font-size: clamp(30px, 3.8vw, 42px) !important;
        font-weight: 700 !important;
        line-height: 1.04 !important;
        letter-spacing: -.04em !important;
    }
}
