/* =========================================================
   DOWNLOAD PAGE
   Classes are prefixed with dl- to avoid clashing with Bootstrap
   (.row, .lead, .btn) and the home page download section (.qr-card).
   ========================================================= */

.dl-page {
    --dl-brand: #003b8e;
    --dl-brand-600: #0a4aa8;
    --dl-ink: #0f1f3d;
    --dl-muted: #667085;
    --dl-bg: #f7f9fd;
    --dl-line: #e4eaf5;
    --dl-tint: #e8effb;
    --dl-shadow: 0 10px 30px rgba(0, 59, 142, .08);
    background: var(--dl-bg);
    color: var(--dl-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.dl-page * { margin: 0; }

.dl-page a { color: inherit; text-decoration: none; }

.dl-page :focus-visible {
    outline: 3px solid #9db8ea;
    outline-offset: 2px;
    border-radius: 8px;
}

.dl-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.dl-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dl-brand);
}

.dl-page a.dl-text {
    color: var(--dl-brand);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 59, 142, .3);
}


/* =========================
   HERO
========================= */
.dl-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 40px; /* clears the absolute navbar, same as other pages */
    background:
        radial-gradient(900px 480px at 85% -8%, #dbe7fb 0%, transparent 70%),
        radial-gradient(700px 380px at -8% 12%, #e6eefc 0%, transparent 70%);
}

.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.dl-hero h1 {
    font-size: clamp(42px, 5.6vw, 70px);
    line-height: 1.03;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 14px 0 22px;
}

.dl-hero h1 em { font-style: normal; color: var(--dl-brand); }

.dl-lead { font-size: 18px; color: var(--dl-muted); max-width: 500px; }

@media (max-width: 991px) {
    .dl-hero { padding: 120px 0 32px; }
    .dl-grid { grid-template-columns: 1fr; gap: 24px; }
    .dl-copy { text-align: center; }
    .dl-lead { margin: 0 auto; }
    .dl-stores { justify-content: center; }
}

@media (max-width: 575px) {
    .dl-wrap { padding: 0 16px; }
    .dl-hero { padding: 110px 0 24px; }
    .dl-hero h1 { font-size: clamp(34px, 10vw, 42px); margin: 12px 0 16px; }
    .dl-lead { font-size: 16px; }
}


/* store buttons */
.dl-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.dl-page a.dl-store {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0b1220;
    color: #fff;
    border-radius: 14px;
    padding: 11px 22px 11px 16px;
    min-width: 196px;
    box-shadow: 0 12px 28px rgba(11, 18, 32, .28);
    transition: transform .2s, box-shadow .2s;
}

.dl-page a.dl-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(11, 18, 32, .34);
}

.dl-store-icon { width: 32px; height: 32px; display: grid; place-items: center; }
.dl-store-icon svg { width: 100%; height: 100%; }

.dl-store-text small { display: block; font-size: 11px; letter-spacing: .08em; opacity: .8; line-height: 1.2; }
.dl-store-text b { display: block; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; font-weight: 600; }

.dl-store-rec {
    display: none;
    position: absolute;
    top: -11px;
    right: 12px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--dl-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 59, 142, .35);
}

.dl-store.is-rec .dl-store-rec { display: block; }
.dl-store.is-rec { outline: 2px solid var(--dl-brand); outline-offset: 3px; }

/* small phones: keep both store buttons on one line as two equal halves,
   with the icon and text scaling to the screen so they fit down to 320px */
@media (max-width: 575px) {
    .dl-stores {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(8px, 2.6vw, 12px);
        margin-top: 26px;
    }

    .dl-page a.dl-store {
        min-width: 0;
        justify-content: flex-start;
        gap: clamp(6px, 2vw, 10px);
        padding: clamp(9px, 2.8vw, 12px) clamp(8px, 2.8vw, 14px);
        border-radius: 12px;
        box-shadow: 0 10px 22px rgba(11, 18, 32, .26);
    }

    .dl-store-icon { width: clamp(20px, 6.4vw, 28px); height: clamp(20px, 6.4vw, 28px); flex: none; }

    .dl-store-text { text-align: left; min-width: 0; }
    .dl-store-text small { font-size: clamp(8px, 2.5vw, 10px); letter-spacing: .04em; white-space: nowrap; }
    .dl-store-text b { font-size: clamp(14px, 4.5vw, 18px); white-space: nowrap; }

    /* centre the badge over the button so it never runs past a narrow edge */
    .dl-store-rec { top: -10px; right: 50%; transform: translateX(50%); font-size: 10px; padding: 2px 9px; white-space: nowrap; }
}


/* QR code: only useful on a computer, so hidden on phones and tablets */
.dl-qr {
    display: none;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--dl-line);
    border-radius: 18px;
    padding: 14px 20px 14px 14px;
    box-shadow: var(--dl-shadow);
    width: fit-content;
}

@media (hover: hover) and (min-width: 992px) {
    .dl-qr { display: flex; }
}

.dl-qr img { width: 112px; height: 112px; border-radius: 6px; }
.dl-qr b { display: block; font-size: 15px; }
.dl-qr span { display: block; font-size: 13.5px; color: var(--dl-muted); max-width: 170px; line-height: 1.5; margin-top: 3px; }


/* =========================
   PHONE STAGE
========================= */
/* the stage is drawn at 520x650 and scaled with --s; the wrap keeps the
   unscaled box from widening the grid; .dl-hero clips any overflow */
