/* =====================================================
CSS SANDBOX (Elementor Isolation)
This resets inherited builder styles so Elementor cannot override calculator UI
====================================================== */

#roi-calculator-app {
    width: 100%;
    max-width: 1200px;
    all: initial;
    display: block;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

#roi-calculator-app *,
#roi-calculator-app * {
    max-width: 100%;
}

#roi-calculator-app *,
#roi-calculator-app *::before,
#roi-calculator-app *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* =====================================================
GRYPP ROI CALCULATOR
Production-ready, aligned to Grypp Brand Guidelines
Font: Montserrat
Colours: Grypp Core + Secondary Palette
====================================================== */

:root {

    --grypp-black: #000000;
    --grypp-white: #ffffff;

    --grypp-tangerine: #FEAC5A;
    --grypp-fuchsia: #FF78EB;
    --grypp-aqua: #84E2FF;
    --grypp-lavender: #8C72FE;

    --card-bg: #02091b;
    --card-border: #0e1b3f;

    --text-primary: #ffffff;
    --text-secondary: #a6b0d6;

    --radius: 14px;

}


/* ======================================================
GLOBAL
====================================================== */

html,
body {
    margin: 0;
    background: #000;
    overflow-x: hidden;

    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    color: var(--text-primary);
}

#roi-calculator-app {
    max-width: 1200px;
    margin: auto;
    padding: 0px 0px;
    overflow-x: clip;
}

#roi-calculator-app *,
#roi-calculator-app *::before,
#roi-calculator-app *::after {
    box-sizing: border-box;
}


/* ======================================================
HEADER
====================================================== */

.roi-header {
    text-align: center;
    margin-bottom: 50px;
}

.roi-header__eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--grypp-lavender);
    margin-bottom: 8px;
}

.roi-header__title {
    font-size: 44px;
    font-weight: 700;
    margin: 0;
}

.roi-header__subtitle {
    color: var(--text-secondary);
    margin-top: 10px;
}


/* ======================================================
CARD BASE
====================================================== */

.calculator-card {

    background: linear-gradient(180deg, #010715, #000514);

    border: 1px solid var(--card-border);

    border-radius: var(--radius);

    padding: 24px;

}


/* ======================================================
MAIN CALCULATOR GRID
====================================================== */

.calculator-main-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    margin-bottom: 40px;

    align-items: center;
    /* vertical alignment fix */

}

.calculator-input-column {

    display: flex;

    flex-direction: column;

    gap: 0;

}

/* redistribute vertical spacing around slider / inputs */
.inputs-card {
    margin-bottom: 0;
    padding-top: 24px;
    padding-bottom: 20px;
    position: relative;
}

