/* Heat pump rebate landing page. Colors inherit the site theme (dark/light toggle); accent is the site orange. */
.hpl {
  --hpl-accent: var(--_primitives---colors--orange, #ff8f2c);
  --hpl-go: #34b866;
  --hpl-line: color-mix(in srgb, currentColor 18%, transparent);
  --hpl-fill: color-mix(in srgb, currentColor 6%, transparent);
  --hpl-muted: color-mix(in srgb, currentColor 70%, transparent);
  --hpl-warm: var(--hpl-accent);
  --hpl-bg: #0b0806;
  -webkit-text-fill-color: currentColor;
  line-height: 1.55;
}
/* The site's light theme is the html.u-theme--dark class (white background): darken small colored text for contrast. */
html.u-theme--dark .hpl { --hpl-go: #12803f; --hpl-warm: #a84a00; --hpl-bg: #fff; }
.hpl *, .hpl *::before, .hpl *::after { box-sizing: border-box; }
.hpl [hidden] { display: none !important; }
.hpl a { text-decoration: underline; text-underline-offset: 2px; }

.hpl-h1, .hpl-h2, .hpl-h3, .hpl legend, .hpl-big, .mhc-big, .hpl-ledger .is-total td {
  font-family: var(--_typography---font-styles--heading, "Oswald", sans-serif);
}
.hpl-h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; text-transform: uppercase; margin: 0 0 .35em; font-weight: 700; }
.hpl-h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.08; text-transform: uppercase; margin: 0 0 .5em; font-weight: 700; }
.hpl-h3 { font-size: 1.35rem; line-height: 1.2; text-transform: uppercase; margin: 0 0 .5em; font-weight: 600; letter-spacing: .01em; }
.hpl-kicker { color: var(--hpl-warm); font-weight: 700; margin: 0 0 14px; }
.hpl-lede { font-size: 1.15rem; max-width: 62ch; margin: 0 0 24px; }
.hpl-small, .hpl-note { font-size: .88rem; color: var(--hpl-muted); max-width: 85ch; }
.hpl-note { margin: 16px 0 0; }

.hpl-section { padding: 64px 0; }
.hpl-section--band { background: var(--hpl-fill); }
.hpl-hero { padding: 56px 0 64px; }
.hpl-hero-grid { display: grid; gap: 36px; }
@media (min-width: 992px) { .hpl-hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; } }

.hpl-flag { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--hpl-line); border-left: 4px solid var(--hpl-accent); border-radius: 10px; font-weight: 700; max-width: 54ch; margin: 0 0 28px; }
.hpl-flag::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 10px; border-left: 3px solid var(--hpl-accent); border-bottom: 3px solid var(--hpl-accent); transform: rotate(-45deg); }

