.mobile-guide-page {
    --guide-accent: #2756bd;
    --guide-edge: #79a9ff;
    --guide-bar-glow: #344d88;
    --guide-halo: #ccddff;
    --guide-tint: #eff1ff;
    --guide-tint-end: #e9f4fc;
    --guide-screen-background: #f0f0f5;
    --guide-screen-fade-start: 80.2%;
}

.android-guide-page {
    --guide-accent: #147a49;
    --guide-edge: #62d4a0;
    --guide-bar-glow: #24495c;
    --guide-halo: #ccebdd;
    --guide-tint: #edf8f2;
    --guide-tint-end: #e7f4f5;
    --guide-screen-background: #faf5fc;
    --guide-screen-fade-start: 72.8%;
    --guide-screen-fade-bottom: 2%;
}

.mobile-guide-page .page_div {
    align-items: stretch;
    text-align: left;
}

.mobile-guide-bar {
    border-top: 3px solid var(--guide-edge);
    background: radial-gradient(ellipse at 90% 0%, var(--guide-bar-glow), transparent 65%), #121f3d;
}

.mobile-guide-bar-inner,
.mobile-guide-brand,
.mobile-guide-nav {
    display: flex;
    align-items: center;
}

.mobile-guide-bar-inner {
    justify-content: space-between;
    gap: 14px 24px;
    padding: 15px 0;
}

.mobile-guide-brand {
    gap: 12px;
    color: white;
    font-size: 1.22rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-guide-brand img {
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgb(195 219 255 / 28%), 0 5px 14px rgb(7 17 47 / 40%);
}

.mobile-guide-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    margin: 0;
}

.mobile-guide-nav a {
    padding: 8px 10px;
    border-radius: 7px;
    color: #e6efff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-guide-nav a:hover {
    background: rgb(223 235 255 / 14%);
    color: white;
}

.mobile-guide-bar a:focus-visible {
    outline: 2px solid #a9c7ff;
    outline-offset: 3px;
}

.mobile-guide-hero {
    overflow: hidden;
    padding: 48px 0 54px;
    background: radial-gradient(ellipse at 77% 44%, var(--guide-halo) 0%, transparent 52%),
    linear-gradient(120deg, #f9fbff 12%, var(--guide-tint) 68%, var(--guide-tint-end));
}

.mobile-guide-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.mobile-guide-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    letter-spacing: -.037em;
    text-wrap: balance;
}

.mobile-guide-hero p {
    max-width: 31rem;
}

.mobile-guide-hero .docs-button:not(.secondary) {
    background: var(--guide-accent);
    box-shadow: 0 9px 20px color-mix(in srgb, var(--guide-accent) 20%, transparent);
}

.mobile-guide-hero .docs-button:not(.secondary):hover {
    background: color-mix(in srgb, var(--guide-accent), #0b1f35 25%);
}

.mobile-guide-hero .docs-button.secondary:hover {
    background: #e5eeff;
}

.mobile-guide-compatibility {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #415472;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.5;
}

.mobile-guide-compatibility .docs-guide-icon {
    width: 24px;
    height: 24px;
    background: transparent;
    color: var(--guide-accent);
}

.mobile-guide-hero .mobile-guide-install-help {
    margin-top: 12px;
    font-size: .9rem;
}

.mobile-guide-install-help a {
    color: var(--guide-accent);
}

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

.mobile-guide-hero-visual {
    position: relative;
    display: grid;
    isolation: isolate;
    place-items: center;
}

.mobile-guide-hero-visual::before,
.mobile-guide-hero-visual::after {
    position: absolute;
    z-index: -1;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--guide-accent) 27%, transparent);
    border-radius: 50%;
    content: "";
}

.mobile-guide-hero-visual::before {
    width: min(100%, 374px);
    background: radial-gradient(circle, rgb(230 240 255 / 90%), transparent 72%);
}

.mobile-guide-hero-visual::after {
    width: min(83%, 310px);
}

.mobile-guide-phone {
    position: relative;
    width: clamp(176px, 18vw, 214px);
    box-sizing: border-box;
    padding: 7px;
    border: 1px solid #8795b1;
    border-radius: 35px;
    background: #151e33;
    box-shadow: 0 0 0 4px rgb(255 255 255 / 63%), 0 26px 50px rgb(27 52 116 / 31%);
    transform: rotate(6deg);
}

.mobile-guide-phone::after {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 42px;
    height: 9px;
    border-radius: 999px;
    background: #151e33;
    content: "";
    transform: translateX(-50%);
}

.android-guide-page .mobile-guide-phone::after {
    top: 13px;
    width: 7px;
    height: 7px;
}

.mobile-guide-screen {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
}

.mobile-guide-screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* Each fade starts in the gap below the Maker card. */
.mobile-guide-screen::after {
    position: absolute;
    inset: var(--guide-screen-fade-start) 0 var(--guide-screen-fade-bottom, 0px);
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--guide-screen-background) 46%, transparent),
        color-mix(in srgb, var(--guide-screen-background) 63%, transparent) 34%, var(--guide-screen-background) 84%);
    backdrop-filter: grayscale(1);
    mask-image: linear-gradient(to bottom, transparent, black 10%);
    pointer-events: none;
    content: "";
}

@media (max-width: 760px) {
    .mobile-guide-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-guide-nav {
        gap: 0 2px;
        margin-inline: -5px;
    }

    .mobile-guide-nav a {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 6px 5px;
        font-size: .85rem;
    }

    .mobile-guide-hero {
        padding: 36px 0;
    }

    .mobile-guide-hero-inner,
    .mobile-guide-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mobile-guide-hero-inner {
        gap: 28px;
    }

    .mobile-guide-hero-visual {
        padding: 12px 0;
    }
}

@media (max-width: 360px) {
    .mobile-guide-nav {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        column-gap: 16px;
    }
}
