/**
 * resources/css/career.css
 * LucidPlacements — the career quiz and its result.
 *
 * Written against tokens.css like everything else. Loaded only by the
 * career pages, the same way trends.css and tracker.css scope themselves —
 * app.css stays the shared floor and page-specific weight stays off every
 * other page.
 */

/* ── Shared page frame ─────────────────────────────────────────────────── */

.qz { max-width: 860px; margin: 0 auto; padding: 2.5rem 16px 4rem; }

.qz__head { text-align: center; margin-bottom: 2rem; }
.qz__kicker {
  display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); border-radius: var(--r-pill);
  padding: 4px 14px; margin: 0 0 .9rem;
}
.qz__title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 .6rem; }
.qz__sub { color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.55; }

.qz__h { font-size: var(--fs-lg); margin: 0 0 1rem; }

.qz__error {
  background: color-mix(in srgb, var(--error) 10%, transparent);
  color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 30%, transparent);
  border-radius: var(--r-3); padding: .7rem 1rem; margin: 0 0 1.2rem;
}

.qz__note { font-size: var(--fs-sm); color: var(--muted); margin-top: .8rem; }

/* ── The interests step ────────────────────────────────────────────────── */

.qz__fields {
  border: 1px solid var(--brand);
  background: var(--surface);
  border-radius: var(--r-4); padding: 1.2rem 1.3rem; margin: 0 0 1.4rem;
}
.qz__fields legend { float: left; width: 100%; } /* keep legend inside the border box */
.qz__qnum--step { background: var(--brand); color: #fff; }
.qz__fieldhint {
  clear: both; color: var(--muted); font-size: var(--fs-sm);
  margin: 0 0 .9rem; line-height: 1.5;
}
.qz__fieldgrid {
  display: grid; gap: .45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 780px) { .qz__fieldgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .qz__fieldgrid { grid-template-columns: 1fr; } }

.qz__fieldopt {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: var(--r-3);
  padding: .55rem .7rem; cursor: pointer; line-height: 1.3;
  font-size: var(--fs-sm); font-weight: var(--fw-med);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.qz__fieldopt:hover { border-color: var(--brand); }
.qz__fieldopt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.qz__fieldopt input { accent-color: var(--brand); flex-shrink: 0; }
.qz__fieldicon { flex-shrink: 0; }

/* ── The questions ─────────────────────────────────────────────────────── */

.qz__list { list-style: none; margin: 0; padding: 0; counter-reset: qz; }

.qz__q {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-4); padding: 1.2rem 1.3rem; margin-bottom: 1rem;
}
.qz__q fieldset { border: 0; margin: 0; padding: 0; }

.qz__qtext {
  display: flex; align-items: baseline; gap: .6rem;
  font-weight: var(--fw-bold); margin-bottom: .8rem; line-height: 1.4;
}
.qz__qnum {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: var(--fs-xs); font-weight: var(--fw-black);
  transform: translateY(.15em);
}

.qz__opts { display: grid; gap: .45rem; }

.qz__opt {
  display: flex; align-items: flex-start; gap: .6rem;
  border: 1px solid var(--line); border-radius: var(--r-3);
  padding: .6rem .8rem; cursor: pointer; line-height: 1.4;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.qz__opt:hover { border-color: var(--brand); }
.qz__opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.qz__opt input { margin-top: .25em; accent-color: var(--brand); flex-shrink: 0; }

.qz__submit { text-align: center; margin-top: 1.6rem; }

/* ── The result ────────────────────────────────────────────────────────── */

.qz__badge {
  width: 84px; height: 84px; margin: 0 auto .9rem; display: grid; place-items: center;
  font-size: 2.4rem; border-radius: 50%;
  background: var(--brand-soft); border: 2px solid var(--brand);
}

.qz__scores {
  max-width: 520px; margin: 0 auto 2.5rem; display: grid; gap: .7rem;
}
.qz__score {
  display: grid; grid-template-columns: 6.2rem 1fr 2.4rem;
  align-items: center; gap: .8rem;
}
.qz__scorelabel { font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--muted); }
.qz__score.is-top .qz__scorelabel { color: var(--ink); font-weight: var(--fw-bold); }
.qz__bar {
  height: 10px; border-radius: var(--r-pill); background: var(--surface-2);
  overflow: hidden;
}
.qz__fill {
  display: block; height: 100%; border-radius: inherit;
  background: var(--brand-grad, var(--brand));
}
.qz__score:not(.is-top) .qz__fill { opacity: .45; }
.qz__scorenum { font-size: var(--fs-sm); font-weight: var(--fw-bold); text-align: right; }

/* Role matches */

.qz__roles { margin-bottom: 2.5rem; }
.qz__chosen {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  color: var(--muted); font-size: var(--fs-sm); margin: -.4rem 0 1rem;
}
.qz__chip {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--brand-soft); color: var(--brand);
  font-weight: var(--fw-med); border-radius: var(--r-pill); padding: 3px 11px;
}
.qz__rolegrid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) { .qz__rolegrid { grid-template-columns: 1fr; } }

