/* b4u-services.html — How Does it Work / Process */

#HowDoesItWork.b4u-process-section {
    position: relative;
    isolation: isolate;
    padding-top: clamp(2.75rem, 5vw, 4rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 40%, #f0fdfa 75%, #ffffff 100%);
}

#HowDoesItWork.b4u-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 8% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 92% 65%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

html.dark #HowDoesItWork.b4u-process-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 45%, #134e4a 80%, #0f172a 100%);
}

html.dark #HowDoesItWork.b4u-process-section::before {
    background:
        radial-gradient(ellipse 55% 45% at 8% 25%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 92% 65%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
}

#HowDoesItWork.b4u-process-section .container {
    position: relative;
    z-index: 1;
}

.b4u-process-head {
    max-width: 640px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.b4u-process-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.875rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 999px;
}

html.dark .b4u-process-eyebrow {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(167, 139, 250, 0.35);
}

.b4u-process-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

html.dark .b4u-process-title {
    color: #f8fafc;
}

.b4u-process-title-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.dark .b4u-process-title-accent {
    background: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.b4u-process-lead {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #64748b;
}

html.dark .b4u-process-lead {
    color: #94a3b8;
}

#HowDoesItWork .b4u-process-flow {
    max-width: 1200px;
    margin: 0 auto;
}

#HowDoesItWork .b4u-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0;
    position: relative;
}

@media (min-width: 640px) {
    #HowDoesItWork .b4u-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #HowDoesItWork .b4u-process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    #HowDoesItWork .b4u-process-grid::before {
        content: '';
        position: absolute;
        /* Align with vertical center of icon squares (padding + number + gap + half icon) */
        top: calc(1.5rem + 2rem + 0.65rem + 2rem);
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 33%, #06b6d4 66%, #10b981 100%);
        opacity: 0.35;
        z-index: 0;
        pointer-events: none;
    }
}

#HowDoesItWork .b4u-process-step {
    height: 100%;
    padding: 1.5rem 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#HowDoesItWork .b4u-process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--b4u-step-accent, linear-gradient(90deg, #8b5cf6, #7c3aed));
    opacity: 0.9;
}

#HowDoesItWork .b4u-process-step[data-step="1"] { --b4u-step-accent: linear-gradient(90deg, #8b5cf6, #7c3aed); }
#HowDoesItWork .b4u-process-step[data-step="2"] { --b4u-step-accent: linear-gradient(90deg, #6366f1, #4f46e5); }
#HowDoesItWork .b4u-process-step[data-step="3"] { --b4u-step-accent: linear-gradient(90deg, #06b6d4, #0891b2); }
#HowDoesItWork .b4u-process-step[data-step="4"] { --b4u-step-accent: linear-gradient(90deg, #10b981, #059669); }

#HowDoesItWork .b4u-process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

html.dark #HowDoesItWork .b4u-process-step {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html.dark #HowDoesItWork .b4u-process-step:hover {
    border-color: rgba(167, 139, 250, 0.45);
}

#HowDoesItWork .b4u-process-step__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 0 auto 1.1rem;
}

#HowDoesItWork .b4u-process-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #6d28d9;
    background: #fff;
    border: 2px solid #ddd6fe;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

#HowDoesItWork .b4u-process-step[data-step="2"] .b4u-process-step__number {
    color: #4f46e5;
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

#HowDoesItWork .b4u-process-step[data-step="3"] .b4u-process-step__number {
    color: #0891b2;
    border-color: #a5f3fc;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.15);
}

#HowDoesItWork .b4u-process-step[data-step="4"] .b4u-process-step__number {
    color: #059669;
    border-color: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

html.dark #HowDoesItWork .b4u-process-step__number {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

html.dark #HowDoesItWork .b4u-process-step[data-step="1"] .b4u-process-step__number { color: #c4b5fd; border-color: #6d28d9; }
html.dark #HowDoesItWork .b4u-process-step[data-step="2"] .b4u-process-step__number { color: #a5b4fc; border-color: #4f46e5; }
html.dark #HowDoesItWork .b4u-process-step[data-step="3"] .b4u-process-step__number { color: #67e8f9; border-color: #0891b2; }
html.dark #HowDoesItWork .b4u-process-step[data-step="4"] .b4u-process-step__number { color: #6ee7b7; border-color: #059669; }

/* Hide legacy badge inside icon if present */
#HowDoesItWork .b4u-process-step .process-icon .process-number {
    display: none !important;
}

#HowDoesItWork .b4u-process-step .process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#HowDoesItWork .b4u-process-step[data-step="2"] .process-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

#HowDoesItWork .b4u-process-step[data-step="3"] .process-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.28);
}

#HowDoesItWork .b4u-process-step[data-step="4"] .process-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

#HowDoesItWork .b4u-process-step:hover .process-icon {
    transform: scale(1.06);
}

#HowDoesItWork .b4u-process-step .process-icon svg {
    width: 28px;
    height: 28px;
}

#HowDoesItWork .b4u-process-step .process-title {
    margin-bottom: 0.65rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    line-height: 1.35;
}

html.dark #HowDoesItWork .b4u-process-step .process-title {
    color: #f1f5f9;
}

#HowDoesItWork .b4u-process-step .process-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748b;
    text-align: center;
}

html.dark #HowDoesItWork .b4u-process-step .process-description {
    color: #94a3b8;
}

#HowDoesItWork .b4u-process-cta {
    margin-top: 2rem;
    text-align: center;
}

#HowDoesItWork .b4u-process-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#HowDoesItWork .b4u-process-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.42);
}

#HowDoesItWork .b4u-process-cta a svg {
    width: 1.125rem;
    height: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
    #HowDoesItWork .b4u-process-step:hover,
    #HowDoesItWork .b4u-process-cta a:hover {
        transform: none;
    }

    #HowDoesItWork .b4u-process-step:hover .process-icon {
        transform: none;
    }
}
