:root {
  --brand: #1f9b8f;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --line: #e6e6e6;
  --danger: #c0392b;
  --radius: 10px;
  --max: 680px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

.funnel {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
  min-height: calc(100vh - 0.5rem);
  display: flex;
  flex-direction: column;
}

.funnel__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.funnel__footer a {
  color: var(--muted);
  text-decoration: none;
}

.funnel__footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.funnel__footer-sep {
  color: #c5c5c5;
}

.funnel__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.funnel__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
}

.progress {
  width: min(100%, 320px);
  height: 4px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: inherit;
  transition: width 280ms ease;
}

.funnel__main {
  flex: 1;
  text-align: center;
}

.step {
  animation: rise 320ms ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.subheadline {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.divider {
  width: min(100%, 120px);
  height: 1px;
  margin: 0 auto 1.35rem;
  background: var(--line);
  border: 0;
}

.body-text {
  margin: 0 auto 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.body-text:last-of-type {
  margin-bottom: 1.75rem;
}

.question-label {
  margin: 0 0 1.35rem;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.options {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  text-align: left;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.option:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, #ddd);
}

.option.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  box-shadow: inset 0 0 0 1px var(--brand);
}

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

.option__mark {
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #c5c5c5;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.option.is-selected .option__mark {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.option--multi .option__mark {
  border-radius: 4px;
}

.option__text {
  font-weight: 560;
  font-size: 0.98rem;
}

.field-stack {
  display: grid;
  gap: 0.95rem;
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  min-width: min(100%, 280px);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  min-width: auto;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  filter: none;
  transform: none;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.privacy,
.error {
  margin: 0.25rem auto 0;
  max-width: 28rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.loading,
.boot-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

@media (max-width: 520px) {
  .funnel {
    width: min(100% - 1.25rem, var(--max));
    padding-top: 1.25rem;
  }

  .btn {
    width: 100%;
  }
}