.inputs-card--unified {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.calculator-results-column {

    display: flex;

    flex-direction: column;

    gap: 20px;

    justify-content: center;

}


/* ======================================================
SLIDER
Premium interaction polish
====================================================== */

.slider-shell {
    position: relative;
    overflow: visible;
    padding-top: 12px;
}

.slider-block {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(140, 114, 254, .16);
    margin-bottom: 2px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.slider-header span:last-child {
    display: none;
}

.slider {

    width: 100%;

    appearance: none;
    -webkit-appearance: none;

    height: 8px;

    border-radius: 10px;

    background: linear-gradient(90deg,
            var(--grypp-tangerine),
            var(--grypp-fuchsia),
            var(--grypp-lavender)) left/0% 100% no-repeat,
        #2a2f3d;

    outline: none;

    transition: background-size .35s ease, box-shadow .25s ease;

    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;

}

.slider::-webkit-slider-thumb {

    appearance: none;
    -webkit-appearance: none;

    height: 30px;

    width: 30px;

    border-radius: 50%;

    background: white;

    border: 5px solid var(--grypp-lavender);

    cursor: pointer;

    box-shadow: 0 0 12px rgba(140, 114, 254, .6);

    transition: transform .18s ease, box-shadow .18s ease;

}

.slider:hover::-webkit-slider-thumb {
    box-shadow: 0 0 18px rgba(255, 120, 235, .65);
}

.slider:active::-webkit-slider-thumb {
    transform: scale(1.12);
}

.slider:active {
    box-shadow: 0 0 10px rgba(255, 120, 235, .45);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}

.slider::-moz-range-thumb {

    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: white;
    border: 5px solid var(--grypp-lavender);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(140, 114, 254, .6);
    transition: transform .18s ease, box-shadow .18s ease;

}

.slider:hover::-moz-range-thumb {
    box-shadow: 0 0 18px rgba(255, 120, 235, .65);
}

.slider:active::-moz-range-thumb {
    transform: scale(1.12);
}

.slider::-moz-range-track {

    height: 8px;
    border-radius: 10px;
    background: #2a2f3d;

}

.slider-value-bubble {

    position: absolute;

    top: -34px;

    background: linear-gradient(90deg, var(--grypp-lavender), var(--grypp-fuchsia));

    padding: 4px 10px;

    border-radius: 10px;

    font-size: 12px;

    transform: translateX(-50%);

    white-space: nowrap;

    box-shadow: 0 0 10px rgba(140, 114, 254, .45);

}

.agent-display {

    margin-top: 8px;

    color: var(--text-secondary);

}


/* ======================================================
INPUT GRID
====================================================== */

.inputs-grid {

    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 14px 16px;

    align-items: start;

    width: 100%;

}

/* row 1: currency + cost per contact */
.inputs-grid>.form-card:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
}

.inputs-grid>.form-card:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1;
}

/* row 2: operational inputs */
.inputs-grid>.form-card:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.inputs-grid>.form-card:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
}

.inputs-grid>.form-card:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2;
}

/* vertically center inputs within card */

.form-label {

    font-size: 12px;

    color: var(--text-secondary);

    margin-bottom: 6px;

    display: block;

    white-space: normal;

    line-height: 1.25;

    min-height: 28px;

}


/* Remove number arrows globally */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.form-card input,
.form-card select {

    width: 100%;

    height: 44px;

    background: #050e25;

    border: 1px solid #1a2a60;

    border-radius: 10px;

    color: white;

    padding: 10px 12px;

    font-size: 14px;

}

.form-card input:focus,
.form-card select:focus {

    outline: none;

    border-color: var(--grypp-lavender);

    box-shadow: 0 0 8px rgba(140, 114, 254, .35);

}


/* ======================================================
HERO SAVINGS
====================================================== */

.hero-savings-card {

    border-radius: var(--radius);

    position: relative;
    overflow: hidden;

    border: 2px solid transparent;

    background:

        linear-gradient(#010715, #010715) padding-box,

        linear-gradient(90deg,

            var(--grypp-tangerine),

            var(--grypp-fuchsia),

            var(--grypp-lavender)) border-box;

    text-align: center;

    padding: 20px 24px;

    transition: all .25s ease;

}

.hero-savings-card:hover {

    box-shadow: 0 0 18px rgba(255, 120, 235, .3);

}

.hero-savings-card__label {

    color: var(--text-secondary);

    font-size: 14px;

}

.hero-savings-card__value {

    font-size: 72px;

    font-weight: 700;

    margin-top: 10px;

}



.hero-savings-card__value::after {
    content: "";
    display: block;
    height: 14px;
    margin-top: 6px;
    background: radial-gradient(circle at center,
            rgba(255, 120, 235, .35),
            rgba(140, 114, 254, .25),
            transparent 70%);
    filter: blur(6px);
}

.hero-payback {
    margin-top: 10px;
}

.hero-payback__label {

    font-size: 12px;

    color: var(--text-secondary);

}

.hero-payback__value {

    font-weight: 700;

}


/* ======================================================
SCENARIO BUTTONS
====================================================== */

.scenario-section {
    margin-top: 2px;
    width: 100%;
}

.scenario-section--inputs {
    padding-top: 4px;
}

.scenario-tabs {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

}

.scenario-btn,
.scenario-tab {

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    height: 38px;

    border-radius: 12px;

    font-weight: 600;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    border: 1px solid transparent;

    background:

        linear-gradient(#010715, #010715) padding-box,

        linear-gradient(90deg,

            var(--grypp-tangerine),

            var(--grypp-fuchsia),

            var(--grypp-lavender)) border-box;

    color: white;

    transition: all .2s ease;

}

.scenario-btn:hover,
.scenario-tab:hover {

    box-shadow: 0 0 10px rgba(255, 120, 235, .4);

    transform: translateY(-1px);

}

.scenario-btn.active,
.scenario-tab.active {

    background: linear-gradient(90deg,

            var(--grypp-lavender),

            var(--grypp-fuchsia));

    border: none;

    box-shadow:
        0 0 12px rgba(255, 120, 235, .45),
        inset 0 0 10px rgba(255, 255, 255, .08);

}



/* ======================================================
DASHBOARD
====================================================== */

.dashboard-section {
    margin-top: 28px;
    position: relative;
    padding-top: 22px;
}

.dashboard-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 960px);
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(140, 114, 254, .28),
            rgba(255, 120, 235, .34),
            rgba(140, 114, 254, .28),
            transparent);
}

