/* LexGrid — Legal Software Reviews */
:root {
  --navy:   #1a2744;
  --gold:   #c9a227;
  --gold-l: #e8c84a;
  --slate:  #4a5568;
  --muted:  #718096;
  --bg:     #f7f8fa;
  --card:   #ffffff;
  --border: #e2e8f0;
  --win:    #2d6a4f;
  --win-bg: #d8f3dc;
  --red:    #c0392b;
  --red-bg: #fdecea;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #1a202c;
  line-height: 1.65;
}

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

/* ── Header ── */
.site-header {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  text-decoration: none;
}
.brand span { color: var(--gold); }

.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.site-header nav a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Layout ── */
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Breadcrumbs ── */
.crumbs {
  font-size: .82rem;
  color: var(--muted);
  padding: 14px 0 0;
  margin-bottom: 20px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 6px; }

/* ── Hero ── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 52px 24px 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto;
}
.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* ── Quick Verdict ── */
.verdict-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.verdict-box {
  border-radius: 10px;
  padding: 20px;
  border: 2px solid transparent;
}
.verdict-box.winner {
  background: var(--win-bg);
  border-color: var(--win);
}
.verdict-box.runner {
  background: #f0f4ff;
  border-color: var(--navy);
}
.verdict-box .label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
  color: var(--muted);
}
.verdict-box.winner .label { color: var(--win); }
.verdict-box .software-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.verdict-box .rationale { font-size: .9rem; color: var(--slate); }

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 0;
}
.comparison-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}
.comparison-table th:first-child { border-radius: 6px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 6px 0 0; }
.comparison-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tr:nth-child(even) td { background: #f9fafc; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .feature-label { font-weight: 600; color: var(--navy); }
.comparison-table .win-cell { color: var(--win); font-weight: 600; }

/* ── Who Should Choose ── */
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}
.choose-box {
  background: #f0f4ff;
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  padding: 16px;
}
.choose-box h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.choose-box ul { padding-left: 18px; }
.choose-box li { font-size: .9rem; color: var(--slate); margin-bottom: 4px; }

/* ── CTA Buttons ── */
.cta-row {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-l); text-decoration: none; }
.btn-secondary {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.btn-secondary:hover { background: #263759; text-decoration: none; }

/* ── CTA Boxes (per software) ── */
.cta-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.cta-box .software-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cta-box .pricing { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.cta-box .tagline { font-size: .88rem; color: var(--slate); margin-bottom: 16px; }
.cta-box .btn-primary { width: 100%; text-align: center; }

/* ── Affiliate disclosure ── */
.disclosure {
  font-size: .78rem;
  color: var(--muted);
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 28px 0 0;
  line-height: 1.5;
}

/* ── Picks list (best-for pages) ── */
.pick-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--card);
}
.pick-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.pick-card .pick-meta { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.pick-card p { font-size: .92rem; color: var(--slate); margin-bottom: 12px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pros, .cons { padding: 10px 14px; border-radius: 6px; }
.pros { background: var(--win-bg); }
.cons { background: var(--red-bg); }
.pros strong, .cons strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 6px; }
.pros strong { color: var(--win); }
.cons strong { color: var(--red); }
.pros ul, .cons ul { padding-left: 16px; }
.pros li, .cons li { font-size: .88rem; margin-bottom: 3px; }

/* ── Homepage category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 36px 0;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
  display: block;
}
.category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: var(--navy); text-decoration: none; }
.category-card .icon { font-size: 2rem; margin-bottom: 12px; }
.category-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.category-card p { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.category-card .commission { font-size: .78rem; color: var(--gold); font-weight: 700; margin-top: 10px; }

/* ── Recent comparisons ── */
.compare-list { margin: 0; padding: 0; list-style: none; }
.compare-list li {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.compare-list li:last-child { border-bottom: none; }
.compare-list a { font-weight: 600; font-size: .95rem; color: var(--navy); }
.compare-list .meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ── Main content typography ── */
main .container { padding-top: 28px; padding-bottom: 60px; }
main h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
main h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 20px 0 8px; }
main p { margin-bottom: 14px; font-size: .95rem; color: var(--slate); }
main ul { padding-left: 20px; margin-bottom: 14px; }
main li { font-size: .95rem; color: var(--slate); margin-bottom: 5px; }
.lede { font-size: 1.05rem; color: #2d3748; font-weight: 500; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 24px;
  font-size: .8rem;
  margin-top: 60px;
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 620px) {
  .verdict-row, .choose-grid, .cta-boxes, .pros-cons { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.5rem; }
  .site-header nav { display: none; }
  .comparison-table { font-size: .82rem; }
  .comparison-table td, .comparison-table th { padding: 7px 10px; }
}
