/* ============================================================
   MITHRA 2026 — AI Readiness Scorecard
   Interactive diagnostic: intro · quiz · capture · result
   Built on the shared token set (mithra.css). No new colors.
   ============================================================ */

/* ---------- state machine ---------- */
.sc-stage [data-view] { display: none; }
.sc-stage[data-state="intro"]   [data-view="intro"],
.sc-stage[data-state="quiz"]    [data-view="quiz"],
.sc-stage[data-state="capture"] [data-view="capture"],
.sc-stage[data-state="result"]  [data-view="result"] { display: block; }

/* ---------- intro hero preview card ---------- */
.sc-hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  backdrop-filter: blur(6px);
  position: relative;
}
.sc-hero-card .sc-hc-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clear-sky); margin-bottom: 18px; display: block;
}
.sc-dim-list { display: grid; gap: 12px; }
.sc-dim-row { display: flex; align-items: center; gap: 14px; }
.sc-dim-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(120,169,255,.16); color: var(--clear-sky);
  display: grid; place-items: center;
}
.sc-dim-ic .ic { width: 21px; height: 21px; }
.sc-dim-row b { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: #fff; display: block; }
.sc-dim-row b + span { font-size: 13px; color: rgba(255,255,255,.62); display: block; margin-top: 1px; }
.sc-hc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sc-hc-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
}
.sc-hc-chip .ic { width: 15px; height: 15px; color: var(--clear-sky); }

.sc-proofline {
  margin-top: 26px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.74);
  max-width: 560px;
}
.sc-proofline b { color: #fff; font-weight: 600; }

/* ---------- quiz shell ---------- */
.sc-quiz-wrap { max-width: 760px; margin: 0 auto; }
.sc-progress-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px;
}
.sc-step-count { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--slate); }
.sc-step-count b { color: var(--really-blue); }
.sc-dim-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cool-water);
}
.sc-dim-tag .ic { width: 15px; height: 15px; }
.sc-progress-track { height: 7px; border-radius: var(--radius-pill); background: var(--soft-border-2); overflow: hidden; }
.sc-progress-fill {
  display: block; height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cool-water), var(--really-blue));
  width: 0; transition: width .4s var(--ease);
}

.sc-card {
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(28px,4vw,44px); margin-top: 24px;
}
.sc-q-text {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(22px,2.8vw,30px); line-height: 1.22; color: var(--ink);
}
.sc-q-hint { color: var(--slate); font-size: 14.5px; margin-top: 12px; line-height: 1.5; }
.sc-options { display: grid; gap: 12px; margin-top: 28px; }
.sc-option {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--soft-border); border-radius: var(--radius);
  padding: 18px 20px; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.sc-option:hover { border-color: var(--cool-water); background: var(--off-white); transform: translateY(-1px); }
.sc-option.selected { border-color: var(--really-blue); background: var(--off-white); box-shadow: 0 0 0 3px rgba(15,98,254,.13); }
.sc-opt-mark {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--soft-border); display: grid; place-items: center;
  color: #fff; transition: .15s var(--ease);
}
.sc-opt-mark .ic { width: 15px; height: 15px; opacity: 0; transition: opacity .12s var(--ease); }
.sc-option.selected .sc-opt-mark { border-color: var(--really-blue); background: var(--really-blue); }
.sc-option.selected .sc-opt-mark .ic { opacity: 1; }
.sc-opt-label { font-weight: 600; font-size: 16.5px; }

.sc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.sc-back {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: none;
  font: inherit; font-weight: 600; font-size: 14.5px; color: var(--slate); cursor: pointer;
  padding: 6px 2px; transition: color .15s;
}
.sc-back:hover { color: var(--really-blue); }
.sc-back .ic { width: 16px; height: 16px; transform: rotate(180deg); }
.sc-back[hidden] { visibility: hidden; }
.sc-foot-note { font-size: 13px; color: var(--slate-light); }

.sc-anim-in { animation: scFade .32s var(--ease); }
@keyframes scFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.anim-off .sc-anim-in { animation: none; }
/* Frozen-transition sandboxes pin computed values at the transition's start
   state. Kill the transitions so the JS-set inline target values apply
   instantly (matches the rest of the site's anim-off fallback). */
