/* =========================================================================
   The Client Acquisition Scorecard (/quiz/).
   Loads after quantum.css and pages.css and reuses the application page's
   card, option and field styles. Only what is new for the quiz lives here.
   ========================================================================= */

.quiz [hidden] { display: none !important; }
/* Without a working script the Start button could do nothing, so it is not shown. */
html:not(.js) #qz-start, html:not(.js) .qz-note { display: none; }
.qz-screen { animation: qz-in .45s var(--ease) both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */

.qz-gets { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.qz-gets li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 clamp(16px, 1.5vw, 17.5px)/1.45 var(--sans); color: var(--ink); text-wrap: pretty; }
.qz-note { margin-top: 14px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.qz-note:empty { display: none; }
.qz-nav-center { justify-content: center; }

/* ---------- Questions ---------- */

#qz-q .apply__top { margin-bottom: 0; }
#qz-q .eyebrow { margin-bottom: 14px; }
/* The number on each option doubles as its keyboard shortcut. */
.qz-key { font: 800 15px/1 var(--sans); }
.opt[aria-pressed="true"] .opt__go { color: var(--violet); }

/* ---------- Results ---------- */

#qz-result .apply__title { font-size: clamp(32px, 5vw, 54px); }

.qz-summary { display: grid; gap: clamp(22px, 4vw, 40px); align-items: center; }
@media (min-width: 640px) { .qz-summary { grid-template-columns: 172px minmax(0, 1fr); } }

.qz-ring { position: relative; width: 172px; aspect-ratio: 1; margin-inline: auto; }
.qz-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring__rail, .qz-ring__arc { fill: none; stroke-width: 10; }
.qz-ring__rail { stroke: var(--soft-2); }
.qz-ring__arc { stroke: url(#qz-ringfill); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1s var(--ease); }
.qz-ring__num { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; }
.qz-ring__num b { font: 800 56px/1 var(--sans); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.qz-ring__num small { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.qz-summary__side .kicker { margin-bottom: 6px; }
.qz-bars { list-style: none; margin: 0; padding: 0; }
.qz-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.qz-bars li:first-child { border-top: 0; }
.qz-bars span { font: 700 16px/1.2 var(--sans); color: var(--ink); }
.qz-bars em { margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--lav-100); color: var(--violet-700); font: 800 10.5px/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.qz-bars b { font: 800 16px/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.qz-bars i { grid-column: 1 / -1; position: relative; display: block; height: 8px; border-radius: 8px; background: var(--soft-2); overflow: hidden; }
.qz-bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%); border-radius: inherit; background: linear-gradient(90deg, #039CFD, #7457FD 60%, #9743FE); transition: width .9s var(--ease) var(--d, 0ms); }
.qz-bars li.is-low i::after { background: var(--violet); }

.qz-source { margin-top: clamp(20px, 3vw, 28px); padding-top: clamp(18px, 2.4vw, 24px); border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

.qz-gap { position: relative; overflow: hidden; margin-top: clamp(20px, 3vw, 28px); padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px) clamp(20px, 3vw, 28px) clamp(24px, 3.4vw, 34px); border-radius: 22px; background: var(--lav-50); border: 1px solid var(--lav-200); }
.qz-gap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #039CFD, #7457FD 55%, #9743FE); }
.qz-gap .kicker { margin-bottom: 8px; color: var(--violet-700); }
.qz-gap h3 { font: 800 clamp(24px, 3vw, 32px)/1.1 var(--sans); letter-spacing: -.03em; }
.qz-gap p:not(.kicker) { margin-top: 12px; font-size: 16.5px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.qz-gap p b { color: var(--ink); }

.qz-sent { margin-top: 18px; padding: 13px 16px; border-radius: 14px; background: var(--sky-50); border: 1px solid var(--sky-100); font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }

.qz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 30px); }
.qz-fine { margin-top: 16px; }
.qz-signature { margin-top: 14px; font-size: clamp(24px, 2.8vw, 32px); }
.qz-scored { max-width: 40em; margin-inline: auto; }
.qz-scored b { color: var(--ink); }

@media (max-width: 560px) {
  .qz-actions .btn { width: 100%; }
  .qz-ring { width: 152px; }
  .qz-ring__num b { font-size: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-screen { animation: none; }
}
