/*
 * Delta Credit Cooperative – Download App page v30.5
 * This page intentionally reuses the same .dcc-brand and .dcc-brand-mark
 * components from index.php. Do not add logo-specific overrides here.
 */
.app-download-page {
    background: #f7faff;
}

.app-download-top-shell {
    background:
        radial-gradient(circle at 82% 16%, rgba(125, 190, 255, .38), transparent 24%),
        radial-gradient(circle at 16% 66%, rgba(77, 156, 255, .22), transparent 34%),
        linear-gradient(135deg, #06266f 0%, #0a4fd8 58%, #2185f9 100%);
}

.app-download-hero-wrap {
    padding-bottom: 6.3rem;
}

.app-download-media {
    min-height: 510px;
}

.app-download-media > img {
    object-position: center;
}

.app-install-status {
    display: inline-flex;
    align-items: center;
    gap: .62rem;
    max-width: 620px;
    margin-top: .2rem;
    padding: .83rem .96rem;
    color: rgba(255,255,255,.94);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.42;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 16px;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(10px);
}

.app-install-status i {
    color: #c2e5ff;
    font-size: 1.15rem;
}

.app-download-actions {
    margin-top: 1.15rem;
}

.official-apk-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 620px;
    margin-top: 1rem;
    padding: .8rem .9rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 17px;
    background: rgba(4, 30, 95, .28);
}

.official-apk-card > i {
    color: #d1efff;
    font-size: 1.45rem;
}

.official-apk-card span {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.official-apk-card strong { color: #fff; font-size: .76rem; }
.official-apk-card small { color: rgba(255,255,255,.72); font-size: .68rem; }
.official-apk-card .btn { flex: 0 0 auto; color: #073b9f; font-weight: 800; border-radius: 12px; }

.app-why-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eff5ff 100%);
}

.download-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.download-benefit-card {
    min-height: 252px;
    padding: 1.42rem;
    border: 1px solid var(--dcc-line);
    border-radius: 23px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 13px 32px rgba(14,66,156,.07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.download-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(14,66,156,.14);
}

.download-benefit-card h3 {
    color: var(--dcc-ink);
    font-size: 1.04rem;
    font-weight: 800;
}

.download-benefit-card p {
    color: var(--dcc-slate);
    font-size: .84rem;
    line-height: 1.58;
    margin: 0;
}

.app-install-guide-section {
    background: #fff;
}

.pwa-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.pwa-guide-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--dcc-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(14,66,156,.09);
}

.pwa-guide-card::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    top: -82px;
    right: -74px;
    border-radius: 50%;
    pointer-events: none;
}

.android-guide::after { background: rgba(19, 137, 73, .08); }
.ios-guide::after { background: rgba(10,82,216,.09); }

.guide-card-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .82rem;
    margin-bottom: 1.35rem;
}

.guide-platform-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 19px;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

.android-guide .guide-platform-icon { color: #148044; background: #e8f8ef; }
.ios-guide .guide-platform-icon { color: #102c69; background: #edf3ff; }

.guide-kicker {
    display: block;
    color: var(--dcc-blue-700);
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-card-head h3 {
    margin: .18rem 0 0;
    color: var(--dcc-ink);
    font-size: 1.18rem;
    font-weight: 800;
}

.guide-steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
    padding: .82rem;
    border: 1px solid rgba(19,79,200,.10);
    border-radius: 16px;
    background: rgba(248,251,255,.82);
}

.guide-steps li > span {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 11px;
    flex: 0 0 auto;
    color: #fff;
    background: var(--dcc-blue-700);
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    font-weight: 700;
}

.android-guide .guide-steps li > span { background: #168146; }
.ios-guide .guide-steps li > span { background: #123c92; }

.guide-steps p {
    margin: 0;
    color: var(--dcc-slate);
    font-size: .8rem;
    line-height: 1.5;
}

.guide-steps strong { color: var(--dcc-ink); }

.app-device-section {
    background: linear-gradient(135deg, #f1f6ff, #fff);
}

.app-secondary-button {
    color: #0b4fd8;
    border-color: rgba(10,82,216,.22);
    background: rgba(255,255,255,.78);
}

.app-secondary-button:hover {
    color: #073caa;
    background: #fff;
}

.app-safe-section {
    background: #e9f2ff;
}

/* Stable mobile behavior: exactly the same brand dimensions as index.php. */
@media (max-width: 1199.98px) {
    .download-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .app-download-hero-wrap { padding-bottom: 5rem; }
    .app-download-media { min-height: 430px; }
}

@media (max-width: 767.98px) {
    .app-download-hero-wrap { padding: 1.5rem 0 4.35rem; }
    .app-download-media { min-height: 315px; border-radius: 23px; }
    .download-benefit-grid, .pwa-guide-grid { grid-template-columns: 1fr; }
    .download-benefit-card { min-height: auto; }
    .official-apk-card { align-items: flex-start; flex-wrap: wrap; }
    .official-apk-card .btn { width: 100%; }
}
