:root {
  --ink: #1c2638;
  --muted: #687386;
  --line: #dde3ea;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --red: #ae1d2b;
  --red-dark: #801420;
  --orange: #f07935;
  --gold: #ffd66b;
  --green: #247252;
  --shadow: 0 22px 65px rgba(36, 47, 69, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 6% 2%, rgba(242, 113, 54, 0.1), transparent 26rem),
    var(--canvas);
  color: var(--ink);
  font-family:
    Inter, Arial, "Noto Sans", "Noto Sans SC", "Microsoft YaHei",
    "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(240, 121, 53, 0.32);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 222, 230, 0.88);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--red), var(--orange));
  border-radius: 18px 8px 18px 8px;
  box-shadow: 0 8px 22px rgba(174, 29, 43, 0.24);
  color: white;
  display: flex;
  font-size: 25px;
  font-weight: 950;
  height: 45px;
  justify-content: center;
  width: 45px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 2px;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.language-switcher {
  background: #eef1f5;
  border-radius: 999px;
  display: flex;
  gap: 3px;
  padding: 4px;
}

.language-switcher button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #727c8e;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  min-width: 44px;
  padding: 0 11px;
}

.language-switcher button.selected {
  background: white;
  box-shadow: 0 4px 13px rgba(31, 42, 64, 0.11);
  color: var(--red);
}

