/* ═══════════════════════════════════════════════
   Licentium — Marketing Compliance Checker
   ═══════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  --bg:        #f8f7f4;
  --bg-warm:   #f3f1ec;
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --text-2:    #5c5c5c;
  --text-3:    #8a8a8a;
  --line:      #e8e6e1;
  --line-soft: #f0eeea;

  /* Severity palette */
  --block-bg:   #dc2626;
  --block-fg:   #ffffff;
  --block-surface: #fef2f2;
  --block-border:  #dc2626;

  --high-bg:    #ea580c;
  --high-fg:    #ffffff;
  --high-surface: #fff7ed;
  --high-border:   #ea580c;

  --medium-bg:    #ca8a04;
  --medium-fg:    #ffffff;
  --medium-surface: #fefce8;
  --medium-border:   #ca8a04;

  --low-bg:     #16a34a;
  --low-fg:     #ffffff;
  --low-surface: #f0fdf4;
  --low-border:  #16a34a;

  /* Verdict palette */
  --verdict-block-bg: #fef2f2;
  --verdict-block-fg: #991b1b;
  --verdict-block-border: #fecaca;

  --verdict-warn-bg: #fffbeb;
  --verdict-warn-fg: #92400e;
  --verdict-warn-border: #fde68a;

  --verdict-pass-bg: #f0fdf4;
  --verdict-pass-fg: #166534;
  --verdict-pass-border: #bbf7d0;

  /* Accent */
  --accent: #1a1a1a;
  --accent-soft: #f5f5f5;

  /* Risk score badge */
  --risk-border: #d1d1d1;

  /* Rewrite block */
  --rewrite-bg: linear-gradient(135deg, #fefce8 0%, #f0fdf4 100%);
  --rewrite-border: #d9f99d;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;

  /* Shadow */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-form: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

/* ─── Page shell ─── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ─── */
.header {
  padding: 28px 0 12px;
}
.logo-link { display: inline-block; }
.logo {
  height: 52px;
  width: auto;
  display: block;
}

/* ─── Main ─── */
.main { flex: 1; padding-bottom: 48px; }

.title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 24px 0 12px;
  color: var(--text);
}

.subtitle {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.5;
}

/* ─── Form ─── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-form);
}

.field { margin-bottom: 18px; }
.field--half { flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
.input--select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.input--select:disabled { opacity: 0.5; cursor: not-allowed; }
.input--select option:disabled { color: #9ca3af; }
@media (max-width: 600px) {
  .field-row { flex-direction: column; gap: 0; }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.label-hint {
  font-weight: 400;
  color: var(--text-3);
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.input--lg { min-height: 140px; }
.input--sm { min-height: 68px; }

.input-file {
  width: 100%;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.input-file:hover { border-color: var(--accent); }

.file-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.file-input-wrap .input-file { flex: 1; }
.file-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.file-clear:hover {
  color: #ef4444;
  background: #fef2f2;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.experimental-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9333ea;
  background: #f3e8ff;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

/* ─── Button ─── */
.btn-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: relative;
}
.btn-check:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-check:active { transform: translateY(0); }
.btn-check:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-check__loading { display: none; align-items: center; gap: 10px; }
.btn-check.is-loading .btn-check__label { display: none; }
.btn-check.is-loading .btn-check__loading { display: inline-flex; }

