:root {
  --navy: #18385f;
  --navy-dark: #102b4c;
  --orange: #ff7214;
  --orange-dark: #e85d00;
  --green: #47a453;
  --green-dark: #27823a;
  --line: #06c755;
  --warm: #fffaf3;
  --cream: #fff3e4;
  --mint: #eff9f0;
  --blue-soft: #eef6fb;
  --white: #fff;
  --ink-muted: #5d6d7f;
  --border: rgba(24, 56, 95, 0.14);
  --shadow: 0 18px 50px rgba(24, 56, 95, 0.12);
  --shadow-soft: 0 10px 30px rgba(24, 56, 95, 0.09);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--warm);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
summary,
select,
input[type="range"] {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 114, 20, 0.38);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(1440px, calc(100% - 40px));
  min-height: 92px;
  margin-inline: auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 160px;
  height: 74px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.desktop-nav a {
  padding: 12px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--orange);
  background: var(--white);
}

.desktop-nav .nav-contact {
  margin-left: 6px;
  padding-inline: 18px;
  color: var(--white);
  background: var(--orange);
  box-shadow: var(--shadow-soft);
}

.desktop-nav .nav-contact:hover {
  color: var(--white);
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 99;
  inset: 92px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px max(20px, calc((100vw - 760px) / 2));
  background: rgba(255, 250, 243, 0.99);
  box-shadow: inset 0 12px 22px rgba(24, 56, 95, 0.05);
}

.mobile-nav a {
  display: flex;
  min-height: 50px;
  margin-bottom: 9px;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font-weight: 900;
}

.mobile-nav a::after {
  color: var(--orange);
  content: "›";
  font-size: 24px;
}

.mobile-nav .mobile-contact {
  color: var(--white);
  border-color: var(--orange);
  background: var(--orange);
}

.mobile-nav .mobile-contact::after {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: url("broh_lp_warm2_assets/photos/hero-rooftop-solar.jpg") center 44% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 249, 252, 0.98) 0%, rgba(244, 250, 252, 0.94) 43%, rgba(244, 250, 252, 0.28) 75%, rgba(244, 250, 252, 0.08) 100%),
    linear-gradient(0deg, rgba(255, 250, 243, 0.32), transparent 45%);
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: 540px;
  padding-block: 72px;
  align-items: center;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  gap: 36px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: inline-block;
  margin-top: 5px;
}

.hero-lead {
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 850;
  line-height: 1.7;
}

.hero-lead span {
  color: var(--orange);
}

.hero-cta {
  display: inline-flex;
  min-height: 64px;
  margin-top: 30px;
  padding: 16px 26px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 17px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(255, 114, 20, 0.28);
  font-size: 18px;
  font-weight: 950;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-only {
  display: none;
}

.hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.hero-note {
  align-self: end;
  margin-bottom: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: rgba(16, 43, 76, 0.9);
  box-shadow: var(--shadow);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  color: #ffd9bc;
  font-size: 18px;
}

.hero-note p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.simulator-section {
  padding: 78px 0 88px;
  scroll-margin-top: 95px;
  background:
    radial-gradient(circle at 12% 12%, rgba(71, 164, 83, 0.1), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(255, 114, 20, 0.09), transparent 30%),
    var(--warm);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-weight: 750;
  line-height: 1.9;
}

.simulator-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 22px;
}

.form-card,
.result-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card {
  padding: 28px;
}

.diagnosis-handoff-notice {
  display: grid;
  margin: 18px 0;
  padding: 15px 17px;
  gap: 5px;
  border: 1px solid rgba(40, 145, 99, .24);
  border-radius: 15px;
  color: var(--navy);
  background: #effbf4;
}

.diagnosis-handoff-notice strong {
  color: var(--green-dark);
  font-size: 14px;
}

.diagnosis-handoff-notice span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.65;
}

.result-card {
  position: sticky;
  top: 116px;
  min-height: 740px;
  padding: 30px;
}

.card-heading,
.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-heading h3,
.result-heading h3,
.result-placeholder h3 {
  margin: 6px 0 0;
  font-size: 29px;
  line-height: 1.3;
}

