:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --bg-deep: #ebe4d8;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --text: #14201a;
  --muted: #637069;
  --line: #ded7cb;
  --line-strong: #c8beae;
  --green: #1f5948;
  --green-dark: #123729;
  --green-soft: #e9f1ec;
  --gold: #bf8038;
  --danger: #9d3328;
  --danger-bg: #fff2ef;
  --success-bg: #edf8f0;
  --shadow: 0 22px 54px rgba(20, 32, 26, 0.12);
  --shadow-soft: 0 12px 28px rgba(20, 32, 26, 0.08);
  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;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(235, 228, 216, 0.65), rgba(244, 240, 232, 0) 620px),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: 4.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 215, 203, 0.72);
  background: rgba(244, 240, 232, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-stage {
  padding: 58px 0 30px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy-block {
  max-width: 840px;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.27rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-media.compact img {
  height: 260px;
}

.action-section,
.proof-section {
  padding: 34px 0;
}

.section-kicker {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-kicker h2 {
  margin-bottom: 0;
}

.path-grid,
.steps {
  display: grid;
  gap: 18px;
}

.path-grid.large {
  gap: 20px;
}

.path-card,
.step,
.form-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.path-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 240px;
  padding: 28px;
}

.path-card-top {
  display: grid;
  gap: 14px;
}

.path-index {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.path-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  padding: 13px 20px;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  transform: translateY(-1px);
}

.button.secondary,
.button.tertiary {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--green-dark);
}

.button.secondary:hover,
.button.tertiary:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice:focus-within {
  outline: 3px solid rgba(31, 89, 72, 0.26);
  outline-offset: 2px;
}

.trust-strip {
  margin-top: 20px;
  border: 1px solid rgba(18, 55, 41, 0.18);
  border-radius: 8px;
  background: var(--green-dark);
  color: #ffffff;
  padding: 16px;
}

.trust-strip p {
  margin: 0;
  font-weight: 800;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-hero {
  padding: 48px 0 22px;
}

.form-hero.compact-page {
  padding-bottom: 10px;
}

.form-hero.minimal-page {
  padding: 30px 0 8px;
}

.form-hero h1 {
  max-width: 800px;
  font-size: 3.5rem;
  line-height: 1.02;
}

.minimal-hero {
  max-width: 1040px;
}

.minimal-hero h1 {
  max-width: 760px;
}

.form-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.form-layout {
  display: grid;
  gap: 22px;
  align-items: start;
  padding: 20px 0 62px;
}

.form-layout.refined {
  max-width: 1220px;
}

.compact-form-layout {
  max-width: 1040px;
}

.minimal-form-layout {
  max-width: 940px;
  padding-top: 6px;
}

.form-card {
  overflow: hidden;
}

.form-intro {
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.form-intro p {
  margin-bottom: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 0;
}

.compact-form {
  gap: 0;
}

.form-section {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h3 {
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 780;
}

.optional-section {
  background: var(--surface-soft);
}

.minimal-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  background: #ffffff;
}

.minimal-fields .field {
  align-content: start;
}

.minimal-fields .permission,
.minimal-fields .field:has(textarea) {
  grid-column: 1 / -1;
}

.field-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.permission-section {
  padding-top: 22px;
  padding-bottom: 22px;
}

.step-progress {
  display: grid;
  gap: 10px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 850;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e0d5;
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.form-step {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.form-step[hidden] {
  display: none;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.section-title {
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label,
legend {
  color: var(--text);
  font-weight: 800;
}

.optional {
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbc2b4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 14px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.input-with-unit input {
  border-radius: 8px 0 0 8px;
}

.input-with-unit span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid #cbc2b4;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 850;
  padding: 0 14px;
}

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

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9d0c2;
  border-radius: 8px;
  background: #fffefb;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 780;
}

.chips .choice {
  justify-content: center;
  text-align: center;
}

.choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
}

.chips .choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  border-color: rgba(31, 89, 72, 0.58);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(31, 89, 72, 0.22);
}

.permission {
  padding-top: 0;
}

.permission .choice {
  align-items: flex-start;
  border-color: var(--line);
  background: var(--surface-soft);
  text-align: left;
}

.minimal-consent .choice {
  background: #ffffff;
}

.error {
  display: none;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 760;
}

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

.review-panel {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  margin: 4px -28px -28px;
  padding: 24px 28px 28px;
}

.review-panel h3 {
  margin-bottom: 0;
}

.review-panel dl {
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.review-panel dt {
  color: var(--muted);
  font-weight: 760;
}

.review-panel dd {
  margin: 0;
  color: var(--text);
  font-weight: 760;
}

.form-message {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 28px;
  padding: 16px;
}

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

.form-message h3 {
  margin-bottom: 5px;
}

.form-message p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-message.success {
  border-color: #b4dcbd;
  background: var(--success-bg);
}

.form-message.failure {
  border-color: #efc5bb;
  background: var(--danger-bg);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.step-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 16px 28px;
  backdrop-filter: blur(12px);
}

.step-actions .small-note {
  margin-left: auto;
  max-width: 360px;
}

.submit-row {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 28px;
}

.submit-row .small-note {
  margin-left: auto;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.side-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.context-card {
  background: var(--green-dark);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.context-card .small-note,
.context-card .side-list li {
  color: rgba(255, 255, 255, 0.78);
}

.side-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--muted);
}

.side-list span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 900;
}

.thank-you-page {
  display: grid;
  min-height: calc(100vh - 220px);
  align-items: center;
  padding: 64px 0;
}

.thank-you-card {
  display: grid;
  gap: 18px;
  max-width: 840px;
  padding: 34px;
}

.thank-you-card h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 3.6rem;
  line-height: 1;
}

.content-page {
  padding: 64px 0;
}

.content-page h1 {
  max-width: 780px;
  font-size: 3.4rem;
  line-height: 1.02;
}

.content-card {
  display: grid;
  gap: 12px;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.content-card h2 {
  margin: 16px 0 0;
  font-size: 1.45rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 30px 0;
}

.footer-inner {
  display: grid;
  gap: 10px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--text);
}

@media (min-width: 700px) {
  .shell {
    width: min(1220px, calc(100% - 64px));
  }

  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.86fr);
  }

  .form-hero-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

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

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

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

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

@media (min-width: 1020px) {
  h1 {
    font-size: 4.65rem;
  }

  .form-hero h1 {
    font-size: 3.85rem;
  }

  .form-hero.minimal-page h1 {
    font-size: 3.25rem;
  }

  .hero-stage {
    padding-top: 74px;
  }

  .form-layout.refined {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .side-card {
    position: sticky;
    top: 92px;
  }

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

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

@media (max-width: 699px) {
  h1 {
    font-size: 2.7rem;
  }

  .form-hero h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .content-page h1,
  .thank-you-card h1 {
    font-size: 2.35rem;
  }

  .shell {
    width: min(100% - 32px, 1220px);
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .hero-stage,
  .form-hero {
    padding-top: 36px;
  }

  .form-hero.minimal-page {
    padding: 28px 0 10px;
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .hero-media img {
    height: 300px;
  }

  .hero-media.compact img {
    height: 190px;
  }

  .action-section,
  .proof-section {
    padding: 26px 0;
  }

  .path-card {
    min-height: auto;
    padding: 22px;
  }

  .form-intro,
  .form-section,
  .step-progress,
  .form-step,
  .step-actions,
  .submit-row {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading {
    display: grid;
    gap: 4px;
  }

  .minimal-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-panel {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .review-panel dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .review-panel dd {
    margin-bottom: 8px;
  }

  .step-actions {
    align-items: stretch;
  }

  .step-actions .button {
    flex: 1 1 120px;
  }

  .step-actions .small-note {
    flex-basis: 100%;
    margin-left: 0;
  }

  .submit-row {
    align-items: stretch;
  }

  .submit-row .button {
    width: 100%;
  }

  .submit-row .small-note {
    margin-left: 0;
  }

  .thank-you-card {
    padding: 24px;
  }

  .thank-you-card h1 {
    font-size: 2.35rem;
  }
}
