:root {
  color-scheme: light;
  --ink: #191c1e;
  --muted: #58645d;
  --line: #cfd8d0;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --surface-3: #eef6f1;
  --accent: #006948;
  --accent-2: #d68c1c;
  --accent-3: #ba1a1a;
  --shadow: none;
  --radius: 4px;
  --max: 1120px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

main {
  display: grid;
  gap: 24px;
  padding-bottom: 44px;
}

.intro-band,
.calculator-grid,
.content-band,
.site-footer {
  width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: end;
  padding-top: 36px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0;
}

.intro-copy p:last-child,
.content-band p {
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 86px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-strip > div,
.metric-grid > div {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 16px;
}

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

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(420px, 7fr);
  gap: 24px;
  align-items: start;
}

.tool-panel,
.content-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.input-panel,
.result-panel,
.content-band {
  padding: 18px;
}

.result-panel {
  position: sticky;
  top: 78px;
  background: #f2f4f6;
}

.panel-heading {
  margin-bottom: 18px;
}

.result-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plan-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.plan-line h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 40px);
}

.plan-price {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.panel-summary {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

legend,
.field > span:first-child {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 740;
}

.segmented-control,
.check-grid {
  display: grid;
  gap: 8px;
}

.segmented-control {
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.segmented-control label,
.check-grid label {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
  min-width: 0;
}

.segmented-control label:has(input:checked),
.check-grid label:has(input:checked) {
  border-color: rgba(0, 105, 72, 0.55);
  background: var(--surface-3);
  color: var(--ink);
}

.segmented-control input,
.check-grid input {
  accent-color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

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

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field input[type="number"],
.money-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field input[type="number"] {
  padding: 0 12px;
}

.money-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 12px;
  color: var(--muted);
}

.money-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

output {
  color: var(--muted);
  font-size: 13px;
}

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

.price-details {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.price-details summary {
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.decision-visual {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
}

.decision-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.grid-line {
  fill: none;
  stroke: #e3e8e0;
  stroke-width: 1;
}

.value-curve {
  fill: none;
  stroke: url("#lineGradient");
  stroke-linecap: round;
  stroke-width: 7;
}

.value-point {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.metric-grid strong {
  font-size: 24px;
}

.result-copy {
  display: grid;
  gap: 18px;
}

.result-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.warning-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-left: 4px solid var(--accent-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.warning-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-3);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.comparison-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1.3fr 1.4fr;
}

.table-row > div {
  min-height: 62px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.table-row:last-child > div {
  border-bottom: 0;
}

.table-head > div {
  background: var(--ink);
  color: #fff;
  font-weight: 760;
}

.split-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.clean-list,
.source-list {
  padding-left: 20px;
  color: var(--muted);
}

.clean-list li,
.source-list li {
  margin-bottom: 10px;
}

.faq-band details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-band details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-band summary {
  font-weight: 760;
  cursor: pointer;
}

.faq-band details p {
  margin: 10px 0 0;
}

.source-list a {
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 760;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .intro-band,
  .calculator-grid,
  .split-band {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .intro-band,
  .calculator-grid,
  .content-band,
  .site-footer {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .intro-band {
    padding-top: 18px;
  }

  h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .intro-copy,
  .intro-copy p {
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .intro-copy p:last-child {
    width: calc(100vw - 72px);
  }

  .intro-copy p:last-child,
  .content-band p {
    font-size: 16px;
  }

  .status-strip,
  .metric-grid,
  .form-grid.two,
  .form-grid.four,
  .check-grid,
  .segmented-control {
    grid-template-columns: 1fr;
  }

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

  .input-panel,
  .result-panel,
  .content-band {
    padding: 18px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row > div + div {
    border-left: 0;
  }

  .table-row > div {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
