/* ===== TruthLens — modern UI ===== */
:root {
  --bg: #07090f;
  --bg-2: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #9aa3b8;
  --faint: #6b7488;

  --brand: #5b8cff;
  --brand-2: #8a5cff;
  --good: #2fd6a0;
  --warn: #ffc24b;
  --bad: #ff5d6c;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: "Inter", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Animated background ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(91, 140, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, rgba(138, 92, 255, 0.12), transparent 55%),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: #3b6bff; top: -120px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: #8a5cff; bottom: -140px; left: -100px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #00c2a8; top: 40%; left: 55%; animation-delay: -11s; opacity: 0.3; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ===== Layout helpers ===== */
section { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: -0.02em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px -12px rgba(91, 140, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(91, 140, 255, 0.85); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--surface); border-color: var(--border); color: var(--muted); }
.btn-soft:hover { color: var(--text); border-color: var(--border-strong); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-text strong { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

/* ===== Hamburger toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile menu ===== */
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  visibility: hidden; opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(4px); }
.mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(82vw, 320px);
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9);
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-close {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 1rem; cursor: pointer; transition: all 0.18s;
}
.mobile-close:hover { color: var(--text); border-color: var(--border-strong); }
.mobile-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-links a {
  color: var(--muted); text-decoration: none; font-size: 1.05rem; font-weight: 500;
  padding: 13px 12px; border-radius: 11px; transition: background 0.18s, color 0.18s;
}
.mobile-links a:hover { background: var(--surface); color: var(--text); }
.mobile-links a.active { color: var(--text); background: var(--surface-2); }
.mobile-cta { margin-top: 20px; width: 100%; }
.mobile-legal { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--border); }
.mobile-legal a { color: var(--faint); text-decoration: none; font-size: 0.85rem; transition: color 0.18s; }
.mobile-legal a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { padding-top: 70px; padding-bottom: 60px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(47, 214, 160, 0.18); }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 60%, #00d2b4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.lede em { color: var(--text); font-style: italic; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 54px;
  flex-wrap: wrap;
}
.trust-row div { display: flex; flex-direction: column; }
.trust-row strong { font-family: var(--display); font-size: 1.7rem; color: var(--text); }
.trust-row span { font-size: 0.83rem; color: var(--faint); }

/* ===== Panels ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* ===== Analyzer ===== */
.analyzer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}
.input-panel { padding: 30px; }
.panel-head h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.panel-head p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; margin-bottom: 20px; }

#newsInput {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#newsInput::placeholder { color: var(--faint); }
#newsInput:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.15); }

.input-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.char-count { font-size: 0.83rem; color: var(--faint); }
.input-actions { display: flex; gap: 10px; }

.btn-spin { display: none; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .btn-label { opacity: 0.6; }
.btn.loading .btn-spin { display: inline-block; }

.examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.examples > span { font-size: 0.83rem; color: var(--faint); margin-right: 2px; }
.chip {
  font-family: var(--font);
  font-size: 0.83rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* ===== Head row + Live toggle ===== */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-toggle { cursor: pointer; user-select: none; }
.live-toggle input { display: none; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; color: var(--faint);
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px; transition: all 0.2s;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: all 0.2s; }
.live-toggle input:checked + .live-pill { color: var(--good); border-color: rgba(47,214,160,0.4); }
.live-toggle input:checked + .live-pill .live-dot {
  background: var(--good); box-shadow: 0 0 0 4px rgba(47,214,160,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 12px; padding: 5px; margin-bottom: 16px; }
.tab {
  flex: 1; font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  color: var(--muted); background: transparent; border: none; border-radius: 9px;
  padding: 9px 12px; cursor: pointer; transition: all 0.18s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 10px -4px rgba(0,0,0,0.6); }

/* ===== URL mode ===== */
.url-row { display: flex; gap: 10px; }
#urlInput {
  flex: 1; background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font);
  font-size: 0.98rem; padding: 14px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
#urlInput:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,140,255,0.15); }
#fetchBtn { flex-shrink: 0; }
.url-note { font-size: 0.82rem; color: var(--faint); margin: 12px 0; }
.url-note.note-good { color: var(--good); }
.url-note.note-bad { color: var(--bad); }
.url-text {
  width: 100%; min-height: 150px; resize: vertical;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); font-family: var(--font); font-size: 0.93rem; line-height: 1.6; padding: 14px 16px;
}
.url-text:focus { outline: none; border-color: var(--brand); color: var(--text); }

/* ===== Source reputation badge ===== */
.source-badge {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-left-width: 3px;
  border-radius: 12px; padding: 13px 15px; margin-bottom: 22px;
  background: var(--surface);
}
.source-badge.tier-high { border-left-color: var(--good); background: rgba(47,214,160,0.06); }
.source-badge.tier-low,
.source-badge.tier-satire { border-left-color: var(--bad); background: rgba(255,93,108,0.06); }
.source-badge.tier-unknown { border-left-color: var(--faint); }
.source-ico { font-size: 1.3rem; line-height: 1.2; }
.source-copy strong { display: block; font-size: 0.92rem; }
.source-copy span { font-size: 0.83rem; color: var(--muted); }

/* ===== Result panel ===== */
.result-panel { padding: 30px; min-height: 360px; }
.result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 320px;
  color: var(--faint);
}
.empty-glyph {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border-radius: 20px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  margin-bottom: 18px;
}
.result-empty p { color: var(--muted); font-weight: 600; }
.result-empty span { font-size: 0.84rem; margin-top: 6px; }

