/* /is-this-qr-safe/ page styles. Loaded on top of /css/style.006261b8.css. */

.scan-page { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.scan-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.scan-lead { font-size: 1.05rem; line-height: 1.55; opacity: 0.92; max-width: 70ch; }
.scan-promise {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(96, 165, 250, 0.07);
  border-left: 3px solid #60a5fa;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.scan-controls {
  margin: 2rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.scan-tabs { display: flex; gap: 0.25rem; margin-bottom: 1rem; flex-wrap: wrap; }
.scan-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s;
}
.scan-tab:hover { background: rgba(255, 255, 255, 0.05); }
.scan-tab.is-active { background: rgba(96, 165, 250, 0.18); border-color: #60a5fa; color: #fff; }

.scan-pane { display: none; }
.scan-pane.is-active { display: block; }

.scan-cam-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}
.scan-cam-frame video { width: 100%; height: 100%; object-fit: cover; }
.scan-cam-controls { display: flex; gap: 0.5rem; margin-top: 0.75rem; justify-content: center; }
.scan-cam-hint { font-size: 0.85rem; opacity: 0.7; text-align: center; margin-top: 0.5rem; }

.btn-primary, .btn-secondary {
  font: inherit;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border 0.15s;
}
.btn-primary { background: #60a5fa; color: #08090a; border-color: #60a5fa; font-weight: 600; }
.btn-primary:hover { background: #3b82f6; }
.btn-secondary { background: transparent; color: inherit; border-color: rgba(255,255,255,0.18); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }

.scan-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.scan-upload-label:hover, .scan-upload-label.is-drag {
  background: rgba(96,165,250,0.08);
  border-color: #60a5fa;
}
.scan-upload-icon { font-size: 2rem; }

#scan-paste-input {
  width: 100%;
  font: 0.95rem/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: inherit;
  resize: vertical;
  min-height: 6rem;
}
#scan-paste-submit { margin-top: 0.75rem; }

.scan-error {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.08);
  border-left: 3px solid #fb7185;
  padding: 0.6rem 0.9rem;
  border-radius: 0 6px 6px 0;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Verdict styles */
.scan-result { margin-top: 1.5rem; }
.verdict {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  overflow: hidden;
}
.verdict-band {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}
.verdict-band-green { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.verdict-band-yellow { background: rgba(250, 204, 21, 0.18); color: #fde047; }
.verdict-band-red { background: rgba(251, 113, 133, 0.18); color: #fda4af; }
.verdict-band-blocked { text-transform: uppercase; letter-spacing: 0.05em; }

.verdict-type { margin: 0 0 0.5rem; font-size: 1.1rem; }
.verdict-disclosure { font-size: 1.02rem; line-height: 1.55; margin: 0 0 0.85rem; }
.verdict-preview {
  background: rgba(0,0,0,0.25);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.verdict-preview code { font: 0.85rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.verdict-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.verdict-row-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.verdict-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.85rem;
  background: rgba(96,165,250,0.15);
  color: #93c5fd;
  width: fit-content;
}
.verdict-pill-static { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.verdict-pill-cyclic { background: rgba(251,113,133,0.18); color: #fda4af; }

.verdict-chain { list-style: decimal inside; padding: 0; margin: 0; font-size: 0.9rem; }
.verdict-chain li { padding: 0.15rem 0; }
.verdict-chain-status { opacity: 0.6; font-size: 0.8rem; margin-left: 0.4rem; }

.verdict-attribution, .verdict-subs { list-style: none; padding: 0; margin: 0; }
.verdict-attribution li, .verdict-subs li {
  padding: 0.35rem 0.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}
.verdict-sub-role { font-weight: 600; margin-right: 0.5rem; }
.verdict-sub-class {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.verdict-debug { margin-top: 1rem; }
.verdict-debug summary { cursor: pointer; opacity: 0.7; font-size: 0.85rem; }
.verdict-debug pre {
  background: rgba(0,0,0,0.35);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  overflow-x: auto;
  max-height: 320px;
}
.verdict-meta {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  opacity: 0.55;
  text-align: right;
}

.verdict-loading h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.verdict-spinner { font-size: 1.3rem; text-align: center; margin: 0.75rem 0 0; }

.scan-explainer { margin-top: 2.5rem; }
.scan-explainer h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.scan-faq { margin-bottom: 0.75rem; }
.scan-faq summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
.scan-faq p { padding: 0.25rem 0 0.75rem; line-height: 1.55; }
