/* teeem.it/audit — the Builder Business Audit (audit.html). Builds on site.css's
   tokens, buttons, form fields and the booking calendar's styles; only what the
   audit adds lives here, so the shared, often-edited site.css stays untouched. */

:root {
  /* The bands, same colours as the results email (BuilderAuditMailer::BAND_COLOURS),
     each AA on white. */
  --band-red: #b42318;
  --band-amber: #b54708;
  --band-green: #00827D;   /* TEEEM's green, one step darker — every green on the site is a rung of the logo's (Rob, Oct 5 2026) */
}

.au-page { min-height: 100vh; display: flex; flex-direction: column; }
.au-page main { flex: 1; }
.au-page [hidden] { display: none !important; } /* beats every display: below */

.au-top { background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.au-top .wrap { height: 64px; display: flex; align-items: center; }

.au.section, .au-book.section { padding: 56px 0 72px; }
.au .wrap, .au-book .wrap { max-width: 780px; }
.au h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; max-width: 18ch; }
.au-stage .lead { margin-top: 18px; max-width: 60ch; color: color-mix(in srgb, var(--ink) 72%, transparent); font-size: 1.05rem; }
.au-status { margin-top: 28px; font-weight: 600; }
.au-status a, .au-book-closed a, .au-next a:not(.btn) { color: var(--copper); }
.au-retry, .au-go { margin-top: 20px; }
.au-small { margin-top: 18px; font-size: 0.86rem; color: color-mix(in srgb, var(--ink) 62%, transparent); }

/* ── One question per screen ───────────────────────────────────── */
.au-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.au-progress .mono { flex: none; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.au-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line-paper); overflow: hidden; }
.au-bar span { display: block; height: 100%; width: 0; background: var(--copper); border-radius: inherit; transition: width 0.3s ease; }
.au-prompt { font-size: clamp(1.45rem, 3.4vw, 2.05rem); line-height: 1.2; color: var(--forest); max-width: 30ch; }
.au-prompt:focus { outline: none; }
.au-options { display: grid; gap: 12px; margin-top: 28px; }
.au-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line-paper); border-radius: var(--radius);
  font: inherit; font-size: 1.02rem; font-weight: 500; transition: border-color 0.15s, background 0.15s;
}
.au-option::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent);
}
.au-option:hover { border-color: var(--copper); }
.au-option[aria-checked="true"] { background: var(--forest); color: var(--white); border-color: var(--forest); }
.au-option[aria-checked="true"]::before { border-color: var(--copper); background: var(--copper); box-shadow: inset 0 0 0 3px var(--forest); }
.au-option:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,161,155,0.25); }
.au-free { margin-top: 28px; }
.au-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; min-height: 52px; }
.au-contact { margin-top: 28px; }

/* ── Results ───────────────────────────────────────────────────── */
.au-results:focus { outline: none; }
.au-score { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; font-family: var(--font-display); font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; color: var(--forest); }
.au-score-of { font-family: var(--font-body); font-size: 1.05rem; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.au-areas { margin-top: 30px; padding: 8px 24px; background: var(--white); border: 1px solid var(--line-paper); border-radius: var(--radius); }
.au-area {
  display: grid; grid-template-columns: minmax(9rem, 1.1fr) 2fr auto 6.5rem; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line-paper);
}
.au-area:last-child { border-bottom: none; }
.au-area-label { font-weight: 600; }
.au-area-bar { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.au-area-bar span { display: block; height: 100%; border-radius: inherit; }
.au-area-points { font-family: var(--font-mono); font-size: 0.86rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.au-band { font-weight: 600; font-size: 0.9rem; text-align: right; }
.au-band-red { color: var(--band-red); }
.au-band-amber { color: var(--band-amber); }
.au-band-green { color: var(--band-green); }
.au-fill-red { background: var(--band-red); }
.au-fill-amber { background: var(--band-amber); }
.au-fill-green { background: var(--band-green); }

.au-block { margin-top: 34px; }
.au-block h3 { font-size: 1.4rem; color: var(--forest); }
.au-explained { margin-top: 16px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line-paper); border-left-width: 4px; border-radius: var(--radius); }
.au-explained.au-band-red { border-left-color: var(--band-red); }
.au-explained.au-band-amber { border-left-color: var(--band-amber); }
.au-explained h4 { font-family: var(--font-body); font-size: 1.02rem; color: var(--ink); }
.au-explained h4 span { font-weight: 600; }
.au-explained p { margin-top: 6px; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.au-numbers { padding: 20px 22px; background: #f5f7fb; border: 1px solid #dfe6f1; border-radius: var(--radius); }
.au-numbers .au-small { margin-top: 2px; }
.au-numbers ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 8px; }
.au-next p { margin-top: 14px; }
.au-next p:first-child { margin-top: 0; }

/* ── The results call ──────────────────────────────────────────── */
.au-book { background: var(--paper-2); }
.au-book h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; max-width: 22ch; }
.au-book h2:focus { outline: none; }
.au-book .lead { margin-top: 16px; max-width: 60ch; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.au-book .bk { margin-top: 32px; }
.au-book-closed { margin-top: 28px; font-weight: 600; }

.au-foot { background: var(--ink); color: var(--mist); font-size: 0.8rem; }
.au-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 22px; }
.au-foot a { color: var(--mist); }

@media (max-width: 640px) {
  .au .wrap, .au-book .wrap { padding: 0 18px; }
  .au-areas { padding: 4px 16px; }
  .au-area { grid-template-columns: 1fr auto auto; gap: 6px 12px; }
  .au-area-bar { grid-column: 1 / -1; grid-row: 2; }
  .au-band { min-width: 5.6rem; }
}
