/* Free scan: the card, question steps with context and Article chips, the
   result scorecard with its locked report preview. One stylesheet for the
   homepage (all languages) and the checker page; the script is /assets/scan.js.
   Tokens come from content.css; nothing here defines colours of its own. */

/* ---------- card ---------- */
.scan-card { scroll-margin-top: 88px; max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.scan-progress { height: 3px; background: rgba(var(--ink),.08); }
.scan-fill { width: 14%; height: 3px; background: var(--powder); transition: width .5s var(--ease); }
.scan-pane { padding: 32px 40px; position: relative; }
.scan-step-label { font-size: 13.5px; color: var(--faint); font-weight: 500; margin-bottom: 12px; }
.scan-q { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; color: var(--fg); text-wrap: balance; }
.scan-q:focus { outline: none; }
.scan-hint { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.scan-ctx { margin: 12px 0 24px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.scan-opts { display: grid; gap: 8px; }
.scan-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; width: 100%; text-align: left; min-height: 52px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  color: var(--fg); font: 400 16px/1.4 var(--sans); cursor: pointer; transition: border-color .15s, background-color .15s; }
.scan-opt:hover { border-color: rgba(var(--ink),.35); background: rgba(var(--ink),.03); }
.scan-opt:focus-visible { outline: 2px solid var(--powder); outline-offset: 2px; }
.scan-opt.sel { border-color: var(--powder); background: color-mix(in srgb, var(--powder) 10%, transparent); }
.scan-opt .art { flex: none; font-size: 12px; color: var(--faint); white-space: nowrap; }
.scan-input { display: block; width: 100%; height: 52px; margin: 0 0 8px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--input-border);
  background: var(--bg); color: var(--fg); font: 400 16px var(--sans); }
.scan-input::placeholder { color: var(--faint); }
.scan-input:hover { border-color: var(--input-border-hover); }
.scan-input:focus { border-color: var(--powder); outline: none; }
.scan-input:focus-visible { outline: 2px solid var(--powder); outline-offset: 2px; }
.scan-input.is-bad { border-color: var(--t-unacc); }
.scan-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.scan-form { margin-top: 24px; }
.scan-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.scan-back { background: none; border: 0; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; padding: 10px 0; }
.scan-back:hover { color: var(--fg); }
.scan-next { min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--coral-deep); color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.scan-next:hover { background: var(--coral-hover); }
.scan-result p { color: var(--soft); font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.scan-result .scan-step-label { margin-bottom: 16px; }
.scan-result .btn { height: auto; min-height: 48px; padding: 12px 22px; line-height: 1.25; text-align: center; }
.scan-result p.scan-disclaim { font-size: 13.5px; line-height: 1.55; color: var(--faint); margin: 0 0 8px; }
.scan-result p.scan-warn { color: var(--ember); }
.scan-warn a { color: inherit; }
.tier-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 6px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--fg); }
.tier-badge::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--faint); }
.tier-badge.t-un::before { background: var(--t-unacc); } .tier-badge.t-hi::before { background: var(--t-high); }
.tier-badge.t-li::before { background: var(--t-lim); } .tier-badge.t-mi::before { background: var(--t-min); }

/* ---------- question steps ---------- */
.sx-steprow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.sx-topic { display: inline-flex; align-items: baseline; gap: 10px; color: var(--muted); font-weight: 500; }
.sx-topic .art { font-size: 12px; color: var(--ember); }

/* ---------- result: head ---------- */
.scan-result .sx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.scan-result .sx-verdict { min-width: 0; }
.scan-result .sx-head h3 { margin: 14px 0 0; max-width: 32ch; font-size: clamp(21px, 2.3vw, 25px); line-height: 1.25; text-wrap: balance; }
.sx-date { flex: none; display: grid; gap: 4px; justify-items: end; text-align: right; padding-top: 2px; }
.sx-date-k { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.sx-date .art { font-size: 12.5px; }
.sx-date-v { font-size: 14.5px; font-weight: 600; color: var(--fg); max-width: 22ch; }

/* ---------- result: findings ---------- */
.sx-sec { margin: 22px 0 0; }
.sx-title { font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.sx-find { list-style: none; margin: 0; padding: 0; }
.sx-find li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.sx-find .art { font-size: 12px; white-space: normal; line-height: 1.5; }
.sx-txt { display: grid; gap: 3px; min-width: 0; }
.sx-txt strong { font-size: 15.5px; font-weight: 600; color: var(--fg); line-height: 1.35; }
.sx-txt span { font-size: 14.5px; line-height: 1.55; color: var(--soft); }
.sx-st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted); }
.sx-st::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.sx-st.sx-ban::before { background: var(--t-unacc); }
.sx-st.sx-now::before { background: var(--s-gap); }
.sx-st.sx-later::before { background: var(--s-partial); }
.sx-st.sx-check::before { background: var(--powder); }
.sx-st.sx-none::before { background: var(--s-done); }
.scan-result p.sx-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }

/* ---------- result: locked report preview ---------- */
/* Labelled rows of the real report sections over blurred placeholder bars
   (decorative, aria-hidden). Blur sits on the bars only. */
.sx-lock { margin: 24px 0 24px; padding: 20px 24px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.sx-lock .sx-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--fg); }
.sx-lk { flex: none; color: var(--muted); }
.sx-rows { list-style: none; margin: 0; padding: 0; }
.sx-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 1.4; color: var(--soft); }
.sx-ph { display: flex; flex-direction: column; gap: 6px; filter: blur(2.5px); opacity: .9; user-select: none; }
.sx-ph i { display: block; height: 7px; border-radius: 4px; background: rgba(var(--ink), .16); }
.sx-ph i + i { background: rgba(var(--ink), .09); }
.scan-result p.sx-over-p { margin: 16px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.sx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.sx-sample { font-size: 15px; font-weight: 600; }

@media (max-width: 720px) {
  .scan-pane { padding: 24px 20px; }
  .scan-result .sx-head { flex-direction: column; }
  .sx-date { justify-items: start; text-align: left; grid-template-columns: auto auto; column-gap: 10px; }
  .sx-date-k { grid-column: 1 / -1; }
  .sx-find li { grid-template-columns: minmax(0, 1fr) auto; }
  .sx-find .sx-txt { grid-column: 1 / -1; grid-row: 2; }
  .sx-lock { padding: 16px 16px 20px; }
  .sx-rows li { grid-template-columns: minmax(0, 1fr) 30%; gap: 12px; }
  .scan-result .sx-cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .scan-opt { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- checker page: the scan embedded at the top ---------- */
.scan-embed { margin: 32px 0 0; max-width: 760px; }
.scan-embed .ss-q { margin: 0 0 16px; font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
.ss-opts { display: grid; gap: 8px; }
.ss-opt { display: flex; align-items: center; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--fg) !important; text-decoration: none !important; font-size: 15px; line-height: 1.35; }
.ss-foot { margin: 12px auto 0; max-width: 760px; font-size: 14.5px; line-height: 1.5; color: var(--faint); }
.ss-foot a { font-weight: 600; white-space: nowrap; }
.scan-embed + .ss-foot { margin-left: 0; }
