/* The quiz (/start) in the new look (PAGES_V2): the road-signs type, colors and cards over start.css's layout.
   Every rule sits under .rdq (the quiz's own box), so nothing else on the page changes. */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('/public/fonts/big-shoulders-display-800.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-weight: 400; font-display: swap; src: url('/public/fonts/libre-franklin-400.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-weight: 600; font-display: swap; src: url('/public/fonts/libre-franklin-600.woff2') format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-weight: 700; font-display: swap; src: url('/public/fonts/libre-franklin-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url('/public/fonts/ibm-plex-mono-600.woff2') format('woff2'); }

body:has(.rdq) { background: #f4f5f3; }
.rdq { font-family: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #12161b; -webkit-font-smoothing: antialiased; }
.rdq button, .rdq input { font-family: inherit; }

/* Progress: short lane marks, green for this screen, asphalt for the ones done. */
.rdq .quiz-progress { gap: 6px; }
.rdq .quiz-progress .dot { width: 22px; height: 6px; border-radius: 2px; background: #d8dbd6; transform: none; }
.rdq .quiz-progress .dot.on { background: #0f7a43; transform: none; }
.rdq .quiz-progress .dot.done { background: #12161b; }

/* The live count: an asphalt strip. */
.rdq.qz3 .q3-live { padding: 10px 16px; border: 0; border-radius: 6px; background: #0e1216; color: #fff; }
.rdq.qz3 .q3-live .n { font-family: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif; font-weight: 800; font-size: clamp(30px, 6vw, 44px); color: #fff; }
.rdq.qz3 .q3-live .l { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9fb0c3; }

/* Questions. */
.rdq .q-title { font-family: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 58px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.rdq .q-sub { font-size: 18px; color: #3b4652; }
.rdq .q3-back { color: #3b4652; }
.rdq .q3-group { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 600; letter-spacing: .1em; color: #56616d; }

/* Answer cards: paper with a hard shadow; the pick turns blue. No emoji. */
.rdq .q-card { border: 2px solid #12161b; border-radius: 6px; transition: transform .12s ease, box-shadow .12s ease; }
.rdq .q-card:hover { border-color: #12161b; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #12161b; }
.rdq.qz3 .q-card.picked { border-color: #1f5fd0; background: #eef3fd; box-shadow: 4px 4px 0 #1f5fd0; }
.rdq .q-card .ic { display: none; }
.rdq .q-card strong { font-size: 17px; }
.rdq .q3-chip { border: 2px solid #12161b; border-radius: 4px; }
.rdq .q3-chip:hover { border-color: #1f5fd0; }
.rdq .q3-chip.on { border-color: #1f5fd0; background: #eef3fd; color: #123f96; }

/* The state map: picked states in the brand blue. */
.rdq .usmap path:hover, .rdq .usmap path:focus-visible { stroke: #12161b; }
.rdq .usmap path.on { fill: #1f5fd0; stroke: #123f96; }
.rdq .tile { border: 2px solid #12161b; border-radius: 4px; color: #12161b; }
.rdq .tile.on, .rdq.qz3 .tile.on { background: #1f5fd0; border-color: #1f5fd0; color: #fff; box-shadow: none; }

/* Buttons: green only for going forward. */
.rdq .btn { border-radius: 6px; font-weight: 700; }
.rdq .btn.go { background: #0f7a43; border-color: #0f7a43; color: #fff; }
.rdq .btn.go:hover:not(:disabled) { background: #0b6236; border-color: #0b6236; }
.rdq .btn.secondary { background: #fff; border: 2px solid #12161b; color: #12161b; }
.rdq .btn.secondary:hover { background: #12161b; color: #fff; }

/* The last screens: the offers, the email box, the envelope. */
.rdq .q3-offer { border: 2px solid #12161b; border-radius: 6px; }
.rdq .q3-offer.first, .rdq .q3-offer.pick.on { border: 2px solid #1f5fd0; box-shadow: 6px 6px 0 #1f5fd0; padding: 16px 18px; }
.rdq .q3-offer h2 { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 600; letter-spacing: .1em; color: #1f5fd0; }
.rdq .q3-offer p:first-of-type { color: #12161b; }
.rdq .q3-offer.on .rd { border-color: #1f5fd0; background: radial-gradient(circle, #1f5fd0 0 3px, transparent 4px); }
.rdq .q-unlock { border: 2px solid #0f7a43; border-radius: 6px; box-shadow: 6px 6px 0 #0f7a43; }
.rdq .q-emailrow input { border: 2px solid #12161b; border-radius: 6px; }
.rdq .rdq-mail { margin-bottom: 14px; }
.rdq .rdq-mail svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  .rdq .q-card { transition: none; }
  .rdq .q-card:hover { transform: none; }
}
