/* Sourcive. Follows the Courage Horizon "engineered light" design language:
   near-white ground, deep navy, one amber signal, Geist everywhere. */

@font-face {
  font-family: 'Geist Variable';
  src: url('/static/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono Variable';
  src: url('/static/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --ink: #0f1e33;
  --muted: #57616f;
  --line: #e2e4e6;

  --navy: #0a1728;
  --navy-ink: #f4f6f8;
  --navy-muted: rgba(244, 246, 248, 0.66);
  --navy-line: rgba(244, 246, 248, 0.16);

  --accent: #a55e12;
  --accent-bright: #e0a04b;

  --font-sans: 'Geist Variable', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'Cascadia Mono', monospace;

  --measure: 44rem;
  --container: 72rem;
  --radius: 8px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.05em;
}

a {
  color: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent-bright) 35%, transparent);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.label::before {
  content: '';
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.7rem;
}

.horizon {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.72rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 140ms ease;
}

.button:hover {
  background: #1d3050;
}

.button.on-dark {
  background: var(--navy-ink);
  color: var(--navy);
}

.button.on-dark:hover {
  background: #ffffff;
}

.text-link {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15em;
  transition: border-color 140ms ease;
}

.text-link:hover {
  border-color: var(--accent);
}

.text-link.on-dark {
  color: var(--navy-ink);
  border-color: var(--navy-line);
}

.text-link.on-dark:hover {
  border-color: var(--accent-bright);
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
}

.dark {
  background: var(--navy);
  color: var(--navy-ink);
}

.dark .label {
  color: var(--navy-muted);
}

.dark .label::before {
  background: var(--accent-bright);
}

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

.dark :focus-visible {
  outline-color: var(--accent-bright);
}

/* Site chrome */

header.site {
  padding: 1.4rem 0;
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site .wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  text-decoration: none;
}

footer.site {
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--navy-muted);
}

footer.site a {
  text-decoration: none;
  border-bottom: 1px solid var(--navy-line);
}

/* Directory badges, landing page only. The badge is a fixed 182x43 SVG served
   by the directory, scaled down and dimmed until hover so it reads as a
   footnote rather than an advert. The underline rule above would draw a line
   under the image, so it is cleared here. */
.directory-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  line-height: 0;
}

.directory-badges a {
  display: inline-block;
  border-bottom: none;
  opacity: 0.7;
  transition: opacity 120ms ease;
}

.directory-badges a:hover {
  opacity: 1;
}

.directory-badges img {
  display: block;
  width: 140px;
  height: auto;
}

/* Hero */

.hero {
  padding: 4.5rem 0 5rem;
}

.hero .lede {
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--navy-muted);
}

/* Audit form */

.audit-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  max-width: 30rem;
  margin-top: 2rem;
}

/* The landing form is one short URL field, so 30rem is right there. The
   profile correction is six fields of real prose, and at 30rem a description
   wraps every four or five words. */
.audit-form.wide {
  max-width: 44rem;
}

.audit-form .field {
  margin-bottom: 1rem;
}

.audit-form label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.audit-form input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}

.audit-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.audit-form .button {
  width: 100%;
  text-align: center;
}

.audit-form .price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* Sits outside .audit-form, directly below it: the one checkable claim on
   the page a reader can verify before the paid pitch. */
.proof-point {
  max-width: 30rem;
  margin: 1.2rem 0 0;
}

/* The landing form's bot check, and any refusal it produces. The button is
   always live now; a click made before the check has finished arms the
   submission and spins here until the token arrives, usually about a second.
   Reuses the existing spin keyframes rather than declaring a second one. */
.audit-form .button.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-right: 0.5em;
  vertical-align: -0.08em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .audit-form .button.is-busy::before {
    animation: none;
  }
}

/* Amber as a signal, not a box: these carry a refusal the visitor has to read,
   and both stay legible with no styling at all, which matters because a CSS
   change takes up to four hours to clear the edge cache (see PLAN.md). */
