/**
 * Homepage premium theme — derived from the pre-footer CTA sample block.
 * Applies to hero, features, stats, steps, testimonials, FAQ only.
 * Does NOT override .cta-section / .jn-premium-cta (sample section stays as-is).
 */

#page-home {
    --hp-green: #0A8F1F;
    --hp-green-light: #ECFDF5;
    --hp-navy: #061A3A;
    --hp-muted: #64748B;
    --hp-border: #E5E7EB;
    --hp-surface: #FFFFFF;
    --hp-panel: #F3F4F6;
    --hp-page-bg: #F8FAFC;
    --hp-section-y: 64px;
    --hp-section-header: 36px;
}

/* ===== Homepage section rhythm ===== */
#page-home .section:not(.cta-section):not(.hp-steps-section) {
    padding: var(--hp-section-y) 0;
}

#page-home .section-dark:not(.cta-section):not(.hp-trusted-strip):not(.hp-steps-section) {
    padding: var(--hp-section-y) 0;
}

#page-home .section:not(.cta-section) + .section:not(.cta-section),
#page-home .section:not(.cta-section) + .section-dark:not(.cta-section):not(.hp-trusted-strip),
#page-home .section-dark:not(.hp-trusted-strip) + .section:not(.cta-section),
#page-home .section-dark:not(.hp-trusted-strip) + .section-dark:not(.cta-section):not(.hp-trusted-strip),
#page-home .hp-trusted-strip + .section:not(.cta-section),
#page-home .section:not(.cta-section) + .hp-stats-steps-band,
#page-home .hp-stats-steps-band + .section:not(.cta-section),
#page-home .section-dark:not(.hp-trusted-strip) + .hp-stats-steps-band,
#page-home .hp-stats-steps-band + .section-dark:not(.cta-section),
#page-home .section-dark:not(.cta-section) + .cta-section,
#page-home .section:not(.cta-section) + .cta-section {
    padding-top: 0;
}

#page-home .section-header {
    margin-bottom: var(--hp-section-header);
}

#page-home .hp-trusted-strip {
    padding: 28px 0;
}

#page-home .hp-trusted-strip .hp-trusted-label {
    text-align: center;
    color: var(--hp-muted);
    font-size: 0.85rem;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

#page-home .cta-section {
    padding: var(--hp-section-y) 0;
}

#page-home .hero {
    min-height: auto;
    padding: 20px 0 28px;
}

#page-home .hero-content p {
    margin-bottom: 24px;
}

#page-home .hero-buttons {
    margin-bottom: 28px;
}

#page-home .hero-stats {
    gap: 16px;
    margin-top: 0;
}

#page-home .features-grid,
#page-home .steps-grid,
#page-home .testimonials-grid {
    gap: 18px;
}

#page-home .feature-card {
    padding: 28px;
}

#page-home .hero {
    background: var(--hp-page-bg);
}

#page-home .hero-content h1 {
    color: var(--hp-navy);
    letter-spacing: -0.02em;
}

#page-home .hero-content h1 .highlight {
    color: var(--hp-green);
}

#page-home .hero-content p {
    color: var(--hp-muted);
}

#page-home .btn-primary {
    background: linear-gradient(180deg, #0A9A1C 0%, #078A16 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(7, 138, 22, 0.28);
    border-radius: 16px;
}

#page-home .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(7, 138, 22, 0.38);
}

#page-home .btn-secondary {
    color: var(--hp-navy);
    border-color: var(--hp-border);
    background: var(--hp-surface);
    border-radius: 16px;
}

#page-home .hero-stats {
    gap: 20px;
}

#page-home .hero-stats .stat-item {
    padding: 16px 20px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(6, 26, 58, 0.04);
}

#page-home .hero-stats .stat-value {
    color: var(--hp-navy);
    font-weight: 800;
}

#page-home .hero-stats .stat-item p:not(.stat-value) {
    color: var(--hp-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

#page-home .section-dark:not(.cta-section) {
    background: var(--hp-panel);
}

#page-home .section:not(.cta-section) {
    background: var(--hp-page-bg);
}

