/* gotaller.app — quiz theme (Midnight Growth), canvas 6izMZtnE2Jn7rUGH4Hp2Yk (docs/web-gotaller-quizzes-spec.md T2).
   quiz.css reads the --q-* tokens; the rules below restyle the chat, the computing screen, the
   result/plan chain and /quiz/success + /get onto the site's own palette (site.css vars). */
:root {
  --q-bg: #08080C;
  --q-paper: var(--card);
  --q-ink: var(--t);
  --q-ink2: var(--t2);
  --q-ink3: var(--t3);
  --q-line: rgba(255, 255, 255, .10);
  --q-line2: rgba(255, 255, 255, .07);
  --q-accent: var(--vio);
  --q-accent-ink: #fff;
  --q-accent-soft: rgba(124, 92, 255, .16);
  --q-accent-line: rgba(255, 255, 255, .12);
  --q-dark: var(--card2);
  --q-dark-2: var(--card2);
  --q-grow: var(--grn);
  --q-grow-soft: rgba(43, 245, 169, .14);
  --q-font-display: inherit;
  --q-font-body: inherit;
  --q-radius-card: 18px;
  --q-radius-btn: var(--r-btn);
  --q-bubble: var(--card);
  --q-bubble-me: var(--vio);
  --q-bubble-me-ink: #fff;
  --q-glass: rgba(255, 255, 255, .05);
}

.q-wrap { max-width: 520px; min-height: 0; padding: 14px 20px 20px; }

