@media only screen and (max-width: 991px) {
    .hero_split {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero_mark {
        order: -1;
        max-width: 380px;
    }

    .hero_start .hero_actions {
        justify-content: center;
    }

    .hero_end .hero_sub {
        margin-inline: auto;
    }

    .store_badges.is_hero {
        justify-content: center;
    }

    .demo_card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 1.4rem;
        border-radius: 28px;
    }

    .demo_card {
        grid-template-areas:
            "phone"
            "text";
    }

    .demo_heading {
        font-size: 1.4rem;
    }

    .demo_list {
        gap: .7rem;
        margin-top: 1.4rem;
    }

    .demo_item_title {
        font-size: 1.15rem;
    }

    .demo_ring {
        width: 22px;
        height: 22px;
    }

    .demo_item_body p {
        font-size: .9rem;
        line-height: 1.5;
    }

    .demo_item_body p::before {
        height: .5rem;
    }

    .ch_group {
        padding: 3.5rem 0 .5rem;
    }

    .ch_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch_group_talk .ch_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "phone phone"
            "whatsapp sms"
            "instagram messenger";
    }

    .ch_group_pages .ch_grid {
        grid-template-areas:
            "gmail gmail"
            "calendar calendar"
            "sheets drive";
    }

    .ch_page_body {
        grid-template-columns: 1fr;
    }

    .ch_page_steps,
    .ch_page_faq_list {
        grid-template-columns: 1fr;
    }

    .ch_page_faq_list {
        gap: 1.4rem;
    }

    .ch_page_others_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :root {
        --margin-inline: 0.7rem;
        --navbar-height: 68px;
    }

    .section_area {
        padding: 5rem 0;
    }

    .section_title {
        margin-bottom: 2.5rem;
    }

    /* Navbar */
    .menu_toggle {
        display: inline-block;
    }

    .lg-none {
        display: inline-flex !important;
    }

    .menu_toggle {
        border: 0;
        background: var(--bg-card);
    }

    .menu_open {
        overflow: hidden;
    }

    .app_navbar_links {
        position: fixed;
        top: var(--navbar-height);
        bottom: 0;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .4rem 1rem 2rem;
        overflow-y: auto;
        background: var(--bg-body);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s;
    }

    .menu_open .app_navbar_links {
        opacity: 1;
        visibility: visible;
    }

    .menu_open .app_navbar {
        background: var(--bg-body);
        border-bottom-color: transparent;
    }

    .mobile_auth {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: .6rem;
        margin-bottom: 1.4rem;
    }

    .app_navbar_links .mobile_auth a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0 1rem;
        border-radius: 100px;
        font-size: 1rem;
        font-weight: 500;
    }

    .app_navbar_links .mobile_auth .mobile_auth_line {
        border: 1px solid var(--border-color-strong) !important;
        color: var(--main-text);
    }

    .app_navbar_links .mobile_auth .mobile_auth_main {
        background: var(--main-color);
        color: #1c1c1c;
    }

    .app_navbar_links > a:not(.btn_main) {
        padding: .95rem 1.1rem;
        border-radius: 0;
        color: var(--main-text);
        font-size: 1.15rem;
        font-weight: 600;
    }

    .app_navbar_links > a:not(.btn_main):hover {
        background: none;
    }

    .mobile_languages {
        display: block;
        width: 100%;
    }

    .mobile_languages_current {
        margin-inline-start: auto;
        margin-inline-end: .4rem;
        color: var(--text-muted);
        font-size: calc(.85rem + 2.5px);
        font-weight: 400;
    }

    .app_navbar_links .mobile_languages .nav_mega_col a.active {
        color: var(--main-color);
    }

    /* Hero */
    .hero_area {
        padding: calc(var(--navbar-height) + 3rem) 0 4rem;
    }

    .ch_area {
        padding: 3.5rem 0 1.5rem;
    }

    .ch_scene {
        justify-self: stretch;
        width: 100%;
    }

    /* Business: the line moves to the side, one column, every stop the same way round */
    .bz_area {
        padding: 4rem 0 1.5rem;
    }

    .bz_title {
        margin-bottom: 1rem;
        text-align: start;
    }

    .bz_flow {
        padding-inline-start: 62px;
    }

    .bz_line {
        left: auto;
        inset-inline-start: 22px;
        transform: none;
    }

    .bz_block {
        grid-template-columns: 1fr;
        row-gap: 1.6rem;
        padding: 4rem 0;
    }

    .bz_block .bz_text,
    .bz_block.is_flip .bz_text {
        grid-column: 1;
        grid-row: 1;
        justify-self: stretch;
    }

    .bz_block .bz_scene,
    .bz_block.is_flip .bz_scene {
        grid-column: 1;
        grid-row: 2;
        justify-self: stretch;
        width: 100%;
    }

    .bz_node {
        top: 4rem;
        left: auto;
        inset-inline-start: -40px;
        width: 44px;
        height: 44px;
        transform: translateX(-50%) scale(.85);
    }

    html[dir="rtl"] .bz_node {
        transform: translateX(50%) scale(.85);
    }

    .bz_block.is_lit .bz_node {
        transform: translateX(-50%) scale(1);
    }

    html[dir="rtl"] .bz_block.is_lit .bz_node {
        transform: translateX(50%) scale(1);
    }

    .bz_node .icon {
        width: 20px;
        height: 20px;
    }

    .bz_text h3 {
        margin-top: .6rem;
        font-size: 1.5rem;
    }

    .sc_call,
    .sc_chat,
    .sc_mail,
    .sc_sheet {
        gap: .5rem;
        padding: .9rem;
        border-radius: var(--radius-md);
    }

    .sc_in,
    .sc_out,
    .sc_lines p {
        font-size: .82rem;
    }

    /* Pinned stories (A day + How it works): same as desktop, stacked in one screen */
    .setup_area {
        padding-top: 5rem;
    }

    .story_sticky {
        align-items: flex-start;
        padding: calc(var(--navbar-height) + .9rem) 0 1rem;
    }

    .story_inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.2rem;
    }

    .story_reverse .story_phone {
        order: 0;
    }

    .story_text {
        display: flex;
        flex-direction: column;
    }

    .story_counter,
