.heading-tools {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    font-size: var(--fs-heading-secondary);
    font-weight: var(--fw-semi-bold);
    text-align: center;
}

.tool-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 1.5rem var(--app-space-lg, 1.5rem) 0;
    padding: 1.75rem 2rem;
    border-radius: 12px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(96, 186, 141, 0.30) 0%, rgba(96, 186, 141, 0) 55%),
        linear-gradient(115deg, #091C2E 0%, #096B81 100%);
}

.tool-page-header__copy {
    display: grid;
    gap: 0.4rem;
    max-width: 48rem;
    min-width: 0;
}

.tool-page-header__actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    min-height: 2.5rem;
}

.tool-page-header__action-link {
    align-items: center;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 9999px;
    color: #266C82;
    display: inline-flex;
    font: inherit;
    font-size: 0.95rem;
    font-weight: var(--fw-semi-bold);
    justify-content: center;
    line-height: 1.15;
    max-inline-size: 11rem;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.tool-page-header__action-link:hover {
    background: #EAF2EE;
    color: #266C82;
}

.tool-page-header__eyebrow {
    color: #BED3DA;
    font-size: 0.78rem;
    font-weight: var(--fw-semi-bold);
    letter-spacing: 0.12em;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.tool-page-header__title.heading-tools {
    color: #FFFFFF;
    font-size: var(--fs-heading-secondary);
    font-weight: var(--fw-semi-bold);
    line-height: 1.08;
    margin: 0;
    padding: 0;
    text-align: left;
}

.tool-page-header__description {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Compact banner on smaller screens. The inherited matcher shell gutter keeps it
   aligned with the CTA and table. */
@media (max-width: 62.25rem) {
    .tool-page-header {
        padding: 1.25rem 1rem;
        margin-inline: 8px;
    }

    .tool-page-header__eyebrow,
    .tool-page-header__description {
        display: none;
    }

}

@media (max-width: 600px) {
    .tool-page-header__actions {
        display: none;
    }
}

.tools-container {
    display: flex;
    margin-inline: auto;
    flex-direction: column;
    padding-inline: 1rem;
    padding-bottom: 4rem;
}

.tool-description-container {
    display: flex;
    justify-content: center;
}

.tool-description-container > div {
    max-width: 576px;
}

.calc-cta-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

/* ✅ Keep structure, swap colours */
.calc-cta-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 1.25rem;
    align-items: center;

    background: #216E83; /* changed */
    border-radius: 16px;

    /* keep your original depth style, slightly stronger for coloured card */
    box-shadow: 0 14px 32px rgba(5, 15, 28, 0.22);

    /* keep your original spacing so nothing shifts */
    padding: 1.5rem;
}

/* ✅ Keep original positioning, swap to white dots/gradient */
.calc-cta-card::after {
    content: "";
    position: absolute;
    top: -35%;
    right: -8%;
    width: 44%;
    height: 170%;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1.5px) 0 0 / 12px 12px,
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0.55;
}

.calc-cta-content {
    position: relative;
    z-index: 1;
}

/* ✅ White text */
.calc-cta-title {
    margin: 0 0 0.75rem;
    color: #ffffff; /* changed */
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.calc-cta-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.88); /* changed */
    font-size: 1rem;
    line-height: 1.6;
}

.calc-cta-meta {
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.70); /* changed */
    font-size: 0.95rem;
    font-weight: 600;
}

.calc-cta-action {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

/* ✅ White button with green text (like before) */
.calc-cta-button {
    width: min(100%, 280px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;

    background: #ffffff; /* changed */
    color: #216E83;      /* changed */

    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-cta-button:hover,
.calc-cta-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ✅ Keep your original mobile behaviour + spacing */
@media (max-width: 767px) {
    .calc-cta-section {
        margin-bottom: 1.5rem;
    }

    .calc-cta-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem; /* keep original */
    }

    .calc-cta-card::after {
        top: 50%;        /* keep original */
        right: -24%;     /* keep original */
        width: 70%;
        height: 100%;
        opacity: 0.45;   /* keep original */
    }

    .calc-cta-action {
        width: 100%;
    }

    .calc-cta-button {
        width: 100%;
    }
}
