/* Quiz funnel — on top of site.css (Midnight Growth vars). Mirrors docs/design-2026
   screen-predict-step.html / screen-computing.html in the site's design language. */

.q-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  min-height: calc(100vh - 140px);
}

/* top bar: back + neon progress */
.q-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.q-back {
  width: 40px; height: 40px; border-radius: 99px; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: var(--t); font-size: 18px; cursor: pointer;
}
.q-back:disabled { opacity: .35; cursor: default; }
.q-prog { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.q-prog > div {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--vio), var(--grn));
  box-shadow: 0 0 14px rgba(124, 92, 255, .7);
  transition: width .3s ease;
}
.q-count { font-size: 13px; font-weight: 600; color: var(--t3); }

.q-title { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; margin: 34px 0 10px; }
.q-sub { color: var(--t2); font-size: 15px; line-height: 1.45; margin: 0 0 26px; }
.q-label {
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--t3); margin: 0 0 10px;
}
.q-body { margin-bottom: 92px; }

/* option cards */
.q-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--card); border: 1.5px solid rgba(255, 255, 255, .07);
  border-radius: 16px; padding: 18px; margin-bottom: 13px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--t);
  text-align: left; cursor: pointer;
}
.q-opt-hint { display: block; font-size: 12px; color: var(--t2); font-weight: 500; margin-top: 2px; }
.q-rad { width: 24px; height: 24px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .25); flex: none; }
.q-opt.sel {
  border-color: var(--vio);
  background: linear-gradient(100deg, rgba(124, 92, 255, .16), rgba(124, 92, 255, .04));
  box-shadow: 0 0 24px rgba(124, 92, 255, .22);
}
.q-opt.sel .q-rad { border-color: var(--vio); background: var(--vio); box-shadow: 0 0 12px rgba(124, 92, 255, .8); position: relative; }
.q-opt.sel .q-rad::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }

/* dark form controls — site.css only styles selects inside .tool-card */
.q-wrap select,
.q-wrap input[type="number"] {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1.5px solid rgba(255, 255, 255, .07);
  color: var(--t); font: inherit; font-size: 16px; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA0AD' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.q-wrap input[type="number"] { background-image: none; }
.q-wrap select:focus, .q-wrap input[type="number"]:focus { outline: none; border-color: var(--vio); }

/* wheel picker — docs/design-2026/screen-predict-wheel.html */
.q-wheel {
  position: relative; height: 300px; display: flex; justify-content: center; gap: 20px;
  margin: 6px 0 10px;
}
.q-wheel-colwrap { position: relative; display: flex; }
.q-wheel-sel {
  position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-50%); height: 60px;
  border-radius: 16px; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .45);
  box-shadow: 0 0 26px rgba(124, 92, 255, .28); pointer-events: none;
}
.q-wheel-col {
  overflow-y: auto; scroll-snap-type: y mandatory; padding: 120px 18px;
  scrollbar-width: none; min-width: 90px; height: 100%;
  -webkit-mask-image: linear-gradient(#0000, #000 28%, #000 72%, #0000);
  mask-image: linear-gradient(#0000, #000 28%, #000 72%, #0000);
}
.q-wheel-col::-webkit-scrollbar { display: none; }
.q-wheel-col:focus-visible { outline: 2px solid rgba(124, 92, 255, .7); outline-offset: -2px; border-radius: 12px; }
/* Desktop-only nudge buttons — overlay the faded top/bottom of each column (mouse users). */
.q-wheel-nudge {
  position: absolute; left: 0; right: 0; height: 38px; z-index: 2; display: none;
  align-items: center; justify-content: center; border: 0; background: none;
  color: var(--t2); font-size: 20px; line-height: 1; cursor: pointer;
}
.q-wheel-nudge:hover { color: #fff; }
.q-wheel-nudge.up { top: 4px; }
.q-wheel-nudge.down { bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .q-wheel-nudge { display: flex; } }
.q-wheel-it {
  height: 60px; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; font-size: 26px; font-weight: 600; color: var(--t3);
  cursor: pointer; white-space: nowrap; transition: font-size .12s ease, color .12s ease;
}
.q-wheel-it.n { opacity: .45; }
.q-wheel-it.nn { opacity: .18; }
.q-wheel-it.c { font-size: 36px; font-weight: 800; color: #fff; opacity: 1; }

/* multi-select chips */
.q-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.q-chip {
  padding: 12px 16px; border-radius: 99px;
  background: var(--card); border: 1.5px solid rgba(255, 255, 255, .07);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--t); cursor: pointer;
}
.q-chip.sel {
  border-color: var(--grn);
  background: linear-gradient(100deg, rgba(43, 245, 169, .14), rgba(43, 245, 169, .03));
  box-shadow: 0 0 18px rgba(43, 245, 169, .2);
}

/* sticky CTA */
.q-cta { position: sticky; bottom: 24px; width: 100%; }
.q-cta:disabled { opacity: .4; cursor: default; box-shadow: none; }
.q-skip { display: block; width: 100%; margin-top: 4px; padding: 14px; text-align: center; color: var(--t2); }
.q-units { margin-bottom: 18px; }

/* compare interstitial */
.q-compare { padding: 26px 22px; text-align: center; display: grid; gap: 10px; }
.q-compare-num { font-size: 56px; font-weight: 800; letter-spacing: -2px; }
.q-compare-num span { font-size: 22px; font-weight: 700; color: var(--t2); }
.q-compare-cap { margin: -8px 0 0; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--t3); }
.q-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.q-bar > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--vio), var(--grn)); box-shadow: 0 0 14px rgba(43, 245, 169, .5); }
.q-compare-line { margin: 0; font-size: 16px; font-weight: 600; }
.q-note { padding: 22px; font-size: 16px; line-height: 1.55; color: var(--t2); }

