/*-----------------------------------------------------------------------------------
    Homepage feature blocks (wallets, personal debts, upcoming payments)
    Scoped to .feature_block so nothing leaks into other sections.
-----------------------------------------------------------------------------------*/

.feature_block {
    position: relative;
    padding: 70px 0;
}

.feature_block--alt {
    background-color: var(--light-purple);
}

.feature_block .fb_row {
    align-items: center;
}

/* ---------------- Text column ---------------- */

.fb_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(106, 73, 242, .08);
    color: var(--purple);
    border: 1px solid rgba(106, 73, 242, .16);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 14px;
}

.fb_eyebrow i {
    font-size: 12px;
}

.feature_block .fb_title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--dark-purple);
    margin-bottom: 14px;
}

.feature_block .fb_title span {
    color: var(--purple);
}

.feature_block .fb_lead {
    font-size: 16px;
    line-height: 2;
    color: #5b5c7e;
    margin-bottom: 22px;
}

.feature_block .fb_list {
    margin: 0 0 26px;
}

.feature_block .fb_list li {
    position: relative;
    padding-inline-start: 34px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--body-text-purple);
}

.feature_block .fb_list li:last-child {
    margin-bottom: 0;
}

.feature_block .fb_list li i {
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(106, 73, 242, .1);
    color: var(--purple);
    font-size: 10px;
    line-height: 22px;
    text-align: center;
}

.feature_block .fb_cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--purple);
    color: #fff;
    border: 1px solid var(--purple);
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature_block .fb_cta:hover,
.feature_block .fb_cta:focus {
    background-color: #5938d8;
    border-color: #5938d8;
    color: #fff;
    box-shadow: 0 10px 22px rgba(106, 73, 242, .28);
}

/* ---------------- Visual column ---------------- */

.feature_block .fb_visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.feature_block .fb_mock {
    position: relative;
    width: 100%;
    max-width: 430px;
}

.feature_block .fb_glow {
    position: absolute;
    inset: -10% -6%;
    background: radial-gradient(closest-side, rgba(106, 73, 242, .16), rgba(106, 73, 242, 0) 72%);
    z-index: 0;
}

.feature_block .fb_window {
    position: relative;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #ECE8FA;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(50, 35, 111, .12);
    padding: 18px;
}

.feature_block .fb_window_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0EDFA;
    margin-bottom: 6px;
}

.feature_block .fb_window_head b {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-purple);
}

.feature_block .fb_pill {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.9;
    border-radius: 50px;
    padding: 2px 10px;
    background-color: rgba(106, 73, 242, .08);
    color: var(--purple);
    white-space: nowrap;
}

.feature_block .fb_pill--warn {
    background-color: #FFF4DC;
    color: #92600B;
}

/* wallet rows */
.feature_block .fb_row_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
}

.feature_block .fb_row_item + .fb_row_item {
    border-top: 1px dashed #F0EDFA;
}

.feature_block .fb_icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background-color: #F5F2FF;
    color: var(--purple);
    font-size: 14px;
    line-height: 36px;
    text-align: center;
}

.feature_block .fb_meta {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
}

.feature_block .fb_meta b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.9;
    color: var(--dark-purple);
}

.feature_block .fb_meta span {
    display: block;
    font-size: 11px;
    line-height: 1.8;
    color: #8B8CA8;
}

.feature_block .fb_amount {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-purple);
}

.feature_block .fb_note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background-color: #F5F2FF;
    font-size: 11.5px;
    line-height: 1.9;
    color: #5b5c7e;
}

.feature_block .fb_note i {
    color: var(--purple);
}

.feature_block .fb_amount--footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #F0EDFA;
    font-size: 12px;
    color: #8B8CA8;
}

.feature_block .fb_amount--footer b {
    font-size: 14px;
    color: var(--purple);
}

/* status tags (debts) */
.feature_block .fb_tag {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.9;
    border-radius: 8px;
    padding: 3px 9px;
    white-space: nowrap;
}

.feature_block .fb_tag--credit {
    background-color: #E9F7EF;
    color: #1E7A46;
}

.feature_block .fb_tag--debt {
    background-color: #FDECEC;
    color: #B02A2A;
}

.feature_block .fb_avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(106, 73, 242, .12);
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
}

/* upcoming payment rows */
.feature_block .fb_dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--purple);
    margin: 0 4px;
}

.feature_block .fb_dot--warn {
    background-color: #E9A61B;
}

.feature_block .fb_dot--muted {
    background-color: #C9C6DB;
}

/* ---------------- Responsive ---------------- */

@media (min-width: 992px) {
    .feature_block--flip .fb_text {
        order: 2;
    }

    .feature_block--flip .fb_visual {
        order: 1;
    }
}

@media screen and (max-width: 991px) {
    .feature_block {
        padding: 55px 0;
    }

    .feature_block .fb_visual {
        margin-top: 34px;
    }

    .feature_block .fb_mock {
        max-width: 470px;
    }

    .feature_block .fb_title {
        font-size: 30px;
    }
}

@media screen and (max-width: 575px) {
    .feature_block {
        padding: 45px 0;
    }

    .feature_block .fb_title {
        font-size: 25px;
    }

    .feature_block .fb_lead {
        font-size: 15px;
    }

    .feature_block .fb_window {
        padding: 14px;
    }

    .feature_block .fb_amount {
        font-size: 12px;
    }
}

/* Below 768px the theme centres all body text; keep the evidence lists readable */
@media screen and (max-width: 767px) {
    .feature_block .fb_list,
    .feature_block .fb_note {
        text-align: start;
    }
}

/* Eyebrow chips are also used inside the existing group and investment sections */
.section_title .fb_eyebrow {
    margin-bottom: 10px;
}

/* ---------------- Motion ----------------
   The feature mockups float gently, matching the moving screenshots in the
   older sections (moving_position_animatin: 30px / 6s), but with a smaller
   travel so the pricing text next to them stays calm. */

@keyframes fb_float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fb_glow_pulse {
    0%,
    100% {
        opacity: .7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.feature_block .fb_mock {
    animation: fb_float 8s ease-in-out infinite;
    will-change: transform;
}

.feature_block .fb_glow {
    animation: fb_glow_pulse 7s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Stagger the three blocks so they do not move in lockstep */
#wallets .fb_mock {
    animation-delay: 0s;
}

#debts .fb_mock {
    animation-delay: 1.4s;
}

#upcoming .fb_mock {
    animation-delay: 2.8s;
}

#wallets .fb_glow {
    animation-delay: .6s;
}

#debts .fb_glow {
    animation-delay: 2s;
}

#upcoming .fb_glow {
    animation-delay: 3.4s;
}

@media (prefers-reduced-motion: reduce) {
    .feature_block .fb_mock,
    .feature_block .fb_glow {
        animation: none;
    }
}

/* Link from the homepage features section to the full features hub */
.features_section .feature_more {
    margin-top: 42px;
    text-align: center;
}

.features_section .feature_more_link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 28px;
    border: 1px solid var(--purple);
    border-radius: 50px;
    background-color: #fff;
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.features_section .feature_more_link:hover,
.features_section .feature_more_link:focus {
    background-color: var(--purple);
    color: #fff;
    box-shadow: 0 12px 24px rgba(106, 73, 242, .22);
}
