/* scanmole.com — non-critical styles (checker, FAQ, explainer)
   Critical above-the-fold CSS is inlined in index.html. Scanoma palette used
   as accents only, on a calm clinical white base. */

/* ---- Explainer body ---- */
#guide p { margin: 0 0 14px; }
#guide em { font-style: normal; font-weight: 700; color: var(--purple-dark); }

/* ---- Checker card ---- */
.checker-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
}
.checker-card.intro { text-align: center; }
.checker-card.intro .step-explain { max-width: 460px; margin: 0 auto 22px; }

.step-letter {
  width: 52px; height: 52px; line-height: 52px; text-align: center;
  border-radius: 50%; background: var(--bg-tint); color: var(--purple);
  font-size: 26px; font-weight: 700; margin-bottom: 10px;
}
.step-title { font-size: 22px; margin: 0 0 12px; }
.step-explain { color: var(--muted); margin: 0 0 18px; }
.step-bridge {
  background: var(--bg-tint); border-left: 3px solid var(--green);
  padding: 12px 14px; border-radius: 8px; font-size: 15px;
  color: var(--purple-dark); margin: 0 0 18px;
}

/* ---- Contrast illustration ---- */
.ill-pair { display: flex; gap: 18px; margin: 0 0 20px; }
.ill-pair figure { margin: 0; flex: 1; text-align: center; }
.ill-pair svg {
  width: 100%; max-width: 110px; height: auto; margin: 0 auto;
  background: var(--bg-soft); border-radius: 12px; padding: 8px;
}
.ill-pair figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---- Progress bar ---- */
.progress { margin-bottom: 18px; }
.progress-track {
  height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--green); border-radius: 999px;
  transition: width .25s ease;
}
.progress-label { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---- Answer buttons ---- */
.answers {
  border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px;
}
.answers legend { font-weight: 700; font-size: 17px; margin-bottom: 12px; padding: 0; }
.answer-btn {
  font-family: var(--font); font-size: 16px; font-weight: 500;
  text-align: left; cursor: pointer;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px;
  transition: border-color .12s ease, background .12s ease;
}
.answer-btn:hover { border-color: var(--purple); }
.answer-btn.is-selected {
  border-color: var(--purple); background: var(--bg-tint); font-weight: 700;
}

/* ---- Nav row ---- */
.nav-row { display: flex; justify-content: space-between; gap: 12px; }
.btn-ghost {
  font-family: var(--font); font-size: 16px; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 24px;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--muted); color: var(--ink); }
.btn-ghost:disabled, .btn-primary:disabled { opacity: .4; cursor: not-allowed; }

/* ---- Result ---- */
.checker-card.result .recap-list {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.checker-card.result .recap-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
}
.recap-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.muted-list .recap-letter { background: var(--muted); }
.result-guidance {
  background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin: 18px 0;
}
.result-guidance p { margin: 0 0 10px; }
.result-guidance p:last-child { margin-bottom: 0; }
.result-cta {
  display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 6px;
}
.result-cta .btn-primary { text-align: center; }
.result-cta .btn-ghost { align-self: center; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 17px; padding: 14px 28px 14px 0;
  position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 12px;
  font-size: 22px; font-weight: 400; color: var(--purple); transition: transform .15s ease;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 0 14px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---- Footer ---- */
footer p { margin: 0 0 12px; }
footer .download-cta { font-weight: 700; }

@media (max-width: 600px) {
  .checker-card { padding: 22px 18px; }
  .ill-pair svg { max-width: 90px; }
  .nav-row .btn-primary, .nav-row .btn-ghost { padding: 12px 18px; font-size: 15px; }
}
