/* =========================================
   HOW IT WORKS PAGE (Timeline)
========================================= */

/* --- GLOBALS --- */
.leadiary-hiw-hero, .leadiary-timeline, .leadiary-hiw-cta {
    font-family: 'Inter', sans-serif;
}
.hiw-container {
    max-width: 900px; /* Kept narrow to focus on the timeline */
    margin: 0 auto;
    padding: 0 24px;
}
.text-orange { color: var(--brand-orange); }
.text-blue { color: #2563eb; } /* Trust blue for security badge */

/* --- HERO SECTION --- */
.leadiary-hiw-hero {
    background-color: #fafafa;
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.hiw-badge {
    display: inline-block;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.hiw-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.hiw-subtitle {
    font-size: 20px;
    color: #4b5563;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- TIMELINE SECTION --- */
.leadiary-timeline {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden; 
}
/* The vertical connecting line */
.leadiary-timeline::before {
    content: '';
    position: absolute;
    top: 100px;
    bottom: 100px;
    left: 50%;
    width: 2px;
    background: #e5e7eb;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
    z-index: 1;
}
.timeline-step:last-child {
    margin-bottom: 0;
}

/* The big orange number */
.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--brand-orange);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 0 0 8px #ffffff; 
    z-index: 2;
}

/* The Content Card */
.step-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px;
    width: calc(50% - 60px); 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: #d1d5db;
}

/* Alternating logic so cards sit on left and right automatically */
.timeline-step:nth-child(odd) .step-card {
    margin-left: auto;
}

.step-icon {
    width: 48px;
    height: 48px;
    background-color: #FFF0E5;
    color: var(--brand-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
}
.step-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.step-content p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
}
.step-content p:last-child {
    margin-bottom: 0;
}

/* Highlight Boxes */
.step-highlight {
    background-color: #f9fafb;
    border-left: 3px solid var(--brand-orange);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}
/* Custom style for the security box to match your dashboard app */
.security-highlight {
    background-color: #eff6ff; 
    border-left: 3px solid #3b82f6; 
    color: #1e3a8a; 
}
.security-highlight strong {
    color: #1e3a8a;
}
.step-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}
.step-bullets li {
    font-size: 14px;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.5;
}
.step-bullets li i {
    margin-right: 12px;
    margin-top: 2px;
}

/* --- CTA SECTION --- */
.leadiary-hiw-cta {
    padding: 60px 0 100px;
    background-color: #ffffff;
}
.hiw-cta-banner {
    background-color: #111827;
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--brand-orange);
}
.cta-text h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}
.cta-text p {
    font-size: 16px;
    color: #9ca3af;
    max-width: 500px;
    margin: 0;
}
.cta-btn {
    background-color: var(--brand-orange);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cta-btn:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-2px);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .leadiary-timeline::before {
        display: none;
    }
    
    .timeline-step {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    
    .step-number {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: -24px; 
        margin-left: 24px;
        box-shadow: 0 0 0 6px #ffffff;
    }

    .step-card {
        width: 100%;
        margin-left: 0 !important;
        padding: 40px 24px 24px; 
    }

    .hiw-cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 40px 24px;
    }
    
    .cta-text p {
        margin: 0 auto;
    }
}