/* ========================================
   GUACAMOLE™ PUBLIC DOWNLOAD PAGE (/download/)
   ======================================== */

.dl-page {
    font-family: var(--font-family-base);
    color: var(--text-primary);
    padding-top: calc(var(--navbar-height) + var(--space-12));
}

.dl-page [hidden] {
    display: none !important;
}

.dl-section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-8);
}

/* ---------- Download card ---------- */

.dl-page .dl-hero {
    width: 92%;
    max-width: 760px;
    margin: 0 auto var(--space-16);
    padding: var(--space-12) var(--space-10);
    border-radius: var(--radius-2xl);
    background-color: var(--surface);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    box-sizing: border-box;
}

.dl-hero__logo {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    display: block;
}

.dl-hero__eyebrow {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2);
}

.dl-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.dl-hero__lead {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    max-width: 560px;
    margin: 0 auto var(--space-8);
}

.dl-hero__button.button.primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-10);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-xl);
    color: white !important;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dl-hero__button.button.primary:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

.dl-hero__button.button.primary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.dl-hero__button i {
    font-size: 1.35em;
}

.dl-hero__meta {
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Started state: a compact card (check, title, version line, retry link);
   the steps below take over. */
.dl-hero__started,
.dl-hero__retry {
    display: none;
}

.dl-page .dl-hero.is-started {
    max-width: 560px;
    padding: var(--space-8) var(--space-8);
    margin-bottom: var(--space-12);
}

.dl-hero.is-started .dl-hero__full {
    display: none;
}

.dl-hero.is-started .dl-hero__started {
    display: block;
    animation: dl-started-in var(--transition-smooth) both;
}

.dl-hero.is-started .dl-hero__retry {
    display: block;
    margin-bottom: 0;
}

.dl-hero.is-started .dl-hero__title {
    font-size: var(--font-size-3xl);
    margin-bottom: 0;
}

.dl-hero.is-started .dl-hero__meta {
    margin-top: var(--space-3);
    font-size: var(--font-size-xs);
}

.dl-started-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(34, 197, 94, 0.45);
    background-color: rgba(34, 197, 94, 0.12);
    color: var(--success);
    font-size: var(--font-size-base);
}

.dl-hero__retry {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.dl-hero__retry a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes dl-started-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dl-hero.is-started .dl-hero__started {
        animation: none;
    }
}

.dl-hero__meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dl-hero__meta a:hover {
    color: var(--primary-color);
}

.dl-hero__unavailable {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

.dl-os-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    text-align: left;
    max-width: 560px;
    margin: 0 auto var(--space-6);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-color);
    background-color: var(--primary-overlay-light, rgba(0, 163, 224, 0.08));
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.dl-os-notice i {
    color: var(--primary-color);
    margin-top: 0.2em;
}

/* ---------- Steps ---------- */

.dl-page .dl-steps {
    width: 92%;
    max-width: 860px;
    margin: 0 auto var(--space-16);
}

.dl-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}

.dl-step {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.dl-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    color: white;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.dl-step h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dl-step p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

/* ---------- Help ---------- */

.dl-page .dl-help {
    width: 92%;
    max-width: 760px;
    margin: 0 auto var(--space-12);
    text-align: center;
    color: var(--text-secondary);
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
    .dl-steps__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dl-page .dl-hero {
        padding: var(--space-8) var(--space-5);
    }

    .dl-hero__title {
        font-size: var(--font-size-3xl);
    }

    .dl-hero__button.button.primary {
        width: 100%;
        justify-content: center;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}
