:root {
  --ink: #10261f;
  --ink-soft: #466057;
  --forest: #153c30;
  --forest-deep: #0d2b23;
  --lime: #e8ff67;
  --lime-hover: #d8f34e;
  --cream: #f7f5ed;
  --paper: #fffef9;
  --line: #dbe3dc;
  --mint: #dff4e8;
  --warning: #fff4d7;
  --shadow: 0 24px 60px rgba(13, 43, 35, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  color: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 19px/1 "Manrope", sans-serif;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--forest-deep);
  background: var(--lime);
}

.brand-mark svg { width: 22px; height: 22px; }
.header-link { font-weight: 600; text-decoration: none; opacity: .85; }
.header-link:hover { opacity: 1; }
.language-switch {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .04em;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 72px;
  align-items: center;
  padding: 130px max(24px, calc((100vw - 1180px) / 2)) 130px;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 25%, rgba(232,255,103,.18), transparent 28%),
    radial-gradient(circle at 67% 92%, rgba(88,174,135,.22), transparent 25%),
    var(--forest-deep);
}

.hero-copy { max-width: 680px; }
.eyebrow {
  margin: 0 0 14px;
  color: #87bba2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--lime); }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.hero-lead { max-width: 620px; margin: 28px 0; color: #d5e1dc; font-size: 19px; line-height: 1.65; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #c4d4ce; font-size: 14px; }
.trust-row span { display: inline-flex; gap: 7px; align-items: center; }
.trust-row b { color: var(--lime); }
.hero-button { margin-top: 36px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: var(--forest-deep); background: var(--lime); box-shadow: 0 12px 30px rgba(232,255,103,.14); }
.button-primary:hover { background: var(--lime-hover); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: white; }
.button-disabled { color: #728078; background: #e8ece8; cursor: default; }
.text-button { border: 0; color: var(--ink-soft); background: transparent; font-weight: 700; text-decoration: underline; cursor: pointer; }

.hero-visual { position: relative; min-height: 430px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 20px -150px -190px 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
}

.energy-card {
  position: absolute;
  width: 240px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  color: white;
  background: rgba(255,255,255,.08);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.energy-card span, .energy-card small { display: block; color: #bcd0c8; font-size: 13px; }
.energy-card strong { display: block; margin: 8px 0; font: 800 30px/1.2 "Manrope", sans-serif; }
.energy-card i { display: block; height: 8px; margin-top: 18px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.energy-card em { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.battery-card { top: 45px; right: 60px; transform: rotate(3deg); }
.solar-card { right: 150px; bottom: 48px; transform: rotate(-3deg); }
.power-path { position: absolute; inset: 0; }
.sun { position: absolute; top: 1px; left: 20px; color: var(--lime); font-size: 90px; line-height: 1; }
.bolt { position: absolute; top: 195px; left: 115px; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; color: var(--forest-deep); background: var(--lime); font: 800 44px/1 sans-serif; transform: rotate(-7deg); }
.path-line { position: absolute; top: 93px; left: 85px; width: 170px; height: 170px; border-left: 2px dashed rgba(232,255,103,.5); border-bottom: 2px dashed rgba(232,255,103,.5); border-radius: 0 0 0 55px; }

.calculator-section { padding: 110px 24px; }
.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.1; }
.section-heading > p:last-child { margin: 15px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

.calculator-shell { max-width: 1040px; margin: 0 auto; border: 1px solid #e4e5df; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; padding: 24px 50px; border-bottom: 1px solid var(--line); background: #f4f6f1; }
.step { display: flex; align-items: center; gap: 10px; border: 0; color: #809087; background: transparent; font-weight: 700; }
.step span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #cbd5cd; border-radius: 50%; background: white; }
.step.is-active { color: var(--ink); }
.step.is-active span, .step.is-complete span { border-color: var(--forest); color: white; background: var(--forest); }
.step.is-complete span { font-size: 0; }
.step.is-complete span::after { content: "✓"; font-size: 14px; }
.steps > i { height: 1px; margin: 0 16px; background: #cfd8d1; }
.form-step { padding: 52px 58px 46px; }
.step-heading { max-width: 720px; margin-bottom: 40px; }
.step-kicker { color: #719b84; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.step-heading h3, .result-heading h3 { margin: 8px 0 10px; font-size: clamp(27px, 4vw, 38px); }
.step-heading p, .result-heading p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
fieldset { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; }
legend { margin-bottom: 14px; font-weight: 800; }

.choice-grid { display: grid; gap: 12px; }
.choice-grid-days { grid-template-columns: repeat(4, 1fr); }
.choice-grid-season { grid-template-columns: repeat(3, 1fr); }
.choice-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: white; cursor: pointer; transition: border .18s ease, background .18s ease, transform .18s ease; }
.choice-card:hover { transform: translateY(-2px); border-color: #9cb7a8; }
.choice-card.is-selected { border-color: var(--forest); background: #f2f9f5; box-shadow: inset 0 0 0 1px var(--forest); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { margin-bottom: 4px; }
.choice-card small { color: var(--ink-soft); line-height: 1.35; }
.choice-icon { font-size: 25px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 38px; }
.step-actions-end { justify-content: flex-end; }

.appliance-summary { display: flex; justify-content: space-between; gap: 16px; margin: -10px 0 22px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--mint); color: #315745; font-size: 14px; }
.appliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.appliance-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 13px; min-height: 106px; padding: 17px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: white; cursor: pointer; }
.appliance-card:hover { border-color: #99b3a5; }
.appliance-card.is-selected { border-color: var(--forest); background: #f5faf7; }
.appliance-card > input { position: absolute; top: 15px; right: 15px; width: 19px; height: 19px; accent-color: var(--forest); }
.appliance-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f0f3ef; font-size: 21px; }
.appliance-copy { padding-right: 26px; }
.appliance-copy strong { display: block; margin-bottom: 3px; }
.appliance-copy small { display: block; color: var(--ink-soft); line-height: 1.35; }
.appliance-controls { grid-column: 2; display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.appliance-card.is-selected .appliance-controls { display: grid; }
.mini-field { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink-soft); font-size: 12px; }
.mini-field input { width: 54px; border: 0; outline: 0; color: var(--ink); font-weight: 700; background: transparent; }
.form-error { color: #a94030; font-weight: 700; }
.calculator-error { margin: 18px 50px 0; padding: 14px 18px; border: 1px solid #e3a69b; border-radius: 10px; color: #7c2e24; background: #fff0ed; font-weight: 700; }
.advanced-settings { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fafbf8; }
.advanced-settings summary { padding: 16px 18px; font-weight: 700; cursor: pointer; }
.advanced-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0 18px 18px; }
.advanced-grid label { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.advanced-grid select, .advanced-grid input { width: 100%; height: 44px; margin-top: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; color: var(--ink); background: white; }
.advanced-grid label small { display: block; margin-top: 6px; color: var(--ink-soft); font-weight: 500; line-height: 1.4; }

.result-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 34px; }
.result-check { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; color: var(--forest); background: var(--lime); font-size: 27px; font-weight: 800; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.result-card { min-height: 156px; padding: 20px; border-radius: var(--radius-md); color: white; background: var(--forest); }
.result-card.is-accent { color: var(--forest-deep); background: var(--lime); }
.result-card span { display: block; color: #b9d0c5; font-size: 13px; }
.result-card.is-accent span { color: #4b5f2b; }
.result-card strong { display: block; margin: 18px 0 5px; font: 800 29px/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.result-card small { color: #d2dfd9; line-height: 1.35; }
.result-card.is-accent small { color: #445620; }
.result-share-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 22px; margin-top: 16px; padding: 22px 24px; border: 1px solid #c9d8a4; border-radius: var(--radius-md); background: #f6fadf; }
.result-share-card h4 { margin: 0 0 5px; font-size: 18px; }
.result-share-card p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.result-share-actions { display: flex; align-items: center; gap: 10px; }
.result-share-status { grid-column: 1 / -1; min-height: 1.4em; color: #315745 !important; font-size: 13px; font-weight: 750; }
.decision-panel { margin-top: 16px; padding: 26px; border: 1px solid #bfd5c8; border-radius: var(--radius-md); background: #f2f8f4; }
.decision-panel h4 { margin: 7px 0 20px; font-size: 21px; }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.decision-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.decision-grid span { color: #58806b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.decision-grid strong { display: block; margin: 7px 0 5px; font-size: 15px; }
.decision-grid p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.method-link { margin: 18px 0 0; font-size: 13px; font-weight: 750; }
.result-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-top: 16px; }
.result-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.result-panel h4, .next-step-card h4 { margin: 0 0 18px; font-size: 18px; }
.breakdown-row { margin-bottom: 16px; }
.breakdown-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 13px; }
.breakdown-bar { height: 7px; border-radius: 99px; background: #edf0ec; overflow: hidden; }
.breakdown-bar i { display: block; height: 100%; border-radius: inherit; background: #78a48b; }
.check-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; color: var(--ink-soft); line-height: 1.45; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #4b8967; font-weight: 800; }
.check-list li.is-warning::before { content: "!"; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #6d4e08; background: #f2cf6b; font-size: 11px; }
.next-step-card { display: grid; gap: 24px; margin-top: 16px; padding: 26px; border-radius: var(--radius-md); background: #eef3ed; }
.next-step-card h4 { margin: 7px 0 8px; }
.next-step-card p { max-width: 620px; margin: 0; color: var(--ink-soft); line-height: 1.5; }
.product-group + .product-group { margin-top: 24px; }
.product-group h5 { margin: 0 0 12px; font: 800 15px/1.2 "Manrope", sans-serif; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.product-card > img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: contain; padding: 12px; background: #f8f9f6; }
.product-card-copy { padding: 16px; }
.product-card-copy > span { color: #719b84; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.product-card h6 { margin: 7px 0 8px; font: 800 14px/1.35 "Manrope", sans-serif; }
.product-card p { font-size: 12px; }
.product-reason { min-height: 38px; }
.product-checks { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.product-checks li { position: relative; padding-left: 18px; color: #355447; font-size: 11px; line-height: 1.4; }
.product-checks li::before { content: "✓"; position: absolute; left: 0; color: #4b8967; font-weight: 900; }
.product-verify { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-soft) !important; line-height: 1.45 !important; }
.product-card-action { display: grid; gap: 10px; margin-top: 15px; }
.product-card-action strong { font-size: 14px; }
.product-card-action a { color: var(--forest); font-size: 12px; font-weight: 800; }

.method-section { padding: 100px 24px; color: white; background: var(--forest-deep); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.guide-preview { padding: 90px 24px; background: #f7f8f4; }
.guide-preview-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-preview-grid a { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); background: white; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.guide-preview-grid a:hover { transform: translateY(-3px); border-color: #86a994; }
.guide-preview-grid span { color: #4f8068; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.guide-preview-grid h3 { margin: 16px 0 10px; font-size: 20px; }
.guide-preview-grid p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.guide-preview-action { max-width: 1040px; margin: 26px auto 0; text-align: center; }
.section-heading-light .eyebrow { color: var(--lime); }
.section-heading-light > p:last-child { color: #b8cbc3; }
.method-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method-grid article { padding: 30px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); background: rgba(255,255,255,.05); }
.method-grid article > span { color: var(--lime); font-weight: 800; }
.method-grid h3 { margin: 28px 0 10px; font-size: 20px; }
.method-grid p { margin: 0; color: #b8cbc3; line-height: 1.6; }
.safety-note { max-width: 1040px; margin: 70px auto; padding: 28px 32px; border-left: 4px solid #d8ad42; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--warning); }
.safety-note p { margin: 8px 0 0; color: #66562e; line-height: 1.55; }
footer { padding: 55px 24px; text-align: center; color: #aabcb4; background: #081f19; }
.brand-footer { color: white; }
footer p { margin: 16px 0 28px; }
footer small { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin: 0 0 28px; }
.footer-links a { color: #d6e2dd; font-size: 13px; }
.affiliate-note { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 70px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 330px; max-width: 520px; width: 100%; margin: 0 auto; }
  .choice-grid-days { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 32px); padding-top: 18px; }
  .header-link { display: none; }
  .header-link.language-switch { display: inline-flex; }
  .header-nav { gap: 0; }
  .hero { gap: 30px; padding: 105px 20px 50px; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-lead { font-size: 17px; }
  .hero-button { width: 100%; }
  .hero-visual { min-height: 280px; transform: scale(.86); transform-origin: top center; margin-bottom: -35px; }
  .battery-card { right: 0; }
  .solar-card { right: 70px; bottom: 0; }
  .calculator-section { padding: 70px 14px; }
  .steps { padding: 18px; }
  .step { gap: 5px; }
  .step small { display: none; }
  .form-step { padding: 32px 18px 26px; }
  .calculator-error { margin: 14px 18px 0; }
  .choice-grid-season, .appliance-grid, .advanced-grid, .result-columns, .method-grid, .product-grid, .guide-preview-grid, .decision-grid { grid-template-columns: 1fr; }
  .choice-grid-season .choice-card { min-height: 76px; }
  .appliance-summary { flex-direction: column; gap: 5px; }
  .appliance-summary { position: sticky; z-index: 3; top: 8px; box-shadow: 0 5px 18px rgba(13,43,35,.12); }
  .step-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions .button { width: 100%; }
  .step-actions-end { flex-direction: column; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-card { min-height: 142px; padding: 17px; }
  .result-card strong { font-size: 24px; }
  .next-step-card { align-items: stretch; }
  .result-share-card { grid-template-columns: 1fr; }
  .result-share-actions { align-items: stretch; flex-direction: column; margin-top: 8px; }
  .result-share-actions .button { width: 100%; }
  .method-section { padding: 75px 20px; }
  .safety-note { margin: 50px 20px; }
}

@media (max-width: 430px) {
  .choice-grid-days { grid-template-columns: 1fr; }
  .choice-grid-days .choice-card { min-height: 70px; }
  .result-heading { flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