.audit-form .form-error,
.audit-form .check-note {
  font-size: 0.85rem;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 0.7rem;
}

.audit-form .form-error {
  margin: 0 0 1rem;
}

.audit-form .check-note {
  margin: 0.7rem 0 0;
}

.link-button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0;
  cursor: pointer;
}

/* Feature grid */

.features {
  padding: 4rem 0;
}

.section-lede {
  max-width: var(--measure);
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-grid .card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* About and FAQ: explanatory copy below the form and the pricing on the
   landing page. Measure-limited like .prose-page so paragraphs stay readable. */

.about,
.faq {
  padding: 3.5rem 0;
}

.faq {
  border-top: 1px solid var(--line);
}

/* Constrain the text, not the container: narrowing .container would centre
   these sections and break the left edge shared with the feature grid. */
.about p,
.faq dt,
.faq dd {
  max-width: var(--measure);
}

.about h3 {
  margin-top: 2rem;
}

.faq dt {
  font-weight: 600;
  margin-top: 1.6rem;
}

.faq dd {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Status / progress page */

.status-page {
  padding: 5rem 0;
  min-height: 60vh;
}

.status-page .card {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.muted {
  color: var(--muted);
}

.muted-on-dark {
  color: var(--navy-muted);
}

.small {
  font-size: 0.85rem;
}

.mock-banner {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.45rem 1rem;
}

header.site nav a {
  margin-left: 1.2rem;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stage-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.stage-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.stage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.stage-list li.active {
  color: var(--ink);
  font-weight: 500;
}

.stage-list li.active::before {
  background: var(--accent);
}

.stage-list li.complete {
  color: var(--ink);
}

.stage-list li.complete::before {
  background: var(--ink);
}

/* The profile correction form. Textareas inherit the input styling rather than
   redefining it, so the two never drift apart visually. */
.audit-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  resize: vertical;
}

.audit-form .field-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

.audit-form .choice {
  margin-bottom: 0.9rem;
}

/* Flex, so the control sits beside its text. The generic .audit-form input
   rule above gives every input full width, padding and a border, which on a
   radio renders it as a lone box on its own line above the label it belongs
   to; the resets here are what undo that. */
.audit-form .choice label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: inherit;
  line-height: 1.5;
}

.audit-form .choice input[type="radio"] {
  width: auto;
  flex: none;
  margin: 0.3rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  accent-color: var(--navy, #16213a);
}

.error-card {
  border-color: var(--accent);
}

/* Sits under the stage list, separated by a rule, because it is guidance about
   the wait rather than another step in it. */
.wait-note {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  max-width: 34rem;
}

.provider-cycle {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 0.2rem;
}

.provider-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.45;
  transition: opacity 200ms ease, color 200ms ease;
}

.provider-name.lit {
  opacity: 1;
  color: var(--accent);
  font-weight: 600;
}

.inline-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.inline-form input {
  flex: 1 1 14rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}

.inline-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Report */

.report-hero {
  padding: 3.5rem 0 3.5rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.score-dial {
  flex: 0 0 auto;
  width: 9.5rem;
  height: 9.5rem;
  border: 3px solid var(--accent-bright);
  border-radius: 50%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 2.9rem;
}

.score-number {
  font-size: 3.2rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-max {
  color: var(--navy-muted);
  font-size: 1rem;
  margin-left: 0.2rem;
}

.score-summary {
  flex: 1 1 24rem;
}

.score-summary h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.report-body {
  padding: 3rem 0 4rem;
}

.report-section {
  margin: 3rem 0;
}

.cycle-history-card {
  margin-bottom: 2rem;
}

.cycle-history-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.cycle-history-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) repeat(2, minmax(12rem, 1fr));
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.cycle-history-row:last-child {
  border-bottom: 1px solid var(--line);
}

.cycle-history-label,
.cycle-history-value {
  margin: 0 0 0.2rem;
  font-weight: 650;
}

.cycle-history-value {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* No width cap on .quote-card: it is full width like every other card on the
   report. It was capped at the reading measure, which is better typography in
   isolation and looked like a rendering fault sitting between two full-width
   cards. The quote is short enough that the longer line costs little. */
.quote-card blockquote {
  margin: 0.6rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.02rem;
}

.quote-question {
  font-weight: 550;
  margin-bottom: 0.2rem;
}

.sov-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 38rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sov-table th,
.sov-table td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.sov-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sov-table tr.is-company td {
  font-weight: 600;
}

.sov-table .bar {
  display: inline-block;
  height: 0.7rem;
  background: var(--accent-bright);
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.sov-table tr.is-company .bar {
  background: var(--navy);
}

.you-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--navy);
  color: var(--navy-ink);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
}

.locked {
  position: relative;
  max-width: 44rem;
}

.blurred {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.lock-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lock-note span {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 1.1rem;
  max-width: 26rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.45;
}

.question-card {
  margin-bottom: 1.2rem;
}

.question-text {
  font-weight: 550;
  margin-bottom: 1rem;
}

.qtype {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  margin-right: 0.5rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.answer-provider {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.answer-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* The answer is markdown rendered to real elements, so these are the model's
   own headings, lists and emphasis, kept quieter than the report's own
   headings: this is quoted material, not our voice. */
.answer-text > :first-child {
  margin-top: 0;
}

.answer-text > :last-child {
  margin-bottom: 0;
}

.answer-text p {
  margin: 0 0 0.7rem;
}

.answer-text h4 {
  margin: 1rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.answer-text ul,
.answer-text ol {
  margin: 0 0 0.7rem;
  padding-left: 1.2rem;
}

.answer-text li {
  margin-bottom: 0.3rem;
}

.answer-text strong {
  color: var(--ink);
  font-weight: 600;
}

.answer-text code {
  font-family: var(--font-mono);
  font-size: 0.82em;
}

/* Applied by script, never in the markup: without JavaScript there is no
   button to undo it, and a permanently clipped answer would be worse than a
   long one. A height cap rather than line-clamp, which only works on a box of
   inline content and does nothing to a stack of paragraphs and lists. */
.answer-text.is-clamped {
  position: relative;
  max-height: 11rem;
  overflow: hidden;
}

.answer-text.is-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.6rem;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

.answer-more {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.answer-more:hover {
  color: var(--accent);
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  padding: 0.12rem 0.4rem;
  margin-left: 0.45rem;
  vertical-align: middle;
}

.chip-good { background: #e5efe4; color: #1e5e2e; }
.chip-bad { background: #f4e4e4; color: #8a2a2a; }
.chip-warn { background: #f2ecdc; color: #7a5b16; }

.check-list {
  list-style: none;
  padding: 0;
  max-width: 38rem;
}

.check-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 1rem 0.6rem 2.3rem;
  margin-bottom: 0.5rem;
  position: relative;
  font-size: 0.95rem;
}

.check-list li::before {
  position: absolute;
  left: 0.9rem;
  font-weight: 700;
}

.check-list li.ok::before { content: '✓'; color: #1e5e2e; }
.check-list li.bad::before { content: '✕'; color: #8a2a2a; }

/* Ranked-by-impact checklist: no pass/fail state, so the number replaces
   the tick/cross rather than reusing .check-list's ok/bad markers. */
.check-list.numbered {
  counter-reset: checklist;
  /* Unlike .check-list's other uses (short ok/bad lines in a narrow card),
     this is the fix pack's headline list inside a full-width step card, so
     it should fill it rather than inherit the 38rem cap. */
  max-width: none;
}

.check-list.numbered li {
  padding-left: 2.6rem;
}

.check-list.numbered li::before {
  counter-increment: checklist;
  content: counter(checklist);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* A short, collapsed explanation above a downloadable fix pack file. */
.file-note {
  margin-bottom: 0.6rem;
}

.file-note > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.file-note > summary::-webkit-details-marker { display: none; }

.file-note > summary::before {
  content: '+ ';
}

.file-note[open] > summary::before {
  content: '- ';
}

.file-note p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Question-by-question, grouped by type */

.qgroup {
  margin: 0 0 2.6rem;
}

.qgroup-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.qgroup-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.qgroup-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.q-drawer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.q-drawer > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.q-drawer > summary::-webkit-details-marker { display: none; }

.q-drawer > summary::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 0.2rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.q-drawer[open] > summary::before {
  transform: rotate(45deg);
}

.q-summary-text {
  font-weight: 550;
  font-size: 0.98rem;
  flex: 1 1 20rem;
  min-width: 0;
}

.q-status-row {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

/* Full provider names, not initials - matches the labels used in the
   expanded answer grid directly below, and needs no separate legend. */
.p-dot {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 3px;
  padding: 0.18rem 0.4rem;
  line-height: 1;
  white-space: nowrap;
}

.p-dot.good { background: #e5efe4; color: #1e5e2e; }
.p-dot.bad { background: #f4e4e4; color: #8a2a2a; }
.p-dot.warn { background: #f2ecdc; color: #7a5b16; }

.q-drawer-body {
  padding: 0 1.2rem 1.3rem;
  border-top: 1px solid var(--line);
}

.q-drawer-body .answer-grid {
  margin-top: 1.2rem;
}

.qgroup-takeaway {
  margin: 1rem 0 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent-bright) 8%, var(--surface));
  font-size: 0.92rem;
  max-width: 44rem;
}

.qgroup-takeaway .label-inline {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

.unlock-card {
  border: 2px solid var(--accent);
  max-width: 44rem;
  margin: 3rem 0;
}

.unlock-card h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.unlock-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.unlock-card form {
  margin: 1.2rem 0 0.5rem;
}

/* Homepage copy: current, as read, against the suggested rewrite */

.copy-diff {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}

.copy-diff-section {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.copy-diff-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.2rem;
}

.copy-diff-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a2a2a;
  margin: 0 0 0.3rem;
}

.copy-diff-label.suggested {
  color: #1e5e2e;
}

.copy-diff-text {
  font-size: 0.92rem;
  margin: 0;
}

pre.doc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

.report-foot {
  margin-top: 3rem;
  font-size: 0.88rem;
  max-width: 44rem;
}

/* Prose pages (methodology, privacy) */

.prose-page {
  padding: 4rem 0 5rem;
}

.prose-page .container {
  max-width: 46rem;
}

.prose-page h2 {
  margin-top: 2.2rem;
  font-size: 1.3rem;
}

.prose-page ul {
  padding-left: 1.2rem;
}

/* ------------------------------------------------------------------
   Small-business free report, added 2026-09-24.
   ------------------------------------------------------------------ */

/* The landing hero names every section of the report before the form. */
.report-contents {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 44rem;
  display: grid;
  gap: 0.9rem;
}

.report-contents li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  color: var(--navy-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.report-contents strong {
  color: var(--navy-ink);
  font-weight: 600;
}

.rc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  padding-top: 0.2rem;
}

/* The landing form grows from one field to five, so it widens to match. */
.audit-form:has(.intake-grid) {
  max-width: 40rem;
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

@media (max-width: 36rem) {
  .intake-grid {
    grid-template-columns: 1fr;
  }
}

.audit-form select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}

.audit-form select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Back-office jobs on the report. */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.job-card h3 {
  margin: 0.2rem 0 0.5rem;
}

.job-card .label-inline,
.unlock-card .label-inline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.job-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0;
}

.job-hours {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.8rem 0 0.4rem;
}

.job-total {
  margin-top: 1.2rem;
  font-weight: 500;
}

/* An illustration of the dashboard under the business's own name. Styled as
   a product surface on navy, so it reads as software rather than a card. */
.hub-mock {
  margin-top: 1.2rem;
  background: var(--navy);
  color: var(--navy-ink);
  border-radius: 12px;
  border: 1px solid var(--navy-line);
  overflow: hidden;
  max-width: 44rem;
  box-shadow: 0 18px 40px -24px rgba(10, 23, 40, 0.55);
}

.hub-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--navy-line);
}

.hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hub-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hub-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-muted);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.hub-rows {
  padding: 0.4rem 0;
}

.hub-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
}

.hub-row + .hub-row {
  border-top: 1px solid var(--navy-line);
}

.hub-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fb58a;
}

.hub-status.is-waiting {
  background: var(--accent-bright);
  animation: hub-pulse 2s ease-in-out infinite;
}

.hub-state {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--navy-muted);
}

.hub-foot {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.82rem;
  color: var(--navy-muted);
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-status.is-waiting {
    animation: none;
  }
}

/* ==================================================================
   Homepage language, added 2026-09-24.
   The free report is the next click after couragehorizon.com, so these
   pages carry the homepage's look: huge tight left-aligned type, a navy
   hero with the engineering grid, mono labels, amber as the one signal,
   and panels drawn like real software. The site repo is a separate
   codebase, so this is a reimplementation of its homepage styles, not
   an import. Keep the two in step by eye when either changes.
   ================================================================== */

/* ---------- Chrome ---------- */
header.site {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--navy-line);
}

header.site .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

header.site nav {
  display: flex;
  gap: 1.7rem;
}

header.site nav a {
  margin-left: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--navy-ink);
}

header.site nav a[aria-current="page"] {
  border-bottom: 1px solid var(--accent-bright);
  padding-bottom: 0.2em;
}

@media (max-width: 40rem) {
  header.site nav {
    gap: 1.1rem;
  }

  header.site nav .nav-wide {
    display: none;
  }
}

footer.site {
  padding: 3rem 0;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.foot-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--navy-ink);
  margin: 0;
}

.foot-nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

footer.site .foot-nav a {
  border-bottom: none;
  color: var(--navy-muted);
}

footer.site .foot-nav a:hover {
  color: var(--navy-ink);
}

/* ---------- Shared type and bands ---------- */
.hero.dark,
.report-hero.dark,
.status-hero.dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(224, 160, 75, 0.08), transparent 60%),
    var(--navy);
}

.hero.dark::before,
.report-hero.dark::before,
.status-hero.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 246, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 248, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
}

.hero.dark > .container,
.report-hero.dark > .container,
.status-hero.dark > .container {
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 1.2rem;
}

.rp-h1,
.status-h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0;
  max-width: 22ch;
}

.rp-h1 span,
.status-h1 span {
  color: var(--navy-muted);
}

.muted-on-dark {
  font-weight: 400;
}

.panel-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.6rem;
}