.result-body { animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.verdict { display: flex; gap: 22px; align-items: center; margin-bottom: 26px; }
.gauge { position: relative; flex-shrink: 0; width: 150px; height: 150px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }
.gauge-fill {
  fill: none;
  stroke: var(--good);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.6s;
}
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.gauge-score { font-family: var(--display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.gauge-unit { font-size: 0.8rem; color: var(--faint); margin-top: 2px; }
.gauge-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 6px; }

.verdict-text { flex: 1; }
.verdict-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.verdict-text h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.verdict-text p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* verdict color themes */
.v-good .gauge-fill { stroke: var(--good); }
.v-good .verdict-tag { background: rgba(47, 214, 160, 0.15); color: var(--good); }
.v-warn .gauge-fill { stroke: var(--warn); }
.v-warn .verdict-tag { background: rgba(255, 194, 75, 0.15); color: var(--warn); }
.v-bad .gauge-fill { stroke: var(--bad); }
.v-bad .verdict-tag { background: rgba(255, 93, 108, 0.16); color: var(--bad); }

.meter-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.meter-label { font-size: 0.85rem; color: var(--muted); width: 120px; flex-shrink: 0; }
.meter { flex: 1; height: 9px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.meter-bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--good), var(--warn), var(--bad)); transition: width 1s ease; }
.meter-val { font-size: 0.85rem; font-weight: 600; width: 42px; text-align: right; }

.signals-found h4, .highlighted h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 14px;
}
#signalList { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.signal-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 12px 14px;
  animation: fadeUp 0.4s ease backwards;
}
.signal-item.sev-bad { border-left-color: var(--bad); }
.signal-item.sev-warn { border-left-color: var(--warn); }
.signal-item.sev-good { border-left-color: var(--good); }
.signal-ico { font-size: 1.1rem; line-height: 1.4; }
.signal-copy strong { display: block; font-size: 0.92rem; font-weight: 600; }
.signal-copy span { font-size: 0.84rem; color: var(--muted); }

.highlighted { margin-top: 24px; }
.highlight-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.mark { background: rgba(255, 93, 108, 0.22); color: #ffd5d9; padding: 1px 5px; border-radius: 5px; font-weight: 600; }

.disclaimer {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.disclaimer em { color: var(--muted); font-style: normal; font-weight: 600; }

/* ===== How it works ===== */
.how { padding: 80px 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num { font-family: var(--display); font-size: 0.95rem; font-weight: 800; color: var(--brand); }
.step h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin: 12px 0 8px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ===== Signals grid ===== */
.signals-info { padding: 40px 24px 90px; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.signal-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.signal-card .ico { font-size: 1.6rem; }
.signal-card h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin: 12px 0 6px; }
.signal-card p { font-size: 0.88rem; color: var(--muted); }

/* ===== Feature teaser (home) ===== */
.teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 90px; }
.teaser-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.teaser-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.teaser-ico { font-size: 1.8rem; }
.teaser-card h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin: 12px 0 8px; }
.teaser-card p { font-size: 0.92rem; color: var(--muted); }
.teaser-link { display: inline-block; margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--brand); }

/* ===== Inner page header ===== */
.page-head { text-align: center; padding: 60px 24px 30px; max-width: 760px; }
.page-head h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 18px 0 16px; }
.page-head .lede { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--muted); }
.page-head .lede em { color: var(--text); font-style: italic; }

