/* Chtio Stage286: unified public layouts, realistic chat demos and full responsive containment. */

.chtio_portal_public {
    overflow-x: clip;
}

.chtio_portal_public .chtio_public_header_inner,
.chtio_portal_public .chtio_public_footer_inner {
    width: min(1360px, calc(100% - 32px));
}

.chtio_portal_public .chtio_public_header_inner {
    min-width: 0;
}

.chtio_portal_public .chtio_public_logo,
.chtio_portal_public .chtio_public_logo img,
.chtio_portal_public .chtio_public_nav,
.chtio_portal_public .chtio_public_actions {
    min-width: 0;
}

.chtio_portal_public .chtio_public_nav_link {
    white-space: nowrap;
}

.chtio_portal_public .stage279_marketing_page,
.chtio_portal_public .stage281_guides_index,
.chtio_portal_public .stage281_guide_page {
    width: min(1320px, calc(100% - 32px));
}

.chtio_portal_public .stage279_marketing_hero {
    grid-template-columns: minmax(0, .93fr) minmax(560px, 1.07fr);
    gap: 46px;
    min-height: 620px;
    padding: 56px 0 72px;
}

.chtio_portal_public .stage279_marketing_hero > div:first-child {
    min-width: 0;
}

.chtio_portal_public .stage279_marketing_hero h1 {
    max-width: none;
    font-size: clamp(46px, 4.8vw, 74px);
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.chtio_portal_public .stage279_marketing_hero > div > p {
    max-width: 720px;
    font-size: clamp(18px, 1.6vw, 22px);
}

.chtio_portal_public .stage286_marketing_visual {
    display: block;
    min-width: 0;
    min-height: 520px;
    padding: 0;
    border: 0;
    background: transparent;
}

.stage286_chat_demo,
.stage286_chat_demo *,
.stage286_chat_demo *::before,
.stage286_chat_demo *::after {
    box-sizing: border-box;
}

.stage286_chat_demo {
    width: 100%;
    min-width: 0;
}

.stage286_demo_browser {
    overflow: hidden;
    min-height: 520px;
    border: 1px solid #d6deea;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(30, 43, 63, .12);
}

.stage286_demo_browser > header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-bottom: 1px solid #dfe5ed;
    background: #ffffff;
}

.stage286_demo_browser > header > span {
    display: flex;
    gap: 6px;
}

.stage286_demo_browser > header > span i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd3df;
}

.stage286_demo_browser > header b {
    color: #526077;
    font-size: 11px;
    font-weight: 600;
}

.stage286_demo_browser > header em {
    justify-self: end;
    padding: 5px 7px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #f7f9fc;
    color: #5c687a;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
}

.stage286_demo_site {
    position: relative;
    min-height: 474px;
    padding: 24px;
    overflow: hidden;
    background: #f6f8fb;
}

.stage286_demo_site_copy {
    width: min(67%, 430px);
    min-height: 280px;
    padding: 22px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #ffffff;
}

.stage286_demo_site_copy small {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid #cfe0f6;
    border-radius: 5px;
    background: #f3f8fe;
    color: #1f67ba;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stage286_demo_site_copy strong {
    display: block;
    margin: 16px 0 10px;
    color: #20242d;
    font-size: clamp(21px, 2.2vw, 30px);
    line-height: 1.12;
}

.stage286_demo_site_copy p {
    max-height: 5.1em;
    margin: 0 0 18px;
    overflow: hidden;
    color: #657287;
    font-size: 12px;
    line-height: 1.7;
}

.stage286_demo_site_copy > span {
    display: block;
    height: 10px;
    margin-top: 10px;
    border-radius: 5px;
    background: #e9eef4;
}

.stage286_demo_site_copy > span:nth-of-type(2) {
    width: 86%;
}

.stage286_demo_site_copy > span:nth-of-type(3) {
    width: 72%;
}

.stage286_demo_widget {
    position: absolute;
    right: 22px;
    bottom: 76px;
    width: min(340px, calc(100% - 44px));
    overflow: hidden;
    border: 1px solid #d8e0eb;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(28, 42, 62, .16);
}

.stage286_demo_widget_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #3b7ddd;
    color: #ffffff;
}

.stage286_demo_widget_head > div:first-child {
    min-width: 0;
}

.stage286_demo_widget_head strong,
.stage286_demo_widget_head small {
    display: block;
    color: #ffffff;
}

.stage286_demo_widget_head strong {
    font-size: 14px;
}

.stage286_demo_widget_head small {
    margin-top: 3px;
    font-size: 10px;
    opacity: .84;
}

.stage286_demo_widget_head > div:last-child {
    display: flex;
    gap: 6px;
    align-items: center;
}

.stage286_demo_widget_head > div:last-child span,
.stage286_demo_widget_head button {
    display: grid;
    place-items: center;
    min-width: 26px;
    min-height: 26px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 5px;
    background: rgba(255,255,255,.16);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
}

.stage286_demo_widget_head button {
    padding: 0;
    font-size: 15px;
}

.stage286_demo_widget_tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 9px 9px 0;
    background: #ffffff;
}

