/* Coffee Finder quiz */
.qz { background: #fff; min-height: calc(100vh - 110px); padding: 34px 0 70px; }
.qz-in { max-width: 920px; }
.qz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.qz-back { background: none; border: 0; font-weight: 700; color: var(--ink); padding: 8px 4px; border-radius: 8px; }
.qz-back:hover { color: var(--ember); }
.qz-back[hidden] { display: inline-block; visibility: hidden; }
.qz-prog { flex: 1; height: 8px; background: rgba(28, 14, 18, .1); border-radius: 99px; overflow: hidden; }
.qz-prog i { display: block; height: 100%; width: 0; background: var(--ember); border-radius: 99px; transition: width .35s ease; }
.qz-count { font-size: .85rem; font-weight: 700; color: var(--ink-2); min-width: 44px; text-align: right; }
.qz-stage { text-align: center; animation: qzIn .3s ease; }
@keyframes qzIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qz-stage h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.qz-stage .sub { color: var(--ink-2); margin: 0 auto 30px; max-width: 520px; }
.qz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.qz-opts.n2 { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.qz-opts.n3 { grid-template-columns: repeat(3, 1fr); }
.qz-opt { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; padding: 26px 16px 22px; display: grid; justify-items: center; gap: 6px; color: var(--ink); text-align: center; transition: .15s; box-shadow: 0 2px 0 rgba(28, 14, 18, .05); }
.qz-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qz-opt:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.qz-opt.on { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.qz-opt .ic { font-size: 2.4rem; line-height: 1; }
.qz-opt b { font-family: var(--ui); font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.qz-opt small { color: var(--ink-2); font-size: .85rem; }
.qz-opt .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ember); color: #fff; font-size: .75rem; display: none; place-items: center; }
.qz-opt.on .tick { display: grid; }
.qz-next { margin-top: 28px; min-width: 220px; }
.qz-email { max-width: 460px; margin: 0 auto; display: grid; gap: 12px; }
.qz-email input { border: 1.5px solid var(--line); border-radius: 999px; padding: 15px 20px; font: inherit; background: #fff; }
.qz-email input:focus { outline: 2px solid var(--forest); border-color: transparent; }
.qz-skip { background: none; border: 0; text-decoration: underline; color: var(--ink-2); font-weight: 600; padding: 8px; }
.qz-load { padding: 60px 0; display: grid; justify-items: center; gap: 16px; color: var(--ink-2); }
.qz-load .spin { width: 34px; height: 34px; border-color: rgba(28, 14, 18, .15); border-top-color: var(--ember); }

/* results */
.qz-res { text-align: left; }
.qz-res-head { text-align: center; margin-bottom: 26px; }
.qz-res-head .answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.qz-res-head .answers span { background: #fff; border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }
.qz-best { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.qz-best .card { border-radius: 0; box-shadow: none; }
.qz-best .card:hover { box-shadow: none; }
.qz-best .why { background: var(--forest); color: #f8f4ec; padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.qz-best .why h2 { color: #fff; margin: 0; }
.qz-best .why .eyebrow { color: var(--gold); }
.qz-best .why ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.qz-best .why li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.qz-match { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.qz-also { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.qz-also .why-line { font-size: .88rem; color: var(--forest); font-weight: 600; background: #eefcfd; border-radius: 10px; padding: 8px 12px; }
.qz-h3 { margin: 40px 0 14px; }
.qz-banner { margin-top: 36px; background: var(--ember); color: #fff; border-radius: 8px; padding: 26px 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.qz-banner h3 { margin: 0; color: #fff; }
.qz-banner p { margin: 4px 0 0; opacity: .92; }
.qz-banner .btn { margin-left: auto; background: var(--ink); }
.qz-banner .btn:hover { background: #000; }
.qz-banner .thumbs3 { display: flex; }
.qz-banner .thumbs3 img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -14px; background: var(--sand); }
.qz-banner .thumbs3 img:first-child { margin-left: 0; }
.qz-retake { text-align: center; margin-top: 26px; }
.qz-empty { text-align: center; padding: 40px 0; }

@media (max-width: 760px) {
  .qz { padding-top: 22px; }
  .qz-top { margin-bottom: 22px; }
  .qz-opts, .qz-opts.n3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qz-opts.n2 { grid-template-columns: 1fr 1fr; }
  .qz-opt { padding: 18px 10px 16px; border-radius: 8px; }
  .qz-opt .ic { font-size: 2rem; }
  .qz-opt b { font-size: 1.05rem; }
  .qz-best, .qz-also { grid-template-columns: 1fr; }
  .qz-best .why { padding: 24px; }
  .qz-banner { padding: 22px; }
  .qz-banner .btn { margin-left: 0; width: 100%; }
}

/* guard: shared footer grid overflows ~11px at 390px (joy.css) — keep this page within the viewport */
.ftr-grid > * { min-width: 0; }
.news input { min-width: 0; width: 100%; }
