/* ============================================================
   How It Works - Page Styles
   ============================================================ */

/* ---- Process Steps ---- */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
}

.hiw-step:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.hiw-step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
}

.hiw-step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.hiw-step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Weight Cards ---- */
.hiw-weights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hiw-weight-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
}

.hiw-weight-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hiw-weight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hiw-weight-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hiw-weight-pct {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
}

/* ---- Score Legend ---- */
.hiw-score-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hiw-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hiw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Pillar Headers ---- */
.hiw-pillar-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hiw-pillar-icon {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
}

.hiw-pillar-header h2 {
    font-family: var(--font-heading);
    color: var(--text-light);
}

/* ---- Individual Check Cards ---- */
.hiw-checks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hiw-check {
    padding: 1.5rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition);
}

.hiw-check:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.hiw-check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hiw-check-header h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.hiw-check-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--primary);
    flex-shrink: 0;
}

.hiw-check > p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.hiw-why {
    padding: 1rem 1.25rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hiw-why strong {
    color: var(--primary);
}

/* ---- Glass Card Utility ---- */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hiw-weights {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-pillar-header {
        flex-direction: column;
        gap: 1rem;
    }

    .hiw-pillar-icon {
        font-size: 2.5rem;
    }

    .hiw-check {
        padding: 1.25rem 1.5rem;
    }

    .hiw-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hiw-weights {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .hiw-weight-pct {
        font-size: 1.5rem;
    }

    .hiw-score-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
