:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --panel: #ffffff;
  --ink: #17201b;
  --muted: #647067;
  --line: #d9dfd8;
  --accent: #0b7a75;
  --accent-2: #204f8f;
  --danger: #a43d3d;
  --soft: #e9f3f1;
  --warn: #fff5df;
  --shadow: 0 16px 45px rgba(23, 32, 27, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar,
main,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.topbar nav,
.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar nav a,
.footer nav a {
  color: #334039;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 42px 0 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.trust-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.trust-box strong,
.trust-box span,
.trust-box small {
  display: block;
}

.trust-box span,
.trust-box small,
.note,
.footer p {
  color: var(--muted);
}

.trust-box small {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.ad-slot {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px dashed #b9c4bc;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.ad-slot-after {
  margin-top: 22px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 20px;
  align-items: start;
}

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

.panel {
  padding: 18px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

legend {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1rem;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #2d3931;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d2ca;
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  min-height: 42px;
}

textarea {
  min-height: 74px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(11, 122, 117, 0.18);
  border-color: var(--accent);
}

.span-2 {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

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

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

.secondary {
  background: #e5ece8;
  color: #24332b;
}

.copy-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.results {
  overflow: hidden;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.metric strong {
  display: block;
  color: var(--accent-2);
  font-size: clamp(1.25rem, 2.15vw, 1.85rem);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  table-layout: fixed;
}

th:nth-child(1),
td:nth-child(1) {
  width: 31%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 47%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 22%;
}

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

th {
  font-size: 0.82rem;
  color: var(--muted);
  background: #f7faf8;
  text-transform: uppercase;
}

td.value {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.negative {
  color: var(--danger);
}

.explain {
  padding: 14px 16px 18px;
  display: grid;
  gap: 8px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: #155c59;
  font-size: 0.82rem;
  font-weight: 800;
}

.warning {
  background: var(--warn);
  border-left: 4px solid #d09a2d;
  padding: 11px 12px;
  border-radius: 6px;
  color: #5a451c;
}

.content-band {
  padding: 34px 0 20px;
}

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

.content-band article,
.text-page,
.faq-band {
  padding: 18px;
}

.content-band article p {
  color: var(--muted);
  margin-bottom: 0;
}

.content-band article h3 a {
  color: var(--ink);
}

.text-page {
  max-width: 820px;
  margin: 28px auto 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.text-page.guide h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.text-page.guide h2 {
  margin-top: 26px;
  font-size: 1.35rem;
}

.text-page.guide li {
  margin-bottom: 8px;
}

.source-line {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-band {
  margin: 18px 0 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.faq-band details:first-of-type {
  border-top: 0;
}

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

.faq-band p {
  color: var(--muted);
  margin: 10px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.footer > div {
  max-width: 650px;
}

.footer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.footer p {
  margin: 4px 0 0;
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .cards {
    grid-template-columns: 1fr;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .metric strong {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }
}

@media (max-width: 620px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .span-2 {
    grid-column: auto;
  }

  h1 {
    font-size: 2.4rem;
  }
}

@media print {
  .topbar,
  .hero,
  .ad-slot,
  .panel,
  .content-band,
  .footer,
  .actions {
    display: none;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .layout {
    display: block;
  }

  .results {
    border: 0;
    box-shadow: none;
  }
}
