:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --ink: #1b2533;
  --muted: #5a6575;
  --line: #e4dccd;
  --brand: #1d3a5f;
  --brand-ink: #ffffff;
  --accent: #c76d0a;
  --focus: #2f6fdd;
  --scam: #b3261e;
  --scam-bg: #fde8e6;
  --sus: #8a5a00;
  --sus-bg: #fff2d6;
  --low: #1f6b3a;
  --low-bg: #e3f4e8;
  --ai: #5b3fa8;
  --shadow: 0 1px 2px rgba(27, 37, 51, .06), 0 6px 24px rgba(27, 37, 51, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1520; --surface: #172030; --ink: #eef2f7; --muted: #a8b3c2; --line: #2a3648;
    --brand: #8fb8ee; --brand-ink: #0f1520; --accent: #f2a33a; --focus: #8fb8ee;
    --scam: #ff8a80; --scam-bg: #3a1714; --sus: #ffcc66; --sus-bg: #352a10; --low: #7fd69b; --low-bg: #12301d; --ai: #c3b1ff;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1520; --surface: #172030; --ink: #eef2f7; --muted: #a8b3c2; --line: #2a3648;
  --brand: #8fb8ee; --brand-ink: #0f1520; --accent: #f2a33a; --focus: #8fb8ee;
  --scam: #ff8a80; --scam-bg: #3a1714; --sus: #ffcc66; --sus-bg: #352a10; --low: #7fd69b; --low-bg: #12301d; --ai: #c3b1ff;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.55 "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand img { border-radius: 10px; flex: none; }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 0; color: var(--brand); }
.tag { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.lang { display: inline-flex; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--brand); font: inherit; font-size: .95rem; padding: 6px 14px; cursor: pointer; min-height: 40px; }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 700; }

.ask, .result { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.ask h2 { font-size: 1.3rem; margin: 0 0 6px; line-height: 1.3; }
.ask > p { margin: 0 0 12px; color: var(--muted); }
textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; resize: vertical; min-height: 9em;
}
textarea:focus { border-color: var(--focus); outline: none; }
.row { display: flex; gap: 10px; margin-top: 12px; }
button.primary { flex: 1; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1.1rem; padding: 14px; cursor: pointer; min-height: 52px; }
button.primary:disabled { opacity: .6; cursor: progress; }
button.ghost { background: transparent; border: 2px solid var(--line); color: var(--ink); border-radius: 12px; font: inherit; padding: 12px 16px; cursor: pointer; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: var(--muted); font-size: .95rem; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 36px; }
.privacy { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

.verdict { border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.verdict.scam { background: var(--scam-bg); color: var(--scam); }
.verdict.suspicious { background: var(--sus-bg); color: var(--sus); }
.verdict.low { background: var(--low-bg); color: var(--low); }
.verdict h2 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.verdict .sub { margin: 0; color: var(--ink); }
.meter { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--low) 0 35%, var(--sus) 35% 70%, var(--scam) 70% 100%); position: relative; opacity: .9; }
.meter i { position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid currentColor; transform: translateX(-50%); transition: left .5s ease; }
.meter-l { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }

.result h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flags li { border-left: 5px solid var(--scam); background: var(--bg); padding: 10px 12px; border-radius: 0 10px 10px 0; }
.flags li.ai { border-left-color: var(--ai); }
.flags b { display: block; }
.flags .ev { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.flags .src { font-size: .75rem; font-weight: 700; color: var(--ai); text-transform: uppercase; letter-spacing: .04em; }
.steps { margin: 0; padding-left: 1.3em; }
.agency { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 10px; }
.agency h4 { margin: 0 0 8px; font-size: 1.05rem; }
.cols { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols ul { margin: 4px 0 0; padding-left: 1.2em; }
.cols .no li::marker { content: "✗  "; color: var(--scam); }
.cols .yes li::marker { content: "✓  "; color: var(--low); }
.call { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.call a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; min-height: 44px; }
.call a.alt { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.report { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.report a { color: var(--brand); }
.engine { margin-top: 18px; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.pending { color: var(--ai); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.pending::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pending::before { animation: none; } .meter i { transition: none; } }

footer { color: var(--muted); font-size: .85rem; padding-bottom: 32px; }
footer a { color: var(--brand); }