.reset-button,
.recalculate-button {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--navy);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.reset-button:hover,
.recalculate-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.step-progress {
  position: relative;
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.step-progress::before,
.step-progress::after {
  position: absolute;
  z-index: 0;
  top: 17px;
  right: 16.66%;
  left: 16.66%;
  height: 4px;
  border-radius: 999px;
  content: "";
}

.step-progress::before {
  background: #e6eaee;
}

.step-progress::after {
  width: var(--progress-width, 0%);
  max-width: 66.66%;
  background: var(--navy);
  transition: width 0.3s ease;
}

.step-progress li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  color: #9aa5b2;
  gap: 6px;
}

.step-progress span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  color: var(--navy);
  background: #e8edf1;
  box-shadow: 0 0 0 1px var(--border);
  font-size: 13px;
  font-weight: 950;
}

.step-progress small {
  font-size: 11px;
  font-weight: 900;
}

.step-progress li.is-current,
.step-progress li.is-complete {
  color: var(--navy);
}

.step-progress li.is-current span {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.step-progress li.is-complete span {
  color: var(--white);
  background: var(--navy);
}

.step-status {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.form-step {
  margin-top: 28px;
}

.step-heading {
  margin-bottom: 23px;
}

.step-heading p {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.step-heading h4 {
  margin: 6px 0 0;
  font-size: 23px;
  line-height: 1.4;
}

.field {
  display: block;
  margin-top: 21px;
}

.field > span:first-child,
.field > label,
.field-label-row label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 900;
}

.field b,
.choice-field legend span {
  margin-left: 5px;
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
}

.field i {
  margin-left: 5px;
  color: #778697;
  font-size: 11px;
  font-style: normal;
}

.field select,
.field input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 56, 95, 0.2);
  border-radius: 13px;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
}

.field select:hover,
.field input[type="number"]:hover {
  border-color: rgba(24, 56, 95, 0.42);
}

.field small {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.field-label-row output {
  color: var(--orange);
  font-size: 16px;
  font-weight: 950;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 2px 0 10px;
  appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #b9dfbd);
}

input[type="range"]::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -8px;
  appearance: none;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 9px rgba(24, 56, 95, 0.25);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #b9dfbd);
}

input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 9px rgba(24, 56, 95, 0.25);
}

.number-suffix {
  display: flex;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(24, 56, 95, 0.2);
  border-radius: 13px;
  background: var(--white);
}