main {
  margin: 0 auto;
  max-width: 1160px;
  padding: 24px 22px 75px;
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 90% -15%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(130deg, #841522, #be2930 57%, #e66535);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(135, 23, 34, 0.23);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 330px;
  overflow: hidden;
  padding: 50px 55px;
  position: relative;
}

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

.eyebrow {
  color: #ffd3bf;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2.5px;
  margin: 0 0 12px;
}

.eyebrow.light {
  color: #ffd4bf;
}

.hero h1 {
  font-size: clamp(34px, 4.3vw, 52px);
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin: 0;
  max-width: 720px;
}

.hero-text {
  color: #ffe8df;
  font-size: 15px;
  line-height: 1.7;
  margin: 18px 0 22px;
  max-width: 660px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 11px;
}

.solar-orbit {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  margin-left: 30px;
  position: relative;
}

.solar-orbit::before,
.solar-orbit::after {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.solar-orbit::before {
  inset: 25px;
}

.solar-orbit::after {
  inset: 59px;
}

.sun-core {
  align-items: center;
  background: linear-gradient(145deg, #fff8c9, var(--gold), #f5a438);
  border: 6px solid rgba(255, 249, 213, 0.35);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(74, 20, 22, 0.25);
  color: #8c2525;
  display: flex;
  flex-direction: column;
  height: 126px;
  justify-content: center;
  position: relative;
  width: 126px;
  z-index: 2;
}

.sun-core span {
  font-size: 29px;
  font-weight: 950;
}

.sun-core small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.orbit-dot {
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.1);
  height: 9px;
  position: absolute;
  width: 9px;
}

.dot-one {
  right: 17px;
  top: 83px;
}

.dot-two {
  bottom: 21px;
  left: 76px;
}

.dot-three {
  left: 28px;
  top: 59px;
}

.calculator-card,
.adjust-card {
  background: var(--paper);
  border: 1px solid rgba(219, 225, 233, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-top: 24px;
  padding: 32px;
}

.section-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.section-heading > div {
  align-items: center;
  display: flex;
  gap: 11px;
}

.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 0;
}

.step {
  align-items: center;
  background: #fff0e9;
  border-radius: 10px;
  color: var(--orange);
  display: flex;
  flex: 0 0 38px;
  font-size: 12px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
}

.input-grid {
  display: grid;
  gap: 21px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.field {
  border: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.field > span,
.field legend {
  color: #4e596c;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 9px;
}

.field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #7b8494 50%) calc(100% - 19px)
      22px / 6px 6px no-repeat,
    linear-gradient(135deg, #7b8494 50%, transparent 50%) calc(100% - 13px)
      22px / 6px 6px no-repeat,
    #f8f9fb;
  border: 1px solid #dce1e8;
  border-radius: 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  height: 54px;
  padding: 0 15px;
}

.money-input {
  align-items: center;
  background: #fff8f4;
  border: 1px solid #edc6b7;
  border-radius: 14px;
  display: flex;
  height: 60px;
  overflow: hidden;
}

.money-input b {
  color: var(--red);
  font-size: 16px;
  padding-left: 17px;
}

.money-input input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  height: 100%;
  min-width: 0;
  padding: 0 14px 0 8px;
  width: 100%;
}

.field.invalid .money-input {
  border: 2px solid #cf2e3b;
}

.phase-choice {
  background: #f1f3f6;
  border-radius: 14px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
}

.phase-choice button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: #697386;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 9px;
  justify-content: center;
  min-height: 50px;
}

.phase-choice button.selected {
  background: white;
  box-shadow: 0 6px 18px rgba(35, 43, 64, 0.09);
  color: var(--red);
}

.phase-icon {
  align-items: center;
  background: rgba(174, 29, 43, 0.09);
  border-radius: 8px;
  color: inherit;
  display: inline-flex;
  font-size: 11px;
  height: 26px;
  justify-content: center;
  width: 28px;
}

.usage-field {
  position: relative;
}

.usage-field output {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
}

input[type="range"] {
  accent-color: var(--orange);
}

.usage-range {
  margin: 9px 2px 7px;
  width: calc(100% - 4px);
}

.range-ticks {
  color: #929aa8;
  display: flex;
  font-size: 9px;
  justify-content: space-between;
}

.primary-button {
  align-items: center;
  background: linear-gradient(135deg, var(--red), #d23b2c);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 15px 33px rgba(174, 29, 43, 0.23);
  color: white;
  display: flex;
  font-size: 16px;
  font-weight: 950;
  justify-content: center;
  margin-top: 26px;
  min-height: 60px;
  width: 100%;
}

.primary-button > span:last-child {
  font-size: 25px;
  margin-left: 13px;
}

.empty-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed #c9d0da;
  border-radius: 23px;
  color: var(--muted);
  display: flex;
  gap: 20px;
  margin-top: 24px;
  min-height: 145px;
  padding: 27px 32px;
}

.empty-icon {
  align-items: center;
  background: white;
  border-radius: 17px;
  box-shadow: 0 10px 25px rgba(36, 47, 69, 0.08);
  color: var(--orange);
  display: flex;
  font-size: 33px;
  height: 65px;
  justify-content: center;
  width: 65px;
}

.empty-state h2 {
  color: var(--ink);
  font-size: 19px;
  margin: 0 0 7px;
}

.empty-state p {
  font-size: 13px;
  margin: 0;
}

.results {
  scroll-margin-top: 95px;
}

.recommendation-card {
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(132deg, #7f1420, #b8252d 62%, #da5632);
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(128, 20, 32, 0.2);
  color: white;
  margin-top: 30px;
  overflow: hidden;
  padding: 32px;
}

.recommendation-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.recommendation-top h2 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 0;
}

.location-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  min-width: 115px;
  padding: 10px 13px;
  text-align: right;
}

.location-chip strong {
  font-size: 13px;
}

.location-chip span {
  color: #ffdccc;
  font-size: 10px;
  margin-top: 2px;
}

.recommendation-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  margin-top: 23px;
}

.recommendation-grid > div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 130px;
  padding: 18px;
}

.recommendation-grid span {
  color: #ffd9ca;
  font-size: 11px;
  font-weight: 800;
}

.recommendation-grid strong {
  font-size: 20px;
  margin-top: 16px;
}

.recommendation-grid small {
  color: #ffdccc;
  font-size: 10px;
  line-height: 1.35;
  margin-top: 6px;
}

.recommend-main {
  background: linear-gradient(
    145deg,
    rgba(255, 241, 184, 0.96),
    rgba(255, 189, 76, 0.96)
  ) !important;
  border-color: rgba(255, 232, 161, 0.85) !important;
  color: #7f2024;
}

.recommend-main > span,
.recommend-main small {
  color: #9b4d2a;
}

.recommend-main > div {
  align-items: baseline;
  display: flex;
  margin-top: 4px;
}

.recommend-main strong {
  font-size: 46px;
  letter-spacing: -2px;
  margin: 0 6px 0 0;
}

.recommend-main b {
  font-size: 14px;
}

.battery-highlight {
  background: rgba(255, 255, 255, 0.16) !important;
}

.recommendation-savings {
  background: white;
  border-radius: 17px;
  color: var(--ink);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 11px;
}

.recommendation-savings > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 80px;
  padding: 15px 22px;
}

