* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #171717;
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.logo span {
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.6;
}

.nav-button {
    padding: 10px 17px;
    border-radius: 8px;
    background: #171717;
    color: #ffffff;
}


/* HERO */

.hero {
    padding: 110px 0 105px;
    background:
        radial-gradient(
            circle at top right,
            #f1f1f1 0,
            transparent 38%
        ),
        #fafafa;
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -4px;
    max-width: 850px;
}

.hero h1 span {
    display: block;
    font-weight: 400;
}

.hero-text {
    max-width: 650px;
    margin: 28px 0 34px;
    font-size: 19px;
    color: #666666;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #171717;
    color: #ffffff;
}

.button-secondary {
    border: 1px solid #dddddd;
    background: #ffffff;
}


/* SECTIONS */

.tools-section {
    padding: 100px 0;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 36px;
    letter-spacing: -1.5px;
}

.section-heading > p {
    max-width: 400px;
    margin: 0;
    color: #777777;
}

.eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #888888;
}


/* TOOL CARDS */

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

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #cccccc;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f2f2f2;
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 24px;
}

.tool-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.tool-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.tool-card p {
    margin: 12px 0 20px;
    color: #777777;
    font-size: 14px;
    line-height: 1.55;
}

.tool-price {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 5px;
    background: #f1f1f1;
}

.tool-price.free {
    background: #eeeeee;
}

.tool-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
}

.calculator-heading {
    margin-top: 100px;
}


/* HOW IT WORKS */

.how-section {
    padding: 100px 0;
    background: #fafafa;
}

.centered {
    display: block;
    text-align: center;
}

.centered h2 {
    margin-top: 6px;
}

.steps {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 50px;
    margin-top: 55px;
}

.step-number {
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 800;
    color: #888888;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.step p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}


/* CTA */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px;
    border-radius: 14px;
    background: #171717;
    color: #ffffff;
}

.cta-box .eyebrow {
    color: #aaaaaa;
}

.cta-box h2 {
    max-width: 650px;
    margin: 6px 0 8px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.cta-box p:last-child {
    margin: 0;
    color: #aaaaaa;
}

.cta-box .button-primary {
    flex-shrink: 0;
    background: #ffffff;
    color: #171717;
}


/* FOOTER */

.site-footer {
    padding: 50px 0 25px;
    border-top: 1px solid #eeeeee;
}

.footer-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 40px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: #888888;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
    font-size: 13px;
    font-weight: 600;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    color: #999999;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 800px) {

    .main-nav {
        gap: 14px;
    }

    .main-nav a:not(.nav-button) {
        display: none;
    }

    .hero {
        padding: 75px 0;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 12px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cta-box {
        display: block;
        padding: 35px;
    }

    .cta-box .button {
        margin-top: 25px;
    }

}


@media (max-width: 520px) {

    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        height: 68px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .tools-section,
    .how-section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .calculator-heading {
        margin-top: 70px;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-box {
        padding: 28px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 25px;
    }

}