/* Shop by goal quiz, page sheet for find-your-test/index.html. Everything is scoped
   under body.qz, so nothing here can reach another page.

   Layout: one centred question column, then the goal photographs, then the
   closing card (the NAD+ page's .nd-end, rebuilt for the tests).

   Motion tokens, all transform and opacity:
     --qz-out   190ms  ease-in     card leaves
     --qz-in    320ms  settle      card and options arrive, 40ms stagger
     --qz-film  hero-aurora loop under the closing card's navy */

.qz {
  --qz-settle: cubic-bezier(.2, .8, .2, 1);
  --qz-ink: var(--ink-900);
  --qz-ink-2: var(--ink-600);
  --qz-navy: var(--phenome-blue-500);
  --qz-deep: var(--phenome-blue-900);
  --qz-wash: var(--gl-tint-sunk);
  --qz-tile: var(--phenome-blue-100);
  --qz-line: #10214b1a;
}

/* ---- 1 · head -------------------------------------------------------- */
.qz-sec { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 112px); }
/* The visible headline was deleted (user, 2026-09-25); the page keeps an h1
   for screen readers and the document outline. */
.qz-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- 2 · stage ------------------------------------------------------- */
.qz-stage { max-width: 880px; margin: 0 auto; }
.qz-main { min-width: 0; }

.qz-prog { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.qz-prog span { position: relative; height: 4px; border-radius: 99px; background: var(--qz-tile); overflow: hidden; }
.qz-prog i {
  position: absolute; inset: 0; border-radius: inherit; background: var(--qz-navy);
  transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--qz-settle);
}
.qz-prog .is-done i { transform: scaleX(1); }
.qz-prog .is-now:not(.is-done) i { transform: scaleX(.35); background: var(--phenome-blue-300); }

.qz-step { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--qz-navy); letter-spacing: .01em; }

.qz-card { transition: opacity 190ms ease-in, transform 190ms ease-in; }
.qz-card.is-out { opacity: 0; transform: translateY(-12px); }
.qz-card.is-in { opacity: 0; transform: translateY(16px); transition: none; }
.qz-card:not(.is-out):not(.is-in) { transition: opacity 320ms var(--qz-settle), transform 320ms var(--qz-settle); }

.qz-q {
  margin: 10px 0 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; font-weight: 600;
  letter-spacing: -.025em; color: var(--qz-ink); outline: none;
}
.qz-why { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--qz-ink-2); max-width: 52ch; }

.qz-opts { display: grid; gap: 10px; margin-top: 28px; }
.qz-opt {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 16px; align-items: center;
  width: 100%; min-height: 72px; padding: 14px 20px 14px 16px; border: 0; border-radius: 18px;
  background: var(--qz-wash); color: var(--qz-ink); font: inherit; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms var(--qz-settle), color 200ms ease-out;
}
.qz-card:not(.is-out):not(.is-in) .qz-opt { animation: qz-rise 320ms var(--qz-settle) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes qz-rise { from { opacity: 0; transform: translateY(10px); } }
.qz-opt:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--qz-line), 0 8px 24px #10214b12; transform: translateY(-1px); }
.qz-opt:active { transform: scale(.985); transition-duration: 60ms; }
.qz-opt:focus-visible { outline: 2px solid var(--qz-navy); outline-offset: 3px; }

.qz-opt-k {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px var(--qz-line);
  font-size: 15px; font-weight: 600; color: var(--qz-ink-2); font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out;
}
.qz-opt-t { display: grid; gap: 3px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.qz-opt-s { font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--qz-ink-2); transition: color 200ms ease-out; }
.qz-opt-c {
  width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #10214b33;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out;
}