.recommendation-savings > div + div {
  border-left: 1px solid var(--line);
}

.recommendation-savings span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recommendation-savings strong {
  color: var(--green);
  font-size: 29px;
}

.recommendation-savings > div:last-child strong {
  color: var(--red);
}

.adjust-card {
  margin-top: 22px;
}

.live-pill {
  align-items: center;
  background: #edf8f2;
  border: 1px solid #cee7d8;
  border-radius: 999px;
  color: var(--green);
  display: flex;
  font-size: 10px;
  font-weight: 900;
  gap: 6px;
  padding: 7px 10px;
}

.live-pill i {
  background: #37a66f;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.adjust-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0 49px;
}

.controls-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.slider-card {
  background: #f8f9fb;
  border: 1px solid #e1e5ea;
  border-radius: 18px;
  padding: 20px;
}

.slider-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.slider-heading > div:first-child {
  display: flex;
  flex-direction: column;
}

.slider-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.slider-heading strong {
  color: var(--red);
  font-size: 23px;
  margin-top: 4px;
}

.battery-slider-card .slider-heading strong {
  color: #6d4d9e;
}

.step-buttons {
  display: flex;
  gap: 5px;
}

.step-buttons button {
  background: white;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  height: 38px;
  width: 38px;
}

.slider-wrap {
  margin-top: 23px;
  position: relative;
}

.slider-wrap input {
  appearance: none;
  background: linear-gradient(
    to right,
    var(--orange) 0 var(--range-progress, 50%),
    #dce1e8 var(--range-progress, 50%) 100%
  );
  border-radius: 999px;
  display: block;
  height: 8px;
  margin: 0;
  width: 100%;
}

.battery-slider-card .slider-wrap input {
  background: linear-gradient(
    to right,
    #7653a7 0 var(--range-progress, 50%),
    #dce1e8 var(--range-progress, 50%) 100%
  );
}

.slider-wrap input::-webkit-slider-thumb {
  appearance: none;
  background: white;
  border: 4px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(38, 47, 65, 0.22);
  height: 25px;
  width: 25px;
}

.battery-slider-card input::-webkit-slider-thumb {
  border-color: #7653a7;
}

.slider-wrap input::-moz-range-thumb {
  background: white;
  border: 4px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(38, 47, 65, 0.22);
  height: 17px;
  width: 17px;
}

.recommended-marker {
  background: var(--orange);
  border-radius: 2px;
  bottom: -7px;
  height: 5px;
  position: absolute;
  transform: translateX(-50%);
  width: 3px;
}

.recommended-marker::after {
  border-bottom: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--orange);
  content: "";
  left: -2px;
  position: absolute;
  top: 4px;
}

.slider-scale {
  color: #858e9d;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 17px;
}

.slider-scale small {
  color: #858e9d;
  font-size: 9px;
}

.live-card {
  border: 1px solid #dce2e9;
  border-radius: 20px;
  margin-top: 16px;
  overflow: hidden;
}

.live-system-header {
  align-items: center;
  background: #182235;
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 90px;
  padding: 18px 22px;
}

.live-system-header > div:first-child {
  display: flex;
  flex-direction: column;
}

.live-system-header > div:first-child span {
  color: #aeb7c7;
  font-size: 10px;
  font-weight: 800;
}

.live-system-header > div:first-child strong {
  font-size: 21px;
  margin-top: 5px;
}

.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.system-tags span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e6e9ef;
  font-size: 9px;
  font-weight: 800;
  padding: 6px 9px;
}

.saving-hero {
  display: grid;
  gap: 0;
  grid-template-columns: 1.35fr 1fr;
}

.saving-hero > div {
  display: flex;
  flex-direction: column;
  min-height: 145px;
  padding: 25px 28px;
}

.saving-hero > div:first-child {
  background: #eef8f2;
}

.saving-hero span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.saving-hero strong {
  color: var(--green);
  font-size: 45px;
  letter-spacing: -1.5px;
  margin-top: 5px;
}

.saving-hero small {
  color: #4f7765;
  font-size: 10px;
  font-weight: 800;
}

.saving-hero .after-bill {
  background: #fff8f4;
  border-left: 1px solid #eadfd9;
}

.saving-hero .after-bill span {
  color: #a05b49;
}

.saving-hero .after-bill strong {
  color: var(--red);
}

