/*
|--------------------------------------------------------------------------
| ToolVerse - Financial Tools
|--------------------------------------------------------------------------
| Scope:
| - ONLY .tv-financial-tools
| - No CSS leak into other sections/pages
| - Fully responsive
| - Lightweight hover effects only
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   SECTION
   ========================================================================== */

.tv-financial-tools {
    position: relative;
    width: 100%;
    overflow: hidden;

    padding:
        82px
        0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.tv-financial-tools__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(420px, 1.08fr);

    align-items: start;

    gap: 64px;
}


/* ==========================================================================
   INTRO
   ========================================================================== */

.tv-financial-tools__intro {
    position: sticky;
    top: calc(var(--tv-header-height) + 26px);

    min-width: 0;
}


/* ==========================================================================
   EYEBROW
   ========================================================================== */

.tv-financial-tools__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding:
        0
        11px;

    border:
        1px solid
        rgba(99, 91, 255, 0.13);

    border-radius: 999px;

    background:
        var(--tv-color-primary-soft);

    color:
        var(--tv-color-primary-dark);

    font-size: 10px;
    font-weight: 750;

    line-height: 1;

    letter-spacing: 0.2px;
}


/* ==========================================================================
   TITLE
   ========================================================================== */

.tv-financial-tools__title {
    max-width: 560px;

    margin:
        15px
        0
        0;

    color:
        var(--tv-color-heading);

    font-size:
        clamp(
            30px,
            3.5vw,
            44px
        );

    font-weight: 820;

    line-height: 1.12;

    letter-spacing: -1.5px;
}


/* ==========================================================================
   DESCRIPTION
   ========================================================================== */

.tv-financial-tools__description {
    max-width: 560px;

    margin:
        15px
        0
        0;

    color:
        var(--tv-color-muted);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.75;
}


/* ==========================================================================
   FEATURES
   ========================================================================== */

.tv-financial-tools__features {
    display: grid;

    gap: 12px;

    margin-top: 28px;
}

.tv-financial-tools__feature {
    display: flex;
    align-items: flex-start;

    gap: 11px;
}

.tv-financial-tools__feature-icon {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    flex:
        0
        0
        28px;

    border-radius: 9px;

    background:
        var(--tv-color-accent-soft);

    color:
        var(--tv-color-success);

    font-size: 12px;
    font-weight: 850;

    line-height: 1;
}

.tv-financial-tools__feature > div {
    min-width: 0;
}

.tv-financial-tools__feature strong {
    display: block;

    color:
        var(--tv-color-heading);

    font-size: 12px;
    font-weight: 760;

    line-height: 1.4;
}

.tv-financial-tools__feature span:not(.tv-financial-tools__feature-icon) {
    display: block;

    margin-top: 2px;

    color:
        var(--tv-color-muted);

    font-size: 10px;
    font-weight: 400;

    line-height: 1.5;
}


/* ==========================================================================
   BROWSE BUTTON
   ========================================================================== */

.tv-financial-tools__browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 43px;

    margin-top: 30px;

    padding:
        0
        15px;

    border:
        1px solid
        var(--tv-color-border);

    border-radius: 999px;

    background:
        #ffffff;

    color:
        var(--tv-color-heading);

    font-size: 11px;
    font-weight: 720;

    line-height: 1;

    box-shadow:
        0 4px 12px
        rgba(16, 24, 40, 0.04);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.tv-financial-tools__browse > span {
    color:
        var(--tv-color-primary);

    font-size: 15px;

    line-height: 1;

    transition:
        transform 180ms ease;
}

.tv-financial-tools__browse:hover {
    border-color:
        rgba(99, 91, 255, 0.18);

    background:
        var(--tv-color-primary-soft);

    color:
        var(--tv-color-primary-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(16, 24, 40, 0.06);
}

.tv-financial-tools__browse:hover > span {
    transform:
        translateX(3px);
}


/* ==========================================================================
   TOOL LIST
   ========================================================================== */

.tv-financial-tools__list {
    display: grid;

    gap: 12px;
}


/* ==========================================================================
   TOOL ITEM
   ========================================================================== */

.tv-financial-tools__item {
    position: relative;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 14px;

    min-height: 86px;

    padding:
        15px
        16px;

    overflow: hidden;

    border:
        1px solid
        rgba(222, 227, 235, 0.95);

    border-radius: 17px;

    background:
        #ffffff;

    box-shadow:
        0 5px 16px
        rgba(16, 24, 40, 0.04);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}


/* subtle glow */

.tv-financial-tools__item::before {
    content: "";

    position: absolute;

    top: 50%;
    right: -70px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.07),
            transparent 68%
        );

    transform:
        translateY(-50%);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 180ms ease;
}

