:root {
  --cream: #f7f6f1;
  --cream-dark: #ece9df;
  --white: #ffffff;
  --navy: #16233a;
  --navy-soft: #253653;
  --muted: #5c6470;
  --cobalt: #1f4fd8;
  --cobalt-dark: #173cac;
  --line: rgba(22, 35, 58, 0.16);
  --shadow: 0 24px 70px rgba(22, 35, 58, 0.12);
  --radius: 18px;
  --radius-small: 12px;
  --shell: 1180px;
  --header-height: 78px;
  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.brand-name,
.button {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--cobalt);
  color: var(--white);
  cursor: pointer;
  padding: 14px 24px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--cobalt-dark);
  box-shadow: 0 12px 24px rgba(31, 79, 216, 0.2);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-small {
  min-height: 44px;
  padding: 11px 17px;
  font-size: 0.86rem;
}

.button-full {
  width: 100%;
}

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

.button-secondary:hover {
  background: var(--cream-dark);
  box-shadow: none;
}

.button-light {
  background: var(--cream);
  color: var(--navy);
}

.button-light:hover {
  background: var(--white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 241, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(22, 35, 58, 0.08);
  border-radius: 50%;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-transform: uppercase;
}

.brand-name span {
  display: block;
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.desktop-nav a:hover {
  background: var(--cream-dark);
  color: var(--navy);
}

.hero {
  overflow: hidden;
  padding: clamp(42px, 7vw, 88px) 0 clamp(56px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  min-height: min(700px, calc(100svh - var(--header-height) - 70px));
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.text-link span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link strong {
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 650;
}

.text-link:hover strong {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.trust-list {
  display: flex;
  margin: 36px 0 0;
  padding: 0;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.79rem;
  font-weight: 700;
  gap: 12px 22px;
  list-style: none;
}

.trust-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--cobalt);
  vertical-align: 1px;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--navy);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 35, 58, 0.35));
  content: "";
  pointer-events: none;
}

.hero-visual > img,
.hero-visual > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual > canvas {
  z-index: 1;
  opacity: 0;
}

.sun-note {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sun-note-line {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.62);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading.centered > p:not(.eyebrow) {
  margin-inline: auto;
}

.quote-section {
  padding: clamp(78px, 10vw, 130px) 0;
  background: var(--cream-dark);
}

.quote-grid {
  display: grid;
  align-items: start;
  gap: 26px;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
}

.calculator-card,
.lead-card {
  border: 1px solid rgba(22, 35, 58, 0.1);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 16px 42px rgba(22, 35, 58, 0.07);
}

.calculator-card {
  padding: clamp(26px, 4vw, 44px);
}

.bill-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.bill-row label {
  font-weight: 750;
}

.bill-row output {
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -0.06em;
}

.bill-range {
  width: 100%;
  height: 34px;
  margin: 20px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.bill-range::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cobalt) var(--range-fill, 33%), rgba(22, 35, 58, 0.13) var(--range-fill, 33%));
}

.bill-range::-moz-range-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(22, 35, 58, 0.13);
}

.bill-range::-moz-range-progress {
  height: 7px;
  border-radius: 99px;
  background: var(--cobalt);
}

.bill-range::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -9px;
  border: 5px solid var(--white);
  border-radius: 50%;
  appearance: none;
  background: var(--cobalt);
  box-shadow: 0 2px 10px rgba(22, 35, 58, 0.28);
}

