/* ToolRadar — core stylesheet
   Plain CSS, no build step, no external fonts. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-card: #ffffff;
  --text: #111827;
  --text-mid: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #4338ca;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-alt: #12151c;
    --bg-card: #141821;
    --text: #e8eaed;
    --text-mid: #b8bfcc;
    --text-muted: #8b94a5;
    --border: #232833;
    --border-strong: #2f3542;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: #1a1b3a;
    --accent-text: #a5b4fc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.logo-mark svg { width: 17px; height: 17px; }

.nav-links {
  display: flex;
  gap: 4px;
  /* Not overflow-x:auto — the "More" dropdown is absolutely positioned
     inside this row and a scroll container would clip it. */
  overflow: visible;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-mid);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* ---------- search ---------- */

.search {
  position: relative;
  flex-shrink: 0;
  width: 212px;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.search input:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 15px;
  height: 15px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
}

.search-results.open { display: block; }

.search-results a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.search-results a:hover,
.search-results a.active { background: var(--accent-soft); }

.search-results .sr-name { font-weight: 600; flex-shrink: 0; }
.search-results .sr-cat { color: var(--text-muted); font-size: 12px; }
.search-results .sr-empty {
  padding: 14px 10px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 44px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), #db2777 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 26px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-stats b {
  display: block;
  font-size: 22px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- section headings ---------- */

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 21px;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 700;
}

.section-head .more {
  font-size: 14px;
  color: var(--accent-text);
  font-weight: 500;
}

/* ---------- category grid ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cat-icon svg { width: 19px; height: 19px; }

.cat-card h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.cat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Keeps the tool count pinned to the bottom so cards align across a row. */
.cat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cat-count {
  margin-top: auto !important;
  padding-top: 8px;
  font-size: 12px !important;
  opacity: .8;
}

/* ---------- tool grid ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.tool-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.tool-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.02em;
}

.tool-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.tool-card .cat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.tool-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
  flex: 1;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--bg-alt);
  white-space: nowrap;
}

.badge.free { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.badge.freemium { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.badge.paid { color: #b45309; background: #fffbeb; border-color: #fde68a; }

@media (prefers-color-scheme: dark) {
  .badge.free { color: #6ee7b7; background: #052e23; border-color: #065f46; }
  .badge.freemium { color: #93c5fd; background: #0c1a3a; border-color: #1e3a8a; }
  .badge.paid { color: #fcd34d; background: #2a1c05; border-color: #78350f; }
}

/* ---------- page head ---------- */

.page-head {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.crumbs a:hover { color: var(--accent-text); }
.crumbs span { margin: 0 6px; opacity: .5; }

.page-head h1 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -.03em;
  margin: 0 0 10px;
  font-weight: 800;
}

.page-head .lead {
  color: var(--text-mid);
  font-size: 16px;
  max-width: 760px;
  margin: 0;
}

/* ---------- prose ---------- */

.prose {
  max-width: 780px;
  color: var(--text-mid);
  font-size: 15.5px;
  line-height: 1.75;
}

/* Centres the block without centring the text inside it. */
.prose-center {
  margin-left: auto;
  margin-right: auto;
}

.prose p { margin: 0 0 18px; }
.prose h2 {
  font-size: 20px;
  color: var(--text);
  margin: 34px 0 12px;
  letter-spacing: -.02em;
}
.prose h3 {
  font-size: 16.5px;
  color: var(--text);
  margin: 26px 0 8px;
}
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- tool detail ---------- */

.detail-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detail-avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -.03em;
}

.detail-meta { flex: 1; min-width: 240px; }

.detail-meta h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -.03em;
  font-weight: 800;
}

.detail-meta .tagline {
  color: var(--text-mid);
  font-size: 16px;
  margin: 0 0 14px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .12s, box-shadow .15s;
}

/* Icons inside buttons must never inherit the container size. */
.btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--bg-alt);
  color: var(--text-mid);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--bg-card); color: var(--text); }

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  margin: 36px 0 10px;
  align-items: start;
}

@media (max-width: 860px) {
  .detail-body { grid-template-columns: 1fr; gap: 28px; }
}

.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 18px;
  margin-bottom: 16px;
}

.side-card h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.kv:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .k { color: var(--text-muted); }
.kv .v { font-weight: 550; text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- ad slot ---------- */

.ad-slot {
  margin: 30px 0;
  min-height: 90px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--bg-alt);
}

.ad-slot:has(ins[data-ad-status]) {
  border: 0;
  background: none;
  min-height: 0;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 0 30px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

.footer-grid h5 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text);
  font-weight: 650;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent-text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- misc ---------- */

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  /* flex:1 + min-width:0 keeps the input inside the flex row instead of
     forcing it to its intrinsic width and pushing the layout wider. */
  .search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 280px;
    margin-left: auto;
  }
  .hero { padding: 42px 0 30px; }
  .hero-stats { gap: 22px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  /* Hide the wordmark only — .logo-mark is also a span, so it must be excluded. */
  .logo span:not(.logo-mark) { display: none; }
  .search { max-width: none; }
  .hero-stats { gap: 16px; font-size: 13px; }
  .hero-stats b { font-size: 19px; }
}