.button.big {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.button.full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Landing ---------- */
.rp-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.rp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "copy form";
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}

.rp-copy {
  grid-area: copy;
}

.rp-form {
  grid-area: form;
}

.rp-hero .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: rgba(244, 246, 248, 0.82);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}

.preview {
  background: #0f1f36;
  border: 1px solid rgba(244, 246, 248, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(244, 246, 248, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fb58a;
  box-shadow: 0 0 0 3px rgba(79, 181, 138, 0.18);
}

.preview-path {
  color: var(--navy-muted);
}

.preview-tag,
.hubx-tag {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  color: var(--navy-muted);
  border: 1px solid rgba(244, 246, 248, 0.18);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.preview-sec {
  padding: 0.95rem 1rem;
}

.preview-sec + .preview-sec {
  border-top: 1px solid rgba(244, 246, 248, 0.1);
}

.preview-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.6rem;
}

.preview-q {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.preview-row,
.preview-job {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(244, 246, 248, 0.08);
  font-size: 0.88rem;
}

.preview-row span:first-child,
.preview-job span:last-child {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--navy-muted);
}

.preview-row .bad {
  color: #f08f7c;
}

.preview-row .good {
  color: #6fd1a4;
}

.preview-job span:first-child {
  font-weight: 500;
}

.preview-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--navy-muted);
}

