/* Sonsoto Wizard Engine — styling.
   Uses the same tokens as the rest of the site (--bg, --text, --mineral, etc.)
   so it inherits typography and color automatically when embedded in a page
   that already defines them. Falls back to sensible defaults otherwise. */

.wiz {
  --wiz-bg: rgba(255,255,255,.008);
  --wiz-line: rgba(255,255,255,.10);
  --wiz-line-soft: rgba(255,255,255,.06);
  --wiz-mineral: #E6E0D2;
  --wiz-text: #F4F5F2;
  --wiz-muted: #A7A198;
  --wiz-faint: #7F7970;
  --wiz-accent: #E6E0D2;
  --wiz-sage: #82959A;
  --wiz-brass: #C2A26A;
  --wiz-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wiz-radius: 18px;
  --wiz-ease: 220ms cubic-bezier(.16,1,.3,1);
  color: var(--wiz-text);
}

.wiz-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
}

/* -- progress ------------------------------------------------------------- */
.wiz-progress { margin-bottom: 16px; }
.wiz-progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wiz-faint); margin-bottom: 12px;
}
.wiz-progress-label > span:first-child { color: var(--wiz-mineral); }
.wiz-progress-bar {
  height: 3px; background: rgba(230,224,210,.08); border-radius: 2px;
  overflow: hidden;
}
.wiz-progress-fill {
  display: block; height: 100%; background: var(--wiz-mineral);
  transition: width 400ms cubic-bezier(.16,1,.3,1);
}

/* -- card ----------------------------------------------------------------- */
.wiz-card {
  background: var(--wiz-bg); border: 1px solid var(--wiz-line);
  border-radius: var(--wiz-radius); padding: 28px 28px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
@media (max-width:720px){ .wiz-card { padding: 30px 22px 22px; } }

.wiz-kicker {
  font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wiz-faint); margin: 0 0 14px;
}
.wiz-q {
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -.025em;
  font-weight: 500; margin: 0 0 8px; color: var(--wiz-text);
}
.wiz-help {
  font-size: 14.5px; color: var(--wiz-muted); margin: 0 0 26px; max-width: 60ch;
}

/* -- options -------------------------------------------------------------- */
.wiz-opts { display: grid; gap: 8px; margin-top: 14px; }
.wiz-opts--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wiz-opts--stacked { grid-template-columns: 1fr; }
@media (max-width:720px){ .wiz-opts--chips { grid-template-columns: 1fr; } }

.wiz-opt {
  display: flex; align-items: flex-start; gap: 12px;
  text-align: left; padding: 12px 14px;
  background: rgba(255,255,255,.014);
  border: 1px solid var(--wiz-line);
  border-radius: 12px; cursor: pointer;
  transition: border-color var(--wiz-ease), background var(--wiz-ease), transform var(--wiz-ease);
  color: var(--wiz-text); font: inherit;
}
.wiz-opt:hover { border-color: rgba(230,224,210,.35); background: rgba(230,224,210,.03); }
.wiz-opt.is-selected {
  border-color: var(--wiz-mineral); background: rgba(230,224,210,.06);
}
.wiz-opt-dot {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--wiz-line); display: flex; align-items: center; justify-content: center;
  color: transparent; margin-top: 1px;
  transition: color var(--wiz-ease), background var(--wiz-ease), border-color var(--wiz-ease);
}
.wiz-opt-dot svg { width: 12px; height: 12px; }
.wiz-opt.is-selected .wiz-opt-dot { background: var(--wiz-mineral); border-color: var(--wiz-mineral); color: #0B0F13; }
.wiz-opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wiz-opt-label { font-size: 14.5px; font-weight: 500; letter-spacing: -.005em; color: var(--wiz-text); }
.wiz-opt-help { font-size: 12.25px; color: var(--wiz-muted); line-height: 1.35; }

/* Title-only cards (step 1): no supporting line, so centre the title and give the card
   a little more vertical presence so it doesn't read as an empty placeholder.
   Scoped with :not(:has()) so steps that DO carry help text keep their top-aligned,
   two-line treatment unchanged. */
.wiz-opt:not(:has(.wiz-opt-help)) {
  align-items: center; padding: 15px 16px; min-height: 54px;
}
.wiz-opt:not(:has(.wiz-opt-help)) .wiz-opt-body { justify-content: center; }
.wiz-opt:not(:has(.wiz-opt-help)) .wiz-opt-label { line-height: 1.3; text-wrap: balance; }

/* -- nav ------------------------------------------------------------------ */
.wiz-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--wiz-line-soft);
}
.wiz-nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--wiz-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wiz-muted);
  background: none; border: 0; cursor: pointer; padding: 6px 4px;
}
.wiz-nav-back:hover { color: var(--wiz-mineral); }
.wiz-nav-back svg { width: 14px; height: 14px; }
.wiz-nav-hint {
  font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wiz-faint);
}