/* ---------- guides ---------- */

.nav-links a.nav-guides {
  color: var(--accent-text);
  font-weight: 600;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.guide-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

.guide-card h3 {
  margin: 0 0 9px;
  font-size: 16.5px;
  font-weight: 680;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.guide-card p {
  margin: 0 0 15px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.guide-more {
  font-size: 13.5px;
  color: var(--accent-text);
  font-weight: 600;
}

/* ---------- prose extras (tables, quotes, code) ---------- */

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 26px;
  font-size: 14.5px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.prose th {
  color: var(--text);
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border-strong);
}

.prose tbody tr:last-child td { border-bottom: 0; }

.prose blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
}

.prose blockquote p {
  margin: 0;
  color: var(--text-mid);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.prose h2:first-child { margin-top: 0; }

@media (max-width: 640px) {
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 7px 8px; }
}

/* ---------- editorial principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}

.principle {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.principle h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.01em;
}

.principle p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.62;
}

/* =================================================================
   Search, filters, review-page components
   Added with the 150-tool expansion: a directory is judged on how
   quickly a visitor gets from "I need X" to a shortlist.
   ================================================================= */

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- hero search ---------- */

.search-hero {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.search-hero input {
  height: 54px;
  padding: 0 54px 0 46px;
  font-size: 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.search-hero input:focus {
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md);
}

.search-hero .search-icon {
  left: 17px;
  width: 18px;
  height: 18px;
}

.search-hero kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: inherit;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 7px;
  background: var(--bg-alt);
  pointer-events: none;
}

.search-hero .search-results {
  text-align: left;
  min-width: 100%;
  top: calc(100% + 10px);
}

.hero-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- chips (filters, suggestions) ---------- */

.chip {
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-mid);
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}

.chip:hover { border-color: var(--border-strong); color: var(--text); }

.chip span {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip.is-active span { color: rgba(255, 255, 255, .75); }

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0 20px;
  border-top: 1px solid var(--border);
  margin-bottom: 4px;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-wrap select {
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
}

.filter-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- homepage: featured cards ---------- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.feat-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.feat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feat-top h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.tool-avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
.tool-avatar.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }

.feat-tagline {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

.feat-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13.5px;
  color: var(--text-mid);
  flex: 1;
}

.feat-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.feat-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feat-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feat-more svg { width: 13px; height: 13px; }

/* ---------- homepage: compact review list ---------- */

.row-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--border);
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  transition: background .14s;
}

.tool-row:hover { background: var(--bg-alt); }

.row-main { flex: 1; min-width: 0; }

.row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-bottom: 2px;
}

.row-sub {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.row-meta .dot { margin: 0 5px; opacity: .6; }

/* ---------- review page ---------- */

.detail-main { min-width: 0; }

.detail-main h2 {
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 38px 0 14px;
  font-weight: 700;
  color: var(--text);
}

.detail-main h2:first-child { margin-top: 0; }

.detail-main p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.72;
  margin: 0 0 16px;
}

.detail-main .lede {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text);
}

.detail-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.detail-stamp svg { width: 14px; height: 14px; }

.verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin: 26px 0 8px;
  overflow: hidden;
}

.verdict-cell { padding: 16px 18px; }

.verdict-cell + .verdict-cell { border-left: 1px solid var(--border); }

.verdict-cell h4 {
  margin: 0 0 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-weight: 700;
}

.verdict-cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.feature-list li {
  display: flex;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.5;
}

.feature-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: #059669;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.callout-warn {
  border-color: #fcd34d;
  background: #fffbeb;
}

