:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #f4f5f7;
  color: #1a1a1a;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  margin-bottom: 0.25rem;
}

.back-link {
  margin-bottom: 1rem;
}

.back-link a {
  color: #2563eb;
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

.lead {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
}

.intro {
  color: #555;
  margin-bottom: 2rem;
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.field span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.5rem 0;
  font-weight: normal;
}

.consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.consent a {
  color: #2563eb;
}

.question {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.question-text {
  margin: 0 0 0.6rem;
}

.scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.scale-option {
  display: flex;
  flex: 1;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: normal;
  color: #444;
  text-align: center;
  line-height: 1.15;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}

button:hover {
  background: #1d4ed8;
}

.result {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #34d399;
}

.key {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.result-description {
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.error {
  margin-top: 1rem;
  color: #b91c1c;
  font-weight: 600;
}
