:root {
    --how-works-text: #1d2742;
    --how-works-muted: #4f5870;
    --how-works-border: rgba(30, 39, 66, 0.08);
    --how-works-shadow: 0 24px 60px rgba(33, 42, 74, 0.1);
    --how-works-card-shadow: 0 18px 40px rgba(28, 38, 70, 0.08);
    --how-works-yellow: #ffd84c;
    --how-works-yellow-deep: #f3c41a;
    --how-works-green: #d9f0d7;
    --how-works-blue: #dfe9fb;
    --how-works-check: #67b15f;
}

.how-works-page {
    position: relative;
    overflow: hidden;
    padding-bottom: 48px;
}

.how-works-page::before,
.how-works-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(10px);
}

.how-works-page::before {
    top: 110px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 216, 76, 0.2) 0%, rgba(255, 216, 76, 0) 72%);
}

.how-works-page::after {
    right: -90px;
    bottom: 80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(83, 133, 255, 0.12) 0%, rgba(83, 133, 255, 0) 70%);
}

.how-works-shell {
    max-width: 1320px;
}

.how-works-hero {
    padding: 0px 0 22px;
}

.how-works-heading {
    position: relative;
    text-align: center;
    z-index: 1;
}

.how-works-heading h1 {
    margin: 0;
    color: var(--how-works-text);
    /* font-size: 72px; */
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.how-works-heading h1::before {
    content: "";
    position: absolute;
    top: -42px;
    left: 50%;
    width: 560px;
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.08) 72%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.how-works-heading h1::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
}

.how-works-heading h1 span,
.how-works-subtitle span {
    color: #1662c4;
}

.how-works-subtitle {
    margin: 22px 0 0;
    color: var(--how-works-text);
    font-size: 31px;
    line-height: 1.4;
    font-weight: 500;
}

.how-works-subtitle span {
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.how-works-subtitle span::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 2px;
    bottom: -8px;
    height: 10px;
    border-radius: 999px;
    border-bottom: 4px solid #2c84e6;
    transform: rotate(-1.5deg);
}

.how-works-copy {
    max-width: 850px;
    margin: 24px auto 0;
    color: var(--how-works-muted);
    font-size: 21px;
    line-height: 1.7;
}

.how-works-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 72px -14px 0;
}

.how-works-col {
    display: flex;
    padding: 14px;
}

.how-works-card {
    position: relative;
    width: 100%;
    min-height: 370px;
    padding: 92px 38px 34px;
    border: 1px solid var(--how-works-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--how-works-card-shadow);
    text-align: center;
}

.how-works-step {
    position: absolute;
    top: -28px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-left: -41px;
    border-radius: 50%;
    color: var(--how-works-text);
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(36, 47, 80, 0.08);
}

.how-works-step-sun {
    background: linear-gradient(180deg, #ffe991 0%, #ffde58 100%);
}

.how-works-step-mint {
    background: linear-gradient(180deg, #ddf1d4 0%, #c9eab8 100%);
}

.how-works-step-sky {
    background: linear-gradient(180deg, #e5eefb 0%, #d8e5fb 100%);
}

.how-works-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 112px;
    margin-bottom: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(246, 249, 255, 0.86) 0%, rgba(241, 245, 252, 0.74) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.how-works-icon-image {
    max-width: 100%;
    /* max-height: 94px; */
    object-fit: contain;
}

.how-works-card h2 {
    margin: 0 0 22px;
    color: var(--how-works-text);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.how-works-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.how-works-card li {
    position: relative;
    padding-left: 40px;
    color: var(--how-works-text);
    font-size: 18px;
    line-height: 1.55;
}

.how-works-card li+li {
    margin-top: 12px;
}

.how-works-card li::before {
    content: "\f00c";
    position: absolute;
    top: 2px;
    left: 0;
    color: var(--how-works-check);
    font: normal normal normal 22px/1 FontAwesome;
}

.how-works-cta-wrap {
    position: relative;
    margin: 52px auto 0;
    text-align: center;
}

.how-works-primary-cta,
.how-works-primary-cta:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    /* min-width: 760px; */
    padding: 15px 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--how-works-yellow) 0%, var(--how-works-yellow-deep) 100%);
    box-shadow: 0 12px 26px rgba(190, 140, 0, 0.28);
    color: #221d0a;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-works-primary-cta:hover,
.how-works-primary-cta:focus {
    color: #221d0a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(190, 140, 0, 0.34);
}

.how-works-primary-cta span {
    font-size: 34px;
}

.how-works-trial-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 22px 0 0;
    color: var(--how-works-text);
    font-size: 18px;
}

.how-works-trial-meta span {
    position: relative;
}

.how-works-trial-meta span+span::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    border-radius: 50%;
    background: #a8afbe;
}

