/* QUIZ-1: the free check as a short conversation. One question per screen on a soft aurora sky; steps glide in and
   out (quiz.js sets data-state). Without JavaScript every step shows, as a plain form. Motion respects
   prefers-reduced-motion through the brand tokens. */

body:has(.qz) { background: var(--paper-50); }
.qz-top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(16px, 3vw, 32px); padding: 18px var(--site-gutter); background: rgba(252,250,247,.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.qz-mark img { display: block; height: 22px; width: auto; }
.qz-meter { height: 6px; border-radius: 999px; background: rgba(28,26,31,.07); overflow: hidden; }
.qz-meter span { display: block; height: 100%; width: 4%; border-radius: inherit; background: var(--grad-spectrum);
  box-shadow: 0 0 18px rgba(245,177,201,.7); transition: width var(--dur-slow) var(--ease-calm); }
.qz-time { margin: 0; color: var(--ink-600); font-size: 14px; font-weight: 500; white-space: nowrap; }
.qz-dot { margin: 0 8px; opacity: .5; }

.qz { position: relative; isolation: isolate; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px);
  display: grid; place-items: center; padding: clamp(28px, 6vh, 72px) var(--site-gutter) clamp(48px, 10vh, 120px); overflow: hidden; }
.qz-sky { position: absolute; inset: 0; z-index: -1; background: var(--grad-paper); }
.qz-sky::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .18; mix-blend-mode: soft-light; }
.qz-sky span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(var(--blur-orb)); opacity: .55;
  animation: qz-drift var(--dur-drift) var(--ease-drift) infinite alternate; }
.qz-sky span:nth-child(1) { left: -14vmax; top: -18vmax; background: var(--aurora-butter); }
.qz-sky span:nth-child(2) { right: -16vmax; top: 10vh; background: var(--aurora-rose); animation-delay: -5s; }
.qz-sky span:nth-child(3) { left: 18vw; bottom: -26vmax; background: var(--aurora-lilac); animation-delay: -9s; }
@keyframes qz-drift { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }

.qz-form { width: min(680px, 100%); position: relative; }
.qz [hidden] { display: none !important; }

/* --- a step ------------------------------------------------------------------------------------------------------ */
.qz-step { padding: 8px 0 40px; }
.qz-eyebrow { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 14px;
  font-weight: 600; letter-spacing: .01em; }
.qz-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-spectrum); }
.qz-q { margin: 0; font-family: var(--font-sans); font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04;
  font-weight: 600; letter-spacing: -.03em; color: var(--ink-900); text-wrap: balance; }
.qz-q em { font-family: "Archivo", sans-serif; font-style: normal; font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(100deg, #7A4A86 0%, #B5577A 55%, #C9785A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; }
.qz-help { max-width: 34rem; margin: 16px 0 0; color: var(--ink-600); font-size: 18px; line-height: 1.5; }

.qz-input { display: block; width: 100%; margin-top: 30px; padding: 0 2px 12px; border: 0; border-bottom: 2px solid rgba(28,26,31,.16);
  border-radius: 0; background: transparent; color: var(--ink-900); font: inherit; font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500; letter-spacing: -.01em; transition: border-color var(--dur-base) var(--ease-calm); }
.qz-input::placeholder { color: rgba(28,26,31,.28); }
.qz-input:focus { outline: none; border-bottom-color: var(--accent); }
.qz-input:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
.qz-input--small { margin-top: 8px; padding: 12px 14px; border: 1px solid rgba(28,26,31,.14); border-radius: 14px;
  background: rgba(255,255,255,.8); font-size: 17px; font-weight: 400; }
.qz-input--small:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122,74,134,.18); }
select.qz-input--small { height: 50px; }
textarea.qz-input--small { min-height: 92px; resize: vertical; }
.qz-label { display: block; margin-top: 16px; color: var(--ink-700); font-size: 14px; font-weight: 500; }

