/* =========================================================
   Online Truck Booking App download landing page
   ========================================================= */

.otba-page {
    background: #0b1f17;
}

.otba-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
}

.otba-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.otba-bg-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.otba-bg-swiper .swiper-wrapper,
.otba-bg-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.otba-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.otba-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(8, 28, 20, 0.48) 0%, rgba(8, 28, 20, 0.28) 42%, rgba(8, 28, 20, 0.1) 100%),
        linear-gradient(0deg, rgba(8, 28, 20, 0.36) 0%, rgba(8, 28, 20, 0.04) 48%, rgba(8, 28, 20, 0.12) 100%);
    pointer-events: none;
}

.otba-hero__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: clamp(0px, 0vw, 64px) 0 clamp(0px, 4vw, 48px);
}

.otba-hero__content>.row {
    width: 100%;
    margin: auto;
}

.otba-title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.otba-subtitle {
    margin: 0 0 24px;
    max-width: 540px;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
}

.otba-download-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 520px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(8, 16, 12, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.otba-download-card__qr {
    flex: 0 0 auto;
    text-align: center;
    padding-right: 12px;
}

.otba-download-card__label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.otba-qr-frame {
    width: clamp(110px, 18vw, 140px);
    height: clamp(110px, 18vw, 140px);
    margin: 0 auto;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.otba-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.otba-download-card__divider {
    position: relative;
    width: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otba-download-card__divider::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.otba-download-card__divider span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 10px;
    font-weight: 700;
}

.otba-download-card__stores {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-left: 12px;
}

.otba-store-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.otba-store-row:hover .otba-store-badge {
    transform: translateY(-1px);
}

.otba-store-badge {
    height: clamp(36px, 5vw, 40px);
    width: auto;
    max-width: min(140px, 42vw);
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.otba-store-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
}

.otba-store-rating i {
    color: #ffc107;
    font-size: 11px;
    flex-shrink: 0;
}

.otba-phone {
    display: flex;
    justify-content: center;
    padding: 10px 0 0;
}

.otba-phone-shell {
    position: relative;
    width: min(280px, 72%);
    max-width: 280px;
    aspect-ratio: 9 / 19.2;
    border-radius: clamp(28px, 8vw, 44px);
    background: transparent;
    border: 2.5px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 24px 55px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.otba-phone-shell__status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(10px, 2.5vw, 16px) clamp(12px, 3vw, 18px) 0;
    font-size: clamp(9px, 2vw, 11px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.otba-phone-shell__status-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(8px, 1.8vw, 10px);
}

.otba-phone-shell__bars {
    position: absolute;
    left: clamp(12px, 3vw, 18px);
    right: clamp(12px, 3vw, 18px);
    bottom: clamp(14px, 3vw, 22px);
    z-index: 2;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.otba-phone-shell__bars span {
    flex: 1 1 auto;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.25s ease;
}

.otba-phone-shell__bars span.is-active {
    background: #fff;
}

/* ---------- Large tablets / small laptops ---------- */
@media (max-width: 1199.98px) {
    .otba-phone-shell {
        width: min(250px, 78%);
    }
}

/* ---------- Tablet and below ---------- */
@media (max-width: 991.98px) {
    .otba-hero {
        min-height: auto;
    }

    .otba-hero__overlay {
        background:
            linear-gradient(180deg, rgba(8, 28, 20, 0.32) 0%, rgba(8, 28, 20, 0.42) 42%, rgba(8, 28, 20, 0.55) 100%),
            linear-gradient(0deg, rgba(8, 28, 20, 0.22) 0%, rgba(8, 28, 20, 0.06) 40%, rgba(8, 28, 20, 0.24) 100%);
    }

    .otba-hero__content {
        align-items: stretch;
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .otba-hero__visual {
        order: -1;
    }

    .otba-hero__copy {
        text-align: center;
    }

    .otba-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 520px;
    }

    .otba-download-card {
        flex-direction: row;
        align-items: center;
        max-width: 480px;
        margin: 0 auto;
        padding: 14px;
    }

    .otba-phone {
        padding: 0 0 8px;
    }

    .otba-phone-shell {
        width: min(200px, 46vw);
        max-width: 220px;
    }
}

/* ---------- Small tablets / large phones ---------- */
@media (max-width: 767.98px) {
    .otba-hero__content {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .otba-download-card {
        flex-direction: column;
        max-width: 320px;
        gap: 0;
    }

    .otba-download-card__qr {
        padding-right: 0;
        width: 100%;
    }

    .otba-download-card__divider {
        width: 100%;
        height: 28px;
        flex-basis: 28px;
    }

    .otba-download-card__divider::before {
        top: 50%;
        bottom: auto;
        left: 8px;
        right: 8px;
        width: auto;
        height: 1px;
        transform: translateY(-50%);
    }

    .otba-download-card__stores {
        padding-left: 0;
        width: 100%;
        align-items: stretch;
    }

    .otba-store-row {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .otba-store-rating {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .otba-phone-shell {
        width: min(180px, 42vw);
        border-width: 2px;
    }

    .otba-qr-frame {
        width: 120px;
        height: 120px;
    }
}

/* ---------- Hide phone frame on mobile (320–520px) ---------- */
@media (max-width: 520px) {
    .otba-hero__visual {
        display: none !important;
    }

    .otba-hero__content {
        align-items: center;
        min-height: calc(100vh - 80px);
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .otba-hero__copy {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .otba-title {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12px;
        font-size: clamp(1.55rem, 7vw, 1.85rem);
        line-height: 1.2;
    }

    .otba-subtitle {
        width: 100%;
        max-width: 420px;
        margin: 0 auto 20px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .otba-download-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 14px 12px;
        align-items: center;
    }

    .otba-download-card__qr,
    .otba-download-card__stores {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .otba-store-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .otba-qr-frame {
        width: 118px;
        height: 118px;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) and (min-width: 521px) {
    .otba-hero__content {
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .otba-title {
        font-size: clamp(1.55rem, 7.2vw, 1.9rem);
        margin-bottom: 10px;
    }

    .otba-subtitle {
        margin-bottom: 18px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .otba-download-card {
        max-width: 100%;
        padding: 12px;
        border-radius: 14px;
    }

    .otba-qr-frame {
        width: 112px;
        height: 112px;
        padding: 6px;
        border-radius: 10px;
    }

    .otba-store-badge {
        height: 36px;
        max-width: 132px;
    }

    .otba-store-rating {
        font-size: 11px;
    }

    .otba-phone-shell {
        width: min(150px, 40vw);
        border-radius: 28px;
    }

    .otba-phone-shell__status {
        padding-top: 10px;
    }

    .otba-phone-shell__bars {
        bottom: 12px;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 379.98px) {
    .otba-title {
        font-size: 1.4rem;
    }

    .otba-download-card {
        max-width: 100%;
    }

    .otba-download-card__label {
        font-size: 11px;
    }

    .otba-store-badge {
        height: 34px;
    }

    .otba-store-rating {
        font-size: 11px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .otba-store-badge,
    .otba-phone-shell__bars span {
        transition: none;
    }
}