/* BuiltUp listing grader — mobile-first, no cookies, no network from this file. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.logo-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-name:hover { color: var(--accent); }

main { flex: 1; padding: 24px 0 48px; }

h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 1rem;
}

.note {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 0.92rem;
}

.q-list { display: flex; flex-direction: column; gap: 12px; }

.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.q-text {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.yesno button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  min-height: 48px;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 12px;
}

.yesno button:hover { border-color: #94a3b8; }

.yesno button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.yesno button[aria-pressed="true"][data-val="yes"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.yesno button[aria-pressed="true"][data-val="no"] {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not([disabled]) { background: var(--accent-hover); }

.btn-site {
  background: var(--ink);
  color: #fff;
}

.btn-site:hover { background: #1e293b; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-ghost:hover { color: var(--ink); }

#result[hidden], #quiz[hidden] { display: none; }

.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 16px;
}

.score-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.score-num {
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 4px 0 0;
}

.score-num span { color: var(--muted); font-weight: 650; font-size: 0.5em; }

.fixes { margin: 0 0 16px; padding: 0; list-style: none; }

.fix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 10px;
}

.fix-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.fix p { margin: 0; font-size: 1.02rem; }

.kit-note {
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 16px;
  color: #14532d;
  font-size: 0.98rem;
}

.all-yes {
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 16px;
  color: #14532d;
}

footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p { margin: 0; }