/* -- preview / results heads --------------------------------------------- */
.wiz-result-head { text-align: left; margin-bottom: 30px; }
.wiz-result-title {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.028em;
  font-weight: 500; margin: 0 0 14px; color: var(--wiz-text);
}
.wiz-result-title em { font-style: normal; color: var(--wiz-brass); font-weight: 500; }
.wiz-result-lede {
  font-size: 15.5px; color: var(--wiz-muted); max-width: 62ch; line-height: 1.55;
}
.wiz-result-lede b { color: var(--wiz-mineral); font-weight: 500; }

/* -- verdict card --------------------------------------------------------- */
.wiz-verdict {
  background: linear-gradient(180deg, rgba(230,224,210,.05), rgba(230,224,210,.015));
  border: 1px solid rgba(230,224,210,.22);
  border-radius: var(--wiz-radius); padding: 32px 32px 28px; margin-bottom: 22px;
}
@media (max-width:720px){ .wiz-verdict { padding: 24px 20px; } }
.wiz-verdict-badge {
  display: inline-block; font-family: var(--wiz-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wiz-brass);
  padding: 5px 10px; border: 1px solid rgba(194,162,106,.35); border-radius: 4px;
  margin-bottom: 14px;
}
.wiz-verdict-title {
  font-size: clamp(24px, 2.8vw, 30px); line-height: 1.14; letter-spacing: -.02em;
  font-weight: 500; margin: 0 0 10px; color: var(--wiz-text);
}
.wiz-verdict-reason { font-size: 15px; color: var(--wiz-muted); line-height: 1.55; }
.wiz-verdict-alt { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--wiz-line); }
.wiz-verdict-alt-head {
  display: block; font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wiz-faint); margin-bottom: 12px;
}
.wiz-verdict-alt-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: baseline;
  padding: 8px 0; font-size: 13.5px;
}
.wiz-verdict-alt-row b { color: var(--wiz-mineral); font-weight: 500; }
.wiz-verdict-alt-row span { color: var(--wiz-muted); line-height: 1.55; }

/* -- teaser grid (pre-gate) ---------------------------------------------- */
.wiz-teaser-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-bottom: 28px;
}
@media (max-width:900px){ .wiz-teaser-grid { grid-template-columns: 1fr; } }
.wiz-teaser {
  background: var(--wiz-bg); border: 1px solid var(--wiz-line);
  border-radius: 14px; padding: 22px; position: relative; overflow: hidden;
}
.wiz-teaser-rank {
  display: inline-block; font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--wiz-brass); margin-bottom: 10px;
}
.wiz-teaser-name { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 4px; color: var(--wiz-text); }
.wiz-teaser-sub { font-size: 12.5px; color: var(--wiz-faint); margin: 0 0 14px; }
.wiz-teaser-fit {
  display: inline-block; font-family: var(--wiz-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.wiz-fit--high   { background: rgba(138,163,148,.14); color: #a8c4b0; }
.wiz-fit--medium { background: rgba(230,224,210,.06); color: var(--wiz-mineral); }
.wiz-fit--low    { background: rgba(184,148,116,.12); color: #c8a983; }
.wiz-teaser-blur {
  margin-top: 18px; display: flex; flex-direction: column; gap: 8px;
  filter: blur(4px); opacity: .55; pointer-events: none; user-select: none;
}
.wiz-blur-line { height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgba(230,224,210,.18), rgba(230,224,210,.06)); }
.wiz-blur-line.short { width: 55%; }

/* -- unlock CTA ----------------------------------------------------------- */
.wiz-unlock { text-align: center; margin-top: 18px; }
.wiz-unlock-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  background: var(--wiz-mineral); color: #0B0F13; border: 0; border-radius: 100px; cursor: pointer;
  box-shadow: 0 12px 40px rgba(230,224,210,.16);
  transition: transform var(--wiz-ease), box-shadow var(--wiz-ease);
}
.wiz-unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 50px rgba(230,224,210,.24); }
.wiz-unlock-btn svg { width: 16px; height: 16px; }
.wiz-unlock-trust {
  margin-top: 14px; font-size: 12.5px; color: var(--wiz-faint); max-width: 46ch; margin-left: auto; margin-right: auto;
  line-height: 1.55;
}

/* -- gate form ------------------------------------------------------------ */
.wiz-gate-head { margin-bottom: 24px; }
.wiz-gate-title {
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.025em;
  font-weight: 500; margin: 0 0 12px; color: var(--wiz-text);
}
.wiz-gate-lede { font-size: 14.5px; color: var(--wiz-muted); line-height: 1.55; max-width: 62ch; }
.wiz-gate-form {
  background: var(--wiz-bg); border: 1px solid var(--wiz-line);
  border-radius: var(--wiz-radius); padding: 30px; display: grid; gap: 16px;
  margin-bottom: 14px;
}
.wiz-fld { display: grid; gap: 6px; }
.wiz-fld-lbl {
  font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wiz-faint);
}
.wiz-fld-input {
  padding: 14px 16px; font-size: 15px; color: var(--wiz-text);
  background: rgba(255,255,255,.015); border: 1px solid var(--wiz-line);
  border-radius: 10px; outline: none; transition: border-color var(--wiz-ease);
  font-family: inherit;
}
.wiz-fld-input:focus { border-color: var(--wiz-mineral); }
.wiz-gate-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; font-size: 15px; font-weight: 500;
  background: var(--wiz-mineral); color: #0B0F13; border: 0; border-radius: 100px; cursor: pointer;
  margin-top: 6px; transition: transform var(--wiz-ease);
}
.wiz-gate-submit:hover { transform: translateY(-1px); }
.wiz-gate-submit svg { width: 16px; height: 16px; }
.wiz-gate-submit.is-shake { animation: wiz-shake .38s ease; }
@keyframes wiz-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}
.wiz-gate-legal { font-size: 12px; color: var(--wiz-faint); text-align: center; line-height: 1.55; }
.wiz-gate-back { margin-top: 8px; }

