/* ============================================================
   SalesOpsTools.com — Design System
   A premium editorial software directory.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Color — Surface */
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-sunken: #f5f5f4;
  --bg-subtle: #f7f7f5;

  /* Color — Text */
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --text-faint: #a8a29e;

  /* Color — Accent (Indigo) */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --accent-lighter: #f5f3ff;
  --accent-border: #c7d2fe;

  /* Color — Borders */
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --border-subtle: #f0eeec;

  /* Color — Semantic */
  --green: #16a34a;
  --green-light: #f0fdf4;
  --green-border: #bbf7d0;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;
  --red: #dc2626;
  --red-light: #fef2f2;
  --red-border: #fecaca;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;

  /* Font sizes — modular scale (1.125) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  /* Spacing — 4px base */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 1.75rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 2px 0 rgba(0,0,0,0.03);
  --sh-sm: 0 1px 3px 0 rgba(0,0,0,0.05), 0 1px 2px -1px rgba(0,0,0,0.03);
  --sh-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.04);
  --sh-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1340px;
  --header-h: 64px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { line-height: 1.7; color: var(--text-secondary); }

ul, ol { line-height: 1.7; color: var(--text-secondary); }

strong { font-weight: 600; color: var(--text); }

::selection { background: var(--accent-light); color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-6); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--sp-6); }

.section { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }
.section-lg { padding: var(--sp-24) 0; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav-link {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: var(--sp-1);
}
.nav-link:hover { color: var(--text); background: var(--bg-sunken); }
.nav-link.active { color: var(--text); }
.nav-link .tag-soon {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  padding: 1px 5px;
  border-radius: var(--r-sm);
  background: var(--bg-sunken);
}

.nav-search-trigger {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--t-fast);
  min-width: 180px;
}
.nav-search-trigger:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.nav-search-trigger .shortcut {
  margin-left: auto;
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-faint);
}

.nav-mobile-toggle { display: none; }

/* Mobile nav */
@media (max-width: 880px) {
  .nav, .nav-search-trigger { display: none; }
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    color: var(--text);
    margin-left: auto;
  }
  .nav-mobile-toggle:hover { background: var(--bg-sunken); }
  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: var(--sp-6);
    z-index: 99;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t-base);
    visibility: hidden;
  }
  .mobile-nav.open { transform: translateX(0); visibility: visible; }
  .mobile-nav-link {
    display: block;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-md);
  }
  .mobile-nav-link:hover { background: var(--bg-sunken); }
  .mobile-nav-search {
    width: 100%;
    margin-bottom: var(--sp-4);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--r-lg);
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: #292524; color: var(--bg); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-sunken); border-color: var(--border-strong); }
.btn-ghost {
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-sunken); }
.btn-lg { padding: var(--sp-3) var(--sp-6); font-size: var(--fs-base); }
.btn-sm { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  line-height: 1.5;
}
.badge-green { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.badge-amber { background: var(--amber-light); color: var(--amber); border-color: var(--amber-border); }
.badge-blue { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }
.badge-accent { background: var(--accent-light); color: var(--accent); border-color: var(--accent-border); }

/* --- Cards --- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: all var(--t-base);
}
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

/* --- Tool Card --- */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.tool-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.tool-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tool-logo:has(img) { background: #fff; }
.tool-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}
.tool-card-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tool-card-category {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tool-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Category Card --- */
.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
  text-decoration: none;
}
.category-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.category-card-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}
.category-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.category-card-count {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  font-weight: 500;
  margin-top: var(--sp-2);
}

/* --- Hero --- */
.hero {
  padding: var(--sp-20) 0 var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-lighter) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--sp-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Search --- */
.search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-12);
  font-size: var(--fs-base);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-sm);
  transition: all var(--t-fast);
  color: var(--text);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.search-input::placeholder { color: var(--text-faint); }
.search-icon {
  position: absolute;
  left: var(--sp-5);
  color: var(--text-faint);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.search-results.open { display: block; }
.search-result-item {
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-sunken); }
.search-result-item .tool-logo { width: 32px; height: 32px; font-size: var(--fs-sm); }
.search-result-name { font-weight: 500; color: var(--text); }
.search-result-cat { font-size: var(--fs-xs); color: var(--text-muted); }
.search-no-results { padding: var(--sp-6); text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }

/* --- Chips / Discovery --- */
.discovery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-6);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}
.chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

