/* ==========================================================
   How It Works
   ========================================================== */
.hiw2-section {
    padding: clamp(28px, 6vw, 64px) 0;
    background: #ffffff;
}

.hiw2-container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.hiw2-kicker {
    margin: 0 0 clamp(34px, 5vw, 52px);
    color: #111827;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(22px, 3.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
}

.hiw2-kicker img {
    width: auto;
    height: 0.85em;
    vertical-align: -0.12em;
}

.hiw2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(40px, 7vw, 84px);
    align-items: start;
}

.hiw2-content {
    min-width: 0;
}

.hiw2-intro {
    margin-bottom: clamp(38px, 5vw, 58px);
}

.hiw2-lead {
    margin: 0 0 10px;
    color: #111827;
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: clamp(30px, 3.5vw, 36px) !important;
    font-weight: 800;
    line-height: 1.12;
}

.hiw2-lead span {
    color: #7d65fd;
}

.hiw2-description {
    max-width: 62ch;
    margin: 0;
    color: #374151;
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: clamp(18px, 2vw, 20px) !important;
    font-weight: 700;
    line-height: 1.35;
}

.hiw2-step {
    min-height: clamp(390px, 48vw, 500px);
    padding: 0 0 34px;
    font-family: "DM Sans", system-ui, sans-serif;
}

.hiw2-step:last-child {
    min-height: 410px;
    padding-bottom: 0;
}

.hiw2-step-copy {
    max-width: 620px;
}

.hiw2-pill {
    display: inline-block;
    margin: 0 0 8px;
    padding: 5px 12px;
    border: 2px solid #7d65fd;
    border-radius: 999px;
    color: #7d65fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hiw2-step:first-child .hiw2-pill {
    margin-top: 23px;
}

.hiw2-step-title {
    margin: 0 0 6px;
    color: #111827;
    font-size: clamp(21px, 2.5vw, 25px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hiw2-step-text {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: clamp(18px, 2vw, 20px) !important;
    font-weight: 500;
    line-height: 1.4;
}

.hiw2-list {
    margin: 6px 0 10px 22px;
    padding: 0;
    color: #1f2937;
    font-size: 20px;
    line-height: 1.35;
}

.hiw2-list li {
    margin: 4px 0;
}

.hiw2-list span {
    font-style: italic;
}

.hiw2-note {
    margin: 7px 0 0;
    color: #8f94fb;
    font-family: "Shadows Into Light Two", cursive;
    font-size: clamp(24px, 2.8vw, 30px) !important;
    line-height: 1.15;
}

.hiw2-note--strong {
    color: #111827;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(19px, 2vw, 22px) !important;
    font-weight: 800;
    line-height: 1.3;
}

.hiw2-mobile-shot {
    display: none;
}

.hiw2-phone-column {
    align-self: stretch;
}

.hiw2-phone-sticky {
    position: sticky;
    top: 100px;
    width: 280px;
    height: 520px;
}

.hiw2-device {
    position: relative;
    width: 260px;
    height: 520px;
    margin-left: 20px;
    transform: translateY(-20px);
}

.hiw2-device[hidden] {
    display: none;
}

.hiw2-phone-frame {
    position: absolute;
    inset: 20px 20px 20px 20px;
    overflow: hidden;
    border: 10px solid #d9dbe6;
    border-radius: 40px;
    background: #f8f8fb;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.hiw2-phone-speaker {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 50%;
    width: 40px;
    height: 10px;
    border-radius: 999px;
    background: #d9dbe6;
    transform: translateX(-50%);
}

.hiw2-phone-screen {
    position: absolute;
    inset: 40px 10px 30px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
}

.hiw2-phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hiw2-device-sticker {
    position: absolute;
    z-index: 3;
    top: 44%;
    left: -8px;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-orange);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
}

.hiw2-device-sticker svg {
    width: 30px;
    height: 30px;
}

.hiw2-closing {
    width: 100%;
    max-width: 650px;
    margin: clamp(24px, 4vw, 44px) auto 0;
    color: #374151;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .hiw2-section {
        padding-top: 30px;
    }

    .hiw2-container {
        width: min(calc(100% - 28px), 620px);
    }

    .hiw2-kicker {
        margin-bottom: 30px;
    }

    .hiw2-layout {
        display: block;
    }

    .hiw2-intro {
        margin-bottom: 38px;
    }

    .hiw2-phone-column {
        display: none;
    }

    .hiw2-step {
        min-height: 0;
        padding: 0 0 44px;
    }

    .hiw2-step:last-child {
        min-height: 0;
    }

    .hiw2-step-copy {
        max-width: none;
    }

    .hiw2-pill {
        display: block;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }

    .hiw2-mobile-shot {
        position: relative;
        display: block;
        width: min(88%, 360px);
        height: clamp(350px, 110vw, 470px);
        margin: 26px auto 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        box-sizing: border-box;
    }

    .hiw2-mobile-phone {
        position: absolute;
        inset: 0 6px -52px;
        overflow: hidden;
        border: 10px solid #d9dbe6;
        border-radius: 38px;
        background: #f8f8fb;
        box-shadow: 0 14px 30px rgba(44, 35, 99, 0.16);
    }

    .hiw2-mobile-speaker {
        position: absolute;
        z-index: 2;
        top: 12px;
        left: 50%;
        width: 42px;
        height: 9px;
        border-radius: 999px;
        background: #d9dbe6;
        transform: translateX(-50%);
    }

    .hiw2-mobile-screen {
        position: absolute;
        inset: 38px 10px 0;
        overflow: hidden;
        border-radius: 26px 26px 0 0;
        background: #ffffff;
    }

    .hiw2-mobile-screen img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    .hiw2-mobile-wave {
        position: absolute;
        z-index: 2;
        right: -2px;
        bottom: -2px;
        left: -2px;
        display: block;
        width: calc(100% + 4px);
        height: 48px;
        color: #ffffff;
        overflow: hidden;
        pointer-events: none;
        shape-rendering: geometricPrecision;
        transform: translateZ(0);
    }

    .hiw2-mobile-wave path {
        fill: currentColor;
    }

    .hiw2-mobile-wave .hiw2-mobile-wave-edge {
        fill: none;
        stroke: #c9c1ff;
        stroke-width: 2px;
        vector-effect: non-scaling-stroke;
    }

    .hiw2-list {
        margin-left: 22px;
        font-size: 18px;
    }

    .hiw2-closing {
        margin-top: 4px;
        text-align: left;
    }
}
