/* The free website audit in the HQ.ai design: the start page's form and sample, and the report (parts/audit.js builds it).
   Every class audit.js writes (pill, tag, wrap, sec__top, form, field, crumbs, lede, au-*) is styled here, inside .au-report,
   with the custom properties from the top of site.css, so the page follows the light and dark themes. */

/* Start page: the form beside the hero copy */
.au-hero { align-items: start; }
.au-start { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 16px; align-self: center; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }
.au-start::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 90%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent); }
.au-start__h { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.au-start__h span:first-child { color: var(--ink); }
.au-start__t { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.au-start .fl input { font-size: 17px; padding: 14px; }
.au-start .btn { width: 100%; justify-content: space-between; }
.au-start .btn:disabled { opacity: .55; cursor: default; transform: none; }
.au-start__note { min-height: 1.5em; color: var(--ink-2); }
.au-start__note:empty { display: none; }
.au-start__small { font-size: 14.5px; color: var(--muted); }
.au-start__small a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.au-start__small a:hover { color: var(--accent); }
.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Start page: the check cards, what you get and the sample */
.au-checks .type .mono { color: var(--muted); }
.au-checks .type .chip { justify-self: start; }
.au-gets { display: grid; gap: 10px; padding-left: 20px; list-style: disc; color: var(--ink-2); }
.au-gets li::marker { color: var(--accent); }
.au-sample { display: grid; gap: 16px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }
.au-sample__top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.au-sample__top span:last-child { color: var(--ink); }
.au-sample .au-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.au-sample .au-bar { background: var(--bg); }
.au-sample figcaption { color: var(--muted); }

/* Report: shared parts written by audit.js */
.au-report { min-height: 70vh; min-height: 70svh; }
.au-report .wrap { width: 100%; }
.au-report .sec { padding-block: 0; }
.au-report .crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; color: var(--muted); }
.au-report .crumbs .chip { padding: 0; border: 0; border-radius: 0; font-size: inherit; letter-spacing: inherit; color: inherit; white-space: normal; }
.au-report .crumbs a.chip:hover { color: var(--accent); }
.au-report .crumbs .chip + .chip::before { content: "/"; margin-right: 8px; color: var(--muted); }
.au-report .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; color: var(--accent); }
.au-report .lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--ink-2); letter-spacing: -.01em; max-width: 46ch; text-wrap: pretty; }
.au-report .link-arrow { color: var(--accent); font-size: 15px; }
.au-report .link-arrow::after { content: " \2192"; }
.au-h1 { font-size: clamp(40px, 5.4vw, 88px); font-weight: 500; letter-spacing: -.052em; line-height: .98; text-wrap: balance; }
.au-host { color: var(--accent); overflow-wrap: anywhere; }

/* Buttons: audit.js writes .pill; they take the HQ.ai button shape */
.au-report .pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: auto; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--bg); font: 500 15.5px/1.2 var(--sans); white-space: nowrap; cursor: pointer; transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .2s, border-color .2s, color .2s; }
.au-report .pill:hover { transform: translateY(-2px); }
.au-report .pill--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.au-report .pill--ghost:hover { border-color: var(--ink); transform: none; }
.au-report .pill:disabled { opacity: .55; cursor: default; transform: none; }
.au-report .pill__ico svg { display: none; }
.au-report .pill__ico::after { content: "\2192"; }
.au-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Report: waiting and errors */
.au-wait { padding-block: 26px clamp(64px, 9vw, 128px); display: grid; gap: 22px; justify-items: start; max-width: 980px; }
.au-live { display: grid; gap: 14px; margin-top: 8px; }
.au-live li { display: flex; align-items: center; gap: 14px; font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); transition: color .4s; }
.au-live li.is-now { color: var(--ink); }
.au-live li.is-done { color: var(--ink-2); }
.au-live__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex-shrink: 0; }
.au-live .is-done .au-live__dot { background: var(--ok); box-shadow: none; }
.au-live .is-now .au-live__dot { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); animation: au-pulse 1.4s var(--e-out) infinite; }
@keyframes au-pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 0%, transparent); } }
.au-wait__note { color: var(--muted); font-size: 16px; }