.number-suffix input[type="number"] {
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.number-suffix > span {
  display: flex;
  min-width: 85px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  background: #f4f6f8;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.choice-field {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 950;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.choice-grid label {
  position: relative;
  min-width: 0;
}

.choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid label > span {
  display: flex;
  min-height: 90px;
  padding: 14px 11px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.choice-grid label > span:hover {
  border-color: rgba(255, 114, 20, 0.52);
  transform: translateY(-1px);
}

.choice-grid input:checked + span {
  border-color: var(--orange);
  color: var(--navy);
  background: #fff5eb;
  box-shadow: inset 0 0 0 2px rgba(255, 114, 20, 0.15);
}

.choice-grid input:focus-visible + span {
  outline: 3px solid rgba(255, 114, 20, 0.38);
  outline-offset: 2px;
}

.choice-grid strong {
  font-size: 14px;
  line-height: 1.45;
}

.choice-grid small {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.scenario-field .choice-grid label > span {
  min-height: 96px;
}

.auto-sizing-note {
  display: flex;
  margin-top: 18px;
  padding: 16px;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(71, 164, 83, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, #f0faf2, #fbfffc);
}

.auto-sizing-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 950;
}

.auto-sizing-note strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.auto-sizing-note p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.7;
}

.inline-note,
.field-error,
.form-error {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.inline-note {
  color: var(--navy);
  background: var(--blue-soft);
}

.field-error,
.form-error {
  color: #a7371b;
  background: #fff0eb;
}

.advanced-settings,
.usage-details {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfcfd;
}

.advanced-settings summary,
.usage-details summary {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 900;
  list-style-position: inside;
}

.usage-details {
  margin-top: 16px;
}

.usage-details .field {
  margin: 0;
  padding: 0 18px 20px;
}

.advanced-grid {
  padding: 0 18px 20px;
}

.advanced-grid .field:first-child {
  margin-top: 4px;
}

.step-actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-actions.is-end {
  justify-content: flex-end;
}

.next-button,
.calculate-button,
.back-button {
  min-height: 54px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 950;
}

.next-button,
.calculate-button {
  min-width: 220px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 114, 20, 0.22);
}

.next-button:hover,
.calculate-button:hover {
  background: var(--orange-dark);
}

.back-button {
  border: 1px solid var(--border);
  color: var(--navy);
  background: var(--white);
}

.result-placeholder {
  display: flex;
  min-height: 676px;
  padding: 25px 8px;
  flex-direction: column;
  justify-content: center;
}

.placeholder-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 24px;
  color: var(--green);
  background: var(--mint);
  font-size: 36px;
  font-weight: 950;
}

.result-placeholder > p:not(.card-kicker) {
  margin: 13px 0 0;
  color: var(--ink-muted);
  font-weight: 750;
  line-height: 1.8;
}

.result-placeholder ul {
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.result-placeholder li {
  padding: 14px;
  border-radius: 13px;
  background: var(--warm);
  font-size: 13px;
  font-weight: 850;
}

.result-placeholder li::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
}

.placeholder-visual {
  display: flex;
  height: 180px;
  margin-top: 28px;
  padding: 20px 28px 0;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  border-bottom: 2px solid rgba(24, 56, 95, 0.16);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(238, 246, 251, 0.4), rgba(238, 246, 251, 0));
}

.placeholder-visual span {
  width: 48px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--green), #8bca94);
  opacity: 0.7;
}

