/* =========================================
   HARTI TOOLS
   FINANCE CATEGORY
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #f4f7fb;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}


/* =========================================
   CONTAINER
   ========================================= */

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    background: #121c2d;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.back-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.back-link {
    font-size: 14px;
    font-weight: 600;
}

.brand:hover,
.back-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    padding: 78px 0 68px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf1;
}

.eyebrow,
.section-label {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    color: #121c2d;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.hero-text {
    max-width: 760px;
    margin: 22px 0 0;
    color: #526174;
    font-size: 20px;
    line-height: 1.65;
}


/* =========================================
   TOOLS SECTION
   ========================================= */

.tools-section {
    padding: 70px 0;
    background: #f4f7fb;
}

.section-intro {
    max-width: 800px;
    margin-bottom: 38px;
}

.section-intro h2,
.info-section h2,
.related-section h2 {
    max-width: 820px;
    margin: 0 0 20px;
    color: #121c2d;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-intro p,
.info-section p,
.related-section > .container > p {
    max-width: 800px;
    margin: 0 0 18px;
    color: #526174;
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================
   TOOL GRID
   ========================================= */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tool-card {
    display: block;
    min-height: 270px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 16px;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #c5cedb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}

.tool-number {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tool-arrow {
    color: #121c2d;
    font-size: 22px;
    font-weight: 700;
}

.tool-card h3 {
    margin: 0 0 12px;
    color: #121c2d;
    font-size: 25px;
    line-height: 1.2;
}

.tool-card p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.tool-link {
    color: #121c2d;
    font-size: 14px;
    font-weight: 800;
}


/* =========================================
   INFORMATION SECTIONS
   ========================================= */

.info-section {
    padding: 72px 0;
    background: #ffffff;
    border-top: 1px solid #e5eaf1;
}

.info-section:nth-of-type(even) {
    background: #f8fafc;
}


/* =========================================
   USE CASES
   ========================================= */

.use-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.use-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
}

.use-card h3 {
    margin: 0 0 9px;
    color: #121c2d;
    font-size: 19px;
    line-height: 1.3;
}

.use-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================
   STEPS
   ========================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
}

.step-number {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.step h3 {
    margin: 0 0 8px;
    color: #121c2d;
    font-size: 18px;
    line-height: 1.3;
}

.step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   FAQ
   ========================================= */

.faq-section {
    padding-bottom: 82px;
}

.faq-item {
    max-width: 820px;
    padding: 24px 0;
    border-bottom: 1px solid #dfe5ee;
}

.faq-item:first-of-type {
    border-top: 1px solid #dfe5ee;
}

.faq-item h3 {
    margin: 0 0 8px;
    color: #121c2d;
    font-size: 18px;
    line-height: 1.4;
}

.faq-item p {
    margin: 0;
    font-size: 15px;
}


/* =========================================
   RELATED TOOLS
   ========================================= */

.related-section {
    padding: 72px 0;
    background: #f8fafc;
    border-top: 1px solid #e5eaf1;
}

.related-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.related-tools a {
    display: block;
    min-height: 145px;
    padding: 25px 23px;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    color: #111827 !important;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.related-tools a:hover {
    color: #111827 !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    border-color: #c5cedb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.related-tools a strong {
    display: block;
    margin-bottom: 9px;
    color: #111827 !important;
    font-size: 18px;
}

.related-tools a small {
    display: block;
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 30px 0;
    background: #121c2d;
    color: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner strong {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.footer-inner span {
    color: #cbd5e1;
    font-size: 13px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 850px) {

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .related-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1100px);
    }

    .header-inner {
        min-height: 64px;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .hero-text {
        font-size: 18px;
    }

    .tools-section,
    .info-section,
    .related-section {
        padding: 56px 0;
    }

    .use-grid {
        grid-template-columns: 1fr;
    }

    .related-tools {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 520px) {

    .brand {
        font-size: 17px;
    }

    .back-link {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .tool-card {
        min-height: auto;
        padding: 25px;
    }

    .tool-card-top {
        margin-bottom: 32px;
    }

}