/* ===== Prose blocks ===== */
.prose { max-width: 760px; padding: 30px 24px 70px; }
.prose h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 14px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose strong { color: var(--text); }
.prose em { color: var(--text); font-style: italic; }
.prose a { color: var(--brand); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 14px; }
.about-list li { color: var(--muted); padding-left: 26px; position: relative; }
.about-list li::before { content: "▸"; position: absolute; left: 4px; color: var(--brand); }
.prose-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.band-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 20px; }
.band-card { background: var(--surface); border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius); padding: 20px; }
.band-card.band-good { border-left-color: var(--good); }
.band-card.band-warn { border-left-color: var(--warn); }
.band-card.band-bad  { border-left-color: var(--bad); }
.band-range { font-family: var(--display); font-weight: 800; font-size: 0.9rem; color: var(--faint); }
.band-card h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin: 8px 0 6px; }
.band-card p { font-size: 0.88rem; color: var(--muted); }

/* ===== History ===== */
.history { max-width: 900px; padding: 20px 24px 80px; margin: 0 auto; }
.hist-stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; }
.hist-stat { display: flex; flex-direction: column; }
.hist-stat strong { font-family: var(--display); font-size: 1.5rem; }
.hist-stat span { font-size: 0.78rem; color: var(--faint); }
.hist-stat.tone-bad strong { color: var(--bad); }
.hist-stat.tone-warn strong { color: var(--warn); }
.hist-stat.tone-good strong { color: var(--good); }
.hist-clear-all { margin-left: auto; }

.hist-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hist-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}
.hist-item:hover { border-color: var(--border-strong); }
.hist-score { flex-shrink: 0; width: 64px; text-align: center; display: flex; flex-direction: column; }
.hist-score strong { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.hist-score span { font-size: 0.72rem; color: var(--faint); }
.hist-score.tone-bad strong { color: var(--bad); }
.hist-score.tone-warn strong { color: var(--warn); }
.hist-score.tone-good strong { color: var(--good); }
.hist-main { flex: 1; min-width: 0; }
.hist-row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.hist-band { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; }
.hist-band.tone-bad { background: rgba(255,93,108,0.16); color: var(--bad); }
.hist-band.tone-warn { background: rgba(255,194,75,0.15); color: var(--warn); }
.hist-band.tone-good { background: rgba(47,214,160,0.15); color: var(--good); }
.hist-meta { font-size: 0.8rem; color: var(--faint); }
.hist-snippet { font-size: 0.92rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hist-tag { font-size: 0.74rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.hist-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hist-del { background: var(--surface); border: 1px solid var(--border); color: var(--faint); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 0.9rem; transition: all 0.18s; }
.hist-del:hover { color: var(--bad); border-color: rgba(255,93,108,0.4); }
.hist-empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }

/* ===== Toast ===== */
.tl-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 24px);
  background: rgba(12,16,26,0.95); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 0.9rem; font-weight: 600; padding: 12px 20px; border-radius: 12px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; z-index: 100;
  transition: opacity 0.25s, transform 0.25s; backdrop-filter: blur(10px);
}
.tl-toast.show { opacity: 1; transform: translate(-50%, 0); }
.tl-toast.good { border-color: rgba(47,214,160,0.45); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 50px 24px 40px; max-width: 100%; margin-top: 20px; }
.footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; }
.footer-brand p { color: var(--faint); font-size: 0.88rem; max-width: 320px; margin: 12px 0 10px; }
.footer-stat { font-size: 0.8rem; color: var(--brand); font-weight: 600; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-base { max-width: 1120px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--faint); }
.footer-base em { font-style: normal; color: var(--muted); }
.footer-base-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-base-links a { color: var(--faint); text-decoration: none; transition: color 0.2s; }
.footer-base-links a:hover { color: var(--text); }

/* ===== Legal / contact pages ===== */
.legal-updated { font-size: 0.84rem; color: var(--faint); margin-bottom: 8px; }
.prose h3.faq-q { font-family: var(--display); font-size: 1.08rem; font-weight: 600; margin: 26px 0 8px; color: var(--text); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 20px; }
.contact-card { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.contact-ico { font-size: 1.6rem; }
.contact-card h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin: 10px 0 6px; }
.contact-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .analyzer { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser { grid-template-columns: 1fr; }
  .band-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .steps, .signal-grid { grid-template-columns: 1fr; }
  .verdict { flex-direction: column; text-align: center; }
  .meter-label { width: auto; }
  .nav-cta { display: none; }
  .trust-row { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hist-item { flex-wrap: wrap; }
  .hist-actions { width: 100%; justify-content: flex-end; }
}
