:root {
    --ink: #14251e;
    --muted: #65766e;
    --paper: #f4f1e8;
    --card: #fffdf8;
    --line: #dce2d9;
    --green: #0d5f34;
    --lime: #95ba36;
    --gold: #e7ae58;
    --navy: #0d2630;
    --shadow: 0 24px 70px rgba(18,47,34,.12)
}

/* Finance category SEO content */
.finance-category-intro,
.finance-category-content,
.finance-category-topics,
.finance-category-guide,
.finance-category-explainer,
.finance-category-faq {
    padding: 72px 0;
}

.finance-category-intro {
    background: #f3f7ec;
    border-top: 1px solid #dfe8d4;
}

.finance-category-intro h1 {
    max-width: 900px;
    margin: 10px 0 20px;
    color: #0d1f34;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.finance-category-lead,
.finance-category-intro > .shell > p:last-child {
    max-width: 850px;
    color: #4d5c53;
    font-size: 1.08rem;
    line-height: 1.75;
}

.finance-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 56px;
    align-items: center;
}

.finance-category-content h2,
.finance-category-guide h2,
.finance-category-explainer h2,
.finance-category-faq h2,
.finance-section-heading h2 {
    color: #0d1f34;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.finance-category-content p,
.finance-category-explainer p {
    color: #536159;
    line-height: 1.75;
}

.finance-callout {
    padding: 32px;
    border-radius: 24px;
    background: #0d5f34;
    color: #fff;
    box-shadow: 0 18px 42px rgba(13, 31, 52, .14);
}

.finance-callout span {
    color: #cde69a;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.finance-callout h2,
.finance-callout p {
    color: #fff;
}

.finance-callout a {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    font-weight: 800;
}

.finance-category-topics,
.finance-category-faq {
    background: #0d1f34;
    color: #fff;
}

.finance-category-topics .eyebrow,
.finance-category-faq .eyebrow {
    color: #b9d879;
}

.finance-category-topics h2,
.finance-category-faq h2 {
    color: #fff;
}

.finance-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.finance-topic-grid article {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
}

.finance-topic-grid article > span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 12px;
    background: #95ba36;
    color: #0d1f34;
    font-weight: 900;
}

.finance-topic-grid h3 {
    margin: 0 0 10px;
    color: #fff;
}

.finance-topic-grid p {
    margin: 0;
    color: #c5d0ca;
    line-height: 1.65;
}

.mortgage-tool-links article {
    display: flex;
    flex-direction: column;
}

.mortgage-tool-links article a {
    margin-top: auto;
    padding-top: 18px;
    color: #b9d879;
    font-weight: 800;
}

.mortgage-planning-section {
    border-top: 1px solid #e2e8e3;
}

.mortgage-checklist {
    padding: 30px;
    border: 1px solid #dbe4dc;
    border-radius: 22px;
    background: #f3f7ec;
}

.mortgage-checklist h3 {
    margin-top: 0;
    color: #0d1f34;
    font-size: 1.35rem;
}

.mortgage-checklist ul {
    margin: 0;
    padding-left: 20px;
    color: #536159;
    line-height: 1.85;
}

.finance-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.finance-steps article {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid #dde5df;
    border-radius: 18px;
}

.finance-steps strong {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #95ba36;
    color: #0d1f34;
}

.finance-steps h3 {
    margin: 2px 0 8px;
    color: #0d1f34;
}

.finance-steps p {
    margin: 0;
    color: #5a675f;
    line-height: 1.6;
}

.finance-category-explainer {
    background: #f7f8f5;
}

.finance-category-explainer .shell {
    max-width: 920px;
}

.finance-category-explainer h2:not(:first-child) {
    margin-top: 44px;
}

.finance-faq-list {
    margin-top: 28px;
}

.finance-faq-list details {
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.finance-faq-list details:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.finance-faq-list summary {
    padding: 20px 0;
    cursor: pointer;
    color: #fff;
    font-weight: 750;
}

.finance-faq-list details p {
    max-width: 880px;
    margin: -4px 0 22px;
    color: #c5d0ca;
    line-height: 1.7;
}

@media (max-width: 820px) {
    .finance-content-grid,
    .finance-topic-grid,
    .finance-steps {
        grid-template-columns: 1fr;
    }

    .finance-category-intro,
    .finance-category-content,
    .finance-category-topics,
    .finance-category-guide,
    .finance-category-explainer,
    .finance-category-faq {
        padding: 52px 0;
    }
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif
}

a {
    color: inherit
}

button, input {
    font: inherit
}

.sr, .skip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

    .skip:focus {
        position: fixed;
        width: auto;
        height: auto;
        clip: auto;
        left: 12px;
        top: 12px;
        z-index: 99;
        padding: 9px 14px;
        background: #fff;
        border-radius: 8px
    }


.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 7% 10%,rgba(149,186,54,.18),transparent 25%),radial-gradient(circle at 92% 85%,rgba(231,174,88,.2),transparent 26%),linear-gradient(135deg,#faf8f1,#edf2e6);
    border-bottom: 1px solid rgba(25,67,46,.1)
}

.hero-in {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    min-height: 650px;
    margin: auto;
    padding: 90px 24px 80px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 65px
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase
}

    .eyebrow:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        width: 28px;
        height: 2px;
        background: var(--lime);
        margin-right: 10px
    }

