:root {
  --bg: #101214;
  --surface: #16191c;
  --line: #24282c;
  --text: #e8e5df;
  --muted: #8a8f94;
  --accent: #c9a050;
  --accent-dim: #8a6f38;
  --danger: #b3564f;
  --radius: 10px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 0;
}

.wordmark {
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 12px;
}

.progress {
  height: 2px;
  background: var(--line);
  margin: 0 -20px;
}

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

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.history {
  margin-bottom: 32px;
}

.history .qa {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.45;
  font-size: 15px;
}

.history .qa .q {
  color: var(--muted);
  margin-bottom: 4px;
}
.history .qa .a {
  color: var(--text);
  white-space: pre-wrap;
}

.screen {
  animation: rise 0.45s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  .screen {
    animation: none;
  }
  .progress-fill {
    transition: none;
  }
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.prompt {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 560;
  margin-bottom: 24px;
}

.intro-body p,
.muted {
  color: var(--muted);
}
.intro-body p {
  margin-bottom: 14px;
  font-size: 17px;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

textarea:focus,
input:focus {
  border-color: var(--accent-dim);
}

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 6px;
}

button {
  font: inherit;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 14px 26px;
}

.primary {
  background: var(--accent);
  color: #17130a;
  font-weight: 650;
  margin-top: 24px;
  transition: filter 0.15s;
}

.primary:hover {
  filter: brightness(1.08);
}
.primary:disabled {
  opacity: 0.45;
  cursor: default;
}

.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  margin-top: 24px;
  margin-left: 10px;
}

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

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 16px 18px;
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.choice:hover {
  border-color: var(--accent-dim);
}

.choice.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.slider-block {
  margin: 8px 0 20px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.slider-value {
  min-width: 44px;
  text-align: center;
  font-size: 24px;
  font-weight: 650;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.followup {
  margin-top: 20px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

.scoring {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 24px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.9);
    opacity: 1;
  }
}

.insight {
  font-size: 21px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.closing {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
