/* /downloads — platform chooser grid */

.downloads-hero {
    padding: 80px 0 32px;
    text-align: center;
}

.downloads-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-heading);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.downloads-sub {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.downloads-grid-section {
    padding: 32px 0 96px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px 24px 28px;
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--color-accent-subtle);
    color: var(--color-text);
}

.download-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-heading);
    margin-bottom: 16px;
}

.download-card-icon svg {
    width: 40px;
    height: 40px;
}

.download-card-name {
    color: var(--color-heading);
    font-size: 1.4rem;
    margin: 0 0 16px;
    font-weight: 700;
}

.download-card-screenshot {
    width: 100%;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Phone mockups (portrait) — fill height, not width. */
.download-card--ios .download-card-screenshot img,
.download-card--android .download-card-screenshot img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
}

/* App window mockups (landscape) — fill most of width, less tall. */
.download-card--mac .download-card-screenshot img,
.download-card--windows .download-card-screenshot img {
    width: 92%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.download-card-tagline {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 24px;
    min-height: 1.5em;
    max-width: 340px;
}

.download-card-badge {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.download-card-badge img {
    max-width: 100%;
    height: auto;
}

/* Apple badge (svg) — give it a consistent height */
.download-card--ios .download-card-badge img,
.download-card--mac .download-card-badge img {
    height: 54px;
}

.download-card--android .download-card-badge img {
    height: 60px;
}

.download-card--windows .download-card-badge img {
    width: 200px;
}