/* --- Section headings --- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
  gap: var(--sp-4);
}
.section-head h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-head-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.section-head-link:hover { color: var(--accent-hover); }
.section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

/* --- Grids --- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
}

/* --- Directory (tools listing) --- */
.directory-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.directory-layout > * { min-width: 0; }
@media (max-width: 880px) {
  .directory-layout { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
@media (max-width: 880px) {
  .filters {
    position: static;
    padding: var(--sp-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: none;
  }
  .filters.mobile-open { display: flex; }
}

.filter-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.filter-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--sp-1) 0;
}
.filter-option input { accent-color: var(--accent); }
.filter-option:hover { color: var(--text); }
.filter-option .count {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.directory-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.directory-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.directory-count strong { color: var(--text); }
.directory-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.directory-sort select {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  cursor: pointer;
}

.filter-toggle-mobile { display: none; }
@media (max-width: 880px) {
  .filter-toggle-mobile {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    cursor: pointer;
  }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.empty-state {
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
  color: var(--text-muted);
}
.empty-state h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

/* --- Tool review page --- */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-10);
  align-items: start;
  max-width: 100%;
}
@media (max-width: 1024px) {
  .review-layout { grid-template-columns: 1fr; }
}

.review-main { max-width: 720px; min-width: 0; }
.review-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}
@media (max-width: 1024px) {
  .review-sidebar { position: static; }
}

.review-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.review-logo {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.review-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.review-logo:has(img) { background: #fff; }
.review-title-block h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-2);
}
.review-positioning {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.5;
}
.review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.verdict-box {
  background: var(--bg-sunken);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
}
.verdict-box .verdict-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.verdict-box p { color: var(--text); font-size: var(--fs-md); line-height: 1.6; }

.review-section { margin-bottom: var(--sp-10); }
.review-section h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.review-section h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.review-section p, .review-section li { color: var(--text-secondary); }
.review-section ul { padding-left: var(--sp-5); }
.review-section li { margin-bottom: var(--sp-2); }
.review-section li::marker { color: var(--text-faint); }
.review-section table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: var(--fs-sm);
  display: block;
  overflow-x: auto;
}
.review-section th, .review-section td {
  text-align: left;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.review-section th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-sunken);
}
.review-section td { color: var(--text-secondary); }
.review-section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--text);
}

/* Sidebar facts box */
.facts-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.facts-box h3 {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.fact-value { color: var(--text); text-align: right; }

.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.sidebar-cta .btn { width: 100%; }

.affiliate-note {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-align: center;
  margin-top: var(--sp-2);
  line-height: 1.5;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-faint); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* --- Prose / markdown body --- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose p { color: var(--text-secondary); margin-bottom: var(--sp-4); }
.prose ul { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); color: var(--text-secondary); }
.prose li::marker { color: var(--text-faint); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; color: var(--text); background: var(--bg-sunken); }
.prose td { color: var(--text-secondary); }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-sunken); padding: 2px 6px; border-radius: var(--r-sm); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-12) 0 var(--sp-8);
  margin-top: var(--sp-20);
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-3); line-height: 1.6; }
.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { font-size: var(--fs-sm); color: var(--text-secondary); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* --- Page header (category / listing pages) --- */
.page-header {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-8);
}
.page-header h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-3);
}
.page-header p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.5;
}

/* --- Stats row --- */
.stats-row {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: var(--fs-2xl); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
  max-width: 100%;
}
.pagination button, .pagination a {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.pagination button:hover, .pagination a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.pagination .active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* --- Trust section --- */
.trust-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-12) 0;
}
@media (max-width: 768px) { .trust-section { grid-template-columns: 1fr; } }
.trust-section h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.trust-section p { color: var(--text-secondary); line-height: 1.7; }
.trust-principles { display: flex; flex-direction: column; gap: var(--sp-4); }
.trust-principle { display: flex; gap: var(--sp-3); align-items: flex-start; }
.trust-principle-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-principle h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 2px; }
.trust-principle p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.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;
}

/* --- Search overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.search-overlay.open { display: flex; }
.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
}
.search-overlay-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 0 var(--sp-6);
  z-index: 1;
}
.search-overlay-panel .search-box { max-width: 100%; }
.search-overlay-panel .search-input {
  padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-12);
  font-size: var(--fs-md);
  border-radius: var(--r-xl);
}
.search-overlay-panel .search-results {
  position: relative;
  top: 0;
  max-height: 50vh;
}
.search-overlay-panel .search-icon { left: var(--sp-5); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
