/**
 * How It Works - Infographic Landing Page Styles
 */

/* ==========================================================================
   Hero
   ========================================================================== */
.hiw-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(0deg, rgb(5 60 30 / 24%) 0%, rgba(22, 163, 74, 0.68) 55%, rgb(10 80 40 / 26%) 100%),
                url('/img/credit-avedson-bg.avif') center / cover no-repeat;
    color: #fff;
}

@supports not (background-image: url('/img/credit-avedson-bg.avif')) {
    .hiw-hero {
        background: linear-gradient(135deg, hsla(147, 96%, 21%, 0.85) 0%, hsla(147, 70%, 28%, 0.8) 50%, hsla(160, 60%, 25%, 0.85) 100%),
                    url('/img/credit-avedson-bg.png') center / cover no-repeat;
    }
}

.hiw-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hiw-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hiw-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hiw-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hiw-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hiw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #fff;
    color: hsl(147, 96%, 21%);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.hiw-btn-primary:hover {
    background: #f0fdf4;
    color: hsl(147, 96%, 18%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hiw-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hiw-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    transform: translateY(-2px);
}

.hiw-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: #fff;
    color: hsl(147, 96%, 21%);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hiw-btn-cta:hover {
    background: #f0fdf4;
    color: hsl(147, 96%, 18%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* ==========================================================================
   Section Structure
   ========================================================================== */

.hiw-section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}

.hiw-section-alt {
    background: #f8fafc;
}

.hiw-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hiw-section-number {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: hsl(147, 96%, 21%);
    background: #d1fae5;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hiw-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hiw-section-desc {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Plan Type Cards
   ========================================================================== */

.hiw-plan-card {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.25s ease;
    overflow: hidden;
    height: 100%;
}

.hiw-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hiw-plan-installment {
    border-color: #d1fae5;
}

.hiw-plan-installment:hover {
    border-color: #198754;
}

.hiw-plan-layaway {
    border-color: #dbeafe;
}

.hiw-plan-layaway:hover {
    border-color: #0d6efd;
}

.hiw-plan-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease;
}

.hiw-plan-installment .hiw-plan-icon {
    background: #d1fae5;
    color: #065f46;
}

.hiw-plan-layaway .hiw-plan-icon {
    background: #dbeafe;
    color: #1e40af;
}

.hiw-plan-card:hover .hiw-plan-icon {
    transform: scale(1.1);
}

.hiw-plan-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.hiw-plan-tagline {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hiw-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
}

.hiw-plan-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.hiw-plan-installment .hiw-plan-features li i {
    color: #198754;
    flex-shrink: 0;
    margin-top: 2px;
}

.hiw-plan-layaway .hiw-plan-features li i {
    color: #0d6efd;
    flex-shrink: 0;
    margin-top: 2px;
}

.hiw-plan-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: #198754;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hiw-badge-layaway {
    background: #0d6efd;
}

/* ==========================================================================
   Steps (Timeline)
   ========================================================================== */

.hiw-steps {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hiw-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

.hiw-step:last-child {
    padding-bottom: 0;
}

.hiw-step-connector {
    position: absolute;
    left: 22px;
    top: 48px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d1fae5, #e5e7eb);
}

.hiw-step:last-child .hiw-step-connector {
    display: none;
}

.hiw-step-number {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: hsl(147, 96%, 21%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,128,0,0.2);
}

.hiw-step-content {
    flex: 1;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.hiw-step:hover .hiw-step-content {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #d1fae5;
}

.hiw-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.hiw-step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.hiw-step-content p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.hiw-feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    height: 100%;
}

.hiw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #d1fae5;
}

.hiw-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #d1fae5;
    color: #065f46;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.hiw-feature-card:hover .hiw-feature-icon {
    transform: scale(1.1);
}

.hiw-feature-card h5 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.hiw-feature-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.hiw-comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.hiw-comparison-table .table {
    font-size: 0.95rem;
}

.hiw-comparison-table thead th {
    font-weight: 700;
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.hiw-table-feature {
    background: #f9fafb;
    color: #374151;
    width: 35%;
}

.hiw-table-installment {
    background: #f0fdf4;
    color: #065f46;
    text-align: center;
}

.hiw-table-layaway {
    background: #eff6ff;
    color: #1e40af;
    text-align: center;
}

.hiw-comparison-table tbody td {
    padding: 0.85rem 1.25rem;
    vertical-align: middle;
    color: #374151;
}

.hiw-comparison-table tbody td:nth-child(2),
.hiw-comparison-table tbody td:nth-child(3) {
    text-align: center;
}

.hiw-comparison-table tbody tr:hover {
    background: #f9fafb;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.hiw-accordion .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.hiw-accordion .accordion-button {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
}

.hiw-accordion .accordion-button:not(.collapsed) {
    background: #f0fdf4;
    color: #065f46;
    box-shadow: none;
}

.hiw-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
}

.hiw-accordion .accordion-body {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    padding: 0.75rem 1.25rem 1.25rem;
}

.hiw-accordion .accordion-body a {
    color: #198754;
    text-decoration: underline;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.hiw-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(147, 96%, 21%) 0%, hsl(160, 60%, 25%) 100%);
    color: #fff;
}

.hiw-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hiw-cta-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hiw-cta-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .hiw-hero {
        padding: 3.5rem 0 3rem;
    }
    .hiw-hero-title {
        font-size: 2.1rem;
    }
    .hiw-section {
        padding: 3.5rem 0;
    }
    .hiw-section-title {
        font-size: 1.65rem;
    }
    .hiw-cta-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 767.98px) {
    .hiw-hero {
        padding: 2.5rem 0 2rem;
    }
    .hiw-hero-title {
        font-size: 1.75rem;
    }
    .hiw-hero-subtitle {
        font-size: 1rem;
    }
    .hiw-section {
        padding: 2.5rem 0;
    }
    .hiw-section-header {
        margin-bottom: 2.5rem;
    }
    .hiw-section-title {
        font-size: 1.45rem;
    }
    .hiw-plan-card {
        padding: 2rem 1.5rem 1.5rem;
    }
    .hiw-plan-badge {
        font-size: 0.6rem;
        padding: 0.25rem 2rem;
    }
    .hiw-step {
        gap: 1rem;
    }
    .hiw-step-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .hiw-step-connector {
        left: 18px;
    }
    .hiw-step-content {
        padding: 1.25rem;
    }
    .hiw-cta {
        padding: 3.5rem 0;
    }
    .hiw-cta-title {
        font-size: 1.55rem;
    }
    .hiw-btn-cta {
        font-size: 0.95rem;
        padding: 0.85rem 1.75rem;
    }
}
