/* Download page — clear two-path install */

.page-download .main-content {
    background: var(--paper, #fafbf8);
}

.dl-hero {
    position: relative;
    padding: clamp(2.75rem, 6vw, 3.75rem) 0 clamp(1.75rem, 4vw, 2.25rem);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line, rgba(10, 22, 18, 0.08));
}

.dl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 70% at 85% 0%, rgba(31, 122, 85, 0.12), transparent 55%),
        radial-gradient(ellipse 45% 55% at 5% 100%, rgba(176, 137, 61, 0.1), transparent 50%),
        linear-gradient(165deg, #f4f8f4 0%, #eef5ef 50%, #fafbf8 100%);
}

.dl-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    text-align: center;
    max-width: 40rem;
}

.dl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 122, 85, 0.1);
    color: #1a6b4a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dl-kicker i {
    font-size: 1rem;
}

.dl-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 4.2vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--ink, #0a1612) !important;
}

.dl-lead {
    margin: 0 auto;
    max-width: 28rem;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.7;
    color: var(--muted, #5a6b63) !important;
}

.dl-main {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.dl-wrap {
    width: min(1080px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.dl-paths {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.dl-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.35rem, 3vw, 1.85rem);
    background: #fff;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(10, 22, 18, 0.05);
    min-height: 100%;
}

.dl-path-num {
    position: absolute;
    top: 1.1rem;
    inset-inline-start: 1.1rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink, #0a1612);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

.dl-path-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding-top: 0.35rem;
    flex: 1;
}

.dl-path h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink, #0a1612) !important;
}

.dl-path-body > p {
    margin: 0;
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted, #5a6b63) !important;
}

.dl-btn-apk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding: 1rem 1.6rem;
    min-width: min(100%, 16rem);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--emerald, #1f7a55), var(--emerald-deep, #145c3f));
    color: #fff !important;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(31, 122, 85, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dl-btn-apk:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(31, 122, 85, 0.34);
    color: #fff !important;
}

.dl-btn-apk:active {
    transform: translateY(0);
}

.dl-btn-apk i {
    font-size: 1.1rem;
}

.dl-reqs {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    max-width: 22rem;
}

.dl-reqs li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--muted, #5a6b63) !important;
}

.dl-reqs i {
    margin-top: 0.15rem;
    color: var(--emerald, #1f7a55);
    flex-shrink: 0;
}

.dl-or {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.dl-or span {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--panel, #f3f6f2);
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    color: var(--muted, #5a6b63);
    font-size: 0.85rem;
    font-weight: 800;
}

.dl-qr {
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.dl-qr img {
    width: min(220px, 72vw);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.12));
    box-shadow: 0 12px 36px rgba(10, 22, 18, 0.08);
}

.dl-qr figcaption {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted, #5a6b63) !important;
}

/* Desktop / Windows: much larger QR for easy phone scanning */
@media (min-width: 900px) {
    .dl-qr img {
        width: 320px;
        padding: 1.1rem;
        border-radius: 22px;
        box-shadow: 0 22px 56px rgba(10, 22, 18, 0.1);
    }

    .dl-path-qr .dl-path-body > p {
        max-width: 18rem;
    }
}

@media (min-width: 1200px) {
    .dl-qr img {
        width: 360px;
    }
}

.dl-steps {
    margin-top: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(31, 122, 85, 0.06), transparent 55%),
        #fff;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    border-radius: 22px;
}

.dl-steps h2 {
    margin: 0 0 1.15rem;
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 800;
    color: var(--ink, #0a1612) !important;
}

.dl-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dl-steps-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--ink-soft, #14241e) !important;
}

.dl-step-i {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(31, 122, 85, 0.12);
    color: var(--emerald-deep, #145c3f);
    font-weight: 800;
    font-size: 0.9rem;
}

.dl-ios {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.75rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted, #5a6b63) !important;
}

.dl-ios i {
    font-size: 1.1rem;
    opacity: 0.85;
}

@media (max-width: 899px) {
    .dl-paths {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .dl-or {
        padding: 0.15rem 0;
    }

    .dl-or span {
        width: auto;
        height: auto;
        padding: 0.35rem 1rem;
        border-radius: 999px;
    }

    .dl-path-num {
        top: 1rem;
        inset-inline-start: 1rem;
    }

    .dl-steps-list {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .dl-steps-list li {
        flex-direction: row;
        align-items: flex-start;
        text-align: start;
        gap: 0.85rem;
        padding: 0.35rem 0;
    }

    .dl-step-i {
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-btn-apk {
        transition: none;
    }

    .dl-btn-apk:hover {
        transform: none;
    }
}

html[dir="ltr"] .dl-path-num {
    left: 1.1rem;
    right: auto;
}

html[dir="rtl"] .dl-path-num {
    right: 1.1rem;
    left: auto;
}