.dashboard-grid {

    display: grid;

    gap: 20px;

    margin-bottom: 30px;

}

.dashboard-grid--4 {

    grid-template-columns: repeat(4, 1fr);

}

#kpiBottomGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 18px;
}

.dashboard-grid--3 {

    grid-template-columns: repeat(3, minmax(0, 1fr));

}

.dashboard-card {

    background: #02091b;

    border: 1px solid var(--card-border);

    border-radius: var(--radius);

    padding: 22px 20px;

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;

}

.dashboard-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 22px rgba(0, 0, 0, .45),
        0 0 14px rgba(255, 120, 235, .25);

}

.dashboard-card__value {

    font-size: 32px;

    font-weight: 700;

    margin-top: 10px;

}

.dashboard-card__label {

    font-size: 12px;

    letter-spacing: .02em;

    text-transform: uppercase;

    color: var(--text-secondary);

}

.metric-icon,
.dashboard-card .metric-icon,
.dashboard-card i[data-lucide],
.dashboard-card svg.lucide,
.dashboard-card [class*="metric"],
.dashboard-card .metric-header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
}


/* ======================================================
CHART
====================================================== */

.chart-card {

    background: #02091b;
    padding: 36px;
    margin-bottom: 32px;
    /* breathing room before KPI row below */
}

.chart-fixed-wrap {

    height: 340px;

    position: relative;

}

.chart-fixed-wrap canvas {

    width: 100% !important;

    height: 100% !important;

    display: block;

}

.chart-legend-note {

    margin-top: 10px;

    font-size: 12px;

    color: var(--text-secondary);

}


/* ======================================================
CTA
====================================================== */

