/* =========================================================
   RETIREMENTIZE - HOW IT WORKS
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.how-it-works-page {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 28px 32px 50px;

    box-sizing: border-box;

    font-family: "Roboto", sans-serif;
    color: #1e293b;
}


/* =========================================================
   HERO
   ========================================================= */

.how-hero {
    width: 100%;

    margin-bottom: 30px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);

    overflow: hidden;
}

.how-hero-content {
    display: flex;
    align-items: center;

    gap: 24px;

    padding: 30px 36px;
}

.how-hero-icon {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #001f3f;

    border-radius: 50%;

    color: #ffffff;

    font-size: 32px;
    font-weight: 700;

    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.20);
}

.how-hero-icon span {
    display: block;
    transform: translateY(-1px);
}

.how-hero h1 {
    margin: 0 0 7px;

    color: #001f3f;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.how-hero p {
    max-width: 720px;

    margin: 0;

    color: #64748b;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   SECTION
   ========================================================= */

.how-section {
    margin-bottom: 32px;
}

.how-section-heading {
    margin-bottom: 24px;

    text-align: center;
}

.how-section-heading h2 {
    margin: 0 0 7px;

    color: #001f3f;

    font-size: 23px;
    font-weight: 700;
}

.how-section-heading p {
    max-width: 680px;

    margin: 0 auto;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   FIVE STEPS
   ========================================================= */

.how-steps {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   STEP CARD
   ========================================================= */

.how-step {
    position: relative;

    min-width: 0;

    padding: 26px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* =========================================================
   LAST CARD
   ========================================================= */

.how-step:last-child {
    grid-column: 1 / -1;

    width: calc(50% - 11px);

    justify-self: center;
}


/* =========================================================
   STEP NUMBER
   ========================================================= */

.how-step-number {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #001f3f;

    border-radius: 50%;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    z-index: 2;
}


/* =========================================================
   STEP TEXT
   ========================================================= */

.how-step-content {
    padding-right: 42px;

    margin-bottom: 20px;
}

.how-step-content h3 {
    margin: 0 0 8px;

    color: #001f3f;

    font-size: 18px;
    font-weight: 700;
}

.how-step-content p {
    max-width: 600px;

    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   SCREENSHOT
   ========================================================= */

.how-step-image {
    width: 100%;

    padding: 10px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    box-sizing: border-box;

    text-align: center;

    overflow: hidden;
}

.how-step-image img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    margin: 0 auto;

    border-radius: 4px;

    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.how-cta {
    margin-top: 32px;

    padding: 35px 25px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.how-cta-content h2 {
    margin: 0 0 7px;

    color: #001f3f;

    font-size: 22px;
    font-weight: 700;
}

.how-cta-content p {
    margin: 0 0 20px;

    color: #64748b;

    font-size: 14px;
}

.how-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 25px;

    background: #001f3f;

    border-radius: 6px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.how-cta-button:hover {
    background: #003b70;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.20);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .how-it-works-page {
        padding: 24px 24px 45px;
    }

    .how-steps {
        grid-template-columns: 1fr;
    }

    .how-step:last-child {
        grid-column: auto;

        width: 100%;

        justify-self: stretch;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .how-it-works-page {
        padding: 18px 16px 35px;
    }

    .how-hero-content {
        align-items: flex-start;

        padding: 24px 22px;

        gap: 17px;
    }

    .how-hero-icon {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        font-size: 25px;
    }

    .how-hero h1 {
        font-size: 23px;
    }

    .how-hero p {
        font-size: 13px;
    }

    .how-section-heading {
        margin-bottom: 18px;
    }

    .how-section-heading h2 {
        font-size: 20px;
    }

    .how-section-heading p {
        font-size: 13px;
    }

    .how-step {
        padding: 21px;
    }

    .how-step-content {
        padding-right: 38px;

        margin-bottom: 17px;
    }

    .how-step-content h3 {
        font-size: 17px;
    }

    .how-step-content p {
        font-size: 12.5px;
    }

    .how-step-image {
        padding: 7px;
    }

    .how-cta {
        padding: 30px 20px;
    }

    .how-cta-content h2 {
        font-size: 20px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .how-it-works-page {
        padding: 14px 12px 30px;
    }

    .how-hero {
        margin-bottom: 22px;
    }

    .how-hero-content {
        display: block;

        padding: 22px 18px;

        text-align: center;
    }

    .how-hero-icon {
        margin: 0 auto 14px;
    }

    .how-hero h1 {
        font-size: 21px;
    }

    .how-hero p {
        font-size: 12.5px;
    }

    .how-step {
        padding: 18px;
    }

    .how-step-number {
        top: 15px;
        right: 15px;

        width: 29px;
        height: 29px;

        font-size: 12px;
    }

    .how-step-content {
        padding-right: 35px;
    }

    .how-step-content h3 {
        font-size: 16px;
    }

    .how-step-content p {
        font-size: 12px;
    }

    .how-step-image {
        padding: 5px;
    }

    .how-cta {
        padding: 27px 16px;
    }
}


/* =========================================================
   PUBLIC PAGE OFFSET
   Keeps content below the fixed 70px header
   ========================================================= */

.public-page-content {
    width: 100%;
    padding-top: 70px;
    box-sizing: border-box;
}