/* /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); }
/* Ben, Oct 15: the Demo answer leads both system questions with a soft ring that breathes until it is picked; still
   under reduced motion, where the ring simply stands */
.wq-opt-demo { border-color: rgba(23, 120, 200, 0.5); box-shadow: 0 0 0 3px rgba(23, 120, 200, 0.12); }
.wq-opt-demo:not([aria-pressed="true"]) { animation: wq-breathe 2.4s ease-in-out infinite; }
.wq-opt-logo { flex: 0 0 auto; width: 22px; height: 22px; }
@keyframes wq-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 120, 200, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(23, 120, 200, 0); }
}
@media (prefers-reduced-motion: reduce) { .wq-opt-demo:not([aria-pressed="true"]) { animation: none; } }
.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); }

/* The portal's welcome as chips (Ben, Nov 9 2026: one question over centred, bordered chips, each with its tool's
   logo, fading in one by one, row by row; src/portal/welcome-chips.js). A plain white page: STRYKE's mark stands for
   the header's logo, and the glass, the blobs and the card's number and icon are gone. */
body:has(.wq-chips) { background: var(--s-surface); }
body:has(.wq-chips) .top { background: transparent; border-bottom-color: transparent; }
body:has(.wq-chips) .top .brand { visibility: hidden; }
.wq-chips { max-width: 1000px; padding: 48px 16px 48px; align-items: center; text-align: center; }
.wq-mark { display: block; width: 72px; margin: 0 auto 22px; }
.wq-mark svg, .wq-load-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.wq-chips .wq-top { width: 132px; margin: 0 auto 34px; }
.wq-chips .wq-steps { gap: 4px; }
.wq-chips .wq-seg { height: 4px; }
.wq-chips .wq-count, .wq-chips .wq-tip { display: none; }
.wq-chips .wq-stage { width: 100%; }
.wq-chips .wq-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wq-chips .wq-card::before { content: none; }
.wq-chips .wq-title { max-width: 640px; margin: 0 auto 8px; font-size: 28px; font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; color: var(--s-ink); }
.wq-chips .wq-hint { max-width: 560px; margin: 0 auto 32px; font-size: 15px; }
.wq-chips .wq-body { min-height: 0; }
.wq-chips .wq-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 920px; margin: 0 auto; }
.wq-chips .wq-opt {
  flex: 0 0 auto; gap: 14px; min-height: 66px; padding: 14px 22px; border-radius: 6px;
  background: var(--s-surface); border: 1px solid var(--s-line); color: var(--s-ink);
  font-size: 18px; font-weight: 400; letter-spacing: 0.01em; box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background-color 0.15s;
}
.wq-chips .wq-opt:hover { background: var(--s-surface); border-color: rgba(10, 49, 97, 0.4); box-shadow: 0 6px 18px rgba(10, 49, 97, 0.08); transform: translateY(-1px); }
.wq-chips .wq-opt[aria-pressed="true"] { background: rgba(10, 49, 97, 0.05); border-color: var(--s-navy); color: var(--s-navy-text); box-shadow: 0 0 0 1px var(--s-navy); }
.wq-chips .wq-opt-label { flex: 0 1 auto; overflow: visible; }
.wq-chips .wq-opt-other { border-style: solid; color: var(--s-ink); }
.wq-chips .wq-opt-demo:not([aria-pressed="true"]) { border-color: rgba(23, 120, 200, 0.5); }
.wq-chip-logo { flex: 0 0 auto; width: 26px; height: 26px; object-fit: contain; }
.wq-chip-mono { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: rgba(10, 49, 97, 0.08); color: var(--s-navy-text); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.wq-chip-radio { position: relative; flex: 0 0 auto; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid #b4b9c1; transition: border-color 0.15s; }
.wq-chip-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--s-navy); transform: scale(0); transition: transform 0.18s ease-out; }
.wq-opt[aria-pressed="true"] .wq-chip-radio { border-color: var(--s-navy); }
.wq-opt[aria-pressed="true"] .wq-chip-radio::after { transform: scale(1); }
/* chosen: a small navy check on the chip's corner (a round mark is its own check) */
.wq-chips .wq-opt .wq-svg { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--s-navy); color: var(--s-on-fill); }
.wq-chips .wq-opt .wq-svg svg { width: 13px; height: 13px; }
.wq-chips .wq-opt:has(.wq-chip-radio) .wq-svg { display: none; }
.wq-chips .wq-none { flex-basis: 100%; text-align: center; }
.wq-chips .wq-search { display: block; max-width: 420px; margin: 28px auto 0; border-radius: 6px; text-align: center; background: var(--s-surface); border-color: var(--s-line); }
.wq-chips .wq-search[type="tel"] { max-width: 340px; margin-top: 0; font-size: 18px; border-style: solid; }
.wq-chips .wq-search:focus { background: var(--s-surface); }
.wq-chips .wq-month { margin-top: 10px; color: var(--muted); font-weight: 400; }
.wq-chips .wq-actions { justify-content: center; margin-top: 36px; }
.wq-chips .wq-back { border-color: transparent; color: var(--muted); }
.wq-chips .wq-back:hover { background: none; color: var(--s-navy-text); }
.wq-chips .wq-next { padding: 12px 30px; border-radius: 6px; box-shadow: none; }
.wq-chips .wq-skip { margin-top: 30px; }

/* The loading screen after Finish: the mark's harpoons fly in and shuttle while each line takes its turn */
.wq-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 56vh; }
.wq-load-mark { display: block; width: 124px; }
.wq-load-line { margin: 0; min-height: 1.5em; font-size: 21px; font-weight: 600; letter-spacing: -0.005em; color: var(--s-ink); }
.wq-load-bar { width: 220px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(10, 49, 97, 0.1); }
.wq-load-bar > i { display: block; height: 100%; background: var(--s-navy); transform: scaleX(0); transform-origin: 0 50%; }

@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); }
  .wq-chips { padding-top: 24px; }
  .wq-mark { width: 60px; margin-bottom: 16px; }
  .wq-chips .wq-top { margin-bottom: 24px; }
  .wq-chips .wq-title { font-size: 23px; }
  .wq-chips .wq-hint { margin-bottom: 22px; }
  .wq-chips .wq-grid { gap: 10px; }
  .wq-chips .wq-opt { min-height: 52px; max-width: 100%; padding: 10px 14px; gap: 10px; font-size: 16px; }
  .wq-chips .wq-opt-label { white-space: normal; text-align: left; }
  .wq-chip-logo, .wq-chip-mono { width: 22px; height: 22px; }
  .wq-load-line { font-size: 18px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wq-opt, .wq-next, .wq-chip-radio, .wq-chip-radio::after { transition: none; }
  .wq-chips .wq-opt:hover { transform: none; }
}
