:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --border: #e5e7eb;
  --text: #16181d;
  --text-soft: #5b6472;
  --text-faint: #8b93a1;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --radius: 10px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-nav a {
  color: var(--text-soft);
  font-size: 14px;
}
.site-nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 56px 0 28px; }
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0 0 16px;
  max-width: 660px;
}
.hero-stat {
  display: inline-block;
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
}

/* sections */
.section { padding: 34px 0; }
.section-title {
  font-size: 21px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.tool-card:hover {
  text-decoration: none;
  border-color: #c9d3e4;
  box-shadow: 0 2px 14px rgba(22, 24, 29, .06);
}
.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tool-card h3 {
  font-size: 17px;
  margin: 0;
}
.tool-tagline {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 12px;
}
.tool-meta { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tool-alt {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.pill-warn {
  background: #fff7e6;
  border: 1px solid #f5e0b0;
  color: #9a6700;
}
.health-note {
  font-size: 12.5px;
  color: var(--text-faint);
}

.alt-disclaimer {
  max-width: 720px;
  margin: 28px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
}

.prose strong { font-weight: 600; }

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7e6;
  color: #9a6700;
  border: 1px solid #f5e0b0;
}

/* categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cat-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  background: var(--bg-soft);
}
.cat-card:hover { text-decoration: none; border-color: #c9d3e4; }
.cat-card h3 { margin: 0 0 6px; font-size: 16px; }
.cat-card p { margin: 0 0 10px; font-size: 14px; color: var(--text-soft); }
.cat-count { font-size: 12.5px; color: var(--text-faint); }

/* breadcrumb */
.breadcrumb {
  font-size: 13.5px;
  color: var(--text-faint);
  padding: 22px 0 0;
}
.breadcrumb .sep { margin: 0 6px; color: #c7ccd6; }
.breadcrumb a { color: var(--text-soft); }

/* page head */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: 32px; margin: 0 0 10px; letter-spacing: -0.02em; }
.page-sub { font-size: 17px; color: var(--text-soft); margin: 0 0 8px; max-width: 680px; }
.page-count { font-size: 13px; color: var(--text-faint); margin: 0; }

/* detail */
.tool-detail { padding: 22px 0 8px; }
.tool-detail-head { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.tool-detail-head h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; }
.tool-detail-tagline { font-size: 18px; color: var(--text-soft); margin: 0 0 14px; }

.prose { max-width: 720px; padding: 22px 0 8px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 5px; }

.tool-links { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0 26px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
}
.btn:hover { text-decoration: none; background: #1d4ed8; }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ad slot */
.ad-slot {
  margin: 26px 0;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.ad-body { color: var(--text-faint); font-size: 13.5px; min-height: 40px; display: flex; align-items: center; justify-content: center; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0 44px;
  background: var(--bg-soft);
}
.footer-note { margin: 0 0 10px; font-size: 14px; color: var(--text-soft); }
.footer-links { margin: 0 0 14px; display: flex; gap: 18px; }
.footer-links a { font-size: 14px; color: var(--text-soft); }
.footer-legal { margin: 0; font-size: 12px; color: var(--text-faint); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 36px 0 20px; }
  .site-nav { display: none; }
  .page-head h1 { font-size: 26px; }
  .tool-detail-head h1 { font-size: 28px; }
}