.qz-opt.is-on { background: var(--qz-deep); color: #fff; box-shadow: none; }
.qz-opt.is-on .qz-opt-s { color: #ffffffb8; }
.qz-opt.is-on .qz-opt-k { background: #ffffff1f; color: #fff; box-shadow: none; }
.qz-opt.is-on .qz-opt-c {
  box-shadow: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230a1e57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.qz-opt.is-pick { animation: qz-thunk 260ms var(--qz-settle); }
@keyframes qz-thunk { 40% { transform: scale(.975); } }

.qz-foot { display: flex; align-items: center; gap: 20px; min-height: 44px; margin-top: 24px; }
.qz-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px;
  border: 0; border-radius: 99px; background: transparent; box-shadow: inset 0 0 0 1px var(--qz-line);
  font: inherit; font-size: 16px; font-weight: 600; color: var(--qz-ink); cursor: pointer;
  transition: background-color 200ms ease-out;
}
.qz-back::before {
  content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px;
  transform: rotate(45deg); margin-left: 4px;
}
.qz-back:hover { background: var(--qz-wash); }
.qz-back:active { transform: scale(.98); }
.qz-back[hidden] { display: none; }
.qz-hint { font-size: 15px; color: var(--qz-ink-2); }

/* ---- 4 · result ---------------------------------------------------- */
.qz-result[hidden] { display: none; }
.qz .qz-res-h { margin: 10px 0 0; font-size: clamp(36px, 4.2vw, 64px); outline: none; }
.qz-result.is-in .qz-res-h,
.qz-result.is-in .qz-hero,
.qz-result.is-in .qz-mini,
.qz-result.is-in .qz-total { animation: qz-rise 480ms var(--qz-settle) both; }
.qz-result.is-in .qz-hero { animation-delay: 80ms; }
.qz-result.is-in .qz-mini { animation-delay: calc(200ms + var(--i) * 60ms); }
.qz-result.is-in .qz-total { animation-delay: 340ms; }

.qz-hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 44px);
  margin-top: 32px; padding: 16px; border-radius: 28px; background: var(--qz-wash);
}
.qz-hero-media { border-radius: 18px; overflow: hidden; background: var(--qz-tile); aspect-ratio: 1; }
.qz-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qz-result.is-in .qz-hero-media img { animation: qz-settle-img 900ms var(--qz-settle) both; animation-delay: 80ms; }
@keyframes qz-settle-img { from { transform: scale(1.06); } }
.qz-hero-body { padding: 16px 12px 16px 0; display: flex; flex-direction: column; }
.qz-hero-price { margin: 0; font-size: 22px; font-weight: 600; color: var(--qz-ink); font-variant-numeric: tabular-nums; }
.qz-hero-blurb { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--qz-ink-2); }
.qz-hero-k { margin: 22px 0 0; font-size: 15px; font-weight: 600; color: var(--qz-ink); }
.qz-because { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.qz-because li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 16px; line-height: 1.45; color: var(--qz-ink); }
.qz-because li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23203a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.qz-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 24px; }