.qz__role {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-4); padding: 1.1rem 1.2rem;
}
.qz__rolefit {
  position: absolute; top: 1rem; right: 1rem;
  font-size: var(--fs-xs); font-weight: var(--fw-black); color: var(--brand);
  background: var(--brand-soft); border-radius: var(--r-pill); padding: 3px 10px;
}
.qz__roletitle { margin: 0 4.5rem .4rem 0; font-size: var(--fs-md); }
.qz__rolesummary { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 .7rem; }
.qz__rolemeta {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  font-size: var(--fs-xs); color: var(--muted); margin: 0 0 .7rem;
}
.qz__skills { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.qz__skill {
  font-size: var(--fs-xs); font-weight: var(--fw-med);
  background: var(--surface-2); border-radius: var(--r-pill); padding: 3px 10px;
}
.qz__rolejobs {
  display: inline-block; margin-top: .8rem;
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--brand); text-decoration: none;
}
.qz__rolejobs:hover { text-decoration: underline; }

/* Email unlock (the lead gate) */

.qz__unlock {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-5); padding: 1.8rem 1.6rem;
}
.qz__unlockrow { display: flex; gap: .6rem; margin-top: 1.1rem; }
.qz__unlockrow input[type="email"] {
  flex: 1; min-width: 0; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-3);
  background: var(--bg); color: var(--ink); font: inherit;
}
.qz__unlockrow input[type="email"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (max-width: 480px) {
  .qz__unlockrow { flex-direction: column; }
}
.qz__optin {
  display: flex; align-items: flex-start; gap: .5rem; text-align: left;
  font-size: var(--fs-sm); color: var(--muted); margin-top: .8rem; cursor: pointer;
}
.qz__optin input { margin-top: .2em; accent-color: var(--brand); }

.qz__news {
  max-width: 560px; margin: 0 auto 1.5rem; text-align: center;
  background: var(--info-bg, var(--surface-2)); color: var(--info, var(--ink));
  border-radius: var(--r-3); padding: .7rem 1rem;
}

/* What next */

.qz__next { text-align: center; }
.qz__nextgrid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) { .qz__nextgrid { grid-template-columns: 1fr; } }
.qz__nextcard {
  display: grid; gap: .3rem; text-align: left; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-4); padding: 1rem 1.1rem; color: var(--ink);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.qz__nextcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.qz__nextcard span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }

.qz__retake { text-align: center; margin-top: 2rem; font-size: var(--fs-sm); }
.qz__retake a { color: var(--muted); }

/* ── The coin wallet (account/coins.php shares this sheet) ─────────────── */

.coins__balance {
  display: grid; justify-items: center; gap: .2rem;
  margin: 0 auto 2.2rem; padding: 1.4rem 2rem; max-width: 320px;
  background: var(--surface); border: 2px solid var(--brand);
  border-radius: var(--r-5);
}
.coins__num { font-size: 2.4rem; font-weight: var(--fw-black); line-height: 1; }
.coins__label { color: var(--muted); font-size: var(--fs-sm); }

.coins__packs { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .coins__packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .coins__packs { grid-template-columns: 1fr; } }

