/* === LAW FIRM AI STACK === */
/* Editorial magazine aesthetic — authoritative, clean, premium */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --text: #1b1b1f;
  --text-mid: #3d3d47;
  --text-light: #6b6b7b;
  --bg: #ffffff;
  --bg-warm: #f9f9f7;
  --accent: #1e3a5f;
  --accent-hover: #152d4a;
  --accent-light: #e6ecf3;
  --border: #e5e5ec;
  --border-light: #f0f0f4;
  --green: #0d7c5f;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --red: #c53030;
  --red-bg: #fef2f2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --radius: 8px;
}

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg-warm);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-name:hover { color: var(--accent); }

.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: var(--accent); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--bg-warm); color: var(--accent); }
.dd-icon { font-size: 16px; }
.dd-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.dd-all { font-weight: 600 !important; color: var(--accent) !important; }

/* Container */
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Article */
article { padding: 40px 0 64px; }
article h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
article h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  margin: 48px 0 16px;
  line-height: 1.25;
}
article h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
article p { margin-bottom: 18px; }
article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: var(--accent-hover); }
article ul, article ol { margin: 0 0 18px 24px; }
article li { margin-bottom: 6px; }

/* TLDR Box */
.tldr {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 0 0 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  line-height: 1.7;
}
.tldr strong { color: var(--accent); }

/* Article Meta */
.article-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
  font-size: 13px;
  color: var(--text-light);
  padding: 12px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
}
.comparison-table th {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tr:nth-child(even) { background: var(--bg-warm); }
.comparison-table .price { font-weight: 700; white-space: nowrap; }
.comparison-table .best-for { font-size: 14px; color: var(--text-light); }

/* Verdict Box */
.verdict {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.verdict strong { color: var(--green); }

/* Warning Box */
.warning {
  background: var(--red-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

/* FAQ Section */
.faq { margin: 48px 0 0; }
.faq h2 { margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.faq-a { color: var(--text-mid); font-size: 16px; line-height: 1.7; }

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
  text-decoration: none;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.article-card h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}
.article-card h2 a { color: var(--text); text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); }
.article-card .excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.55;
}
.article-card .article-meta {
  margin-bottom: 8px;
  font-size: 11px;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 14px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.footer-inner a { color: rgba(255,255,255,0.7); }
.footer-inner a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  nav { flex-wrap: wrap; gap: 16px; }
  article h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
  .articles-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .footer-inner { grid-template-columns: 1fr; }
}