.story_scroll_hint,
.moment_request,
.moment_card_mobile,
.story_phone_status,
.story_phone_app,
.story_phone_input,
.setup_progress {
        display: none;
    }

    /* progress as story segments that fill with the scroll */
    .story_rail {
        order: -1;
        gap: 4px;
        max-width: none;
        margin: 0 0 1.2rem;
        padding: 0;
    }

    .story_rail::before,
    .story_rail_fill {
        display: none;
    }

    .story_rail_tick {
        flex: 1;
        height: 3px;
        overflow: hidden;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.12);
    }

    .story_rail_tick span {
        display: none;
    }

    .story_rail_tick::before,
    .story_rail_tick.active::before {
        top: 0;
        left: 0;
        width: calc(clamp(0, var(--aw-progress, 0) * var(--moments, 1) - var(--i, 0), 1) * 100%);
        height: 100%;
        margin: 0;
        border-radius: 0;
        background: var(--main-color);
        transform: none;
    }

    html[dir="rtl"] .story_rail_tick::before {
        left: auto;
        right: 0;
    }

    .moment_head {
        gap: .9rem;
    }

    .icon_tile {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .icon_tile .icon {
        width: 28px;
        height: 28px;
    }

    .moment_time {
        font-size: 2.7rem;
    }

    .moment_label {
        margin-top: .9rem;
        font-size: calc(.85rem + 2.5px);
    }

    .story_moment h3 {
        margin-top: .4rem;
        font-size: 1.6rem;
    }

    .story_moment > p {
        margin-top: .5rem;
        font-size: calc(.93rem + 2.5px);
        line-height: 1.5;
    }

    /* the phone becomes a plain stage under the text */
    .story_phone {
        display: block;
    }

    .story_phone_frame {
        width: 100%;
        height: auto;
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
    }

    .phone3d.is_story {
        width: 100%;
        height: auto;
        perspective: none;
        cursor: auto;
    }

    .phone3d.is_story .phone3d_body,
    .phone3d.is_story .phone3d_front {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: none;
        transform: none;
    }

    .phone3d.is_story .phone3d_floor,
    .phone3d.is_story .phone3d_slice,
    .phone3d.is_story .phone3d_edge,
    .phone3d.is_story .phone3d_rail,
    .phone3d.is_story .phone3d_back,
    .phone3d.is_story .phone3d_glare {
        display: none;
    }

    .phone3d.is_story .story_phone_frame {
        height: auto;
        box-shadow: none;
    }

    .story_screen {
        gap: .6rem;
        padding-top: 0;
    }

    .screen_request {
        font-size: .84rem;
    }

    .story_phone .stage_card,
    .story_phone .setup_card {
        padding: 1rem;
        border-radius: 18px;
        background: #2d2d2d;
        border: 1px solid var(--border-color);
    }

    /* Business: index becomes story segments, the window fills the rest of the screen */
    .biz_area {
        padding-top: 5rem;
    }

    .biz_inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        height: 100%;
    }

    .biz_index {
        flex-direction: row;
        gap: 4px;
        margin: 0 0 1rem;
    }

    .biz_index li {
        flex: 1;
    }

    .biz_index_item {
        height: 3px;
        padding: 0;
        overflow: hidden;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.12);
        font-size: 0;
    }

    .biz_index_item .soon_pill,
    .biz_index_item::before {
        display: none;
    }

    .biz_index_item::after {
        width: calc(clamp(0, var(--aw-progress, 0) * var(--moments, 1) - var(--i, 0), 1) * 100%);
        height: 100%;
    }

    .biz_caption h3 {
        font-size: 1.5rem;
    }

    .biz_caption > p {
        margin-top: .5rem;
        font-size: .92rem;
    }

    .biz_caption .moment_request {
        display: none;
    }

    .biz_deck {
        flex: 0 1 480px;
        min-height: 0;
        height: auto;
    }

    .biz_card {
        height: calc(100% - 52px);
        padding: 1.1rem;
        border-radius: 22px;
    }

    .biz_card[data-pos="1"] {
        transform: translate3d(0, 22px, 0) scale(.95);
    }

    .biz_card[data-pos="2"] {
        transform: translate3d(0, 42px, 0) scale(.9);
    }

    .biz_card_head {
        margin-bottom: .9rem;
        padding-bottom: .8rem;
    }

    /* Control */
    .control_layout {
        grid-template-columns: 1fr;
    }

    .control_layout {
        gap: 3rem;
    }

    /* Footer */
    .app_footer_top {
        flex-direction: column;
    }

    .app_footer_links {
        flex-wrap: wrap;
        gap: 2.5rem 3.5rem;
    }
}

