:root {
  color-scheme: light;
  --ink: #16221d;
  --ink-soft: #53615a;
  --paper: #fbfaf6;
  --sand: #f1ecdf;
  --line: #d9d3c5;
  --forest: #174c3a;
  --forest-deep: #0c3125;
  --mint: #dff3e8;
  --amber: #9b5b06;
  --amber-bg: #fff0d2;
  --red: #a33737;
  --red-bg: #fbe4e2;
  --white: #fff;
  --shadow: 0 24px 70px rgba(36, 47, 41, 0.12);
  --radius: 24px;
  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;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

button, input, select { font: inherit; }

a { color: inherit; }

.site-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.site-brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--forest-deep);
  background: #b8e8cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #c6d9cf;
  font-size: .78rem;
  font-weight: 700;
}

.language-picker select {
  min-width: 112px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 0 34px 0 12px;
  color: var(--white);
  background: #153f32;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 3px solid #f1bd65;
  outline-offset: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 110px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(117, 191, 154, 0.24), transparent 28%),
    linear-gradient(145deg, var(--forest-deep), #153f32 58%, #245a46);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025);
}

.hero__inner,
.calculator-shell,
.how-it-works,
.faq,
footer {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.eyebrow,
.step-label {
  margin: 0 0 18px;
  color: #5c705f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { color: #b9dbc9; }
.eyebrow span { margin-right: 8px; color: #7ed1a7; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.08; }

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 em { color: #a9dfc3; font-weight: 400; }

.hero__subhead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #d9e7df;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #f1bd65;
  outline-offset: 3px;
}

.button--primary { color: var(--forest-deep); background: #b8e8cf; }
.button--primary:hover { background: #cdf1dd; }
.privacy-note { margin: 0; color: #c6d9cf; font-size: 0.92rem; }

.calculator-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin-top: -58px;
  padding: 0 16px;
}

.calculator-card,
.results-card {
  border: 1px solid rgba(14, 53, 40, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator-card { padding: 28px 20px; background: var(--white); }

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child { margin: 12px 0 0; color: var(--ink-soft); }

fieldset {
  margin: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 26px 0 0;
}

legend {
  padding: 0 14px 0 0;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 800;
}

.field-grid { display: grid; gap: 18px; }
.field--wide { margin-bottom: 20px; }

label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 720;
}

.optional { color: #7a857f; font-size: 0.75rem; font-weight: 600; }

input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid #c9c5ba;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fdfcf9;
}

input:hover { border-color: #999f99; }
input[aria-invalid="true"] { border-color: var(--red); background: #fff8f7; }

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #c9c5ba;
  border-radius: 12px;
  background: #fdfcf9;
}

.input-with-unit:focus-within { outline: 3px solid #f1bd65; outline-offset: 3px; }
.input-with-unit input { border: 0; background: transparent; }
.input-with-unit input:focus-visible { outline: none; }
.input-with-unit span { padding-right: 12px; color: #6d7771; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.input-with-unit--prefix { grid-template-columns: auto minmax(0, 1fr) auto; }
.input-with-unit--prefix > span:first-child { padding: 0 0 0 12px; }
.field:has(input[aria-invalid="true"]) .input-with-unit { border-color: var(--red); background: #fff8f7; }

small { display: block; margin-top: 6px; color: #737e78; }
.field-error { display: block; min-height: 1.15rem; margin-top: 5px; color: var(--red); font-size: 0.78rem; }

.results-card {
  align-self: start;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.results-card__top { padding: 28px 24px 22px; }
.step-label--light { color: #9ac5ae; }
.results-card h2 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.verdict--positive { color: #0a3c29; background: #aee5c8; }
.verdict--marginal { color: #573400; background: #f5c976; }
.verdict--negative { color: #641f1f; background: #efb5b0; }

.metrics { margin: 0; border-top: 1px solid rgba(255,255,255,.13); }
.metric { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 17px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.metric dt { color: #b9cbc2; font-size: 0.85rem; }
.metric dd { margin: 0; text-align: right; }
.metric dd strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.metric dd span { color: #9db0a6; font-size: 0.75rem; }
.metric--featured { background: rgba(174, 229, 200, .09); }
.metric--featured dd strong { color: #aee5c8; font-size: 2.1rem; }
.metric--featured dd strong.value-positive { color: #aee5c8; }
.metric--featured dd strong.value-negative { color: #ffaaa4; }

.warning { margin: 20px 24px 0; border-radius: 12px; padding: 12px 14px; color: #ffe3a9; background: rgba(155,91,6,.35); font-size: 0.86rem; }
.warning span { display: inline-grid; width: 20px; height: 20px; place-items: center; margin-right: 5px; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }

.assumptions { margin: 24px; border-radius: 16px; padding: 18px; color: #d6e2dc; background: rgba(255,255,255,.06); }
.assumptions h3 { margin: 0 0 12px; font-size: 0.9rem; }
.assumptions ol { margin: 0; padding-left: 20px; color: #afc1b8; font-size: 0.78rem; }
.assumptions li + li { margin-top: 7px; }

.button--copy { width: calc(100% - 48px); margin: 0 24px; color: var(--forest-deep); background: #f4efe3; }
.button--copy:hover { background: var(--white); }
.copy-status { min-height: 1.3rem; margin: 8px 24px 18px; color: #afc1b8; font-size: 0.78rem; text-align: center; }

.how-it-works,
.faq { padding: 82px 20px 0; }
.section-heading--center { text-align: center; }
.steps { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--white); }
.steps li > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); font-weight: 900; }
.steps h3 { margin: 2px 0 6px; font-size: 1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.faq { padding-bottom: 70px; }
.faq-list { margin-top: 26px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

footer { border-top: 1px solid var(--line); padding: 32px 20px 44px; color: var(--ink-soft); }
footer p { margin: 5px 0; max-width: 820px; font-size: 0.82rem; }
footer strong { color: var(--forest); }

[hidden] { display: none !important; }

@media (min-width: 640px) {
  .hero { padding-inline: 32px; }
  .calculator-shell { padding-inline: 28px; }
  .calculator-card { padding: 38px; }
  .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 460px) {
  .site-header { padding-inline: 14px; }
  .site-brand > span:last-child { display: none; }
  .language-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

@media (min-width: 960px) {
  .hero { padding-top: 92px; padding-bottom: 140px; }
  .calculator-shell { grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr); gap: 24px; margin-top: -78px; }
  .results-card { position: sticky; top: 20px; }
  .how-it-works, .faq { padding-top: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