/* Explicit CTA typography to avoid Elementor / sandbox inheritance */
.dashboard-card--cta-strong h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-card--cta-strong p {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-card--cta-strong strong {
    font-weight: 700;
    color: var(--text-primary);
}

.primary-cta,
.unlock-form button,
button.primary-cta,
a.primary-cta {
    font-family: inherit;
    font-weight: 700;
    color: #ffffff;
}

/* ======================================================
CTA
====================================================== */

.dashboard-card--cta-strong {
    width: 100%;
    margin-top: 4px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    border: 2px solid transparent;

    background:
        linear-gradient(#02091b, #02091b) padding-box,
        linear-gradient(90deg,
            var(--grypp-tangerine),
            var(--grypp-fuchsia),
            var(--grypp-lavender)) border-box;

    padding: 36px 32px 44px 32px;
    /* extra breathing room bottom */
}


.primary-cta,
.unlock-form button,
button.primary-cta,
a.primary-cta {

    padding: 14px 26px;

    border-radius: 12px;

    font-weight: 700;

    text-decoration: none;

    color: white;

    appearance: none;
    -webkit-appearance: none;

    border: 0;

    background: linear-gradient(90deg,

            var(--grypp-lavender),

            var(--grypp-fuchsia));

    transition: all .2s ease;

}

.primary-cta:hover,
.unlock-form button:hover,
button.primary-cta:hover,
a.primary-cta:hover {
    transform: translateY(-3px) scale(1.03);

    box-shadow:
        0 0 20px rgba(255, 120, 235, .65),
        0 0 40px rgba(140, 114, 254, .35);
}



/* ======================================================
UNLOCK MODAL
====================================================== */

.unlock-overlay {

    position: absolute;

    top: 80px;

    left: 0;

    right: 0;

    display: grid;

    place-items: center;

    pointer-events: auto;

}

.unlock-modal {

    width: 450px;

    max-width: 92%;

    background: linear-gradient(180deg, rgba(2, 9, 27, .96), rgba(1, 7, 21, .98));

    border: 1px solid var(--card-border);

    border-radius: 18px;

    padding: 34px 34px 30px 34px;

    text-align: center;

    box-shadow:
        0 22px 50px rgba(0, 0, 0, .55),
        0 0 40px rgba(140, 114, 254, .12);

    backdrop-filter: blur(14px);

}

.unlock-modal h2 {

    margin-top: 0;

    font-size: 26px;

    line-height: 1.25;

    margin-bottom: 10px;

}

.unlock-benefits {

    text-align: left;

    font-size: 14px;

    color: var(--text-secondary);

    margin-bottom: 22px;

    padding-top: 6px;

}


/* Premium form styling */

.unlock-form::before {

    content: "";

    display: block;

    height: 1px;

    margin: 18px 0 24px 0;

    background: linear-gradient(90deg,
            transparent,
            var(--grypp-lavender),
            var(--grypp-fuchsia),
            var(--grypp-lavender),
            transparent);

    box-shadow:
        0 0 8px rgba(140, 114, 254, .35),
        0 0 14px rgba(255, 120, 235, .25);

}

.unlock-form {
    margin-top: 18px;
}

.unlock-form input {

    width: 100%;

    height: 54px;

    margin-bottom: 16px;

    border-radius: 14px;

    border: 1px solid rgba(140, 114, 254, .45);

    background:
        linear-gradient(#02091b, #02091b) padding-box,
        linear-gradient(120deg,
            rgba(140, 114, 254, .55),
            rgba(255, 120, 235, .45)) border-box;

    color: white;

    padding: 14px 16px;

    font-size: 15px;

    letter-spacing: .2px;

    transition: all .25s ease;

}

.unlock-form input:hover {

    border-color: rgba(255, 120, 235, .55);

}

.unlock-form input:focus {

    outline: none;

    border-color: var(--grypp-fuchsia);

    box-shadow:
        0 0 0 1px rgba(255, 120, 235, .45),
        0 0 18px rgba(255, 120, 235, .35);

    transform: translateY(-1px);

}

.unlock-form input::placeholder {

    color: rgba(255, 255, 255, .45);

}

.unlock-form button {

    width: 100%;

    height: 54px;

    margin-top: 6px;

    font-size: 15px;

    letter-spacing: .2px;

}

.unlock-form small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-status {

    margin-top: 10px;

    font-size: 12px;

    color: var(--text-secondary);

}

.honeypot {

    display: none;

}


/* ======================================================
RESPONSIVE
====================================================== */

@media (max-width:900px) {

    /* KPI cards become 2 per row */
    .dashboard-grid--4,
    .dashboard-grid--3,
    #kpiBottomGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* overall container padding for mobile */
    #roi-calculator-app {
        padding: 24px 16px;
        width: 100%;
        max-width: 100%;
    }

    .calculator-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* input grid collapses cleanly */
    .inputs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%;
    }

    .inputs-grid>.form-card:nth-child(1),
    .inputs-grid>.form-card:nth-child(2),
    .inputs-grid>.form-card:nth-child(3),
    .inputs-grid>.form-card:nth-child(4),
    .inputs-grid>.form-card:nth-child(5) {
        grid-column: span 1;
        grid-row: auto;
    }

    .dashboard-card--hero-kpi-inline {
        width: 100%;
    }

    .form-card input,
    .form-card select {
        width: 100%;
        min-width: 0;
    }

    /* hero savings number scale */
    .hero-savings-card__value {
        font-size: 42px;
    }

    /* slider bubble alignment */
    .slider-value-bubble {
        top: -28px;
        max-width: 80vw;
    }

    /* chart usability improvements for mobile */
    .chart-card {
        padding: 20px;
    }

    .chart-fixed-wrap {
        height: 260px;
    }

    .chart-legend-note {
        text-align: center;
        margin-top: 14px;
    }

    /* KPI spacing polish */
    .dashboard-card__value {
        margin-bottom: 6px;
    }

    /* CTA stronger and centred on mobile */
    .dashboard-card--cta-strong {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        gap: 18px;
    }

    .primary-cta {
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 16px 24px;
        box-shadow: 0 0 18px rgba(255, 120, 235, .35);
    }

}

/* ======================================================
FINAL MOBILE KPI + CTA POLISH
====================================================== */

/* ensure icon bars are completely removed */
.dashboard-card svg,
.dashboard-card i,
.dashboard-card .lucide,
.dashboard-card .metric-icon,
.dashboard-card .metric-header {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* KPI alignment improvements */
.dashboard-card {
    text-align: center;
}

.dashboard-card__value {
    line-height: 1.15;
    letter-spacing: .02em;
}

.dashboard-card__label {
    font-weight: 400;
    opacity: .85;
}

/* mobile specific KPI balancing */
@media (max-width:900px) {

    .dashboard-card {
        padding: 14px;
        min-height: 110px;
    }

    .dashboard-card--hero-kpi {
        width: 100%;
        margin: 0;
        text-align: center;
        border: 2px solid transparent;
        background:
            linear-gradient(#02091b, #02091b) padding-box,
            linear-gradient(90deg,
                var(--grypp-tangerine),
                var(--grypp-fuchsia),
                var(--grypp-lavender)) border-box;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
    }

    .dashboard-card--hero-kpi .dashboard-card__label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .dashboard-card--hero-kpi .dashboard-card__value {
        font-size: 50px;
        line-height: 1.05;
        margin: 0 0 10px 0;
    }

    .dashboard-card--hero-kpi .dashboard-card__context {
        max-width: 540px;
    }

    .dashboard-card--hero-kpi-inline {
        width: 88%;
        margin: 0 auto;
        min-height: 150px;
    }

    .dashboard-card--hero-kpi-inline .dashboard-card__label {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-card--hero-kpi-inline .dashboard-card__context {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ======================================================
KPI CARD STRUCTURE IMPROVEMENTS
====================================================== */

.dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.dashboard-card__value {
    line-height: 1.15;
    letter-spacing: .02em;
    margin-top: 10px;
    margin-bottom: 12px;
}

.dashboard-card__label {
    font-weight: 400;
    opacity: .75;
}

.dashboard-card__context {
    opacity: .75;
    font-size: 12px;
    line-height: 1.45;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================================
MOBILE KPI BALANCING
====================================================== */

@media (max-width:900px) {

    .dashboard-card {
        padding: 14px;
        min-height: 110px;
    }

    .dashboard-card__value {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .dashboard-card__label {
        font-size: 11px;
        line-height: 1.35;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-card__context {
        font-size: 11px;
        opacity: .7;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-card--cta-strong p,
    .dashboard-card--cta-strong h3 {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ======================================================
FINAL LAYOUT CORRECTIONS (override conflicting earlier rules)
====================================================== */

/* Remove the purple icon bar completely */
.dashboard-card--metric .metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 10px;
}

.dashboard-card--metric .metric-icon svg {
    background: none !important;
    display: block;
}

/* Stable KPI card layout */
.dashboard-card--metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 148px;
    text-align: center;
}

/* Pin icon + title to top */
.dashboard-card--metric .dashboard-card__label {
    margin-top: 2px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centre the KPI number visually */
.dashboard-card--metric .dashboard-card__value {
    margin-top: 10px;
    margin-bottom: 8px;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop CTA breathing room */
.dashboard-card--cta-strong {
    padding: 32px 32px 42px 32px;
}

/* Mobile only CTA adjustments */
@media (max-width:900px) {

    .dashboard-card--cta-strong {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 22px;
        padding: 32px 26px 42px 26px;
    }

    .dashboard-card--cta-strong h3 {
        text-align: center;
        margin: 0 auto;
        max-width: 420px;
    }

    .dashboard-card--cta-strong .primary-cta {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

}

/* ======================================================
CTA BORDER SHIMMER (Premium hover effect)
====================================================== */

.dashboard-card--cta-strong {
    position: relative;
    overflow: hidden;
}

.dashboard-card--cta-strong::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 120, 235, .0) 20%,
            rgba(255, 120, 235, .45) 45%,
            rgba(140, 114, 254, .55) 55%,
            rgba(255, 120, 235, .45) 65%,
            rgba(255, 120, 235, .0) 80%,
            transparent 100%);
    opacity: 0;
    transform: translateX(-60%);
    transition: opacity .35s ease, transform .9s ease;
    pointer-events: none;
}

.dashboard-card--cta-strong:hover::after {
    opacity: .9;
    transform: translateX(60%);
}

/* ======================================================
INTERACTIVE POLISH
====================================================== */

/* stronger KPI card hover interaction */
.dashboard-card--metric:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, .6),
        0 0 20px rgba(255, 120, 235, .25);
}

/* ensure CTA text + button stay inline on desktop */
.dashboard-card--cta-strong {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* allow heading block to take remaining space */
.dashboard-card--cta-strong h3 {
    flex: 1;
    text-align: left;
    line-height: 1.25;
    max-width: 640px;
}

/* keep CTA button fixed width */
.dashboard-card--cta-strong .primary-cta {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    /* prevent CTA text breaking on desktop */
}

/* mobile: text above button */
@media (max-width:900px) {

    .dashboard-card--cta-strong {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dashboard-card--cta-strong .primary-cta {
        margin-top: 14px;
    }

}

/* ensure icons never render background squares */
.metric-icon svg,
.metric-icon svg * {
    background: none !important;
    fill: none;
}

/* ======================================================
TYPOGRAPHY + COLOUR HARD DEFINITIONS
(prevent Elementor inheritance)
====================================================== */

#roi-calculator-app .roi-header__title {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
}

.roi-header__subtitle {
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-savings-card__label {
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-savings-card__value {
    font-weight: 700;
    color: var(--text-primary);
}

.hero-payback__label {
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-payback__value {
    font-weight: 700;
    color: var(--text-primary);
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.form-card input,
.form-card select {
    font-weight: 500;
    color: var(--text-primary);
}

.dashboard-card__value {
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-card__label {
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-card__context {
    font-weight: 400;
    color: var(--text-secondary);
}

.primary-cta,
.unlock-form button {
    font-weight: 700;
    color: #ffffff;
}

.unlock-modal h2 {
    font-weight: 700;
    color: var(--text-primary);
}

.unlock-benefits {
    font-weight: 400;
    color: var(--text-secondary);
}

.unlock-form input {
    font-weight: 500;
    color: #ffffff;
}

.unlock-form input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.form-status {
    font-weight: 400;
    color: var(--text-secondary);
}

/* ======================================================
PREP FOR MOBILE POLISH ANIMATIONS
(these will be activated via JS later)
====================================================== */
.kpi-animate {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s ease, transform .5s ease;
}

.kpi-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.chart-draw-ready canvas {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

.chart-draw-ready.is-visible canvas {
    opacity: 1;
    transform: translateY(0);
}