:root {
    --background: #f7f8f7;
    --surface: #ffffff;
    --surface-soft: #f3f5f3;

    --text: #172018;
    --muted: #667085;

    --brand: #166534;
    --brand-dark: #14532d;
    --brand-soft: #eaf4ed;

    --border: #e5e7eb;

    --danger: #b42318;
    --danger-soft: #fff1f0;

    --warning: #9a6700;
    --warning-soft: #fff8e7;

    --shadow: 0 18px 45px rgba(16, 24, 40, 0.07);

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.5;
}


button,
input,
select {
    font: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}


.nav-wrap {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}


.logo-mark {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    background: var(--brand);
    color: white;

    border-radius: 9px;

    font-size: 17px;
    font-weight: 800;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-left: auto;
}


.main-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.main-nav a:hover {
    color: var(--brand);
}


.nav-cta {
    padding: 10px 16px;

    border-radius: 9px;

    background: var(--brand);
    color: white;

    font-size: 13px;
    font-weight: 700;
}


.nav-cta:hover {
    background: var(--brand-dark);
}


/* HERO */

.hero {
    padding: 92px 0 84px;

    background: #ffffff;

    border-bottom: 1px solid var(--border);
}


.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 72px;
}


.eyebrow {
    color: var(--brand);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;
}


.hero h1 {
    max-width: 650px;

    margin-top: 16px;

    font-size: clamp(44px, 6vw, 70px);
    line-height: 0.98;

    letter-spacing: -0.055em;
}


.hero h1 span {
    color: var(--brand);
}


.hero-copy > p {
    max-width: 560px;

    margin-top: 24px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.7;
}


.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-top: 32px;

    padding: 15px 20px;

    border-radius: 11px;

    background: var(--brand);
    color: white;

    font-size: 14px;
    font-weight: 750;

    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.14);
}


.primary-button:hover {
    background: var(--brand-dark);
}


.primary-button span {
    font-size: 18px;
}


.trust-row {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-top: 24px;

    color: #667085;

    font-size: 12px;
    font-weight: 600;
}


/* HERO ANALYTICS */

.analytics-card {
    padding: 28px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}


.analytics-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.analytics-label,
.small-label {
    display: block;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.analytics-top strong {
    display: block;

    margin-top: 7px;

    font-size: 35px;
    letter-spacing: -0.04em;
}


.period-badge {
    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 650;
}


.chart-wrap {
    height: 245px;

    margin-top: 22px;
}


.profit-chart {
    width: 100%;
    height: 100%;
}


.chart-fill {
    fill: url(#profitGradient);
}


.chart-line {
    fill: none;

    stroke: var(--brand);
    stroke-width: 4;

    stroke-linecap: round;
}


.chart-point {
    fill: var(--brand);
    stroke: white;
    stroke-width: 4;
}


.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 16px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}


.hero-stats span {
    display: block;

    color: var(--muted);

    font-size: 11px;
}


.hero-stats strong {
    display: block;

    margin-top: 4px;

    font-size: 15px;
}


/* GENERAL SECTIONS */

.calculator-section,
.tools-section,
.how-section {
    padding: 92px 0;
}


.section-heading {
    max-width: 720px;

    margin-bottom: 38px;
}


.section-heading.compact {
    margin-bottom: 34px;
}


.section-heading h2 {
    margin-top: 10px;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.05;

    letter-spacing: -0.045em;
}


.section-heading p {
    margin-top: 15px;

    color: var(--muted);

    font-size: 16px;
}


/* CALCULATOR */

.calculator-card {
    display: grid;

    grid-template-columns: 1.08fr 0.92fr;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}


.calculator-inputs {
    padding: 34px;

    border-right: 1px solid var(--border);
}


.calculator-results {
    padding: 34px;

    background: #fbfcfb;
}


.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 28px;
}


.calculator-header h3 {
    margin-top: 5px;

    font-size: 22px;

    letter-spacing: -0.025em;
}


.currency-control {
    display: flex;
    align-items: center;
    gap: 8px;
}