.stage286_demo_widget_tabs > * {
    display: grid;
    place-items: center;
    min-height: 31px;
    padding: 5px 7px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #f8fafc;
    color: #5d6a80;
    font-size: 10px;
    font-weight: 600;
}

.stage286_demo_widget_tabs > b {
    border-color: #c9d8ec;
    background: #eef4fd;
    color: #1f67ba;
}

.stage286_demo_widget_body {
    display: grid;
    gap: 10px;
    min-height: 196px;
    padding: 11px;
    background: #f6f8fb;
}

.stage286_demo_day {
    justify-self: center;
    padding: 4px 7px;
    border: 1px solid #dde5ef;
    border-radius: 5px;
    background: #ffffff;
    color: #728096;
    font-size: 9px;
    font-weight: 600;
}

.stage286_demo_message {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.stage286_demo_message.is-visitor {
    justify-content: flex-end;
}

.stage286_demo_message > i {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #dde8f9;
    color: #285f9f;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
}

.stage286_demo_message p {
    max-width: 82%;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #ffffff;
    color: #303c4e;
    font-size: 10px;
    line-height: 1.45;
}

.stage286_demo_message.is-visitor p {
    border-color: #3b7ddd;
    background: #3b7ddd;
    color: #ffffff;
}

.stage286_demo_message p small {
    display: block;
    margin-top: 4px;
    color: #8d97a8;
    font-size: 8px;
}

.stage286_demo_message.is-visitor p small {
    color: rgba(255,255,255,.78);
}

.stage286_demo_typing {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #ffffff;
    color: #647187;
    font-size: 9px;
}

.stage286_demo_typing i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9eabc0;
}

.stage286_demo_branding {
    display: block;
    padding: 0 11px 9px;
    color: #7c889b;
    background: #f6f8fb;
    font-size: 9px;
    text-decoration: none;
}

.stage286_demo_composer {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 11px;
    border-top: 1px solid #e0e7ef;
    background: #ffffff;
}

.stage286_demo_composer span,
.stage286_demo_composer button {
    display: grid;
    place-items: center;
    height: 28px;
    border: 1px solid #dce4ee;
    border-radius: 5px;
    background: #f8fafc;
    color: #617086;
}

.stage286_demo_composer button {
    height: 30px;
    border-color: #3b7ddd;
    background: #3b7ddd;
    color: #ffffff;
}

.stage286_demo_composer em {
    min-width: 0;
    overflow: hidden;
    color: #8f99aa;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage286_demo_launcher {
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 5px;
    background: #3b7ddd;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 10px 22px rgba(28, 42, 62, .16);
}

.chtio_portal_public .stage279_card,
.chtio_portal_public .stage280_scenario_grid article,
.chtio_portal_public .stage280_fit_card,
.chtio_portal_public .stage281_guide_card,
.chtio_portal_public .stage281_summary,
.chtio_portal_public .stage281_checklist,
.chtio_portal_public .stage281_examples_grid article {
    min-width: 0;
}

.chtio_portal_public .stage279_card h3,
.chtio_portal_public .stage280_scenario_grid h3,
.chtio_portal_public .stage281_guide_card h2,
.chtio_portal_public .stage281_article_section h2 {
    overflow-wrap: anywhere;
}

.chtio_portal_public .stage283_comparison_table_wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.chtio_portal_public .stage283_comparison_table {
    min-width: 760px;
}

.chtio_portal_public .stage281_article_layout {
    grid-template-columns: minmax(220px, 270px) minmax(0, 820px);
    gap: clamp(34px, 4vw, 64px);
}

.chtio_portal_public .stage281_article_body,
.chtio_portal_public .stage281_related,
.chtio_portal_public .stage281_related_grid,
.chtio_portal_public .stage281_related_grid > * {
    min-width: 0;
}

.chtio_portal_public .stage281_article_toc {
    max-height: calc(100vh - 124px);
    overflow-y: auto;
}

.chtio_portal_public .stage279_breadcrumb {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    white-space: nowrap;
}

.chtio_portal_public .chtio_download_page {
    width: min(1320px, calc(100% - 32px));
}

.chtio_portal_public .chtio_download_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chtio_portal_public .chtio_download_card {
    min-width: 0;
}

