/* Page-specific layout for /ai-coding-survey/. Shared tokens and site chrome
   live in /assets/site.css; this file only adds the survey app itself. */

.survey-noscript {
  max-width: 60ch;
  margin: 72px auto;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

#survey-app {
  padding: 56px 0 0;
  min-height: 60vh;
}

.survey-shell {
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- intro ---------- */
.survey-intro { max-width: 720px; margin: 0 auto; text-align: center; }
.survey-intro h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
}
.survey-intro h1 span { color: var(--accent); }
.survey-intro .lede {
  max-width: 56ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16.5px;
}
.survey-intro .meta {
  margin: 22px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.survey-start-btn {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--ground);
  border: 0;
  border-radius: 8px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}
.survey-start-btn:hover { background: #33DDA0; }

/* ---------- progress ---------- */
.survey-progress {
  margin: 0 0 30px;
}
.survey-progress-track {
  height: 5px;
  background: var(--panel-2);
  border-radius: 3px;
  overflow: hidden;
}
.survey-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 220ms ease;
}
.survey-progress-label {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ---------- question card ---------- */
.survey-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 30px 30px 26px;
}
@media (max-width: 560px) {
  .survey-card { padding: 22px 18px 20px; }
}
.survey-q-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.survey-q-text {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 800;
  line-height: 1.3;
}
.survey-q-hint {
  margin: -14px 0 18px;
  color: var(--faint);
  font-size: 13px;
}

.survey-options { display: flex; flex-direction: column; gap: 10px; }
.survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.survey-option:hover { border-color: rgba(0, 200, 140, 0.4); }
.survey-option input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.survey-option span { font-size: 15px; line-height: 1.4; }
.survey-option.is-checked { border-color: var(--accent); background: rgba(0, 200, 140, 0.07); }
.survey-option.is-disabled { opacity: 0.4; cursor: not-allowed; }

.survey-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.survey-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ground);
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, opacity 120ms ease;
}
.survey-btn:hover { background: #33DDA0; }
.survey-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.survey-btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--hairline);
}
.survey-btn-secondary:hover { background: var(--panel-2); color: var(--ink); }
.survey-skip {
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.survey-skip:hover { color: var(--muted); }

/* ---------- comparison bars ---------- */
.survey-compare {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.survey-compare-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.survey-compare-persona-note {
  margin: 0 0 16px;
  padding: 8px 12px;
  background: rgba(0, 200, 140, 0.07);
  border: 1px solid rgba(0, 200, 140, 0.2);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.survey-compare-persona-note strong { color: var(--accent); font-weight: 600; }
.survey-bar-row { margin-bottom: 12px; }
.survey-bar-row:last-child { margin-bottom: 0; }
.survey-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 13.5px;
  line-height: 1.35;
}
.survey-bar-head .opt-label { color: var(--ink); }
.survey-bar-row.is-you .opt-label { color: var(--accent); font-weight: 600; }
.survey-bar-row.is-you .opt-label::before { content: "\2713 "; }
.survey-bar-head .opt-pct { color: var(--faint); font-family: var(--mono); flex: none; }
.survey-bar-track {
  height: 8px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  overflow: hidden;
}
.survey-bar-fill {
  height: 100%;
  background: var(--blue-bar);
  border-radius: 5px;
  transition: width 420ms ease;
}
.survey-bar-row.is-you .survey-bar-fill { background: var(--accent); }
.survey-compare-n {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12px;
}

/* ---------- email gate ---------- */
.survey-gate .survey-q-eyebrow { color: var(--lime); }
.survey-gate-fields { display: flex; flex-direction: column; gap: 12px; }
.survey-gate-field { display: grid; gap: 7px; }
.survey-gate-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.survey-gate-input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.survey-gate-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.survey-gate-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}
.survey-error {
  margin: 10px 0 0;
  color: #FF8080;
  font-size: 13px;
}
/* Honeypot field: present in the DOM for bots to fill in, invisible and
   unreachable for real visitors (not display:none, which some bots skip). */
.survey-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- results / download ---------- */
.survey-results { text-align: center; }
.survey-results h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
}
.survey-results .lede { color: var(--muted); max-width: 50ch; margin: 12px auto 0; }
.survey-results .survey-btn { margin-top: 28px; }
.survey-results-note { margin-top: 16px; color: var(--faint); font-size: 13px; }
.survey-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: survey-spin 700ms linear infinite;
  margin-right: 4px;
  vertical-align: -3px;
}
@keyframes survey-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .survey-spinner { animation: none; }
  .survey-progress-fill, .survey-bar-fill { transition: none; }
}