.dl-stage-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.dl-stage {
    --s: 1;
    position: relative;
    width: 520px;
    height: 650px;
    transform: scale(var(--s));
    transform-origin: top center;
    margin-bottom: calc((var(--s) - 1) * 650px);
}

@media (min-width: 992px) and (max-width: 1199px) { .dl-stage { --s: .85; } }
@media (max-width: 991px) { .dl-stage { --s: .9; } }
@media (max-width: 767px) { .dl-stage { --s: .78; } }
@media (max-width: 575px) { .dl-stage { --s: .64; } }
@media (max-width: 374px) { .dl-stage { --s: .54; } }

.dl-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: 440px;
    height: 440px;
    margin: -220px 0 0 -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 111, 214, .26), transparent 68%);
    filter: blur(10px);
}

.dl-phone {
    position: absolute;
    width: 292px;
    height: 600px;
    border-radius: 48px;
    background: #0b1220;
    padding: 10px;
    box-shadow:
        0 60px 80px -30px rgba(0, 30, 90, .5),
        0 0 0 1.5px #24324f inset,
        0 0 0 1px rgba(255, 255, 255, .06);
}

.dl-phone.front { left: 150px; top: 30px; z-index: 2; animation: dl-bob 7s ease-in-out infinite; }

.dl-phone.back {
    left: 8px;
    top: 92px;
    z-index: 1;
    transform: rotate(-7deg) scale(.88);
    transform-origin: center;
    filter: saturate(.95);
    animation: dl-bob-back 8s ease-in-out infinite;
}

@keyframes dl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dl-bob-back {
    0%, 100% { transform: rotate(-7deg) scale(.88) translateY(0); }
    50% { transform: rotate(-7deg) scale(.88) translateY(8px); }
}

.dl-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    border-radius: 14px;
    background: #0b1220;
    z-index: 6;
}

.dl-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 39px;
    overflow: hidden;
    background: #f5f8fe;
    color: var(--dl-ink);
}

.dl-side-btn {
    position: absolute;
    right: -3px;
    top: 130px;
    width: 3px;
    height: 60px;
    border-radius: 0 3px 3px 0;
    background: #24324f;
}


/* app screenshot inside the phone */
.dl-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}


/* floating notifications */
.dl-float {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 18px 40px rgba(0, 30, 90, .2);
    font-size: 12.5px;
    border: 1px solid var(--dl-line);
}

.dl-float b { display: block; font-size: 13px; }
.dl-float small { color: var(--dl-muted); font-size: 11.5px; }

.dl-float-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; }
.dl-float-icon.warn { background: #fff4e5; color: #d97706; }
.dl-float-icon svg { width: 16px; height: 16px; }

.dl-float.f1 { right: -6px; top: 150px; animation: dl-bob-float 6s ease-in-out infinite; }
.dl-float.f2 { left: -10px; bottom: 70px; animation: dl-bob-float 7s ease-in-out infinite reverse; }

@keyframes dl-bob-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }


/* =========================
   SECTIONS
========================= */
.dl-sec { padding: 92px 0; }
.dl-sec.white { background: #fff; }

.dl-sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.dl-sec-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 12px 0 14px; }

@media (max-width: 767px) {
    .dl-sec { padding: 64px 0; }
    .dl-sec-head { margin-bottom: 36px; }
}

@media (max-width: 575px) {
    .dl-sec { padding: 52px 0; }
    .dl-sec-head h2 { font-size: 28px; }
}


/* steps */
.dl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }

.dl-steps::before {
    content: "";
    position: absolute;
    left: 16.6%;
    right: 16.6%;
    top: 30px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #bcd0f0 0 8px, transparent 8px 16px);
}

.dl-step { position: relative; text-align: center; padding: 0 10px; }

.dl-step-n {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--dl-brand);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 59, 142, .3);
    border: 6px solid var(--dl-bg);
}

.dl-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.dl-step p { color: var(--dl-muted); font-size: 15.5px; max-width: 280px; margin: 0 auto; }

@media (max-width: 767px) {
    .dl-steps { grid-template-columns: 1fr; gap: 30px; }
    .dl-steps::before { display: none; }
    .dl-step-n { width: 52px; height: 52px; font-size: 20px; margin-bottom: 14px; }
}


/* FAQ */
.dl-faq { max-width: 800px; margin: 0 auto; }

.dl-qa { background: #fff; border: 1px solid var(--dl-line); border-radius: 16px; margin-bottom: 12px; transition: .2s; }
.dl-qa[open] { box-shadow: var(--dl-shadow); border-color: #c5d5f2; }

.dl-qa summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.dl-qa summary::-webkit-details-marker { display: none; }

.dl-qa summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--dl-brand);
    border-bottom: 2px solid var(--dl-brand);
    transform: rotate(45deg);
    transition: .2s;
}

.dl-qa[open] summary::after { transform: rotate(-135deg); }

.dl-qa p { padding: 0 24px 22px; color: var(--dl-muted); font-size: 16px; line-height: 1.7; }

@media (max-width: 575px) {
    .dl-qa summary { padding: 16px 18px; font-size: 15.5px; }
    .dl-qa p { padding: 0 18px 18px; font-size: 15px; }
}


/* reveal on scroll (only once JS has marked the page) */
.dl-page.dl-js .dl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.dl-page.dl-js .dl-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .dl-page.dl-js .dl-reveal { opacity: 1; transform: none; transition: none; }
    .dl-phone, .dl-float { animation: none !important; }
}
