/* Fundlink v5: Finance finder quiz in the hero card. Builds on styles.css. */

.quiz { position: relative; }
.qz-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 10px; }
.qz-step { margin-left: auto; font-size: 12.5px; font-weight: 650; color: var(--mute); font-variant-numeric: tabular-nums; }
.qz-back { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.qz-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.qz-back[hidden] { display: none; }
.qz-bar { height: 4px; border-radius: 4px; background: #ECE9E1; overflow: hidden; margin-bottom: 26px; }
.qz-bar i { display: block; height: 100%; background: var(--sun-1); transform-origin: left; transform: scaleX(0); transition: transform .45s cubic-bezier(.16,1,.3,1); }

.qz-stage { min-height: 430px; }
.qz-stage.qz-fwd { animation: qz-in .42s cubic-bezier(.16,1,.3,1); }
.qz-stage.qz-bwd { animation: qz-back .42s cubic-bezier(.16,1,.3,1); }
@keyframes qz-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes qz-back { from { opacity: 0; transform: translateX(-18px); } }

.hero-ask .qz-head { margin-bottom: 20px; }
.hero-ask .qz-head h2 { max-width: 17ch; }
.qz-q:focus { outline: none; }
.qz-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Answer cards: artwork on top, label below, like a small "What we fund" tile */
.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qz-opt {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px rgba(17,17,17,.1);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.qz-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.qz-svg { width: 78%; height: 84%; overflow: visible; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.qz-label { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px 13px; }
.qz-label b { font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; }
.qz-label small { font-size: 12.5px; color: var(--mute); line-height: 1.3; }
.qz-opt::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.16,1,.3,1); }
.qz-opt.on::after { opacity: 1; transform: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.qz-opt.on { box-shadow: 0 0 0 2px var(--ink), 0 18px 34px -24px rgba(44,28,18,.5); }
.qz-opt:focus-visible { outline: 3px solid var(--sun-1); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .qz-opt:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 0 0 1px rgba(17,17,17,.14), 0 22px 38px -26px rgba(44,28,18,.5); }
  .qz-opt:hover .qz-svg { transform: translateY(-3px) scale(1.04); }
}

/* Typographic art (amount / timing / ABN), in the voice of the GROW and NOW tiles */
.qz-word { font-weight: 800; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.045em; line-height: 1; font-style: italic; color: var(--ink); }
.qz-word small { font-size: .42em; font-style: normal; letter-spacing: -0.01em; margin-left: 4px; }
.qz-art.dark .qz-word { color: #fff; }

/* Q1: two big answers */
.qz-opts.two .qz-art { aspect-ratio: 4 / 3; }
.qz-opts.two .qz-label b { font-size: 17px; }
.qz-opt.muted .qz-art { filter: saturate(.4); }
.qz-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--mute); }

/* Optional notes step */
.hero-ask .qz-field { padding: 16px 18px; border: 1px solid rgba(17,17,17,.11); border-radius: 12px; background: #f2f0ea; }
.hero-ask .qz-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,116,52,.18); }
.hero-ask .qz-field textarea { min-height: 120px; padding: 0; font-size: 18px; }
.qz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.qz-row .go, .qz-form .go { min-height: 48px; padding-inline: 20px; }
.qz-link { border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.qz-link:hover { color: var(--ink); }

/* Result */
.qz-prod { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; padding: 12px; border-radius: 14px; background: #F2F0EA; box-shadow: 0 0 0 1px rgba(17,17,17,.08); }
.qz-prod .qz-art { border-radius: 10px; aspect-ratio: 4 / 3; }
.qz-prod .qz-svg { width: 84%; }
.qz-kick { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; color: #9c2f2f; line-height: 1.1; }
.qz-prod h2 { margin: 4px 0 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.qz-why { margin: 16px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.qz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.qz-tags li { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #ECE9E1; }
.qz-also { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FFF3DC; font-size: 14px; }
.qz-also b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.qz-also p { margin: 2px 0 0; color: var(--ink-2); }
.qz-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(17,17,17,.08); }
.qz-form-h { margin: 0 0 10px; font-weight: 750; font-size: 16px; }
.qz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.qz-fields input { min-height: 46px; padding: 0 14px; border: 1px solid rgba(17,17,17,.14); border-radius: 10px; background: #F7F6F2; font-size: 15px; outline: 0; }
.qz-fields input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,116,52,.18); background: #fff; }
.qz-fields input.bad { border-color: #D1321D; box-shadow: 0 0 0 3px rgba(209,50,29,.14); }
.qz-form .go { width: 100%; }
.qz-small { margin: 10px 0 0; font-size: 12px; color: var(--mute); }

/* End states */
.qz-end { padding: 8px 0 0; }
.qz-end h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.qz-end p { margin: 14px 0 18px; color: var(--ink-2); font-size: 16px; max-width: 44ch; }

@media (max-width: 1040px) {
  .qz-label b { font-size: 14px; }
}
@media (max-width: 700px) {
  .qz-stage { min-height: 0; }
  .qz-bar { margin-bottom: 20px; }
  .hero-ask .qz-head h2 { font-size: 30px; }
  .qz-opts { gap: 10px; }
  .qz-label { padding: 9px 10px 11px; }
  .qz-label b { font-size: 13.5px; }
  .qz-label small { font-size: 11.5px; }
  .qz-svg { width: 86%; }
  .qz-word { font-size: 30px; }
  .qz-opts.two .qz-label b { font-size: 15px; }
  .qz-prod { grid-template-columns: 110px 1fr; gap: 12px; padding: 10px; }
  .qz-kick { font-size: 17px; }
  .qz-prod h2 { font-size: 22px; }
  .qz-fields { grid-template-columns: 1fr; }
  .hero-ask .qz-field textarea { font-size: 16px; }
  .qz-row .go { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-stage, .qz-opt, .qz-svg, .qz-bar i { animation: none !important; transition: none !important; }
}
.qz-label b, .qz-label small { text-wrap: balance; }

/* v5.1: state picker and multi-select (LenderIQ-aligned flow) */
.qz-select-wrap { position: relative; }
.qz-select {
  width: 100%; min-height: 56px; padding: 0 48px 0 18px; appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(17,17,17,.14); border-radius: 12px; background: #F7F6F2; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; outline: 0;
}
.qz-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,116,52,.18); background: #fff; }
.qz-select-wrap::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.qz-opts.multi .qz-opt::after { border-radius: 6px; opacity: 1; transform: none; background: #fff; box-shadow: 0 0 0 2px rgba(17,17,17,.25); }
.qz-opts.multi .qz-opt.on::after { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: 0 0 0 2px var(--ink); }
.go:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.go:disabled:hover { background: var(--ink); color: #fff; }

/* v5.2: text box in front, tiles only for what the sentence left out */
#askPanel[hidden], #quiz[hidden] { display: none; }
.qz-you { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: #9c2f2f; }
.qz-you .qz-edit { font-family: var(--system); font-style: normal; font-size: 13px; color: var(--ink-2); margin-left: 6px; vertical-align: 2px; }
@media (max-width: 700px) { .qz-you { font-size: 17px; } }

/* v5.3: the result page delivers the options before the form */
.qz-h3 { margin: 22px 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.qz-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-ways li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(17,17,17,.08); }
.qz-ways li.lead { box-shadow: 0 0 0 2px var(--ink); }
.qz-way-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--bg); overflow: hidden; }
.qz-way-art .qz-svg { width: 84%; height: 84%; }
.qz-ways b { display: block; font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.qz-ways i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--sun-1); color: #fff; vertical-align: 2px; margin-left: 4px; }
.qz-ways small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.qz-look { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.qz-look li { position: relative; padding: 9px 12px 9px 34px; border-radius: 10px; background: #F2F0EA; font-size: 14px; line-height: 1.4; }
.qz-look li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink) inset; }
.qz-look li.note { background: #FFF3DC; }
.qz-look li.note::before { background: var(--sun-3); }
.qz-form { margin-top: 22px; padding: 18px; border-radius: 14px; background: var(--ink); color: #fff; border: 0; }
.qz-form-h { color: #fff; font-size: 18px; letter-spacing: -0.02em; }
.qz-form-p { margin: -4px 0 14px; font-size: 14px; line-height: 1.45; color: #CFCBC1; max-width: 56ch; }
.qz-fields input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.qz-fields input::placeholder { color: #9A968C; }
.qz-fields input:focus { background: rgba(255,255,255,.14); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,138,61,.3); }
.qz-form .go { background: var(--sun-1); color: var(--ink); }
.qz-form .go:hover { background: #fff; }
.qz-next { margin: 4px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 46ch; }
.qz-next li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #F2F0EA; font-size: 14px; }
.qz-next b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #9c2f2f; }
@media (max-width: 700px) {
  .qz-ways li { grid-template-columns: 56px 1fr; }
  .qz-next li { grid-template-columns: 1fr; gap: 2px; }
}

#quiz[data-sent] .qz-edit { display: none; }
.qz-tags { margin-top: 2px; }

.qz-form-h { font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; }
.qz-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 12px; color: #CFCBC1; }
.qz-trust span { position: relative; padding-left: 14px; }
.qz-trust span::before { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* v5.4: once the tiles are running, the hero copy sits level with the card instead of floating mid-void */
.hero-layout.is-quiz { align-items: start; }
.hero-layout.is-quiz .hero-copy { padding-top: 38px; }
@media (max-width: 700px) { .hero-layout.is-quiz .hero-copy { padding-top: 0; } }

/* Compact result state */
.qz-result .qz-prod { grid-template-columns: 104px 1fr; gap: 14px; padding: 10px; }
.qz-result .qz-kick { font-size: 17px; }
.qz-result .qz-prod h2 { font-size: clamp(21px, 2vw, 27px); }
.qz-result .qz-h3 { margin: 14px 0 8px; font-size: 11.5px; }
.qz-ways { gap: 6px; }
.qz-ways li { grid-template-columns: 48px 1fr; gap: 10px; padding: 6px 10px 6px 6px; }
.qz-ways b { font-size: 14px; }
.qz-ways small { font-size: 12.5px; line-height: 1.3; }
.qz-ways i { font-size: 10px; padding: 1px 6px; }
.qz-look { margin-top: 0; }
.qz-look li { padding: 7px 10px 7px 30px; font-size: 13px; }
.qz-look li::before { top: 11px; }
.qz-form { margin-top: 14px; padding: 14px 16px 12px; }
.qz-form-h { font-size: 19px; margin-bottom: 6px; }
.qz-form-p { font-size: 13px; margin: -2px 0 10px; }
.qz-fields { gap: 6px; margin-bottom: 8px; }
.qz-fields input { min-height: 40px; font-size: 14px; }
.qz-form .go { min-height: 42px; }
.qz-trust { margin-top: 8px; font-size: 11.5px; gap: 4px 12px; }
.qz-result .qz-small { margin-top: 8px; font-size: 11.5px; }
@media (max-width: 700px) {
  .qz-result .qz-prod { grid-template-columns: 96px 1fr; }
  .qz-ways li { grid-template-columns: 48px 1fr; }
}

/* v5.5: details before results; the result screen is the reward */

.qz-thanks { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.qz-prod-h { margin: 4px 0 0; font-size: clamp(21px, 2vw, 27px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.qz-result .qz-next { margin: 0 0 6px; max-width: none; }
.qz-result .qz-next li { grid-template-columns: 128px 1fr; font-size: 13.5px; }
.qz-result .qz-link { margin-top: 10px; }
#quiz[data-step="result"] .qz-back { display: none; }
@media (max-width: 700px) { .qz-result .qz-next li { grid-template-columns: 1fr; } }

/* v5.6: contact step in the same language as the tiles */
.qz-cfields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-cfields label { display: flex; flex-direction: column; gap: 6px; }
.qz-cfields span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: -0.005em; }
.qz-cfields input {
  min-height: 50px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; outline: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px rgba(17,17,17,.12);
  transition: box-shadow .15s;
}
.qz-cfields input:hover { box-shadow: 0 0 0 1px rgba(17,17,17,.22); }
.qz-cfields input:focus { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px rgba(255,116,52,.22); }
.qz-cfields input.bad { box-shadow: 0 0 0 2px #D1321D, 0 0 0 5px rgba(209,50,29,.14); }
.qz-contact .qz-row { margin-top: 18px; align-items: center; }
.qz-contact .go { min-height: 48px; padding-inline: 20px; }
.qz-privacy { font-size: 12.5px; color: var(--mute); max-width: 30ch; line-height: 1.35; }
.qz-assure { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid rgba(17,17,17,.08); font-size: 12.5px; color: var(--ink-2); }
.qz-assure li { position: relative; padding-left: 16px; }
.qz-assure li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink) inset; }
@media (max-width: 700px) {
  .qz-cfields { grid-template-columns: 1fr; gap: 10px; }
  .qz-contact .qz-row { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .qz-privacy { max-width: none; }
  .qz-contact .go { width: 100%; }
}

/* ==========================================================================
   v5.7: vibrancy pass + results page in the home page's language
   ========================================================================== */
.qz-svg { width: 84%; height: 88%; filter: drop-shadow(5px 5px 0 rgba(17,17,17,.9)); }
.qz-art.dark .qz-svg { filter: drop-shadow(5px 5px 0 rgba(255,255,255,.28)); }
.qz-art { position: relative; }
.qz-art::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 62%; height: 10%; border-radius: 50%; background: rgba(17,17,17,.12); transform: translateX(-50%); }
.qz-art.dark::before { background: rgba(255,255,255,.1); }
.qz-opt .qz-label b { font-size: 15.5px; }
.qz-opts.two .qz-art { aspect-ratio: 4 / 3; }

/* Results */
.qz-thanks { margin: 0 0 14px; font-size: clamp(28px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.qz-thanks em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: #9c2f2f; font-size: 1.08em; }
.qz-hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 12px; min-height: 210px; padding: 22px 8px 22px 22px; border-radius: 14px; background: var(--bg); overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px rgba(17,17,17,.1); }
.qz-hero .qz-kick { font-size: 20px; color: #9c2f2f; }
.qz-hero.dark .qz-kick { color: var(--sun-3); }
.qz-hero h2 { margin: 4px 0 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: .98; text-wrap: balance; }
.qz-hero p { margin: 0; font-size: 13.5px; line-height: 1.4; color: rgba(17,17,17,.78); max-width: 34ch; }
.qz-hero.dark { color: #fff; } .qz-hero.dark p { color: rgba(255,255,255,.8); }
.qz-hero-art { display: grid; place-items: center; height: 100%; }
.qz-hero-art .qz-svg { width: 92%; height: auto; max-height: 170px; filter: drop-shadow(6px 6px 0 rgba(17,17,17,.9)); }
.qz-hero.dark .qz-hero-art .qz-svg { filter: drop-shadow(6px 6px 0 rgba(255,255,255,.28)); }
.qz-result .qz-tags { margin-top: 10px; }
.qz-result .qz-tags li { background: #fff; box-shadow: 0 0 0 1px rgba(17,17,17,.12); }
.qz-h2 { margin: 24px 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.qz-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: #9c2f2f; font-size: 1.08em; }
.qz-alts .qz-opt.static { cursor: default; }
.qz-alts .qz-opt.static::after { display: none; }
.qz-alts .qz-art { aspect-ratio: 16 / 8; }
.qz-alts .qz-label b { font-size: 15px; }
.qz-result .qz-look { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.qz-result .qz-look li { padding: 12px 12px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(17,17,17,.1); font-size: 13px; line-height: 1.38; }
.qz-result .qz-look li::before { display: none; }
.qz-result .qz-look li b { display: block; margin-bottom: 4px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em; }
.qz-result .qz-look li.note { grid-column: 1 / -1; background: var(--lime); box-shadow: 0 0 0 1px rgba(17,17,17,.14); }
.qz-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qz-facts li { padding: 14px 14px 12px; border-radius: 12px; background: var(--ink); color: #fff; }
.qz-facts b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: .95; color: var(--sun-3); margin-bottom: 8px; }
.qz-facts span { font-size: 12.5px; line-height: 1.4; color: #E4E0D6; }
.qz-result .qz-small { margin-top: 12px; }
.qz-result .qz-link { margin-top: 8px; }
@media (max-width: 700px) {
  .qz-hero { grid-template-columns: 1fr; padding: 18px; min-height: 0; }
  .qz-hero-art { height: 150px; }
  .qz-hero-art .qz-svg { max-height: 130px; }
  .qz-result .qz-look, .qz-facts { grid-template-columns: 1fr; }
  .qz-alts .qz-art { aspect-ratio: 16 / 9; }
}

.qz-thanks { text-wrap: balance; }
.qz-art::before { bottom: 9%; width: 58%; height: 9%; background: rgba(17,17,17,.16); }

.qz-facts b { font-size: 30px; margin-bottom: 6px; }
.qz-facts strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.qz-facts span { display: block; }

/* Hero card: white text on the saturated backgrounds, with a soft shade behind the copy */
.qz-hero.white { color: #fff; background: linear-gradient(90deg, rgba(17,17,17,.22), rgba(17,17,17,0) 62%), var(--bg); }
.qz-hero.white p { color: rgba(255,255,255,.9); }
.qz-hero.white .qz-kick { color: #FFE7DB; }
.qz-hero.dark { background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0) 62%), var(--bg); }

/* Second pass (Jev): a short reply above the tiles when the sentence was a question; button shows it's reading */
.qz-reply { margin: -6px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--lime); font-size: 14px; line-height: 1.4; box-shadow: 0 0 0 1px rgba(17,17,17,.12); }
.qz-reply[hidden] { display: none; }
.go.busy { opacity: .7; cursor: progress; }

/* ==========================================================================
   Fixed-size finder box (desktop/tablet): same height on every question,
   lined up with the hero copy. Answer tiles flex to fit instead of growing
   the box. The results screen is a long read, so it's allowed to expand.
   ========================================================================== */
@media (min-width: 701px) {
  .hero-layout.is-quiz { align-items: stretch; }
  .hero-layout.is-quiz .hero-copy { padding-top: 0; display: flex; flex-direction: column; justify-content: center; }
  .hero-ask.quiz { height: var(--finder-h, 592px); display: flex; flex-direction: column; }
  .hero-ask.quiz #quiz { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .hero-ask.quiz .qz-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .hero-ask.quiz .qz-head { flex: none; }
  .hero-ask.quiz .qz-opts { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  .hero-ask.quiz .qz-opt { min-height: 0; }
  .hero-ask.quiz .qz-opt .qz-art { flex: 1; min-height: 56px; aspect-ratio: auto; }
  .hero-ask.quiz .qz-opt .qz-label { flex: none; }
  .hero-ask.quiz .qz-svg { width: auto; height: 78%; max-width: 78%; }
  .hero-ask.quiz .qz-word { font-size: clamp(26px, 2.6vw, 40px); }
  /* results: let the box grow with the content */
  .hero-ask.quiz:has(#quiz[data-sent]), .hero-ask.quiz:has(.qz-result) { height: auto; }
  .hero-ask.quiz:has(.qz-result) .qz-stage { overflow: visible; }
}
.qz-q:focus { outline: none; }
@media (min-width: 701px) {
  .hero-ask.quiz .qz-head h2 { max-width: none; font-size: clamp(24px, 2.2vw, 31px); }
  .hero-ask.quiz .qz-head { margin-bottom: 16px; }
}