.hpl-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hpl-topcall { margin: 0 0 18px; }
.hpl-topcall .hpl-btn { display: block; text-align: center; }
@media (min-width: 768px) { .hpl-topcall { display: none; } }
.hpl-btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none !important; border: 2px solid var(--hpl-accent); cursor: pointer; font-family: inherit; line-height: 1.2; }
.hpl-btn--solid { background: var(--hpl-accent); color: #0b0806; -webkit-text-fill-color: #0b0806; }
.hpl-btn--solid:hover { filter: brightness(1.08); }
.hpl-btn--line { background: transparent; color: inherit; }
.hpl-btn--line:hover { background: var(--hpl-fill); }
.hpl-rev { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 8px; max-width: 100%; box-sizing: border-box; font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; color: inherit; -webkit-text-fill-color: currentColor; text-decoration: none !important; }
.hpl-rev:hover span { text-decoration: underline; }
.hpl-rev-star { flex: none; color: var(--hpl-warm); }

/* The receipt: the one memorable element on the page */
.hpl-ledger { border: 1px solid var(--hpl-line); border-top: 6px solid var(--hpl-accent); border-radius: 14px; padding: clamp(20px, 3vw, 32px); background: var(--hpl-fill); font-variant-numeric: tabular-nums; }
.hpl-ledger-title { font-weight: 700; margin: 0 0 10px; }
.hpl-ledger table { width: 100%; border-collapse: collapse; }
.hpl-ledger td { padding: 10px 0; border-bottom: 1px dashed var(--hpl-line); }
.hpl-ledger td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.hpl-ledger .is-credit td:last-child { color: var(--hpl-go); }
.hpl-ledger .is-total td { border-bottom: 0; padding-top: 18px; vertical-align: bottom; text-transform: uppercase; font-size: 1.15rem; }
.hpl-ledger .is-total td:last-child { font-size: clamp(3.2rem, 9vw, 4.6rem); line-height: .9; color: var(--hpl-go); }
.hpl-ledger-then { font-weight: 700; margin: 10px 0 0; }

.hpl-two { display: grid; gap: 20px; }
@media (min-width: 800px) { .hpl-two { grid-template-columns: 1fr 1fr; } }
.hpl-card { border: 1px solid var(--hpl-line); border-radius: 14px; padding: 24px; background: var(--hpl-fill); }
.hpl-card p { margin: 0; }
.hpl-card ul { margin: 0; padding-left: 1.2em; }
.hpl-card li { margin-bottom: 8px; }
.hpl-wh { margin-top: 20px; }

.hpl-table { width: 100%; max-width: 900px; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.hpl-table th:last-child { width: 96px; }
.hpl-table td { overflow-wrap: anywhere; }
.hpl-table th { text-align: left; padding: 10px 14px; background: var(--hpl-accent); color: #0b0806; -webkit-text-fill-color: #0b0806; font-size: .95rem; }
.hpl-table td { padding: 13px 14px; border-bottom: 1px solid var(--hpl-line); vertical-align: top; }
.hpl-table th:last-child, .hpl-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.hpl-table td small, .hpl-ledger td small { display: block; color: var(--hpl-muted); font-size: .85rem; }
.hpl-table .is-group td { background: var(--hpl-fill); font-weight: 700; text-align: left; white-space: normal; }

.hpl-loan { display: grid; gap: 28px; }
@media (min-width: 992px) { .hpl-loan { grid-template-columns: 1fr 1fr; align-items: center; } }
.hpl-big { font-size: clamp(4rem, 11vw, 7rem); color: var(--hpl-accent); line-height: .9; margin: 0 0 8px; font-weight: 700; }
.hpl-big-sub { font-size: 1.2rem; margin: 0; }
.hpl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hpl-checks li { position: relative; padding-left: 36px; font-size: 1.1rem; }
.hpl-checks li::before { content: ""; position: absolute; left: 2px; top: .25em; width: 16px; height: 9px; border-left: 3px solid var(--hpl-accent); border-bottom: 3px solid var(--hpl-accent); transform: rotate(-45deg); }

.hpl-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 700px) { .hpl-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hpl-steps { grid-template-columns: repeat(3, 1fr); } }
.hpl-steps li { counter-increment: s; border: 1px solid var(--hpl-line); border-radius: 14px; padding: 22px; }
.hpl-steps li::before { content: counter(s); display: block; font-family: var(--_typography---font-styles--heading, "Oswald", sans-serif); font-size: 2rem; line-height: 1; color: var(--hpl-accent); margin-bottom: 10px; font-weight: 700; }
.hpl-steps b { display: block; font-size: 1.1rem; margin-bottom: 4px; }

.hpl-faq details { border-bottom: 1px solid var(--hpl-line); padding: 18px 0; max-width: 85ch; }
.hpl-faq summary { font-weight: 700; cursor: pointer; font-size: 1.1rem; }
.hpl-faq details p { margin: 10px 0 0; }

.hpl-quote { display: grid; gap: 32px; }
@media (min-width: 992px) { .hpl-quote { grid-template-columns: .85fr 1.15fr; } }
.hpl-qform { display: grid; gap: 14px; border: 1px solid var(--hpl-line); border-radius: 14px; padding: 24px; }
.hpl-qform label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.hpl input, .hpl select, .hpl textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--hpl-line); border-radius: 8px; color: inherit; -webkit-text-fill-color: currentColor; background: var(--hpl-fill); }
.hpl select option { color: #0b0806; -webkit-text-fill-color: #0b0806; }
.hpl textarea[readonly] { font-size: .85rem; min-height: 140px; }
.hpl-row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .hpl-row2 { grid-template-columns: 1fr 1fr; } }
.hpl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hpl-err { color: #ff6b6b; margin: 0; }
.hpl-done { border: 1px solid var(--hpl-line); border-left: 4px solid var(--hpl-go); border-radius: 14px; padding: 24px; }
.hpl :focus-visible { outline: 3px solid var(--hpl-accent); outline-offset: 2px; }

/* Calculator */
.mhc-grid { display: grid; gap: 28px; }
@media (min-width: 992px) { .mhc-grid { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; } .mhc-sum { position: sticky; top: 24px; } .mhc-bar { display: none !important; } }
.mhc-form fieldset { border: 0; border-top: 1px solid var(--hpl-line); margin: 0; padding: 20px 0; min-width: 0; }
.mhc-form legend { font-size: 1.25rem; text-transform: uppercase; font-weight: 600; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.mhc-form legend + * { clear: both; }
.mhc-row { margin: 0 0 16px; }
.mhc-row > label, .mhc-lab { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.mhc-form input[type=text], .mhc-form select { max-width: 400px; }
.mhc-hint { display: block; color: var(--hpl-muted); font-size: .85rem; font-weight: 400; margin-top: 4px; }
.mhc-fn { display: block; color: var(--hpl-muted); font-size: .78rem; line-height: 1.4; margin-top: 4px; font-weight: 400; }
.mhc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.mhc-seg label { position: relative; cursor: pointer; }
.mhc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.mhc-seg span { display: block; padding: 9px 14px; border: 1px solid var(--hpl-line); border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mhc-seg input:checked + span { background: var(--hpl-accent); border-color: var(--hpl-accent); color: #0b0806; -webkit-text-fill-color: #0b0806; }
.mhc-seg input:focus-visible + span { outline: 3px solid var(--hpl-accent); outline-offset: 2px; }
.mhc-seg input:disabled + span { opacity: .45; }
.mhc-seg input:disabled { cursor: not-allowed; }
.mhc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mhc-cards span { padding: 12px 14px; font-weight: 400; height: 100%; }
.mhc-cards b { display: block; font-size: 1rem; text-transform: uppercase; }
.mhc-cards i { display: block; font-style: normal; font-size: .85rem; opacity: .85; }
.mhc-ck { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.mhc-ck input { width: 20px !important; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--hpl-accent); flex: none; }
.mhc-rng { display: flex; gap: 12px; align-items: center; max-width: 460px; }
.mhc-rng input { flex: 1; padding: 0; border: 0; background: none; accent-color: var(--hpl-accent); }
.mhc-rng output { min-width: 60px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mhc-sum { border: 1px solid var(--hpl-line); border-top: 6px solid var(--hpl-accent); border-radius: 14px; padding: 22px; background: var(--hpl-fill); font-variant-numeric: tabular-nums; }
.mhc-st { background: var(--hpl-fill); border-radius: 8px; padding: 10px 12px; font-size: .9rem; margin: 0 0 16px; }
.mhc-k { margin: 0; font-weight: 700; text-transform: uppercase; }
.mhc-big { margin: 0; font-size: clamp(2.8rem, 9vw, 3.8rem); font-weight: 700; line-height: 1.05; }
.mhc-big.is-zero { color: var(--hpl-go); }
.mhc-mo { margin: 6px 0 16px; font-weight: 700; min-height: 1.5em; }
.mhc-sum table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mhc-sum td { padding: 7px 0; border-bottom: 1px solid var(--hpl-line); vertical-align: top; }
.mhc-sum td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.mhc-sum tr.is-total td { font-weight: 700; }
.mhc-sum tr.is-credit td { color: var(--hpl-go); }
.mhc-notes { margin: 14px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--hpl-warm); }
.mhc-notes li { margin: 0 0 6px; }
.mhc-cta { display: block; width: 100%; margin: 18px 0 10px; font-size: 1.05rem; }
.mhc-tel { display: block; text-align: center; font-weight: 700; }
.mhc-msg { min-height: 1.4em; font-size: .88rem; color: var(--hpl-go); margin: 6px 0 0; }
.mhc-bar { position: sticky; bottom: 0; margin: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--hpl-bg); border-top: 1px solid var(--hpl-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; z-index: 50; }
.mhc-bar b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.mhc-bar small { display: block; color: var(--hpl-muted); }
.mhc-bar u { color: var(--hpl-accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
#mhc:not(.is-ready) .mhc-form { opacity: .4; pointer-events: none; }

/* Selling points, call-to-action bands, why-us grid */
.hpl-perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; max-width: 60ch; }
.hpl-perks li { position: relative; padding-left: 30px; }
.hpl-perks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 14px; height: 8px; border-left: 3px solid var(--hpl-accent); border-bottom: 3px solid var(--hpl-accent); transform: rotate(-45deg); }
.hpl-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 14px; border: 2px solid var(--hpl-accent); background: color-mix(in srgb, var(--hpl-accent) 10%, transparent); }
.hpl-cta > div { flex: 1 1 320px; }
.hpl-cta p { margin: 0; }
.hpl-cta-title { font-family: var(--_typography---font-styles--heading, "Oswald", sans-serif); text-transform: uppercase; font-size: 1.5rem; line-height: 1.15; font-weight: 700; margin-bottom: 6px !important; }
.hpl-why { display: grid; gap: 20px; }
@media (min-width: 800px) { .hpl-why { grid-template-columns: 1fr 1fr; } }

/* Price lock and scarcity */
.mhc-sum tr.is-regular td { color: var(--hpl-muted); text-decoration: line-through; }
.mhc-lock { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--hpl-accent); font-weight: 700; font-size: .92rem; }
.mhc-lock:empty { display: none; }
.hpl-scarce { margin: 0 0 18px; font-weight: 700; color: var(--hpl-warm); }

/* Callback: short path (name + phone) from anywhere on the page */
.hpl-cta > .hpl-btns { flex: 0 1 auto; }
.hpl-quick { margin: 14px 0 0; color: var(--hpl-muted); }
.hpl-faq summary { display: flex; align-items: center; min-height: 44px; }
.hpl-small a, .hpl-quick a { display: inline-block; min-height: 44px; line-height: 44px; }
.hpl-link { min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--hpl-accent); -webkit-text-fill-color: var(--hpl-accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hpl-cb { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid var(--hpl-line); border-radius: 16px; color: inherit; background: var(--hpl-bg); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); }
.hpl-cb::backdrop { background: rgba(0, 0, 0, .6); }
.hpl-cb-form, .hpl-cb-done { position: relative; display: grid; gap: 14px; padding: 28px 24px 24px; }
.hpl-cb p { margin: 0; }
.hpl-cb .hpl-h3 { margin: 0; padding-right: 36px; }
.hpl-cb label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.hpl-cb .hpl-btn { width: 100%; }
.hpl-cb-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--hpl-fill); color: inherit; -webkit-text-fill-color: currentColor; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hpl-fab { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--hpl-accent); color: #0b0806; -webkit-text-fill-color: #0b0806; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); cursor: pointer; }