.bill-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 2px 10px rgba(22, 35, 58, 0.28);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.results {
  display: grid;
  margin: 30px 0 0;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results div {
  min-width: 0;
  border-radius: var(--radius-small);
  background: var(--cream-dark);
  padding: 20px;
}

.results dt {
  min-height: 2.5em;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.results dd {
  margin: 10px 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.results .result-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.calc-explainer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.calc-explainer img {
  width: 38px;
  flex: 0 0 auto;
}

.calc-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.lead-card {
  padding: clamp(26px, 4vw, 38px);
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.card-intro {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.choice-field legend {
  display: block;
  margin-bottom: 7px;
  font-size: 0.79rem;
  font-weight: 800;
}

.field label span {
  color: var(--muted);
  font-weight: 600;
}

.field input:not([type="radio"]),
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--navy);
  padding: 11px 13px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.field input:not([type="radio"]):focus,
.field select:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(31, 79, 216, 0.14);
}

.field input::placeholder {
  color: #9299a2;
}

.choice-field {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.choices {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choices label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
  padding: 10px 14px;
}

.choices input {
  width: 18px;
  height: 18px;
  accent-color: var(--cobalt);
}

.form-error {
  min-height: 1.4em;
  margin: 12px 0 8px;
  color: #a52323;
  font-size: 0.8rem;
  font-weight: 700;
}

.consent {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.inline-button,
.footer-links button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.success-panel {
  min-height: 490px;
  align-content: center;
  text-align: center;
}

.success-panel:not([hidden]) {
  display: grid;
  justify-items: center;
}

.success-panel:focus {
  outline: none;
}

.success-panel img {
  margin-bottom: 20px;
}

.success-panel p:not(.card-kicker) {
  max-width: 390px;
  color: var(--muted);
}

.why-section,
.steps-section,
.evening-section,
.faq-section {
  padding: clamp(82px, 10vw, 132px) 0;
}

.why-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-card {
  min-height: 270px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
}

.why-card h3 {
  margin-top: 18px;
}

.why-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-number {
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.rate-card {
  grid-column: span 2;
}

.rate-card svg {
  width: 100%;
  margin-top: 24px;
}

.financing-card {
  border-right: 0;
  grid-column: span 2;
}

.big-figure {
  margin: 15px 0 -4px;
  color: var(--cobalt) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 4rem !important;
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 1;
}

.battery-card,
.local-card {
  border-bottom: 0;
}

.local-card {
  border-right: 0;
  background: var(--navy);
  color: var(--cream);
}

.local-card p:last-child {
  color: rgba(247, 246, 241, 0.72);
}

.why-card > img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.why-photo {
  position: relative;
  min-height: 310px;
  grid-column: span 2;
}

.why-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-photo::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(22, 35, 58, 0.7));
  content: "";
}

.why-photo > p {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 1;
  margin: 0;
  color: var(--white);
}

.why-photo > p strong,
.why-photo > p span {
  display: block;
}

.why-photo > p span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.74rem;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.steps-section {
  padding-top: 30px;
}

.steps-grid {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.steps-grid li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.step-media {
  display: grid;
  height: 180px;
  place-items: center;
  overflow: hidden;
  background: var(--cream-dark);
}

.step-media img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-copy {
  padding: 24px;
}

.step-copy > span {
  color: var(--cobalt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.step-copy h3 {
  margin-top: 8px;
  font-size: 1.18rem;
}

.step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.evening-section {
  background: var(--cream-dark);
}

.evening-grid {
  display: grid;
  align-items: stretch;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
}

.evening-copy {
  align-self: center;
}

.evening-copy > p:not(.eyebrow):not(.strong-line) {
  color: var(--muted);
}

.strong-line {
  margin: 24px 0;
  font-weight: 800;
}

.town-list {
  display: flex;
  margin: 0 0 28px;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.town-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 750;
}

.phone-line {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.phone-line:hover {
  color: var(--cobalt);
}

.evening-photo {
  min-height: 550px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.evening-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-shell {
  max-width: 900px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: grid;
  min-height: 82px;
  align-items: center;
  cursor: pointer;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  gap: 18px;
  grid-template-columns: 42px 1fr 30px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--cobalt);
  content: "+";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.faq-list details > p {
  max-width: 720px;
  margin: -2px 40px 26px 60px;
  color: var(--muted);
}

.closing-section {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(78px, 10vw, 125px) 0;
  text-align: center;
}

.closing-section .eyebrow {
  color: #a9bfff;
}

.closing-inner h2 {
  max-width: 800px;
  margin-inline: auto;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.call-arc {
  display: inline-flex;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.9rem, 2vw, 1.12rem);
  text-decoration: none;
}

.call-arc svg {
  width: 260px;
  height: 27px;
  margin-top: -2px;
}

.call-arc path {
  fill: none;
  stroke: rgba(247, 246, 241, 0.52);
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.call-arc circle {
  fill: var(--cobalt);
}

.site-footer {
  background: #101a2b;
  color: rgba(247, 246, 241, 0.75);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  align-items: end;
  gap: 40px;
  grid-template-columns: 1fr auto;
}

.footer-brand {
  color: var(--cream);
}

.footer-grid > div:first-child > p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-links button {
  font-size: 0.82rem;
}

.footer-links a {
  text-underline-offset: 3px;
}

.legal-line {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 32px;
  border-top: 1px solid rgba(247, 246, 241, 0.12);
  padding-top: 20px;
  color: rgba(247, 246, 241, 0.48);
  font-size: 0.67rem;
}

.legal-line span:last-child {
  max-width: 650px;
  text-align: right;
}

.mobile-bar {
  display: none;
}

dialog {
  width: min(calc(100% - 32px), 720px);
  max-height: min(82svh, 780px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  padding: 0;
}

dialog::backdrop {
  background: rgba(10, 19, 34, 0.66);
  backdrop-filter: blur(4px);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  padding: 18px 24px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.5rem;
  place-items: center;
}

.dialog-body {
  max-height: calc(min(82svh, 780px) - 76px);
  overflow-y: auto;
  padding: 24px;
}

.dialog-body h3 {
  margin: 24px 0 6px;
  font-size: 1rem;
}

.dialog-body h3:first-child {
  margin-top: 0;
}

.dialog-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.noscript-note {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  max-width: 360px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 16px;
  font-size: 0.8rem;
}

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

  .hero-grid,
  .quote-grid,
  .evening-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
    padding-top: 20px;
  }

  .hero-visual {
    min-height: clamp(390px, 68vw, 620px);
  }

  .quote-grid {
    max-width: 780px;
    margin-inline: auto;
  }

  .lead-card {
    order: 2;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rate-card,
  .financing-card,
  .why-photo {
    grid-column: span 1;
  }

  .rate-card,
  .battery-card {
    border-right: 1px solid var(--line);
  }

  .financing-card,
  .local-card {
    border-right: 0;
  }

  .battery-card,
  .local-card {
    border-bottom: 1px solid var(--line);
  }

  .why-photo {
    min-height: 280px;
    grid-column: 1 / -1;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evening-copy {
    max-width: 720px;
  }

  .evening-photo {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  body {
    padding-bottom: 64px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header .button-small {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.87rem;
  }

  .brand-name span {
    font-size: 0.54rem;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 26px;
  }

  .hero-visual {
    min-height: 430px;
    border-radius: 16px;
  }

  .sun-note {
    right: 16px;
    bottom: 15px;
    left: 16px;
    font-size: 0.6rem;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .calculator-card,
  .lead-card {
    border-radius: 15px;
  }

  .bill-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .results dt {
    min-height: 0;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .why-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .why-card,
  .rate-card,
  .financing-card,
  .battery-card,
  .local-card,
  .why-photo {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-column: auto;
  }

  .why-photo {
    min-height: 250px;
  }

  .step-media {
    height: 155px;
  }

  .evening-photo {
    min-height: 390px;
  }

  .faq-list summary {
    min-height: 76px;
    gap: 10px;
    grid-template-columns: 32px 1fr 24px;
  }

  .faq-list details > p {
    margin-right: 10px;
    margin-left: 42px;
  }

  .closing-actions {
    flex-direction: column;
  }

  .closing-actions .button {
    width: 100%;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .legal-line {
    flex-direction: column;
    gap: 8px;
  }

  .legal-line span:last-child {
    text-align: left;
  }

  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    min-height: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--navy);
    box-shadow: 0 -10px 30px rgba(22, 35, 58, 0.2);
    grid-template-columns: 0.8fr 1.2fr;
  }

  .mobile-bar a {
    display: grid;
    color: var(--cream);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    place-items: center;
    text-decoration: none;
  }

  .mobile-bar a:last-child {
    background: var(--cobalt);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .hero-actions,
  .closing-section,
  .site-footer {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }

  section {
    break-inside: avoid;
  }
}
