html {
    scrollbar-gutter: stable;
}

.av-hero {
    position: relative;
    padding: 110px 24px 0;
    text-align: center;
    background-image: url("/static/images/vers/vers-bg.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 30px 50px -35px rgba(96, 165, 250, 0.4),
        inset 30px 0 50px -35px rgba(96, 165, 250, 0.4),
        inset -30px 0 50px -35px rgba(96, 165, 250, 0.4),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

#versich-chatbot-fab,
#versich-chatbot-minimized {
    display: none !important;
}

/* Docked chat card (opened via the "Speak to Vers" CTA).
   chatbot.css sets `#versich-chatbot-window.cb-docked.open { position: static }`
   at (1 id, 2 classes) specificity — matched exactly here so ours wins. */

.av-hero #versich-chatbot-window {
    transform: scale(0.85) translateY(20%);
}

#versich-chatbot-window.cb-docked.open.p-static {
    position: static;
    margin-top: 0px;
}

#versich-chatbot-window.cb-docked,
#versich-chatbot-window.cb-docked.open {
    position: fixed;
    inset: 0;
    margin: auto;
    margin-top: 200px;
    width: clamp(360px, calc(100vw - 40px), 480px);
    height: clamp(520px, calc(100vh - 80px), 720px);
    max-width: none;
    max-height: none;
    border-radius: calc(var(--cb-radius) + 10px);
    box-shadow:
        0 0 12px 8px rgba(255, 255, 255, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.3);
    outline: 1px solid #696C73;
    outline-offset: 4px;
    text-align: left;
}

/* Visible/interactive only while .open is present. chatbot.css already
   transitions opacity/transform on #versich-chatbot-window, so removing
   .open on close fades it out smoothly with no extra CSS needed here. */
#versich-chatbot-window.cb-docked.open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0%);
}

#versich-chatbot-window.cb-docked.cb-expanded {
    width: clamp(400px, calc(100vw - 32px), 560px);
    height: clamp(560px, calc(100vh - 56px), 860px);
}

#versich-chatbot-window.cb-docked .cb-header-title {
    color: var(--cb-navy);
}

#versich-chatbot-window.cb-docked .cb-messages {
    min-height: 0;
}

.av-hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.av-hero-copy {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transform: scale(1);
    transition: grid-template-rows 0.5s ease, opacity 0.35s ease, transform 0.45s ease;
}

.av-hero-copy-inner {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 16px;

}

.av-hero.cwv-chat-active .av-hero-copy {
    /* display: none; */
    transform: scale(0.85);
    opacity: 0;
}

/* Docked card sits near the top of the viewport when chat is open */
/* Full-height hero keeps the background uncropped; card centers within it */
.av-hero.cwv-chat-active {
    min-height: 100vh;
    padding-bottom: 10vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.av-eyebrow {
    font-family: var(--cb-font);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 16px;
    background: linear-gradient(90deg, #D3E8FF 35%, #1F79D8 65%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.av-eyebrow-accent {
    font-weight: 700;
    background: linear-gradient(90deg, #D3E8FF 0%, #1F79D8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.av-heading {
    font-family: var(--cb-font);
    font-size: 3.25rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin: 8px 0 16px;
}

.av-subtext {
    font-family: var(--cb-font);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 560px;
}

.av-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cb-font);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: var(--cb-gradient, #1f79d8);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: var(--cb-shadow-btn, 0 0 22px 6px rgba(31, 121, 216, 0.45));
    transition: transform var(--cb-transition, 0.2s ease), box-shadow var(--cb-transition, 0.2s ease);
}

.av-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px 8px rgba(31, 121, 216, 0.6);
}

.av-cta-btn:active {
    transform: translateY(0);
}

.av-cta-arrow {
    width: 16px;
    height: 16px;
}

.cwv-inline-mount {
    margin-top: 5vw;
    display: flex;
    justify-content: center;
}

.av-hero.cwv-chat-active .cwv-inline-mount {
    margin-top: 8px;
    overflow: visible;
}

.cwv-preview-frame {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: rgba(250, 250, 250, 0.2);
    border: 1px solid rgba(250, 250, 250, 0.2);
    border-radius: calc(var(--cb-radius) + 6px);
    padding: 8px;
    transform: translateY(8%);
}

.cwv-preview-card {
    position: relative;
    display: block;
    width: 100%;
    background: var(--cb-bg);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    text-align: left;
    cursor: default;
    pointer-events: none;
    font-family: var(--cb-font);
    overflow: hidden;
}

.cwv-preview-card .cb-greeting {
    padding: 20px 14px 24px;
    background: transparent;
}

@media (max-width: 1024px) {
    .av-hero {
        padding: 64px 32px 0;
    }

    .av-hero-inner {
        max-width: 720px;
    }

    .av-heading {
        font-size: 2rem;
    }

    .av-subtext {
        max-width: 420px;
    }

    .cwv-preview-frame {
        padding: 7px;
    }
}

@media (max-width: 767px) {
    .av-hero {
        padding: 56px 24px 0;
    }

    .av-subtext {
        font-size: 14px;
        max-width: 100%;
    }

    .cwv-preview-frame {
        max-width: 420px;
        padding: 6px;
    }

    .cwv-preview-card .cb-greeting-line2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .av-hero {
        padding: 48px 20px 0px;
    }

    .av-subtext {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .av-cta-btn {
        width: auto;
        padding: 9px 18px;
        font-size: 13px;
    }

    .cwv-inline-mount {
        margin-top: 24px;
    }

    .cwv-preview-frame {
        padding: 5px;
    }
}

.cb-suggestion-text {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 480px) {
    .cb-suggestion-chevron {
        display: none;
    }
}