:root {
  color-scheme: light;
  --ink: #172019;
  --muted: #697169;
  --paper: #f5f3ea;
  --surface: #fffefa;
  --line: #dcded5;
  --green: #276749;
  --green-dark: #194b34;
  --green-soft: #e0eee4;
  --shadow: 0 28px 70px rgba(29, 48, 36, 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;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(39, 103, 73, 0.28);
  outline-offset: 4px;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid rgba(105, 113, 105, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #4d574f;
  font-size: 14px;
  font-weight: 680;
}

.nav-action {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  min-height: 720px;
  padding: 96px 0 112px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 7.1vw, 102px);
  font-weight: 720;
  letter-spacing: -0.067em;
  line-height: 0.91;
}

.hero-summary {
  max-width: 650px;
  margin-top: 32px;
  color: #4f5951;
  font-size: clamp(18px, 1.75vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 750;
  transition: transform 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(39, 103, 73, 0.2);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border: 1px solid #cfd3cb;
  background: rgba(255, 255, 255, 0.55);
}

.local-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.local-note > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46a472;
  box-shadow: 0 0 0 4px rgba(70, 164, 114, 0.12);
}

.judgment-card {
  position: relative;
  padding: clamp(26px, 3.5vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(214, 218, 209, 0.9);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.judgment-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at top right, rgba(207, 232, 215, 0.76), transparent 68%);
  content: "";
}

.card-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e5e6df;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.attention-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.question-kicker {
  margin-top: 26px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.judgment-card h2 {
  margin-top: 10px;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.17;
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.choice {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid #e0e2db;
  border-radius: 13px;
  color: #5c655e;
  font-size: 13px;
  font-weight: 650;
}

.choice i {
  display: block;
  width: 17px;
  height: 17px;
  border: 1.5px solid #aeb5ae;
  border-radius: 50%;
}

.choice.selected {
  border-color: #85b399;
  background: #f2f8f4;
  color: var(--ink);
}

.choice.selected i {
  border: 5px solid var(--green);
}

.learned-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.learned-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.how-it-works {
  padding: 116px 0;
  border-top: 1px solid rgba(105, 113, 105, 0.2);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: 70px;
}

.section-intro .eyebrow {
  margin: 0 0 8px;
}

.section-intro h2,
.architecture h2,
.closing h2 {
  font-size: clamp(42px, 5.8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps article {
  min-height: 270px;
  padding: 28px;
  border-top: 1px solid #aeb5ad;
  background: rgba(255, 255, 255, 0.25);
}

.step-number {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.steps h3 {
  margin-top: 54px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.steps p {
  margin-top: 14px;
  color: var(--muted);
}

.architecture {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(48px, 10vw, 140px);
  padding: 110px clamp(32px, 6vw, 74px);
  border-radius: 34px;
  background: var(--ink);
  color: #f8f7f0;
}

.architecture .eyebrow {
  color: #8ed0aa;
}

.architecture p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 28px;
  color: #b9c2bb;
  font-size: 18px;
}

.invariants {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
}

.invariants li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #b9c2bb;
}

.invariants li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.invariants span {
  color: #fff;
  font-weight: 760;
}

.closing {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.closing .eyebrow {
  margin-bottom: 22px;
}

.closing .button {
  gap: 22px;
  margin-top: 38px;
}

.button-light {
  border: 1px solid #cfd3cb;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(29, 48, 36, 0.08);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 130px;
  border-top: 1px solid rgba(105, 113, 105, 0.2);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 78px 0 96px;
  }

  .judgment-card {
    width: min(560px, 100%);
  }

  .section-intro,
  .architecture {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 26px;
  }

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

  .steps article {
    min-height: 220px;
  }

  .steps h3 {
    margin-top: 38px;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  nav > a:first-child {
    display: none;
  }

  .hero {
    gap: 58px;
    padding: 62px 0 82px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-summary {
    margin-top: 26px;
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .local-note {
    align-items: flex-start;
  }

  .local-note > span {
    flex: 0 0 auto;
    margin-top: 6px;
  }

  .judgment-card {
    border-radius: 22px;
  }

  .card-topline {
    align-items: flex-start;
  }

  .how-it-works {
    padding: 86px 0;
  }

  .section-intro {
    margin-bottom: 46px;
  }

  .section-intro h2,
  .architecture h2,
  .closing h2 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .steps article {
    min-height: 0;
    padding: 26px 18px 34px;
  }

  .architecture {
    gap: 54px;
    padding: 70px 24px;
    border-radius: 25px;
  }

  .architecture p:not(.eyebrow) {
    font-size: 16px;
  }

  .closing {
    min-height: 480px;
  }

  footer {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

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

  .button {
    transition: none;
  }
}
