body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.second-container {
    max-height: 500px;
}

.main-container {
    background-color: #ADCFE8;
    border-radius: 0px 0px 24px 24px;
    position: relative;
}

.paragraph {
    color: #666666 !important;
    font-family: 'montserrat';
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.mobile-app-hero-image {
    max-width: 100% !important;
    height: auto;
    max-height: 400px;
    margin: auto;
    display: block;
}

.mobile-app-hero-badges {
    gap: 16px;
    flex-wrap: wrap;
}

.mobile-app-hero-badges img {
    height: 50px;
    max-width: 100%;
    display: block;
}

.first-title {
    font-size: 54px !important;
    font-weight: 500 !important;
    color: #2676B6 !important;
    font-family: 'Montserrat';
}

.second-title {
    font-size: 54px !important;
    font-weight: 700 !important;
    color: #0F2F49 !important;
    font-family: 'Montserrat';
}

.third-title {
    font-size: 23px !important;
    font-weight: 700 !important;
    color: white !important;
    font-family: 'Montserrat';
}

.third-title-h4 {
    font-size: 23px !important;
    font-weight: 700 !important;
    color: #040C12 !important;
    font-family: 'Montserrat';
}

.app-features-section {
    padding: 80px 0;
    background: #FFFFFF;
    text-align: center;
    color: #163b5b;
    margin-left: 0;
    margin-right: 0;
    max-width: 1440px;
    margin: 0 auto;
}

.app-features-heading {
    margin: 0 auto 20px;
    padding: 8px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    letter-spacing: 0;
    color: #0F2F49 !important;
    width: 100%;
    max-width: 1280px;
}

.app-features-subheading {
    margin: 0 auto !important;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0;
    color: #666666 !important;
    width: 100%;
    max-width: 1280px;
    height: 25px;
}

.app-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    max-width: 1106px;
    margin: 0 auto;
    padding-top: 80px;
}

.feature-card {
    width: 354px;
    height: 227px;
    background: #CFE3F2;
    border: 1px solid rgba(176, 209, 233, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 1px 2px rgba(25, 33, 61, 0.08);
}

.feature-icon {
    width: 80px;
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0;
    color: #17476D;
    text-align: center;
    width: 100%;
    max-width: 306px;
    margin: 0 auto;
}

.key-benefits-section {
    position: relative;
    margin: 0 auto;
    background: linear-gradient(to left, #ADCFE8, #CFE3F2);
    border-radius: 38px;
    width: 86% !important;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.key-benefits-phone-wrap {
    position: relative;
    width: 48.45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    padding: 0;
    margin-left: 0;
    overflow: hidden;
}

.key-benefits-phone-image {
    width: 624px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 624 / 684;
    display: block;
    border: none;
}

.key-benefits-content {
    width: 58%;
    padding-left: 12px;
    padding-right: 12px;

}

.key-benefits-heading {
    margin: 0 0 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    color: #0F2F49 !important;
    padding-top: 80px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(38, 118, 182, 0.3);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 12px 32px;
    /* max-width: 700px; */
    /* margin: 0 auto; */
}

.benefit-item {
    color: #1c3c5b;
    text-align: left;
    /* max-width: 280px; */
}

.benefit-item h3 {
    margin: 0 0 16px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #17476D !important;
    padding-bottom: 0;
}

.benefit-item p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    /* max-width: 260px; */
    padding-bottom: 40px !important;
}

.why-choose-logo {
    width: 91px;
    height: 90px;
}

.why-choose-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.why-choose-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: 0;
    color: #0F2F49 !important;
}

.why-choose-icon {
    width: 48px;
    height: 48px;
}

.why-choose-feature {
    gap: 16px !important;
}

.why-choose-header {
    padding-left: 0 !important;
    gap: 30px !important;
    width: 593px !important;
    height: 97px !important;
}

.why-choose-icon svg {
    width: 40px !important;
    height: 40px !important;
    stroke: #2676B6;
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-choose-copy h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: 0;
    color: #17476D !important;
}

.why-choose-copy p {
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0;
    color: #666666 !important;
}

.why-choose-bottom-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: 0;
    color: #17476D !important;
}

.why-choose-bottom-text {
    font-family: 'Montserrat';
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0;
    color: #17476D !important;
}

.discover-section {
    background: rgba(232, 232, 232, 0.4);
    border-radius: 38px 38px 0 0;
    margin: 30px auto 0;
    max-width: 1440px;
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 37px;
}

.discover-copy {
    flex: 1;
    max-width: 1008px;
}

.discover-copy h2 {
    margin: 0;
    font-size: 42px !important;
    line-height: 1.1 !important;
    letter-spacing: 0;
    color: #0F2F49 !important;
    font-weight: 700 !important;
}

