/* Results page (/score/:id) — instrument-style panel. Reuses site.css's
   tokens only (--ink, --bone, --orange, --stone, --line, --serif, --sans);
   Bodoni Moda for numerals, Manrope for text, matching the rest of the
   site. No new colours. */

.score-page { padding: 48px 0 64px; }

.panel-section { margin-top: 40px; }
.panel-section h2 { margin-bottom: 16px; }
.pending-note { color: var(--stone); }

/* ---------- score line ---------- */

.score-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.score-numeral {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--ink);
}
.score-outof {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--stone);
}
.score-foundation {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--stone);
  margin-left: auto;
  align-self: center;
}

/* ---------- "Do these two first" ---------- */

.top-fixes-list { list-style: decimal; padding-left: 22px; }
.top-fixes-list li { margin-bottom: 10px; max-width: 62ch; }

/* ---------- 12D Blueprint checkout ---------- */

.blueprint-desc { color: var(--stone); max-width: 56ch; margin-bottom: 14px; }
#blueprint-checkout-button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.15s;
}
#blueprint-checkout-button:hover { background: var(--orange); border-color: var(--orange); }
#blueprint-checkout-button:disabled { opacity: 0.6; cursor: default; }
.checkout-message { margin-top: 10px; font-size: 0.88rem; color: var(--stone); }

/* ---------- the twelve dimensions ---------- */
/* One vertical sequence, single column at every width — not a grid of
   quadrants. Groups stack top to bottom in rubric order (product,
   organisation, person, symbol); each group is full width. */

.dim-groups { max-width: 720px; }

.dim-group + .dim-group { margin-top: 48px; }

.dim-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.dim-group-header h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.dim-group-subtotal {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--stone);
  white-space: nowrap;
}
.dim-group-desc {
  font-size: 0.9rem;
  color: var(--stone);
  max-width: 62ch;
  margin: 6px 0 16px;
}

.score-dim-list { list-style: none; }
.dim-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.dim-row:first-child { border-top: none; }

.dim-mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--stone);
}
.dim-mark.mark-full { border-color: var(--ink); color: var(--ink); }
.dim-mark.mark-half { border-color: var(--stone); color: var(--stone); }
.dim-mark.mark-none { border-color: var(--orange); color: var(--orange); }
.dim-mark.mark-pending { border-color: var(--line); color: var(--line); }

.dim-body { flex: 1 1 auto; min-width: 0; }
.dim-name { font-size: 0.95rem; font-family: var(--sans); font-weight: 600; margin-bottom: 4px; }
.dim-finding { font-size: 0.92rem; color: var(--stone); max-width: 56ch; }
.dim-fix { font-size: 0.9rem; margin-top: 6px; max-width: 56ch; }
.dim-fix strong { color: var(--ink); }

/* ---------- Foundation ---------- */

.foundation-performance { font-size: 0.95rem; color: var(--stone); margin-bottom: 14px; }

.foundation-list { list-style: none; }
.foundation-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.foundation-row:first-child { border-top: none; }
.foundation-check-name { font-weight: 600; font-size: 0.92rem; flex: 0 0 auto; }
.foundation-check-state { font-size: 0.85rem; font-weight: 600; }
.foundation-row.check-pass .foundation-check-state { color: var(--ink); }
.foundation-row.check-fail .foundation-check-state { color: var(--orange); }
.foundation-row.check-pending .foundation-check-state { color: var(--stone); }
.foundation-check-detail { flex: 1 1 100%; font-size: 0.85rem; color: var(--stone); max-width: 60ch; }

/* ---------- "What AI says about you" ---------- */

.geo-takeaway { font-size: 0.95rem; color: var(--stone); margin-bottom: 20px; }

.geo-engine { max-width: 640px; }
.geo-engine + .geo-engine { margin-top: 32px; }
.geo-engine h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
}
.geo-engine h4 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }

.geo-block { padding: 14px 0; border-top: 1px solid var(--line); }
.geo-block:first-child { border-top: none; padding-top: 0; }
.geo-asked { font-size: 0.85rem; color: var(--stone); margin-bottom: 4px; font-style: italic; }
.geo-answer { font-size: 0.92rem; max-width: 56ch; white-space: pre-line; }
.geo-answer.geo-not-mentioned,
.geo-answer.geo-unavailable { color: var(--stone); }
.geo-sources { font-size: 0.82rem; color: var(--stone); margin-top: 6px; }

mark.ai-mention {
  background: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0;
}

/* ---------- last line ---------- */

.last-line p { color: var(--stone); max-width: 62ch; }
.last-line a { color: var(--ink); text-decoration: underline; }

/* ---------- email capture ---------- */

.email-capture-desc { font-size: 0.92rem; color: var(--stone); margin-bottom: 14px; max-width: 56ch; }

.email-capture form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 420px;
}
.email-capture input {
  flex: 1 1 220px;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.email-capture input:focus { border-bottom-color: var(--ink); }
.email-capture button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.15s;
}
.email-capture button:hover { background: var(--orange); border-color: var(--orange); }
.email-capture button:disabled { opacity: 0.6; cursor: default; }
.email-message { margin-top: 10px; font-size: 0.88rem; color: var(--stone); }