.preview-note.flush {
  margin: 0;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}

.rp-form .audit-form,
.rp-form .audit-form:has(.intake-grid) {
  max-width: none;
  margin-top: 0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75);
}

.rp-form .button {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.rp-form .proof-point {
  max-width: none;
  margin-top: 1rem;
  color: var(--navy-muted);
}

@media (max-width: 60rem) {
  .rp-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "form" "copy";
  }
}

/* How it starts, and the price card. The same shapes as the homepage. */
.start {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.start h2,
.next-step h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.timeline strong {
  color: var(--ink);
  font-weight: 600;
}

.when {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.2rem;
}

.price-card {
  background: var(--navy);
  color: var(--navy-ink);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 30px 60px -35px rgba(10, 23, 40, 0.6);
}

.price-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0;
}

.price-num {
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0.6rem 0 0.4rem;
}

.price-clause {
  text-wrap: balance;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.price-small {
  color: var(--navy-muted);
  font-size: 0.92rem;
}

.price-rows {
  margin: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--navy-line);
}

.price-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.92rem;
}

.price-rows dt {
  color: var(--navy-muted);
}

.price-rows dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.faq {
  border-top: none;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.faq-grid h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.faq-grid dl {
  margin: 0;
}

.faq-grid dt {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  margin-top: 1.2rem;
  font-size: 1.08rem;
}

.faq-grid dt:first-child {
  margin-top: 0;
}

/* ---------- Waiting page ---------- */
.status-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: 70vh;
}

