:root {
  --ink: #200435;
  --orange: #eb6715;
  --orange-dark: #c94e08;
  --lavender: #eee2f7;
  --lavender-line: #c8aee6;
  --paper: #ffffff;
  --wash: #f8f4ff;
  --muted: rgba(32, 4, 53, 0.66);
  --shadow: 0 24px 70px rgba(66, 25, 95, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--wash);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(200, 174, 230, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 174, 230, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(235, 103, 21, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbf8ff 0%, #f8f4ff 52%, #fefeff 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

[hidden] {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(200, 174, 230, 0.62);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark-logo {
  display: block;
  width: 150px;
  height: auto;
}

.edition {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.page-layout,
.survey-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.5fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: calc(100vh - 146px);
  padding: 52px 0 66px;
}

.context-panel,
.survey-rail {
  position: sticky;
  top: 40px;
  align-self: center;
}

.eyebrow,
.section-kicker,
.step-label {
  margin: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.context-title {
  margin: 20px 0 28px;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.context-copy,
.rail-note {
  max-width: 320px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.signal-track {
  display: grid;
  grid-template-columns: 14px 1fr 14px 1fr 14px;
  align-items: center;
  max-width: 270px;
}

.signal-node {
  width: 14px;
  height: 14px;
  border: 2px solid var(--lavender-line);
  border-radius: 50%;
  background: var(--paper);
}

.signal-node.active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(235, 103, 21, 0.1);
}

.signal-line {
  height: 2px;
  background: var(--lavender-line);
}

.intro-card,
.survey-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(200, 174, 230, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.intro-card::before,
.survey-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--orange);
  content: "";
}

.time-chip {
  position: absolute;
  top: 30px;
  right: 30px;
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  padding: 8px 11px;
  border: 1px solid var(--lavender-line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--wash);
  font-size: 11px;
  font-weight: 600;
}

.time-chip span {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

h1 {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.audience-row span {
  padding: 8px 13px;
  border: 1px solid var(--lavender-line);
  border-radius: 999px;
  background: var(--wash);
  font-size: 12px;
  font-weight: 600;
}

.trust-list {
  display: grid;
  gap: 9px;
  margin: 28px 0 32px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 23px;
}

.trust-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--orange);
  content: "+";
  font-size: 16px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.primary:hover {
  background: #360a55;
}

.button.secondary {
  border-color: var(--lavender-line);
  color: var(--ink);
  background: var(--paper);
}

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

.microcopy,
.copy-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.survey-layout {
  align-items: start;
}

.survey-rail {
  top: 92px;
  padding-top: 44px;
}

.rail-title {
  margin: 14px 0 28px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.rail-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-steps li {
  position: relative;
  min-height: 38px;
  padding-left: 34px;
  color: rgba(32, 4, 53, 0.34);
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease;
  counter-increment: rail;
}

.rail-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--lavender-line);
  border-radius: 50%;
  background: var(--wash);
  content: counter(rail);
  font-size: 9px;
}

.rail-steps li:not(:last-child)::after {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: var(--lavender-line);
  content: "";
}

.rail-steps li.active,
.rail-steps li.complete {
  color: var(--ink);
}

.rail-steps li.active::before {
  border-color: var(--orange);
  color: var(--paper);
  background: var(--orange);
}

.rail-steps li.complete::before {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.survey-card {
  width: 100%;
  margin: 30px 0 60px;
  padding: clamp(26px, 4vw, 50px);
}

.survey-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.step-time {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.progress-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  margin: 17px 0 38px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lavender);
}

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

.form-error {
  margin: -16px 0 28px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 78, 8, 0.35);
  border-radius: 10px;
  color: #8c3300;
  background: #fff7f1;
  font-size: 13px;
  font-weight: 600;
}

.section-kicker {
  margin-bottom: 25px;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question + .question,
.question + .role-branch,
.role-branch + .question {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--lavender);
}

.question.invalid legend {
  color: #8c3300;
}

.question.invalid .choice-body,
.question.invalid select,
.question.invalid textarea,
.question.invalid .text-input,
.consent.invalid {
  border-color: var(--orange);
}

.role-branch .question {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--lavender);
}

legend {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(19px, 2.5vw, 27px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.question-help {
  margin: -7px 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.choice-stack {
  display: grid;
  gap: 9px;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

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

.choice-body {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 13px 15px;
  border: 1px solid var(--lavender-line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.35;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.choice:hover .choice-body {
  border-color: var(--orange);
}

.choice input:focus-visible + .choice-body {
  outline: 3px solid rgba(235, 103, 21, 0.22);
  outline-offset: 2px;
}

.choice input:checked + .choice-body {
  border-color: var(--orange);
  background: #fff8f3;
  box-shadow: inset 0 0 0 1px var(--orange);
}

.choice input:disabled + .choice-body {
  opacity: 0.46;
  cursor: not-allowed;
}

.choice-body strong,
.choice-body small {
  display: block;
}

.choice-body strong {
  font-size: 13px;
}

.choice-body small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.choice-code {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: var(--lavender);
  font-size: 10px;
  font-weight: 700;
}

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

.chip-choice .choice-body {
  min-height: 51px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 600;
}

.maturity-list .choice-body {
  min-height: 58px;
}

.maturity-dot {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--lavender-line);
  border-radius: 50%;
}

.maturity-dot.m1 { border-color: #a789bf; }
.maturity-dot.m2 { border-color: #7b559a; }
.maturity-dot.m3 { border-color: var(--orange); }
.maturity-dot.m4 { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px rgba(235, 103, 21, 0.1); }
.maturity-dot.unknown { border-style: dashed; }

.compact-question legend {
  font-size: 19px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

select,
.text-input,
textarea {
  width: 100%;
  border: 1px solid var(--lavender-line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
}

select {
  min-height: 52px;
  padding: 0 46px 0 15px;
  appearance: none;
  cursor: pointer;
}

.text-input,
textarea {
  padding: 14px 15px;
}

.other-response {
  margin-top: 14px;
}

.other-response label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.other-response label span {
  color: var(--muted);
  font-weight: 500;
}

textarea {
  min-height: 125px;
  resize: vertical;
  line-height: 1.55;
}

select:focus-visible,
.text-input:focus-visible,
textarea:focus-visible {
  border-color: var(--orange);
  outline: 3px solid rgba(235, 103, 21, 0.16);
}

.character-count {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.consent {
  margin: 30px 0 0;
  padding: 16px;
  border: 1px solid var(--lavender-line);
  border-radius: 12px;
  background: var(--wash);
}

.consent label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--orange);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid var(--lavender);
}

.form-actions .primary {
  margin-left: auto;
}

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

.thank-you {
  min-height: calc(100vh - 146px);
}

.thank-card h1 {
  max-width: 620px;
}

.signal-mark {
  display: flex;
  gap: 9px;
}

.signal-mark span {
  display: block;
  width: 44px;
  height: 7px;
  border-radius: 99px;
  background: var(--lavender-line);
}

.signal-mark span:nth-child(2) {
  background: var(--orange);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.copy-status {
  min-height: 17px;
  color: var(--orange-dark);
  font-weight: 600;
}

footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  width: min(1180px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  border-top: 1px solid rgba(200, 174, 230, 0.62);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

footer a {
  color: inherit;
}

@media (max-width: 900px) {
  .page-layout,
  .survey-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .context-panel,
  .survey-rail {
    position: static;
  }

  .context-title {
    max-width: 560px;
    margin-bottom: 18px;
  }

  .context-copy {
    margin-top: 18px;
  }

  .survey-rail {
    padding-top: 0;
  }

  .rail-title,
  .rail-note {
    display: none;
  }

  .rail-steps {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 16px;
  }

  .rail-steps li {
    min-height: 6px;
    padding: 0;
    overflow: hidden;
    border-radius: 99px;
    background: var(--lavender);
    color: transparent;
    font-size: 0;
  }

  .rail-steps li::before,
  .rail-steps li::after {
    display: none;
  }

  .rail-steps li.active {
    background: var(--orange);
  }

  .rail-steps li.complete {
    background: var(--ink);
  }

  .survey-card {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 65px;
  }

  .edition {
    max-width: 145px;
    font-size: 8px;
    line-height: 1.4;
    text-align: right;
  }

  .wordmark-logo {
    width: 128px;
  }

  .page-layout,
  .survey-layout {
    min-height: calc(100vh - 120px);
    padding: 26px 0 48px;
  }

  .context-panel .context-copy,
  .context-panel .signal-track {
    display: none;
  }

  .context-title {
    margin: 10px 0 0;
    font-size: 30px;
  }

  .intro-card,
  .survey-card {
    padding: 27px 22px 28px;
    border-radius: 18px;
  }

  .time-chip {
    position: static;
    width: max-content;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 39px;
  }

  .lede {
    font-size: 15px;
  }

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

  .choice-body {
    min-height: 56px;
  }

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

  .progress-track {
    margin-bottom: 30px;
  }

  legend {
    font-size: 21px;
  }

  .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-right: -22px;
    margin-left: -22px;
    padding: 16px 22px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%);
  }

  .form-actions .button {
    flex: 1;
    padding-right: 14px;
    padding-left: 14px;
  }

  footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