.qz-error { margin: 14px 0 0; color: #8A2F45; font-size: 15px; font-weight: 500; }
.qz-error:not([hidden]) { animation: qz-nudge .42s var(--ease-calm); }
@keyframes qz-nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.qz-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qz-next { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--grad-button); color: #FFF; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
  box-shadow: 0 10px 30px rgba(28,26,31,.18); transition: transform var(--dur-fast) var(--ease-calm), box-shadow var(--dur-base) var(--ease-calm), opacity var(--dur-base); }
.qz-next span { transition: transform var(--dur-base) var(--ease-calm); }
.qz-next:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(28,26,31,.22); }
.qz-next:hover span { transform: translateX(4px); }
.qz-next:active { transform: translateY(0) scale(.98); }
.qz-next[disabled] { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.qz-next--go { background: var(--grad-dawn); }           /* brand book: never a black button */
.qz-next:focus-visible, .qz-back:focus-visible, .qz-ghost:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.qz-back, .qz-ghost { height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-600);
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background var(--dur-base), color var(--dur-base); }
.qz-back:hover, .qz-ghost:hover { background: rgba(28,26,31,.06); color: var(--ink-900); }
.qz-ghost { box-shadow: inset 0 0 0 1px rgba(28,26,31,.16); }
.qz-hint { color: var(--ink-500); font-size: 14px; }
.qz-hint kbd { padding: 2px 7px; border-radius: 6px; background: rgba(28,26,31,.06); font: inherit; font-size: 13px; }

/* --- choices ----------------------------------------------------------------------------------------------------- */
.qz-choices { margin-top: 30px; display: grid; gap: 10px; }
.qz-choice { position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 18px;
  border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(28,26,31,.1); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform var(--dur-fast) var(--ease-calm), box-shadow var(--dur-base) var(--ease-calm), background var(--dur-base); }
.qz-choice:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(122,74,134,.35), 0 10px 26px rgba(28,26,31,.06); }
.qz-choice input { position: absolute; opacity: 0; pointer-events: none; }
.qz-key { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(28,26,31,.18); color: var(--ink-600); font-size: 13px; font-weight: 600; transition: all var(--dur-base); }
.qz-choice-text { font-size: 18px; font-weight: 500; line-height: 1.3; }
.qz-choice:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 14px 34px rgba(122,74,134,.14); }
.qz-choice:has(input:checked) .qz-key { background: var(--accent); color: #fff; box-shadow: none; }
.qz-choice:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.qz-other { margin-top: 6px; }
/* COMP-STEP: competitors as ticks, all ticked at first */
.qz-rivals { margin-bottom: 14px; }
.qz-rivals .qz-choice { min-height: 56px; }
.qz-rival-site { margin-left: auto; color: var(--ink-600); font-size: 13px; overflow-wrap: anywhere; text-align: right; }

/* --- cards ------------------------------------------------------------------------------------------------------- */
.qz-card { margin-top: 28px; padding: clamp(20px, 3vw, 30px); border-radius: 26px; background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 24px 60px rgba(60,40,70,.10);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.qz-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #F1E7F2;
  color: #5E3768; font-size: 13px; font-weight: 600; }
.qz-chip:empty { display: none; }
.qz-who-name { margin: 14px 0 0; font-family: "Archivo", sans-serif; font-weight: 600; letter-spacing: -.025em; font-style: normal; font-size: clamp(27px, 3.68vw, 37px); line-height: 1.04; }
.qz-who-summary { margin: 10px 0 0; color: var(--ink-700); font-size: 17px; line-height: 1.5; }
.qz-who-summary:empty { display: none; }
.qz-facts { margin: 20px 0 0; display: grid; }
.qz-facts div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(28,26,31,.08); }
.qz-facts dt { color: var(--ink-600); font-size: 14px; }
.qz-facts dd { margin: 0; font-weight: 500; }
.qz-edit-lead { margin: 0; font-weight: 500; }
.qz-edit .qz-actions { margin-top: 22px; }

.qz-choice-text small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 14px; font-weight: 400; }
/* QUIZ-2: the place, the customers' own words, the services as tags */
.qz-where { margin-top: 14px; }
.qz-label small, .qz-facts dt small { color: var(--ink-500); font-weight: 400; }
.qz-facts dd .qz-input--small { margin: 0; }
.qz-facts div { align-items: center; }
.qz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-tags span { padding: 4px 10px; border-radius: 999px; background: rgba(28,26,31,.05); font-size: 14px; font-weight: 500; }
.qz-note { margin: 14px 0 0; color: var(--ink-500); font-size: 14px; line-height: 1.45; }
.qz-note[hidden] { display: none; }