.status-h1 {
  margin-bottom: 1.2rem;
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 2rem;
}

.status-panel {
  background: #0f1f36;
  border: 1px solid rgba(244, 246, 248, 0.14);
  border-radius: 14px;
  padding: 1.4rem;
  max-width: 44rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.status-panel.run {
  padding: 0;
  overflow: hidden;
}

.status-panel .inline-form input {
  background: rgba(244, 246, 248, 0.06);
  border-color: rgba(244, 246, 248, 0.18);
  color: var(--navy-ink);
}

.run-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(244, 246, 248, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.run-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: run-pulse 1.6s ease-in-out infinite;
}

.run-path {
  color: var(--navy-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-state {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.run-steps {
  list-style: none;
  margin: 0;
  padding: 0.4rem 1rem;
}

.run-steps li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(244, 246, 248, 0.08);
  color: var(--navy-muted);
  transition: color 300ms ease;
}

.run-steps li:last-child {
  border-bottom: none;
}

.run-steps strong {
  display: block;
  font-weight: 600;
  color: inherit;
}

.run-detail {
  display: block;
  font-size: 0.86rem;
  color: var(--navy-muted);
  margin-top: 0.15rem;
}

.run-mark {
  width: 14px;
  height: 14px;
  margin-top: 0.3rem;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 246, 248, 0.25);
  position: relative;
}

.run-steps li.active {
  color: var(--navy-ink);
}

.run-steps li.active .run-mark {
  border-color: var(--accent-bright);
  border-top-color: transparent;
  animation: run-spin 900ms linear infinite;
}

.run-steps li.complete {
  color: var(--navy-ink);
}

.run-steps li.complete .run-mark {
  border-color: #4fb58a;
  background: #4fb58a;
}

.run-steps li.complete .run-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #0f1f36;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.run-steps .provider-name {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  color: inherit;
  opacity: 1;
  font-weight: inherit;
  transition: color 200ms ease;
}

.run-steps .provider-name.lit {
  color: var(--accent-bright);
  font-weight: 600;
}

.run-foot {
  margin: 0;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(244, 246, 248, 0.1);
  font-size: 0.84rem;
  color: var(--navy-muted);
}

@keyframes run-spin {
  to { transform: rotate(360deg); }
}

@keyframes run-pulse {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .run-dot,
  .run-steps li.active .run-mark {
    animation: none;
  }
}

@media (max-width: 52rem) {
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Report ---------- */
.report-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.report-hero .score-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.report-hero .score-summary h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  margin-bottom: 1rem;
}

.report-hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(244, 246, 248, 0.86);
  max-width: 36rem;
}