.bill-comparison {
  border-top: 1px solid var(--line);
  padding: 19px 24px 21px;
}

.bar-labels {
  display: flex;
  font-size: 10px;
  justify-content: space-between;
}

.bar-labels span {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 5px;
}

.bar-labels i {
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.before-dot {
  background: var(--green);
}

.after-dot {
  background: #e4a08d;
}

.bar-labels b {
  color: var(--ink);
  margin-left: 3px;
}

.comparison-bar {
  border-radius: 999px;
  display: flex;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
}

#saving-bar {
  background: linear-gradient(90deg, #2d8c63, #68b88d);
}

#after-bar {
  background: #ecc0b3;
}

.metric-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.metric-grid > div {
  display: flex;
  flex-direction: column;
  min-height: 92px;
  padding: 18px;
}

.metric-grid > div + div {
  border-left: 1px solid var(--line);
}

.metric-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
}

.metric-grid strong {
  font-size: 15px;
  margin-top: 8px;
}

.disclaimer {
  align-items: flex-start;
  background: #fff8e8;
  border: 1px solid #eed9a9;
  border-radius: 16px;
  color: #765d2e;
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
}

.disclaimer > span {
  align-items: center;
  background: #eebd51;
  border-radius: 50%;
  color: white;
  display: flex;
  flex: 0 0 20px;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
}

.disclaimer p {
  font-size: 10px;
  line-height: 1.55;
  margin: 1px 0 0;
}

.site-footer {
  align-items: center;
  background: #171f30;
  color: white;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 78px;
  padding: 20px;
}

.site-footer strong {
  letter-spacing: 2px;
}

.site-footer span {
  color: #b9c0cc;
  font-size: 11px;
}

