/* ============================================================
   SEO pages — layout & typography helpers
   Uses only CSS custom properties defined in style.css
   ============================================================ */

.seo-page {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: var(--space-section);
}

.seo-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.seo-hero-sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 640px;
  line-height: 1.55;
}

.seo-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.seo-prose {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.seo-prose p + p {
  margin-top: 1.25rem;
}

.seo-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.seo-prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.seo-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.seo-cta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-top: 3rem;
  text-align: center;
}

.seo-cta-card h2 {
  margin-bottom: 0.75rem;
}

.seo-cta-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}

.seo-comparison-table th,
.seo-comparison-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.seo-comparison-table th {
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-surface);
}

@media (max-width: 767px) {
  .seo-comparison-table thead {
    display: none;
  }
  .seo-comparison-table,
  .seo-comparison-table tbody,
  .seo-comparison-table tr,
  .seo-comparison-table td {
    display: block;
    width: 100%;
  }
  .seo-comparison-table tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
  }
  .seo-comparison-table td {
    border-bottom: none;
    padding: 0.375rem 0;
  }
  .seo-comparison-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    display: block;
  }
}

.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.seo-faq-item {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.seo-faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.seo-faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.seo-faq-item p,
.seo-faq-item details p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.seo-faq-item details summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--color-text);
  padding-right: 1.5rem;
  position: relative;
  user-select: none;
}

.seo-faq-item details summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1;
}

.seo-faq-item details[open] summary::after {
  content: "−";
}

.seo-faq-item details p {
  margin-top: 0.75rem;
}

.seo-scope-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.seo-strength-list {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.seo-strength-list li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.seo-related-grid a {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.seo-related-grid a:hover {
  border-color: var(--color-text-muted);
  text-decoration: none;
}

.seo-glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.seo-glossary-index a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.seo-glossary-index a:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  text-decoration: none;
}

.seo-glossary-index-dim {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-border);
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: default;
  user-select: none;
}

.seo-glossary-letter {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 5rem;
}

.seo-glossary-term {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.25rem;
  scroll-margin-top: 5rem;
}

.seo-glossary-def {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-left: 0.5rem;
  border-left: 2px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.seo-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo-method-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
}

.seo-method-table th,
.seo-method-table td {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.seo-method-table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}

.seo-code-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.seo-code-block code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text);
  white-space: pre;
}

.seo-blog-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.seo-blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.seo-blog-post-list li {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.seo-blog-post-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.seo-blog-post-list a {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.25rem;
}

.seo-blog-post-list .seo-blog-meta {
  margin-bottom: 0.5rem;
}

.seo-blog-post-list p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
