/* =====================================================================
   LIFESTYLE QUIZ (quiz.html — tools/build_quiz.py, js/quiz.js)
   One question per screen. Big targets, one column, nothing to scroll
   past on a phone: the whole point is that finishing feels easy.
   ===================================================================== */
.qz { padding: 72px var(--pad-x) 96px; display: flex; justify-content: center; }
.qz__inner { width: 100%; max-width: 760px; }

.qz__panel { display: flex; flex-direction: column; gap: 18px; }
.qz__panel--intro { align-items: flex-start; gap: 20px; padding: 56px 0 0; }
.qz__title { font-size: 44px; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.qz__help { margin-top: -8px; }
.qz__fine { font-size: 13px; }
.qz__start { align-self: flex-start; }

/* progress */
.qz__bar { height: 3px; border-radius: 2px; background: var(--c-card-dark); overflow: hidden; }
.qz__bar span { display: block; height: 100%; background: var(--c-text); transition: width .45s var(--ease); }
.qz__count { font-size: 11px; color: var(--c-text-2); margin-top: -10px; }

/* options */
.qz__opts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.qzopt {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  padding: 20px 22px; border-radius: 22px; background: var(--c-white); border: 1.5px solid transparent;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.qzopt:hover { transform: translateX(3px); border-color: var(--c-beige-dark); }
.qzopt.is-picked { border-color: var(--c-text); background: var(--c-card); }
.qzopt:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
.qzopt__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c-beige-dark); position: relative; }
.qzopt.is-picked .qzopt__tick { border-color: var(--c-text); background: var(--c-text); }
.qzopt.is-picked .qzopt__tick::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--c-white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.qzopt__body { display: flex; flex-direction: column; gap: 3px; }
.qzopt__label { font-size: 15px; }

.qz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.qz__back { background: transparent; color: var(--c-text-2); }
.qz__back:hover { color: var(--c-text); }

/* reflection */
.qzref { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.qzref li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--c-beige-dark); }
.qzref__q { font-size: 13px; }
.qzref__a { font-size: 15px; }

/* results */
.qz__panel--results { gap: 22px; }
.qzrecs { display: flex; flex-direction: column; gap: 12px; }
.qzrec { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 28px; background: var(--c-white); }
.qzrec__img { position: relative; flex: none; width: 96px; height: 96px; border-radius: 20px; background: var(--c-card); overflow: hidden; }
/* The bottle is positioned against the tile rather than centred in a grid: a percentage height on a
   centred grid item resolves against an area the engine treats as indefinite, so on mobile — where
   the tile goes full width — the image fell back to its own aspect ratio and spilled over the copy. */
/* a fixed inset, not a percentage: percentage padding resolves against the width, so on the
   full-width mobile tile it ate most of the 160px height and left a thumbnail of a thumbnail */
.qzrec__img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.qzrec__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qzrec__name { font-family: var(--f-display); font-size: 22px; line-height: 1.05; letter-spacing: -.02em; }
.qzrec__name a { color: var(--c-text); text-decoration: none; }
.qzrec__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qzrec__why { line-height: 1.4; }
.qzrec__why b { color: var(--c-black); font-weight: 500; }
.qzrec__price { font-size: 14px; }

.qz__total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px; border-radius: 24px; background: var(--c-card); }

.qzclose { padding: 22px; border-radius: 24px; border: 1px solid var(--c-beige-dark); display: flex; flex-direction: column; gap: 8px; }
.qzclose__title { font-size: 15px; }

.qzsave { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: 24px; background: var(--c-white); }
.qzsave__title { font-family: var(--f-display); font-size: 24px; line-height: 1.05; color: var(--c-black); }
.qz__msg { font-size: 13px; color: #8c1d18; }
.qz__restart { align-self: center; background: transparent; color: var(--c-text-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qz__restart:hover { color: var(--c-text); }

/* homepage entry point */
.quizcta { padding: 0 var(--pad-x) 24px; }
.quizcta__inner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--c-card);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--gap); }
.quizcta__body { padding: 64px 0 64px 64px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.quizcta__title { font-family: var(--f-display); font-size: 46px; line-height: 1.02; letter-spacing: -.03em; color: var(--c-black); text-wrap: balance; }
.quizcta__steps { display: flex; gap: 26px; margin-top: 4px; flex-wrap: wrap; }
.quizcta__step { display: flex; flex-direction: column; gap: 6px; max-width: 150px; }
/* the number leads the step, so it is set in the display face and sized above the words below it */
/* the step markers were on the divider tone, which is a border colour and all but vanished on the
   beige card; secondary text reads as a number without competing with the heading */
.quizcta__num { font-family: var(--f-display); font-size: 40px; line-height: 1; letter-spacing: -.02em;
  color: var(--c-text-2); }
.quizcta__media { position: relative; aspect-ratio: 1 / 1; }
.quizcta__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1439px) {
  .qz__title { font-size: 38px; }
  .quizcta__title { font-size: 38px; }
  .quizcta__body { padding: 48px 0 48px 48px; }
}
@media (max-width: 809px) {
  .qz { padding: 40px var(--pad-x) 64px; }
  .qz__title { font-size: 30px; }
  .qzopt { padding: 16px 18px; border-radius: 18px; gap: 12px; }
  .qzrec { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 22px; }
  .qzrec__img { width: 100%; height: 160px; }
  .qz__total { flex-direction: column; align-items: stretch; text-align: center; }
  .qz__total .btn { width: 100%; }
  .quizcta__inner { grid-template-columns: 1fr; }
  .quizcta__body { padding: 32px 24px; }
  .quizcta__title { font-size: 30px; }
  .quizcta__num { font-size: 32px; }
  .quizcta__media { aspect-ratio: 16 / 10; order: -1; }
}

/* what finishing is worth — shown on every screen, like HUM's header pills */
.qzpromise { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.qzpromise li { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2);
  padding: 6px 12px; border-radius: 14px; background: var(--c-white); border: 1px solid var(--c-beige-dark); }
.qz__panel--intro .qzpromise { margin-bottom: 8px; }

/* the reward, revealed after the email step */
.qzcode { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: 24px;
  background: var(--c-green); color: var(--c-black); }
.qzcode__title { font-family: var(--f-display); font-size: 26px; line-height: 1.05; }
.qzcode__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.qzcode__code { font-family: var(--f-label); font-size: 20px; letter-spacing: .1em; padding: 10px 16px;
  border-radius: 12px; background: var(--c-white); border: 1.5px dashed var(--c-beige-dark); }
.qzcode__copy { cursor: pointer; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.55); color: var(--c-black); }
.qzcode__copy:hover { background: var(--c-white); }
.qz__skip { align-self: flex-start; margin-top: 2px; background: transparent; color: var(--c-text-2);
  font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qz__skip:hover { color: var(--c-text); }
.qzcode__note { font-size: 12px; opacity: .75; }
/* the three steps read as headings, not body copy */
.quizcta__steptext { font-weight: 500; color: var(--c-black); }