.how-works-detail {
    padding: 26px 0 0;
}

.how-works-detail-card {
    height: 100%;
    padding: 34px 36px;
    border: 1px solid rgba(28, 39, 68, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--how-works-shadow);
}

.how-works-detail-card-alt {
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.94) 0%, rgba(240, 247, 255, 0.94) 100%);
}

.how-works-detail-card h2 {
    margin: 0 0 16px;
    color: var(--how-works-text);
    font-size: 20px;
    line-height: 1.16;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.how-works-detail-card p {
    margin: 0;
    color: var(--how-works-muted);
    font-size: 16px;
    line-height: 1.7;
}

.how-works-secondary-link,
.how-works-secondary-link:focus {
    display: inline-block;
    margin-top: 18px;
    color: #1662c4;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.how-works-secondary-link:hover,
.how-works-secondary-link:focus {
    color: #0f4f9e;
    text-decoration: none;
}

@media (max-width: 1199px) {
    .how-works-heading h1 {
        font-size: 60px;
    }

    .how-works-subtitle {
        font-size: 28px;
    }

    .how-works-primary-cta,
    .how-works-primary-cta:focus {
        min-width: 100%;
        max-width: 760px;
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .how-works-hero {
        padding-top: 32px;
    }

    .how-works-heading h1 {
        font-size: 48px;
    }

    .how-works-subtitle {
        font-size: 24px;
    }

    .how-works-copy {
        font-size: 19px;
    }

    .how-works-grid {
        margin-top: 52px;
    }

    .how-works-col {
        padding-top: 36px;
    }

    .how-works-card {
        min-height: 0;
    }

    .how-works-primary-cta,
    .how-works-primary-cta:focus {
        min-width: 0;
        padding: 22px 24px;
        font-size: 24px;
    }

    .how-works-primary-cta span {
        font-size: 28px;
    }

    .how-works-detail-card {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .how-works-heading h1 {
        font-size: 40px;
    }

    .how-works-heading h1::before {
        width: 320px;
        height: 120px;
        top: -20px;
    }

    .how-works-subtitle {
        font-size: 21px;
    }

    .how-works-copy {
        font-size: 17px;
        line-height: 1.65;
    }

    .how-works-grid {
        margin-left: -8px;
        margin-right: -8px;
    }

    .how-works-col {
        padding: 32px 8px 0;
    }

    .how-works-card {
        padding: 82px 24px 28px;
    }

    .how-works-step {
        width: 72px;
        height: 72px;
        margin-left: -36px;
        font-size: 34px;
    }

    .how-works-icon {
        width: 112px;
        height: 96px;
    }

    .how-works-icon-image {
        max-height: 78px;
    }

    .how-works-card h2,
    .how-works-detail-card h2 {
        font-size: 30px;
    }

    .how-works-card li,
    .how-works-detail-card p {
        font-size: 18px;
    }

    .how-works-primary-cta,
    .how-works-primary-cta:focus {
        gap: 10px;
        padding: 20px 18px;
        font-size: 20px;
        border-radius: 28px;
    }

    .how-works-primary-cta span {
        font-size: 24px;
    }

    .how-works-trial-meta {
        flex-direction: column;
        gap: 8px;
    }

    .how-works-trial-meta span+span::before {
        display: none;
    }

    .how-works-detail {
        padding-top: 12px;
    }

    .how-works-detail-card {
        padding: 28px 24px;
    }
}