@media (max-width: 850px) {
  .site-header {
    height: 68px;
    padding: 0 15px;
  }

  .brand small {
    display: none;
  }

  main {
    padding: 14px 13px 55px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 31px 24px 28px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 13px;
  }

  .solar-orbit {
    display: none;
  }

  .calculator-card,
  .adjust-card {
    border-radius: 21px;
    padding: 22px 17px;
  }

  .section-heading > p {
    display: none;
  }

  .input-grid,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .input-grid {
    gap: 18px;
  }

  .recommendation-card {
    border-radius: 21px;
    padding: 23px 17px;
  }

  .recommendation-top h2 {
    font-size: 25px;
  }

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

  .recommendation-savings {
    grid-template-columns: 1fr;
  }

  .recommendation-savings > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .adjust-intro {
    margin-left: 0;
  }

  .live-system-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .system-tags {
    justify-content: flex-start;
  }

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

  .metric-grid > div {
    border-bottom: 1px solid var(--line);
  }

  .metric-grid > div:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .language-switcher button {
    min-width: 38px;
    padding: 0 7px;
  }

  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-badges span:last-child {
    display: none;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .phase-choice button {
    font-size: 11px;
  }

  .recommendation-top {
    gap: 12px;
  }

  .location-chip {
    min-width: 96px;
  }

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

  .recommendation-grid > div {
    min-height: 118px;
    padding: 14px;
  }

  .recommendation-grid strong {
    font-size: 16px;
  }

  .recommend-main strong {
    font-size: 40px;
  }

  .recommendation-savings > div {
    min-height: 73px;
    padding: 14px 16px;
  }

  .recommendation-savings strong {
    font-size: 25px;
  }

  .saving-hero {
    grid-template-columns: 1fr;
  }

  .saving-hero > div {
    min-height: 125px;
    padding: 21px;
  }

  .saving-hero .after-bill {
    border-left: 0;
    border-top: 1px solid #eadfd9;
  }

  .saving-hero strong {
    font-size: 40px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* Formal corporate theme */
:root {
  --ink: #172033;
  --muted: #5f6876;
  --line: #d7dce3;
  --paper: #ffffff;
  --canvas: #f2f3f5;
  --red: #8a1f2d;
  --red-dark: #651722;
  --orange: #8a1f2d;
  --gold: #8a1f2d;
  --green: #244c3d;
  --shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

body {
  background: var(--canvas);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: rgba(138, 31, 45, 0.28);
}

.site-header {
  backdrop-filter: none;
  background: #ffffff;
  border-bottom: 3px solid var(--red);
  height: 72px;
}

.brand-mark {
  background: var(--red);
  border-radius: 6px;
  box-shadow: none;
}

.brand strong {
  color: #172033;
}

.language-control {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd1da;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  padding: 5px 6px 5px 11px;
}

.language-control > span {
  color: #354052;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.4px;
}

.language-switcher {
  background: #eef0f3;
  border-radius: 5px;
  gap: 2px;
  padding: 3px;
}

.language-switcher button {
  border-radius: 4px;
  color: #505b6b;
  min-height: 34px;
  min-width: 50px;
}

.language-switcher button.selected {
  background: var(--red);
  box-shadow: none;
  color: #ffffff;
}

.hero {
  background: #172033;
  border-left: 6px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.14);
}

.eyebrow,
.eyebrow.light {
  color: #cfd4dc;
}

.hero-text {
  color: #e2e5ea;
}

.basis-note {
  background: transparent;
  border-color: #5b6474;
  border-radius: 5px;
  color: #f1f2f4;
}

.calculator-card,
.adjust-card,
.empty-state {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.step {
  background: #f1e7e9;
  border-radius: 5px;
  color: var(--red);
}

.field select,
.money-input,
.phase-choice,
.phase-choice button,
.primary-button {
  border-radius: 7px;
}

.money-input {
  background: #ffffff;
  border-color: #cbd1d9;
}

.phase-choice {
  background: #eceff3;
}

.phase-choice button.selected {
  border: 1px solid #cbd1d9;
  box-shadow: none;
}

.primary-button {
  background: var(--red);
  box-shadow: none;
}

.recommendation-card {
  background: #202b3c;
  border-radius: 12px;
  border-top: 5px solid var(--red);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.14);
}

.recommendation-grid > div {
  background: #2c3748;
  border-color: #465164;
  border-radius: 7px;
}

.recommendation-grid span,
.recommendation-grid small,
.recommend-main > span,
.recommend-main small {
  color: #cfd5de;
}

.recommend-main {
  background: #344053 !important;
  border-color: #566174 !important;
  color: #ffffff;
}

.battery-highlight {
  background: #2c3748 !important;
}

.recommendation-savings {
  border-radius: 7px;
}

.recommendation-savings strong {
  color: #244c3d;
}

.live-pill {
  background: #eef1f4;
  border-color: #d5dbe2;
  border-radius: 5px;
  color: #334155;
}

.live-pill i {
  background: var(--red);
}

.slider-card,
.live-card {
  border-radius: 8px;
}

.battery-slider-card .slider-heading strong {
  color: var(--red);
}

.battery-slider-card .slider-wrap input {
  background: linear-gradient(
    to right,
    var(--red) 0 var(--range-progress, 50%),
    #dce1e8 var(--range-progress, 50%) 100%
  );
}

.battery-slider-card input::-webkit-slider-thumb {
  border-color: var(--red);
}

.saving-hero > div:first-child,
.saving-hero .after-bill {
  background: #f5f6f7;
}

.saving-hero span,
.saving-hero strong {
  color: #244c3d;
}

.saving-hero .after-bill span {
  color: #6a4b51;
}

.export-cap-note {
  background: #f6f0f1;
  border-color: #d7b8be;
  color: #6b2732;
}

.export-cap-note > span {
  background: var(--red);
}

.quote-cta {
  background: #202b3c;
  border-radius: 8px;
}

/* Final SPOWER brand colors after all compact layout rules. */
.export-cap-note {
  background: #fff7df;
  border-color: #dfbd61;
  color: #6f2a22;
}

.export-cap-note > span {
  background: var(--red);
  color: #f6df9c;
}

.quote-cta,
.site-footer {
  background: var(--red-dark);
}

.quote-cta {
  border-top: 3px solid var(--gold);
}

.site-footer {
  border-top: 4px solid var(--gold);
}

/* SPOWER official red and gold brand theme */
:root {
  --ink: #2b1c1e;
  --muted: #6f6264;
  --line: #e2d7d2;
  --paper: #ffffff;
  --canvas: #f7f3ef;
  --red: #b51f2e;
  --red-dark: #821723;
  --orange: #b51f2e;
  --gold: #d5a128;
  --green: #315b48;
  --shadow: 0 10px 28px rgba(91, 24, 30, 0.09);
}

.site-header {
  border-bottom-color: var(--gold);
}

.brand {
  min-width: 118px;
}

.official-logo-crop {
  display: block;
  height: 54px;
  overflow: hidden;
  position: relative;
  width: 116px;
}

.official-logo-crop img {
  height: 70px;
  left: 0;
  max-width: none;
  position: absolute;
  top: -8px;
  width: auto;
}

.language-control {
  border-color: #d8c7b5;
}

.language-switcher {
  background: #f3ede5;
}

.language-switcher button.selected {
  background: var(--red);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.hero {
  background: var(--red-dark);
  border-left-color: var(--gold);
  box-shadow: 0 12px 30px rgba(91, 24, 30, 0.16);
}

.eyebrow,
.eyebrow.light {
  color: #f0d58b;
}

.basis-note {
  border-color: rgba(227, 190, 91, 0.65);
  color: #f8e8b9;
}

.step {
  background: #f6e8e9;
}

.primary-button {
  background: var(--red);
  border-bottom: 3px solid var(--gold);
}

.recommendation-card {
  background: var(--red-dark);
  border-top-color: var(--gold);
  box-shadow: 0 12px 30px rgba(91, 24, 30, 0.16);
}

.recommendation-grid > div,
.battery-highlight {
  background: #98202c !important;
  border-color: rgba(237, 202, 111, 0.32);
}

.recommend-main {
  background: #a92834 !important;
  border-color: var(--gold) !important;
}

.recommendation-grid span,
.recommendation-grid small,
.recommend-main > span,
.recommend-main small {
  color: #f5dda0;
}

.recommendation-savings strong {
  color: #8a4e00;
}

.slider-wrap input,
.battery-slider-card .slider-wrap input {
  background: linear-gradient(
    to right,
    var(--red) 0 var(--range-progress, 50%),
    #ded7d2 var(--range-progress, 50%) 100%
  );
}

.slider-wrap input::-webkit-slider-thumb,
.battery-slider-card input::-webkit-slider-thumb {
  border-color: var(--gold);
}

.capacity-live {
  color: #9a7219 !important;
  font-size: 10px !important;
  font-weight: 900;
  margin-top: 2px;
}

.saving-hero > div:first-child,
.saving-hero .after-bill {
  background: #fffaf0;
}

.saving-hero span,
.saving-hero strong {
  color: #7f1722;
}

.saving-hero .after-bill span,
.saving-hero .after-bill strong {
  color: #7f1722;
}

.quote-cta {
  background: var(--red-dark);
  border-top: 3px solid var(--gold);
}

.site-footer {
  background: var(--red-dark);
  border-top: 4px solid var(--gold);
  justify-content: space-between;
  padding-inline: max(22px, calc((100vw - 1116px) / 2));
}

.company-registration {
  display: flex;
  flex-direction: column;
}

.company-registration strong {
  color: #f4d985;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.company-registration span {
  color: #f7e8bd;
  font-size: 10px;
  margin-top: 3px;
}

.value-changed {
  animation: saving-value-flash 620ms ease-out;
}

@keyframes saving-value-flash {
  0% {
    box-shadow: inset 0 0 0 2px var(--gold);
    filter: brightness(1.12);
    transform: scale(1);
  }
  38% {
    box-shadow:
      inset 0 0 0 3px var(--gold),
      0 0 18px rgba(213, 161, 40, 0.48);
    transform: scale(1.015);
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent;
    filter: brightness(1);
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .brand {
    min-width: 92px;
  }

  .official-logo-crop {
    height: 45px;
    width: 94px;
  }

  .official-logo-crop img {
    height: 58px;
    top: -6px;
  }

  .calculator-card {
    padding: 13px 11px;
  }

  .calculator-card .section-heading h2 {
    font-size: 16px;
  }

  .calculator-card .step {
    flex-basis: 30px;
    height: 28px;
  }

  .input-grid {
    gap: 9px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
  }

  .field > span,
  .field legend {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .money-input {
    height: 44px;
  }

  .money-input b {
    font-size: 12px;
    padding-left: 10px;
  }

  .money-input input {
    font-size: 20px;
    padding-inline: 5px 8px;
  }

  .field select {
    background-position:
      calc(100% - 15px) 18px,
      calc(100% - 9px) 18px;
    font-size: 12px;
    height: 44px;
    padding-inline: 10px 24px;
  }

  .phase-choice {
    gap: 2px;
    padding: 3px;
  }

  .phase-choice button {
    font-size: 8px;
    gap: 3px;
    min-height: 38px;
    padding: 2px;
  }

  .phase-icon {
    font-size: 8px;
    height: 21px;
    width: 21px;
  }

  .usage-field output {
    font-size: 9px;
    position: static;
  }

  .usage-range {
    margin-block: 7px 4px;
  }

  .primary-button {
    margin-top: 12px;
    min-height: 46px;
  }

  .capacity-live {
    font-size: 9px !important;
  }

  .site-footer {
    gap: 10px;
  }
}

.disclaimer {
  background: #f7f7f5;
  border-color: #d7d5cf;
  border-radius: 8px;
  color: #5f5c55;
}

.disclaimer > span {
  background: #6b7280;
}

.site-footer {
  background: #172033;
}

@media (max-width: 480px) {
  .site-header {
    height: 60px;
  }

  .language-control {
    padding: 3px;
  }

  .language-control > span {
    display: none;
  }

  .language-switcher button {
    font-size: 10px;
    min-height: 32px;
    min-width: 39px;
    padding: 0 7px;
  }

  .language-switcher button[data-language="en"] {
    min-width: 53px;
  }

  .hero,
  .recommendation-card,
  .adjust-card {
    border-radius: 8px;
  }
}

/* Compact customer result: recommendation, controls and savings in one view. */
.hero {
  grid-template-columns: 1fr;
  min-height: 0;
  padding-block: 38px;
}

.basis-note {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff1e9;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  margin: 0;
  padding: 8px 12px;
}

.location-chip,
.recommendation-grid > :nth-child(3),
.recommendation-grid small,
.live-system-header,
.bill-comparison,
.metric-grid > div:not(:first-child) {
  display: none;
}

.recommendation-card {
  padding: 20px 22px;
}

.recommendation-top h2 {
  font-size: 24px;
}

.recommendation-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.recommendation-grid > div {
  min-height: 80px;
  padding: 13px;
}

.recommendation-grid strong {
  font-size: 19px;
  margin-top: 8px;
}

.recommend-main > div {
  margin-top: 0;
}

.recommend-main strong {
  font-size: 31px;
}

.recommendation-savings {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 8px;
}

.recommendation-savings > div {
  min-height: 58px;
  padding: 9px 15px;
}

.recommendation-savings > div + div {
  border-left: 1px solid var(--line);
  border-top: 0;
}

.recommendation-savings strong {
  font-size: 24px;
}

.adjust-card {
  margin-top: 10px;
  padding: 16px 20px;
}

.adjust-card .section-heading h2 {
  font-size: 18px;
}

.adjust-card .step {
  display: none;
}

.adjust-intro {
  font-size: 11px;
  line-height: 1.35;
  margin: 4px 0 0;
}

.controls-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.slider-card {
  border-radius: 14px;
  padding: 11px 12px;
}

.slider-heading span {
  font-size: 10px;
}

.slider-heading strong {
  font-size: 18px;
}

.step-buttons button {
  border-radius: 8px;
  font-size: 18px;
  height: 32px;
  width: 32px;
}

.slider-wrap {
  margin-top: 15px;
}

.slider-scale {
  margin-top: 12px;
}

.live-card {
  border: 0;
  margin-top: 10px;
}

.saving-hero {
  grid-template-columns: repeat(2, 1fr);
}

.saving-hero > div {
  min-height: 74px;
  padding: 10px 14px;
}

.saving-hero strong {
  font-size: 28px;
  margin-top: 2px;
}

.saving-hero .after-bill {
  border-left: 1px solid #eadfd9;
  border-top: 0;
}

.export-cap-note {
  align-items: center;
  background: #fff4dc;
  border: 1px solid #efcf8f;
  color: #75551b;
  display: flex;
  gap: 9px;
  padding: 9px 12px;
}

.export-cap-note > span {
  align-items: center;
  background: #e8a72d;
  border-radius: 50%;
  color: white;
  display: flex;
  flex: 0 0 21px;
  font-size: 12px;
  font-weight: 950;
  height: 21px;
  justify-content: center;
}

.export-cap-note div {
  display: flex;
  flex-direction: column;
}

.export-cap-note strong {
  font-size: 11px;
}

.export-cap-note small {
  font-size: 10px;
  line-height: 1.35;
  margin-top: 2px;
}

.quote-cta {
  align-items: center;
  background: linear-gradient(135deg, #173c2d, #247a55);
  border-radius: 15px;
  color: white;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px 14px;
}

.quote-cta > div {
  display: flex;
  flex-direction: column;
}

.quote-cta > div strong {
  font-size: 14px;
}

.quote-cta > div span {
  color: #d3ede1;
  font-size: 10px;
  line-height: 1.35;
  margin-top: 3px;
}

.quote-cta a {
  align-items: center;
  background: #25d366;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(9, 53, 34, 0.25);
  color: #0f3c27;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.whatsapp-icon {
  align-items: center;
  background: white;
  border-radius: 50%;
  display: flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.metric-grid {
  border: 0;
  display: block;
}

.metric-grid > div:first-child {
  align-items: center;
  background: #f7f8fa;
  border: 0;
  flex-direction: row;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 12px;
}

.metric-grid > div:first-child strong {
  color: var(--green);
  margin: 0;
}

.disclaimer {
  margin-top: 8px;
  padding: 8px 10px;
}

.disclaimer p {
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .site-header {
    height: 56px;
  }

  .brand-mark {
    height: 35px;
    width: 35px;
  }

  main {
    padding: 8px 8px 30px;
  }

  .hero {
    border-radius: 19px;
    padding: 20px 16px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero-text {
    font-size: 12px;
    line-height: 1.45;
    margin: 10px 0 12px;
  }

  .basis-note {
    font-size: 10px;
    padding: 6px 9px;
  }

  .calculator-card {
    margin-top: 10px;
  }

  .results {
    scroll-margin-top: 60px;
  }

  .recommendation-card {
    border-radius: 17px;
    margin-top: 8px;
    padding: 13px 12px;
  }

  .recommendation-top h2 {
    font-size: 19px;
  }

  .recommendation-top .eyebrow {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .recommendation-grid {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 9px;
  }

  .recommendation-grid > div {
    min-height: 66px;
    padding: 9px 8px;
  }

  .recommendation-grid span {
    font-size: 9px;
  }

  .recommendation-grid strong {
    font-size: 15px;
    margin-top: 6px;
  }

  .recommend-main strong {
    font-size: 26px;
  }

  .recommend-main b {
    font-size: 11px;
  }

  .recommendation-savings > div {
    min-height: 48px;
    padding: 7px 9px;
  }

  .recommendation-savings span {
    font-size: 9px;
  }

  .recommendation-savings strong {
    font-size: 19px;
  }

  .adjust-card {
    border-radius: 17px;
    margin-top: 7px;
    padding: 11px 10px;
  }

  .adjust-card .section-heading h2 {
    font-size: 15px;
  }

  .live-pill {
    padding: 5px 7px;
  }

  .adjust-intro {
    font-size: 9px;
  }

  .controls-grid {
    gap: 7px;
  }

  .slider-card {
    padding: 8px;
  }

  .slider-heading {
    align-items: flex-end;
  }

  .slider-heading span {
    font-size: 9px;
  }

  .slider-heading strong {
    font-size: 15px;
  }

  .step-buttons {
    gap: 3px;
  }

  .step-buttons button {
    font-size: 16px;
    height: 28px;
    width: 28px;
  }

  .slider-wrap {
    margin-top: 13px;
  }

  .slider-scale {
    font-size: 8px;
    margin-top: 10px;
  }

  .slider-scale small {
    font-size: 7px;
  }

  .saving-hero > div {
    min-height: 63px;
    padding: 8px 10px;
  }

  .saving-hero span {
    font-size: 9px;
  }

  .saving-hero strong {
    font-size: 23px;
  }

  .export-cap-note {
    gap: 7px;
    padding: 7px 9px;
  }

  .export-cap-note strong {
    font-size: 10px;
  }

  .export-cap-note small {
    font-size: 9px;
  }

  .quote-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .quote-cta > div strong {
    font-size: 13px;
  }

  .quote-cta a {
    justify-content: center;
    min-height: 40px;
    width: 100%;
  }

  .metric-grid > div:first-child {
    min-height: 31px;
    padding: 5px 9px;
  }

  .disclaimer {
    display: none;
  }
}

/* Final formal color controls kept after compact layout rules. */
.export-cap-note {
  background: #f6f0f1;
  border-color: #d7b8be;
  color: #6b2732;
}

.export-cap-note > span {
  background: var(--red);
}

.quote-cta {
  background: #202b3c;
  border-radius: 8px;
}
