:root {
    --ink: #172126;
    --muted: #66747b;
    --paper: #f7f8f5;
    --white: #fff;
    --line: #dfe4df;
    --brand: #0f766e;
    --brand-dark: #0a4f4a;
    --accent: #e8a838;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.public-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.public-container--narrow {
    width: min(780px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(23, 33, 38, 0.08);
    background: rgba(247, 248, 245, 0.94);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--brand);
    font-size: 0.8rem;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 30px;
}

.site-nav a,
.site-mobile-nav a {
    position: relative;
    color: #445158;
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-mobile-nav a:hover,
.site-mobile-nav a[aria-current="page"] {
    color: var(--brand);
}

.site-nav a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 3px;
    background: var(--brand);
    content: "";
}

.site-mobile-menu {
    display: none;
}

.site-mobile-menu summary {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

.site-mobile-menu summary:focus-visible,
.site-mobile-nav a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.site-mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 12px 20px rgba(23, 33, 38, 0.08);
}

.site-mobile-nav a {
    padding: 10px 12px;
    border-radius: 8px;
}

.site-mobile-nav a[aria-current="page"] {
    background: var(--white);
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button--small {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.button--primary {
    color: var(--white);
    background: var(--brand);
}

.button--primary:hover {
    background: var(--brand-dark);
}

.button--secondary {
    border-color: var(--line);
    background: var(--white);
}

.button--secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.button--light {
    color: var(--brand-dark);
    background: var(--white);
}

.hero {
    overflow: hidden;
    padding: 100px 0 88px;
    background:
        radial-gradient(circle at 85% 15%, rgba(232, 168, 56, 0.22), transparent 26%),
        linear-gradient(145deg, #f9faf7, #eaf1ed);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-lead,
.page-intro p {
    max-width: 690px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

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

.hero-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 26px 80px rgba(23, 67, 62, 0.14);
    transform: rotate(1.5deg);
}

.hero-panel__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #29a56a;
    box-shadow: 0 0 0 5px rgba(41, 165, 106, 0.12);
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 0;
    border-top: 1px solid var(--line);
}

.metric-row span {
    color: var(--muted);
}

.metric-row strong {
    text-align: right;
}

.public-section {
    padding: 92px 0;
}

.public-section--compact {
    padding: 64px 0 88px;
}

.public-section--muted {
    background: #edf1ed;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 44px;
}

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

.feature-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.feature-card h2,
.feature-card h3 {
    margin: 18px 0 12px;
    font-size: 1.42rem;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.feature-number {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.tool-callout {
    padding-bottom: 92px;
}

.tool-callout__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 52px;
    border-radius: 30px;
    color: var(--white);
    background: var(--brand-dark);
}

.tool-callout h2 {
    margin-bottom: 10px;
}

.tool-callout p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.tool-callout .eyebrow {
    color: #ffd78d;
}

.page-intro {
    padding: 84px 0 54px;
    text-align: center;
    background: linear-gradient(180deg, #edf3ef, var(--paper));
}

.page-intro h1 {
    margin-inline: auto;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.page-intro p {
    margin-inline: auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: start;
    gap: 24px;
}

.calculator-card,
.result-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.result-card {
    color: var(--white);
    background: var(--brand-dark);
}

.result-card .eyebrow {
    color: #ffd78d;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.field label,
.fieldset legend {
    font-weight: 750;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field select,
.field textarea,
.field > input:not([type]) {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cbd3ce;
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(15, 118, 110, 0.13);
}

.field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cbd3ce;
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.field select:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(15, 118, 110, 0.13);
}

.field textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(15, 118, 110, 0.13);
}

.field-hint {
    color: var(--muted);
    font-size: 0.84rem;
}

.fieldset {
    padding: 0;
    border: 0;
}

.fieldset legend {
    margin-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #3f4c52;
    font-weight: 500 !important;
}

.radio-option input {
    margin-top: 5px;
}

.calculator-options {
    margin: 2px 0 24px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8faf8;
}

.calculator-options summary {
    padding: 17px 0;
    color: var(--brand-dark);
    cursor: pointer;
    font-weight: 800;
}

.calculator-options[open] summary {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.calculator-options .field:last-child {
    margin-bottom: 18px;
}

.result-list {
    margin: 0;
}

.result-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.result-list dt {
    color: rgba(255, 255, 255, 0.7);
}

.result-list dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: right;
}

.result-list .result-total {
    border: 0;
}

.result-list .result-total dd {
    color: #ffd78d;
    font-size: 1.55rem;
}

.form-error {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(202, 55, 55, 0.22);
}

.form-errors {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #efc5c5;
    border-radius: 12px;
    color: #762626;
    background: #fff2f2;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.form-success {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #b7ddce;
    border-radius: 12px;
    color: #155b48;
    background: #edf9f4;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.legal-note h2 {
    font-size: 2rem;
}

.legal-note p {
    color: #4d5b60;
}

.legal-note a {
    color: var(--brand-dark);
    font-weight: 750;
}

.feature-grid--pricing {
    margin-bottom: 32px;
}

.pricing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #edf3ef;
}

.pricing-cta h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.pricing-cta p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: start;
    gap: 28px;
}

.content-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.content-card + .content-card {
    margin-top: 20px;
}

.content-card h2 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.content-card h3 {
    margin: 28px 0 10px;
    font-size: 1.2rem;
}

.content-card p,
.content-card li {
    color: #4d5b60;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    position: absolute;
    top: 0.08em;
    left: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
    content: "✓";
    font-size: 0.72rem;
    font-weight: 900;
}

.info-panel {
    position: sticky;
    top: 100px;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--brand-dark);
}

.info-panel h2 {
    margin-bottom: 14px;
    font-size: 1.6rem;
}

.info-panel p {
    color: rgba(255, 255, 255, 0.76);
}

.info-panel .button {
    width: 100%;
    margin-top: 8px;
}

.source-links {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.source-links a {
    color: var(--brand-dark);
    font-weight: 750;
}

.page-note {
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: #fff8e9;
    color: #5d4b2b;
}

.page-note p:last-child {
    margin-bottom: 0;
}

.updated-at {
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: end;
    gap: 32px;
}

.site-footer p,
.site-footer__inner > span {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.brand--footer {
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand);
}

@media (max-width: 1100px) {
    .site-nav {
        display: none;
    }

    .site-mobile-menu {
        display: block;
        margin-left: auto;
    }

    .site-header__inner {
        gap: 12px;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        justify-content: space-between;
    }

    .hero-grid,
    .calculator-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-panel {
        transform: none;
    }

    .info-panel {
        position: static;
    }

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

    .tool-callout__inner,
    .pricing-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 520px) {
    .public-container,
    .public-container--narrow {
        width: min(1180px, calc(100% - 28px));
    }

    .brand > span:last-child {
        display: none;
    }

    .hero {
        padding: 58px 0 64px;
    }

    .public-section {
        padding: 64px 0;
    }

    .calculator-card,
    .result-card,
    .feature-card,
    .content-card {
        padding: 24px;
    }

    .tool-callout__inner,
    .pricing-cta {
        padding: 30px;
    }
}