/* Dot pulse loader */
.dot-pulse {
  display: inline-flex;
  gap: 4px;
}
.dot-pulse::before,
.dot-pulse::after,
.dot-pulse span {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: dotPulse 1s ease-in-out infinite;
}
.dot-pulse::after { animation-delay: 0.2s; }
/* no span needed, we use pseudo-elements + the element itself */
.dot-pulse { animation: dotPulse 1s ease-in-out infinite; animation-delay: 0.4s;
  width: 5px; height: 5px; background: #fff; border-radius: 50%; position: relative; }
.dot-pulse::before { position: absolute; left: -9px; top: 0; }
.dot-pulse::after { position: absolute; left: 9px; top: 0; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.usage-tag {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   RESULT AREA
   ═══════════════════════════════════════ */

.result-area { margin-top: 32px; }

/* ─── Quoted input ─── */
.result-quote {
  background: linear-gradient(135deg, #f8f7f4 0%, #f0eeea 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  position: relative;
}
.result-quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 36px;
  color: var(--text-3);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

/* ─── Verdict + Score row ─── */
.verdict-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  border: 2.5px solid;
}
.verdict-badge svg { flex-shrink: 0; width: 24px; height: 24px; stroke-width: 3.2; }

.verdict-badge--block {
  background: var(--verdict-block-bg);
  color: var(--verdict-block-fg);
  border-color: var(--verdict-block-border);
}
.verdict-badge--warn {
  background: var(--verdict-warn-bg);
  color: var(--verdict-warn-fg);
  border-color: var(--verdict-warn-border);
}
.verdict-badge--pass {
  background: var(--verdict-pass-bg);
  color: var(--verdict-pass-fg);
  border-color: var(--verdict-pass-border);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  background: #fef9ee;
  border: 2px solid #e8d5a3;
  color: #78530a;
  margin-left: auto;
}

/* ─── Section headings ─── */
.section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.btn-copy-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.1s;
}
.btn-copy-sm:hover { background: var(--bg-warm); }

/* ─── Finding cards ─── */
.findings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.finding-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  border-left: 4px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s;
}
.finding-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 6px 18px rgba(0,0,0,0.04);
}

.finding-card--block  { border-left-color: var(--block-border);  background: var(--block-surface); }
.finding-card--high   { border-left-color: var(--high-border);   background: var(--high-surface); }
.finding-card--medium { border-left-color: var(--medium-border); background: var(--medium-surface); }
.finding-card--low    { border-left-color: var(--low-border);    background: var(--low-surface); }

.finding-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.severity-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.severity-tag--block  { background: var(--block-bg);  color: var(--block-fg); }
.severity-tag--high   { background: var(--high-bg);   color: var(--high-fg); }
.severity-tag--medium { background: var(--medium-bg); color: var(--medium-fg); }
.severity-tag--low    { background: var(--low-bg);    color: var(--low-fg); }

.finding-excerpt {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.finding-excerpt::before { content: '\201C'; }
.finding-excerpt::after  { content: '\201D'; }

.finding-body {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 4px;
}

.finding-citations {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}
.finding-citations a {
  color: var(--accent, #2563eb);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.finding-citations a:hover {
  border-bottom-style: solid;
}

/* ─── Tooltip (?) ─── */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  line-height: 1;
  flex-shrink: 0;
}
.tooltip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 10px 12px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 100;
  pointer-events: none;
}
.tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}
.tooltip-wrap:hover .tooltip-bubble {
  display: block;
}

/* ─── Legal basis (Pro feature) ─── */
.legal-basis {
  margin-top: 8px;
  padding: 6px 10px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}
.legal-basis-label {
  font-weight: 600;
}

/* ─── Client comment (Pro feature) ─── */
.client-comment {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef9e7;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-2, #4b5563);
  line-height: 1.5;
}
.client-comment-label {
  font-weight: 600;
  color: #b45309;
}

