/* ============================================
   AJAIA - Client Download Page
   workwithjefrie.com design language.
   Tokens live in css/theme.css; nav + footer
   styles come from css/landing-page.css
   (both loaded before this file).
   Rule: no hard-coded colors in this file.
   ============================================ */

.download-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

/* Header */
.download-header {
    text-align: center;
    margin-bottom: 56px;
}

.logo {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo .brand-mark {
    gap: 4px;
}

.logo .brand-mark::before,
.logo .brand-mark::after {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title {
    font-size: clamp(32px, 4.6vw, 44px);
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.subtitle {
    font-size: 16px;
    color: var(--muted);
    margin: 0 auto 26px;
    max-width: 560px;
    line-height: 1.6;
}

.header-actions {
    margin-top: 20px;
}

.header-dashboard-link {
    padding: 11px 20px;
    font-size: 13.5px;
}

/* Client Access Banner */
.pro-requirement-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    margin-bottom: 40px;
    background: var(--accent-sft);
    border: 1px solid var(--accent-brd);
    border-left: 3px solid var(--accent);
    border-radius: 0 14px 14px 0;
}

.pro-requirement-banner .banner-icon {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 3px;
    flex-shrink: 0;
}

.pro-requirement-banner .banner-content {
    flex: 1;
}

.pro-requirement-banner .banner-content h3 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-ink);
    margin-bottom: 6px;
}

.pro-requirement-banner .banner-content p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

.pro-requirement-banner .banner-content .trial-info {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.pro-requirement-banner .banner-btn {
    flex-shrink: 0;
}

/* Platform Cards */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 72px;
}

.platform-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.platform-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-str);
}

.platform-card-disabled {
    opacity: 0.65;
}

.platform-card-disabled:hover {
    transform: none;
    border-color: var(--line);
}

.platform-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--accent);
    margin: 0 auto 20px;
}

.platform-card-disabled .platform-icon {
    background: var(--line-str);
}

.platform-card h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.platform-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.version,
.size {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 6px;
}

.download-btn {
    width: 100%;
    margin: 22px 0 18px;
    padding: 14px 26px;
    font-size: 15px;
}

.download-btn-disabled {
    width: 100%;
    padding: 14px 26px;
    margin: 22px 0 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--faint);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--warn-sft);
    border-radius: 5px;
    color: var(--warn);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 14px 0;
}

.coming-soon-text {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 12px 0 0;
    padding: 0 12px;
}

.coming-soon-small {
    display: inline-block;
    padding: 3px 9px;
    background: var(--warn-sft);
    border-radius: 5px;
    color: var(--warn);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 8px;
    vertical-align: middle;
}

.requirement-card-disabled {
    opacity: 0.65;
}

.installer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.option-link {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-ink);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background 0.2s var(--ease);
}

.option-link:hover {
    background: var(--accent-sft);
}

/* Dashboard Section */
.dashboard-section {
    margin: 0 0 72px;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.dashboard-icon {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 3px;
    flex-shrink: 0;
}

.dashboard-content {
    flex: 1;
}

.dashboard-content h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.dashboard-content p {
    font-size: 15px;
    color: var(--ink-soft);
    margin-bottom: 22px;
    line-height: 1.6;
    max-width: 560px;
}

/* Installation Guide */
.installation-section {
    margin-bottom: 72px;
}

.download-container .section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin: 0 auto 36px;
    max-width: none;
}

.installation-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--surface);
    border: 1.5px solid var(--line-str);
    border-radius: 8px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.tab-btn.active {
    background: var(--accent-sft);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.tab-content {
    display: none;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.tab-content.active {
    display: block;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--accent-sft);
    color: var(--accent-ink);
    border: 1px solid var(--accent-brd);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
}

.step-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.step-text p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.step-text code {
    display: inline-block;
    padding: 2px 8px;
    margin: 4px 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent-ink);
}

/* System Requirements */
.requirements-section {
    margin-bottom: 72px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.requirement-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.requirement-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.requirement-card li {
    padding: 7px 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.requirement-card li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--ok);
    flex-shrink: 0;
    margin-top: 5px;
}

.requirement-card-disabled li::before {
    background: var(--line-str);
}

/* Release Notes */
.release-notes {
    margin-bottom: 72px;
}

.notes-card {
    padding: 8px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.release-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.release-item:last-child {
    border-bottom: none;
}

.release-item::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 6px;
}

.release-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.release-item p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Help Section */
.help-section {
    text-align: center;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.help-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 16, 23, 0.55); /* scrim over --ink, per shadow convention */
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -30px rgba(13, 16, 23, 0.35);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.close-modal {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}

.close-modal:hover {
    color: var(--ink);
}

.download-progress {
    text-align: center;
    margin-bottom: 24px;
}

.progress-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--accent-sft);
    border: 1px solid var(--accent-brd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ajaia-progress-pulse 2s infinite;
}

.progress-circle::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent);
}

@keyframes ajaia-progress-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.progress-text {
    font-size: 15px;
    color: var(--muted);
}

.download-info {
    text-align: center;
}

.download-info p strong {
    color: var(--ink);
}

.text-secondary {
    color: var(--muted);
    font-size: 14px;
}

.download-info a {
    color: var(--accent-ink);
    text-decoration: none;
}

.download-info a:hover {
    text-decoration: underline;
}

.text-info {
    color: var(--accent-ink);
    font-size: 12px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .download-container {
        padding: 32px 20px 64px;
    }

    .title {
        font-size: 28px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .installation-tabs {
        flex-direction: column;
    }

    .help-links {
        flex-direction: column;
    }

    .pro-requirement-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .pro-requirement-banner .banner-icon {
        margin: 0 auto;
    }

    .pro-requirement-banner .banner-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }
}
