:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #63736d;
  --line: #dce7e2;
  --paper: #f7faf8;
  --panel: #ffffff;
  --green: #0f766e;
  --green-dark: #115e59;
  --green-soft: #e5f4ee;
  --amber: #b45309;
  --red: #b91c1c;
  --blue: #2563eb;
  --shadow: 0 18px 42px rgba(23, 33, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(247, 250, 248, 0.93);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.nav a {
  text-decoration: none;
}

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

.nav .nav-cta {
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 63px);
  padding: clamp(34px, 7vw, 78px) clamp(18px, 4vw, 54px) 44px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 590px;
}

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

.trust-strip span {
  background: var(--green-soft);
  border: 1px solid #c7e5d8;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 760;
  padding: 9px 12px;
}

.checker-panel,
.card,
.quote-form,
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checker-panel {
  align-self: center;
  box-shadow: var(--shadow);
  min-height: 540px;
  padding: clamp(18px, 4vw, 30px);
}

.panel-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.step-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ghost-btn {
  background: #f0f5f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  padding: 10px 12px;
}

.progress {
  background: #edf3f0;
  border-radius: 999px;
  height: 8px;
  margin: 8px 0 22px;
  overflow: hidden;
}

.progress span {
  background: var(--green);
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0%;
}

.question-area,
.result-area {
  display: grid;
  gap: 12px;
}

.option-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 720;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px;
  text-align: left;
  width: 100%;
}

.option-btn:hover {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
}

.option-btn span {
  color: var(--muted);
  font-weight: 700;
}

.back-btn {
  background: transparent;
  border: 0;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  margin-top: 10px;
  padding: 8px 0;
  width: fit-content;
}

.result-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 16px;
}

.result-card.warning {
  border-left-color: var(--amber);
}

.result-card.danger {
  border-left-color: var(--red);
}

.result-card ul,
.article ul,
.article ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.result-card li + li,
.article li + li {
  margin-top: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.button,
.primary-btn,
.secondary-btn,
.quote-form button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  padding: 13px 16px;
  text-decoration: none;
}

.button,
.primary-btn,
.quote-form button {
  background: var(--green);
  color: #fff;
}

.secondary-btn {
  background: #e7f0ff;
  color: var(--blue);
}

.band,
.content-grid,
.quote-band,
.article-layout,
.page-hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px clamp(18px, 4vw, 54px);
}

.section-head {
  margin-bottom: 22px;
  max-width: 760px;
}

.price-grid,
.link-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.article-card {
  padding: 18px;
}

.price {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.card p,
.article-card p,
.quote-band p,
footer p,
.article .note {
  color: var(--muted);
}

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

.quote-band {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
}

.quote-steps {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
}

.quote-steps p {
  margin: 0;
}

.quote-steps strong {
  color: var(--green-dark);
}

.quote-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.quote-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 6px;
  text-transform: uppercase;
}

.quote-form .consent {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.45;
  text-transform: none;
}

.quote-form .consent input {
  margin-top: 2px;
  width: 18px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px;
  text-transform: none;
  width: 100%;
}

.quote-form textarea {
  min-height: 96px;
  resize: vertical;
}

.hidden-field {
  display: none;
}

.article-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
}

.article h2 {
  font-size: 30px;
  margin-top: 30px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin-top: 22px;
}

.sidebox {
  align-self: start;
  background: var(--green-soft);
  border: 1px solid #c7e5d8;
  border-radius: 8px;
  padding: 18px;
  position: sticky;
  top: 84px;
}

.sidebox a {
  margin-top: 12px;
  width: 100%;
}

.page-hero {
  padding-bottom: 22px;
}

.page-hero h1 {
  max-width: 900px;
}

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

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1.5fr;
  padding: 12px;
}

.row:nth-child(odd) {
  background: #f4f8f6;
}

.row.header {
  background: var(--green);
  color: #fff;
  font-weight: 850;
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 54px);
}

footer p {
  margin: 0 auto;
  max-width: 1180px;
}

footer a {
  color: var(--green-dark);
  font-weight: 850;
}

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

  .nav {
    gap: 12px;
    overflow-x: auto;
    width: 100%;
  }

  .hero,
  .quote-band,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .checker-panel {
    min-height: 0;
  }

  .price-grid,
  .link-grid,
  .flag-list {
    grid-template-columns: 1fr;
  }

  .sidebox {
    position: static;
  }
}

@media (max-width: 560px) {
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ghost-btn {
    width: fit-content;
  }

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