/* ============================================
   StrangerCam How It Works Widget
   Depends on brand-page.css for variables & base classes
   ============================================ */

/* ── Wider container (match directory width) ── */
.scw-hiw .scw-container {
    max-width: 1280px;
}

/* ── Track (horizontal step row) ── */
.scw-hiw__track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
}

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

/* ── Connector line between circles ── */
@media (min-width: 768px) {
    .scw-hiw--connected .scw-hiw__track::before {
        content: '';
        position: absolute;
        top: 44px;                          /* vertically centered on the 88px circle */
        left: calc(50% / var(--scw-hiw-steps, 3) + 44px + 8px);
        right: calc(50% / var(--scw-hiw-steps, 3) + 44px + 8px);
        height: 2px;
        background: var(--scw-gray-200);
        z-index: 0;
    }
}

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

/* ── Circle wrapper (circle + badge) ── */
.scw-hiw__circle-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* ── Numbered circle ── */
.scw-hiw__circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2.5px solid var(--scw-hiw-accent, var(--scw-yellow));
    background: var(--scw-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--scw-duration) var(--scw-ease),
                box-shadow var(--scw-duration) var(--scw-ease);
}

.scw-hiw__step:hover .scw-hiw__circle {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--scw-hiw-accent, var(--scw-yellow)) 15%, transparent);
}

.scw-hiw__number {
    font-family: var(--scw-font);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--scw-hiw-accent, var(--scw-yellow));
    letter-spacing: -0.02em;
}

/* ── Icon badge (bottom-right of circle) ── */
.scw-hiw__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--scw-hiw-accent, var(--scw-yellow));
    color: var(--scw-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.scw-hiw__badge svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.scw-hiw__badge i {
    font-size: inherit;
}

/* ── Title ── */
.scw-hiw__title {
    font-family: var(--scw-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--scw-black);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

/* ── Description ── */
.scw-hiw__desc {
    font-family: var(--scw-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--scw-gray-500);
    margin: 0;
    max-width: 260px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .scw-hiw__circle-wrap {
        width: 72px;
        height: 72px;
    }

    .scw-hiw__circle {
        width: 72px;
        height: 72px;
    }

    .scw-hiw__number {
        font-size: 26px;
    }

    .scw-hiw__badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .scw-hiw__desc {
        max-width: 100%;
    }
}