.score-panel {
  background: #0f1f36;
  border: 1px solid rgba(244, 246, 248, 0.14);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.score-panel .score-dial {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  padding: 0;
  justify-content: flex-start;
}

.score-panel .score-number {
  font-size: clamp(4rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.score-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 246, 248, 0.1);
  overflow: hidden;
  margin: 0.9rem 0 0.8rem;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--accent-bright);
  border-radius: 999px;
}

.score-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--navy-muted);
}

@media (max-width: 52rem) {
  .report-hero .score-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.report-section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Back-office jobs as strong cards: navy top edge, big hours figure. */
.job-grid {
  gap: 1.1rem;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 24px 50px -36px rgba(10, 23, 40, 0.4);
}

.job-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.job-num {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.job-hours {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.job-total {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The dashboard illustration, drawn like the homepage's. */
.hubx {
  margin: 1.4rem 0 0;
  background: var(--navy);
  color: var(--navy-ink);
  border: 1px solid rgba(244, 246, 248, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(10, 23, 40, 0.6);
}

.hubx-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.hubx-path {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubx-mark {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hubx-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-muted);
}

.hubx-live + .hubx-tag {
  margin-left: 0;
}

.hubx-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fb58a;
  animation: run-pulse 2s ease-in-out infinite;
}

.hubx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.3rem 1.2rem;
  border-bottom: 1px solid var(--navy-line);
}

.hubx-kicker,
.hubx-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-muted);
  margin: 0 0 0.35rem;
}

.hubx-firm {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.hubx-stats {
  display: flex;
  margin: 0;
}

.hubx-stats div {
  padding: 0 1.2rem;
  border-left: 1px solid var(--navy-line);
}

.hubx-stats dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-muted);
}