/* reading the website: a quiet skeleton and one honest line */
.qz-skeleton { margin-top: 30px; padding: 26px; border-radius: 26px; background: rgba(255,255,255,.6); display: grid; gap: 14px; }
.qz-skeleton span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, rgba(28,26,31,.06) 0%, rgba(28,26,31,.13) 40%, rgba(28,26,31,.06) 80%);
  background-size: 300% 100%; animation: qz-shimmer 1.6s linear infinite; }
.qz-skeleton span:nth-child(1) { width: 34%; height: 26px; border-radius: 10px; }
.qz-skeleton span:nth-child(2) { width: 82%; }
.qz-skeleton span:nth-child(3) { width: 64%; }
@keyframes qz-shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.qz-live-line { display: flex; align-items: center; gap: 10px; }
.qz-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(122,74,134,.5); animation: qz-ping 1.4s ease-out infinite; }
@keyframes qz-ping { to { box-shadow: 0 0 0 12px rgba(122,74,134,0); } }

/* insight */
.qz-q--insight { font-size: clamp(30px, 4.4vw, 46px); }
.qz-insight-body { max-width: 36rem; margin: 22px 0 0; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--ink-800); }
.qz-insight-body b { font-weight: 600; background: linear-gradient(transparent 62%, rgba(245,177,201,.55) 62%); background-size: 0 100%;
  background-repeat: no-repeat; transition: background-size .9s var(--ease-calm) .35s; }
