/* ServiceHub homepage demo. Loaded only by the public homepage. */
.home-v3-video-entry {
    margin-top: 18px;
}

.public-home-v3 .home-v3-video-trigger {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: 100%;
    min-height: 48px;
    padding: 6px 0;
    border-radius: 12px;
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
    text-decoration: none;
}

.home-v3-video-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #c7dafb;
    border-radius: 50%;
    background: #eaf2ff;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.home-v3-video-play svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.home-v3-video-label {
    min-width: 0;
}

.home-v3-video-duration {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid #dce5f1;
    border-radius: 7px;
    background: #fff;
    color: #52627b;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-v3-video-trigger:hover .home-v3-video-play {
    background: #2563eb;
    color: #fff;
    transform: scale(1.05);
}

.home-v3-video-trigger:hover .home-v3-video-label {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-v3-video-trigger:focus-visible,
.sh-demo-dialog a:focus-visible,
.sh-demo-dialog button:focus-visible,
.sh-demo-player:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 4px;
}

html.sh-demo-open,
html.sh-demo-open body {
    overflow: hidden;
    overscroll-behavior: none;
}

.sh-demo-dialog,
.sh-demo-dialog * {
    box-sizing: border-box;
}

.sh-demo-dialog {
    width: min(1240px, calc(100vw - 48px));
    max-width: none;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d8e3f1;
    border-radius: 22px;
    background: #fff;
    color: #0b1730;
    box-shadow: 0 30px 110px rgba(2, 10, 27, .35);
    font-family: inherit;
}

.sh-demo-dialog:not([open]) {
    display: none;
}

.sh-demo-dialog::backdrop {
    background: rgba(4, 13, 30, .78);
    backdrop-filter: blur(5px);
}

.sh-demo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 26px 18px;
    background: linear-gradient(115deg, #f5f9ff, #fff 75%);
}

.sh-demo-eyebrow {
    margin: 0 0 5px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sh-demo-header h2 {
    margin: 0;
    color: #0b1730;
    font-size: clamp(21px, 2.4vw, 28px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.sh-demo-header #servicehub-demo-description {
    margin: 7px 0 0;
    color: #52627b;
    font-size: 14px;
    line-height: 1.5;
}

.sh-demo-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #fff;
    color: #344760;
    cursor: pointer;
}

.sh-demo-close:hover {
    background: #eaf2ff;
    color: #1d4ed8;
}

.sh-demo-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.sh-demo-screen {
    background: #071427;
}

.sh-demo-player {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 245px);
    max-height: calc(100dvh - 245px);
    margin: 0;
    aspect-ratio: 2864 / 1666;
    background: #071427;
    object-fit: contain;
}

.sh-demo-player:fullscreen {
    width: 100%;
    height: 100%;
    max-height: none;
    background: #000;
    object-fit: contain;
}

.sh-demo-error {
    margin: 0;
    padding: 12px 26px;
    background: #fff5e8;
    color: #6f410b;
    font-size: 14px;
    line-height: 1.5;
}

.sh-demo-error[hidden] {
    display: none;
}

.sh-demo-error a {
    color: #1d4ed8;
    text-decoration: underline;
}

.sh-demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 18px 26px;
}

.sh-demo-footer > p {
    max-width: 350px;
    margin: 0;
    color: #52627b;
    font-size: 14px;
    line-height: 1.55;
}

.sh-demo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sh-demo-actions .btn {
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 760px) {
    .sh-demo-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
    }

    .sh-demo-header {
        gap: 12px;
        padding: 17px 16px;
    }

    .sh-demo-header #servicehub-demo-description {
        font-size: 13px;
    }

    .sh-demo-footer {
        display: grid;
        gap: 13px;
        padding: 16px;
    }

    .sh-demo-footer > p {
        max-width: none;
    }

    .sh-demo-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sh-demo-error {
        padding: 12px 16px;
    }
}

@media (max-width: 380px) {
    .public-home-v3 .home-v3-video-trigger {
        gap: 8px;
        font-size: 14px;
    }
}

@media (max-height: 540px) and (orientation: landscape) {
    .sh-demo-header {
        align-items: center;
        padding: 10px 16px;
    }

    .sh-demo-eyebrow,
    .sh-demo-header #servicehub-demo-description {
        display: none;
    }

    .sh-demo-player {
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
    }

    .sh-demo-footer {
        padding: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v3-video-play {
        transition: none;
    }
}
