/* Free Scan section — white card form + results */
.slscan { }

.slscan__head { max-width: 768px; margin: 0 auto 56px; text-align: center; }
.slscan__eyebrow {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--sl-primary); margin-bottom: 16px;
}
.slscan__title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.15; margin: 0 0 24px; }
.slscan__title span { color: var(--sl-primary); }
.slscan__lede { font-size: 18px; color: var(--sl-muted); margin: 0; }

/* White card */
.slscan__card {
  max-width: 768px; margin: 0 auto;
  border-radius: 16px;
  background: #ffffff; color: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  padding: 24px;
}
@media (min-width: 768px) { .slscan__card { padding: 32px; } }

.slscan__phase[hidden] { display: none; }
.slscan__phase { animation: slscan-fade .25s ease; }
@keyframes slscan-fade { from { opacity: 0; } to { opacity: 1; } }

/* Form rows with dividers */
.slscan__form { display: block; }
.slscan__row { padding: 24px 0; border-top: 1px solid #e2e8f0; }
.slscan__row:first-child { padding-top: 0; border-top: none; }
.slscan__row:last-child { padding-bottom: 0; }

.slscan__label { display: block; font-weight: 600; margin-bottom: 4px; color: #0f172a; }
.slscan__req { color: #dc2626; }
.slscan__optional { font-size: 14px; font-weight: 400; color: #64748b; }
.slscan__help { font-size: 14px; color: #64748b; margin: 0 0 12px; }

.slscan__input {
  width: 100%; max-width: 28rem;
  border-radius: 6px; border: 1px solid #e2e8f0; background: #f8fafc;
  padding: 10px 14px; font-size: 14px; color: #0f172a;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.slscan__input:focus { border-color: var(--sl-primary); box-shadow: 0 0 0 1px var(--sl-primary); }
.slscan__input::placeholder { color: #94a3b8; }

/* Industry pills */
.slscan__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.slscan__pill {
  border-radius: 6px; border: 1px solid #e2e8f0; background: #f8fafc;
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: #64748b;
  transition: color .15s, border-color .15s, background .15s;
}
.slscan__pill:hover { color: #0f172a; border-color: rgba(26, 98, 255, 0.5); }
.slscan__pill.is-active {
  border-color: var(--sl-primary);
  background: rgba(26, 98, 255, 0.1);
  color: var(--sl-primary);
}

/* Submit */
.slscan__row--submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.slscan__submit {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 6px; border: none; background: var(--sl-primary); color: #fff;
  font-weight: 700; padding: 10px 24px; font-size: 14px;
  transition: opacity .15s;
}
.slscan__submit:hover:not(:disabled) { opacity: 0.9; }
.slscan__submit:disabled { opacity: 0.4; cursor: not-allowed; }
.slscan__note { font-size: 14px; color: #64748b; }

/* Scanning */
.slscan__scanning { padding: 40px 0; text-align: center; }
.slscan__spinner { color: var(--sl-primary); margin: 0 auto 20px; animation: slscan-spin 0.9s linear infinite; }
@keyframes slscan-spin { to { transform: rotate(360deg); } }
.slscan__scan-title { font-weight: 700; margin-bottom: 4px; }
.slscan__scan-sub { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.slscan__bar { max-width: 28rem; margin: 0 auto 12px; height: 8px; border-radius: 9999px; background: #e2e8f0; overflow: hidden; }
.slscan__bar-fill { height: 100%; border-radius: 9999px; background: var(--sl-primary); width: 0%; transition: width .15s linear; }
.slscan__pct { font-size: 12px; color: #64748b; margin-bottom: 24px; }
.slscan__steps { display: flex; flex-direction: column; gap: 10px; }
.slscan__step { font-size: 14px; color: #cbd5e1; transition: color .2s; }
.slscan__step.is-done { color: #64748b; text-decoration: line-through; text-decoration-color: #cbd5e1; }
.slscan__step.is-current { color: #0f172a; font-weight: 600; }

/* Error */
.slscan__error { padding: 32px 0; text-align: center; }
.slscan__error-icon { color: #dc2626; margin: 0 auto 16px; }
.slscan__error-msg { font-size: 14px; color: #64748b; margin: 0 auto 24px; max-width: 24rem; }
.slscan__retry {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  padding: 10px 20px; font-size: 14px; font-weight: 600; transition: border-color .15s;
}
.slscan__retry:hover { border-color: var(--sl-primary); }

/* Results */
.slscan__results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.slscan__scanned-label { font-size: 14px; color: #64748b; }
.slscan__scanned-url { font-weight: 600; font-size: 14px; word-break: break-all; }
.slscan__verdict { border-radius: 9999px; padding: 6px 16px; font-size: 14px; font-weight: 700; }
.slscan__verdict.is-warn { background: #fffbeb; color: #d97706; }
.slscan__verdict.is-good { background: #ecfdf5; color: #059669; }

.slscan__findings { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.slscan__finding {
  border-radius: 16px; border: 1px solid #e2e8f0; background: #f8fafc; overflow: hidden;
  animation: slscan-fade-up .35s ease both;
}
@keyframes slscan-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slscan__finding-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #e2e8f0; }
.slscan__finding-cat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.slscan__finding-cat svg { flex-shrink: 0; }
.slscan__finding-cat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.slscan__badge { flex-shrink: 0; border-radius: 9999px; border: 1px solid; padding: 2px 10px; font-size: 11px; font-weight: 700; }

/* verdict colors (600-shades on tinted bg) */
.slscan--fail svg { color: #dc2626; }
.slscan--warn svg { color: #d97706; }
.slscan--pass svg { color: #059669; }
.slscan__badge--fail { background: #fef2f2; color: #dc2626; border-color: rgba(220, 38, 38, 0.3); }
.slscan__badge--warn { background: #fffbeb; color: #d97706; border-color: rgba(217, 119, 6, 0.3); }
.slscan__badge--pass { background: #ecfdf5; color: #059669; border-color: rgba(5, 150, 105, 0.3); }

.slscan__finding-body { padding: 16px 20px; }
.slscan__finding-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #0f172a; }
.slscan__finding-grid { display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.slscan__finding-line { display: flex; gap: 8px; }
.slscan__finding-key { flex-shrink: 0; font-weight: 600; color: #94a3b8; width: 96px; }
.slscan__finding-saw { color: #1e293b; }
.slscan__finding-why { color: #64748b; }
.slscan__evidence { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.slscan__evidence span {
  border-radius: 6px; background: #fff; border: 1px solid #e2e8f0;
  padding: 4px 8px; font-size: 12px; color: #64748b; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Result CTA */
.slscan__cta {
  border-radius: 16px; padding: 24px; text-align: center;
}
.slscan__cta--warn { background: rgba(26, 98, 255, 0.1); border: 1px solid rgba(26, 98, 255, 0.3); }
.slscan__cta--good { background: #f8fafc; border: 1px solid #e2e8f0; }
.slscan__cta-title { font-weight: 700; margin-bottom: 4px; color: #0f172a; }
.slscan__cta-sub { font-size: 14px; color: #64748b; margin: 0 0 16px; }
.slscan__cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; background: var(--sl-primary); color: #fff;
  font-weight: 700; padding: 12px 24px; font-size: 14px; transition: opacity .15s;
}
.slscan__cta-btn:hover { opacity: 0.9; }

.slscan__again {
  margin-top: 16px; width: 100%; text-align: center; background: none; border: none;
  font-size: 14px; color: #64748b; transition: color .15s; padding: 8px;
}
.slscan__again:hover { color: #0f172a; }

@media (prefers-reduced-motion: reduce) {
  .slscan__phase, .slscan__finding { animation: none; }
  .slscan__spinner { animation-duration: 2s; }
  .slscan__bar-fill { transition: none; }
}
