/* =========================
   How it works — centered, fixed-image tiles + shimmer titles
========================= */

/* Section padding */
#how-it-works.section {
    padding: clamp(56px, 6vw, 96px) 0;
}

/* Centered title/subtitle */
#how-it-works .section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

#how-it-works .section-head h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

#how-it-works .section-head .highlight,
#how-it-works .section-head .highlight-text {
    background: linear-gradient(135deg, #423dfc, #7271fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

#how-it-works .section-head .sub {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Grid */
#how-it-works .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    #how-it-works .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Feature cards — image on top, fixed size; text below */
#how-it-works .feature-card {
    background: #fff;
    border: 1px solid rgba(11, 18, 32, .08);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
    /* taller tiles for fixed image + text */
}

#how-it-works .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(66, 77, 254, .16);
    border-color: rgba(66, 77, 254, .22);
}

/* Fixed-size image at top */
#how-it-works .feature-card img {
    width: 260px;
    /* fixed width */
    height: 170px;
    /* fixed height */
    object-fit: contain;
    /* keep proportions inside the box */
    margin-bottom: 16px;
    border-radius: 12px;
    display: block;
}

/* Step titles (with shimmer) */
#how-it-works .feature-card h3 {
    position: relative;
    display: inline-block;

    /* Base appearance */
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;

    /* Shimmer overlay: normal color + lighter passing band */
    color: #0b1220;
    background: linear-gradient(90deg,
            #0b1220 0%,
            #0b1220 40%,
            rgba(255, 255, 255, 0.9) 50%,
            #0b1220 60%,
            #0b1220 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: howTitleShimmer var(--how-shimmer-speed, 2.8s) linear infinite;
}

#how-it-works .feature-card:hover h3,
#how-it-works .feature-card:focus-within h3 {
    --how-shimmer-speed: 2s;
    /* slightly faster on hover */
}

/* Body copy */
#how-it-works .feature-card p {
    font-size: 16px;
    color: rgba(11, 18, 32, .72);
    margin: 0;
}

/* Shimmer keyframes */
@keyframes howTitleShimmer {
    0% {
        background-position: 180% 0;
    }

    100% {
        background-position: -20% 0;
    }
}

/* Back-compat: neutralize old how__* typography if present */
.how__eyebrow {
    display: none !important;
}

.how__title {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
    font-weight: 700 !important;
    font-size: 42px !important;
    margin: 0 0 12px !important;
    line-height: 1.2 !important;
}

/* Reduced motion: disable shimmer and keep solid titles */
@media (prefers-reduced-motion: reduce) {
    #how-it-works .feature-card h3 {
        animation: none;
        background: none;
        color: #0b1220;
    }
}