/* ─── Upgrade hint (locked features) ─── */
.findings-upgrade-banner {
  margin: 16px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border: 1px solid #f59e0b;
  border-radius: 10px;
  font-size: 14px;
  color: #92400e;
  text-align: center;
}
.findings-upgrade-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.findings-upgrade-banner .upgrade-link {
  color: #d97706;
  font-weight: 700;
  text-decoration: underline;
}
.upgrade-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
}
.upgrade-hint svg { flex-shrink: 0; color: #94a3b8; }
.upgrade-link {
  color: var(--accent, #2563eb);
  text-decoration: none;
  font-weight: 600;
}
.upgrade-link:hover { text-decoration: underline; }

/* ─── Video mode ─── */
.video-loading-hint {
  text-align: center;
  font-size: 14px;
  color: var(--text-2, #6b7280);
  padding: 12px 0 8px;
  font-style: italic;
}
.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.video-badge svg { flex-shrink: 0; }
.transcript-section {
  margin-bottom: 16px;
}
.transcript-section summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-3, #9ca3af);
  font-weight: 500;
}
.transcript-section summary:hover { color: var(--text-2, #6b7280); }
.transcript-text {
  margin-top: 8px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2, #4b5563);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ─── Per-finding suggestion ─── */
.finding-suggestion {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}
.finding-suggestion::before {
  content: 'Safer alternative: ';
  font-weight: 700;
}

/* ─── Section block (disclosures, risk words) ─── */
.section-block {
  margin-bottom: 24px;
}

/* ─── Missing disclosures ─── */
.disclosure-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.disclosure-list li {
  padding: 10px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: #9a3412;
  line-height: 1.5;
}

/* ─── High-risk words ─── */
.risk-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.risk-word-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #991b1b;
  letter-spacing: 0.01em;
}

/* ─── Rewrite block ─── */
.rewrite-card {
  background: var(--rewrite-bg);
  border: 2.5px solid var(--rewrite-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.rewrite-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rewrite-header svg { flex-shrink: 0; color: #65a30d; stroke-width: 2.6; }
.rewrite-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

/* ─── Rewrite variant tabs ─── */
.rewrite-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line, #e5e7eb);
  padding-bottom: 0;
}
.rewrite-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3, #9ca3af);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.rewrite-tab:hover { color: var(--text-2, #6b7280); }
.rewrite-tab--active {
  color: #65a30d;
  border-bottom-color: #65a30d;
}
.rewrite-panel { display: none; }
.rewrite-panel--active { display: block; }

.rewrite-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
}
.rewrite-text::before { content: '\201C'; font-weight: 600; }
.rewrite-text::after  { content: '\201D'; font-weight: 600; }

.rewrite-copy {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.1s;
}
.rewrite-copy:hover { background: rgba(255,255,255,0.9); }

/* ─── Safer Image ─── */
.safer-image-card {
  background: var(--rewrite-bg);
  border: 2.5px solid var(--rewrite-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.safer-image-wrap {
  margin: 14px 0;
  text-align: center;
}
.safer-image {
  max-width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.btn-download-img {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #65a30d;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s;
}
.btn-download-img:hover { background: rgba(255,255,255,0.9); }

/* ─── Visual Recommendations ─── */
.visual-recs-card {
  background: #f0f4ff;
  border: 2.5px solid #bfdbfe;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.visual-recs-card .rewrite-header svg { color: #2563eb; }
.visual-recs-list {
  margin: 10px 0 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.visual-recs-list li { margin-bottom: 6px; }

/* ─── Summary ─── */
.jurisdiction-text {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid #9ca3af;
}
.jurisdiction-label {
  font-weight: 600;
  color: #4b5563;
}

.summary-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--bg-warm);
  border-radius: var(--r-md);
}

/* ─── Disclaimer ─── */
.disclaimer-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.55;
  color: #4a6fa5;
  white-space: pre-wrap;
}

/* ─── Error ─── */
.error-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-lg);
  padding: 20px;
  color: #991b1b;
  font-size: 14px;
}
.error-card strong { display: block; margin-bottom: 6px; }
.error-card pre {
  white-space: pre-wrap;
  font-size: 12px;
  margin-top: 8px;
  background: rgba(0,0,0,0.03);
  padding: 10px;
  border-radius: var(--r-sm);
}

/* ─── Limit reached ─── */
.limit-card {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
}
.limit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 8px;
}
.limit-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.limit-card a {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Skeleton loading ─── */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, var(--bg) 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-md);
}
.skeleton--bar { height: 44px; }
.skeleton--card { height: 90px; }
.skeleton--wide { height: 64px; width: 100%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Out of scope ─── */
.out-of-scope-card {
  padding: 28px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  line-height: 1.6;
}

/* ─── No findings ─── */
.no-findings {
  padding: 18px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  background: var(--bg);
  border-radius: var(--r-md);
}

/* ─── Footer ─── */
.footer {
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

/* ─── Animations ─── */
.fade-in {
  animation: fadeIn 0.35s ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.finding-card:nth-child(1) { animation-delay: 0.05s; }
.finding-card:nth-child(2) { animation-delay: 0.1s; }
.finding-card:nth-child(3) { animation-delay: 0.15s; }
.finding-card:nth-child(4) { animation-delay: 0.2s; }
.finding-card:nth-child(5) { animation-delay: 0.25s; }
.finding-card:nth-child(6) { animation-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .page { padding: 0 14px; }
  .title { font-size: 28px; }
  .form-card { padding: 20px; }
  .verdict-row { flex-direction: column; align-items: flex-start; }
  .risk-badge { margin-left: 0; }
  .finding-card { padding: 14px 16px; }
}