.hubx-stats dd {
  margin: 0.3rem 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hubx-stats .wait dd {
  color: var(--accent-bright);
}

.hubx-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.hubx-col {
  padding: 1.1rem 1.2rem;
}

.hubx-feed {
  border-left: 1px solid var(--navy-line);
  background: rgba(244, 246, 248, 0.02);
}

.hubx-agents {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hubx-agents li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--navy-line);
}

.hubx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fb58a;
}

.hubx-agents li.is-wait .hubx-dot {
  background: var(--accent-bright);
  animation: run-pulse 2s ease-in-out infinite;
}

.hubx-name {
  display: block;
  font-weight: 600;
}

.hubx-job {
  display: block;
  font-size: 0.84rem;
  color: var(--navy-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubx-state {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-muted);
}

.hubx-agents li.is-wait .hubx-state {
  color: var(--accent-bright);
}

.hubx-approval {
  border: 1px solid rgba(224, 160, 75, 0.35);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: rgba(224, 160, 75, 0.06);
  font-size: 0.9rem;
}

.hubx-who {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.4rem;
}

.hubx-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.hubx-actions span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--navy-line);
  color: var(--navy-muted);
}

.hubx-actions .approve {
  background: var(--navy-ink);
  color: var(--navy);
  border-color: var(--navy-ink);
  font-weight: 600;
}

.hubx figcaption {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.82rem;
  color: var(--navy-muted);
}

