/* Downloads page (owner, 2026-10-22): a hero with the visitor's system and one big button, three steps
   to start, then the four system cards in an even grid (their install steps and requirements unchanged). */

.dlx {
    display: grid;
    gap: 18px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------------------------------------------ hero */

.dlx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 24px;
    padding: 28px 30px;
    border: 1px solid rgba(240, 198, 116, .3);
    border-radius: 22px;
    background:
        radial-gradient(60% 90% at 85% 40%, rgba(240, 160, 60, .18), transparent 70%),
        linear-gradient(180deg, rgba(24, 21, 17, .96), rgba(10, 9, 8, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 44px rgba(0, 0, 0, .35);
}

.dlx-hero:has(.dlx-hero__art) {
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px);
}

.dlx-hero__art {
    width: 170px;
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(240, 140, 40, .3));
}

.dlx-hero__kicker {
    display: inline-block;
    padding: 4px 11px;
    border: 1px solid rgba(240, 198, 116, .45);
    border-radius: 999px;
    color: var(--modern-gold, #f0c674);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
}

.dlx-hero__title {
    margin: 12px 0 10px;
    color: #fff;
    font-size: 50px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.dlx-hero__title span {
    display: block;
    background: linear-gradient(180deg, #ffd86b, #f08a1c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dlx-hero__sub {
    margin: 0;
    max-width: 480px;
    color: rgba(238, 242, 255, .82);
    font-size: 15px;
    line-height: 1.5;
}

/* The download box on the right. */
.dlx-get {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(240, 198, 116, .25);
    border-radius: 16px;
    background: rgba(0, 0, 0, .38);
}

.dlx-get__system {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(238, 242, 255, .6);
    font-size: 12px;
    font-weight: 700;
}

.dlx-get__system b {
    display: block;
    color: #fff;
    font-size: 20px;
}

.dlx-get__button {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f5d58c, #c58c32);
    box-shadow: 0 10px 24px rgba(240, 160, 60, .28);
    color: #1a1208;
    font-size: 17px;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter .15s, transform .15s;
}

.dlx-get__button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.dlx-get__button small {
    color: rgba(26, 18, 8, .7);
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
}

.dlx-get__button.is-off {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    color: rgba(238, 242, 255, .5);
}

.dlx-get__first {
    color: rgba(238, 242, 255, .6);
    font-size: 12px;
    text-align: center;
}

.dlx-get__note {
    margin: 0;
    color: rgba(238, 242, 255, .85);
    font-size: 13px;
    line-height: 1.5;
}

.dlx-get__others {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(238, 242, 255, .5);
    font-size: 12px;
}

.dlx-get__others a {
    color: var(--modern-gold, #f0c674);
    font-weight: 800;
    text-decoration: none;
}

.dlx-get__others a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ three steps */

.dlx-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlx-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(12, 11, 10, .85);
    color: rgba(238, 242, 255, .85);
    font-size: 13px;
    line-height: 1.45;
}

.dlx-steps b {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd86b, #d99a1e);
    color: #1a1208;
    font-size: 16px;
    font-weight: 950;
}

.dlx-steps a {
    color: var(--modern-gold, #f0c674);
    font-weight: 800;
}

/* ------------------------------------------------------------------ system cards: an even 2 x 2 grid */

.dlx .download-platform--primary,
.dlx #platform-android {
    grid-column: auto;
}

.dlx .download-platform {
    scroll-margin-top: 90px;
    border-radius: 16px;
}

.dlx .download-platform--primary .requirements-list {
    grid-template-columns: 1fr;
}

.dlx .download-platform:target {
    border-color: rgba(240, 198, 116, .7);
    box-shadow: 0 0 0 3px rgba(240, 198, 116, .18);
}

/* iOS: no build yet, a slim card across the row with the apple mark of the macOS card. */
.dlx-soon {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    opacity: .85;
}

.dlx-soon > .download-first-run {
    flex: 1 1 320px;
    margin: 0;
}

.download-platform__icon--ios {
    --platform-icon: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M16.4 12.6c0-2.4 2-3.5 2.1-3.6-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1 1-4 2.4-1.7 3-.4 7.3 1.2 9.7.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.8 3.2.8 1.3 0 2.1-1.2 2.9-2.4.9-1.3 1.3-2.7 1.3-2.7s-2.4-1-2.4-4zM14 5.6c.7-.8 1.1-1.9 1-3-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.8-1 2.9 1.1.1 2.2-.6 2.9-1.4z%27/%3E%3C/svg%3E");
}

.dlx-soon__badge {
    padding: 5px 12px;
    border: 1px dashed rgba(240, 198, 116, .6);
    border-radius: 999px;
    color: var(--modern-gold, #f0c674);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 900px) {
    .dlx-hero,
    .dlx-hero:has(.dlx-hero__art) {
        grid-template-columns: 1fr;
    }

    .dlx-hero__art {
        justify-self: center;
        width: 120px;
        height: 120px;
    }

    .dlx-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dlx-hero {
        padding: 20px 16px;
    }

    .dlx-hero__title {
        font-size: 36px;
    }
}

/* "App not installed" help in the Android card (downloads/index.php). */
.download-help {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
    padding-left: 22px;
    color: rgba(238, 242, 255, .85);
    font-size: 13px;
    line-height: 1.45;
}

.download-help + .download-offline-text a {
    color: var(--modern-gold);
}
