@media screen and (max-width: 992px) {
    .header-bar {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
    }

    .brand-mark {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .brand-mark .brand-name {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    header .logo img {
        width: 40px;
        height: 40px;
        flex: none;
    }

    header .download-app {
        flex: none;
        margin-inline-start: auto;
        white-space: nowrap;
        padding: 9px 14px;
        font-size: 0.88rem;
    }

    header .navbar-hrefs {
        display: flex;
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 2px 0 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    header .navbar-hrefs::-webkit-scrollbar {
        display: none;
    }

    header .navbar-hrefs a {
        margin: 0;
        flex: none;
        white-space: nowrap;
        font-size: 0.92rem;
        text-align: center;
    }

    .why-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    body[dir="ltr"] .why-device {
        order: 0;
    }

    .why-device {
        order: -1;
        margin: 0.25rem 0 0.5rem;
    }

    .mobile-preview {
        width: min(200px, 52vw);
        max-width: 200px;
        height: auto;
        aspect-ratio: 900 / 1826;
    }

    .mobile-preview img {
        width: 100%;
        height: auto;
    }

    .mobile-preview::before,
    .mobile-preview::after {
        width: 120px;
        height: 120px;
    }

    #why,
    #features,
    #how,
    #testimonials,
    #download {
        scroll-margin-top: 128px;
    }

    .feature-subtitle {
        max-width: none;
    }

    .mobile-cta img {
        width: min(160px, 42vw);
        transform: translateY(-28%);
    }

    .cta-call {
        grid-template-columns: 1fr !important;
        min-height: auto;
        text-align: center;
        padding: 1rem 1.1rem 0.85rem;
        overflow: visible;
    }

    body[dir="ltr"] .mobile-cta,
    .mobile-cta {
        order: -1;
        margin-bottom: 0.25rem;
    }

    .cta-title {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        white-space: nowrap;
        font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    }

    .cta-points {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }

    .download-appx {
        justify-content: center;
        margin: 0 auto;
    }

    .logo img {
        width: 48px !important;
        height: 48px !important;
    }
    
    .head-main.hero-stage {
        min-height: 0;
        height: auto;
        padding-bottom: 0;
        justify-content: flex-start;
        gap: 0.85rem;
    }

    .hero-content {
        padding-top: 8.35rem;
        padding-bottom: 0;
        width: min(920px, 94%);
    }

    .hero-brand {
        display: none;
    }

    .hero-title {
        max-width: 14ch;
        margin-bottom: 0.45rem;
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .hero-lead {
        font-size: 1rem;
        line-height: 1.45;
    }

    .hero-cta {
        margin-top: 0.9rem;
        gap: 8px;
    }
    
    .hero-cta a,
    .download-btns a  {
        width: 132px !important;
    }
    
    .container-mobiles .mobile-left,
    .container-mobiles .mobile-right {
        display: none !important;
    }
    
    .container-mobiles.hero-phones {
        width: 100% !important;
        margin-top: 0.85rem;
        height: auto;
        min-height: 0 !important;
        flex-shrink: 1;
        align-items: flex-start;
        overflow: visible;
    }

    .container-mobiles .mobile-center {
        position: relative;
        left: auto;
        transform: none;
        opacity: 1;
        animation: none;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .container-mobiles .mobile-center img {
        width: min(200px, 52vw);
        filter: drop-shadow(0 16px 24px rgba(18, 40, 54, 0.18));
    }

    .shots-stage {
        position: relative;
        max-width: min(420px, 94vw);
        height: clamp(340px, 92vw, 420px);
        margin: 0 auto;
        padding: 1.25rem 0 0.5rem;
    }

    .screenshot-card {
        position: absolute;
        left: 50%;
        top: 50%;
        width: min(158px, 42vw);
        margin: 0;
    }

    .screenshot-card-1 {
        z-index: 1;
        transform: translate(-108%, -42%) rotate(-7deg) scale(0.84);
        filter: brightness(0.96);
        opacity: 0.95;
    }

    .screenshot-card-2 {
        z-index: 3;
        transform: translate(-50%, -52%) scale(1.06);
    }

    .screenshot-card-3 {
        z-index: 1;
        transform: translate(8%, -42%) rotate(7deg) scale(0.84);
        filter: brightness(0.96);
        opacity: 0.95;
    }

    .shots-stage:hover .screenshot-card:not(:hover),
    .screenshot-card-1:hover,
    .screenshot-card-2:hover,
    .screenshot-card-3:hover {
        filter: none;
        opacity: 1;
    }

    .screenshot-card-1:hover {
        transform: translate(-108%, -42%) rotate(-7deg) scale(0.84);
    }

    .screenshot-card-2:hover {
        transform: translate(-50%, -52%) scale(1.06);
    }

    .screenshot-card-3:hover {
        transform: translate(8%, -42%) rotate(7deg) scale(0.84);
    }

    .video-show .play-btn {
        width: 68px;
        height: 68px;
    }

    .video-segmented-wrap {
        margin-bottom: 1.35rem;
    }

    .segmented-btn {
        padding: 0.65rem 1rem;
        font-size: 0.86rem;
    }
}

@media screen and (max-width:767px) {
    header .download-app {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .hero-content {
        padding-top: 8.6rem;
    }

    .hero-title {
        font-size: clamp(1.55rem, 7.2vw, 1.95rem);
        margin-bottom: 0.35rem;
    }

    .hero-lead {
        font-size: 0.95rem;
        max-width: 24ch;
    }

    .hero-cta {
        margin-top: 0.75rem;
        gap: 6px;
    }

    .hero-cta a {
        width: 110px !important;
    }

    .container-mobiles.hero-phones {
        margin-top: 0.4rem;
    }

    .container-mobiles .mobile-center img {
        width: min(185px, 50vw);
    }

    .shots-stage {
        max-width: min(360px, 94vw);
        height: clamp(310px, 90vw, 380px);
        padding: 1rem 0 0.25rem;
    }

    .screenshot-card {
        width: min(138px, 38vw);
    }

    .screenshot-card-1 {
        transform: translate(-106%, -42%) rotate(-6deg) scale(0.84);
    }

    .screenshot-card-2 {
        transform: translate(-50%, -52%) scale(1.05);
    }

    .screenshot-card-3 {
        transform: translate(6%, -42%) rotate(6deg) scale(0.84);
    }

    .screenshot-card-1:hover {
        transform: translate(-106%, -42%) rotate(-6deg) scale(0.84);
    }

    .screenshot-card-2:hover {
        transform: translate(-50%, -52%) scale(1.05);
    }

    .screenshot-card-3:hover {
        transform: translate(6%, -42%) rotate(6deg) scale(0.84);
    }

    .feature-sect {
        padding: 0.85rem 0.9rem;
    }

    .cta-call {
        padding: 0.9rem 0.9rem 0.7rem;
        border-radius: 20px;
    }

    .mobile-cta img {
        width: min(140px, 40vw);
        transform: translateY(-24%);
    }

    .cta-title {
        white-space: normal;
        font-size: 1.15rem;
    }

    .mobile-preview {
        width: min(168px, 46vw);
        max-width: 168px;
    }

    #why,
    #features,
    #how,
    #testimonials,
    #download {
        scroll-margin-top: 124px;
    }
}

@media screen and (max-width: 468px) {
    .header-bar {
        gap: 8px 10px;
    }

    .brand-mark .brand-name {
        font-size: 0.98rem;
    }

    header .navbar-hrefs a {
        font-size: 0.84rem;
    }

    header .download-app {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .section-intro {
        margin-bottom: 2rem;
    }

    .footer-social {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .footer-social .icon {
        width: 34px;
        height: 34px;
        flex: none;
        border-radius: 10px;
    }

    .footer-social .icon i {
        font-size: 1.15rem;
    }
}

/* ===== Short desktop / laptop height: keep text clear of phone mockups ===== */
@media screen and (min-width: 993px) and (max-height: 860px) {
    .head-main.hero-stage {
        min-height: 0;
        height: auto;
        justify-content: flex-start;
        gap: 1.5rem;
        overflow: visible;
        padding-bottom: 1rem;
    }

    .hero-content {
        padding-top: 6.5rem;
        padding-bottom: 0.75rem;
    }

    .hero-title {
        font-size: clamp(1.85rem, 3.6vw, 2.7rem);
        margin-bottom: 0.55rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-cta {
        margin-top: 1.15rem;
        margin-bottom: 0.35rem;
    }

    .container-mobiles.hero-phones {
        margin-top: 0.35rem;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        align-items: flex-start;
    }

    .container-mobiles .mobile-left,
    .container-mobiles .mobile-right {
        display: none;
    }

    .container-mobiles .mobile-center {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        opacity: 1;
        animation: none;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .container-mobiles .mobile-center img {
        width: min(220px, 34vh, 28vw);
    }
}

@media screen and (min-width: 993px) and (max-height: 720px) {
    .hero-content {
        padding-top: 5.75rem;
    }

    .hero-brand {
        margin-bottom: 0.35rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    }

    .hero-lead {
        display: none; /* free vertical room; CTA + phones stay readable */
    }

    .hero-cta {
        margin-top: 0.85rem;
    }

    .hero-cta a {
        width: clamp(120px, 16vw, 150px);
    }

    .container-mobiles .mobile-center img {
        width: min(180px, 30vh, 24vw);
    }
}

@media screen and (min-width: 993px) and (max-height: 600px) {
    .head-main.hero-stage {
        gap: 1rem;
    }

    .hero-content {
        padding-top: 5.25rem;
    }

    .container-mobiles.hero-phones {
        display: none; /* ultra-short: text + store buttons only */
    }
}
