:root {
  color-scheme: light;
  --bg: #f7fbf5;
  --surface: #fff;
  --ink: #142118;
  --muted: #637067;
  --line: rgba(20, 33, 24, 0.13);
  --green: #22783c;
  --green-strong: #175d2d;
  --green-soft: #eaf7e8;
  --lime: #b7ff58;
  --yellow: #fff6d8;
  --red-soft: #fff1ee;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(28, 69, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 4%, rgba(183, 255, 88, 0.24), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.trust-line span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 120, 60, 0.11);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 54px;
  padding: 76px 0 38px;
}

.eyebrow,
.step-label {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  line-height: 0.98;
}

.lede {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
}

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

.principles span,
.fit-badge {
  padding: 7px 10px;
  border: 1px solid rgba(34, 120, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 650;
}

.hero-proof {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.hero-proof strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.35;
}

.hero-proof p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.match-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.match-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fbfdf9;
}

.match-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  color: #8a948c;
  font-size: 12px;
  font-weight: 680;
}

.match-progress span + span {
  border-left: 1px solid var(--line);
}

.match-progress i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #eef2ed;
  font-size: 10px;
  font-style: normal;
}

.match-progress span.active {
  color: var(--green-strong);
  background: var(--green-soft);
}

.match-progress span.active i {
  background: var(--lime);
  color: var(--ink);
}

.match-stage {
  padding: clamp(28px, 6vw, 62px);
}

.match-stage[hidden] {
  display: none;
}

.match-stage h2 {
  max-width: 780px;
  margin-bottom: 8px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
}

.question-note {
  margin-bottom: 30px;
  color: var(--muted);
}

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

.option {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option:hover,
.option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 120, 60, 0.45);
  background: var(--green-soft);
  outline: none;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 17px;
  font-weight: 780;
}

.option strong,
.option small {
  display: block;
}

.option strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.option b {
  color: var(--green);
}

.option-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid.compact .option {
  grid-template-columns: 42px 1fr;
}

.option-grid.compact .option b {
  display: none;
}

.back {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.back:hover,
.back:focus-visible {
  color: var(--ink);
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-summary {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: 14px;
}

.result-main,
.result-caution {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.result-main {
  background: linear-gradient(145deg, #f5fceb, #fff);
}

.result-main h3,
.plan-box h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.result-main > p:not(.eyebrow),
.result-caution p {
  color: var(--muted);
}

.result-caution {
  background: var(--yellow);
}

.result-caution strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.result-caution a {
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 650;
}

.action-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.result-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.result-action:hover,
.result-action:focus-visible {
  border-color: rgba(34, 120, 60, 0.48);
  outline: none;
}

.result-action strong,
.result-action small {
  display: block;
}

.result-action small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.result-action b {
  color: var(--green);
}

.partner-label {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.plan-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 34px;
  margin-top: 14px;
  padding: 25px;
  border: 1px solid rgba(34, 120, 60, 0.18);
  border-radius: 18px;
  background: var(--green-soft);
}

.plan-box p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

#planForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

#planForm input {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

#planForm input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 120, 60, 0.12);
}

#planForm button {
  padding: 13px 16px;
  border: 1px solid var(--green-strong);
  border-radius: 11px;
  background: var(--green-strong);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

#planForm button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status.success {
  color: var(--green-strong);
  font-weight: 650;
}

.form-status.error {
  color: #a73526;
}

.criteria {
  padding: 92px 0 36px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.72fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 45px);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

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

.criteria-grid article {
  min-height: 205px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
}

.criteria-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.criteria-grid strong {
  display: block;
  margin-bottom: 6px;
}

.criteria-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.disclosure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 20px 0 76px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.disclosure strong {
  color: var(--ink);
}

.disclosure p {
  margin: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer > a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

footer nav {
  display: flex;
  gap: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 850px) {
  .hero,
  .result-grid,
  .plan-box,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 25px;
    padding-top: 52px;
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 26px, 1120px);
  }

  .trust-line {
    font-size: 10px;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 44px;
  }

  .principles span:nth-child(3) {
    display: none;
  }

  .match-progress span {
    min-height: 52px;
    font-size: 10px;
  }

  .match-stage {
    padding: 25px 17px;
  }

  .option-grid,
  .option-grid.compact,
  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: 100px;
    padding: 15px;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-main,
  .result-caution,
  .plan-box {
    padding: 18px;
  }

  #planForm {
    grid-template-columns: 1fr;
  }

  .criteria {
    padding-top: 64px;
  }

  .criteria-grid article {
    min-height: 0;
  }

  .criteria-grid span {
    margin-bottom: 24px;
  }

  .disclosure {
    display: block;
  }

  .disclosure strong {
    display: block;
    margin-bottom: 5px;
  }

  footer {
    display: block;
  }

  footer span,
  footer nav {
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .option {
    transition: none;
  }
}