#page-home .section-header h2 {
    color: var(--hp-navy);
    letter-spacing: -0.02em;
}

#page-home .section-header p {
    color: var(--hp-muted);
}

#page-home .section-badge {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid rgba(10, 143, 31, 0.25);
    color: #065F1A;
}

#page-home .section-badge i {
    color: var(--hp-green);
}

/* Feature cards — sample white card style */
#page-home .feature-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(6, 26, 58, 0.04);
}

#page-home .feature-card::before {
    background: var(--hp-green);
}

#page-home .feature-card:hover {
    border-color: rgba(10, 143, 31, 0.35);
    box-shadow: 0 12px 32px rgba(6, 26, 58, 0.08);
    transform: translateY(-4px);
}

#page-home .feature-card h3 {
    color: var(--hp-navy);
}

#page-home .feature-icon.green,
#page-home .feature-icon.cyan {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid rgba(10, 143, 31, 0.12);
}

#page-home .feature-icon.green i,
#page-home .feature-icon.cyan i {
    color: var(--hp-green);
}

#page-home .feature-icon.purple,
#page-home .feature-icon.blue,
#page-home .feature-icon.orange,
#page-home .feature-icon.pink {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid rgba(10, 143, 31, 0.1);
}

#page-home .feature-icon.purple i,
#page-home .feature-icon.blue i,
#page-home .feature-icon.orange i,
#page-home .feature-icon.pink i {
    color: var(--hp-green);
}

/* ===== Stats + How It Works unified band ===== */
#page-home .hp-stats-steps-band {
    background: var(--hp-panel);
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
}

#page-home .hp-stats-steps-band .counter-section {
    padding: 0 0 20px;
    margin: 0;
    border: none;
    background: transparent;
}

#page-home .hp-stats-steps-band .counter-section .container {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 24px;
    max-width: 1200px;
}

#page-home .hp-stats-steps-band .counter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    text-align: center;
}

#page-home .hp-stats-steps-band .counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 20px 16px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-align: center;
}

#page-home .hp-stats-steps-band .counter-item h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--hp-navy);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.15;
    white-space: nowrap;
}

#page-home .hp-stats-steps-band .counter-item p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hp-muted);
    margin: 0;
    line-height: 1.35;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#page-home .hp-stats-steps-band .hp-steps-section {
    padding: 16px 0 56px;
    margin: 0;
    background: transparent;
}

#page-home .hp-stats-steps-band .hp-steps-section.section {
    padding: 16px 0 56px;
}

#page-home .hp-stats-steps-band .steps-grid {
    align-items: stretch;
    gap: 20px;
}

#page-home .hp-stats-steps-band .hp-steps-section .section-header {
    margin-bottom: 36px;
}

#page-home .hp-stats-steps-band .steps-grid::before {
    background: linear-gradient(90deg, transparent, rgba(10, 143, 31, 0.25), rgba(10, 143, 31, 0.35), transparent);
    top: 40px;
}

#page-home .hp-stats-steps-band .step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    height: 100%;
}

#page-home .hp-stats-steps-band .step-card h3 {
    color: var(--hp-navy);
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

#page-home .hp-stats-steps-band .step-card p {
    color: var(--hp-muted);
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 220px;
    margin: 0 auto;
}

#page-home .hp-stats-steps-band .step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    margin-bottom: 20px;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: var(--hp-green);
    border: 1px solid rgba(10, 143, 31, 0.18);
}

#page-home .hp-stats-steps-band .step-number.s1,
#page-home .hp-stats-steps-band .step-number.s2,
#page-home .hp-stats-steps-band .step-number.s3,
#page-home .hp-stats-steps-band .step-number.s4 {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: var(--hp-green);
}

/* Counter — legacy selectors outside band (fallback) */
#page-home .counter-section {
    padding: 0;
    border: none;
    background: var(--hp-page-bg);
}

#page-home .counter-section .container {
    background: var(--hp-panel);
    border: 1px solid var(--hp-border);
    border-radius: 28px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(6, 26, 58, 0.04);
}

#page-home .counter-grid {
    gap: 18px;
    text-align: left;
}

