/* Kavach · कवच — styles */
:root {
  --ink: #0d2240;
  --ink-2: #1c3a63;
  --text: #17202e;
  --text-2: #4a5566;
  --muted: #5f6b7c;
  --bg: #f5f2ec;
  --bg-2: #efeae1;
  --surface: #ffffff;
  --surface-2: #f8f6f2;
  --line: #e2dccf;
  --line-2: #d4ccbb;
  --saffron: #f29a2e;
  --saffron-2: #c96f0a;
  --focus: #1f6feb;

  --scam: #c0262d;
  --scam-bg: #fdecec;
  --scam-ink: #7d1116;
  --warn: #b25e00;
  --warn-bg: #fff3df;
  --warn-ink: #6e3a00;
  --safe: #17784a;
  --safe-bg: #e5f5ec;
  --safe-ink: #0c4a2c;

  --mark: #ffd9d4;
  --mark-line: #c0262d;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 34, 64, .06), 0 8px 24px -12px rgba(13, 34, 64, .18);
  --shadow-lg: 0 2px 4px rgba(13, 34, 64, .06), 0 24px 48px -20px rgba(13, 34, 64, .3);

  --font: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Nirmala UI", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Baloo 2", "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0a1a31;
    --ink-2: #b8c9e6;
    --text: #e8ecf2;
    --text-2: #bcc5d2;
    --muted: #97a3b4;
    --bg: #0e1522;
    --bg-2: #121b2b;
    --surface: #162133;
    --surface-2: #1b283d;
    --line: #26344b;
    --line-2: #34445e;
    --saffron: #f5a84a;
    --saffron-2: #f5a84a;
    --focus: #6aa7ff;

    --scam: #ff6b6b;
    --scam-bg: #3a1619;
    --scam-ink: #ffc9c9;
    --warn: #f3b04b;
    --warn-bg: #3a2a10;
    --warn-ink: #ffe0ad;
    --safe: #4fd08c;
    --safe-bg: #10301f;
    --safe-ink: #c1f2d6;

    --mark: #5a2226;
    --mark-line: #ff8a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; outline: none; }
img, svg, audio { max-width: 100%; }
svg { fill: currentColor; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { a { color: #9cc3ff; } }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface);
  color: var(--text); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px -12px rgba(0, 0, 0, .5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.bm-outer { fill: #fff; opacity: .14; }
.bm-inner { fill: var(--saffron); }
.bm-check { fill: none; stroke: #0d2240; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .2px; }
.brand-dot { color: var(--saffron); }
.brand-sub { font-size: .75rem; color: #b9c6da; }
.lang-picker { display: flex; align-items: center; gap: 8px; }
.lang-label { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #c9d4e6; }
.lang-label svg { width: 18px; height: 18px; }
#language {
  appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center / 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; border-radius: 10px; padding: 8px 32px 8px 12px; min-height: 42px;
  max-width: 220px; cursor: pointer;
}
#language option { color: #111; background: #fff; }
#language:hover { background-color: rgba(255, 255, 255, .16); }
@media (max-width: 480px) {
  .brand-sub, .lang-label span { display: none; }
  #language { max-width: 170px; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1200px 300px at 80% -80px, rgba(242, 154, 46, .28), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #16345c 100%);
  color: #fff;
  padding: 36px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 360px; opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M32 3 8 12v18c0 15 10 26 24 31 14-5 24-16 24-31V12Z'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.eyebrow { color: var(--saffron); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.05; }
.hero-sub { color: #d6dfec; font-size: 1.05rem; max-width: 640px; margin-top: 10px; }
.hero-sub-hi { color: #f7c98d; font-size: 1rem; }

.input-wrap { margin-top: -72px; position: relative; z-index: 2; padding-bottom: 32px; }

/* ---------------------------------------------------------------- cards / buttons */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
@media (max-width: 480px) { .card { padding: 16px; border-radius: 14px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .08s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; border-radius: 14px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(13, 34, 64, .7); }
.btn-primary:hover:not(:disabled) { background: #183a68; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--saffron); color: #1b1203; }
  .btn-primary:hover:not(:disabled) { background: #ffb866; }
}
.btn-secondary { background: var(--surface); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: var(--scam); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn-danger { color: #1a0405; } }
.btn-danger-text { color: var(--scam); }
.btn-icon { width: 44px; padding: 0; background: var(--surface-2); border-color: var(--line); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; }
.linklike:disabled { opacity: .6; cursor: default; text-decoration: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; line-height: 1.4;
}
.badge-neutral { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge-high { background: var(--scam-bg); color: var(--scam-ink); }
.badge-medium { background: var(--warn-bg); color: var(--warn-ink); }
.badge-low { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge-corr { background: #e7eefb; color: #183a68; }
.badge-ai { background: #efe8fb; color: #4b2a8a; }
.badge-rule { background: #e6f2f1; color: #11524d; }
@media (prefers-color-scheme: dark) {
  .badge-corr { background: #1d2f4f; color: #bcd3ff; }
  .badge-ai { background: #2c2145; color: #d7c6ff; }
  .badge-rule { background: #13302d; color: #a8e6df; }
}
.count-pill { display: inline-block; min-width: 26px; text-align: center; background: var(--scam); color: #fff; border-radius: 999px; font-size: .8rem; padding: 1px 8px; vertical-align: middle; margin-left: 4px; }
.count-pill:empty { display: none; }

/* ---------------------------------------------------------------- tabs / input */
.input-card { padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; min-height: 56px; border: 0; background: transparent; cursor: pointer;
  font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--saffron); background: var(--surface); }
.tab:hover { color: var(--text); }
.tab-panel { padding: 20px; }
@media (max-width: 480px) { .tab-panel { padding: 16px; } .tab { font-size: .9rem; gap: 6px; } }

.dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 28px 16px;
  cursor: pointer; background: var(--surface-2); transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--saffron); background: rgba(242, 154, 46, .07); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dz-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--saffron-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dz-title { font-weight: 700; font-size: 1.1rem; }
.dz-link { color: var(--saffron-2); text-decoration: underline; }
.dz-hint { color: var(--muted); font-size: .92rem; }
.dz-limit { color: var(--muted); font-size: .8rem; }

.file-preview { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fp-media { flex: 0 0 auto; max-width: 100%; }
.fp-media img { max-height: 180px; max-width: 220px; border-radius: 10px; border: 1px solid var(--line); display: block; object-fit: contain; background: var(--surface-2); }
.fp-media audio { width: 280px; max-width: 100%; }
.fp-doc { width: 96px; height: 120px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--scam); }
.fp-meta { flex: 1 1 220px; min-width: 0; }
.fp-name { font-weight: 700; word-break: break-all; }
.fp-size { color: var(--muted); font-size: .9rem; }
.fp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.recorder { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.rec-intro { color: var(--text-2); max-width: 460px; }
.rec-button {
  position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); display: grid; place-items: center; margin: 10px 0 0;
  box-shadow: inset 0 0 0 2px var(--line-2);
}
.rec-dot { width: 58px; height: 58px; border-radius: 50%; background: var(--scam); transition: border-radius .2s, width .2s, height .2s; }
.rec-label { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 700; }
.rec-ring { position: absolute; inset: 0; border-radius: 50%; }
.rec-button.is-recording .rec-dot { width: 40px; height: 40px; border-radius: 8px; }
.rec-button.is-recording .rec-ring { box-shadow: 0 0 0 0 rgba(192, 38, 45, .5); animation: pulse-ring 1.4s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(192, 38, 45, .45); } 100% { box-shadow: 0 0 0 26px rgba(192, 38, 45, 0); } }
.rec-timer { margin-top: 34px; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; }
.rec-status { color: var(--muted); min-height: 1.4em; }
.rec-result { width: 100%; max-width: 480px; }
.rec-result audio { width: 100%; }
.rec-result .fp-actions { justify-content: center; }

.text-form { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-weight: 600; }
textarea, input[type="text"] {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  background: var(--surface); resize: vertical; min-height: 44px; font-size: 1rem;
}
textarea:focus, input[type="text"]:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.text-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.input-error { margin: 0 20px 20px; padding: 10px 14px; border-radius: 10px; background: var(--scam-bg); color: var(--scam-ink); font-weight: 600; }

/* ---------------------------------------------------------------- samples */
.samples { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sample-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sample-skeleton { height: 160px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-2), var(--surface), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sample {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sample:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.sample-thumb { height: 120px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.sample-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sample-thumb audio { width: calc(100% - 20px); height: 40px; }
.sample-thumb .snippet { padding: 12px 14px; font-size: .85rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; align-self: stretch; }
.sample-kind { position: absolute; top: 8px; left: 8px; }
.sample-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sample-title { font-weight: 700; }
.sample-sub { color: var(--muted); font-size: .85rem; }
.sample-body .btn { margin-top: auto; align-self: flex-start; }

.how { margin-top: 36px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.how-steps p { color: var(--text-2); font-size: .92rem; }
.how-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--saffron); font-weight: 800; font-family: var(--font-display); font-size: 1.1rem; }
@media (prefers-color-scheme: dark) { .how-num { background: var(--surface-2); } }
.powered { margin-top: 16px; color: var(--muted); font-size: .82rem; text-align: center; }

/* ---------------------------------------------------------------- result */
.result-wrap { padding-top: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.result-toolbar { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.result-toolbar .btn { padding-left: 8px; padding-right: 12px; }

/* progress */
.progress-head { display: flex; align-items: center; gap: 14px; }
.progress-titles { flex: 1; min-width: 0; }
.progress-titles h2 { font-size: 1.15rem; }
.elapsed { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 10px; }
.shield-pulse { width: 44px; height: 48px; flex: none; position: relative; }
.shield-pulse svg { width: 100%; height: 100%; fill: var(--saffron); animation: shield-breathe 1.8s ease-in-out infinite; }
@keyframes shield-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
.progress-card.is-done .shield-pulse svg { animation: none; fill: var(--safe); }
.progress-card.is-failed .shield-pulse svg { animation: none; fill: var(--scam); }
.progress-card.is-done { padding-top: 14px; padding-bottom: 14px; }
.progress-card.is-done .stepper { margin-top: 12px; }

.stepper { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .stepper { grid-template-columns: 1fr; } }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; min-width: 0; }
.step-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: #fff; }
.step-icon svg { width: 16px; height: 16px; }
.step-text { min-width: 0; font-size: .9rem; line-height: 1.3; }
.step-label { font-weight: 600; }
.step-msg { display: block; color: var(--muted); font-size: .8rem; }
.step[data-status="pending"] { color: var(--muted); }
.step[data-status="active"] { border-color: var(--saffron); background: rgba(242, 154, 46, .08); color: var(--text); }
.step[data-status="active"] .step-icon { border-color: rgba(242, 154, 46, .3); border-top-color: var(--saffron); animation: spin .9s linear infinite; }
.step[data-status="active"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent); animation: sweep 1.6s ease-in-out infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.step[data-status="done"] .step-icon { background: var(--safe); border-color: var(--safe); }
.step[data-status="failed"] .step-icon { background: var(--scam); border-color: var(--scam); }
.step[data-status="failed"] { border-color: var(--scam); }
.notices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.notices:empty { display: none; }
.notices li { padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: .9rem; }

.error-card { border-color: var(--scam); background: var(--scam-bg); color: var(--scam-ink); display: grid; gap: 10px; justify-items: start; }

/* verdict */
.verdict {
  --v: var(--muted); --v-bg: var(--surface-2); --v-ink: var(--text);
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-radius: 20px; padding: 22px; background: var(--v-bg); color: var(--v-ink);
  border: 2px solid var(--v); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  animation: rise .4s ease-out;
}
.verdict::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--v); }
.verdict[data-verdict="scam"] { --v: var(--scam); --v-bg: var(--scam-bg); --v-ink: var(--scam-ink); }
.verdict[data-verdict="suspicious"] { --v: var(--warn); --v-bg: var(--warn-bg); --v-ink: var(--warn-ink); }
.verdict[data-verdict="low_risk"] { --v: var(--safe); --v-bg: var(--safe-bg); --v-ink: var(--safe-ink); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verdict-main { flex: 1 1 300px; min-width: 0; padding-left: 6px; }
.verdict-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--v); }
.verdict-label svg { width: 22px; height: 22px; }
.verdict-headline { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.verdict-meta { margin-top: 8px; font-size: .95rem; opacity: .9; }
.verdict-degraded { margin-top: 8px; font-size: .85rem; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .06); display: inline-block; }
.gauge { flex: 0 0 auto; width: 180px; text-align: center; margin: 0 auto; }
.gauge svg { width: 180px; height: 104px; display: block; }
.gauge-track { fill: none; stroke: rgba(0, 0, 0, .1); stroke-width: 14; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { .gauge-track { stroke: rgba(255, 255, 255, .12); } }
.gauge-value { fill: none; stroke: var(--v); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.gauge-num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; margin-top: -44px; color: var(--v); }
.gauge-cap { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .8; margin-top: 4px; }

/* explain */
.explain-card { border-top: 4px solid var(--saffron); }
.explain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.explain-body { margin-top: 12px; font-size: 1.2rem; line-height: 1.75; display: grid; gap: 10px; }
.explain-body p { overflow-wrap: anywhere; }
.btn-listen { background: var(--saffron); color: #1b1203; min-height: 52px; padding: 10px 20px; border-radius: 999px; font-size: 1.05rem; box-shadow: 0 6px 18px -8px rgba(201, 111, 10, .8); }
.btn-listen:hover { filter: brightness(1.05); }
.btn-listen .i-pause { display: none; }
.btn-listen[aria-pressed="true"] .i-pause { display: block; }
.btn-listen[aria-pressed="true"] .i-play { display: none; }
.btn-listen.nudge { animation: nudge 1.2s ease-in-out 3; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(242, 154, 46, .25); } }
.speech-audio { width: 100%; margin-top: 14px; }
.actions-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font-size: 1.08rem; line-height: 1.5; }
.checklist input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--safe); }
.checklist li label:has(input:checked) { opacity: .65; }
.checklist li label:has(input:checked) span { text-decoration: line-through; }
.prio { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 2px; }
.prio-now { background: var(--scam); color: #fff; }
.prio-soon { background: var(--warn-bg); color: var(--warn-ink); }
.prio-optional { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.explain-method { margin-top: 12px; font-size: .8rem; }

/* grid */
.result-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.result-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 960px) {
  .result-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .result-grid > .result-col:last-child { position: sticky; top: 84px; }
  .evidence { max-height: calc(100vh - 200px); overflow: auto; }
}

/* findings */
.findings { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.finding {
  display: block; width: 100%; text-align: left; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.finding[data-sev="high"] { border-left-color: var(--scam); }
.finding[data-sev="medium"] { border-left-color: var(--warn); }
.finding[data-sev="low"] { border-left-color: var(--muted); }
.finding:hover { box-shadow: var(--shadow); }
.finding.is-active { background: var(--surface-2); border-color: var(--scam); box-shadow: 0 0 0 3px rgba(192, 38, 45, .15); }
.finding-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.finding-name { font-weight: 700; font-size: 1.02rem; }
.finding-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.finding-quote { margin: 8px 0 6px; padding: 8px 12px; border-left: 3px solid var(--mark-line); background: var(--mark); border-radius: 0 8px 8px 0; font-size: 1.02rem; overflow-wrap: anywhere; color: var(--text); }
.finding-quote.unverified { background: var(--surface-2); border-left-color: var(--line-2); }
.finding-expl { color: var(--text-2); font-size: .93rem; }
.finding-jump { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.finding-jump svg { width: 14px; height: 14px; }
.no-flags { padding: 14px; border-radius: 12px; background: var(--safe-bg); color: var(--safe-ink); font-weight: 600; }
.legit { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--safe-bg); color: var(--safe-ink); }
.legit ul { margin: 6px 0 0; padding-left: 20px; }

/* facts */
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.fact.is-clickable { cursor: pointer; }
.fact.is-clickable:hover { border-color: var(--line-2); }
.fact-kind { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fact-kind svg { width: 14px; height: 14px; }
.fact-label { font-size: .85rem; color: var(--text-2); }
.fact-value { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; word-break: break-word; }
.fact[data-kind="link"] .fact-value, .fact[data-kind="account_or_upi"] .fact-value, .fact[data-kind="contact"] .fact-value, .fact[data-kind="reference_id"] .fact-value { font-family: var(--font-mono); font-size: .95rem; }
.fact[data-kind="link"] { border-color: var(--scam); background: var(--scam-bg); }
.fact-warn { font-size: .75rem; font-weight: 700; color: var(--scam); }

/* evidence */
.evidence-headrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.evidence { margin-top: 12px; display: grid; gap: 12px; scroll-behavior: smooth; }
.doc-view { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; line-height: 0; }
.doc-view img { width: 100%; height: auto; display: block; }
.bbox { position: absolute; border: 2px solid var(--scam); background: rgba(192, 38, 45, .12); border-radius: 3px; cursor: pointer; transition: background-color .2s, box-shadow .2s; padding: 0; }
.bbox:hover { background: rgba(192, 38, 45, .22); }
.bbox.is-active { background: rgba(192, 38, 45, .28); box-shadow: 0 0 0 4px rgba(192, 38, 45, .35), 0 0 0 9999px rgba(13, 34, 64, .25); z-index: 2; animation: blink .9s ease-in-out 2; }
@keyframes blink { 50% { box-shadow: 0 0 0 8px rgba(192, 38, 45, .25), 0 0 0 9999px rgba(13, 34, 64, .25); } }
.segments { display: grid; gap: 6px; }
.segments-details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.page-head { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 2px; }
.seg { padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; overflow-wrap: anywhere; white-space: pre-wrap; transition: background-color .2s, border-color .2s; }
.seg.is-flagged { background: var(--surface-2); border-color: var(--line); }
.seg.is-focus { border-color: var(--scam); background: var(--scam-bg); box-shadow: 0 0 0 3px rgba(192, 38, 45, .15); }
mark.flag { background: var(--mark); color: inherit; border-bottom: 2px solid var(--mark-line); padding: 0 1px; border-radius: 2px; cursor: pointer; }
.text-view { font-size: 1.05rem; line-height: 1.7; }

/* transcript lanes */
.player-row audio { width: 100%; }
.transcript { display: grid; gap: 10px; }
.utt { display: flex; flex-direction: column; max-width: 88%; align-self: flex-start; }
.utt.lane-right { margin-left: auto; align-items: flex-end; }
.utt-meta { display: flex; gap: 6px; align-items: center; font-size: .75rem; color: var(--muted); margin: 0 4px 3px; flex-wrap: wrap; }
.utt-speaker { font-weight: 700; color: var(--text-2); }
.utt.is-caller .utt-speaker { color: var(--scam); }
.utt-time { font-family: var(--font-mono); background: none; border: 0; padding: 2px 4px; color: var(--ink-2); cursor: pointer; border-radius: 4px; font-size: .75rem; }
.utt-time:hover { background: var(--surface-2); }
.utt-bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; font-size: 1rem; transition: box-shadow .2s, border-color .2s, background-color .2s; }
.utt.lane-right .utt-bubble { border-radius: 16px 16px 4px 16px; background: #e8eef8; border-color: #d3dff0; }
@media (prefers-color-scheme: dark) { .utt.lane-right .utt-bubble { background: #1d2c47; border-color: #2b3d5c; } }
.utt.is-caller .utt-bubble { border-color: rgba(192, 38, 45, .35); }
.utt.is-flagged .utt-bubble { border-left: 4px solid var(--scam); }
.utt.is-playing .utt-bubble { box-shadow: 0 0 0 3px rgba(31, 111, 235, .25); }
.utt.is-focus .utt-bubble { border-color: var(--scam); background: var(--scam-bg); box-shadow: 0 0 0 3px rgba(192, 38, 45, .2); }
.speaker-legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; }

/* details */
.details-card { padding: 0; }
.details-card > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.details-card > summary::-webkit-details-marker { display: none; }
.details-card > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: none; margin-left: auto; }
.details-card[open] > summary::after { transform: rotate(-135deg); }
.details-card > summary > span:first-child { flex: 0 1 auto; }
.details-body { padding: 0 20px 20px; display: grid; gap: 14px; }
.en-actions li { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }

/* report */
.report-card { display: flex; gap: 16px; align-items: flex-start; border-color: var(--scam); background: linear-gradient(180deg, var(--scam-bg), var(--surface) 70%); }
.report-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--scam); color: #fff; display: grid; place-items: center; }
.report-icon svg { width: 26px; height: 26px; }
.report-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 480px) { .report-icon { display: none; } }

/* ask */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.chat:empty { display: none; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; white-space: pre-wrap; animation: rise .25s ease-out; }
.bubble.q { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
@media (prefers-color-scheme: dark) { .bubble.q { background: #2a4675; } }
.bubble.a { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; font-size: 1.05rem; }
.bubble.a audio { display: block; width: 100%; min-width: 220px; margin-top: 8px; }
.bubble.pending { color: var(--muted); font-style: italic; }
.bubble.err { background: var(--scam-bg); color: var(--scam-ink); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ask-form { display: flex; gap: 8px; margin-top: 12px; }
.ask-form input { flex: 1; min-width: 0; }
.ask-form .btn-icon[aria-pressed="true"] { background: var(--scam); color: #fff; border-color: var(--scam); animation: pulse-ring 1.4s ease-out infinite; }
.ask-status { margin-top: 6px; min-height: 1.2em; }

/* trace */
.trace-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.trace-path { font-family: var(--font-mono); font-size: .85rem; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.spans { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.span-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; font-size: .85rem; }
@media (max-width: 520px) { .span-row { grid-template-columns: minmax(0, 1fr) auto; } .span-bar { grid-column: 1 / -1; order: 3; } }
.span-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.span-name code { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.span-bar { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.span-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--ink-2), var(--saffron)); min-width: 3px; }
.span-row.fail .span-fill { background: var(--scam); }
.span-ms { font-family: var(--font-mono); font-weight: 700; text-align: right; }
.api-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: var(--ink); color: var(--saffron); flex: none; }
@media (prefers-color-scheme: dark) { .api-tag { background: #26344b; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-family: var(--font-mono); font-weight: 700; }
.rejected { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rejected li { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--surface-2); font-size: .88rem; color: var(--text-2); }
.rejected .rj-quote { text-decoration: line-through; color: var(--muted); overflow-wrap: anywhere; }
.trace-h { font-size: .95rem; margin-bottom: 6px; }

/* dialog */
.dialog { border: 0; padding: 0; border-radius: 18px; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(8, 16, 30, .6); }
.dialog-inner { padding: 20px; display: grid; gap: 12px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.complaint-text { font-family: var(--font-mono); font-size: .85rem; line-height: 1.5; min-height: 260px; background: var(--surface-2); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; max-width: calc(100vw - 32px); font-weight: 600; animation: rise .2s ease-out; }
@media (prefers-color-scheme: dark) { .toast { background: #26344b; } }

/* footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 20px 0 28px; margin-top: 16px; }
.footer-inner { display: grid; gap: 6px; font-size: .9rem; color: var(--text-2); }
.privacy { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--safe); }
.privacy span { flex: 1 1 260px; }
.disclaimer { font-weight: 600; }

@media print {
  .site-header, .site-footer, .result-toolbar, .ask-card, .progress-card { display: none !important; }
}
