﻿/* ============================================================
   HOW IT WORKS PAGE - ADDYBUDDY THEME
   Professional Services Platform
   ============================================================ */

.hiw-page {
    padding: 0 0 60px;
    background: linear-gradient(145deg, #f4f9ff 0%, #e8f2fc 100%);
    min-height: 80vh;
}

.hiw-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Hero Section ────────────────────────────────────────────── */
.hiw-hero {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-accent) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 75, 122, 0.15);
}

.hiw-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(25deg);
    pointer-events: none;
}

.hiw-hero-content {
    position: relative;
    z-index: 1;
}

.hiw-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #fcd34d;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hiw-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.hiw-hero-title .text-gradient {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hiw-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hiw-hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.hiw-hero-step {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px 4px 8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-hero-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.hiw-hero-step-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
}

.hiw-hero-step-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ─── Section Headers ──────────────────────────────────────────── */
.hiw-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.hiw-section-badge {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-primary);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.hiw-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.hiw-section-title .text-gradient {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hiw-section-sub {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 550px;
    margin: 0 auto;
}

/* ─── Escrow Section ───────────────────────────────────────────── */
.hiw-escrow {
    margin-bottom: 50px;
}

.hiw-escrow-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.hiw-escrow-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 16px;
    position: relative;
}

.hiw-escrow-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 auto 8px;
}

.hiw-escrow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 8px;
}

.hiw-escrow-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 4px;
}

.hiw-escrow-step p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hiw-escrow-detail {
    font-size: 0.75rem;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
}

.hiw-escrow-detail i {
    font-size: 0.8rem;
}

.hiw-escrow-arrow {
    color: #cbd5e1;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding-top: 40px;
}

.hiw-escrow-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hiw-benefit-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    align-items: flex-start;
}

.hiw-benefit-item i {
    font-size: 1.8rem;
    color: var(--blue-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.hiw-benefit-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 2px;
}

.hiw-benefit-item p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ─── Steps Section ────────────────────────────────────────────── */
.hiw-steps {
    margin-bottom: 50px;
}

.hiw-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hiw-step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hiw-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-soft));
    transition: left 0.4s ease;
}

.hiw-step-card:hover::before {
    left: 0;
}

.hiw-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(26, 75, 122, 0.08);
}

.hiw-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto 8px;
}

.hiw-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 8px;
}

.hiw-step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 4px;
}

.hiw-step-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hiw-step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue-primary);
    background: var(--blue-light);
    padding: 2px 12px;
    border-radius: 20px;
}

/* ─── Roles Section ────────────────────────────────────────────── */
.hiw-roles {
    margin-bottom: 50px;
}

.hiw-roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hiw-role-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.hiw-role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 75, 122, 0.08);
}

.hiw-role-client {
    border-top: 4px solid var(--blue-primary);
}

.hiw-role-professional {
    border-top: 4px solid #16a34a;
}

.hiw-role-header {
    text-align: center;
    margin-bottom: 20px;
}

.hiw-role-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 8px;
}

.hiw-role-client .hiw-role-icon {
    background: var(--blue-light);
    color: var(--blue-primary);
}

.hiw-role-professional .hiw-role-icon {
    background: #dcfce7;
    color: #16a34a;
}

.hiw-role-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 2px;
}

.hiw-role-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.hiw-role-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hiw-role-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid #f8fafc;
}

.hiw-role-features li:last-child {
    border-bottom: none;
}

.hiw-role-features li i {
    color: var(--blue-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.hiw-role-cta {
    text-align: center;
    margin-top: 16px;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.hiw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hiw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 75, 122, 0.25);
    color: #ffffff;
}

/* ─── Comparison Table ─────────────────────────────────────────── */
.hiw-comparison {
    margin-bottom: 50px;
}

.hiw-table-wrap {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
}

.hiw-table {
    width: 100%;
    border-collapse: collapse;
}

.hiw-table thead {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    color: #ffffff;
}

.hiw-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}