.tv-financial-tools__item:hover {
    border-color:
        rgba(99, 91, 255, 0.18);

    transform:
        translateY(-2px);

    box-shadow:
        0 11px 24px
        rgba(16, 24, 40, 0.07);
}

.tv-financial-tools__item:hover::before {
    opacity: 1;
}


/* ==========================================================================
   ICON
   ========================================================================== */

.tv-financial-tools__icon {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    flex:
        0
        0
        46px;

    border-radius: 14px;

    background:
        var(--tv-color-primary-soft);

    color:
        var(--tv-color-primary-dark);
}

.tv-financial-tools__icon svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.75;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.tv-financial-tools__item-content {
    position: relative;
    z-index: 2;

    display: block;

    min-width: 0;
}

.tv-financial-tools__item-content strong {
    display: block;

    color:
        var(--tv-color-heading);

    font-size: 14px;
    font-weight: 760;

    line-height: 1.35;

    letter-spacing: -0.2px;

    transition:
        color 180ms ease;
}

.tv-financial-tools__item-content small {
    display: block;

    margin-top: 4px;

    color:
        var(--tv-color-muted);

    font-size: 10px;
    font-weight: 400;

    line-height: 1.5;
}

.tv-financial-tools__item:hover
.tv-financial-tools__item-content strong {
    color:
        var(--tv-color-primary-dark);
}


/* ==========================================================================
   ARROW
   ========================================================================== */

.tv-financial-tools__arrow {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    flex:
        0
        0
        34px;

    border:
        1px solid
        var(--tv-color-border);

    border-radius: 11px;

    background:
        #fafbfc;

    color:
        var(--tv-color-primary);

    font-size: 16px;

    line-height: 1;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.tv-financial-tools__item:hover
.tv-financial-tools__arrow {
    border-color:
        rgba(99, 91, 255, 0.16);

    background:
        var(--tv-color-primary-soft);

    transform:
        translateX(3px);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {

    .tv-financial-tools {
        padding:
            70px
            0;
    }

    .tv-financial-tools__layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .tv-financial-tools__intro {
        position: static;

        max-width: 720px;
    }

    .tv-financial-tools__title {
        max-width: 620px;
    }

    .tv-financial-tools__description {
        max-width: 650px;
    }

    .tv-financial-tools__features {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 15px;
    }

    .tv-financial-tools__feature {
        padding: 13px;

        border:
            1px solid
            var(--tv-color-border);

        border-radius: 14px;

        background:
            #ffffff;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .tv-financial-tools {
        padding:
            54px
            0
            60px;
    }

    .tv-financial-tools__layout {
        gap: 32px;
    }

    .tv-financial-tools__eyebrow {
        min-height: 28px;

        font-size: 9px;
    }

    .tv-financial-tools__title {
        margin-top: 12px;

        font-size:
            clamp(
                26px,
                7.5vw,
                33px
            );

        letter-spacing: -1px;
    }

    .tv-financial-tools__description {
        margin-top: 11px;

        font-size: 12px;

        line-height: 1.65;
    }

    .tv-financial-tools__features {
        grid-template-columns: 1fr;

        gap: 9px;

        margin-top: 22px;
    }

    .tv-financial-tools__feature {
        padding: 11px;
    }

    .tv-financial-tools__browse {
        margin-top: 23px;
    }

    .tv-financial-tools__item {
        min-height: 78px;

        gap: 12px;

        padding:
            13px
            14px;

        border-radius: 15px;
    }

    .tv-financial-tools__icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        border-radius: 12px;
    }

    .tv-financial-tools__icon svg {
        width: 20px;
        height: 20px;
    }

    .tv-financial-tools__item-content strong {
        font-size: 13px;
    }

    .tv-financial-tools__item-content small {
        font-size: 9px;
    }

    .tv-financial-tools__arrow {
        width: 32px;
        height: 32px;

        flex-basis: 32px;

        border-radius: 10px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 420px) {

    .tv-financial-tools {
        padding:
            48px
            0
            54px;
    }

    .tv-financial-tools__title {
        font-size: 25px;
    }

    .tv-financial-tools__item {
        min-height: 74px;

        padding:
            12px;
    }

    .tv-financial-tools__icon {
        width: 39px;
        height: 39px;

        flex-basis: 39px;
    }

    .tv-financial-tools__arrow {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tv-financial-tools__browse,
    .tv-financial-tools__browse > span,
    .tv-financial-tools__item,
    .tv-financial-tools__item::before,
    .tv-financial-tools__item-content strong,
    .tv-financial-tools__arrow {
        transition: none;
    }

    .tv-financial-tools__browse:hover,
    .tv-financial-tools__item:hover,
    .tv-financial-tools__item:hover
    .tv-financial-tools__arrow {
        transform: none;
    }
}