/* Palette 5 — Olive + Signal Accent */
:root {
  --ink: #111210;
  --olive-gray: #6B705C;
  --sage: #DDE5B6;
  --accent: #8A9A5B;
  --accent-dark: #76854c;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(17, 18, 16, 0.06), 0 6px 20px rgba(17, 18, 16, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- header ---------- */
header.bar {
  background: var(--ink);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 7px;
  flex: none;
}
header.bar h1 {
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- shell ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px 56px;
}

.meta {
  color: var(--olive-gray);
  font-size: 0.875rem;
  margin: 0 0 12px;
}

.track {
  height: 11px;
  background: var(--white);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 26px;
}
.fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.28s ease;
}

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 20px;
}
.qnum {
  color: var(--olive-gray);
  font-size: 0.875rem;
  margin: 0 0 8px;
}
.qtext {
  font-size: 1.32rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.qhelp {
  color: var(--olive-gray);
  font-size: 0.9rem;
  margin: 0 0 20px;
  line-height: 1.5;
}
.optional {
  color: var(--olive-gray);
  font-weight: 500;
  font-size: 0.92rem;
}

/* ---------- 1-5 scale ---------- */
.scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 26px 0 10px;
}
.scale .opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--olive-gray);
  background: var(--white);
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.scale .opt:hover .dot { border-color: var(--accent); }
.scale .opt input { position: absolute; opacity: 0; pointer-events: none; }
.scale .opt input:checked + .dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.scale .num { color: var(--olive-gray); font-size: 0.95rem; }
.scale-ends {
  display: flex;
  justify-content: space-between;
  color: var(--olive-gray);
  font-size: 0.82rem;
}

/* ---------- choice lists ---------- */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid #E2E5D6;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  line-height: 1.4;
}
.choice:hover { border-color: var(--accent); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.box {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  border: 2px solid var(--olive-gray);
  background: var(--white);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.box.round { border-radius: 50%; }
.box.square { border-radius: 5px; }
.choice input:checked + .box { background: var(--accent); border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: #F6F8EE; }

/* ---------- text ---------- */
textarea, input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--olive-gray);
  border-radius: 11px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.55;
}
textarea { min-height: 128px; }
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 154, 91, 0.2);
}
textarea::placeholder, input::placeholder { color: var(--olive-gray); opacity: 0.75; }
.other-wrap { margin-top: 12px; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
button {
  font: inherit;
  font-weight: 600;
  border-radius: 11px;
  padding: 13px 30px;
  cursor: pointer;
  border: none;
  transition: background 0.12s ease, opacity 0.12s ease;
}
.primary { background: var(--accent); color: var(--white); }
.primary:hover { background: var(--accent-dark); }
.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost {
  background: transparent;
  color: var(--olive-gray);
  border: 1.5px solid var(--olive-gray);
}
.ghost:hover { color: var(--ink); border-color: var(--ink); }
.ghost[hidden] { visibility: hidden; }

/* ---------- intro / done ---------- */
.lead { font-size: 1.02rem; line-height: 1.62; margin: 0 0 16px; }
.lead strong { font-weight: 700; }
.pill {
  display: inline-block;
  background: var(--sage);
  color: var(--ink);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.done { text-align: center; padding: 56px 32px; }
.done .check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.9rem;
  line-height: 60px;
  margin: 0 auto 22px;
}
.err {
  color: #8C2F1E;
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 1.2em;
}

footer {
  text-align: center;
  color: var(--olive-gray);
  font-size: 0.8rem;
  padding: 0 20px 28px;
}

@media (max-width: 560px) {
  .card { padding: 24px 20px; }
  .qtext { font-size: 1.16rem; }
  main { padding: 20px 14px 44px; }
  button { padding: 13px 22px; }
  .dot { width: 30px; height: 30px; }
}
