/* Page-owned styling; shared header behavior, content pattern, and footer stay shared. */
body:has(.mobile-app-page) #header .headerImageNormal {
    display: none !important;
}

body:has(.mobile-app-page) #header .headerImageWhite {
    display: block !important;
}

body:has(.mobile-app-page) #header #menu > ul > li > a,
body:has(.mobile-app-page) #header #mobileMenuIcon > i {
    color: #fff !important;
}

.mobile-app-page {
    --mobile-app-navy: #03152f;
    --mobile-app-blue: #39b9f1;
    --content-accent-color: #0369a1;
    --content-pattern-max-width: 1440px;
    --content-pattern-gutter: clamp(1.25rem, 4vw, 3rem);
    color: var(--code-color-heading);
    font-family: var(--code-font-ui);
}

.mobile-app-page *,
.mobile-app-page *::before,
.mobile-app-page *::after {
    box-sizing: border-box;
}

#page .mobile-app-page :is(h1, h2, h3, p) {
    float: none;
    padding: 0;
    text-align: start;
}

.mobile-app-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--mobile-app-navy);
    color: #fff;
}

.mobile-app-art {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.mobile-app-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mobile-app-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(3 21 47 / .8), rgb(3 21 47 / .45) 33%, transparent 55%);
    content: "";
    pointer-events: none;
}

.mobile-app-inner {
    max-width: var(--content-pattern-max-width);
    min-height: clamp(740px, 65vw, 1024px);
    margin: 0 auto;
    padding: calc(var(--code-header-height-expanded, 84px) + 4.5rem) var(--content-pattern-gutter) 6rem;
}

.mobile-app-copy {
    width: 42%;
    max-width: 30rem;
}

#page .mobile-app-eyebrow {
    margin: 0 0 1.5rem;
    color: #94d9ff;
    font-size: 1rem;
    font-weight: var(--code-font-weight-bold);
    letter-spacing: .035em;
    line-height: 1.5;
    text-transform: uppercase;
}

.mobile-app-eyebrow::before {
    display: block;
    width: 3rem;
    height: 4px;
    margin-bottom: 1.25rem;
    background: var(--code-color-action);
    content: "";
}

#page .mobile-app-copy h1 {
    margin: 0 0 1.5rem;
    color: #fff;
    font-family: var(--code-font-heading);
    font-size: clamp(2.5rem, 4.8vw, 4.25rem);
    font-weight: var(--code-font-weight-bold);
    letter-spacing: -.035em;
    line-height: 1.1;
    text-transform: none;
}

.mobile-app-copy h1 span {
    color: var(--mobile-app-blue);
}

#page .mobile-app-lead {
    margin: 0 0 2rem;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.5;
}

.mobile-app-downloads {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
}

.mobile-app-downloads a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border: 0;
    background: #000;
    border-radius: 8px;
    padding: 2px;
    box-shadow: none;
}

.mobile-app-downloads a:focus-visible {
    outline: 3px solid var(--code-color-action);
    outline-offset: 4px;
}

.mobile-app-downloads img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 100%;
    border: 0;
    /* The legacy Google badge has opaque white corner pixels and a light rim. */
    clip-path: inset(2px round 5px);
}

#page .mobile-app-requirement {
    margin: 0;
    color: #d0ddef;
    font-size: var(--code-font-size-small);
    line-height: 1.6;
}

#page .mobile-app-details h2 {
    margin: 0 0 1.25rem;
    color: var(--code-color-heading);
    font-family: var(--code-font-heading);
    font-size: var(--code-font-size-section-title);
    font-weight: var(--code-font-weight-bold);
    letter-spacing: -.025em;
    line-height: var(--code-line-height-heading);
    text-transform: none;
}

#page .mobile-app-details p {
    margin: 0;
    font-size: var(--code-font-size-content);
    line-height: var(--code-line-height-reading);
}

#page .mobile-app-details .mobile-app-help {
    padding: 2rem;
    border: 0;
    background: #e7f3ff;
}

#page .mobile-app-page .mobile-app-help h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

#page .mobile-app-help a {
    color: #005d99;
    font-weight: var(--code-font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: .15em;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .mobile-app-inner {
        width: 100%;
        min-height: max(920px, 200vw);
        padding-top: calc(var(--code-header-height-compact, 50px) + 2.5rem);
        padding-bottom: 100vw;
    }

    .mobile-app-copy {
        width: 100%;
        max-width: none;
    }

    #page .mobile-app-copy h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.5rem, 7vw, 3.5rem);
    }

    #page .mobile-app-eyebrow {
        margin-bottom: 1.25rem;
    }

    #page .mobile-app-lead {
        margin-bottom: 1.25rem;
    }

    .mobile-app-art img {
        object-position: center bottom;
    }

    .mobile-app-hero::after {
        background: linear-gradient(180deg, rgb(3 21 47 / .22), transparent 65%);
    }

    .mobile-app-downloads {
        gap: .5rem;
    }

    .mobile-app-downloads img {
        height: 40px;
    }
}

@media (900px <= width <= 1000px) {
    .mobile-app-inner {
        padding-top: calc(var(--code-header-height-expanded, 84px) + 2.5rem);
    }
}