* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: #0A0E27;
    color: white;
}

/* FULL WIDTH FIX */
.pin-spacer,
.pin-spacer-wrapper,
[class*="pin-spacer"] {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
}

.how-it-works-scrollytelling-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.how-it-works-section {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 60px 100px 60px;
    background: #0A0E27;
    background-image: url('/HOW%20IT%20WORKS.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box !important;
    border-radius: 48px 48px 0 0;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(74, 144, 226, 0.15) 0%, rgba(60, 91, 221, 0.08) 30%, transparent 70%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.how-it-works-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.1) 1px, transparent 1px), radial-gradient(circle at 80% 70%, rgba(60, 91, 221, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    background-position: 0 0, 40px 60px;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

.how-it-works-headline {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    flex-shrink: 0;
}

.how-it-works-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: #3C5BDD;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #dfe6f1;
}

.how-it-works-headline-line1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    text-align: center;
    color: #4A90E2;
    margin: 0;
}

.how-it-works-headline-line2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 1.2;
    text-align: center;
    color: #ffffff;
    margin: 0;
}

.minutes-text {
    position: relative;
    display: inline-block;
}

.minutes-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.how-it-works-content {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* DESKTOP - SHOWN BY DEFAULT */
.desktop-version {
    display: flex;
}

.mobile-version {
    display: none;
}

.how-it-works-phone-container {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    width: 240px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-phone-image {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(74, 144, 226, 0.3));
}

/* Hide non-first phone images initially to prevent flash */
.how-it-works-phone-image[data-step="1"],
.how-it-works-phone-image[data-step="2"] {
    opacity: 0;
    visibility: hidden;
}

/* Ensure first phone is visible */
.how-it-works-phone-image[data-step="0"] {
    opacity: 1;
    visibility: visible;
}

/* Medium desktop / tablet landscape (e.g. 1024px wide) */
@media (max-width: 1200px) and (min-width: 1024px) {
    .how-it-works-phone-container {
        width: 240px;
        height: 400px;
    }

    .how-it-works-phone-image {
        width: 240px;
    }
}

.how-it-works-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 500px;
    position: relative;
    height: 450px;
}

.how-it-works-step {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    z-index: 1;
}

.how-it-works-steps::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffffff;
    opacity: 0.3;
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #A7BFE9;
    background: rgba(74, 144, 226, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: inline-block;
    width: auto;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    outline: none;
}

.step-number {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #0A0E27;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    outline: none;
    border: none;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: 'Geist', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.step-description {
    font-family: 'Geist', sans-serif;
    font-size: 24px;
    color: #A7BFE9;
    line-height: 1.6;
    margin: 0;
}

/* MOBILE - SCREENS BELOW 1024px (match user-satisfaction section border radius) */
@media (max-width: 1023px) {
    .how-it-works-scrollytelling-wrapper {
        min-height: auto !important;
        left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 24px 24px 0 0;
        overflow: hidden;
    }
    
    .how-it-works-section {
        position: relative !important;
        padding: 50px 0 0 0;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
        border-radius: 24px 24px 0 0;
    }

    .how-it-works-headline {
        margin-bottom: 200px;
        flex-shrink: 0;
    }

    .how-it-works-badge {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 14px;
    }
    
    .how-it-works-headline-line1 {
        font-size: 26px;
        margin-bottom: 4px;
    }
    
    .how-it-works-headline-line2 {
        font-size: 30px;
    }
    
    .minutes-icon {
        width: 130px;
        height: 130px;
    }
    
    .desktop-version {
        display: none !important;
    }
    
    .mobile-version {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        margin-top: 40px;
        padding: 0 20px;
    }

    .how-it-works-content {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .mobile-phone {
        position: relative;
        text-align: center;
        margin-bottom: 28px;
        width: 170px;
        margin-top: 15px;
    }

    /* Glass box behind phone image - mobile only */
    .mobile-phone::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% + 120px);
        height: calc(100% + 70px);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        /* -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px); */
        z-index: 0;
    }

    .mobile-phone img {
        position: relative;
        z-index: 1;
        width: 100%;
        filter: drop-shadow(0 20px 50px rgba(74, 144, 226, 0.5));
    }
    
    .mobile-step {
        text-align: center;
        padding-top: 36px;
        margin-bottom: 80px;
        width: 100%;
    }
    
    .mobile-step-label {
        font-size: 12px;
        color: #A7BFE9;
        background: rgba(74, 144, 226, 0.15);
        padding: 5px 12px;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .mobile-step-title {
        font-size: 30px;
        font-weight: 700;
        color: #ffffff;
        margin: 0 0 8px 0;
    }
    
    .mobile-step-description {
        font-size: 17px;
        color: #A7BFE9;
        line-height: 1.6;
        width: 300px;
        margin: 0 auto;
    }
}

/* 768px - match user-satisfaction border radius */
@media (max-width: 768px) {
    .how-it-works-scrollytelling-wrapper {
        border-radius: 20px 20px 0 0;
    }
    
    .how-it-works-section {
        border-radius: 20px 20px 0 0;
    }
}

@media (max-width: 480px) {
    .how-it-works-scrollytelling-wrapper {
        border-radius: 16px 16px 0 0;
    }
    
    .how-it-works-section {
        padding-top: 50px;
        border-radius: 16px 16px 0 0;
    }

    .how-it-works-badge {
        padding: 5px 10px;
        font-size: 11px;
        margin-bottom: 12px;
    }

    .how-it-works-headline {
        margin-bottom: 20px;
    }
    
    .how-it-works-headline-line1 {
        font-size: 32px;
        margin-bottom: 4px;
    }
    
    .how-it-works-headline-line2 {
        font-size: 38px;
    }
    
    .minutes-icon {
        width: 110px;
        height: 110px;
    }

    .mobile-version {
        padding: 0 16px;
    }

    .mobile-phone {
        width: 150px;
        margin-bottom: 28px;
        margin-top: 25px;
    }
    
    .mobile-step-label {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    
    .mobile-step-title {
        font-size: 26px;
        margin-bottom: 6px;
    }
    
    .mobile-step-description {
        font-size: 20px;
    }

    .mobile-step {
        padding-top: 32px;
        margin-bottom: 60px;
    }
}

@media (max-width: 375px) {
    .how-it-works-section {
        padding-top: 50px;
    }

    .how-it-works-badge {
        padding: 4px 8px;
        font-size: 10px;
        margin-bottom: 10px;
    }

    .how-it-works-headline {
        margin-bottom: 20px;
    }

    .how-it-works-headline-line1 {
        font-size: 20px;
        margin-bottom: 3px;
    }

    .how-it-works-headline-line2 {
        font-size: 24px;
    }

    .minutes-icon {
        width: 100px;
        height: 100px;
    }

    .mobile-phone {
        width: 140px;
        margin-bottom: 20px;
        margin-top: 25px;
    }

    .mobile-step-label {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    .mobile-step-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .mobile-step-description {
        font-size: 14px;
    }

    .mobile-step {
        padding-top: 28px;
        margin-bottom: 40px;
    }
}