@media (max-width: 1180px) {
    .chtio_portal_public .chtio_public_menu {
        display: inline-grid;
    }

    .chtio_portal_public .chtio_public_nav {
        position: fixed;
        top: calc(68px + env(safe-area-inset-top, 0px));
        right: 12px;
        left: 12px;
        z-index: 130;
        display: grid;
        max-height: calc(100dvh - 86px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        overflow: auto;
        visibility: hidden;
        opacity: 0;
        border: 1px solid var(--chtio_border_2);
        border-radius: 5px;
        background: var(--chtio_surface);
        box-shadow: var(--chtio_shadow);
        transform: translateY(-8px);
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
        overscroll-behavior: contain;
    }

    .chtio_portal_public.is-public-menu-open .chtio_public_nav {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .chtio_portal_public .chtio_public_nav_link,
    .chtio_portal_public .chtio_language_menu summary,
    .chtio_portal_public .chtio_language_options a,
    .chtio_portal_public .chtio_public_actions .button {
        min-height: 44px;
    }

    .chtio_portal_public .chtio_public_nav_link,
    .chtio_portal_public .chtio_language_options a {
        display: flex;
        align-items: center;
    }

    .chtio_portal_public .chtio_language_menu summary {
        justify-content: space-between;
    }

    .chtio_portal_public .chtio_public_actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .chtio_portal_public .chtio_public_actions .button {
        width: 100%;
        min-width: 0;
    }

    .chtio_portal_public .stage279_marketing_hero {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: 0;
    }

    .chtio_portal_public .stage279_marketing_hero > div:first-child {
        max-width: 880px;
    }

    .chtio_portal_public .stage286_marketing_visual {
        width: min(820px, 100%);
    }

    .chtio_portal_public .stage281_guides_hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
        gap: 34px;
    }

    .chtio_portal_public .stage281_article_layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .chtio_portal_public .stage281_guides_hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .chtio_portal_public .stage281_library_visual {
        width: min(560px, 100%);
        min-height: 320px;
    }

    .chtio_portal_public .stage281_article_layout {
        grid-template-columns: 1fr;
    }

    .chtio_portal_public .stage281_article_toc {
        position: static;
        max-height: none;
    }

    .chtio_portal_public .chtio_download_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .chtio_portal_public .stage279_marketing_page,
    .chtio_portal_public .stage281_guides_index,
    .chtio_portal_public .stage281_guide_page,
    .chtio_portal_public .chtio_download_page {
        width: min(1320px, calc(100% - 24px));
    }

    .chtio_portal_public .stage279_marketing_hero {
        padding: 38px 0 50px;
    }

    .chtio_portal_public .stage279_marketing_hero h1 {
        font-size: clamp(38px, 10.6vw, 54px);
    }

    .stage286_demo_browser {
        min-height: 480px;
    }

    .stage286_demo_site {
        min-height: 434px;
        padding: 14px;
    }

    .stage286_demo_site_copy {
        width: 100%;
        min-height: 240px;
        padding: 16px 16px 112px;
    }

    .stage286_demo_widget {
        right: 14px;
        bottom: 68px;
        width: calc(100% - 28px);
    }

    .stage286_demo_launcher {
        right: 14px;
        bottom: 14px;
    }

    .chtio_portal_public .stage281_guide_grid,
    .chtio_portal_public .stage281_examples_grid {
        grid-template-columns: 1fr;
    }

    .chtio_portal_public .stage281_guides_intro {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 18px;
        padding: 22px;
    }

    .chtio_portal_public .stage281_intro_number {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .chtio_portal_public .chtio_public_header_inner,
    .chtio_portal_public .chtio_public_footer_inner {
        width: calc(100% - 20px);
    }

    .chtio_portal_public .chtio_public_nav {
        right: 8px;
        left: 8px;
    }

    .chtio_portal_public .chtio_public_actions {
        grid-template-columns: 1fr;
    }

    .chtio_portal_public .stage279_marketing_page,
    .chtio_portal_public .stage281_guides_index,
    .chtio_portal_public .stage281_guide_page,
    .chtio_portal_public .chtio_download_page {
        width: calc(100% - 20px);
    }

    .chtio_portal_public .stage279_marketing_hero > div > p,
    .chtio_portal_public .stage281_guides_hero > div > p,
    .chtio_portal_public .stage281_article_lead {
        font-size: 16px;
    }

    .stage286_demo_browser {
        min-height: 450px;
    }

    .stage286_demo_site {
        min-height: 404px;
        padding: 10px;
    }

    .stage286_demo_site_copy {
        padding: 14px 14px 106px;
    }

    .stage286_demo_site_copy strong {
        font-size: 19px;
    }

    .stage286_demo_widget {
        right: 10px;
        bottom: 62px;
        width: calc(100% - 20px);
    }

    .stage286_demo_widget_body {
        min-height: 180px;
    }

    .stage286_demo_launcher {
        right: 10px;
        bottom: 10px;
        width: 44px;
        height: 44px;
    }

    .chtio_portal_public .stage281_article_header {
        margin-bottom: 36px;
        text-align: left;
    }

    .chtio_portal_public .stage281_article_header .stage279_eyebrow {
        justify-content: flex-start;
    }

    .chtio_portal_public .stage281_article_meta {
        justify-content: flex-start;
    }

    .chtio_portal_public .stage281_article_meta span + span::before {
        display: none;
    }

    .chtio_portal_public .stage281_summary,
    .chtio_portal_public .stage281_checklist,
    .chtio_portal_public .stage281_examples_grid article,
    .chtio_portal_public .stage281_article_toc {
        padding: 20px;
    }
}

@media (max-width: 390px) {
    .stage286_demo_widget_tabs > * {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 9px;
    }

    .stage286_demo_message p {
        max-width: 86%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chtio_portal_public *,
    .chtio_portal_public *::before,
    .chtio_portal_public *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