.result-scenario {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.result-summary {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.85;
}

.recommendation-card {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(255, 114, 20, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ef, #fffdf9);
}

.recommendation-heading p {
  margin: 0;
  color: var(--orange);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.recommendation-heading h4 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 16px;
}

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

.recommendation-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(24, 56, 95, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.recommendation-grid small,
.recommendation-grid span {
  display: block;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

.recommendation-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--orange-dark);
  font-size: clamp(18px, 2.25vw, 25px);
  line-height: 1.25;
}

#recommendation-reason {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.75;
}

.metric-list {
  display: grid;
  margin-top: 21px;
  gap: 10px;
}

.metric {
  display: flex;
  min-height: 86px;
  padding: 15px 17px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(71, 164, 83, 0.25);
  border-radius: 15px;
  background: #f8fcf8;
}

.metric.is-primary {
  background: linear-gradient(90deg, #edf9ef, #fafffb);
}

.metric.is-neutral {
  border-color: var(--border);
  background: #f8f9fa;
}

.metric-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.metric.is-neutral .metric-icon {
  background: #7d8791;
}

.metric div {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.metric small {
  color: var(--navy);
  font-weight: 850;
}

.metric strong {
  color: var(--green-dark);
  font-size: clamp(20px, 2.7vw, 30px);
  line-height: 1.2;
  text-align: right;
}

.metric.is-neutral strong {
  color: var(--navy);
  font-size: 18px;
}

.chart-card {
  margin-top: 20px;
  padding: 16px 15px 8px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.chart-heading h4 {
  margin: 0;
  font-size: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
}

.chart-legend span::before {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 4px;
  border-radius: 999px;
  vertical-align: middle;
  content: "";
}

.legend-before::before {
  background: var(--navy);
}

.legend-after::before {
  background: var(--orange);
}

#savings-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(24, 56, 95, 0.11);
  stroke-width: 1;
}

.chart-line-before,
.chart-line-after {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.chart-line-before {
  stroke: var(--navy);
}

.chart-line-after {
  stroke: var(--orange);
}

.chart-labels text {
  fill: #6a7887;
  font-size: 17px;
  font-weight: 800;
}

.assumption-list {
  display: grid;
  margin: 18px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.assumption-list div {
  min-width: 0;
  padding: 11px 9px;
  border-radius: 11px;
  background: var(--blue-soft);
  text-align: center;
}

.assumption-list dt {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 850;
}

.assumption-list dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 950;
}

.result-actions {
  display: grid;
  margin-top: 18px;
  gap: 8px;
}

.result-actions a {
  display: flex;
  min-height: 52px;
  padding: 13px 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 950;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.result-actions a:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.result-primary {
  background: var(--orange);
}

.result-secondary {
  background: var(--navy);
}

.result-line {
  background: var(--line);
}

.recalculate-button {
  display: block;
  margin: 11px auto 0;
}

.result-disclaimer {
  margin: 13px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.65;
}

.method-section,
.faq-section {
  padding: 78px 0;
  background: var(--white);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-grid article {
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm);
  box-shadow: var(--shadow-soft);
}

.method-grid article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--navy);
  font-weight: 950;
}

.method-grid h3 {
  margin: 18px 0 0;
  font-size: 21px;
}

.method-grid p {
  margin: 11px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.method-grid a {
  display: inline-block;
  margin-top: 15px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.model-note {
  display: grid;
  margin-top: 22px;
  padding: 22px 25px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  border-radius: 17px;
  color: var(--white);
  background: var(--navy);
}

.model-note strong {
  color: #ffd9bc;
  white-space: nowrap;
}

.model-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.route-section {
  padding: 78px 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 114, 20, 0.1), transparent 30%),
    var(--warm);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.route-grid > a {
  display: flex;
  min-height: 250px;
  padding: 27px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.route-grid > a:hover {
  border-color: rgba(255, 114, 20, 0.5);
  transform: translateY(-3px);
}

.route-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: var(--orange);
  font-size: 23px;
  font-weight: 950;
}

.route-grid small {
  margin-top: 22px;
  color: var(--ink-muted);
  font-weight: 800;
}

.route-grid strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.45;
}

.route-grid em {
  margin-top: auto;
  padding-top: 20px;
  color: var(--orange-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 48px;
}

.faq-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.faq-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 46px);
}

.faq-heading > p:last-child {
  color: var(--ink-muted);
  font-weight: 750;
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--warm);
}

.faq-list summary {
  position: relative;
  padding: 20px 54px 20px 20px;
  font-weight: 900;
  line-height: 1.65;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--orange);
  content: "+";
  font-size: 25px;
  transform: translateY(-50%);
}

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

.faq-list details p {
  margin: 0;
  padding: 0 20px 22px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.95;
}

.bottom-cta {
  padding: 62px 0;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(255, 114, 20, 0.16), transparent 46%),
    var(--navy);
}

.bottom-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
}

.bottom-cta h2 {
  margin: 10px 0 0;
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.4;
}

.bottom-cta p:last-child {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.85;
}

.bottom-cta-buttons {
  display: grid;
  min-width: 290px;
  gap: 10px;
}

.bottom-cta-buttons a {
  display: flex;
  min-height: 58px;
  padding: 14px 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 950;
}

.bottom-primary {
  background: var(--orange);
}

.bottom-line {
  background: var(--line);
}

.site-footer {
  padding: 46px 0 25px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 35px;
}

.footer-logo {
  width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: var(--white);
}

.site-footer p {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.site-footer nav a {
  font-size: 13px;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--white);
}

.operator strong {
  color: var(--white);
}