html.anim-off .sc-gauge-fill,
html.anim-off .sc-dbr-fill,
html.anim-off .sc-progress-fill { transition: none !important; }

/* ---------- capture ---------- */
.sc-capture-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.sc-capture-ic {
  width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 20px;
  background: var(--off-white); color: var(--really-blue); display: grid; place-items: center;
}
.sc-capture-ic .ic { width: 28px; height: 28px; }
.sc-capture-wrap .form-card { text-align: left; margin-top: 28px; }
.sc-ready-bar {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 auto;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 13.5px;
}
.sc-ready-bar .ic { width: 16px; height: 16px; }

/* ---------- result ---------- */
.sc-result-wrap { max-width: 920px; margin: 0 auto; }
.sc-result-hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px,4vw,48px); align-items: center;
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(28px,4vw,44px);
}
@media (max-width: 680px){ .sc-result-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.sc-gauge { position: relative; width: 188px; height: 188px; flex: 0 0 auto; }
.sc-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-gauge-track { fill: none; stroke: var(--soft-border-2); stroke-width: 14; }
.sc-gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.sc-gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sc-gauge-num { font-family: var(--font-head); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.sc-gauge-of { font-size: 13px; font-weight: 600; color: var(--slate-light); margin-top: 4px; }

.sc-band-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.sc-band-pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.sc-band--low  { background: var(--coral-bg); color: var(--coral); }
.sc-band--low .dot { background: var(--coral); }
.sc-band--mid  { background: var(--amber-bg); color: #8a6a00; }
.sc-band--mid .dot { background: var(--amber); }
.sc-band--high { background: var(--green-bg); color: var(--green); }
.sc-band--high .dot { background: var(--green); }
.sc-result-hero h2 { font-size: clamp(26px,3.2vw,38px); margin: 14px 0 12px; }
.sc-result-hero .sc-band-copy { color: var(--slate); font-size: 16px; line-height: 1.6; max-width: 540px; }

/* dimension breakdown */
.sc-dims { margin-top: 26px; display: grid; gap: 14px; }
.sc-dim-bar-row {
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius);
  padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
}
.sc-dbr-head { display: flex; align-items: center; gap: 11px; }
.sc-dbr-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--off-white); color: var(--really-blue); display: grid; place-items: center; flex: 0 0 auto; }
.sc-dbr-ic .ic { width: 17px; height: 17px; }
.sc-dbr-name { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.sc-dbr-pct { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); text-align: right; }
.sc-dbr-track { grid-column: 1 / -1; height: 8px; border-radius: var(--radius-pill); background: var(--soft-border-2); overflow: hidden; margin-top: 4px; }
.sc-dbr-fill { display: block; height: 100%; border-radius: var(--radius-pill); width: 0; transition: width 1s var(--ease); }
.fill-low  { background: var(--coral); }
.fill-mid  { background: var(--amber); }
.fill-high { background: var(--green); }
.sc-dbr-weak { grid-column: 1 / -1; font-size: 12.5px; color: var(--coral); font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.sc-dbr-weak .ic { width: 14px; height: 14px; }

/* next-step CTA */
.sc-nextstep {
  margin-top: 26px; background: var(--deep-ocean); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px,4vw,40px); position: relative; overflow: hidden;
}
.sc-nextstep .np-tiles { position: absolute; inset: 0 0 0 auto; width: 42%; background-image: url('../assets/bg-dotgrid.png'); background-size: 30px; opacity: .18; -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); }
.sc-nextstep > * { position: relative; }
.sc-nextstep .sc-ns-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clear-sky); }
.sc-nextstep h3 { color: #fff; font-size: clamp(21px,2.4vw,27px); margin: 12px 0 10px; }
.sc-nextstep p { color: rgba(255,255,255,.78); font-size: 15.5px; line-height: 1.6; max-width: 620px; }
.sc-ns-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.sc-retake { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--slate); cursor: pointer; }
.sc-retake:hover { color: var(--really-blue); }
.sc-retake .ic { width: 16px; height: 16px; }
.sc-result-foot { display: flex; justify-content: center; margin-top: 26px; }

@media (max-width: 560px){
  .sc-option { padding: 15px 16px; gap: 13px; }
  .sc-opt-label { font-size: 15.5px; }
}
