/* hp-kit/runner.css — survey shell + report.
   Tokens are inspect's "Aurora Enterprise" survey values (tailwind.config.js
   designTokens), so the mixed survey looks like the inspect survey. Dark mode is
   driven by `.dark` on <html>, set pre-paint from prefers-color-scheme.
   No webfonts on purpose (same reasoning as inspect's index.css).
   SOURCE OF TRUTH: react-alternative/shared/hp-kit/ (run `npm run sync`). */

:root {
  --page-mesh: radial-gradient(1200px 760px at 8% -10%, rgba(59, 130, 246, 0.28), transparent 58%),
    radial-gradient(1000px 720px at 108% 4%, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(920px 900px at 46% 118%, rgba(129, 140, 248, 0.26), transparent 60%);
  --bg: #f6f8fc;
  --card: #ffffff;
  --card-2: #f8fafc;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --card-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

.dark {
  --page-mesh: radial-gradient(1200px 760px at 8% -10%, rgba(59, 130, 246, 0.34), transparent 58%),
    radial-gradient(1000px 720px at 108% 4%, rgba(16, 185, 129, 0.28), transparent 55%),
    radial-gradient(920px 900px at 46% 118%, rgba(129, 140, 248, 0.32), transparent 60%);
  --bg: #0b1120;
  --card: #111827;
  --card-2: #1e293b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --card-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: var(--page-mesh);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

.hp-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.hp-shell.hp-shell-report {
  max-width: 980px;
}

.hp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.hp-brand {
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hp-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-step {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.hp-demo-btn {
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--bad);
  background: color-mix(in oklab, var(--bad) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--bad) 40%, transparent);
}

.hp-progress {
  height: 6px;
  background: var(--card-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hp-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

.hp-live {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.hp-live-item b {
  color: var(--text);
}

.hp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--card-shadow);
}
@media (max-width: 560px) {
  .hp-card {
    padding: 20px 16px;
  }
}

.hp-fw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 28px;
}
.hp-fw-badge {
  --fw: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px 5px 9px;
  border-radius: 99px;
  color: var(--text);
  background: color-mix(in oklab, var(--fw) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--fw) 45%, transparent);
  white-space: nowrap;
}
.hp-fw-badge b {
  font-weight: 500;
  color: var(--muted);
}
.hp-fw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fw);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--fw) 25%, transparent);
}
.hp-fw-badge-sm {
  font-size: 12px;
  padding: 3px 9px 3px 7px;
}
.hp-fw-repo {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hp-technique {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  padding: 4px 10px;
  border-radius: 99px;
}
.hp-qid {
  font-size: 11px;
  color: var(--muted);
}

.hp-mount {
  min-height: 120px;
}

/* The runner's universal honeypots (buildHoneypots() in runner.js). They are siblings
   of the framework's mount slot rather than children of .hp-q, because the framework
   owns that subtree and several renderers replace its children on mount.
   These rules live here, not in hp-base.css, because runner.css is the one stylesheet
   present wherever the runner runs — linked by the gateway page and imported by every
   repo's standalone entry. hp-base.css only arrives with a framework bundle. */
.hp-mount > .hp-offscreen {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.hp-mount > .hp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hp-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.hp-next {
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.hp-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hp-next.hp-submit {
  background: linear-gradient(135deg, var(--good), #059669);
}
.hp-next:focus-visible,
.hp-demo-btn:focus-visible,
.hp-skip:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.hp-error {
  color: var(--bad);
  font-size: 14px;
  margin: 12px 0 0;
}
.hp-load-error {
  border: 1px dashed color-mix(in oklab, var(--bad) 55%, transparent);
  background: color-mix(in oklab, var(--bad) 8%, transparent);
  border-radius: 12px;
  padding: 16px;
}
.hp-load-error p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hp-skip {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
}

.hp-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 0;
  color: var(--muted);
}
.hp-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: hp-spin 0.8s linear infinite;
}
@keyframes hp-spin {
  to {
    transform: rotate(360deg);
  }
}

.hp-thankyou {
  text-align: center;
  padding: 20px 0;
}
.hp-thankyou-check {
  font-size: 34px;
  color: var(--good);
}

.hp-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  line-height: 1.5;
}

/* ── Report ───────────────────────────────────────────────────────────────── */
.hp-report h3 {
  margin: 26px 0 12px;
  font-size: 16px;
}
.hp-verdict {
  --v: var(--muted);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  border: 1px solid color-mix(in oklab, var(--v) 40%, transparent);
  background: color-mix(in oklab, var(--v) 10%, transparent);
}
.hp-verdict.is-human {
  --v: var(--good);
}
.hp-verdict.is-suspicious {
  --v: var(--warn);
}
.hp-verdict.is-bot {
  --v: var(--bad);
}
.hp-verdict-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.hp-verdict-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--v);
  margin: 4px 0;
}
.hp-verdict-score {
  font-weight: 600;
}
.hp-verdict-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hp-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-reasons li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.hp-pts {
  min-width: 42px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 7px;
  color: var(--bad);
  background: color-mix(in oklab, var(--bad) 12%, transparent);
}
.hp-reasons li.is-ok .hp-pts {
  color: var(--good);
  background: color-mix(in oklab, var(--good) 14%, transparent);
}
.hp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.hp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.hp-table th,
.hp-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.hp-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: var(--card-2);
}
.hp-table tr:last-child td {
  border-bottom: none;
}
.hp-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hp-table .ok {
  color: var(--good);
}
.hp-table .warn {
  color: var(--warn);
}
.hp-table .bad {
  color: var(--bad);
}
.hp-r-tech,
.hp-r-label {
  font-weight: 600;
}
.hp-r-title,
.hp-r-detail {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.hp-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 99px;
  --c: var(--muted);
  color: var(--c);
  background: color-mix(in oklab, var(--c) 14%, transparent);
}
.hp-chip-pass {
  --c: var(--good);
}
.hp-chip-warn {
  --c: var(--warn);
}
.hp-chip-fail {
  --c: var(--bad);
}
.hp-report-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
