:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --panel: #ffffff;
  --ink: #17211b;
  --muted: #5d6b61;
  --line: #dcd5ca;
  --brand: #0f6b50;
  --brand-dark: #0a4837;
  --accent: #f0b84b;
  --soft: #e7f4ef;
  --danger: #8a4b23;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.hero {
  padding: 24px clamp(18px, 4vw, 56px) 56px;
  background:
    radial-gradient(circle at top right, rgba(240, 184, 75, 0.32), transparent 34rem),
    linear-gradient(135deg, #fff8ea, #edf8f4 70%);
  border-bottom: 1px solid var(--line);
}

.nav,
.hero-grid,
.section {
  max-width: 1180px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 58px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--brand-dark);
}

.brand {
  margin-right: auto;
  font-size: 1.05rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  letter-spacing: -0.07em;
  max-width: 920px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.hero-copy {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--muted);
  max-width: 720px;
}

.hero-actions,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 19px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 26px rgba(15, 107, 80, 0.25);
}

.cta.secondary {
  background: var(--accent);
  color: #241900;
}

.cta.ghost {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.55);
}

.cta.full {
  width: 100%;
}

.disclosure {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 760px;
}

.hero-card,
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(44, 37, 28, 0.09);
  border-radius: 28px;
}

.hero-card {
  padding: 28px;
}

.hero-card span {
  color: var(--muted);
  font-weight: 750;
}

.hero-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  margin: 12px 0;
}

.section {
  padding: 72px clamp(18px, 4vw, 56px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head p:last-child {
  color: var(--muted);
  margin: 0;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 24px;
}

.form-panel,
.lead-form {
  display: grid;
  gap: 18px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  font-weight: 780;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

legend {
  padding: 0 8px;
  color: var(--brand-dark);
}

fieldset label,
.inline-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fffefb;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--brand);
}

.results {
  display: grid;
  gap: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
}

.result-card.is-top {
  border-color: rgba(15, 107, 80, 0.55);
  box-shadow: 0 22px 70px rgba(15, 107, 80, 0.13);
}

.result-rank {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.result-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.result-head strong {
  color: var(--brand);
  font-size: 1.7rem;
}

.fit {
  display: inline-block;
  margin: 14px 0;
  color: var(--brand-dark);
  background: var(--soft);
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 850;
}

.result-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.result-meta div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.result-meta dt {
  color: var(--muted);
  font-weight: 850;
}

.result-meta dd {
  margin: 0;
}

.chips span {
  background: #f6f1e7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.9rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.caution {
  color: var(--danger);
  font-weight: 700;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.proof-grid p,
.proof-grid li {
  color: var(--muted);
}

.lead-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px);
  gap: 28px;
  align-items: center;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 750;
}

.form-status[data-state="success"] {
  color: var(--brand-dark);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.05rem;
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}

.metrics span {
  color: var(--muted);
  margin-top: 8px;
}

footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-grid,
  .app-grid,
  .lead-section,
  .proof-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .nav {
    flex-wrap: wrap;
    margin-bottom: 36px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .panel,
  .hero-card,
  .result-card {
    border-radius: 22px;
  }

  .result-card,
  .result-head,
  .result-meta div {
    grid-template-columns: 1fr;
  }

  .result-rank {
    width: 42px;
    height: 42px;
  }

  .hero-actions .cta {
    width: 100%;
  }
}