@media (max-width: 46rem) {
  .hubx-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hubx-feed {
    border-left: none;
    border-top: 1px solid var(--navy-line);
  }

  .hubx-stats div:first-child {
    border-left: none;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hubx-pulse,
  .hubx-agents li.is-wait .hubx-dot {
    animation: none;
  }
}

/* The call to action: copy beside the navy price card. */
.next-step {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: 3.5rem 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.next-copy p {
  color: var(--muted);
  max-width: 36rem;
}

@media (max-width: 52rem) {
  .next-step,
  .start-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
}

/* The lost-link form in the footer, on navy like the rest of the footer. */
footer.site .reclaim-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

footer.site .reclaim-form input {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(244, 246, 248, 0.18);
  background: rgba(244, 246, 248, 0.06);
  color: var(--navy-ink);
}

/* The share-of-voice table has been shown to everyone since 2026-09-24, and its bars are
   sized in pixels per mention, so a well-cited competitor pushed it wider than a phone.
   A fixed layout gives the bar column a real width to cap against. */
.sov-table {
  table-layout: fixed;
}

.sov-table th:first-child {
  width: 55%;
}

.sov-table td {
  overflow-wrap: anywhere;
}

.sov-table .bar {
  max-width: calc(100% - 2.6rem);
}

/* The wordmark stays on one line on a phone; the nav wraps below it when there is no
   room, as the site's own header does. */
header.site .wordmark {
  white-space: nowrap;
}

header.site .container {
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

@media (max-width: 26rem) {
  header.site nav {
    gap: 0.8rem;
  }

  header.site nav a {
    font-size: 0.84rem;
  }
}

/* The free report form as a four-step questionnaire, 2026-09-29. Without
   JavaScript every step shows, one under another, and each legend heads its
   own group. */
.audit-form .step {
  border: none;
  margin: 0 0 0.4rem;
  padding: 0;
  min-width: 0;
}

.audit-form .step[hidden] {
  display: none;
}

.audit-form .step legend {
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.9rem;
  padding: 0;
}

.audit-form:not(.is-stepped) .step + .step {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.audit-form .step-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.audit-form .step-intro {
  margin: -0.4rem 0 1rem;
}

.audit-form .optional {
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.8;
  margin-left: 0.3rem;
}

.audit-form .q-label {
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Undoes the generic .audit-form input rule, which would draw each radio as a
   full-width text box; the same resets as .choice above. */
.audit-form .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.88rem;
  cursor: pointer;
}

.audit-form .pill:has(input:checked) {
  border-color: var(--accent);
  background: #fbf3e8;
}

.audit-form .pill input,
.audit-form .tick input {
  width: auto;
  flex: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  accent-color: var(--accent);
}

.audit-form .tick {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.2rem 0 1rem;
  line-height: 1.45;
}

.audit-form .tick input {
  margin-top: 0.2rem;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
}

.step-nav[hidden] {
  display: none;
}

.audit-form .step-nav .button {
  width: auto;
  margin-left: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.audit-form .step-nav .link-button[hidden],
.audit-form .step-nav .button[hidden],
.audit-form .button[hidden] {
  display: none;
}

.audit-form .cf-turnstile {
  margin: 0.4rem 0 0.8rem;
}

/* Free report, 2026-09-29. */
.panel-big {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.6rem 0 0.6rem;
}

.worth {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 1.4rem;
  align-items: baseline;
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.worth p {
  margin: 0;
}

.worth-num {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 40rem) {
  .worth {
    grid-template-columns: 1fr;
  }
}

.fd-panel {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fd-num {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 0.3rem;
}

.fd-num small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.fd-copy p {
  margin: 0 0 0.6rem;
}

@media (max-width: 40rem) {
  .fd-panel {
    grid-template-columns: 1fr;
  }
}

.fd-detail {
  margin: 0.9rem 0;
}

.fd-detail summary {
  cursor: pointer;
  font-size: 0.9rem;
}

.fd-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.fd-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.worries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}

.worries dt {
  font-weight: 600;
  margin: 0;
}

.worries dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

/* dl as three cards: each dt/dd pair sits in its own column. */
@supports (grid-template-rows: subgrid) {
  .worries {
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
  }
  @media (max-width: 48rem) {
    .worries {
      grid-auto-flow: row;
      grid-template-rows: none;
      grid-auto-columns: auto;
      grid-template-columns: 1fr;
    }
  }
}

.next-step .timeline {
  margin-top: 1.2rem;
}

.audit-form .step-nav .link-button {
  color: var(--muted);
  font-size: 0.9rem;
}

/* The form card is white inside a dark hero, so anything that inherits colour
   (legends, question labels, notes) would come out near-white on white. */
.rp-form .audit-form {
  color: var(--ink);
}

.rp-form .audit-form .muted {
  color: var(--muted);
}
