/* Placeholder rules only. Real visual design deferred to the
   ncs-visual-design-ci2026 skill in a dedicated styling pass — this
   file exists purely so the quiz is readable/usable while functionality
   is verified. Do not treat any of this as final. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.5;
}

.quiz-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.loading {
  color: #777;
}

.progress {
  height: 6px;
  background: #e3e3e3;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: #333;
  transition: width 0.2s ease;
}

.question-text {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-button {
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

/* Guarded to real hover-capable pointers only (mouse/trackpad).
   Without this, iOS Safari fakes a persistent :hover state on
   whatever button lands under your finger after a tap, making the
   next screen's option look like it's already selected. */
@media (hover: hover) and (pointer: fine) {
  .option-button:hover {
    border-color: #333;
  }
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.bar-row .bar-label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.bar-track {
  height: 10px;
  background: #e3e3e3;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #333;
}

.free-copy,
.gated-copy {
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.gate-form input[type="email"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.gate-form button,
.back-button {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  cursor: pointer;
}

.error-text {
  color: #b3261e;
  font-size: 0.9rem;
}

.back-button {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Fallback focus indicator for programmatically-focused headings
   (tabindex="-1" elements have inconsistent default outline behavior
   across browsers, notably Safari). Placeholder gray, not a design
   decision — real focus color comes from the visual design pass. */
[tabindex="-1"]:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}