.hero h1 {
    margin: 0;
    font: 700 clamp(52px,7vw,88px)/.93 Georgia,serif;
    letter-spacing: -.055em
}

    .hero h1 em {
        color: var(--green);
        font-weight: inherit
    }

.lead {
    max-width: 650px;
    margin: 26px 0 30px;
    color: var(--muted);
    font-size: 17px
}

.search {
    max-width: 660px;
    height: 64px;
    padding: 7px 7px 7px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(20,75,47,.16);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(22,66,44,.11)
}

.glass {
    color: #718078;
    flex: none
}

.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink)
}

.search button {
    height: 48px;
    padding: 0 23px;
    border: 0;
    border-radius: 11px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    cursor: pointer
}

.search:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(13,95,52,.09),0 14px 40px rgba(22,66,44,.11)
}

.quick {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #839087;
    font-size: 11px
}

    .quick button {
        border: 0;
        background: #e5ede3;
        color: #496256;
        border-radius: 20px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 11px;
        font-weight: 700
    }

.hero-art {
    position: relative;
    min-height: 410px
}

.preview-main, .formula, .stat {
    position: absolute;
    box-shadow: var(--shadow)
}

.preview-main {
    width: 330px;
    right: 18px;
    top: 45px;
    padding: 28px;
    background: var(--green);
    color: #fff;
    border-radius: 28px;
    transform: rotate(2deg)
}

    .preview-main small {
        color: #c9dfd1;
        text-transform: uppercase;
        letter-spacing: .09em;
        font-weight: 800
    }

    .preview-main > strong {
        display: block;
        margin-top: 27px;
        font: 700 47px Georgia,serif
    }

    .preview-main > span {
        color: #bcd2c4;
        font-size: 12px
    }

.bars {
    height: 95px;
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.18)
}

    .bars i {
        flex: 1;
        background: var(--lime);
        border-radius: 4px 4px 0 0
    }

        .bars i:nth-child(1) {
            height: 30%
        }

        .bars i:nth-child(2) {
            height: 45%
        }

        .bars i:nth-child(3) {
            height: 39%
        }

        .bars i:nth-child(4) {
            height: 60%
        }

        .bars i:nth-child(5) {
            height: 70%
        }

        .bars i:nth-child(6) {
            height: 88%
        }

