:root {
    --ev-ink: #121827;
    --ev-green: #44dc8a;
    --ev-mint: #dff9eb;
    --ev-cream: #f8f5ee;
    --ev-line: #dfe3e1;
}

body.ev-modal-open { overflow: hidden; }

.nav-menu .nav-ev-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #1f9d5d;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 18px;
}

.hero-matcher-note { margin: 14px 0 0; color: #5a6170; font-size: .83rem; font-weight: 600; }

.ev-launch-icon { display: inline-block; margin-left: 7px; transform: translateY(-1px); }
.ev-modal[hidden] { display: none; }
.ev-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; font-family: Inter, sans-serif; color: var(--ev-ink); }
.ev-backdrop { position: absolute; inset: 0; background: rgba(10, 15, 25, .7); backdrop-filter: blur(9px); animation: ev-fade .24s ease-out; }
.ev-shell { position: relative; width: min(1100px, 96vw); height: min(760px, 92vh); display: grid; grid-template-columns: 36% 64%; overflow: hidden; padding: 0; border-radius: 28px; background: #fff; box-shadow: 0 34px 90px rgba(5, 11, 21, .38); animation: ev-rise .32s cubic-bezier(.2,.8,.2,1); }
.ev-close { position: absolute; z-index: 3; top: 18px; right: 20px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d8ddda; border-radius: 50%; background: #fff; color: var(--ev-ink); cursor: pointer; font-size: 29px; line-height: 1; }
.ev-close:hover { background: var(--ev-cream); }

.ev-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 50px 42px 38px; background: var(--ev-ink); color: #fff; }
.ev-visual::before { content: ''; position: absolute; width: 420px; height: 420px; left: -210px; top: 150px; border: 72px solid rgba(68,220,138,.12); border-radius: 50%; }
.ev-visual::after { content: ''; position: absolute; width: 280px; height: 140px; right: -80px; top: 52%; border-radius: 160px 160px 0 0; background: linear-gradient(135deg, rgba(68,220,138,.28), transparent); transform: rotate(-22deg); }
.ev-visual > * { position: relative; z-index: 1; }
.ev-logo-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--ev-green); color: var(--ev-ink); font: 700 27px Fraunces, serif; }
.ev-logo-mark span { font: 16px Inter, sans-serif; margin-left: -3px; }
.ev-visual-kicker { margin: 42px 0 14px; color: var(--ev-green); font-size: .71rem; font-weight: 800; letter-spacing: .16em; }
.ev-visual h2 { max-width: 310px; margin: 0 0 18px; color: #fff; font: 600 clamp(2rem, 3vw, 3rem)/1.02 Fraunces, serif; letter-spacing: -.025em; }
.ev-visual p:not(.ev-visual-kicker) { max-width: 300px; color: #bfc6d2; font-size: .96rem; line-height: 1.65; }
.ev-visual-stats { display: grid; gap: 13px; }
.ev-visual-stats span { display: flex; align-items: center; gap: 11px; color: #e7eaf0; font-size: .82rem; font-weight: 600; }
.ev-visual-stats svg { width: 22px; height: 22px; fill: none; stroke: var(--ev-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ev-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 42px 52px 34px; background: #fff; }
.ev-progress-wrap { padding-right: 44px; }
.ev-progress-copy { display: flex; justify-content: space-between; margin-bottom: 8px; color: #69707b; font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.ev-progress { height: 5px; overflow: hidden; border-radius: 99px; background: #e9ecea; }
.ev-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ev-green); transition: width .32s ease; }
.ev-content { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 34px 10px 25px 0; }
.ev-step { animation: ev-step .24s ease-out; }
.ev-eyebrow { margin: 0 0 9px; color: #168750; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.ev-content h1 { max-width: 610px; margin: 0; color: var(--ev-ink); font: 600 clamp(2rem, 3.2vw, 3.25rem)/1.04 Fraunces, serif; letter-spacing: -.035em; }
.ev-hint { max-width: 590px; margin: 15px 0 27px; color: #626977; font-size: .96rem; line-height: 1.55; }
.ev-budget-readout { margin: 31px 0 16px; color: #656c77; font-size: 1rem; }
.ev-budget-readout strong { color: var(--ev-ink); font: 600 2rem Fraunces, serif; }
.ev-range { appearance: none; width: 100%; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--ev-green), #bde9d0); outline: none; }
.ev-range::-webkit-slider-thumb { appearance: none; width: 25px; height: 25px; border: 6px solid #fff; border-radius: 50%; background: #169d5c; box-shadow: 0 2px 10px rgba(16,45,31,.28); cursor: grab; }
.ev-range::-moz-range-thumb { width: 14px; height: 14px; border: 6px solid #fff; border-radius: 50%; background: #169d5c; box-shadow: 0 2px 10px rgba(16,45,31,.28); cursor: grab; }
.ev-range-labels { display: flex; justify-content: space-between; margin-top: 9px; color: #8a9099; font-size: .72rem; }
.ev-mini-label { margin: 25px 0 10px; color: #525964; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ev-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin-top: 23px; }
.ev-mini-label + .ev-choices { margin-top: 0; }
.ev-choice { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border: 1px solid var(--ev-line); border-radius: 13px; background: #fff; color: #343b47; cursor: pointer; font: 650 .86rem Inter, sans-serif; text-align: left; transition: border .15s, background .15s, transform .15s; }
.ev-choice:hover { border-color: #79c99e; transform: translateY(-1px); }
.ev-choice i { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid #b8bfbd; border-radius: 50%; }
.ev-choice.is-selected { border-color: #1baa66; background: #edfbf3; color: #08713e; box-shadow: inset 0 0 0 1px #1baa66; }
.ev-choice.is-selected i { border: 5px solid #20b76f; background: #fff; }
.ev-choices-tall { grid-template-columns: 1fr 1fr; }
.ev-rate-field { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 18px; border-radius: 13px; background: var(--ev-cream); color: #343b47; font-weight: 700; }
.ev-rate-field span { color: #6a707a; font-size: .84rem; font-weight: 500; }
.ev-rate-field input { width: 70px; margin-right: 7px; padding: 9px; border: 1px solid #cfd5d1; border-radius: 8px; font: inherit; }
.ev-callout { margin: 20px 0; padding: 15px 17px; border-left: 4px solid #24b66e; border-radius: 4px 10px 10px 4px; background: #eefaf3; color: #3d5548; font-size: .85rem; line-height: 1.5; }
.ev-callout a { color: #087945; font-weight: 750; }
.ev-callout-warn { border-left-color: #dc9e2c; background: #fff8e8; color: #654d21; }
.ev-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid #edf0ee; }
.ev-next, .ev-back { appearance: none; border: 0; cursor: pointer; font: 700 .88rem Inter, sans-serif; }
.ev-next { display: flex; align-items: center; gap: 25px; min-height: 53px; padding: 0 22px; border-radius: 12px; background: var(--ev-ink); color: #fff; box-shadow: 0 8px 18px rgba(18,24,39,.18); }
.ev-next:hover { background: #087847; }
.ev-next span { font-size: 1.2rem; }
.ev-back { padding: 12px 0; background: transparent; color: #6e747d; }

.ev-results { animation: ev-step .25s ease-out; }
.ev-result-card { margin-top: 15px; padding: 20px; border: 1px solid #dde2df; border-radius: 17px; background: #fff; }
.ev-result-card.is-featured { margin-top: 26px; border: 2px solid #25b66f; background: linear-gradient(145deg, #f3fff8 0%, #fff 58%); box-shadow: 0 13px 30px rgba(26,119,72,.1); }
.ev-result-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ev-result-label { color: #087945; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.ev-condition { color: #777e86; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.ev-result-card h3 { margin: 0; color: var(--ev-ink); font: 600 1.8rem/1 Fraunces, serif; }
.ev-variant { margin: 7px 0 12px; color: #68707a; font-size: .83rem; }
.ev-result-price { margin-bottom: 17px; color: #69707a; font-size: .8rem; }
.ev-result-price strong { margin-left: 4px; color: var(--ev-ink); font-size: 1.15rem; }
.ev-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ev-metrics div { padding: 11px; border-radius: 10px; background: #f1f4f2; }
.ev-metrics span { display: block; margin-bottom: 5px; color: #767d85; font-size: .64rem; }
.ev-metrics strong { color: #202733; font-size: .78rem; }
.ev-reasons { margin: 17px 0 12px; padding: 0; list-style: none; }
.ev-reasons li { position: relative; margin-top: 7px; padding-left: 22px; color: #3e4650; font-size: .8rem; line-height: 1.45; }
.ev-reasons li::before { content: '✓'; position: absolute; left: 0; color: #0d9c57; font-weight: 800; }
.ev-tradeoff { margin: 13px 0 10px; color: #606873; font-size: .75rem; line-height: 1.5; }
.ev-source { color: #087945; font-size: .69rem; font-weight: 700; text-decoration: none; }
.ev-alt-heading { margin: 32px 0 5px; color: var(--ev-ink); font: 600 1.5rem Fraunces, serif; }
.ev-alt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-alt-grid .ev-result-card h3 { font-size: 1.35rem; }
.ev-alt-grid .ev-metrics { grid-template-columns: 1fr; }
.ev-alt-grid .ev-reasons { display: none; }
.ev-assumptions { margin: 22px 0; padding: 14px 16px; border-radius: 10px; background: #f5f5f2; color: #5e6570; font-size: .75rem; line-height: 1.55; }
.ev-assumptions summary { cursor: pointer; color: #363e48; font-weight: 700; }

@keyframes ev-fade { from { opacity: 0; } }
@keyframes ev-rise { from { opacity: 0; transform: translateY(20px) scale(.985); } }
@keyframes ev-step { from { opacity: 0; transform: translateX(9px); } }

@media (max-width: 760px) {
    .nav-menu .nav-ev-button { width: 100%; text-align: center; }
    .ev-modal { padding: 0; }
    .ev-shell { width: 100%; height: 100%; max-height: none; grid-template-columns: 1fr; grid-template-rows: 106px 1fr; border-radius: 0; }
    .ev-visual { padding: 20px 62px 16px 20px; justify-content: center; }
    .ev-logo-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 20px; }
    .ev-visual-kicker { margin: 0 0 5px 50px; transform: translateY(-38px); }
    .ev-visual h2 { margin: -32px 0 0 50px; font-size: 1.25rem; }
    .ev-visual p:not(.ev-visual-kicker), .ev-visual-stats { display: none; }
    .ev-close { top: 17px; right: 15px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
    .ev-stage { padding: 21px 20px 18px; }
    .ev-progress-wrap { padding-right: 0; }
    .ev-content { padding: 25px 2px 18px 0; }
    .ev-content h1 { font-size: 2rem; }
    .ev-hint { margin-bottom: 20px; }
    .ev-budget-readout { margin-top: 20px; }
    .ev-choices, .ev-choices-tall { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ev-choice { min-height: 53px; padding: 11px; }
    .ev-actions { padding-top: 13px; }
    .ev-next { min-height: 49px; padding: 0 17px; gap: 13px; }
    .ev-alt-grid { grid-template-columns: 1fr; }
    .ev-metrics { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 410px) {
    .ev-stage { padding-left: 16px; padding-right: 16px; }
    .ev-choice { font-size: .78rem; }
    .ev-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ev-backdrop, .ev-shell, .ev-step, .ev-results { animation: none; }
    .ev-progress i, .ev-choice { transition: none; }
}
