:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #18212b;
  --muted: #66717d;
  --line: #e3e7eb;
  --primary: #155eef;
  --primary-dark: #0e4bc4;
  --success: #16803c;
  --danger: #c62828;
  --warning: #b26a00;
  --shadow: 0 18px 50px rgba(21, 35, 55, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button { font: inherit; cursor: pointer; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; background: var(--primary);
  font-weight: 800;
}
.badge {
  font-size: 12px; color: var(--primary); background: #edf4ff;
  padding: 8px 12px; border-radius: 999px;
}

.container { width: min(980px, 92%); margin: 0 auto; }
.hero { padding: 74px 0 35px; text-align: center; }
.eyebrow {
  color: var(--primary); font-size: 12px; font-weight: 800;
  letter-spacing: .13em; margin: 0 0 12px;
}
h1 { font-size: clamp(42px, 7vw, 72px); line-height: .98; margin: 0; letter-spacing: -.045em; }
h1 span { color: var(--primary); }
.subtitle {
  max-width: 670px; margin: 24px auto 34px; color: var(--muted);
  font-size: 17px; line-height: 1.65;
}

.upload-card {
  background: var(--card); border: 2px dashed #cfd7e1; border-radius: 24px;
  padding: 48px 28px; box-shadow: var(--shadow); transition: .2s;
}
.upload-card.dragover { border-color: var(--primary); background: #f7faff; }
.upload-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  background: #edf4ff; color: var(--primary); display: grid; place-items: center;
  font-size: 30px; font-weight: 700;
}
.upload-card h2 { margin: 0 0 8px; font-size: 24px; }
.upload-card p { color: var(--muted); margin: 0 0 20px; }
.upload-card small { display: block; margin-top: 14px; color: #89939e; }

.primary-btn, .secondary-btn {
  border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 750;
}
.primary-btn { color: #fff; background: var(--primary); }
.primary-btn:hover { background: var(--primary-dark); }
.secondary-btn { color: var(--text); background: #eef1f4; }
.preview-area img {
  max-width: 100%; max-height: 480px; border-radius: 14px;
  display: block; margin: 0 auto 22px;
}
.preview-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.status {
  margin: 16px auto 0; padding: 14px 18px; border-radius: 12px;
  background: #eef4ff; color: #174ea6; font-size: 14px;
}
.status.error { background: #fff0f0; color: #a52222; }
.hidden { display: none !important; }

.result-section { padding: 30px 0 65px; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em;
  margin-bottom: 12px;
}
.link-btn { border: 0; background: transparent; color: var(--primary); font-weight: 700; }

.result-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 30px;
}
.result-head { display: flex; gap: 15px; align-items: center; margin-bottom: 24px; }
.verdict-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: #eef1f4; font-size: 27px; font-weight: 900;
}
.result-label, .mini-label {
  color: #7a858f; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  margin: 0 0 6px;
}
#verdict { margin: 0; font-size: 30px; }
.claim-box { background: #f7f8fa; border-radius: 15px; padding: 20px; margin-bottom: 20px; }
.claim-box p:last-child { margin: 0; line-height: 1.55; font-weight: 650; }
.analysis-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.analysis-grid p:last-child { line-height: 1.65; color: #394550; }
.sources { padding-top: 22px; }
.source {
  padding: 14px 0; border-bottom: 1px solid #eef0f2;
}
.source:last-child { border-bottom: 0; }
.source a { color: var(--primary); font-weight: 700; text-decoration: none; }
.source p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.disclaimer {
  margin: 20px 0 0; padding: 14px; background: #fafafa; color: #7b858e;
  border-radius: 10px; font-size: 12px; line-height: 1.5;
}

.how { padding: 20px 0 75px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.step span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #edf4ff; color: var(--primary); font-weight: 800; margin-bottom: 18px;
}
.step h3 { margin: 0 0 7px; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

footer {
  padding: 25px 6%; border-top: 1px solid var(--line);
  background: #fff; color: #89939e; text-align: center; font-size: 12px;
}

@media (max-width: 700px) {
  .topbar { padding: 0 4%; }
  .badge { display: none; }
  .hero { padding-top: 50px; }
  .upload-card { padding: 35px 18px; }
  .analysis-grid, .steps { grid-template-columns: 1fr; }
  .result-card { padding: 20px; }
}