.callout-warn .callout-icon { color: #b45309; }

.callout-icon { flex: 0 0 auto; margin-top: 2px; }
.callout-icon svg { width: 18px; height: 18px; }

.callout p {
  margin: 0 !important;
  font-size: 15px !important;
  color: #78350f !important;
  line-height: 1.65 !important;
}

@media (prefers-color-scheme: dark) {
  .callout-warn { border-color: #78350f; background: #1f1503; }
  .callout-warn .callout-icon { color: #fcd34d; }
  .callout p { color: #fde68a !important; }
}

.muted-note {
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
}

.muted-note a { color: var(--accent-text); text-decoration: underline; }

.alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.alt-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color .14s, box-shadow .14s;
}

.alt-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.alt-main { min-width: 0; }

.alt-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 2px;
}

.alt-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faq { border-top: 1px solid var(--border); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 26px 13px 0;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "-"; }

.faq-item p {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  color: var(--text-mid) !important;
}

/* ---------- review sidebar ---------- */

.detail-aside { position: sticky; top: 84px; }

.side-cta { padding: 16px; }

.side-cta-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 14.5px;
}

.side-cta-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.side-links { list-style: none; margin: 0; padding: 0; }

.side-links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.side-links li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-links a { color: var(--text); font-weight: 550; }
.side-links a:hover { color: var(--accent-text); }
.side-links .badge { font-size: 10.5px; padding: 2px 6px; }

/* ---------- footer trust line ---------- */

.footer-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-trust svg { width: 14px; height: 14px; color: #059669; flex: 0 0 auto; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .detail-aside { position: static; }
  .verdict { grid-template-columns: 1fr; }
  .verdict-cell + .verdict-cell { border-left: 0; border-top: 1px solid var(--border); }
  .feature-list { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .search-hero input { height: 48px; font-size: 15px; padding-left: 42px; }
  .search-hero kbd { display: none; }
  .hero-popular { display: none; }
  .row-list { grid-template-columns: 1fr; }
  .filters { gap: 10px; }
  .sort-wrap { width: 100%; justify-content: space-between; }
  .detail-main .lede { font-size: 16.5px; }
  .detail-main h2 { margin-top: 30px; }
}

/* ---------- refinements after the first visual pass ---------- */

/* The verdict is one panel, not a two-column table: repeating the pricing
   note here and again under "Pricing" made the page read as generated. */
.verdict {
  grid-template-columns: 1fr;
  background: var(--accent-soft);
  border-color: transparent;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.verdict-cell { padding: 15px 18px; }
.verdict-cell h4 { color: var(--accent-text); }
.verdict-cell p { font-size: 15px; }

.card-platforms {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .card-platforms { display: none; }
}

/* ---------- navigation menus (desktop "More" + mobile) ---------- */

.nav-more,
.nav-mobile { position: relative; }

.nav-more summary,
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-mid);
}

.nav-more summary::-webkit-details-marker,
.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-more summary {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-more summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .65;
}

.nav-more summary:hover,
.nav-more[open] summary { background: var(--bg-alt); color: var(--text); }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 7px;
  z-index: 60;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.nav-menu a:hover { background: var(--bg-alt); }
.nav-menu a span { color: var(--text-muted); font-size: 12px; }

.nav-menu .nav-menu-all {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 11px;
  color: var(--accent-text);
  font-weight: 600;
}

.nav-mobile { display: none; }

.nav-mobile summary {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.burger {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.burger::before { top: -5px; }
.burger::after { top: 5px; }

@media (max-width: 860px) {
  .nav-mobile { display: block; }
  .nav-mobile .nav-menu {
    left: 0;
    right: auto;
    min-width: 250px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }
}

/* Two-by-two stats on narrow screens: four items in a row wrapped into a
   ragged 3 + 1, which reads as a layout bug rather than a design. */
@media (max-width: 560px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats b { font-size: 20px; }
}

/* ---------- filter bar on narrow screens ---------- */

@media (max-width: 640px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-chips { min-width: 0; }
  .sort-wrap { width: 100%; min-width: 0; }
  .sort-wrap select { flex: 1; min-width: 0; }
}

/* The category bar needs ~470px; below that the hamburger takes over so the
   "More" menu is never squeezed or clipped. */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
}

/* The category bar needs ~470px; below that the hamburger takes over so the
   "More" menu is never squeezed or clipped. */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- money pages: alternatives, comparisons, advertise ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 8px;
}

table.compare th,
table.compare td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

table.compare thead th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}

table.compare tbody tr:hover { background: var(--bg-alt); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td a { color: var(--accent-text); font-weight: 600; }

table.compare-vs th:first-child {
  width: 130px;
  color: var(--text-muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: top;
}

table.compare-vs td { color: var(--text-mid); }

.alt-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
}

.alt-row-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.alt-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 680;
  flex: 1;
  min-width: 0;
}

.alt-row-title a { color: var(--text); letter-spacing: -.01em; }
.alt-row-title a:hover { color: var(--accent-text); }

.alt-row-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
}

.alt-row-facts > div {
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.alt-row-facts > div:last-child { border-left-color: #fcd34d; }

.alt-row-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.alt-row-facts dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

.disclosure {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px !important;
  margin: 0 0 20px !important;
  line-height: 1.5 !important;
}

.money-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.money-link {
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color .14s, box-shadow .14s, transform .14s;
}

.money-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.money-link b {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 3px;
}

.money-link span { font-size: 12.5px; color: var(--text-muted); }

.plain-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.plain-list li { margin-bottom: 7px; line-height: 1.5; }

/* The advertise page is a sales page; the comparison table is the offer. */
.advertise-hero { padding: 46px 0 8px; }

@media (max-width: 860px) {
  .alt-row-facts { grid-template-columns: 1fr; gap: 12px; }
  .money-links { grid-template-columns: 1fr; }
}
