/* ===== APP PAGE SPECIFIC STYLES ===== */

.app-page {
    padding-top: 0;
}

/* App Hero Banner */
.app-hero {
    min-height: 560px;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    padding: 6rem 8%;
    position: relative;
    overflow: hidden;
}

.app-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 20, 40, 1) 0%,
            rgba(10, 20, 40, 0.6) 50%,
            rgba(10, 20, 40, 0.2) 100%);
    z-index: 1;
}

.app-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.app-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    /* da --primary (#3b82f6) a più chiaro per contrasto WCAG AA */
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.app-hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #fff;
    animation: fadeInUp 0.8s ease forwards;
}

.app-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.15s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Content Sections */
.content-section {
    padding: 3.5rem 8%;
    position: relative;
    z-index: 2;
}

.content-section.alt-bg {
    background: var(--bg-lighter);
}

.content-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.content-inner.center {
    text-align: center;
}

/* Section heading sizes – consistent across all app pages */
.content-section h2,
.hub-intro h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
}

/* Split Layout */
.split {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 1.5rem;
    color: #fff;
}

.split-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* App Screenshot Placeholders */
.app-screenshot-placeholder {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.3s, background 0.3s;
}

.app-screenshot-placeholder:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
}

.app-screenshot-placeholder.small {
    width: 220px;
    height: 440px;
    border-radius: 2rem;
}

/* Actual App Screenshots */
.app-screenshot {
    width: 280px;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-screenshot:hover {
    transform: translateY(-5px);
}

.app-screenshot.small {
    width: 220px;
    border-radius: 1.5rem;
}

.app-screenshot.horizontal {
    width: 440px;
    max-width: 100%;
}

.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-icon-big {
    font-size: 3.5rem;
    flex-shrink: 0;
    width: 5rem;
    text-align: center;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.feature-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Audience Cards */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.aud-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.audience-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.audience-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 7rem 8%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-top: 1px solid var(--glass-border);
    z-index: 2;
    position: relative;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 6%;
    }
}

.legal-links {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--primary);
}

.legal-links span {
    color: var(--glass-border);
}

/* ── Pricing Shared Styles ── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
}

.free-card {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05));
}

.premium-card {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.06));
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: "💎 PREMIUM";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}

.token-pack-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.token-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 1rem;
}

.pricing-card>p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 900px) {
    .app-hero-content h1 {
        font-size: 2.5rem;
    }

    .split {
        flex-direction: column;
        gap: 3rem;
    }

    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .app-screenshot-placeholder {
        width: 220px;
        height: 440px;
    }

    .app-screenshot-placeholder.small {
        width: 180px;
        height: 360px;
    }

    .app-screenshot {
        width: 220px;
    }

    .app-screenshot.small {
        width: 180px;
    }

    .app-screenshot.horizontal {
        width: 320px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}


/* -- Mobile Typography - App Pages -- */
@media (max-width: 768px) {
    .app-hero-content h1 {
        font-size: clamp(1.7rem, 6vw, 2.6rem) !important;
        line-height: 1.2;
    }

    .app-hero {
        padding: 4rem 5% 3rem !important;
        min-height: 50vh;
    }

    .split-text h2 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .content-section {
        padding: 3.5rem 5%;
    }

    .dosing-box {
        padding: 2rem 1.5rem;
    }

    .dosing-box h3 {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    }

    .why-item h4 {
        font-size: 1rem;
    }

    .audience-card h3,
    .hub-card h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .pricing-card h3 {
        font-size: 1.2rem;
    }

    .pricing-price {
        font-size: 2rem;
    }
}
/* Global Article Reading Default */
.article-reading { max-width: 70% !important; margin: 8rem auto 6rem !important; }