.discover-copy p {
    margin: 37px 0 0 !important;
    font-size: 23px !important;
    line-height: 1.4 !important;
    letter-spacing: 0;
    color: #2676B6 !important;
    font-weight: 700 !important;
}

.discover-qr {
    width: 260px;
    height: 260px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.15);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.discover-qr svg {
    width: 92%;
    height: 92%;
    display: block;
}

@media screen and (max-width: 768px) {
    .second-container {
        max-height: 150vh;
    }

    .paragraph {
        color: #666666 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .main-container {
        background: #C0DAEE;
    }

    .mobile-app-hero-badges {
        gap: 8px;
    }

    .mobile-app-hero-badges img {
        height: 46px;
        max-width: 100%;
    }

    .first-title {
        font-size: 28px !important;
        margin-bottom: 0px;
    }

    .second-title {
        font-size: 28px !important;
    }

    .third-title {
        font-size: 20px !important;
    }

    .third-title-h4 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    .app-features-section {
        padding: 160px 16px 48px;
    }

    .mobile-app-hero-row.py-5 {
        padding-bottom: 150px !important;
    }

    .mobile-app-hero-image {
        position: absolute;
        left: 50%;
        bottom: 0;
        width: min(306px, 78vw) !important;
        height: auto !important;
        aspect-ratio: 527 / 607;
        padding-bottom: 48px !important;
        margin: 0 !important;
        transform: translate(-50%, 50%);
        z-index: 2;
    }

    .app-features-heading {
        font-size: 32px !important;
        line-height: 48px !important;
        letter-spacing: 0;
    }

    .app-features-subheading {
        font-size: 16px !important;
        line-height: 1.4 !important;
        padding: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .app-features-grid {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding-top: 32px;
        width: 100%;
    }

    .feature-card {
        width: 305px;
        max-width: 100%;
        height: auto;
        min-height: 0;
        padding: 40px 24px 20px;
        justify-content: flex-start;
        border-radius: 8px;
        border: 1px solid rgba(176, 209, 233, 0.5);
        background: #CFE3F2;
        box-shadow: 0px 1px 2px rgba(25, 33, 61, 0.08);
    }

    .feature-icon {
        margin-bottom: 16px;
    }

    .feature-title {
        font-size: 20px;
        line-height: 30px;
    }

    .key-benefits-section {
        flex-direction: column;
        width: 85%;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
        min-height: 0;
        border-radius: 24px;
    }

    .key-benefits-phone-wrap,
    .key-benefits-content {
        width: 100%;
    }

    .key-benefits-content {
        order: 1;
        padding: 0;
    }

    .key-benefits-phone-wrap {
        order: 2;
        height: auto;
        overflow: visible;
        margin-top: 24px;
        min-height: 0;
    }

    .key-benefits-phone-image {
        width: 404px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 404 / 435;
        margin: 0 auto;
    }

    .key-benefits-heading {
        position: relative;
        font-size: 32px !important;
        line-height: 48px !important;
        letter-spacing: 0;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: none;
        padding: 32px 20px;
    }

    .key-benefits-heading::after {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 20px;
        width: calc(100% - 40px);
        height: 1px;
        background: rgba(38, 118, 182, 0.3);
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 32px 20px;
    }

    .benefit-item p {
        max-width: 100%;
    }

    .benefit-item h3 {
        font-size: 20px !important;
        line-height: 30px !important;
        margin-bottom: 16px;
        padding-bottom: 0;
    }

    .benefit-item p {
        font-size: 16px !important;
        line-height: 1.4 !important;
        padding-bottom: 0;
    }

    .row.why-choose-section {
        margin-left: 0;
        margin-right: 0;
        padding: 19px 24px 60px !important;
    }

    .why-choose-content-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .d-flex.why-choose-header {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left !important;
        padding-left: 0 !important;
        gap: 16px !important;
        width: 100% !important;
        height: auto !important;
    }

    .why-choose-logo {
        width: 62px !important;
        height: 62px !important;
    }

    .why-choose-title {
        font-size: 32px !important;
        line-height: 48px !important;
        letter-spacing: 0 !important;
        text-align: left !important;
    }

    .d-flex.why-choose-feature {
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .why-choose-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .why-choose-copy {
        text-align: left !important;
    }

    .why-choose-copy h3 {
        font-size: 20px !important;
        line-height: 30px !important;
        color: #17476D !important;
    }

    .why-choose-copy p {
        margin: 0;
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        color: #0F2F49 !important;
    }

    .why-choose-bottom-title {
        font-size: 20px !important;
        line-height: 30px !important;
        color: #17476D !important;
        text-align: left !important;
    }

    .why-choose-bottom-text {
        font-size: 20px !important;
        line-height: 1.4 !important;
        color: #17476D !important;
        text-align: left !important;
    }

    .discover-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 24px;
        gap: 48px;
    }

    .discover-copy h2 {
        font-size: 32px !important;
        line-height: 40px !important;
        letter-spacing: 0;
    }

    .discover-copy p {
        font-size: 21px !important;
        line-height: 1.4 !important;
        margin-top: 0 !important;
    }

    .discover-qr {
        width: 140px;
        height: 140px;
    }
}

/* Desktop-exact measurements (Figma 1440px frame). Scoped to true desktop only
   so the existing tablet/iPad-range layout (769px-1199px) stays untouched. */
@media screen and (min-width: 1200px) {
    .main-container {
        background: linear-gradient(to left, #ADCFE8, #CFE3F2);
        border-radius: 0 0 38px 38px;
    }

    .key-benefits-section.mb-5 {
        margin-bottom: 0 !important;
    }

    .paragraph {
        font-size: 20px !important;
    }

    .img-fluid.mobile-app-hero-image {
        max-width: 527px;
        height: auto;
        aspect-ratio: 527 / 607;
    }

    .mobile-app-hero-badges {
        gap: 19px;
    }

    .mobile-app-hero-badges img {
        height: 65px;
        max-width: 100%;
    }

    .app-features-heading {
        line-height: 1.1 !important;
    }

    .app-features-grid {
        padding-top: 64px;
    }

    .key-benefits-content {
        width: 60%;
        padding-left: 0;
    }

    .key-benefits-heading {
        line-height: 1.1 !important;
        margin-bottom: 40px;
    }

    .benefit-grid {
        gap: 30px 24px;
    }

    .benefit-item h3 {
        font-size: 20px !important;
        line-height: 30px !important;
    }

    .benefit-item p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        padding-bottom: 0;
    }

    .row.why-choose-section {
        padding: 80px 7% !important;
        padding-left: 130px !important;
        padding-right: 80px !important;
        flex-wrap: nowrap !important;
        --bs-gutter-x: 64px;
        --bs-gutter-y: 0 !important;
    }

    .discover-section {
        max-width: none;
        padding-left: 7%;
        padding-right: 7%;
    }

    .why-choose-header {
        padding-left: 32px !important;
        flex: 0 0 593px !important;
    }

    .why-choose-content-col {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .why-choose-content-col .row.gy-4 {
        --bs-gutter-x: 64px !important;
        --bs-gutter-y: 60px !important;
    }
}

/* Mobile App Promo Modal */
.modal-dialog.mobile-app-promo-dialog {
    max-width: 980px;
    width: calc(100% - 2rem);
    min-height: calc(100% - 3.5rem);
}

.modal-backdrop.show {
    opacity: 0.6;
}

.modal-content.mobile-app-promo-content {
    position: relative;
    flex-direction: row;
    border: none;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mobile-app-promo-left {
    width: 58%;
    min-width: 0;
    background: #ffffff;
    border-radius: 24px 0 0 24px;
    padding: 52px 40px 52px 52px;
}

.mobile-app-promo-right {
    width: 42%;
    min-width: 0;
    background: #ADCFE8;
    border-radius: 0 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.mobile-app-promo-image {
    width: 115%;
    max-width: 115%;
    height: auto;
}

.mobile-app-promo-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.mobile-app-promo-title {
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 16px;
}

.mobile-app-promo-title span {
    display: block;
}

.mobile-app-promo-desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    margin: 0 0 24px !important;
}

.mobile-app-promo-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.mobile-app-promo-badges img {
    height: 44px;
}

.mobile-app-promo-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-app-promo-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mobile-app-promo-chevron {
    color: #2676B6;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 1px;
}

.mobile-app-promo-list h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0F2F49 !important;
    margin: 0 !important;
}

.mobile-app-promo-list p {
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #666666 !important;
    margin: 2px 0 0 !important;
}

.mobile-app-promo-learnmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #2676B6;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .mobile-app-promo-dialog {
        margin: 1rem;
    }

    .mobile-app-promo-content {
        flex-direction: column;
    }

    .mobile-app-promo-left,
    .mobile-app-promo-right {
        width: 100%;
        border-radius: 0;
    }

    .mobile-app-promo-left {
        order: 2;
        border-radius: 0 0 20px 20px;
        padding: 28px 24px;
    }

    .mobile-app-promo-right {
        order: 1;
        border-radius: 20px 20px 0 0;
        min-height: 220px;
    }

    .mobile-app-promo-image {
        max-width: 70%;
    }

    .mobile-app-promo-close {
        top: 12px;
        right: 12px;
    }
}
