:root {
  --ink: #14211b;
  --muted: #52645a;
  --line: #d7e2dc;
  --paper: #f7faf8;
  --panel: #ffffff;
  --accent: #0f8f62;
  --accent-dark: #086241;
  --warm: #f0b849;
  --danger: #bf4b36;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.topbar {
  min-height: 64px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.narrow,
.article {
  width: min(820px, 90vw);
  padding: 56px 0;
}

.hero {
  padding: 84px 0 48px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

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

.secondary {
  background: #e8f2ed;
  color: var(--accent-dark);
}

.full {
  display: block;
  width: 100%;
}

.band {
  padding: 32px 0 56px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.problem-card {
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.problem-card span,
.keyword-row span {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.problem-card p,
.answer p,
.next p {
  color: var(--muted);
}

.problem-list {
  padding: 0;
  list-style: none;
}

.problem-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.problem-list a {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.problem-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.article h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.backlink {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.answer,
.next,
.cta {
  margin: 34px 0;
}

.answer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.answer h2 + p {
  margin-top: 10px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f2ed;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
}

.lead-form {
  display: grid;
  gap: 12px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

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

.hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

footer {
  margin-top: 60px;
  padding: 28px 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
}

footer nav {
  margin-top: 12px;
  justify-content: flex-start;
}

.legal {
  width: min(860px, 90vw);
  padding: 56px 0;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.legal h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

.legal p {
  color: var(--muted);
}

.legal code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e8f2ed;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 48px;
  }

  .cta {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
