/* WeDoo quiz + plan page. Loads after site.css and uses its tokens. Flat tiles, hairlines, one tomato action. */
body.q { min-height: 100svh; display: flex; flex-direction: column; }
.qtop { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.qtop__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.qtop .logo { font-size: 26px; }
.qprog { display: flex; align-items: center; gap: 12px; flex: 0 1 220px; justify-content: flex-end; }
.qcount { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prog { flex: 0 1 140px; height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--tomato); transform: translateX(-94%); transition: transform .5s var(--ease); }
body.q.on-plan .prog, body.q.on-plan .qcount { visibility: hidden; }

.qmain { flex: 1; display: flex; overflow-x: clip; } /* steps slide in from the side; never let that widen the page on phones */
.qwrap { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 var(--gut); }
.qstage { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 48px; min-height: calc(100svh - 64px); }
@media (min-height: 760px) { .qstage { padding-bottom: 80px; } }

.qstep { animation: qin .4s var(--ease) both; }
.qstep.out { animation: qout .2s var(--ease) both; }
.qstep.back { animation-name: qinback; }
@keyframes qin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes qinback { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes qout { to { opacity: 0; transform: translateX(-12px); } }
@media (prefers-reduced-motion: reduce) { .qstep, .qstep.out, .qstep.back { animation: none; } }

.qstep [tabindex="-1"]:focus { outline: none; }
.qh { font-size: clamp(32px, calc(4vw + 18px), 44px); line-height: 1.05; letter-spacing: -0.02em; }
.qsub { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.qhello { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.qhello svg { width: 60px; height: auto; flex: none; }
.qhello p { font-weight: 500; font-size: 15px; color: var(--ink-2); line-height: 1.35; }

/* answer tiles */
.tiles { display: grid; gap: 8px; margin-top: 24px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
  min-height: 72px; padding: 12px 16px; text-align: left;
  background: var(--paper); border: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--hair-2);
  cursor: pointer; transition: transform .16s var(--ease), background-color .16s var(--ease);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent); }
  .qback:hover { color: var(--ink); }
}
.tile:active { transform: scale(.985); }
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.tile.picked { animation: picked .24s var(--ease); }
@keyframes picked { from { transform: scale(.985); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tile.picked { animation: none; } }
.tile__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); color: var(--ink-2); }
.tile__tx { flex: 1; min-width: 0; }
.tile__tx b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.tile__tx small { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); line-height: 1.35; }
.tile__ck { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair-2); background: var(--paper); color: var(--paper); display: grid; place-items: center; transition: background-color .16s var(--ease); }
.tile__ck svg { width: 14px; height: 14px; opacity: 0; transition: opacity .16s var(--ease); }
.tile[aria-pressed="true"] .tile__ck { background: var(--ink); box-shadow: none; }
.tile[aria-pressed="true"] .tile__ck svg { opacity: 1; }

.qnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; min-height: 56px; }
.qback { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none; font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; cursor: pointer; transition: color .16s var(--ease); }
.qnav .btn { min-height: 52px; padding: 0 28px; }

/* gate */
.field { display: grid; gap: 8px; margin-top: 16px; }
.field label { font-weight: 500; font-size: 15px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input { width: 100%; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 14px; background: var(--paper); font: inherit; font-size: 18px; color: var(--ink); outline: none; }
.field input:focus { border-color: var(--cobalt); outline: 3px solid color-mix(in srgb, var(--cobalt) 40%, transparent); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--tomato-ink); }
.field input[aria-invalid="true"]:focus { outline-color: color-mix(in srgb, var(--tomato) 35%, transparent); }
.qerr { min-height: 24px; margin-top: 12px; color: var(--tomato-ink); font-weight: 500; font-size: 15px; }
.gate .btn { width: 100%; margin-top: 8px; }
.fine { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* plan */
.plan-page { padding: 24px 0 128px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { padding: 8px 12px; border-radius: 8px; background: var(--raised); color: var(--ink-2); font-weight: 500; font-size: 14px; }
.rec { position: relative; margin-top: 96px; padding: 32px 24px; background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--hair); }
@media (min-width: 600px) { .rec { padding: 40px; } }
.rec h2 { font-size: clamp(28px, calc(2.4vw + 20px), 36px); line-height: 1.1; letter-spacing: -0.02em; }
.rec__price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.rec__price b { font-size: clamp(48px, 12vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--tomato); font-variant-numeric: tabular-nums; }
.rec__price span { font-size: 18px; font-weight: 500; color: var(--ink-2); }
.rec p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.rec .seg { margin-top: 20px; }
.rec__note { margin-top: 8px; font-size: 15px; color: var(--muted); }
.rec__clix { position: absolute; right: 24px; bottom: 100%; margin-bottom: -8px; width: 84px; pointer-events: none; }
.rec__clix svg { width: 100%; height: auto; }
.tl { margin-top: 16px; padding: 8px 24px; background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--hair); }
.tl div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; }
.tl div + div { border-top: 1px solid var(--hair); }
.tl small { grid-row: span 2; padding-top: 2px; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl b { font-size: 17px; font-weight: 600; line-height: 1.25; }
.tl p { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.pex { display: flex; gap: 12px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 4px var(--gut) 8px; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
.pex::-webkit-scrollbar { display: none; }
.pex figure { flex: none; margin: 0; scroll-snap-align: start; color: var(--ink); -webkit-user-select: none; user-select: none; }
.pex img { display: block; height: 200px; width: auto; aspect-ratio: 4 / 3; border-radius: var(--r-img); background: var(--line); box-shadow: 0 0 0 1px var(--hair); }
.pex figcaption { margin-top: 8px; font-weight: 500; font-size: 15px; }
.human { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 20px; background: var(--paper); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair); }
.human svg { width: 64px; flex: none; }
.human p { font-size: 16px; color: var(--ink-2); }
.human b { color: var(--ink); font-weight: 600; }
.go { margin-top: 32px; display: grid; gap: 12px; text-align: center; }
.go .btn { width: 100%; white-space: nowrap; padding: 0 20px; }
.go__fine { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 420px; justify-self: center; }
.go .alt { font-size: 15px; color: var(--ink-2); }
.go .alt button { min-height: 44px; border: 0; background: none; padding: 0 2px; font-weight: 600; color: var(--tomato-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: inherit; }
.done { text-align: center; }
.done svg.mascot { width: 180px; height: auto; margin: 0 auto 12px; }
.done h1 { font-size: clamp(36px, calc(5vw + 18px), 52px); line-height: 1.02; letter-spacing: -0.025em; }
.done p { margin: 16px auto 0; max-width: 36ch; font-size: 18px; color: var(--ink-2); }
.done .btn { margin-top: 32px; }
.pbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--hair); transform: translateY(110%); transition: transform .4s var(--ease); }
.pbar.is-on { transform: none; }
.pbar .btn { width: 100%; max-width: 560px; margin: 0 auto; display: flex; min-height: 52px; white-space: nowrap; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall 1.6s var(--ease) forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* lead not through yet: quiet status line under the message */
.done .done__status { font-size: 15px; color: var(--muted); margin-top: 12px; }

/* color back in the answers (2026-11-23): tinted icon tiles with a fine ink edge, mint check when picked */
.tile__ic { width: 48px; height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 16%, transparent); }
.tile[aria-pressed="true"] { background: #FFF6E0; }
.tile[aria-pressed="true"] .tile__ck { background: var(--mint); color: var(--ink); }