.formula {
    left: 5px;
    top: 8px;
    width: 180px;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
    transform: rotate(-5deg)
}

    .formula small, .stat small {
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .08em
    }

    .formula b {
        display: block;
        margin-top: 9px;
        font: 700 29px Georgia,serif
    }

.stat {
    left: 0;
    bottom: 20px;
    width: 195px;
    padding: 19px;
    background: #e8d2ad;
    border-radius: 18px;
    transform: rotate(3deg)
}

    .stat b {
        display: block;
        font: 700 27px Georgia,serif;
        margin: 6px 0
    }

    .stat div {
        height: 32px;
        display: flex;
        align-items: end;
        gap: 5px
    }

    .stat i {
        flex: 1;
        background: #aa7348;
        border-radius: 3px
    }

        .stat i:nth-child(1) {
            height: 35%
        }

        .stat i:nth-child(2) {
            height: 70%
        }

        .stat i:nth-child(3) {
            height: 100%
        }

        .stat i:nth-child(4) {
            height: 55%
        }

.badge {
    position: absolute;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(18,47,34,.14);
    color: var(--green);
    font-weight: 900
}

    .badge span {
        color: var(--muted);
        font-size: 9px;
        line-height: 1.1;
        text-transform: uppercase
    }

.math-mark {
    position: absolute;
    color: rgba(13,95,52,.07);
    font: 700 120px Georgia,serif
}

.mark-a {
    left: -22px;
    bottom: -37px
}

.mark-b {
    right: 2%;
    top: -42px
}

.shell {
    max-width: 1220px;
    margin: auto;
    padding: 88px 24px
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 38px
}

    .heading h2, .why h2 {
        max-width: 720px;
        margin: 0;
        font: 700 clamp(35px,4vw,52px)/1.05 Georgia,serif;
        letter-spacing: -.035em
    }

    .heading > p {
        max-width: 350px;
        margin: 0;
        color: var(--muted)
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.category {
    position: relative;
    min-height: 250px;
    padding: 24px;
    border: 1px solid rgba(29,69,48,.12);
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: .25s;
    background-color:#eee;
}

    .category:after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        border: 25px solid rgba(255,255,255,.28);
        border-radius: 50%;
        right: -48px;
        bottom: -49px
    }

    .category:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 35px rgba(18,47,34,.09)
    }

    .category .icon {
        display: grid;
        place-items: center;
        width: 43px;
        height: 43px;
        border-radius: 13px;
        background: rgba(255,255,255,.64);
        font: 800 16px Georgia,serif
    }

    .category .dna {
        font-size: 10px
    }

    .category small {
        position: absolute;
        right: 20px;
        top: 20px;
        padding: 5px 8px;
        border-radius: 20px;
        background: rgba(255,255,255,.54);
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase
    }

    .category h3 {
        margin: 27px 0 7px;
        font: 700 24px Georgia,serif
    }

    .category p {
        max-width: 310px;
        margin: 0;
        color: #52645b;
        font-size: 13px
    }

    .category b, .tool b {
        position: absolute;
        left: 24px;
        bottom: 19px;
        color: var(--green);
        font-size: 11px
    }

.finance, .mortgage-and-home {
    background: #dcebd9
}

.math {
    background: #eee0c7
}

.statistics {
    background: #dfddd1
}

.computing {
    background: #dce7ea
}

.physics {
    background: #e3dcec
}

.chemistry {
    background: #e8e1bc
}

.biology {
    background: #d8e9df
}

.engineering {
    background: #e7ddd6
}

.everyday {
    background: #e8e4da
}

.popular {
    background: var(--green);
    color: #fff
}

.inverse .eyebrow {
    color: #d0e5a4
}

.inverse h2 {
    color: #fff
}

.inverse > a {
    color: #d6e5dc;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px
}