.hiw-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.hiw-table tbody tr:last-child td {
    border-bottom: none;
}

.hiw-table tbody tr:hover {
    background: #f8fafc;
}

.hiw-table-center {
    text-align: center;
}

.hiw-yes {
    color: #16a34a;
    font-size: 1.2rem;
}

.hiw-no {
    color: #dc2626;
    font-size: 1.2rem;
}

/* ─── Ecosystem ────────────────────────────────────────────────── */
.hiw-ecosystem {
    margin-bottom: 50px;
}

.hiw-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.hiw-eco-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(26, 75, 122, 0.06);
    transition: all 0.3s ease;
}

.hiw-eco-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-primary);
    box-shadow: 0 8px 20px rgba(26, 75, 122, 0.06);
}

.hiw-eco-card i {
    font-size: 2rem;
    color: var(--blue-primary);
    display: block;
    margin-bottom: 6px;
}

.hiw-eco-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 2px;
}

.hiw-eco-card p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

/* ─── Examples ─────────────────────────────────────────────────── */
.hiw-examples {
    margin-bottom: 50px;
}

.hiw-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hiw-example-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.hiw-example-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 8px;
}

.hiw-example-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 4px;
}

.hiw-example-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hiw-example-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue-primary);
}

/* ─── FAQ ───────────────────────────────────────────────────────── */
.hiw-faq {
    margin-bottom: 50px;
}

.hiw-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(26, 75, 122, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hiw-faq-item {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.hiw-faq-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-deep);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hiw-faq-item h5 i {
    color: var(--blue-primary);
    font-size: 0.9rem;
}

.hiw-faq-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ─── CTA ───────────────────────────────────────────────────────── */
.hiw-cta {
    margin-top: 20px;
}

.hiw-cta-content {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(26, 75, 122, 0.15);
}

.hiw-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hiw-cta-content p {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.hiw-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hiw-btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #ffffff;
    color: var(--blue-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hiw-btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
    color: var(--blue-primary);
}

.hiw-btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hiw-btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.hiw-cta-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hiw-cta-note i {
    font-size: 1rem;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .hiw-hero-title {
        font-size: 2.2rem;
    }
    .hiw-hero-steps {
        gap: 2px;
    }
    .hiw-hero-step-label {
        font-size: 0.6rem;
    }
    .hiw-hero-step-arrow {
        font-size: 0.6rem;
    }
    .hiw-roles-grid {
        grid-template-columns: 1fr;
    }
    .hiw-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hiw-hero {
        padding: 30px 20px;
    }
    .hiw-hero-title {
        font-size: 1.8rem;
    }
    .hiw-hero-sub {
        font-size: 1rem;
    }
    .hiw-hero-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hiw-escrow-flow {
        flex-direction: column;
        padding: 20px;
    }
    .hiw-escrow-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
    .hiw-section-title {
        font-size: 1.6rem;
    }
    .hiw-steps-grid {
        grid-template-columns: 1fr;
    }
    .hiw-escrow-benefits {
        grid-template-columns: 1fr;
    }
    .hiw-ecosystem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hiw-examples-grid {
        grid-template-columns: 1fr;
    }
    .hiw-cta-content {
        padding: 32px 24px;
    }
    .hiw-cta-content h2 {
        font-size: 1.5rem;
    }
    .hiw-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hiw-btn-cta-primary,
    .hiw-btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hiw-hero-title {
        font-size: 1.4rem;
    }
    .hiw-hero-step {
        padding: 2px 8px 2px 6px;
    }
    .hiw-hero-step-num {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    .hiw-hero-step-label {
        font-size: 0.55rem;
    }
    .hiw-hero-step-arrow {
        font-size: 0.5rem;
    }
    .hiw-ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hiw-table-wrap {
        font-size: 0.8rem;
    }
    .hiw-table thead th,
    .hiw-table tbody td {
        padding: 8px 10px;
    }
}