@media only screen and (max-width: 767px) {

    .hero_brands_label {
        display: none;
    }

    .hero_brands {
        margin-top: 2rem;
        width: 100%;
    }

    .sm-none {
        display: none !important;
    }

    .control_points {
        grid-template-columns: 1fr;
    }

    /* Integrations orbit on small screens */
    .integrations_sticky {
        --R: min(150px, 37vw);
    }

    .orbit {
        width: calc(var(--R) * 2 + 60px);
        height: calc(var(--R) * 2 + 60px);
    }

    .orbit_core {
        width: 76px;
        height: 76px;
        border-radius: 24px;
    }

    .orbit_core img {
        width: 28px;
        height: auto;
    }

    .orbit_tile {
        top: -23px;
        left: -23px;
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .orbit_tile .icon {
        width: 21px;
        height: 21px;
    }

    .integrations_note {
        max-width: 300px;
        font-size: calc(.85rem + 2.5px);
        text-align: center;
    }

    .cta_box {
        padding: 3.5rem 1.4rem;
        border-radius: var(--radius-lg);
    }
}

@media only screen and (max-width: 767px) {
    .auth_title {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 575px) {
    .hero_brands {
        margin-top: 3rem;
    }

    .hero_brands_row {
        gap: 2rem;
        padding-inline-end: 2rem;
    }

    .demo_item_title {
        font-size: 1.4rem;
    }

    .ch_grid,
    .ch_group_talk .ch_grid,
    .ch_group_pages .ch_grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .ch_grid .ch_card {
        grid-area: auto;
    }

    .ch_grid.is_rail .ch_card {
        flex-basis: 80%;
        min-height: 300px;
    }

    .ch_group_head {
        margin-bottom: 2rem;
    }

    .ch_card {
        min-height: 0;
        padding: 1.8rem 1.2rem;
        border-radius: 26px;
    }

    .ch_page_stage {
        padding: 2rem 1rem;
    }

    .ch_page_others_list {
        grid-template-columns: 1fr;
    }

    .container {
        padding-inline: 1rem;
    }

    .hero_area {
        padding-top: calc(var(--navbar-height) + 2.5rem);
    }

    .hero_sub {
        font-size: calc(1.05rem + 2.5px);
    }

    .lock_screen {
        height: 600px;
    }

    .ch_scene {
        zoom: .9;
    }

    .lock_time {
        font-size: 4.6rem;
    }

    .stage_card {
        padding: 1.05rem;
    }

    .reminder_time {
        font-size: 3rem;
    }

    .briefing_stats {
        gap: .4rem;
    }

    .briefing_stat {
        padding: .7rem;
    }
}

/* Short phones: keep the pinned stories inside one screen */
@media only screen and (max-width: 991px) and (max-height: 740px) {
    .story_moment > p,
.biz_caption > p {
        display: none;
    }

    .story_sticky {
        padding-top: calc(var(--navbar-height) + .5rem);
    }

    .story_rail {
        margin-bottom: .8rem;
    }

    .story_inner {
        gap: .9rem;
    }

    .icon_tile {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .icon_tile .icon {
        width: 24px;
        height: 24px;
    }

    .moment_time {
        font-size: 2.3rem;
    }

    .moment_label {
        margin-top: .7rem;
    }

    .story_moment h3 {
        font-size: 1.4rem;
    }

    .story_screens {
        zoom: .86;
    }

}

/* inside the app and pricing on smaller screens */
@media only screen and (max-width: 575px) {

    .orbit_item.ring_inner_item .orbit_tile,
    .orbit_tile {
        top: -19px;
        left: -19px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .orbit_tile .brand_logo,
    .orbit_item.ring_inner_item .orbit_tile .brand_logo {
        width: 20px;
        height: 20px;
    }
}

/* the pricing page: five cards, then fewer per row */
@media only screen and (max-width: 1199px) {
    .pricing_plans {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .pricing_page {
        padding-top: calc(var(--navbar-height) + 2.5rem);
    }

    .pricing_plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .costs_grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing_compare,
    .costs_page {
        margin-top: 4rem;
    }
}

@media only screen and (max-width: 575px) {
    .pricing_plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing_tagline,
    .pricing_price,
    .pricing_credits {
        min-height: 0;
    }

    .pricing_interval button {
        padding: .55rem 1rem;
    }

    .costs_list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .costs_value {
        align-items: flex-start;
        text-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero_burst,
    .hero_burst_part,
    .hero_logo_intro,
    .hero_logo3d,
    .hero_logo3d_shine,
    .hero_brands_row {
        animation: none;
    }
}
