#downloads,
#simulator {
    scroll-margin-top: 100px;
}

.cc-downloads-section {
    padding: 0 8px 32px;
    background: #fff;
}

.cc-downloads-heading h2,
.cc-indoor-section .apple-use-group-head h2 {
    flex: 0 0 120px;
    margin: 0;
    padding-top: 8px;
    color: #111;
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.cc-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.cc-app-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #f5f5f7;
    color: #1d1d1f;
}

.cc-app-card-scout {
    background: #050505;
    color: #f5f5f7;
}

.cc-app-copy {
    padding: 34px 24px 0;
    text-align: center;
}

.cc-app-category {
    margin: 0 0 12px;
    color: #626267;
    font-size: 13px;
    line-height: 1.35;
}

.cc-app-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.cc-app-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.cc-app-intro h3 {
    margin: 0;
    color: inherit;
    font-size: clamp(32px, 3.3vw, 52px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.cc-app-description {
    margin: 16px auto 0;
    max-width: 560px;
    color: #424245;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 500;
    line-height: 1.4;
}

.cc-app-platform {
    margin: 10px 0 0;
    color: #626267;
    font-size: 13px;
    line-height: 1.4;
}

.cc-app-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.cc-app-actions .link-box-explorer {
    font-size: 15px;
}

.cc-app-store-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cc-app-store-link img {
    display: block;
    width: 120px;
    height: 40px;
}

.cc-app-preview {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 28px auto 0;
    overflow: hidden;
    background: #fff;
}

.cc-app-screenshot {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    object-fit: contain;
}

.cc-app-card-rover .cc-app-preview {
    max-width: 860px;
    background: #f5f5f7;
}

.cc-app-card-rover .cc-app-screenshot {
    /* The official image includes white framing above and below the dashboard. */
    clip-path: inset(18% 0);
    margin: -13.5% 0;
}

.cc-app-card-scout .cc-app-preview {
    background: #050505;
}

.cc-app-card-scout .cc-app-category,
.cc-app-card-scout .cc-app-platform {
    color: #b9b9bf;
}

.cc-app-card-scout .cc-app-description {
    color: #e0e0e4;
}

.cc-app-actions .link-box-secondary:hover,
.cc-app-actions .link-box-secondary:focus-visible {
    border-color: #0071e3;
    background: #fff;
    color: #0066cc;
}

.cc-app-card-scout .link-box-secondary {
    border-color: rgba(41, 151, 255, 0.5);
    background: transparent;
    color: #66b5ff;
}

.cc-app-card-scout .link-box-secondary:hover,
.cc-app-card-scout .link-box-secondary:focus-visible {
    border-color: #66b5ff;
    background: rgba(41, 151, 255, 0.12);
    color: #66b5ff;
}

.cc-downloads-section a:focus-visible {
    outline: 3px solid #2997ff;
    outline-offset: 5px;
}

.cc-downloads-note {
    margin: 18px auto 0;
    padding: 0 20px;
    max-width: 900px;
    color: #626267;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 767px) {
    .cc-downloads-section {
        padding: 0 6px 28px;
    }

    .cc-downloads-heading h2,
    .cc-indoor-section .apple-use-group-head h2 {
        flex-basis: 96px;
        font-size: 20px;
    }

    .cc-downloads-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cc-app-copy {
        padding: 28px 18px 0;
    }

    .cc-app-intro h3 {
        font-size: clamp(29px, 7vw, 40px);
    }

    .cc-app-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .cc-app-description {
        font-size: 15px;
    }
}
