/* =============================================================
 FILE: Download-Page.css
 PURPOSE: Global CSS include for Download Page, shared across multiple pages.

 USED BY:
   - /Download/index.php
   - /index.php
 ============================================================= */
/* Download Page - PolisForge
   Anti-AI Design: Playfair Display, layered shadows, organic shapes, asymmetric grids */

/* ===== Hero ===== */
.download-hero {
    text-align: center;
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 4rem);
}

.download-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.download-hero-lock {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.2);
    box-shadow:
        0 2px 4px rgba(6, 214, 160, 0.04),
        0 8px 16px rgba(6, 214, 160, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.08);
}

.download-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary, #f0ece2);
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem);
}

.download-hero-sub {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Trust Bar ===== */
.download-trust-bar {
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}

.download-trust-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: #06d6a0;
    white-space: nowrap;
}

.trust-item svg {
    flex-shrink: 0;
    color: #06d6a0;
}

/* ===== Download Sections ===== */
.download-section {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.download-section + .download-section {
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}

.download-section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.download-section-header {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.download-platform-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 55% 45% 60% 40% / 48% 55% 45% 52%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.download-security-icon {
    background: rgba(6, 214, 160, 0.06);
    border-color: rgba(6, 214, 160, 0.15);
}

.download-section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary, #f0ece2);
    margin: 0;
    letter-spacing: -0.015em;
}

/* ===== Badges ===== */
.download-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 42% 58% 45% 55% / 52% 48% 52% 48%;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.download-badge-soon {
    background: rgba(254, 228, 64, 0.12);
    color: #fee440;
    border: 1px solid rgba(254, 228, 64, 0.25);
}

.download-badge-ready {
    background: rgba(6, 214, 160, 0.12);
    color: #06d6a0;
    border: 1px solid rgba(6, 214, 160, 0.25);
}

/* ===== Download Body ===== */
.download-body {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.download-info-block h3,
.download-verify-block h3,
.download-sideload-block h3,
.download-ios-steps h3,
.download-ios-note h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: var(--text-primary, #f0ece2);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.download-info-block p,
.download-verify-block p,
.download-sideload-block p,
.download-ios-steps p,
.download-ios-note p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.download-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-reasons li {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.65;
    padding-left: 1.25rem;
    position: relative;
}

.download-reasons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06d6a0;
}

.download-reasons li strong {
    color: var(--text-primary, #f0ece2);
}

/* ===== Steps ===== */
.download-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-steps li {
    counter-increment: step-counter;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.65;
    padding-left: 2.5rem;
    position: relative;
}

.download-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 214, 160, 0.1);
    color: #06d6a0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.download-steps li strong {
    color: var(--text-primary, #f0ece2);
}

.download-steps code {
    font-family: monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: break-all;
}

.download-steps a {
    color: #06d6a0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download-steps a:hover {
    color: #00f5d4;
}

/* ===== iOS Step Content ===== */
.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-content strong {
    color: var(--text-primary, #f0ece2);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.step-content p {
    margin: 0;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.step-content a {
    color: #06d6a0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== Download Action Block ===== */
.download-action-block {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 52% 48% 55% 45% / 45% 52% 48% 55%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    text-align: center;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.06);
}

.download-action-block.download-action-disabled {
    border-radius: 17px 21px 19px 23px;
}

.download-action-icon {
    margin-bottom: 0.75rem;
    color: var(--text-muted, #a8a29e);
}

.download-action-block h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: var(--text-primary, #f0ece2);
    margin: 0 0 0.5rem;
}

.download-action-status {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-muted, #a8a29e);
    margin: 0 0 1rem;
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 350ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.download-btn-disabled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #a8a29e);
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-btn-active {
    background: #06d6a0;
    color: #0a0a0f;
}

.download-btn-active:hover {
    background: #00f5d4;
    transform: translateY(-1px);
}

.download-file-meta {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted, #a8a29e);
    opacity: 0.6;
    margin: 0.75rem 0 0;
}

/* ===== Sideload Note ===== */
.download-sideload-note {
    font-size: clamp(0.8rem, 1.1vw, 0.9rem) !important;
    font-style: normal;
    opacity: 0.7;
    padding: 0.75rem 1rem;
    border-left: 3px solid rgba(6, 214, 160, 0.3);
    background: rgba(6, 214, 160, 0.03);
    margin-top: 0.5rem;
}

/* ===== iOS Note Block ===== */
.download-ios-note {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: rgba(6, 214, 160, 0.03);
    border: 1px solid rgba(6, 214, 160, 0.1);
    border-radius: 14px 18px 17px 21px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 20px 40px rgba(0, 0, 0, 0.05);
}

/* ===== Security Grid ===== */
.download-security-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.security-card {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 14px 18px 17px 21px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.07);
    transition: border-color 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.security-card:hover {
    border-color: rgba(6, 214, 160, 0.2);
}

.security-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    color: var(--text-primary, #f0ece2);
    margin: 0 0 0.5rem;
}

.security-card p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.65;
    margin: 0;
}

.security-card a {
    color: #06d6a0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.security-card a:hover {
    color: #00f5d4;
}

/* ===== Security Footer ===== */
.download-security-footer {
    text-align: center;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}

.download-security-footer p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-muted, #a8a29e);
    margin: 0;
}

.download-security-footer a {
    color: #06d6a0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== Landing Page Download Cards (index.php) ===== */
.download-showcase .download-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 640px;
    margin: 0 auto clamp(1rem, 2vw, 1.5rem);
}

.download-device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 17px 21px 19px 23px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.05),
        0 24px 48px rgba(0, 0, 0, 0.07);
    transition: border-color 350ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
}

.download-device-card:hover {
    border-color: rgba(6, 214, 160, 0.3);
    transform: translateY(-2px);
}

.download-device-icon {
    color: var(--text-muted, #a8a29e);
    margin-bottom: 0.75rem;
}

.download-device-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: var(--text-primary, #f0ece2);
    margin: 0 0 0.5rem;
}

.download-device-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 42% 58% 45% 55% / 52% 48% 52% 48%;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.download-badge-soon {
    background: rgba(254, 228, 64, 0.12);
    color: #fee440;
    border: 1px solid rgba(254, 228, 64, 0.25);
}

.download-badge-ready {
    background: rgba(6, 214, 160, 0.12);
    color: #06d6a0;
    border: 1px solid rgba(6, 214, 160, 0.25);
}

.download-device-desc {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.8rem, 1.1vw, 0.9rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.55;
    margin: 0;
}

.download-trust-note {
    text-align: center;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.8rem, 1.1vw, 0.9rem);
    color: var(--text-muted, #a8a29e);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ===== FAQ Section ===== */
.download-faq-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 14px 18px 17px 21px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.07);
    transition: border-color 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(6, 214, 160, 0.2);
}

.faq-item[open] {
    border-color: rgba(6, 214, 160, 0.15);
}

.faq-item summary {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    color: var(--text-primary, #f0ece2);
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.5rem);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: #06d6a0;
    flex-shrink: 0;
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 clamp(1.25rem, 2.5vw, 1.5rem) clamp(1rem, 2vw, 1.25rem);
}

.faq-answer p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #06d6a0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-answer a:hover {
    color: #00f5d4;
}

/* ===== Explore Section ===== */
.download-explore-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.explore-card {
    display: block;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 17px 21px 19px 23px;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.07);
    transition: border-color 350ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-card:hover {
    border-color: rgba(6, 214, 160, 0.3);
    transform: translateY(-2px);
}

.explore-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    color: var(--text-primary, #f0ece2);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.explore-card p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-muted, #a8a29e);
    line-height: 1.6;
    margin: 0;
}

.explore-card-cta {
    background: rgba(6, 214, 160, 0.04);
    border-color: rgba(6, 214, 160, 0.15);
}

.explore-card-cta:hover {
    border-color: rgba(6, 214, 160, 0.4);
}

.explore-card-cta h3 {
    color: #06d6a0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .download-security-grid {
        grid-template-columns: 1fr;
    }

    .download-showcase .download-cards-row {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .download-explore-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .download-trust-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 320px) {
    .download-hero h1 {
        font-size: 1.5rem;
    }

    .download-hero-sub {
        font-size: 0.9rem;
    }

    .download-hero-lock {
        width: 72px;
        height: 72px;
    }

    .download-section-header h2 {
        font-size: 1.3rem;
    }

    .download-platform-icon {
        width: 48px;
        height: 48px;
    }

    .download-action-block {
        padding: clamp(1rem, 2vw, 1.25rem);
    }

    .download-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.88rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .download-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .download-device-card {
        min-height: 48px;
    }

    .security-card a {
        display: inline-block;
        min-height: 48px;
        line-height: 48px;
    }

    .faq-item summary {
        min-height: 48px;
    }

    .explore-card {
        min-height: 48px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .download-device-card,
    .security-card,
    .download-btn,
    .faq-item,
    .faq-item summary::after,
    .explore-card {
        transition-duration: 0.01ms !important;
    }
}
