:root {
  --bg: #f5f7f2;
  --surface: #ffffff;
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #dfe5db;
  --primary: #176b57;
  --primary-dark: #104b3e;
  --accent: #c8573f;
  --soft: #eef4ec;
  --shadow: 0 14px 34px rgba(24, 33, 47, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer,
.section,
.hero,
.policy-section,
.legal-text,
.thank-you-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px 0 40px;
}

.hero-content {
  padding: 8px 0;
}

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

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

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

h1 {
  max-width: 760px;
  font-size: clamp(36px, 11vw, 62px);
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 20px;
}

p {
  line-height: 1.65;
}

.subheadline {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: #a94734;
}

.button-secondary {
  background: var(--soft);
  color: var(--primary-dark);
}

.trust-note,
.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 4px;
}

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

label {
  font-weight: 800;
}

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

input:focus,
select:focus {
  outline: 3px solid rgba(23, 107, 87, 0.18);
  border-color: var(--primary);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

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

.form-error {
  display: none;
  margin: 0;
  color: #a1281f;
  font-size: 14px;
  font-weight: 700;
}

.form-error.is-visible {
  display: block;
}

.section,
.policy-section,
.legal-text {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.split-section {
  display: grid;
  gap: 24px;
}

.split-section > div:first-child p,
.section-heading + p {
  color: var(--muted);
}

.comparison-grid,
.learning-list {
  display: grid;
  gap: 14px;
}

.info-card,
.learning-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.info-card p,
.learning-list p,
.faq-section p,
.policy-section p,
.legal-text p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 18px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
}

details + details {
  margin-top: 12px;
}

summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.policy-section {
  padding-bottom: 28px;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.legal-text {
  padding-top: 26px;
  padding-bottom: 26px;
}

.thank-you-section {
  display: grid;
  place-items: start;
  min-height: calc(100vh - 110px);
  padding: 80px 0;
}

.thank-you-section .button {
  margin-top: 24px;
}

@media (min-width: 680px) {
  .nav {
    display: flex;
  }

  .hero-actions {
    flex-direction: row;
  }

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

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    min-height: 620px;
    padding-top: 42px;
  }

  .split-section {
    grid-template-columns: 0.75fr 1.25fr;
  }

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