/* -- results (post-gate) ------------------------------------------------- */
.wiz-verdict--full { margin-bottom: 26px; }
.wiz-result-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px;
}
.wiz-result-card {
  background: var(--wiz-bg); border: 1px solid var(--wiz-line);
  border-radius: 14px; padding: 24px 26px;
}
.wiz-result-top {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--wiz-line-soft); margin-bottom: 14px;
}
.wiz-result-title-wrap h4 {
  font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 2px; color: var(--wiz-text);
}
.wiz-result-title-wrap p { margin: 0; font-size: 12.5px; color: var(--wiz-faint); }
.wiz-result-score {
  font-family: var(--wiz-mono); font-size: 22px; font-weight: 500; color: var(--wiz-mineral);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.wiz-result-score sub {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--wiz-faint);
  vertical-align: baseline;
}
.wiz-result-headline { font-size: 13.5px; color: var(--wiz-muted); margin: 0 0 14px; line-height: 1.55; }
.wiz-result-why {
  list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px;
}
.wiz-result-why li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: baseline;
  font-size: 13.5px; color: var(--wiz-muted); line-height: 1.55;
}
.wiz-result-why svg { width: 14px; height: 14px; color: var(--wiz-brass); margin-top: 2px; }
.wiz-result-whynot {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--wiz-line-soft);
}
.wiz-result-whynot summary {
  font-family: var(--wiz-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wiz-faint); cursor: pointer; list-style: none;
}
.wiz-result-whynot summary::-webkit-details-marker { display: none; }
.wiz-result-whynot summary::after { content: " ▸"; }
.wiz-result-whynot[open] summary::after { content: " ▾"; }
.wiz-result-whynot-body { margin-top: 12px; display: grid; gap: 8px; }
.wiz-result-whynot-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 12.5px; color: var(--wiz-muted);
  line-height: 1.55;
}
.wiz-result-whynot-row b { color: var(--wiz-mineral); font-weight: 500; }

/* -- final CTA ------------------------------------------------------------ */
.wiz-final-cta {
  text-align: center; padding: 30px; background: var(--wiz-bg);
  border: 1px solid var(--wiz-line); border-radius: var(--wiz-radius);
}
.wiz-final-cta p { font-size: 15px; color: var(--wiz-muted); margin: 0 0 18px; }
.wiz-final-cta p b { color: var(--wiz-mineral); font-weight: 500; }
.wiz-final-cta-acts {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.wiz-final-cta-acts .btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  font-size: 14px; font-weight: 500; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--wiz-line); background: transparent; color: var(--wiz-text);
  text-decoration: none; transition: transform var(--wiz-ease), background var(--wiz-ease);
}
.wiz-final-cta-acts .btn:hover { transform: translateY(-1px); }
.wiz-final-cta-acts .btn-primary { background: var(--wiz-mineral); color: #0B0F13; border-color: var(--wiz-mineral); }
.wiz-final-cta-acts .btn-ghost { background: transparent; }
.wiz-final-cta-acts .btn svg { width: 14px; height: 14px; }

/* -- error ---------------------------------------------------------------- */
.wiz-error {
  padding: 24px; border: 1px dashed var(--wiz-line); border-radius: 12px;
  color: var(--wiz-muted); text-align: center;
}
.wiz-error button {
  margin-left: 8px; padding: 6px 12px; border: 1px solid var(--wiz-mineral);
  background: transparent; color: var(--wiz-mineral); border-radius: 4px; cursor: pointer;
}

/* -- teaser (small embed on other pages) ---------------------------------- */
.wiz-teaser-embed {
  background: var(--wiz-bg); border: 1px solid var(--wiz-line);
  border-radius: var(--wiz-radius); padding: 28px 30px;
}
.wiz-teaser-embed .wiz-q { font-size: 22px; }
.wiz-teaser-embed .wiz-opts--chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width:900px){ .wiz-teaser-embed .wiz-opts--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:520px){ .wiz-teaser-embed .wiz-opts--chips { grid-template-columns: 1fr; } }