#page-home .counter-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 18px 20px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#page-home .counter-item h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hp-navy);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

#page-home .counter-item p {
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    margin-top: 0;
}

/* How it works — outside band fallback */
#page-home #how-it-works:not(.hp-steps-section) {
    background: var(--hp-panel);
}

#page-home .step-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(6, 26, 58, 0.04);
}

#page-home .step-card h3 {
    color: var(--hp-navy);
}

#page-home .step-number {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: var(--hp-green);
    border: 1px solid rgba(10, 143, 31, 0.15);
}

/* Testimonials */
#page-home .testimonial-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(6, 26, 58, 0.04);
}

#page-home .testimonial-card blockquote {
    color: var(--hp-muted);
}

#page-home .testimonial-author strong {
    color: var(--hp-navy);
}

/* FAQ */
#page-home #faq-section {
    background: var(--hp-page-bg);
}

#page-home .faq-item {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 18px;
    box-shadow: 0 1px 4px rgba(6, 26, 58, 0.03);
}

#page-home .faq-question {
    color: var(--hp-navy);
    font-weight: 700;
}

#page-home .faq-toggle {
    background: var(--hp-green-light);
    color: var(--hp-green);
    border: 1px solid rgba(10, 143, 31, 0.15);
}

#page-home .faq-item.open .faq-toggle {
    background: var(--hp-green);
    color: #fff;
}

#page-home .faq-answer-inner {
    color: var(--hp-muted);
}

/* Trusted platforms strip */
#page-home .hp-trusted-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
}

#page-home .hp-trusted-platforms .trusted-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 999px;
    color: var(--hp-navy);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#page-home .hp-trusted-platforms .trusted-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: rgba(10, 143, 31, 0.2);
}

#page-home .hp-trusted-platforms .trusted-logo i {
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

#page-home .hp-trusted-platforms .trusted-logo__name {
    white-space: nowrap;
}

#page-home .trusted-logo--google i { color: #EA4335; }
#page-home .trusted-logo--whatsapp i { color: #25D366; }
#page-home .trusted-logo--telegram i { color: #26A5E4; }
#page-home .trusted-logo--facebook i { color: #1877F2; }
#page-home .trusted-logo--twitter i { color: #0F1419; }
#page-home .trusted-logo--instagram i { color: #E4405F; }
#page-home .trusted-logo--paypal i { color: #003087; }
#page-home .trusted-logo--amazon i { color: #FF9900; }

@media (max-width: 768px) {
    #page-home {
        --hp-section-y: 48px;
        --hp-section-header: 28px;
    }

    #page-home .hp-trusted-strip {
        padding: 22px 0;
    }

    #page-home .hp-trusted-platforms {
        gap: 8px 10px;
    }

    #page-home .hp-trusted-platforms .trusted-logo {
        padding: 8px 14px 8px 10px;
        font-size: 0.8125rem;
    }

    #page-home .hp-trusted-platforms .trusted-logo i {
        font-size: 0.95rem;
    }

    #page-home .hp-stats-steps-band .counter-section {
        padding-bottom: 16px;
    }

    #page-home .hp-stats-steps-band .counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    #page-home .hp-stats-steps-band .counter-item {
        min-height: 84px;
        padding: 16px 12px;
    }

    #page-home .hp-stats-steps-band .counter-item h3 {
        white-space: normal;
        font-size: 1.2rem;
    }

    #page-home .hp-stats-steps-band .hp-steps-section {
        padding: 12px 0 44px;
    }

    #page-home .hp-stats-steps-band .hp-steps-section .section-header {
        margin-bottom: 28px;
    }

    #page-home .hp-stats-steps-band .steps-grid::before {
        display: none;
    }

    #page-home .hp-stats-steps-band .step-card p {
        max-width: none;
    }

    #page-home .counter-section .container {
        padding: 20px 16px;
        border-radius: 22px;
    }

    #page-home .counter-grid {
        grid-template-columns: 1fr;
    }

    #page-home .hero-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #page-home .hp-stats-steps-band .counter-grid {
        grid-template-columns: 1fr;
    }
}
