:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --ink: #19201d;
  --muted: #66736d;
  --line: #d9e0da;
  --green: #1d7a50;
  --green-dark: #14583a;
  --amber: #c8872a;
  --blue: #2f62b3;
  --coral: #b85242;
  --shadow: 0 18px 45px rgba(25, 32, 29, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--green-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(246, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.45fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(32px, 5vw, 68px) clamp(18px, 4vw, 48px) 42px;
}

.hero-copy {
  position: sticky;
  top: 90px;
  min-width: 0;
  padding-top: 8px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lead {
  max-width: 680px;
  margin: 20px 0 22px;
  color: var(--muted);
  font-size: 1.13rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.calculator-shell,
.benchmark,
.content-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-shell {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 28px);
}

.calculator-head,
.benchmark,
.action-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.calculator-head {
  margin-bottom: 18px;
}

.calculator-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

fieldset {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

legend {
  padding: 0 6px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cdd7d0;
  border-radius: 8px;
  font: inherit;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(29, 122, 80, 0.24);
  outline-offset: 2px;
}

button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: white;
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button,
.ghost-button {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.ghost-button {
  background: transparent;
}

.results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.result-card {
  min-height: 144px;
  padding: 16px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-card span,
.result-card small {
  display: block;
  color: var(--muted);
}

.result-card strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.05;
}

.result-card.accent {
  border-color: rgba(29, 122, 80, 0.35);
  background: #eef7f2;
}

.verdict {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #f1f7f3;
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--surface-2);
}

.action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}

.disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.benchmark,
.content-section {
  margin: 20px clamp(18px, 4vw, 48px);
  padding: clamp(20px, 3vw, 34px);
}

.benchmark-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: min(100%, 440px);
  padding: 16px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benchmark-card span,
.benchmark-card small {
  display: block;
  color: var(--muted);
}

.benchmark-card strong {
  display: block;
  margin: 4px 0;
  font-size: 1.4rem;
}

.three-col,
.five-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.five-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.three-col article,
.five-list article,
.split article {
  padding: 18px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.sources ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.last-updated {
  color: var(--muted);
}

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

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

.site-footer {
  margin-top: 34px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: var(--ink);
  color: white;
}

.site-footer p {
  margin: 6px 0 0;
  color: #c7d2cc;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: white;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .benchmark {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .calculator-grid,
  .results,
  .three-col,
  .split,
  .five-list {
    grid-template-columns: 1fr;
  }

  .calculator-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .benchmark-card {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.35rem;
  }

  .hero,
  .benchmark,
  .content-section {
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }
}