/* Report: header and scores */
.au-head { padding-block: 26px clamp(32px, 4vw, 56px); }
.au-head__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: end; }
.au-head__copy { display: grid; gap: 20px; justify-items: start; }
.au-ring { position: relative; width: clamp(170px, 17vw, 240px); aspect-ratio: 1; }
.au-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.au-ring circle { fill: none; stroke-width: 9; }
.au-ring__track { stroke: var(--line-2); }
.au-ring__fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--e-out); }
.au-ring__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.au-ring__n b { font-size: clamp(52px, 5.2vw, 84px); font-weight: 500; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.au-ring__n span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.au-report .sec__top { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; margin-bottom: 22px; border-top: 1px solid var(--line); }
.au-report .sec__top .tag { color: var(--ink); }
.au-report .sec__note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; color: var(--muted); text-align: right; }
.au-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.au-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: baseline; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color .25s; }
a.au-bar:hover { border-color: var(--accent); }
.au-bar__name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.au-bar__n { font-size: 32px; font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.au-bar i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.au-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #5b5bf6, #ec4899); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.au-bar__note { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.au-bar.is-locked .au-bar__note::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor; vertical-align: 0; }

/* Report: the eight areas */
.au-cats { padding-block: clamp(36px, 5vw, 64px); }
.au-list { display: grid; gap: 16px; }
.au-cat { padding: clamp(22px, 2.6vw, 38px); border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); scroll-margin-top: 100px; }
.au-cat__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: baseline; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.au-cat__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--accent); }
.au-cat__t { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.au-cat__score { font-size: 17px; color: var(--muted); }
.au-cat__score b { font-size: clamp(30px, 3vw, 44px); font-weight: 500; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.au-cat__meta { grid-column: 2 / -1; font-size: 15px; color: var(--muted); }
.au-cat__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); }
.au-cat__body h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.au-works, .au-fixes { display: grid; gap: 12px; }
.au-works li { display: grid; gap: 4px; padding-left: 26px; position: relative; }
.au-works li::before { content: ""; position: absolute; left: 1px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.au-works b { font-weight: 500; }
.au-works span { color: var(--ink-2); font-size: 15.5px; }
.au-fixes li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.au-fixes p { font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.au-pri { justify-self: start; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.6; color: var(--ink-2); }
.au-pri--high { border-color: transparent; background: color-mix(in srgb, #f43f5e 24%, transparent); color: var(--ink); }
.au-pri--medium { border-color: transparent; background: color-mix(in srgb, var(--warn) 24%, transparent); color: var(--ink); }
.au-none { color: var(--muted); }
.au-lock { display: grid; gap: 14px; justify-items: start; }
.au-lock p { color: var(--ink-2); }
.au-ghost { width: 100%; display: grid; gap: 10px; filter: blur(4px); opacity: .6; user-select: none; }
.au-ghost i { display: block; height: 30px; border-radius: 10px; background: linear-gradient(90deg, var(--line-2), var(--line)); }
.au-ghost i:nth-child(2) { width: 82%; }
.au-ghost i:nth-child(3) { display: none; }
.au-cat--locked .au-cat__head { padding-bottom: 16px; margin-bottom: 18px; }

/* Report: the unlock form, on the estimator's gradient panel (dark in both themes) */
.au-unlock { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.4vw, 52px); border-radius: 18px; background: #14123a; color: #fff; scroll-margin-top: 100px; }
.au-unlock::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(30% 40% at 20% 30%, rgba(91, 91, 246, .9), transparent 70%), radial-gradient(30% 40% at 80% 70%, rgba(236, 72, 153, .7), transparent 70%), radial-gradient(25% 30% at 60% 20%, rgba(20, 184, 166, .55), transparent 70%); }
.au-unlock__copy { display: grid; gap: 16px; }
.au-unlock .tag { color: rgba(255, 255, 255, .78); }
.au-unlock .lede { color: rgba(255, 255, 255, .86); }
.au-unlock__t { font-size: clamp(34px, 4vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.au-unlock .form { display: grid; gap: 12px; }
.au-unlock .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.au-unlock .field { display: grid; gap: 6px; }
.au-unlock .field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.au-unlock .field :is(input, select) { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; font: 400 15px var(--sans); outline: none; }
.au-unlock .field :is(input, select):focus { border-color: #fff; }
.au-unlock .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .75) 50%), linear-gradient(135deg, rgba(255, 255, 255, .75) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.au-unlock .field option { color: #14123a; }
.au-unlock .pill { justify-self: start; background: #fff; color: #14123a; }
.au-unlock .form__note { min-height: 1.4em; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.au-unlock .au-small { color: rgba(255, 255, 255, .75); }
.au-unlock .au-small a { color: #fff; }
.au-small { font-size: 14px; color: var(--muted); }
.au-small a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Report: the end */
.au-end { padding-bottom: clamp(60px, 8vw, 110px); }
.au-end__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.au-end__in > div:first-child { display: grid; gap: 20px; justify-items: start; }
.au-how-scored { display: grid; gap: 12px; align-content: start; }
.au-how-scored h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.au-how-scored p { color: var(--ink-2); font-size: 16px; }

@media (max-width: 1100px) {
  .au-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-unlock, .au-end__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .au-cat__body, .au-head__in { grid-template-columns: minmax(0, 1fr); }
  .au-ring { width: 150px; }
  .au-cat__head { grid-template-columns: minmax(0, 1fr) auto; }
  .au-cat__n, .au-cat__meta { grid-column: 1 / -1; }
  .au-fixes li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .au-actions .pill { flex: 1 1 100%; justify-content: space-between; }
  .au-unlock .form__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .au-bars, .au-sample .au-bars { grid-template-columns: minmax(0, 1fr); }
  .au-report .sec__top { flex-direction: column; gap: 4px; }
  .au-report .sec__note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .au-live .is-now .au-live__dot { animation: none; }
  .au-ring__fill { transition: none; }
  .au-report .pill:hover { transform: none; }
}

/* The PDF: Download PDF prints the report on white, without the menu, buttons, booking bar or footer. */
@media print {
  :root, :root[data-theme] { --bg: #fff; --panel: #fff; --ink: #0a0c16; --ink-2: #393d51; --muted: #5d6176; --line: #d5d8e6; --line-2: #c3c7d8; --accent: #3444de; }
  body { background: #fff; color: var(--ink); }
  .ldr, .pt, .head, .gridlay, .xh, .cbar, .pal, .foot, .legal, .au-actions, .au-unlock, .au-end__in > div:first-child, .au-report .crumbs { display: none !important; }
  .rail { border: 0; }
  .au-head { padding-top: 0; }
  .au-bar i::after { background: #3444de; }
  .au-cat, .au-bar { break-inside: avoid; background: #fff !important; }
  .au-fixes li { background: #f4f5fa; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
