/* ============================================================
   Dean Blankfield — Quiz. Native on-site pattern finder.
   Shares tokens, nav, footer & buttons from anxious.css.
   ============================================================ */

/* ---- Stage / cinematic background ---- */
.qstage {
  position: relative;
  min-height: 100svh;
  background: var(--char);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.qstage__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(72% 60% at 26% 22%, rgba(106,93,82,0.46), transparent 60%);
}
.qstage__ghost {
  position: absolute; right: 2%; bottom: -6%; z-index: 0;
  font-size: 30vw; font-weight: 600; letter-spacing: -0.06em; line-height: 1;
  color: rgba(255,255,255,0.035); pointer-events: none; user-select: none;
}
.qwrap {
  position: relative; z-index: 2;
  width: 100%; max-width: 880px;
  margin: 0 auto; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(110px,14vh,170px) var(--pad) clamp(56px,7vw,96px);
}

/* ---- Panels (intro / question / result swap) ---- */
.qpanel { display: none; }
.qpanel.active { display: block; animation: qfade .5s var(--ease); }
@keyframes qfade { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .qpanel.active { animation: none; } }

/* ---- Intro ---- */
.qintro__eb { color: var(--greige); margin-bottom: 26px; }
.qintro__title { font-size: clamp(38px,5.4vw,76px); letter-spacing: -0.05em; line-height: 0.98; max-width: 15ch; }
.qintro__sub { margin-top: 28px; max-width: 52ch; color: rgba(255,255,255,0.8); }
.qintro__sub em { font-style: normal; color: var(--greige); font-weight: 600; }
.qintro__sub strong { color: #fff; font-weight: 600; }
.qintro__meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.qintro__meta span { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: rgba(255,255,255,0.62); }
.qintro__meta svg { width: 16px; height: 16px; color: var(--greige); flex: none; }
.qintro__cta { margin-top: 42px; }

/* ---- Question progress ---- */
.qprog { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(30px,4vw,48px); }
.qprog__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.14); overflow: hidden; }
.qprog__fill { height: 100%; width: 0%; border-radius: 4px; background: var(--greige); transition: width .5s var(--ease); }
.qprog__count { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.66); flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Question ---- */
.qquestion { font-size: clamp(26px,3.4vw,46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; max-width: 20ch; }
.qopts { margin-top: clamp(28px,3.4vw,42px); display: grid; gap: 12px; }
.qopt {
  display: flex; align-items: center; gap: 18px;
  width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; font-size: clamp(17px,1.5vw,20px); font-weight: 500; line-height: 1.35;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: clamp(18px,2vw,24px) clamp(20px,2.2vw,28px);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.qopt:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.qopt__mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.qopt__mark svg { width: 14px; height: 14px; color: var(--char); opacity: 0; transition: opacity .2s; }
.qopt.sel { background: #fff; color: var(--char); border-color: #fff; }
.qopt.sel .qopt__mark { background: var(--char); border-color: var(--char); }
.qopt.sel .qopt__mark svg { color: #fff; opacity: 1; }

.qnav { margin-top: clamp(30px,4vw,44px); display: flex; align-items: center; gap: 20px; }
.qback {
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.6);
  transition: color .2s; padding: 8px 2px;
}
.qback:hover { color: #fff; }
.qback svg { width: 17px; height: 17px; }
.qback[hidden] { display: none; }
.qnav__hint { font-size: 14px; color: rgba(255,255,255,0.4); margin-left: auto; }

/* ---- Result ---- */
.qresult__eb { color: var(--greige); margin-bottom: 24px; }
.qresult__title { font-size: clamp(36px,5vw,68px); letter-spacing: -0.05em; line-height: 1.0; max-width: 16ch; }
.qresult__lede { margin-top: 26px; max-width: 56ch; color: rgba(255,255,255,0.82); font-size: clamp(18px,1.5vw,22px); line-height: 1.5; }
.qresult__lede + .qresult__lede { margin-top: 16px; }

.qcards { margin-top: clamp(34px,4vw,48px); display: grid; gap: 16px; }
.qcards.two { grid-template-columns: 1fr 1fr; }
.qcard {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--r); padding: clamp(26px,2.8vw,38px);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.qcard:hover { transform: translateY(-5px); box-shadow: 0 44px 80px -52px rgba(0,0,0,0.7); }
.qcard--anx { background: radial-gradient(125% 120% at 82% 0%, #80715F 0%, var(--brown) 52%, #443A33 100%); }
.qcard--avo { background: radial-gradient(125% 120% at 82% 0%, #0C3F23 0%, #001B08 52%, #00110A 100%); }
.qcard--primary { box-shadow: 0 40px 80px -50px rgba(0,0,0,0.6); }
.qcard__tag { display: inline-flex; align-self: flex-start; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.qcard__tag--match { color: #fff; padding: 6px 14px; border-radius: var(--pill); background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.24); }
.qcard__name { font-size: clamp(24px,2.4vw,32px); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.qcard__desc { font-size: clamp(15px,1.3vw,17px); line-height: 1.5; color: rgba(255,255,255,0.78); }
.qcard__link { margin-top: 6px; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 10px 10px 10px 22px; border-radius: var(--pill); background: #fff; color: var(--char); font-size: 15.5px; font-weight: 600; transition: transform .3s var(--ease); }
.qcard__link svg { width: 16px; height: 16px; }
.qcard__link .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--char); color: #fff; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.qcard:hover .qcard__link .ic { transform: translateX(3px); }

.qresult__foot { margin-top: clamp(30px,3.6vw,42px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: clamp(24px,3vw,32px); border-top: 1px solid var(--hair-w); }
.qresult__retake { background: none; border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.72); transition: color .2s; }
.qresult__retake:hover { color: #fff; }
.qresult__retake svg { width: 16px; height: 16px; }
.qresult__note { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 46ch; }

@media (max-width: 720px) {
  .qcards.two { grid-template-columns: 1fr; }
  .qnav__hint { display: none; }
}

/* ---- Question kicker ---- */
.qquestion__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--greige); margin-bottom: 18px; }

/* ---- Likert scale ---- */
.qscale { margin-top: clamp(30px,3.6vw,46px); }
.qscale__ends { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.5); margin-bottom: 16px; padding: 0 4px; }
.qscale__dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px,1.4vw,16px); }
.qdot {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 8px 4px; border-radius: 16px;
  transition: transform .2s var(--ease);
}
.qdot:hover { transform: translateY(-3px); }
.qdot__ring {
  width: clamp(40px,5vw,58px); height: clamp(40px,5vw,58px); border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.04);
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
}
.qdot__ring::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 38%; height: 38%; border-radius: 50%;
  background: #fff; opacity: 0; transform: scale(.4);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
/* graded tint: disagree (cool greige) -> agree (warm green) */
.qdot--0 .qdot__ring { border-color: rgba(201,188,168,0.55); }
.qdot--1 .qdot__ring { border-color: rgba(201,188,168,0.4); }
.qdot--2 .qdot__ring { border-color: rgba(255,255,255,0.3); }
.qdot--3 .qdot__ring { border-color: rgba(135,196,160,0.45); }
.qdot--4 .qdot__ring { border-color: rgba(135,196,160,0.6); }
.qdot:hover .qdot__ring { border-color: #fff; background: rgba(255,255,255,0.12); }
.qdot__lab { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,0.55); text-align: center; max-width: 11ch; transition: color .2s; }
.qdot:hover .qdot__lab { color: rgba(255,255,255,0.85); }
.qdot.sel .qdot__ring { border-color: #fff; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.12); }
.qdot.sel .qdot__ring::after { opacity: 1; transform: scale(1); background: var(--char); }
.qdot.sel .qdot__lab { color: #fff; font-weight: 600; }

@media (max-width: 600px) {
  .qdot__lab { display: none; }
  .qdot--0::after, .qdot--4::after { font-size: 11px; }
  .qscale__dots { gap: 10px; max-width: 320px; }
}

/* ---- Email gate ---- */
.qemail__title { max-width: 16ch; }
.qform { margin-top: clamp(30px,3.6vw,42px); max-width: 560px; }
.qform__row { display: flex; gap: 12px; }
.qform__input--name { width: 100%; margin-bottom: 12px; }
.qform__input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 17px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--pill); padding: 17px 24px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.qform__input::placeholder { color: rgba(255,255,255,0.4); }
.qform__input:focus { outline: none; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }
.qform__input.err { border-color: #E8836B; }
.qform__btn { flex: none; }
.qform__err { margin-top: 12px; font-size: 14px; color: #E8836B; padding-left: 8px; }
.qform__note { margin-top: 20px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,0.5); }
.qform__note svg { width: 15px; height: 15px; flex: none; color: var(--greige); }

@media (max-width: 560px) {
  .qform__row { flex-direction: column; }
  .qform__btn { width: 100%; justify-content: center; }
}

/* ---- Score bars ---- */
.qbars { margin-top: clamp(32px,3.6vw,44px); display: grid; gap: 22px; max-width: 620px; }
.qbar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.qbar__top span { font-size: clamp(15px,1.3vw,17px); font-weight: 500; color: rgba(255,255,255,0.82); }
.qbar__val { font-family: var(--inter, inherit); font-weight: 700; font-size: clamp(17px,1.5vw,20px) !important; color: #fff !important; font-variant-numeric: tabular-nums; }
.qbar__track { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.12); overflow: hidden; }
.qbar__fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--greige), #fff); transition: width 1s var(--ease); }

/* ---- Secure: blind-spot block ---- */
.qgrow { margin-top: clamp(28px,3.2vw,38px); border-left: 2px solid var(--greige); padding: 4px 0 4px clamp(20px,2.4vw,28px); }
.qgrow__h { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--greige); margin-bottom: 12px; }
.qgrow__p { font-size: clamp(16px,1.4vw,19px); line-height: 1.55; color: rgba(255,255,255,0.82); max-width: 60ch; }
.qgrow__p strong { color: #fff; font-weight: 600; }

/* ---- Volatility / oscillation bar: warm tone, set apart from the two axes ---- */
.qbar--osc { margin-top: 6px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.qbar--osc .qbar__fill { background: linear-gradient(90deg, var(--brown), var(--greige)); }
.qbar--osc .qbar__track { background: rgba(255,255,255,0.1); }
