:root {
  --bg: #f4f0e8;
  --text: #1d1f1d;
  --muted: #62645f;
  --line: #cbc7bd;
  --accent: #203a34;
  --accent-hover: #172d28;
  --surface: rgba(255,255,255,.26);
  --danger: #8a2d24;
  --max-page: 1120px;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

[hidden] { display: none !important; }

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

.landing-shell {
  padding: 72px 0 40px;
}

.eyebrow {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .095em;
  color: var(--muted);
  margin-bottom: 24px;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 600;
}

h2 {
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 600;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: #343733;
}

.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: var(--measure);
  margin-top: 26px;
  color: var(--muted);
  font-size: 15px;
}

.study-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 20px;
  color: #8e908a;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  min-height: 52px;
  padding: 13px 19px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
  transition: background .16s ease, transform .16s ease;
}

.primary-button:hover,
.secondary-button:hover {
  background: var(--accent-hover);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.research-intent {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding-top: 48px;
}

.research-intent h2 {
  max-width: 600px;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 34px;
}

.intent-number {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.intent-grid p {
  max-width: 30ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

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

.survey-shell,
.success-shell {
  min-height: 100vh;
  padding: 38px 0 72px;
}

.survey-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.text-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}

.text-button:hover { color: var(--text); }

.progress-wrap {
  width: min(280px, 54vw);
}

#progress-label {
  display: block;
  text-align: right;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 7px;
}

.progress-track {
  height: 2px;
  background: var(--line);
  width: 100%;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .2s ease;
}

.question-wrap {
  max-width: 760px;
  padding-top: 76px;
}

.question-kicker {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.question-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(29px, 4.5vw, 38px);
  line-height: 1.13;
  letter-spacing: -.018em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.question-help {
  max-width: 62ch;
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 16px;
}

.answer-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.answer-option {
  position: relative;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.17);
  border-radius: 6px;
  padding: 14px 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.answer-option label::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #777a74;
  border-radius: 50%;
  background: transparent;
}

.answer-option.checkbox label::before {
  border-radius: 3px;
}

.answer-option input:checked + label {
  border-color: var(--accent);
  background: rgba(32,58,52,.055);
}

.answer-option input:checked + label::before {
  border: 5px solid var(--accent);
  background: var(--bg);
}

.answer-option.checkbox input:checked + label::before {
  border: 0;
  background:
    linear-gradient(135deg, transparent 45%, #fff 45% 54%, transparent 54%) 2px 0/9px 9px no-repeat,
    linear-gradient(45deg, transparent 42%, #fff 42% 56%, transparent 56%) 7px 5px/9px 9px no-repeat,
    var(--accent);
}

.text-answer,
.number-answer {
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.22);
  color: var(--text);
  padding: 14px 15px;
  margin-top: 28px;
  outline: none;
}

.text-answer {
  min-height: 128px;
  resize: vertical;
}

.text-answer:focus,
.number-answer:focus,
.followup-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(32,58,52,.10);
}

.continue-row {
  margin-top: 30px;
}

.continue-row .primary-button {
  margin-top: 0;
}

.form-error {
  color: var(--danger);
  margin-top: 18px;
  font-size: 15px;
}

.success-shell {
  padding-top: 76px;
  max-width: 1120px;
}

.success-shell h1 {
  font-size: clamp(44px, 6vw, 60px);
}

.success-divider {
  border-top: 1px solid var(--line);
  margin: 54px 0 42px;
  max-width: 760px;
}

.success-shell h2 {
  max-width: 700px;
}

.success-copy {
  max-width: 650px;
  margin: 15px 0 0;
  color: #3b3e3a;
}

.followup-form {
  max-width: 620px;
  margin-top: 30px;
}

.followup-form > label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
}

.followup-form input[type="text"],
.followup-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.22);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.followup-form fieldset {
  border: 0;
  padding: 0;
  margin: 28px 0 0;
}

.followup-form legend {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  margin-top: 10px !important;
  font-weight: 400 !important;
}

.check-row input {
  margin-top: 5px;
}

.secondary-button {
  margin-top: 25px;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .page-shell {
    width: min(calc(100% - 32px), var(--max-page));
  }

  .landing-shell {
    padding-top: 44px;
  }

  .lede {
    font-size: 18px;
  }

  .study-meta {
    display: grid;
    gap: 6px;
  }

  .study-meta span::after {
    display: none;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .research-intent {
    margin-top: 58px;
    padding-top: 38px;
  }

  .intent-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .intent-grid p {
    max-width: 40ch;
  }

  .landing-footer {
    flex-direction: column;
    margin-top: 56px;
  }

  .survey-shell {
    padding-top: 22px;
  }

  .survey-header {
    align-items: center;
  }

  .question-wrap {
    padding-top: 52px;
  }

  .question-title {
    font-size: 30px;
  }

  .answer-option label {
    padding: 14px;
  }

  .success-shell {
    padding-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
