/* =========================================================================
   GEORankGuide — Main Stylesheet
   Mobile-first, no build tool, plain CSS custom properties
   ========================================================================= */

/* ── 1. Custom Properties ─────────────────────────────────────────────── */
:root {
  --color-primary:      #1C3557;
  --color-primary-dark: #0E2036;
  --color-accent:       #0A0A08;
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F7F8FA;
  --color-surface:      #FFFFFF;
  --color-border:       #E5E7EB;
  --color-text:         #0A0A08;
  --color-text-muted:   #6B7280;
  --color-heading:      #0A0A08;

  --font-sans:    'Archivo', 'Helvetica Neue', sans-serif;
  --font-display: 'Bebas Neue', Impact, condensed;
  --font-mono:    'Fira Code', 'Consolas', monospace;

  --size-xs:   0.75rem;   /* 12px */
  --size-sm:   0.875rem;  /* 14px */
  --size-base: 1rem;      /* 16px */
  --size-md:   1.125rem;  /* 18px */
  --size-lg:   1.25rem;   /* 20px */
  --size-xl:   1.5rem;    /* 24px */
  --size-2xl:  2rem;      /* 32px */
  --size-3xl:  2.5rem;    /* 40px */
  --size-4xl:  3rem;      /* 48px */

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.12);

  --container:  1140px;
  --gap:        1.5rem;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── 3. Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue has no weight variants — 400 renders the same as 700 */
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(var(--size-2xl), 5vw, var(--size-4xl)); }
h2 { font-size: clamp(var(--size-xl), 3.5vw, var(--size-3xl)); }
h3 { font-size: clamp(var(--size-lg), 2.5vw, var(--size-2xl)); }
h4 { font-size: var(--size-lg); }
h5 { font-size: var(--size-md); }
h6 { font-size: var(--size-base); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em     { font-style: italic; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}

pre {
  background: #1A1D23;
  color: #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: var(--size-sm);
  line-height: 1.6;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── 4. Layout Utilities ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 4rem 0; }
.section--alt { background: var(--color-bg-alt); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── 5. Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--size-base);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1;
  text-decoration: none;
}

