:root {
  --ink: #10231b;
  --muted: #607068;
  --green-950: #072b1e;
  --green-900: #0b3d2b;
  --green-800: #11563d;
  --green-700: #19704d;
  --green-500: #3aa66f;
  --green-200: #bfe6d0;
  --green-100: #ddf2e5;
  --green-50: #f0f9f3;
  --sun: #f4b740;
  --paper: #ffffff;
  --canvas: #f5f7f6;
  --line: #dce5e0;
  --warning: #9a5a0a;
  --warning-bg: #fff4dc;
  --danger: #9b2c2c;
  --danger-bg: #fff0ef;
  --shadow: 0 18px 55px rgba(7, 43, 30, .10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid rgba(58, 166, 111, .35);
  outline-offset: 3px;
}

.site-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 247, 246, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 61, 43, .08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: -.02em;
}
.wordmark-y {
  color: var(--green-900);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.wordmark-rest { color: var(--green-700); font-size: .92rem; font-weight: 650; }
.brand-logo { display: block; width: 84px; height: 60px; object-fit: contain; background: #163d32; border-radius: 7px; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.nav-links a { padding: 10px 12px; font-size: .8rem; font-weight: 750; text-decoration: none; border-radius: 8px; }
.nav-links a:hover { background: var(--green-100); }
.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-800);
  background: var(--green-100);
  border: 1px solid var(--green-200);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 750;
}
.privacy-chip span { font-size: .55rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px max(24px, calc((100vw - var(--max)) / 2)) 88px;
  background:
    radial-gradient(circle at 92% 2%, rgba(244, 183, 64, .20), transparent 27%),
    radial-gradient(circle at 6% 18%, rgba(58, 166, 111, .16), transparent 25%),
    linear-gradient(180deg, #f8fbf9 0%, var(--canvas) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -130px;
  height: 260px;
  opacity: .35;
  background-image:
    linear-gradient(30deg, transparent 44%, rgba(25,112,77,.12) 45%, rgba(25,112,77,.12) 46%, transparent 47%),
    linear-gradient(150deg, transparent 44%, rgba(25,112,77,.08) 45%, rgba(25,112,77,.08) 46%, transparent 47%);
  background-size: 64px 38px;
  pointer-events: none;
}
.hero-copy {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.eyebrow, .step-label, .result-kicker {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.6rem, 6vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.065em;
  color: var(--green-950);
}
.hero-text {
  max-width: 690px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}
.trust-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}
.trust-row span {
  color: var(--green-800);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.selector-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: stretch;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(11,61,43,.1);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.input-card, .result-card { padding: clamp(24px, 4vw, 44px); }
.input-card { display: grid; gap: 22px; background: var(--paper); }
.card-heading, .result-topline, .section-heading, .package-topline, .coverage-label, .range-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.card-heading h2, .result-card h2, .section-heading h2, .technical h2 { margin: 0; letter-spacing: -.035em; }
.card-heading h2 { font-size: 1.6rem; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-weight: 750;
  padding: 8px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field-wide { width: 100%; }
.field-label { color: #33483f; font-size: .83rem; font-weight: 760; }
.field-help { color: var(--muted); font-size: .75rem; line-height: 1.4; }
select, .input-with-unit {
  width: 100%;
  min-height: 50px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #ccd9d2;
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
select {
  padding: 0 42px 0 14px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green-800) 50%),
    linear-gradient(135deg, var(--green-800) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
select:hover, .input-with-unit:hover { border-color: #9cb8a9; }
select:focus, .input-with-unit:focus-within {
  outline: 0;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(58,166,111,.12);
  background: var(--paper);
}
.input-with-unit { display: flex; align-items: center; overflow: hidden; }
.input-with-unit input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 8px 0 14px;
  font-weight: 700;
}
.input-with-unit span {
  flex: 0 0 auto;
  color: var(--muted);
  padding: 0 12px 0 4px;
  font-size: .76rem;
  font-weight: 650;
}
.range-heading output { color: var(--green-800); font-weight: 850; }
input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 5px 0 0;
  accent-color: var(--green-700);
}
.range-scale { display: flex; justify-content: space-between; color: #829088; font-size: .69rem; }

fieldset { padding: 0; margin: 0; border: 0; }
legend { padding: 0 0 10px; }
.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  background: #eef3f0;
  border-radius: 13px;
}
.segmented button {
  min-height: 42px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #53645b;
  font-size: .73rem;
  font-weight: 750;
  transition: .18s ease;
}
.segmented button:hover { color: var(--green-900); background: rgba(255,255,255,.65); }
.segmented button.active {
  color: var(--green-900);
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(7,43,30,.08);
}
.assumption-controls {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.assumption-controls summary {
  color: var(--green-800);
  font-size: .82rem;
  font-weight: 780;
}
.assumption-grid { margin-top: 16px; }
.form-error {
  margin: 0;
  color: var(--danger);
  background: var(--danger-bg);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .82rem;
}

.result-card {
  position: relative;
  color: #f3fbf6;
  background:
    radial-gradient(circle at 90% 3%, rgba(244,183,64,.18), transparent 28%),
    linear-gradient(145deg, var(--green-950), var(--green-900));
}
.result-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -150px;
  bottom: -120px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.025);
}
.result-card > * { position: relative; z-index: 1; }
.result-kicker { color: #9bd8b5; margin: 0; }
.status-pill {
  color: #dff8e9;
  background: rgba(77,190,124,.18);
  border: 1px solid rgba(146,226,180,.25);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}
.status-pill.warning { color: #ffe3a2; background: rgba(244,183,64,.12); border-color: rgba(244,183,64,.3); }
.status-pill.danger { color: #ffc9c3; background: rgba(225,80,71,.13); border-color: rgba(255,141,132,.28); }
.result-card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  font-size: clamp(2.45rem, 5vw, 4rem);
  letter-spacing: -.055em;
}
.result-card h2 small {
  max-width: 180px;
  color: #a8c5b7;
  font-size: .78rem;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 600;
}
.coverage-visual { margin: 28px 0 25px; }
.coverage-label { margin-bottom: 9px; color: #b9d0c5; font-size: .8rem; }
.coverage-label strong { color: white; font-size: 1rem; }
.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), #86d59f, var(--sun));
  transition: width .35s ease;
}
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  border-radius: 15px;
}
.metric span { color: #aac5b7; font-size: .74rem; }
.metric strong { margin-top: 8px; color: white; font-size: 1.35rem; letter-spacing: -.025em; }
.metric small { margin-top: 5px; color: #98b2a5; font-size: .68rem; line-height: 1.35; }
.energy-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: #cce0d6;
  background: rgba(255,255,255,.055);
  border-left: 3px solid var(--green-500);
  border-radius: 4px 10px 10px 4px;
  font-size: .78rem;
  line-height: 1.5;
}
.energy-note.warning { color: #ffe5af; border-left-color: var(--sun); }
.energy-note.danger { color: #ffcbc5; border-left-color: #ff8177; }
.result-actions { display: flex; gap: 10px; margin-top: 22px; }
.primary-button, .secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 17px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 820;
}
.primary-button { color: var(--green-950); background: var(--sun); border: 1px solid var(--sun); }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.secondary-button { color: #e6f4ec; background: transparent; border: 1px solid rgba(255,255,255,.22); }
.secondary-button:hover { background: rgba(255,255,255,.07); }
.disclaimer { margin: 16px 0 0; color: #8eaa9c; font-size: .67rem; line-height: 1.45; }

.packages {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}
.section-heading { align-items: end; margin-bottom: 34px; }
.section-heading h2, .technical h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.6; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbfdfc;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.package-card:hover { transform: translateY(-3px); border-color: #afccbc; box-shadow: 0 14px 34px rgba(7,43,30,.08); }
.package-card.recommended {
  border: 2px solid var(--green-700);
  background: linear-gradient(180deg, var(--green-50), #fbfdfc 55%);
}
.recommended-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  color: white;
  background: var(--green-700);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.package-title { margin: 0; font-size: 1.28rem; letter-spacing: -.025em; }
.package-subtitle { margin: 7px 0 0; min-height: 40px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.package-power {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 22px 0;
}
.package-power strong { color: var(--green-900); font-size: 2.6rem; letter-spacing: -.06em; }
.package-power span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.package-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.package-stat { padding: 11px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.package-stat span { display: block; color: var(--muted); font-size: .66rem; }
.package-stat strong { display: block; margin-top: 5px; color: var(--ink); font-size: .9rem; }
.package-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.package-list li {
  position: relative;
  padding-left: 19px;
  color: #43554c;
  font-size: .78rem;
  line-height: 1.45;
}
.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 900;
}
.package-footnote { margin: auto 0 0; padding-top: 22px; color: var(--muted); font-size: .7rem; line-height: 1.45; }

.technical {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(35px, 7vw, 90px);
  align-items: center;
  background:
    radial-gradient(circle at 5% 90%, rgba(58,166,111,.1), transparent 28%),
    var(--canvas);
}
.technical-copy > p:not(.eyebrow) { max-width: 700px; color: var(--muted); line-height: 1.65; }
.flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding-bottom: 48px;
}
.flow-item {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.flow-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green-700);
  border-radius: 50%;
  font-weight: 850;
}
.flow-icon.sun { color: var(--green-950); background: var(--sun); }
.flow-item strong, .flow-item small { display: block; }
.flow-item strong { font-size: .78rem; }
.flow-item small { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.flow-arrow { color: var(--green-500); font-weight: 900; }
.grid-branch {
  position: absolute;
  left: 35%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .69rem;
  font-weight: 800;
}
.assumptions-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--green-950);
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.assumptions-card h3 { margin: 0; font-size: 1.35rem; }
.assumptions-card ul { display: grid; gap: 0; margin: 22px 0; padding: 0; list-style: none; }
.assumptions-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .76rem;
}
.assumptions-card li span { color: #afc8bc; }
.assumptions-card li strong { color: #f4c96f; text-align: right; }
.assumptions-card p { margin: 0; color: #adc5b9; font-size: .76rem; line-height: 1.65; }
.assumptions-card p strong { color: white; }

footer {
  min-height: 110px;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #c3d8ce;
  background: #061f16;
  font-size: .78rem;
}
footer div { display: grid; gap: 6px; }
footer strong { color: white; font-size: .9rem; }
footer a { color: #d7eadf; text-underline-offset: 4px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  color: white;
  background: var(--green-950);
  padding: 11px 15px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: .78rem;
  font-weight: 700;
  transition: .2s ease;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .selector-shell { grid-template-columns: 1fr; max-width: 760px; }
  .package-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .package-subtitle { min-height: 0; }
  .technical { grid-template-columns: 1fr; }
  .technical-copy { max-width: 820px; }
}
@media (max-width: 680px) {
  .site-header { min-height: 72px; height: auto; gap: 10px; padding: 6px 16px; }
  .nav-links a { padding: 8px; font-size: .72rem; }
  .wordmark-rest { display: none; }
  .hero, .packages, .technical { padding-inline: 16px; }
  .hero { padding-top: 52px; padding-bottom: 60px; }
  .hero-copy { margin-bottom: 30px; }
  .selector-shell { border-radius: 20px; }
  .input-card, .result-card { padding: 24px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr 1fr; }
  .metric-grid { gap: 8px; }
  .metric { min-height: 110px; padding: 13px; }
  .metric strong { font-size: 1.13rem; }
  .result-actions { flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .package-card { padding: 23px 20px; }
  .flow {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .flow-arrow { text-align: center; transform: rotate(90deg); }
  .grid-branch { position: static; width: max-content; margin: 4px auto 0; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .metric-grid, .package-stats { grid-template-columns: 1fr; }
  .metric { min-height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