.coins__pack {
  position: relative; display: grid; gap: .35rem; align-content: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-4); padding: 1.2rem 1.1rem 1.3rem; text-align: center;
}
.coins__pack--badged { border-color: var(--brand); }
.coins__badge {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: var(--fs-xs);
  font-weight: var(--fw-bold); border-radius: var(--r-pill); padding: 2px 12px;
  white-space: nowrap;
}
.coins__packname { font-size: var(--fs-md); }
.coins__packcoins { font-weight: var(--fw-bold); }
.coins__packprice { font-size: 1.5rem; font-weight: var(--fw-black); }
.coins__packdesc { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
.coins__pack form { margin-top: .5rem; }
.coins__pack .btn { width: 100%; }

.coins__features { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 780px) { .coins__features { grid-template-columns: 1fr; } }
.coins__feature {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: .6rem .8rem; font-size: var(--fs-sm);
}
.coins__flabel { flex: 1; min-width: 0; }
.coins__fcost { font-weight: var(--fw-bold); white-space: nowrap; }

.coins__history { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.coins__history th, .coins__history td {
  text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line);
}
.coins__history th { color: var(--muted); font-weight: var(--fw-med); font-size: var(--fs-xs); }
.coins__hnum { text-align: right; font-weight: var(--fw-bold); }
.coins__hnum.is-credit { color: var(--ok, #22a25f); }
.coins__hnum.is-debit { color: var(--muted); }

/* ── Lucy, and the career-tool chrome (2026-09-16) ──────────────────────── */

.lucy { display: block; }
.lucy__light { transform-origin: 48px 6px; }
.lucy--think .lucy__light { animation: lucyglow 1.1s ease-in-out infinite; }
@keyframes lucyglow { 0%,100% { opacity: .45 } 50% { opacity: 1 } }

.luxhero {
  position: relative; border-radius: var(--r-5); padding: 1.6rem 2rem;
  background: linear-gradient(120deg, #6c63ff 0%, #8a5cf6 55%, #a55cf0 100%);
  color: #fff; display: flex; align-items: center; gap: 1.3rem;
  overflow: hidden; margin-bottom: 1.6rem;
}
.luxhero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 45%);
  pointer-events: none;
}
.luxhero__ava {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(28,20,80,.35);
}
.luxhero__body { position: relative; min-width: 0; }
.luxhero h1 { margin: 0 0 .3rem; font-size: 1.45rem; color: #fff; }
.luxhero p { margin: 0; opacity: .92; font-size: var(--fs-sm); line-height: 1.5; max-width: 36rem; }
.luxhero__aside { position: relative; margin-left: auto; text-align: center; flex-shrink: 0; }
.luxhero__big { display: block; font-size: 1.8rem; font-weight: var(--fw-black); color: #fff; line-height: 1.1; }
.luxhero__small { font-size: var(--fs-xs); opacity: .85; }
.luxstatus {
  display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs);
  font-weight: var(--fw-bold); background: rgba(255,255,255,.18);
  border-radius: var(--r-pill); padding: 3px 12px; margin-bottom: .45rem;
}
.luxstatus i { width: 8px; height: 8px; border-radius: 50%; background: #7CFC9A; display: inline-block; }
@media (max-width: 640px) {
  .luxhero { flex-direction: column; text-align: center; padding: 1.4rem 1.2rem; }
  .luxhero__aside { margin: 0; }
}

/* The chat thread (Ask Lucy) */
.chat { display: grid; gap: 1.1rem; }
.chat__row { display: flex; gap: .7rem; align-items: flex-end; }
.chat__row--me { justify-content: flex-end; }
.chat__ava {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-soft); display: grid; place-items: center;
}
.chat__b {
  max-width: 74%; border-radius: 20px; padding: 1rem 1.2rem;
  font-size: var(--fs-sm); line-height: 1.55;
  box-shadow: 0 2px 10px rgba(30,24,90,.06);
}
.chat__b--lucy { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__b--me { background: linear-gradient(120deg,#6c63ff,#8a5cf6); color: #fff; border-bottom-right-radius: 6px; }
.chat__b p { margin: 0 0 .55rem; }
.chat__b p:last-child { margin-bottom: 0; }
.chat__who { font-size: var(--fs-xs); font-weight: var(--fw-black); color: var(--brand); margin: 0 0 .35rem; }
.chat__b--me .chat__who { color: rgba(255,255,255,.85); }
@media (max-width: 560px) { .chat__b { max-width: 86%; } }

.joblet {
  display: flex; gap: .7rem; align-items: center; border: 1px solid var(--line);
  border-radius: var(--r-3); padding: .6rem .8rem; margin-top: .7rem; background: var(--bg);
}
.joblet__icon { font-size: 1.3rem; flex-shrink: 0; }
.joblet b { font-size: var(--fs-sm); display: block; }
.joblet span { font-size: var(--fs-xs); color: var(--muted); }
.joblet .btn { margin-left: auto; flex-shrink: 0; }

.typing {
  display: inline-flex; gap: 5px; padding: 1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; border-bottom-left-radius: 6px;
}
.typing i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  opacity: .35; animation: lucytype 1.2s infinite; display: inline-block;
}
.typing i:nth-child(2) { animation-delay: .2s }
.typing i:nth-child(3) { animation-delay: .4s }
@keyframes lucytype { 0%,60%,100% { opacity:.25; transform:translateY(0) } 30% { opacity:1; transform:translateY(-4px) } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.3rem; }
.chips--indent { padding-left: 3.4rem; }
@media (max-width: 560px) { .chips--indent { padding-left: 0; } }
.chip2 {
  border: 1.5px solid var(--brand); color: var(--brand); font-weight: var(--fw-bold);
  font-size: var(--fs-sm); border-radius: var(--r-pill); padding: .45rem 1rem;
  background: var(--surface); cursor: pointer; text-decoration: none; display: inline-block;
}
.chip2:hover { background: var(--brand-soft); }

.askbar {
  display: flex; gap: .6rem; background: var(--surface); border: 1.5px solid var(--brand);
  border-radius: var(--r-pill); padding: .45rem .5rem .45rem 1.3rem;
  box-shadow: 0 8px 30px rgba(108,99,255,.14);
}
.askbar input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: inherit; color: var(--ink); outline: none;
}
.askbar .btn { border-radius: var(--r-pill); white-space: nowrap; }
.askmeta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--muted); margin: .55rem 1.2rem 0;
}

/* Hub tiles */
.hubgrid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 720px) { .hubgrid { grid-template-columns: 1fr; } }
.hubtile {
  display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4);
  padding: 1.15rem 1.2rem; transition: border-color var(--t-fast), transform var(--t-fast);
}
.hubtile:hover { border-color: var(--brand); transform: translateY(-2px); }
.hubtile__icon { font-size: 1.7rem; flex-shrink: 0; }
.hubtile b { display: block; margin-bottom: .2rem; }
.hubtile span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.hubtile__price {
  margin-left: auto; flex-shrink: 0; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  color: var(--brand); background: var(--brand-soft); border-radius: var(--r-pill); padding: 3px 10px;
}