.currency-control label {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;
}


.currency-control select {
    height: 38px;

    padding: 0 10px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;

    outline: none;
}


.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


.field label {
    display: flex;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;

    color: #344054;

    font-size: 12px;
    font-weight: 700;
}


.field label span {
    color: #98a2b3;

    font-size: 10px;
    font-weight: 600;
}


.input-wrap {
    position: relative;
}


.input-wrap input {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    background: white;

    border: 1px solid #d8dde3;
    border-radius: 9px;

    color: var(--text);

    font-size: 14px;
    font-weight: 650;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrap input:focus {
    border-color: var(--brand);

    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.08);
}


.input-wrap input[type="number"] {
    appearance: textfield;
}


.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}


.input-symbol {
    position: absolute;
    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #667085;

    font-size: 12px;
    font-weight: 700;

    pointer-events: none;
}


.input-wrap .input-symbol + input {
    padding-left: 34px;
}


.input-suffix {
    position: absolute;
    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #667085;

    font-size: 12px;
    font-weight: 700;

    pointer-events: none;
}


.input-wrap input:has(+ .input-suffix) {
    padding-right: 34px;
}


.calculator-note {
    margin-top: 22px;
    padding: 13px 15px;

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}


.calculator-note strong {
    color: var(--text);
}


/* RESULTS */

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 14px;
}


.profit-status {
    padding: 6px 9px;

    background: var(--brand-soft);

    border-radius: 7px;

    color: var(--brand);

    font-size: 10px;
    font-weight: 750;
}


.profit-status.is-loss {
    background: var(--danger-soft);
    color: var(--danger);
}


.profit-status.is-warning {
    background: var(--warning-soft);
    color: var(--warning);
}


.main-result {
    margin-top: 28px;
}