/* Double-class specificity (0,2,0) beats any contextual a rule (0,1,1) */
.btn.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(28,53,87,.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn.btn--accent:hover {
  background: #222220;
  box-shadow: 0 4px 14px rgba(10,10,8,.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}


.btn--sm { padding: 0.5rem 1rem; font-size: var(--size-sm); }
.btn--lg { padding: 1rem 2rem; font-size: var(--size-md); }

/* ── 6. Header & Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: var(--size-lg);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo span { color: var(--color-primary); }

.site-nav { display: none; }

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.site-nav a {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover { background: var(--color-bg-alt); }

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 0.75rem 0;
  font-size: var(--size-md);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child { border-bottom: none; }

@media (min-width: 768px) { .mobile-nav { display: none !important; } }

/* ── 7. Hero Section ──────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #F7F8FA 0%, #FFFFFF 60%, #F0F4FF 100%);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(28,53,87,.1);
  border-radius: var(--radius-xl);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero__sub {
  font-size: var(--size-md);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}

.hero__card-title {
  font-size: var(--size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.stat-list { display: flex; flex-direction: column; gap: 0.75rem; }

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(28,53,87,.12);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--size-md);
}

.stat-text strong { display: block; font-size: var(--size-sm); font-weight: 600; }
.stat-text span   { font-size: var(--size-xs); color: var(--color-text-muted); }

/* ── 8. Article Grid ──────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  font-size: var(--size-md);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px)  { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.article-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #EEF2FF, #F0FDF4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__tag {
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-size: var(--size-md);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover { color: var(--color-primary); }

.article-card__excerpt {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.article-card__meta {
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-card__meta span::before { content: "·"; margin-right: 0.5rem; }
.article-card__meta span:first-child::before { content: ""; margin: 0; }

/* ── 9. Lead Magnet / Email Capture ───────────────────────────────────── */
.lead-magnet {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
}

.lead-magnet h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.lead-magnet p {
  color: rgba(255,255,255,0.85);
  font-size: var(--size-md);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .newsletter-form { flex-direction: row; }
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--size-base);
  outline: none;
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow var(--transition);
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.newsletter-form .btn {
  white-space: nowrap;
  background: var(--color-accent);
  color: #fff;
}

.newsletter-form .btn:hover { background: #222220; }

.form-note {
  margin-top: 0.75rem;
  font-size: var(--size-xs);
  color: rgba(255,255,255,0.65);
}

.form-success {
  display: none;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: #fff;
  font-weight: 600;
}

/* ── 10. Affiliate Disclosure Banner ──────────────────────────────────── */
.affiliate-disclosure {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: var(--size-sm);
  color: #78350F;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.affiliate-disclosure svg { flex-shrink: 0; margin-top: 2px; }

/* ── 11. Article Layout ───────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }
}

/* ── 12. Article Header ───────────────────────────────────────────────── */
.article-header { margin-bottom: 2.5rem; }

.breadcrumbs {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span { color: var(--color-border); }

.article-header h1 { margin-bottom: 1rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-meta__author { font-weight: 600; color: var(--color-text); }
.article-meta__dot::before { content: "·"; }

/* ── 13. Article Body ─────────────────────────────────────────────────── */
.article-body h2 {
  font-size: var(--size-2xl);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}

.article-body h3 {
  font-size: var(--size-xl);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 80px;
}

.article-body h4 {
  font-size: var(--size-lg);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 80px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a[rel~="sponsored"] {
  font-weight: 600;
}

/* ── 14. Table of Contents (Sidebar) ──────────────────────────────────── */
.toc-sidebar {
  position: sticky;
  top: 80px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  order: -1;
}

@media (min-width: 1024px) { .toc-sidebar { order: 0; } }

.toc-sidebar h2 {
  font-size: var(--size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.toc-list { list-style: none; padding: 0; margin: 0; }

.toc-list li { margin-bottom: 0; }

.toc-list a {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--color-primary);
  background: rgba(28,53,87,.06);
}

.toc-list a.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(28,53,87,.06);
  font-weight: 600;
}

/* Nested H3 items */
.toc-list .toc-h3 a { padding-left: 1.25rem; font-size: var(--size-xs); }

/* ── TOC toggle button (visible on mobile only) ────────────────────── */
.toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 2px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.toc-toggle:hover { color: var(--color-primary); }

/* Arrow points down when collapsed, up when expanded */
.toc-toggle svg { transition: transform var(--transition); }
.toc-sidebar:not(.toc-collapsed) .toc-toggle svg { transform: rotate(180deg); }

/* Collapsed state: hide the list */
.toc-sidebar.toc-collapsed .toc-list { display: none; }

/* Heading row needs flex so toggle sits on the right */
.toc-sidebar h2 {
  display: flex;
  align-items: center;
}

/* On desktop: always show list, hide the toggle button entirely */
@media (min-width: 1024px) {
  .toc-toggle          { display: none; }
  .toc-sidebar.toc-collapsed .toc-list { display: block; }
}

/* ── 15. Comparison Table ─────────────────────────────────────────────── */
.comparison-section { margin: 2.5rem 0; }

.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.comparison-controls label {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.comparison-controls select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  font-family: inherit;
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6370' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-sm);
  white-space: nowrap;
}

.comparison-table th {
  background: var(--color-bg-alt);
  font-weight: 700;
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.comparison-table th:hover { color: var(--color-primary); }

.comparison-table th.sort-asc::after  { content: " ↑"; }
.comparison-table th.sort-desc::after { content: " ↓"; }

.comparison-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  white-space: normal;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(28,53,87,.03); }

.comparison-table .tool-name {
  font-weight: 700;
  color: var(--color-heading);
}

.comparison-table .rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: #D97706;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl);
  font-size: var(--size-xs);
  font-weight: 700;
}

.badge--green  { background: #DCFCE7; color: #166534; }
.badge--yellow { background: #FEF9C3; color: #854D0E; }
.badge--red    { background: #FEE2E2; color: #991B1B; }
.badge--blue   { background: #DBEAFE; color: #1E40AF; }

.affiliate-cta-link {
  font-weight: 700;
  color: var(--color-primary);
}

/* ── 16. FAQ Section ──────────────────────────────────────────────────── */
.faq { margin: 2.5rem 0; }
.faq h2 { margin-bottom: 1.5rem; }

.faq dl { display: flex; flex-direction: column; gap: 0.75rem; }

.faq dt {
  font-weight: 700;
  font-size: var(--size-md);
  color: var(--color-heading);
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq dt::after {
  content: "+";
  font-size: var(--size-xl);
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq dt.is-open::after { transform: rotate(45deg); }

.faq dd {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq dd.is-open { display: block; }

/* ── 17. Tool Review Card ─────────────────────────────────────────────── */
.tool-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.tool-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-card__name { font-size: var(--size-xl); font-weight: 800; }
.tool-card__tagline { font-size: var(--size-sm); color: var(--color-text-muted); }

.tool-card__score {
  font-size: var(--size-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.tool-card__score span {
  font-size: var(--size-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 480px) { .pros-cons { grid-template-columns: 1fr; } }

.pros-cons__list { font-size: var(--size-sm); }

.pros-cons__list h4 {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pros-cons__list.pros h4 { color: #166534; }
.pros-cons__list.cons h4 { color: #991B1B; }

.pros-cons__list ul { list-style: none; padding: 0; }

.pros-cons__list li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--color-text-muted);
}

.pros-cons__list.pros li::before { content: "✓"; position: absolute; left: 0; color: #16A34A; font-weight: 700; }
.pros-cons__list.cons li::before { content: "✗"; position: absolute; left: 0; color: #DC2626; font-weight: 700; }

/* ── 18. Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-heading);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer-brand .site-logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand .site-logo span { color: var(--color-primary); }
.footer-brand p { font-size: var(--size-sm); line-height: 1.6; margin-bottom: 0; }

.footer-col h4 {
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: var(--size-sm); transition: color var(--transition); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--size-xs);
}

.footer-disclosure {
  font-size: var(--size-xs);
  color: rgba(255,255,255,0.45);
  max-width: 640px;
  line-height: 1.5;
}

/* ── 19. 404 Page ─────────────────────────────────────────────────────── */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found__code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found h1 { margin-bottom: 0.75rem; }
.not-found p  { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ── 20. Skip Link (Accessibility) ───────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus { top: 0; }

/* ── 21. Utility Classes ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