/* ── The quiz wizard (quiz.js) ────────────────────────────────────────────────
   One question at a time, as a conversation with Lucy. The full form is the
   no-JS floor; .is-enhanced hides it once the wizard has built successfully,
   and quiz.js removes the class again if anything throws. */
.qz__form.is-enhanced { display: none; }

.qw { max-width: 640px; margin: 0 auto; scroll-margin-top: 96px; }
.qw__progress { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; }
.qw__count {
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.qw__track { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.qw__track i {
  display: block; height: 100%; width: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, #6c63ff, #9a5cf5);
  transition: width .35s ease;
}

/* The answer panel sits indented past Lucy's avatar, like a reply. */
.qw__panel { display: grid; gap: .55rem; margin: 1.1rem 0 0 3.4rem; }
@media (max-width: 560px) { .qw__panel { margin-left: 0; } }

.qw__opt {
  text-align: left; font: inherit; font-size: var(--fs-sm); line-height: 1.5;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem;
  cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.qw__opt:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.qw__opt.is-picked { border-color: var(--brand); background: var(--brand-soft); font-weight: var(--fw-med); }
.qw__opt:disabled { cursor: default; }
.qw__opt:disabled:not(.is-picked) { opacity: .45; }

.qw__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip2.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.qw__go { justify-self: start; margin-top: .4rem; }
.qw__note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

.qw__navrow { margin: 1.1rem 0 0; }
.qw__back {
  border: 0; background: none; padding: .35rem 0; font: inherit;
  font-size: var(--fs-sm); color: var(--muted); cursor: pointer;
}
.qw__back:hover { color: var(--brand); }

.chat__row.qw-in { animation: qwIn .3s ease both; }
@keyframes qwIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat__row.qw-out { opacity: 0; transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .chat__row.qw-in { animation: none; }
  .qw__track i, .qw__opt { transition: none; }
}

/* Plan progress + print */
.planbar { max-width: 560px; margin: 0 auto 1.6rem; }
.planday { text-align: center; }
@media print {
  .nav, .luxhero__aside, .qz__next, .askbar, .askmeta, .chips, .noprint, footer, .promobar { display: none !important; }
  body { background: #fff; }
  .qz__rolegrid { grid-template-columns: 1fr !important; }
}