/* Downloads page */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body.downloads-page-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #07080c;
    color: #f4f5f7;
    padding: 0;
    min-height: 100vh;
    overflow-x: clip;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.downloads-page-body .downloads-page {
    position: relative;
    max-width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 28px) clamp(40px, 5vw, 56px);
    box-sizing: border-box;
}

body.downloads-page-body #headerContainer {
    width: 100%;
}

.downloads-hero {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    padding: clamp(22px, 4vw, 32px) 0 0;
}

.downloads-hero-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 730;
    letter-spacing: -0.045em;
    color: #fff;
    line-height: 1;
}

.downloads-hero-lead {
    margin: 10px 0 0;
    max-width: 40rem;
    font-size: 16px;
    line-height: 1.45;
    color: #a0a7b2;
}

.downloads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.downloads-filters[hidden] {
    display: none !important;
}

.downloads-filter {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #a0a7b2;
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.downloads-filter.is-on {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.downloads-loading {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.downloads-loading[hidden],
.downloads-list[hidden],
.downloads-empty[hidden],
.downloads-filter-empty[hidden] {
    display: none !important;
}

.downloads-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #3ddc6a;
    border-radius: 50%;
    animation: downloads-spin 0.7s linear infinite;
}

@keyframes downloads-spin {
    to {
        transform: rotate(360deg);
    }
}

.downloads-empty,
.downloads-filter-empty {
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    padding: 28px 16px;
}

.downloads-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dl-product {
    scroll-margin-top: 88px;
}

.dl-product.is-filtered-out {
    display: none;
}

.dl-featured,
.dl-logo {
    grid-column: 1 / -1;
    display: grid;
    background: #12151c;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    overflow: hidden;
}

.dl-featured {
    grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
    min-height: 280px;
}

.dl-featured.dl-no-media {
    grid-template-columns: minmax(0, 1fr);
}

.dl-logo {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.dl-copy {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dl-logo .dl-copy {
    padding: 22px 24px 20px;
}

.dl-where {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d7ffe4;
    background: rgba(61, 220, 106, 0.16);
    background: color-mix(in srgb, var(--dl-accent, #3ddc6a) 22%, transparent);
    border-radius: 999px;
    padding: 5px 9px;
}

.dl-product-name {
    margin: 12px 0 0;
    font-size: 28px;
    font-weight: 730;
    letter-spacing: -0.035em;
    color: #fff;
    line-height: 1.1;
}

.dl-logo .dl-product-name {
    font-size: 26px;
}

.dl-product-tagline {
    margin: 8px 0 0;
    color: #a0a7b2;
    font-size: 15px;
    line-height: 1.4;
}

.dl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: auto;
    padding-top: 18px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
    background: var(--dl-btn, var(--dl-accent, #3ddc6a));
    color: var(--dl-ink, #06210f);
    font-weight: 750;
    text-decoration: none;
    font-size: 14.5px;
    border: 0;
}

.dl-btn:hover {
    filter: brightness(1.06);
}

.dl-textlink {
    color: #d7dbe2;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.dl-textlink:hover {
    color: #fff;
}

.dl-extra-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 10px 0 0;
}

.dl-extra-links .dl-textlink {
    white-space: nowrap;
    line-height: 1;
}

.dl-shot {
    background: #07110c;
    display: flex;
    align-items: center;
    min-height: 220px;
}

.dl-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    object-position: center;
}

.dl-logo-panel {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}

.dl-logo-panel img {
    width: 100%;
    height: 132px;
    object-fit: contain;
    display: block;
}

.dl-card {
    background: #12141b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    container-type: inline-size;
}

.dl-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dl-dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--dl-accent, #fff);
    flex: none;
}

.dl-card-thumb {
    display: none;
}

.dl-card .dl-product-name {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.dl-card .dl-product-tagline {
    margin: 10px 0 0;
    font-size: 13.5px;
    flex: 1;
}

.dl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.dl-pill {
    font-size: 11.5px;
    font-weight: 680;
    color: #c9ced6;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 3px 8px;
}

.dl-card .dl-actions {
    margin-top: 0;
    padding-top: 0;
}

.dl-card .dl-btn {
    width: 100%;
    background: #fff;
    color: #111;
}

.dl-card .dl-extra-links {
    justify-content: center;
    gap: 6px 8px;
}

.dl-card .dl-textlink {
    color: #727a86;
    font-size: 12px;
    font-weight: 650;
}

@container (max-width: 340px) {
    .dl-card .dl-extra-links {
        gap: 4px 6px;
    }

    .dl-card .dl-extra-links .dl-textlink {
        font-size: 11px;
        letter-spacing: -0.02em;
    }
}

.dl-faqs {
    margin-top: 16px;
}

.dl-faqs > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 680;
}

.dl-faqs > summary::-webkit-details-marker,
.dl-faq-item > summary::-webkit-details-marker {
    display: none;
}

.dl-faqs > summary::after,
.dl-faq-item > summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg) translateY(-2px);
    flex: none;
}

.dl-faqs[open] > summary::after,
.dl-faq-item[open] > summary::after {
    transform: rotate(225deg) translateY(-2px);
}

.dl-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.dl-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.dl-faq-item > summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.dl-faq-item > summary::after {
    margin-top: 5px;
}

.dl-rich {
    margin: 0;
    padding: 0 14px 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

.dl-rich a {
    color: #9ec0ff;
}

.dl-rich code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
}

.dl-rich ul {
    margin: 6px 0 0;
    padding-left: 1.15em;
}

.downloads-page-footer {
    margin-top: clamp(36px, 5vw, 48px);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 800px) {
    .downloads-list {
        grid-template-columns: 1fr;
    }

    .dl-featured,
    .dl-logo {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .dl-shot,
    .dl-logo-panel {
        order: -1;
    }

    .dl-shot {
        height: 200px;
        min-height: 0;
        overflow: hidden;
    }

    .dl-shot img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }

    .dl-logo-panel img {
        height: 112px;
    }

    .dl-copy,
    .dl-logo .dl-copy {
        padding: 18px 16px 16px;
    }

    .dl-product-name {
        font-size: 24px;
    }

    .dl-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dl-btn,
    .dl-card .dl-btn {
        width: 100%;
    }

    .dl-featured .dl-textlink,
    .dl-logo .dl-textlink {
        text-align: center;
    }

    .dl-card .dl-extra-links {
        flex-wrap: nowrap;
        justify-content: center;
    }
}