.qz-sub { margin: 44px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--qz-ink); }
.qz-sub[hidden] { display: none; }
.qz-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.qz-mini {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px;
  border-radius: 22px; background: #fff; box-shadow: var(--gl-inner);
  transition: box-shadow 200ms ease-out, transform 200ms var(--qz-settle);
}
.qz-mini:hover { box-shadow: var(--gl-inner), 0 12px 32px #10214b14; transform: translateY(-2px); }
.qz-mini-media { display: block; border-radius: 14px; overflow: hidden; background: var(--qz-tile); aspect-ratio: 1; }
.qz-mini-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qz-mini-body { display: flex; flex-direction: column; min-width: 0; padding: 4px 4px 2px 0; }
.qz-mini-n { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.qz-mini-n a { color: var(--qz-ink); text-decoration: none; }
.qz-mini-n a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qz-mini-b { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--qz-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qz-mini-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.qz-mini-p { font-size: 16px; font-weight: 600; color: var(--qz-ink); font-variant-numeric: tabular-nums; }
.qz-add {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--qz-wash);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--qz-deep); cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.qz-add:hover { background: var(--qz-deep); color: #fff; }
.qz-add:active, .qz .btn:active { transform: scale(.98); }
.qz-add.is-added, .qz .btn.is-added { background: var(--qz-deep); color: #fff; }

.qz-total {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--qz-line);
}
.qz-total-t { margin: 0; display: grid; font-size: 15px; color: var(--qz-ink-2); }
.qz-total-t b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--qz-ink); font-variant-numeric: tabular-nums; }
.qz-total-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- 5 · goal photographs -------------------------------------------- */
.qz-goals { padding: clamp(64px, 7vw, 112px) 0; background: var(--qz-wash); }
.qz-goals-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.qz .qz-goals-h { margin: 0; font-size: clamp(34px, 4.2vw, 62px); }
.qz-goals-lede { margin: 0 0 8px; max-width: 36ch; font-size: 18px; line-height: 1.5; color: var(--qz-ink-2); }
.qz-goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.qz-goal {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 3.3; padding: 24px; border: 0; border-radius: 24px; overflow: hidden;
  background: var(--phenome-blue-700); color: #fff; font: inherit; text-align: left; cursor: pointer;
  isolation: isolate;
}
.qz-goal img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--qz-settle);
}
.qz-goal::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #0a1e5700 30%, #0a1e5761 58%, #0a1e57e0 100%);
  transition: opacity 300ms ease-out;
}
.qz-goal::after {
  content: 'Start here'; position: absolute; top: 20px; right: 20px;
  padding: 8px 16px; border-radius: 99px; background: #ffffffeb; color: var(--qz-deep);
  font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(-6px);
  transition: opacity 250ms ease-out, transform 250ms var(--qz-settle);
}
.qz-goal-t { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.qz-goal-d { margin-top: 6px; font-size: 16px; line-height: 1.4; color: #ffffffd9; }
.qz-goal:hover img { transform: scale(1.05); }
.qz-goal:hover::after, .qz-goal:focus-visible::after { opacity: 1; transform: none; }
.qz-goal:focus-visible { outline: 2px solid var(--qz-navy); outline-offset: 4px; }
.qz-goal:active { transform: scale(.99); }

/* ---- 6 · closing card -------------------------------------------
   The NAD+ page's closing card (supplements/nad/nad.css § 10) token for token:
   the aurora film plays under a translucent version of the card's radial
   navy, so the card keeps its colour and only gains the movement. The kit
   cutout stands where the NAD+ bottle stands. */
.qz-end { padding: 16px 0 clamp(56px, 6vw, 96px); }
.qz-end-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 110px);
  padding: clamp(56px, 7vw, 110px) clamp(28px, 8vw, 150px); border-radius: 32px; color: #fff;
  background: radial-gradient(70% 140% at 12% 50%, #1d3d98 0%, var(--qz-deep) 60%, #071641 100%);
}
.qz-end-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qz-end-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 140% at 12% 50%, rgba(29, 61, 152, .55) 0%, rgba(10, 30, 87, .62) 60%, rgba(7, 22, 65, .78) 100%);
}
.qz-end-kits { width: clamp(200px, 24vw, 340px); height: auto; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .35)); }
.qz .qz-end-h { font-size: clamp(38px, 4.4vw, 66px); }
.qz-end-lede { margin: 18px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: rgba(255, 255, 255, .86); }
.qz-end-price { margin: 26px 0 0; font-size: 19px; font-weight: 600; }
.qz .qz-end-cta { display: inline-flex; justify-content: center; min-width: 180px; margin-top: 24px; }
.qz-end-note { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.qz-end-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.qz-end-fine { margin-top: 8px; color: rgba(255, 255, 255, .6); }

/* ---- 7 · narrow ----------------------------------------------------- */
@media (max-width: 1100px) {
  .qz-hero { grid-template-columns: 1fr; }
  .qz-hero-media { aspect-ratio: 16 / 10; }
  .qz-hero-body { padding: 4px 8px 12px; }
  .qz-pair { grid-template-columns: 1fr; }
  .qz-end-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (max-width: 960px) {
  .qz-goals-head { grid-template-columns: 1fr; }
  .qz-goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .qz-opt { grid-template-columns: 32px minmax(0, 1fr) 22px; gap: 12px; padding: 14px 14px 14px 12px; }
  .qz-opt-k { width: 32px; height: 32px; }
  .qz-goal-grid { grid-template-columns: 1fr; }
  .qz-goal { aspect-ratio: 4 / 3; }
  .qz-mini { grid-template-columns: 88px minmax(0, 1fr); }
  .qz-hint { display: none; }
}
@media (hover: none) { .qz-goal::after { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .qz *, .qz *::before, .qz *::after { animation: none !important; transition-duration: 1ms !important; }
  .qz-end-film { display: none; }
  .qz-end-card { background-image: url("/site/assets/video/hero-aurora.webp"); background-size: cover; }
}
