:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --line: #d9dee7;
  --paper: #ffffff;
  --wash: #f7f4ec;
  --accent: #0b766e;
  --accent-dark: #075e58;
  --gold: #d99a24;
  --rose: #bd5164;
  --blue: #427bbf;
  --shadow: 0 24px 70px rgba(32, 33, 36, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(11, 118, 110, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(217, 154, 36, 0.14), transparent 38%),
    var(--wash);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(32, 33, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 36, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro {
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.96;
}

.lead {
  max-width: 31rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.pulse-row {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.pulse-row span {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.9s ease-in-out infinite;
}

.pulse-row span:nth-child(2) {
  background: var(--gold);
  animation-delay: 0.16s;
}

.pulse-row span:nth-child(3) {
  background: var(--rose);
  animation-delay: 0.32s;
}

.survey {
  width: 100%;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: enter 520ms ease both;
}

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

legend,
label > span,
.range-block > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.choice-grid,
.tag-grid {
  display: grid;
  gap: 10px;
}

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

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

.choice,
.tag {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.choice input,
.tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked),
.tag:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(11, 118, 110, 0.09);
}

.choice:hover,
.tag:hover {
  transform: translateY(-2px);
}

.range-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin-bottom: 24px;
}

.range-block input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent);
}

output {
  color: var(--accent);
  font-weight: 850;
}

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

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(66, 123, 191, 0.16);
}

.notice {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.submit:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
  text-align: center;
}

.status.error {
  color: #9c2f3d;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scaleX(0.72);
    opacity: 0.52;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 840px) {
  .shell {
    min-height: auto;
    padding: 36px 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 {
    max-width: none;
  }

  .intro {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .choice-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

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

  .survey {
    padding: 20px;
  }
}