/* ---------- chat ---------- */
.q-chat-back { border-radius: 999px; background: var(--q-glass); border-color: var(--q-line); }
.q-chat-brand { font-size: 16px; letter-spacing: -.5px; }
.q-chat-brand span { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q-chat-brand img { width: 22px; height: 22px; border-radius: 6px; content: url("/img/apple-touch-icon.png"); }
.q-chat-top .q-count { color: var(--t2); }
.q-segs { display: none; } /* canvas: the counter alone carries progress */
.q-chat { gap: 10px; padding-top: 14px; min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); } /* pinned answer clears the bottom edge (A17 692px) */
.q-avatar { background: none; background-image: url("/img/apple-touch-icon.png"); background-size: 28px 28px; background-repeat: no-repeat; border-radius: 8px; }
.q-bubble { background: var(--card); border: 1px solid var(--q-line2); padding: 12px 14px; font-size: 15px; font-weight: 500; max-width: 270px; }
.q-bubble.q-bubble-q { font-size: 18px; font-weight: 700; }
.q-msg.me .q-bubble { border: 0; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.q-hint { color: var(--t2); }
.q-chat .q-body-single .q-opt { height: 48px; padding: 0 22px; background: var(--q-glass); border-color: var(--q-line); font-size: 16px; }
.q-chat .q-body-single .q-opt.sel { background: var(--vio); border-color: var(--vio); }
.q-chip-cta { height: 48px; padding: 0 22px; border: 0; font-size: 16px; background: var(--hero-grad); box-shadow: var(--glow-vio); }
.q-chat .q-body-dob, .q-chat .q-body-height, .q-chat .q-body-parent, .q-chat .q-body-extraHeight { border: 0; padding: 0; margin-top: 4px; }
.q-chat .seg { gap: 0; flex-wrap: nowrap; border: 1px solid var(--q-line); border-radius: 8px; overflow: hidden; width: max-content; }
.q-chat .seg label { flex: none; min-height: 0; padding: 6px 10px; border: 0; border-radius: 0; background: transparent; color: var(--t2); font-size: 12px; font-weight: 600; }
.q-chat .seg input:checked + label { background: #fff; color: var(--bg); border: 0; }
.q-chat .q-wheel { height: 176px; background: var(--card); border-color: var(--q-line); }
.q-chat .q-wheel-col { padding: 64px 8px; }
.q-chat .q-wheel-sel { background: var(--q-accent-soft); border: 1px solid var(--vio); box-shadow: none; }
.q-chat .q-wheel-it { color: var(--t2); }
.q-chat .q-wheel-it.nn { color: var(--t3); }
.q-chat .q-wheel-it.c { color: #fff; }
.q-chat .q-skip { background: var(--q-glass); border-color: var(--q-line); color: var(--t2); }
.q-chat .q-chip { background: var(--q-glass); border-color: var(--q-line); }
.q-chat .q-chip.sel { background: var(--vio); border-color: var(--vio); color: #fff; box-shadow: none; }
.q-chat .q-bubble-info { background: var(--card); border-color: var(--q-line); }
.q-wrap select { background-color: var(--card); border-color: var(--q-line); }

/* ---------- computing (canvas: orb first, title under it, mono sub, 5 ticks) ---------- */
.q-computing { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 24px; }
.q-computing .q-orb { order: 1; margin-top: 10px; }
.q-computing .q-title { order: 2; margin: 0; font-size: 26px; letter-spacing: -.5px; line-height: 1.15; }
.q-computing .q-sub { order: 3; margin: -16px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--t2); }
.q-computing .q-ticks { order: 4; width: 100%; max-width: 300px; }
.q-orb-disc { display: flex; align-items: center; justify-content: center; }
.q-ring circle[data-q] { stroke: var(--grn); }
.q-tick { color: #fff; }
.q-tick.todo { color: var(--t2); }
.q-tick.todo span { color: transparent; border-color: var(--q-line); }
.q-tick.doing span { font-size: 0; }
.q-tick.doing span::after { content: "•"; font-size: 14px; }

/* ---------- chain: #result / #pay ---------- */
.q-chain { line-height: 1.25; }
.q-chain .eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--t2); }
.q-chain-h1 { letter-spacing: -.6px; }
.q-ruler-vals .acc span { display: block; }
.q-chain-cta { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 24px; font-size: 17px; font-weight: 700; background: var(--hero-grad); box-shadow: var(--glow-vio); }
.q-chain-cta-alt { background: transparent; box-shadow: none; }
.q-chain .q-skip { background: none; border: 0; box-shadow: none; backdrop-filter: none; height: auto; padding: 14px; color: var(--t2); font-size: 15px; font-weight: 600; }
.q-pay-card { border: 1px solid var(--q-line); }
.q-pay-k { color: var(--t2); }
.q-pay-row > i { background: rgba(255, 255, 255, .06); color: #fff; }
.q-price { background: transparent; }
.q-price.sel { border-color: var(--vio); }
.q-pay-disc, .q-pay-links { color: var(--t2); }
.q-oauth.q-oauth-google { border-color: #fff; }

/* Desktop: the phone card sits on the site's dark ground. */
@media (min-width: 720px) { .q-wrap.q-chat-root, .q-wrap.q-chain-root { box-shadow: 0 18px 44px rgba(0, 0, 0, .5); } }

/* ---------- /quiz/success (canvas Success) + /get — the app's sign-in screen drawn on the page;
   body[data-provider] highlights the button the user must tap, body[data-os] picks the store CTA. */
.q-paid { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--q-grow-soft); color: var(--grn); font-weight: 700; font-size: 13px; }
.q-paid svg { flex: none; }
#success .q-chain-h1 { font-size: 27px; margin: 8px 0 4px; }
#success .q-acct { margin: 0 0 10px; font-size: 14px; }
#success .q-acct b { color: #fff; overflow-wrap: anywhere; }
.q-mock-stage { background: var(--card2); border: 1px solid var(--q-line); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 14px 16px 0; display: flex; justify-content: center; overflow: hidden; }
.q-mock { width: 240px; background: var(--bg); border: 5px solid var(--t3); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.q-mock-sub { font-size: 11px; color: var(--t2); line-height: 1.35; margin-bottom: 2px; }
.q-mock-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; border: 1.5px solid var(--q-line); background: var(--card); font-weight: 700; font-size: 13px; color: var(--t2); }
.q-mock-btn svg { opacity: .45; }
body:not([data-provider="apple"]) .q-mock-google, body[data-provider="apple"] .q-mock-apple { border-color: #fff; color: #fff; outline: 3px solid var(--grn); outline-offset: 3px; }
body:not([data-provider="apple"]) .q-mock-google svg, body[data-provider="apple"] .q-mock-apple svg { opacity: 1; }
.q-mock-pick { margin-top: 4px; border: 1.5px solid var(--grn); background: rgba(43, 245, 169, .10); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.q-mock-pick-k { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grn); }
.q-mock-pick b { font-size: 12px; overflow-wrap: anywhere; color: #fff; }
.q-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.q-mini > div { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--card); }
.q-mini-n { font-weight: 800; font-size: 16px; line-height: 1; color: #fff; }
.q-mini-t { font-size: 12px; line-height: 1.25; color: #fff; }
.q-get { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.q-next { display: none; margin: 0; align-self: stretch; text-align: center; font-weight: 800; font-size: 15px; color: #fff; }
.q-next::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 99px; background: var(--grn); margin-right: 8px; vertical-align: 1px; }
.q-storebtn { width: 100%; box-sizing: border-box; min-height: 62px; padding: 10px 18px; border-radius: 14px; background: #000; border: 1px solid var(--t3); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 14px; }
.q-storebtn:hover { text-decoration: none; }
.q-storebtn span { display: flex; flex-direction: column; line-height: 1.05; }
.q-storebtn small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.q-storebtn b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.q-cta-ios small { text-transform: none; font-size: 12px; letter-spacing: 0; }
.q-other { font-size: 13px; color: var(--t2); text-decoration: underline; }
.q-cta-play, .q-cta-ios, .q-other, .q-qr-wrap { display: none; }
body[data-os="android"] .q-other-ios, body[data-os="ios"] .q-other-play { display: block; }
body[data-os="android"] .q-cta-play, body[data-os="ios"] .q-cta-ios { display: flex; }
body[data-os="android"] .q-next, body[data-os="ios"] .q-next { display: block; }
body:not([data-os="android"]):not([data-os="ios"]) .q-qr-wrap { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px; border-radius: 16px; background: var(--card); }
.q-qr-wrap .q-qr { display: block; width: 108px; height: 108px; padding: 6px; border: 0; background: #fff; border-radius: 12px; flex: none; }
.q-qr-side { display: flex; flex-direction: column; gap: 10px; }
.q-qr-sub { font-size: 13px; color: var(--t2); line-height: 1.4; }
.q-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.q-store img { display: block; height: 36px; width: auto; }
#success .q-pay-disc { margin-top: 10px; font-size: 11px; }
#plan-line { display: block; font-weight: 700; color: #fff; margin-bottom: 4px; }
/* /get */
.q-get-page { justify-content: center; margin: 20px 0; }
.q-get-page .q-store img { height: 52px; }
html[data-os="android"] .q-get-page .q-store-ios, html[data-os="ios"] .q-get-page .q-store-play { display: none; }