.tool {
    position: relative;
    min-height: 240px;
    padding: 24px 24px 50px;
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    text-decoration: none;
    transition: .25s
}

    .tool:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 42px rgba(2,28,15,.24)
    }

    .tool.featured {
        background: var(--lime)
    }

    .tool > small {
        position: absolute;
        right: 17px;
        top: 16px;
        padding: 5px 8px;
        background: rgba(255,255,255,.6);
        border-radius: 20px;
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase
    }

    .tool > span {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        background: #e7f0e9;
        color: var(--green);
        border-radius: 12px;
        font: 800 18px Georgia,serif
    }

        .tool > span.tiny {
            font-size: 11px
        }

.featured > span {
    background: rgba(255,255,255,.58)
}

.tool h3 {
    margin: 24px 0 8px;
    font: 700 22px Georgia,serif
}

.tool p {
    margin: 0;
    color: #586a61;
    font-size: 13px
}

.results {
    background: #fff
}

    .results .shell {
        padding-top: 52px;
        padding-bottom: 52px
    }

.heading button {
    border: 0;
    background: transparent;
    color: var(--green);
    font-weight: 800;
    cursor: pointer
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px
}

    .result-grid a {
        padding: 20px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 15px;
        text-decoration: none
    }

    .result-grid small {
        color: var(--green);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .08em
    }

    .result-grid h3 {
        margin: 7px 0 3px;
        font: 700 19px Georgia,serif
    }

    .result-grid p, #emptyResults {
        margin: 0;
        color: var(--muted);
        font-size: 12px
    }

.why {
    background: #ece8dd
}

.why-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px
}

    .why-grid > div > p:last-child {
        max-width: 520px;
        color: var(--muted);
        font-size: 16px
    }

.principles article {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #ccd3c9
}

    .principles article:last-child {
        border-bottom: 1px solid #ccd3c9
    }

    .principles article > span {
        color: var(--lime);
        font: 700 15px Georgia,serif
    }

.principles h3 {
    margin: 0 0 5px;
    font: 700 20px Georgia,serif
}

.principles p {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

footer {
    background: var(--navy);
    color: #d7e3df
}

.footer {
    margin: auto;
    padding: 20px 20px;
    display: grid;
    align-items: center;
    gap: 40px
}

    .footer .brand {
        color: #fff
    }

    .footer > p {
        color: #9eb1aa
    }

    .footer nav {
        display: flex;
        gap: 20px
    }

        .footer nav a {
            font-size: 12px;
            text-decoration: none
        }

    .footer small {
        grid-column: 1/-1;
        color: #758d84;
        border-top: 1px solid rgba(255,255,255,.1);
        padding-top: 17px
    }

@media(max-width:900px) {
    .nav > nav {
        display: none
    }

    .hero-in {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 70px
    }

    .hero-art {
        width: min(520px,100%);
        margin: auto
    }

    .category-grid, .tool-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 42px
    }

    .result-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:620px) {
    .nav {
        min-height: 68px;
        padding: 0 16px
    }

    .find {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        font-size: 0
    }

    .hero-in {
        min-height: auto;
        padding: 58px 17px 62px
    }

    .hero h1 {
        font-size: 51px
    }

    .lead {
        font-size: 15px
    }

    .search {
        height: 58px;
        padding-left: 16px
    }

        .search button {
            height: 44px;
            padding: 0 14px
        }

    .hero-art {
        min-height: 330px;
        transform: scale(.9);
        transform-origin: top center;
        margin-bottom: -35px
    }

    .preview-main {
        right: 2px;
        width: 280px
    }

    .formula, .stat {
        left: 0
    }

    .shell {
        padding: 64px 17px
    }

    .heading {
        display: block
    }

        .heading > p, .heading > a {
            display: block;
            margin-top: 15px
        }

    .category-grid, .tool-grid, .result-grid {
        grid-template-columns: 1fr
    }

    .category {
        min-height: 228px
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 17px
    }

        .footer small {
            grid-column: 1
        }

        .footer nav {
            flex-wrap: wrap
        }
}
