/* ════════════════════════════════════════════
   How It Works V2 — light companion to Hero V7
   Full-width step track with gradient number/
   icon chips and an optional connector line.
   Matches Features V2 (white bg, black/400
   subtitle, chip language, no hover effects).
   Depends on scw-base (tokens + .scw-section,
   heading group).
   ════════════════════════════════════════════ */

.scw-hiw2 {
    background: var(--scw-hiw2-bg, #FFFFFF);
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-hiw2 *,
.scw-hiw2 *::before,
.scw-hiw2 *::after {
    box-sizing: border-box;
}

/* ── Subtitle override — solid black, regular weight (matches Features V2) ── */
.scw-hiw2 .scw-section-subtitle {
    color: #000000;
    font-weight: 400;
}

/* ── Track ── */
.scw-hiw2__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    position: relative;
}

@media (min-width: 768px) {
    .scw-hiw2__track {
        grid-template-columns: repeat(var(--scw-hiw2-steps, 3), 1fr);
        gap: 32px;
    }
}

/* ── Connector line between chips (desktop only) ── */
@media (min-width: 768px) {
    .scw-hiw2--connected .scw-hiw2__track::before {
        content: '';
        position: absolute;
        top: 32px;                          /* centered on the 64px chip */
        left: calc(50% / var(--scw-hiw2-steps, 3) + 32px + 14px);
        right: calc(50% / var(--scw-hiw2-steps, 3) + 32px + 14px);
        height: 2px;
        border-radius: 2px;
        background: var(--scw-hiw2-line, #EAEAF0);
        z-index: 0;
    }
}

/* ── Step ── */
.scw-hiw2__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── Gradient chip — number or icon (echoes the Features V2 icon chips) ── */
.scw-hiw2__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--scw-hiw2-a1, #A855F7) 0%, var(--scw-hiw2-a2, #EC4899) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 15, 15, 0.12);
    flex-shrink: 0;
}

.scw-hiw2__chip svg {
    width: 26px;
    height: 26px;
}

.scw-hiw2__num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ── Step text ── */
.scw-hiw2__title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--scw-hiw2-title, #0F0F0F);
}

.scw-hiw2__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--scw-hiw2-desc, #52525B);
    margin: 0;
    max-width: 300px;
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 767px)
   ════════════════════════════════════════════ */
@media (max-width: 767px) {
    .scw-hiw2__track { gap: 40px; }

    .scw-hiw2__chip {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .scw-hiw2__chip svg {
        width: 24px;
        height: 24px;
    }

    .scw-hiw2__num { font-size: 21px; }

    .scw-hiw2__title { font-size: 16px; }

    .scw-hiw2__desc {
        font-size: 14px;
        max-width: 420px;
    }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-hiw2 {
    min-height: 120px;
}
