/* /app/welcome: one glass card per question over drifting colour. Colours from tokens.css via app.css.
   Red is reserved (primary call to action, true alerts), so the decoration is navy and its tints. */
.wq { position: relative; max-width: 760px; margin: 0 auto; padding: 28px 0 40px; min-height: calc(100vh - 56px); display: flex; flex-direction: column; }
.wq-blobs { position: fixed; left: 0; right: 0; top: 56px; bottom: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.wq-blob { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: 0.75; will-change: transform; }
.wq-blob-a { width: 520px; height: 520px; left: -120px; top: -140px; background: radial-gradient(circle at 40% 40%, rgba(30, 79, 163, 0.30), rgba(30, 79, 163, 0) 70%); }
.wq-blob-b { width: 620px; height: 620px; right: -200px; top: 40px; background: radial-gradient(circle at 50% 50%, rgba(10, 49, 97, 0.42), rgba(10, 49, 97, 0) 70%); }
.wq-blob-c { width: 460px; height: 460px; left: 30%; bottom: -220px; background: radial-gradient(circle at 50% 50%, rgba(23, 120, 200, 0.30), rgba(23, 120, 200, 0) 70%); }

.wq-top { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.wq-steps { display: flex; gap: 6px; flex: 1; }
.wq-seg { flex: 1; height: 6px; border-radius: 3px; background: rgba(10, 49, 97, 0.12); overflow: hidden; }
.wq-seg > i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--navy), var(--s-navy-2)); }
.wq-count { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }

.wq-stage { position: relative; }
.wq-card {
  position: relative; border-radius: var(--s-radius-xl); padding: 28px 30px 24px;
  background: var(--s-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--s-glass-edge);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 30px 80px rgba(10, 49, 97, 0.16), 0 2px 8px rgba(10, 49, 97, 0.06);
}
.wq-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(30, 79, 163, 0.45), transparent); }
.wq-card.wq-leaving { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.wq-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wq-num { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; color: var(--s-navy-2); }
.wq-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--s-navy-text); background: linear-gradient(135deg, rgba(30, 79, 163, 0.14), rgba(10, 49, 97, 0.14)); border: 1px solid rgba(255, 255, 255, 0.8); }
.wq-svg { display: inline-grid; place-items: center; }
.wq-icon svg { width: 24px; height: 24px; }
.wq-title { margin: 0 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; color: var(--s-navy-text); }
.wq-hint { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.wq-body { min-height: 120px; }

.wq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wq-opt {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 15px; font-weight: 500;
  padding: 13px 14px; border-radius: 14px; cursor: pointer; color: var(--ink);
  background: var(--s-glass-opt); border: 1px solid rgba(10, 49, 97, 0.14);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.wq-opt:hover { background: var(--s-glass-strong); border-color: rgba(10, 49, 97, 0.35); box-shadow: 0 8px 20px rgba(10, 49, 97, 0.08); }
.wq-opt:focus-visible { outline: 3px solid rgba(23, 120, 200, 0.45); outline-offset: 2px; }
.wq-opt[aria-pressed="true"] { background: var(--navy); border-color: var(--s-navy-text); color: var(--s-on-fill); box-shadow: 0 12px 28px rgba(10, 49, 97, 0.28); }
.wq-opt-other { border-style: dashed; color: var(--muted); }
.wq-key { flex: 0 0 auto; min-width: 24px; height: 24px; display: grid; place-items: center; font: 600 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; border-radius: 6px; background: rgba(10, 49, 97, 0.08); color: var(--s-navy-text); border: 1px solid rgba(10, 49, 97, 0.12); }
.wq-opt[aria-pressed="true"] .wq-key { background: rgba(255, 255, 255, 0.18); color: var(--s-on-fill); border-color: rgba(255, 255, 255, 0.3); }
.wq-opt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-opt .wq-svg { width: 22px; height: 22px; opacity: 0; transition: opacity 0.15s; }
.wq-opt .wq-svg svg { width: 22px; height: 22px; }
.wq-opt[aria-pressed="true"] .wq-svg { opacity: 1; }
.wq-none { grid-column: 1 / -1; margin: 0; padding: 6px 2px; color: var(--muted); font-size: 14px; }
.wq-search { font: inherit; font-size: 15px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(10, 49, 97, 0.25); background: var(--s-glass-opt); color: var(--ink); }
.wq-search:focus { outline: none; border-style: solid; border-color: var(--s-navy-text); background: var(--s-glass-strong); box-shadow: 0 0 0 4px rgba(10, 49, 97, 0.10); }

.wq-hours { display: flex; flex-direction: column; gap: 10px; }
.wq-readout { display: flex; align-items: baseline; gap: 10px; }
.wq-big { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--s-navy-text); font-variant-numeric: tabular-nums; }
.wq-unit { color: var(--muted); font-size: 16px; }
.wq-month { margin: 0 0 8px; color: var(--s-navy-2); font-weight: 600; font-size: 14px; min-height: 1.4em; }
.wq-range { --pct: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 5px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--navy) 0, var(--s-navy-2) var(--pct), rgba(10, 49, 97, 0.14) var(--pct)); }
.wq-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--s-surface); border: 3px solid var(--navy); box-shadow: 0 6px 16px rgba(10, 49, 97, 0.3); }
.wq-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--s-surface); border: 3px solid var(--navy); box-shadow: 0 6px 16px rgba(10, 49, 97, 0.3); }
.wq-range:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(23, 120, 200, 0.45); outline-offset: 2px; }
.wq-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.wq-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.wq-actions button { font: inherit; font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: var(--s-radius); cursor: pointer; }
.wq-back { background: transparent; color: var(--s-navy-text); border: 1px solid rgba(10, 49, 97, 0.22); }
.wq-back:hover { background: var(--s-glass-edge); }
.wq-tip { flex: 1; font-size: 12px; color: var(--muted); }
.wq-next { background: var(--navy); color: var(--s-on-fill); border: 1px solid var(--navy); box-shadow: 0 12px 26px rgba(10, 49, 97, 0.26); }
.wq-next:hover:not([disabled]) { background: var(--s-navy-2); transform: translateY(-1px); }
.wq-actions button[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.wq-actions button[hidden] { display: none; }
.wq-error { min-height: 1.4em; margin: 10px 0 0; color: var(--red); font-size: 14px; text-align: center; }
.wq-skip { align-self: center; margin-top: 10px; font: inherit; font-size: 14px; background: transparent; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 10px; }
.wq-skip:hover { color: var(--s-navy-text); }

.wq-done { text-align: center; padding: 44px 30px; }
.wq-ring { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 14px; color: var(--ok); }
.wq-ring svg { width: 84px; height: 84px; }

@media (max-width: 640px) {
  .wq { padding: 18px 0 28px; }
  .wq-card { padding: 22px 18px 18px; border-radius: 18px; }
  .wq-title { font-size: 24px; }
  .wq-grid { grid-template-columns: 1fr; }
  .wq-key { display: none; }
  .wq-tip { display: none; }
  .wq-big { font-size: 52px; }
  .wq-blob { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .wq-opt, .wq-next { transition: none; }
}