.main-result > span {
    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.main-result strong {
    display: block;

    margin-top: 5px;

    color: var(--brand);

    font-size: clamp(38px, 5vw, 54px);

    line-height: 1;

    letter-spacing: -0.055em;
}


.main-result strong.is-loss {
    color: var(--danger);
}


.main-result small {
    display: block;

    max-width: 420px;

    margin-top: 11px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}


.result-metrics {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    margin-top: 28px;

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}


.result-metric {
    min-height: 82px;

    padding: 16px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.result-metric span {
    display: block;

    color: var(--muted);

    font-size: 10px;
}


.result-metric strong {
    display: block;

    margin-top: 5px;

    font-size: 18px;

    letter-spacing: -0.02em;
}


.result-summary {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 18px;
}


.result-summary > div {
    padding: 13px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 9px;
}


.result-summary span {
    display: block;

    color: var(--muted);

    font-size: 10px;
}


.result-summary strong {
    display: block;

    margin-top: 4px;

    font-size: 14px;
}


.breakdown {
    margin-top: 25px;
}


.breakdown-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}


.breakdown-title h4 {
    font-size: 13px;
}


.breakdown-title span {
    color: var(--muted);

    font-size: 10px;
}


.breakdown-row {
    margin-bottom: 12px;
}


.breakdown-row > div:first-child {
    display: flex;
    justify-content: space-between;

    margin-bottom: 5px;
}


.breakdown-row span,
.breakdown-row strong {
    font-size: 10px;
}


.breakdown-row span {
    color: var(--muted);
}


.breakdown-row strong {
    color: var(--text);
}


.bar-track {
    height: 5px;

    overflow: hidden;

    background: #edf0ed;

    border-radius: 20px;
}


.bar-track span {
    display: block;

    width: 0;
    height: 100%;

    background: var(--brand);

    border-radius: inherit;

    transition: width 0.3s ease;
}


.insight-box {
    margin-top: 20px;
    padding: 13px 15px;

    background: var(--brand-soft);

    border: 1px solid #d7eadc;
    border-radius: 9px;

    color: var(--brand-dark);

    font-size: 11px;
    line-height: 1.55;
}


.insight-box.is-loss {
    background: var(--danger-soft);

    border-color: #f5c8c4;

    color: var(--danger);
}


.reset-button {
    width: 100%;

    margin-top: 12px;
    padding: 11px;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


.reset-button:hover {
    background: white;

    color: var(--text);
}


/* TOOLS */

.tools-section {
    background: white;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.tools-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}


.tool-card {
    position: relative;

    min-height: 245px;

    padding: 24px;

    background: var(--background);

    border: 1px solid var(--border);
    border-radius: 15px;
}


.tool-card.active-tool {
    background: var(--brand-soft);

    border-color: #cce2d2;
}


.tool-number {
    display: block;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 800;
}


.tool-card h3 {
    margin-top: 22px;

    font-size: 17px;
    line-height: 1.25;

    letter-spacing: -0.025em;
}


.tool-card p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


.tool-link,
.coming-soon {
    position: absolute;
    bottom: 22px;
    left: 24px;

    font-size: 10px;
    font-weight: 800;
}


.tool-link {
    color: var(--brand);
}


.coming-soon {
    color: #98a2b3;
}


/* HOW IT WORKS */

.steps-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.step {
    padding: 26px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;
}


.step > span {
    display: block;

    color: var(--brand);

    font-size: 11px;
    font-weight: 800;
}


.step h3 {
    margin-top: 22px;

    font-size: 18px;

    letter-spacing: -0.025em;
}


.step p {
    margin-top: 9px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


/* FOOTER */

.site-footer {
    padding: 36px 0;

    background: #172018;

    color: white;
}


.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}


.footer-logo {
    color: white;
}


.footer-logo .logo-mark {
    background: white;
    color: var(--brand);
}


.footer-wrap p {
    margin-top: 7px;

    color: #aab3ac;

    font-size: 11px;
}


.footer-wrap > span {
    color: #aab3ac;

    font-size: 11px;
}


/* TABLET */

@media (max-width: 980px) {

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .hero-copy {
        max-width: 760px;
    }


    .calculator-card {
        grid-template-columns: 1fr;
    }


    .calculator-inputs {
        border-right: 0;

        border-bottom: 1px solid var(--border);
    }


    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* MOBILE */

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 1180px);
    }


    .main-nav {
        display: none;
    }


    .nav-cta {
        padding: 9px 12px;

        font-size: 11px;
    }


    .hero {
        padding: 65px 0 58px;
    }


    .hero h1 {
        font-size: 45px;
    }


    .hero-copy > p {
        font-size: 16px;
    }


    .analytics-card {
        padding: 20px;
    }


    .analytics-top strong {
        font-size: 28px;
    }


    .chart-wrap {
        height: 190px;
    }


    .hero-stats {
        gap: 8px;
    }


    .hero-stats strong {
        font-size: 13px;
    }


    .calculator-section,
    .tools-section,
    .how-section {
        padding: 65px 0;
    }


    .calculator-inputs,
    .calculator-results {
        padding: 22px;
    }


    .calculator-header {
        flex-direction: column;
    }


    .currency-control {
        width: 100%;
        justify-content: space-between;
    }


    .currency-control select {
        min-width: 100px;
    }


    .input-grid {
        grid-template-columns: 1fr;
    }


    .result-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .main-result strong {
        font-size: 43px;
    }


    .result-metrics {
        grid-template-columns: 1fr 1fr;
    }


    .tools-grid {
        grid-template-columns: 1fr;
    }


    .steps-grid {
        grid-template-columns: 1fr;
    }


    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* SMALL MOBILE */

@media (max-width: 430px) {

    .logo {
        font-size: 18px;
    }


    .logo-mark {
        width: 29px;
        height: 29px;
    }


    .nav-cta {
        display: none;
    }


    .hero h1 {
        font-size: 39px;
    }


    .trust-row {
        flex-direction: column;
        gap: 6px;
    }


    .analytics-top {
        flex-direction: column;
        gap: 12px;
    }


    .hero-stats {
        grid-template-columns: 1fr;
    }


    .result-metrics {
        grid-template-columns: 1fr;
    }


    .result-summary {
        grid-template-columns: 1fr;
    }

}