:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --text: #17202a;
  --muted: #5f6b7a;
  --line: #d8e0ea;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --good: #1f7a4d;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.summary-panel,
.calculator-card,
.content-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: center;
  min-height: 240px;
  max-height: 360px;
  padding: 24px;
}

.panel-label,
.summary-panel span,
.result-strip span {
  color: var(--muted);
  font-size: 13px;
}

.summary-panel strong {
  margin: 10px 0;
  color: var(--accent-dark);
  font-size: 44px;
  overflow-wrap: anywhere;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.calculator-card {
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--text);
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.result-strip div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-muted);
  border-radius: 6px;
}

.result-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.email-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  color: #ffffff;
  background: #12332f;
  border-radius: 8px;
}

.email-capture .eyebrow,
.email-capture p {
  color: #b8ddd7;
}

.email-capture p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.checklist-preview {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checklist-preview li {
  position: relative;
  padding-left: 24px;
  color: #eefdf9;
  line-height: 1.45;
}

.checklist-preview li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: #37a58e;
  border-radius: 50%;
}

.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.email-form label {
  color: #d6f0ec;
}

.email-form input {
  background: #ffffff;
}

.email-form button {
  background: #37a58e;
}

.email-form button:hover {
  background: #2a8976;
}

#emailStatus {
  grid-column: 1 / -1;
  min-height: 20px;
  color: #d6f0ec;
  font-size: 13px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

button {
  min-height: 40px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
}

td:last-child {
  color: var(--good);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.content-grid article {
  min-width: 0;
  padding: 20px;
}

.content-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
  padding: 22px 0 4px;
  color: var(--muted);
}

.narrow-page {
  max-width: 820px;
}

.narrow-page h1 {
  margin-top: 24px;
  font-size: 56px;
}

.narrow-page p,
.source-list {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

@media (max-width: 880px) {
  .hero,
  .calculator-grid,
  .email-capture,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    min-height: 160px;
  }

  .narrow-page h1 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 24px 0;
  }

  h1 {
    font-size: 38px;
    line-height: 1;
  }

  .hero-copy {
    font-size: 16px;
  }

  .summary-panel {
    padding: 20px;
  }

  .summary-panel strong {
    font-size: 36px;
  }

  .calculator-card,
  .content-grid article,
  .email-capture {
    padding: 18px;
  }

  .two-column,
  .result-strip {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
  }

  h1 {
    font-size: 34px;
  }

  .summary-panel strong {
    font-size: 32px;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 13px;
  }
}
