/* Plain by intent. A task surface should look like an ordinary form: styling
   that draws attention to itself is a cue a bot could learn, and an unusual
   layout changes how real people interact, biasing the behavioural comparison
   against production sessions. */

:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #1f6fb2;
  --error: #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

#app {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0 0 1.25rem; }

.blurb { color: var(--muted); margin: 0 0 2rem; }
.step-title { color: var(--muted); font-weight: 600; font-size: .9rem;
              text-transform: uppercase; letter-spacing: .04em; }

.panel[hidden] { display: none; }

/* fieldset/legend rather than div/label so each question is a real group for
   screen readers -- an accessible surface is also a more honest test, since a
   broken AX tree would change how assistive-tech users behave. */
.question {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 1.5rem 0 0;
}
.question + .question { margin-top: 1.5rem; }

.label { font-weight: 600; padding: 0; margin-bottom: .75rem; }
.required { color: var(--error); }

input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
textarea { resize: vertical; }

input[type="text"]:focus, textarea:focus,
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.options { display: grid; gap: .5rem; }

.option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .6rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.option:hover { background: #fafafa; border-color: var(--line); }

.scale {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.scale-end { color: var(--muted); font-size: .85rem; }
.scale-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  min-width: 2.75rem;
}
.scale-point:hover { background: #fafafa; }

.error { color: var(--error); font-size: .9rem; margin: 1rem 0 0; }
.error[hidden] { display: none; }

button {
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  padding: .7rem 1.5rem;
}
.primary {
  margin-top: 2rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}
.primary:hover { background: #333; border-color: #333; }
.primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #ececec; --muted: #9a9a9a; --line: #3a3a3a; --error: #ef8b7f; }
  body { background: #131313; }
  input[type="text"], textarea { background: #1c1c1c; }
  .option:hover, .scale-point:hover { background: #1c1c1c; }
  .primary { background: #ececec; color: #131313; border-color: #ececec; }
  .primary:hover { background: #fff; border-color: #fff; }
}
