:root {
  --bg: #0d1117;
  --panel: #161c26;
  --panel-2: #1c2432;
  --line: #2a3446;
  --text: #e8edf4;
  --muted: #94a3b8;
  --accent: #4ade80;
  --accent-dim: #22c55e;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }

.hero { padding: 3rem 0 2.5rem; background: linear-gradient(180deg, #101826 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.1rem; letter-spacing: .02em; margin-bottom: 1.5rem; color: var(--muted); }
.brand strong { color: var(--text); }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin-bottom: .75rem; }
.accent { color: var(--accent); }
.sub { color: var(--muted); max-width: 42rem; }
.reality { margin-top: .9rem; font-size: .95rem; color: var(--warn); }

.controls {
  display: flex; flex-wrap: wrap; gap: .6rem;
  padding: 1.5rem 0 .5rem;
}
.controls input, .controls select {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .8rem; font-size: .95rem;
}
.controls input { flex: 1 1 220px; }
.controls input:focus, .controls select:focus { outline: 2px solid var(--accent-dim); outline-offset: 1px; }

.count { color: var(--muted); font-size: .85rem; padding: .25rem 0 .75rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.card.avoid { border-color: #7f2d2d; }
.card.caution { border-color: #7c6417; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.card h3 { font-size: 1.15rem; }
.dev { color: var(--muted); font-size: .8rem; }
.badge {
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: .25rem .6rem; border-radius: 99px;
}
.badge.verified { background: #12351f; color: var(--accent); }
.badge.caution { background: #3a2f0e; color: var(--warn); }
.badge.avoid { background: #3d1717; color: var(--bad); }
.tagline { font-size: .92rem; color: #c4cedd; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-size: .72rem; background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: .15rem .5rem;
}
.stats { display: flex; gap: 1.25rem; font-size: .85rem; margin-top: .1rem; }
.stats b { display: block; font-size: .95rem; color: var(--text); }
.stats span { color: var(--muted); font-size: .72rem; }
.notes { font-size: .82rem; color: var(--muted); padding-left: 1rem; }
.notes li { margin-bottom: .2rem; }
.card.avoid .notes li, .card.caution .notes li:first-child { color: #e5b8b8; }
.card.caution .notes li:first-child { color: #e8d5a0; }
.trustbar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; margin-top: auto; }
.trustbar i { display: block; height: 100%; border-radius: 3px; }

.card { cursor: pointer; transition: border-color .15s; }
.card:hover, .card:focus-visible { border-color: var(--accent-dim); }
.card.avoid:hover, .card.avoid:focus-visible { border-color: var(--bad); }
.card.caution:hover, .card.caution:focus-visible { border-color: var(--warn); }

.detail-wrap { padding: 1rem 0 2.5rem; }
.detail {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: .9rem;
  max-width: 46rem;
}
.detail.avoid { border-color: #7f2d2d; }
.detail.caution { border-color: #7c6417; }
.detail h2 { font-size: 1.6rem; }
.detail h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .6rem; }
.detail .tagline { font-size: 1rem; }
.detail-stats { flex-wrap: wrap; row-gap: .75rem; }
.detail-notes { font-size: .92rem; color: #c4cedd; }
.back { display: inline-block; font-size: .85rem; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }
.store-link {
  display: inline-block; background: var(--accent-dim); color: #06220f;
  font-weight: 600; text-decoration: none; border-radius: 10px;
  padding: .55rem 1rem; font-size: .95rem;
}
.store-link:hover { background: var(--accent); }
.no-link { font-size: .85rem; color: var(--bad); }
.sources { padding-left: 1rem; font-size: .85rem; }
.verified-on { font-size: .75rem; color: var(--muted); }

.radar { border-top: 1px solid var(--line); padding: 2.25rem 0 2.5rem; }
.radar h2 { margin-bottom: .4rem; }
.radar-blurb { color: var(--muted); font-size: .9rem; max-width: 42rem; margin-bottom: 1.1rem; }
.radar-blurb strong { color: var(--warn); }
.radar-table { overflow-x: auto; }
.radar-table table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.radar-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: .45rem .75rem; border-bottom: 1px solid var(--line);
}
.radar-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--panel-2); }
.radar-table a { text-decoration: none; }
.radar-table a:hover { text-decoration: underline; }
.dev-cell { color: var(--muted); }

.guide-links { display: flex; flex-wrap: wrap; gap: .6rem; padding: .35rem 0 1rem; }
.guide-links a {
  font-size: .82rem; text-decoration: none; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 99px; padding: .35rem .85rem;
}
.guide-links a:hover { color: var(--accent); border-color: var(--accent-dim); }

.guide { max-width: 52rem; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-top: .8rem; }
.guide-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem 1rem;
}
.guide-row.caution { border-color: #7c6417; }
.guide-row.avoid { border-color: #7f2d2d; }
.guide-rank { font-size: 1.2rem; font-weight: 700; color: var(--muted); min-width: 1.6rem; text-align: center; }
.guide-body { flex: 1; }
.guide-name { font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.guide-body .dev { margin-left: .5rem; }
.guide-body p { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.guide-stat b { font-size: 1rem; white-space: nowrap; }

.rubric { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.rubric h2 { margin-bottom: 1.2rem; }
.rubric-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.rubric-cols h3 { font-size: 1rem; margin-bottom: .4rem; }
.rubric-cols p { font-size: .9rem; color: var(--muted); }
.disclaimer { margin-top: 1.75rem; font-size: .8rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: .9rem; }

.hero-slim { padding: 1.25rem 0; }
.hero-slim .brand { margin-bottom: 0; }
.brand-link { color: var(--text); text-decoration: none; }
.brand-link:hover strong { color: var(--accent); }
.aff-note { font-size: .75rem; color: var(--muted); }

.digest {
  margin-top: 2rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; max-width: 34rem;
}
.digest h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.digest p { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.digest form { display: flex; gap: .5rem; flex-wrap: wrap; }
.digest input[type="email"] {
  flex: 1 1 200px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem;
}
.digest button {
  background: var(--accent-dim); color: #06220f; font-weight: 600;
  border: 0; border-radius: 10px; padding: .55rem 1.1rem; cursor: pointer;
}
.digest button:hover { background: var(--accent); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; border: 0; padding: 0; }
.digest-msg { min-height: 1.2em; margin-top: .5rem; color: var(--accent); }

.foot { padding: 1.5rem 1.25rem 2.5rem; color: var(--muted); font-size: .8rem; }

@media (max-width: 520px) {
  .controls select { flex: 1 1 45%; }
}
