:root {
  color-scheme: light;
  --ink: #10201d;
  --muted: #687773;
  --line: #dfe7e4;
  --soft: #f4f7f5;
  --cream: #f7f4ed;
  --green: #0f6c5b;
  --green-dark: #071f1b;
  --lime: #c8f06a;
  --white: #fff;
  --shadow: 0 22px 70px rgba(11, 38, 32, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 1%, rgba(200, 240, 106, 0.18), transparent 23rem),
    linear-gradient(180deg, #f7faf8 0, #f7faf8 43rem, #fff 43rem);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand img { display: block; width: 174px; height: auto; }
.privacy-pill, .live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #48615b;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
}
.privacy-pill > span, .live-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #41ad6b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(65,173,107,.12);
}
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro { padding: 47px 0 35px; max-width: 840px; }
.eyebrow, .step-label {
  margin: 0 0 11px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -.045em;
}
h1 { max-width: 790px; font-size: clamp(42px, 5.5vw, 64px); line-height: 1.08; }
.intro-copy { max-width: 690px; margin: 15px 0 18px; color: #53635f; font-size: 17px; line-height: 1.5; }
.estimate-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 710px;
  color: #596864;
  font-size: 12px;
  line-height: 1.5;
}
.estimate-note svg { flex: 0 0 17px; width: 17px; fill: none; stroke: var(--green); stroke-width: 1.7; }
.estimate-note strong { color: var(--ink); }

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.inputs-panel, .results-panel { padding: 34px; }
.inputs-panel { min-width: 0; }
.results-panel {
  background: var(--green-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.results-panel::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: rgba(200,240,106,.10);
  pointer-events: none;
}
.panel-heading, .results-heading, .scenario-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.panel-heading { margin-bottom: 26px; }
.panel-heading h2, .results-heading h2 { font-size: 24px; line-height: 1.2; }
.text-button {
  border: 0;
  padding: 5px 0;
  color: var(--green);
  font-weight: 700;
  background: none;
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.basis-switch legend, .field > span:first-child {
  display: block;
  margin: 0 0 8px;
  color: #3f504c;
  font-size: 12px;
  font-weight: 700;
}
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid #e7eeeb;
  border-radius: 11px;
}
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span {
  display: block;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #667570;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.segmented-control input:checked + span {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(22,48,41,.06);
}
.sync-note { margin: 9px 2px 0; color: #6c7e78; font-size: 11px; line-height: 1.45; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.field.wide { grid-column: 1 / -1; }
.field small { display: block; margin-top: 6px; color: #8b9794; font-size: 11px; }
.input-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d7e1de;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,108,91,.09); }
.input-wrap.invalid { border-color: #c55252; box-shadow: 0 0 0 3px rgba(197,82,82,.08); }
.input-wrap b { color: #7b8985; font-size: 11px; font-weight: 800; }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.input-wrap.suffix b { order: 2; }
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid #cbd7d3;
  border-radius: 50%;
  background: none;
  color: #788783;
  font-size: 10px;
  cursor: help;
  position: relative;
}
.info-dot::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 220px;
  z-index: 5;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--green-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  transform: translate(-50%, 4px);
  opacity: 0;
  visibility: hidden;
  transition: .15s;
  pointer-events: none;
}
.info-dot:hover::after, .info-dot:focus::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.revenue-readout {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  background: #edf6f2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 16px;
}
.revenue-readout span { color: #49625c; font-size: 12px; font-weight: 700; }
.revenue-readout strong { grid-row: span 2; font: 800 19px/1 "Manrope", sans-serif; color: var(--green); }
.revenue-readout small { color: #82918d; font-size: 10px; }
.divider { height: 1px; margin: 24px 0 0; background: var(--line); }
.hidden { display: none; }

.assumptions { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.assumptions summary, .breakdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.assumptions summary::-webkit-details-marker, .breakdown summary::-webkit-details-marker { display: none; }
.assumptions summary { padding: 15px 16px; }
.assumptions summary b { display: block; font-size: 13px; }
.assumptions summary small { display: block; margin-top: 2px; color: #84908d; font-size: 10px; }
.assumptions summary svg, .breakdown summary svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
details[open] > summary svg { transform: rotate(180deg); }
.assumption-content { padding: 2px 16px 18px; border-top: 1px solid var(--line); }
.assumption-group { margin: 18px 0 -5px; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.field-grid.compact { gap: 12px; margin-top: 14px; }
.compact .input-wrap { min-height: 42px; }
.excluded-note { margin-top: 17px; padding: 12px; border-radius: 9px; background: var(--soft); font-size: 10px; line-height: 1.45; color: #687773; }
.excluded-note strong { display: block; color: var(--ink); margin-bottom: 2px; }

.results-heading { position: relative; z-index: 1; margin-bottom: 22px; }
.results-heading .step-label { color: var(--lime); }
.results-context { margin: 6px 0 0; color: #b5c8c2; font-size: 11px; line-height: 1.4; }
.live-chip { color: #c9ded8; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13); }
.scenario-list { display: grid; gap: 10px; }
.scenario-card { padding: 17px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.055); }
.scenario-card.featured { border-color: rgba(200,240,106,.55); background: linear-gradient(135deg, rgba(200,240,106,.12), rgba(255,255,255,.055)); }
.scenario-name { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.scenario-name i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: rgba(255,255,255,.1); color: #d8e5e1; font-size: 9px; font-style: normal; font-weight: 800; }
.featured .scenario-name i { background: var(--lime); color: var(--green-dark); }
.recommended, .muted-tag { border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 800; }
.recommended { color: var(--green-dark); background: var(--lime); }
.muted-tag { color: #a9bbb6; background: rgba(255,255,255,.07); }
.scenario-outcome { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 15px; }
.scenario-value { display: block; margin: 0 0 5px; font: 800 25px/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.scenario-sub { color: #9eb2ad; font-size: 10px; }
.yield-outcome { flex: 0 0 auto; min-width: 100px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; text-align: right; background: rgba(255,255,255,.045); }
.yield-outcome span { display: block; margin-bottom: 4px; color: #b5c9c3; font-size: 9px; font-weight: 700; }
.yield-outcome strong { display: block; color: var(--lime); font: 800 21px/1 "Manrope", sans-serif; }
.yield-note { margin: 11px 2px 0; color: #aec1ba; font-size: 10px; line-height: 1.45; }
.bar-track { height: 4px; margin: 13px 0 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar-track span { display: block; width: 0; height: 100%; border-radius: 99px; background: #8aa29c; transition: width .25s ease; }
.featured .bar-track span { background: var(--lime); }
.scenario-metrics { display: flex; justify-content: space-between; gap: 10px; color: #8fa6a0; font-size: 10px; }
.scenario-metrics b { margin-left: 3px; color: #d8e4e1; }
.positive { color: var(--lime) !important; }
.negative { color: #f1a8a8 !important; }
.insight-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(200,240,106,.09); border: 1px solid rgba(200,240,106,.15); }
.insight-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--lime); color: var(--green-dark); }
.insight-icon svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.insight-card strong { display: block; margin: 1px 0 3px; font-size: 11px; }
.insight-card p { margin: 0; color: #b1c4bf; font-size: 10px; line-height: 1.45; }
.breakdown { margin-top: 13px; border-top: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); }
.breakdown summary { padding: 13px 0; color: #b4c5c1; font-size: 11px; font-weight: 700; }
.breakdown-body { padding: 0 0 13px; }
.breakdown-section + .breakdown-section { margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); }
.breakdown-section h3 { margin: 0 0 7px; color: #e9f1ef; font-size: 10px; }
.breakdown-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; color: #8fa6a0; font-size: 9px; }
.breakdown-row.total { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); color: #eaf1ef; font-weight: 800; }
.primary-button, .secondary-button {
  border-radius: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); filter: brightness(1.02); }
.primary-button { width: 100%; min-height: 48px; margin-top: 16px; display: flex; justify-content: center; align-items: center; gap: 8px; border: 0; background: var(--lime); color: var(--green-dark); }
.primary-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.results-footnote { margin: 11px 8px 0; color: #78908a; font-size: 9px; line-height: 1.45; text-align: center; }

.closing {
  margin: 86px 0 36px;
  padding: 42px 48px;
  border-radius: 22px;
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}
.closing h2 { font-size: clamp(28px, 4vw, 42px); }
.closing p:not(.eyebrow) { margin: 11px 0 0; color: #62716d; }
.secondary-button { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 15px 19px; background: var(--green-dark); color: #fff; }
.secondary-button span { color: var(--lime); }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 20; padding: 11px 16px; border-radius: 9px; background: #132b26; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 12px; font-weight: 700; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .calculator-shell { grid-template-columns: 1fr; }
  .results-panel { order: 2; }
  .closing { margin-top: 55px; }
}

@media (max-width: 600px) {
  body { background: linear-gradient(180deg, #f7faf8 0, #f7faf8 29rem, #fff 29rem); }
  .site-header, main { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; }
  .brand img { width: 142px; }
  .privacy-pill { font-size: 0; padding: 8px; }
  .privacy-pill > span { width: 8px; height: 8px; }
  .intro { padding: 40px 0 30px; }
  h1 { font-size: 41px; }
  .intro-copy { font-size: 15px; }
  .calculator-shell { margin-inline: -2px; border-radius: 18px; }
  .inputs-panel, .results-panel { padding: 24px 18px; }
  .panel-heading h2, .results-heading h2 { font-size: 21px; }
  .basis-switch legend { font-size: 11px; }
  .segmented-control span { min-height: 48px; display: grid; place-items: center; padding: 8px 5px; font-size: 11px; }
  .field-grid { grid-template-columns: 1fr; gap: 13px; }
  .field.wide { grid-column: auto; }
  .input-wrap { min-height: 50px; }
  .revenue-readout { grid-template-columns: 1fr; }
  .revenue-readout strong { grid-row: auto; margin-top: 5px; font-size: 23px; }
  .live-chip { padding: 7px 9px; font-size: 9px; }
  .scenario-value { font-size: 24px; }
  .yield-outcome { min-width: 92px; padding: 8px; }
  .yield-outcome strong { font-size: 19px; }
  .closing { margin: 45px -2px 24px; padding: 30px 22px; align-items: flex-start; flex-direction: column; }
  .secondary-button { width: 100%; justify-content: space-between; }
  .info-dot::after { left: auto; right: 0; transform: translateY(4px); }
  .info-dot:hover::after, .info-dot:focus::after { transform: translateY(0); }
}

@media (max-width: 360px) {
  .scenario-outcome { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