/* computing theatre */
.q-computing { display: grid; gap: 22px; justify-items: center; padding-top: 8vh; }
.q-orb { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.q-orb-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 92, 255, .4), transparent 72%); animation: q-pulse 2.2s ease-in-out infinite; }
.q-ring { position: absolute; inset: 0; }
.q-ring circle[data-q] { transition: stroke-dashoffset 1.3s ease; }
.q-orb-disc {
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 38%, var(--vio2, #9D7BFF), var(--vio));
  box-shadow: 0 0 44px rgba(124, 92, 255, .55);
}
@keyframes q-pulse { 50% { transform: scale(1.08); opacity: .8; } }
.q-ticks { display: grid; gap: 14px; }
.q-tick { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.q-tick span {
  width: 28px; height: 28px; border-radius: 99px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  border: 2px solid rgba(255, 255, 255, .15);
}
.q-tick.todo { color: var(--t3); }
.q-tick.doing span { border-color: var(--vio); color: var(--vio); }
.q-tick.done span { background: var(--grn); border-color: var(--grn); color: #08080C; box-shadow: 0 0 12px rgba(43, 245, 169, .5); }

/* result preview */
.q-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; text-align: center; padding-top: 5vh; }
.q-hero { font-size: 72px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.q-range { font-size: 16px; margin: 0; }
.q-range-band { display: block; margin-top: 4px; color: var(--t3); font-size: 14px; }
.q-levers { width: 100%; padding: 20px 22px; text-align: left; }
.q-levers ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.q-preview-cta { display: grid; gap: 14px; justify-items: center; margin-top: 8px; }

/* proof block: real app screens shown between report and paywall */
.q-proof { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 4px; }
.q-proof-title { font-size: 22px; font-weight: 800; text-align: center; margin: 0; }
.q-shots {
  display: flex; gap: 14px; width: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.q-shots::-webkit-scrollbar { display: none; }
.q-shot { flex: 0 0 auto; width: 190px; margin: 0; scroll-snap-align: center; }
.q-shot img {
  width: 100%; height: auto; display: block;
  border-radius: 26px; border: 6px solid #17171f;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
}
.q-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--t2); text-align: center; }

/* plan page: teased result + paywall */
.q-blur { filter: blur(14px); user-select: none; pointer-events: none; }
p.q-blur { filter: blur(7px); }
.q-plans { display: grid; gap: 12px; width: 100%; margin-top: 10px; }
.q-plan {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--card); border: 1.5px solid rgba(255, 255, 255, .07);
  border-radius: 16px; padding: 17px 18px;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--t);
  text-align: left; cursor: pointer;
}
.q-plan .q-opt-hint { text-transform: none; letter-spacing: 0; }
.q-plan.sel {
  border-color: var(--vio);
  background: linear-gradient(100deg, rgba(124, 92, 255, .16), rgba(124, 92, 255, .04));
  box-shadow: 0 0 24px rgba(124, 92, 255, .22);
}
.q-plan-price { font-size: 17px; font-weight: 800; }

/* success page */
.q-success-steps { display: grid; gap: 14px; width: 100%; text-align: left; }
.q-success-steps .card-glass { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.q-step-n {
  width: 30px; height: 30px; border-radius: 99px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #08080C;
  background: linear-gradient(120deg, var(--grn), var(--vio)); box-shadow: 0 0 14px rgba(43, 245, 169, .4);
}
.q-qr { width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 8px; display: none; }
@media (min-width: 720px) { .q-qr { display: block; margin: 0 auto; } }

@media (max-width: 480px) {
  .q-title { font-size: 28px; }
  .q-hero { font-size: 58px; }
  .q-shot { width: 150px; }
}