.qz-step.is-in .qz-insight-body b { background-size: 100% 100%; }
.qz-source { margin: 14px 0 0; color: var(--ink-500); font-size: 14px; }
.qz-first { position: relative; overflow: hidden; background: var(--grad-dawn); color: var(--paper-50); box-shadow: 0 24px 60px rgba(28,20,40,.25); }
.qz-first::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .25; mix-blend-mode: soft-light; pointer-events: none; }
.qz-first-label { margin: 0; color: var(--aurora-orchid); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.qz-first-text { margin: 10px 0 0; font-family: "Archivo", sans-serif; font-weight: 600; letter-spacing: -.025em; font-style: normal; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.2; }
.qz-first-text::first-letter { text-transform: uppercase; }
.qz-promise { margin: 18px 0 0; color: var(--ink-500); font-size: 14px; }
.qz-promise a { color: var(--ink-600); }

/* --- the stepper (JavaScript on) --------------------------------------------------------------------------------- */
.qz.is-js .qz-step { display: none; }
.qz.is-js .qz-step.is-in { display: block; animation: qz-enter .62s var(--ease-calm) both; }
.qz.is-js .qz-step.is-in.is-back { animation-name: qz-enter-back; }
.qz.is-js .qz-step.is-out { display: block; position: absolute; inset: 0 0 auto; pointer-events: none; animation: qz-leave .34s var(--ease-calm) both; }
.qz.is-js .qz-step.is-out.is-back { animation-name: qz-leave-back; }
@keyframes qz-enter { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes qz-enter-back { from { opacity: 0; transform: translateY(-28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes qz-leave { to { opacity: 0; transform: translateY(-22px); filter: blur(4px); } }
@keyframes qz-leave-back { to { opacity: 0; transform: translateY(22px); filter: blur(4px); } }
.qz.is-js .qz-step.is-in > * { animation: qz-rise .7s var(--ease-calm) both; }
.qz.is-js .qz-step.is-in > :nth-child(2) { animation-delay: .05s; }
.qz.is-js .qz-step.is-in > :nth-child(3) { animation-delay: .1s; }
.qz.is-js .qz-step.is-in > :nth-child(n+4) { animation-delay: .16s; }
@keyframes qz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.qz.is-js .qz-step.is-in .qz-choice { animation: qz-rise .6s var(--ease-calm) both; animation-delay: calc(.12s + var(--i, 0) * 55ms); }
.qz.is-js .qz-found:not([hidden]) .qz-who { animation: qz-pop .7s var(--ease-calm) both; }
@keyframes qz-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.qz:not(.is-js) .qz-reading, .qz:not(.is-js) [data-qz-confirm], .qz:not(.is-js) .qz-js-only,
.qz:not(.is-js) [data-step="found"], .qz:not(.is-js) [data-step="pain"], .qz:not(.is-js) [data-step="guess"],
.qz:not(.is-js) [data-step="buyers"], .qz:not(.is-js) [data-step="heard"], .qz:not(.is-js) [data-qz-first],
.qz:not(.is-js) .qz-back, .qz:not(.is-js) [data-qz-next], .qz:not(.is-js) .qz-hint { display: none; }

@media (max-width: 640px) {
  .qz-top { grid-template-columns: auto 1fr; padding: 14px var(--site-gutter); }
  .qz-time { display: none; }
  .qz-hint { display: none; }
  .qz { place-items: start center; }
  .qz-help { font-size: 17px; }
  .qz-choice { min-height: 58px; }
  .qz-choice-text { font-size: 17px; }
  .qz-facts div { grid-template-columns: 1fr; gap: 2px; }
  .qz-actions { position: sticky; bottom: 0; margin-left: calc(-1 * var(--site-gutter)); margin-right: calc(-1 * var(--site-gutter));
    padding: 14px var(--site-gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(252,250,247,0), rgba(252,250,247,.94) 30%); }
  .qz-next { flex: 1; justify-content: center; }
  .qz-edit .qz-actions { position: static; margin-left: 0; margin-right: 0; padding: 0; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-sky span, .qz-skeleton span, .qz-pulse { animation: none; }
  .qz.is-js .qz-step.is-in, .qz.is-js .qz-step.is-in > *, .qz.is-js .qz-step.is-in .qz-choice { animation: none; }
  .qz.is-js .qz-step.is-out { display: none; }
}
/* QUIZ-EMAIL (2026-11-14): the email is asked with the website, on the first step */
.qz-label--email { margin-top: 26px; font-size: 16px; color: var(--ink-800, #2A2730); }
.qz-help--small { margin-top: 8px; font-size: 14px; color: var(--ink-500); }

/* --- SNAP-PLACES / SNAP-SITE (2026-11-18): place suggestions, the place on "Is this you?", a website not found --- */
.qz-combo { position: relative; }
.qz-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid rgba(28,26,31,.12); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(40,24,60,.35); }
.qz-suggest li { padding: 10px 12px; border-radius: 10px; color: var(--ink-900); font-size: 15px; cursor: pointer; }
.qz-suggest li:hover, .qz-suggest li[aria-selected="true"] { background: rgba(122,74,134,.10); color: var(--accent); }
.qz-facts dd div { display: block; padding: 0; border-top: 0; }
.qz-place-fix, .qz-place-edit { margin-top: 10px; }
.qz-place-fix { padding: 12px 14px; border-radius: 14px; background: rgba(122,74,134,.08); font-weight: 400; }
.qz-place-fix p, .qz-site-miss p { margin: 0; }
.qz-site-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px !important; }
.qz-pill { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--grad-button); color: #FFF !important;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.qz-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qz-pill:focus-visible, .qz-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.qz-pill[hidden], .qz-link[hidden] { display: none; }
.qz-site-miss { color: var(--ink-900); font-weight: 400; }
.qz-credit { margin: 6px 0 0; color: var(--ink-500); font-size: 12px; }
.qz-credit a { color: inherit; }
.qz-where, .qz-who { position: relative; z-index: 5; }     /* the place list opens above the buttons below it */
