@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}

:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-muted: #a8a29e;
  --rule: #ebe7e0;
  --accent: #c4553a;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow-md: 0 12px 32px rgba(28,25,23,.08), 0 2px 6px rgba(28,25,23,.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.top-nav a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-left: 1.75rem;
  transition: color .15s;
}
.top-nav a:hover { color: var(--ink); }

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.hero {
  max-width: 640px;
  padding: 5rem 0 4rem;
}
.hero h1 {
  font-size: 3.25rem;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.hero h1 span { color: var(--accent); }
.definition {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.definition em { font-style: normal; color: var(--ink); font-weight: 500; }
.lede { color: var(--ink-soft); font-size: 1rem; max-width: 480px; }

.category { margin-bottom: 4rem; scroll-margin-top: 5rem; }
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.category-header h2 {
  font-size: 1.6rem;
  text-transform: capitalize;
  letter-spacing: -0.015em;
}
.cat-count {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tool-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}
.tool-logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-card-title h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  transition: color .15s;
}
.tool-card:hover .tool-card-title h3 { color: var(--accent); }
.tool-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tool-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  flex-grow: 1;
}

.tool-cta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  align-self: flex-start;
}

.tool-page { max-width: 800px; padding: 4rem 0; margin: 0 auto; }

.tool-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.tool-header-logo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}
.tool-header-logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-cat {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.tool-header h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.tool-tagline { color: var(--ink-soft); font-size: 0.95rem; }

.tool-body > p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 620px;
}
.tool-stats {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.tool-stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}
.tool-stats dd { font-size: 0.95rem; color: var(--ink); }
.feature {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink-soft);
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}
.visit {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background .15s;
}
.visit:hover { background: var(--accent); }

.compare-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.compare-section h3 {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 1rem;
}
.compare-section ul { list-style: none; }
.compare-section li { margin-bottom: 0.6rem; }
.compare-section a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color .15s;
}
.compare-section a:hover { color: var(--accent); }

.compare-page { max-width: 900px; padding: 4rem 0; margin: 0 auto; }
.compare-page h1 { font-size: 2rem; margin-bottom: 3rem; letter-spacing: -0.02em; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.compare-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.compare-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 6px;
}
.compare-head h3 { font-size: 1.3rem; font-weight: 500; }
.compare-col > p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.compare-meta { font-size: 0.85rem; }
.compare-meta strong { color: var(--ink); font-weight: 500; }

.verdict {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.verdict strong { color: var(--ink); font-weight: 500; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: var(--ink-muted); transition: color .15s; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header .wrap, .content, .site-footer .wrap {
    padding-left: 1.25rem; padding-right: 1.25rem;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .tool-grid { grid-template-columns: 1fr; }
}