.copyright {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.mobile-sticky-cta {
  display: none;
}

.noscript-note {
  margin: 0;
  padding: 16px;
  color: var(--white);
  background: #9f3b22;
  font-weight: 800;
  text-align: center;
}

.noscript-note a {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .site-header {
    background: rgba(255, 250, 243, 0.99);
    backdrop-filter: none;
  }

  .header-inner {
    min-height: 82px;
  }

  .brand img {
    width: 146px;
    height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    top: 82px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 650px) minmax(230px, 1fr);
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: 520px;
    background-position: 68% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(242, 249, 252, 0.98) 0%, rgba(242, 249, 252, 0.92) 58%, rgba(242, 249, 252, 0.35) 100%);
  }

  .hero-inner {
    min-height: 520px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero-note {
    display: none;
  }

  .simulator-layout {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
    min-height: 0;
  }

  .result-placeholder {
    min-height: 450px;
  }

  .method-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article,
  .route-grid > a {
    min-height: 0;
  }

  .model-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .faq-heading {
    position: static;
  }

  .bottom-cta-inner {
    grid-template-columns: 1fr;
  }

  .bottom-cta-buttons {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    padding-bottom: 72px;
  }

  .shell,
  .header-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 128px;
    height: 60px;
  }

  .menu-toggle {
    width: 50px;
    height: 50px;
  }

  .mobile-nav {
    inset: 76px 0 0;
    padding-inline: 14px;
  }

  .hero {
    min-height: 470px;
    background-position: 63% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(242, 249, 252, 0.96) 0%, rgba(242, 249, 252, 0.93) 64%, rgba(242, 249, 252, 0.62) 100%),
      rgba(242, 249, 252, 0.55);
  }

  .hero-inner {
    min-height: 470px;
    padding-block: 46px 40px;
    align-items: start;
  }

  .hero h1 {
    margin-top: 12px;
    font-size: clamp(34px, 10.4vw, 46px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .mobile-only {
    display: block;
  }

  .hero-cta {
    width: 100%;
    min-height: 60px;
    margin-top: 28px;
    font-size: 16px;
  }

  .simulator-section,
  .method-section,
  .route-section,
  .faq-section {
    padding-block: 58px;
  }

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

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

  .form-card,
  .result-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .card-heading h3,
  .result-heading h3,
  .result-placeholder h3 {
    font-size: 25px;
  }

  .reset-button {
    padding-inline: 11px;
  }

  .choice-grid-three,
  .choice-grid-two {
    grid-template-columns: 1fr;
  }

  .choice-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .choice-grid label > span {
    min-height: 86px;
    padding: 11px 7px;
  }

  .choice-grid strong {
    font-size: 12px;
  }

  .choice-grid small {
    font-size: 9px;
  }

  .scenario-field .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-field .choice-grid label > span {
    min-height: 105px;
  }

  .number-suffix > span {
    min-width: 78px;
  }

  .step-actions {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
  }

  .step-actions.is-end {
    grid-template-columns: 1fr;
  }

  .next-button,
  .calculate-button,
  .back-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .result-placeholder {
    min-height: 440px;
    padding-inline: 3px;
  }

  .result-placeholder ul {
    grid-template-columns: 1fr;
  }

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

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

  .placeholder-visual {
    height: 140px;
    gap: 12px;
  }

  .placeholder-visual span {
    width: 35px;
  }

  .metric {
    min-height: 82px;
    padding: 13px 11px;
    gap: 9px;
  }

  .metric-icon {
    width: 41px;
    height: 41px;
    font-size: 15px;
  }

  .metric div {
    display: block;
  }

  .metric small,
  .metric strong {
    display: block;
    text-align: left;
  }

  .metric strong {
    margin-top: 3px;
    font-size: 23px;
  }

  .metric.is-neutral strong {
    font-size: 15px;
  }

  .chart-heading {
    display: block;
  }

  .chart-legend {
    margin-top: 8px;
    justify-content: flex-start;
  }

  .assumption-list {
    gap: 5px;
  }

  .assumption-list div {
    padding-inline: 4px;
  }

  .assumption-list dd {
    font-size: 10px;
  }

  .model-note {
    padding: 18px;
  }

  .route-grid > a {
    min-height: 215px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 90;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    min-height: 54px;
    padding: 13px 20px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 15px;
    color: var(--white);
    background: var(--orange);
    box-shadow: 0 10px 30px rgba(24, 56, 95, 0.3);
    font-size: 16px;
    font-weight: 950;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-sticky-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 18px));
  }
}

@media (max-width: 400px) {
  .shell,
  .header-inner {
    width: min(100% - 20px, 1180px);
  }

  .brand img {
    width: 132px;
  }

  .form-card,
  .result-card {
    padding-inline: 13px;
  }

  .choice-grid label > span {
    padding-inline: 5px;
  }
}

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