/* =============================================================
   Knobot SEO stylesheet
   -----------------------------------------------------------------
   Semantic class names — no utility soup. Everything here cascades
   from CSS variables defined in :root so the entire SEO surface can
   be re-themed by editing one block.

   Reuses the brand variables from the landing app so SEO pages and
   the marketing site stay visually synced. New variables added here
   (article-specific spacing, callout colors) are namespaced --seo-*
   to keep them out of the landing app's collision space.
   ============================================================= */

:root {
  --brand:           #4f46e5;
  --brand-hover:     #4338ca;
  --brand-subtle:    #eef2ff;
  --brand-soft:      #f5f3ff;
  --brand-ring:      rgba(79, 70, 229, 0.25);
  --brand-100:       #e0e7ff;
  --brand-200:       #c7d2fe;
  --brand-300:       #a5b4fc;
  --brand-500:       #6366f1;
  --brand-600:       #4f46e5;
  --brand-700:       #4338ca;

  --page-bg:         #ffffff;
  --card-bg:         #ffffff;
  --card-shadow:     0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
  --card-shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
  --card-border:     #ecedf1;

  --text:            #1a1a2e;
  --text-secondary:  #5a5a72;
  --text-tertiary:   #8e8ea0;
  --text-on-brand:   #ffffff;

  --neutral-50:      #fafafa;
  --neutral-100:     #f4f4f7;
  --neutral-200:     #e4e4ea;
  --neutral-300:     #cbcbd4;
  --neutral-400:     #9999a8;
  --neutral-500:     #71717a;
  --neutral-600:     #52525b;
  --neutral-700:     #3f3f46;
  --neutral-800:     #27272a;
  --neutral-900:     #18181b;

  --success:         #059669;
  --success-bg:      #ecfdf5;
  --success-border:  #a7f3d0;
  --warn:            #b45309;
  --warn-bg:         #fffbeb;
  --warn-border:     #fde68a;

  --radius:          10px;
  --radius-sm:       6px;
  --radius-lg:       14px;
  --radius-xl:       20px;
  --font:            'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --navbar-height:   60px;
  --content-max:     780px;
  --content-max-wide: 1080px;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body {
  background: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

main { display: block; }

a { color: var(--brand); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--brand-hover); }

button { font-family: var(--font); cursor: pointer; }

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

::selection { background: var(--brand-100); color: var(--brand-700); }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--brand); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* =============================================================
   Navigation
   ============================================================= */
.seo-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  height: var(--navbar-height);
}
.seo-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.seo-nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.3px;
}
.seo-nav-logo:hover { color: var(--text); }
.seo-nav-links {
  display: flex; align-items: center; gap: 28px;
  flex: 1; justify-content: center;
}
.seo-nav-links a {
  color: var(--text-secondary);
  font-size: 14.5px; font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
}
.seo-nav-links a:hover { color: var(--text); }
.seo-nav-actions { display: flex; align-items: center; gap: 10px; }
.seo-nav-login {
  font-size: 14.5px; font-weight: 500;
  color: var(--text-secondary); padding: 8px 12px;
}
.seo-nav-login:hover { color: var(--text); }
.seo-nav-cta {
  background: var(--brand); color: var(--text-on-brand) !important;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.18s, transform 0.12s;
}
.seo-nav-cta:hover { background: var(--brand-hover); color: var(--text-on-brand); transform: translateY(-1px); }
.seo-nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: none; background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}
.seo-nav-hamburger:hover { background: var(--neutral-100); color: var(--text); }
.seo-nav-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 24px 18px;
  flex-direction: column; gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.seo-nav-mobile a {
  padding: 10px 12px;
  color: var(--text-secondary);
  font-weight: 500; font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.seo-nav-mobile a:hover { background: var(--neutral-100); color: var(--text); }
.seo-nav-mobile .seo-nav-cta { margin-top: 6px; justify-content: center; }
.seo-nav.is-open .seo-nav-mobile { display: flex; }

@media (max-width: 900px) {
  .seo-nav-links, .seo-nav-login { display: none; }
  .seo-nav-hamburger { display: inline-flex; }
}

/* =============================================================
   Footer
   ============================================================= */
.seo-footer {
  background: #fff;
  border-top: 1px solid var(--card-border);
  margin-top: 96px;
}
.seo-footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid; gap: 48px;
  grid-template-columns: 1.2fr 2fr;
}
.seo-footer-brand { max-width: 360px; }
.seo-footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; color: var(--text);
  letter-spacing: -0.3px;
}
.seo-footer-tagline {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14.5px; line-height: 1.6;
}
.seo-footer-cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
}
.seo-footer-cta:hover { background: var(--brand-hover); }

.seo-footer-cols {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
.seo-footer-col h3 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text); margin-bottom: 14px;
}
.seo-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.seo-footer-col a {
  color: var(--text-secondary);
  font-size: 14px; text-decoration: none;
}
.seo-footer-col a:hover { color: var(--text); }

.seo-footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-tertiary);
}
.seo-footer-meta { max-width: 580px; line-height: 1.6; }

@media (max-width: 800px) {
  .seo-footer-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .seo-footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   Article shell
   ============================================================= */
.seo-article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.seo-article-header { margin-bottom: 28px; }
.seo-article-category {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand); margin-bottom: 12px;
}
.seo-article-title {
  font-size: clamp(30px, 4vw + 1rem, 44px);
  font-weight: 800;
  line-height: 1.08; letter-spacing: -0.8px;
  color: var(--neutral-900);
  margin-bottom: 16px;
}
.seo-article-deck {
  font-size: 19px; line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.seo-article-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-tertiary);
}
.seo-article-meta time, .seo-article-meta span {
  display: inline-flex; align-items: center; gap: 6px;
}
.seo-article-byline strong { color: var(--text-secondary); }

.seo-article-body {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--neutral-700);
}
.seo-article-body > * + * { margin-top: 18px; }
.seo-article-body p { color: var(--neutral-700); }
.seo-article-body h2 {
  margin-top: 56px; margin-bottom: 14px;
  font-size: clamp(22px, 1.4vw + 1rem, 28px);
  font-weight: 800; letter-spacing: -0.4px;
  color: var(--neutral-900); line-height: 1.2;
}
.seo-article-body h3 {
  margin-top: 36px; margin-bottom: 10px;
  font-size: 19px; font-weight: 700;
  color: var(--neutral-900);
}
.seo-article-body h4 {
  margin-top: 22px; margin-bottom: 6px;
  font-size: 16px; font-weight: 700;
  color: var(--neutral-900);
}
.seo-article-body strong { color: var(--neutral-900); font-weight: 600; }
.seo-article-body em { font-style: italic; }
.seo-article-body ul, .seo-article-body ol { padding-left: 22px; }
.seo-article-body ul > li, .seo-article-body ol > li {
  margin-bottom: 8px;
}
.seo-article-body blockquote {
  border-left: 3px solid var(--brand-300);
  background: var(--brand-soft);
  padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
  color: var(--neutral-700);
  font-size: 16px;
}
.seo-article-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  color: var(--neutral-800);
}
.seo-article-body pre {
  background: var(--neutral-900);
  color: #fefefe;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.55;
}
.seo-article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.seo-article-body hr {
  margin: 36px 0;
  border: 0; border-top: 1px solid var(--card-border);
}

/* =============================================================
   Breadcrumb
   ============================================================= */
.seo-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-bottom: 20px;
  font-size: 13px; color: var(--text-tertiary);
}
.seo-breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; }
.seo-breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--brand); }
.seo-breadcrumb-current { color: var(--text-secondary); }
.seo-breadcrumb-sep { opacity: 0.6; }

/* =============================================================
   QuickAnswer
   ============================================================= */
.quick-answer {
  margin: 24px 0 32px;
  border: 1px solid var(--brand-100);
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 80%);
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-sm);
}
.quick-answer-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  color: var(--brand-700);
}
.quick-answer-label span {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.quick-answer-body {
  font-size: 16px; line-height: 1.65;
  color: var(--neutral-800);
}
.quick-answer-body p { margin: 0 0 8px; }
.quick-answer-body p:last-child { margin-bottom: 0; }

/* =============================================================
   Cite
   ============================================================= */
.seo-cite {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.seo-cite:hover {
  color: var(--brand-700);
  text-decoration-color: var(--brand-500);
}

/* =============================================================
   FAQ
   ============================================================= */
.seo-faq { margin-top: 56px; }
.seo-faq h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--neutral-900); margin-bottom: 22px;
}
.seo-faq-list { display: flex; flex-direction: column; gap: 12px; }
.seo-faq-item {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-sm);
  padding: 16px 20px;
  transition: border-color 0.18s;
}
.seo-faq-item[open] { border-color: var(--brand-200); }
.seo-faq-item summary {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--neutral-900);
  font-size: 16px;
  list-style: none;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary svg {
  flex-shrink: 0; color: var(--neutral-400);
  transition: transform 0.18s;
}
.seo-faq-item[open] summary svg { transform: rotate(180deg); }
.seo-faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px; line-height: 1.65;
}

/* =============================================================
   Sources
   ============================================================= */
.seo-sources {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-sm);
  padding: 20px 24px;
}
.seo-sources-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--neutral-600);
  margin-bottom: 12px;
}
.seo-sources-label span {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.seo-sources ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.seo-sources a {
  font-size: 14px; color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand-200);
  text-underline-offset: 2px;
}
.seo-sources a:hover { color: var(--brand-700); text-decoration-color: var(--brand-500); }

/* =============================================================
   Tables
   ============================================================= */
.seo-table-wrap {
  margin: 28px 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--card-shadow-sm);
  background: #fff;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.seo-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  background: var(--neutral-50);
  color: var(--neutral-700);
  font-size: 13px;
  border-bottom: 1px solid var(--card-border);
}
.seo-table thead { background: var(--neutral-100); }
.seo-table th {
  text-align: left;
  font-weight: 700;
  color: var(--neutral-800);
  padding: 12px 16px;
  font-size: 13.5px;
}
.seo-table td {
  padding: 12px 16px;
  color: var(--neutral-700);
  border-top: 1px solid var(--neutral-100);
  vertical-align: top;
}
.seo-table tbody tr:nth-child(even) td { background: rgba(248, 248, 251, 0.4); }
.seo-table tbody tr:hover td { background: var(--brand-soft); }

/* =============================================================
   Comparison table
   ============================================================= */
.seo-compare-wrap {
  margin: 32px 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow-x: auto;
}
.seo-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.seo-compare-table caption {
  caption-side: top;
  padding: 14px 18px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--brand-100);
}
.seo-compare-table thead { background: var(--neutral-100); }
.seo-compare-table th, .seo-compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-top: 1px solid var(--neutral-100);
}
.seo-compare-table thead th {
  font-weight: 700;
  color: var(--neutral-800);
  font-size: 13.5px;
  border: none;
}
.seo-compare-table thead .seo-compare-us {
  background: var(--brand);
  color: #fff;
}
.seo-compare-table tbody th {
  background: var(--neutral-50);
  font-weight: 600;
  color: var(--neutral-800);
  font-size: 14px;
  width: 30%;
}
.seo-compare-table td { color: var(--neutral-700); }
.seo-compare-table tbody .seo-compare-us {
  background: var(--brand-soft);
  color: var(--neutral-800);
  font-weight: 500;
}

/* =============================================================
   Inline CTA
   ============================================================= */
.seo-inline-cta {
  margin: 36px 0;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
  border: 1px solid var(--brand-100);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
}
.seo-inline-cta-content { flex: 1 1 240px; min-width: 0; }
.seo-inline-cta h3 {
  font-size: 16px; font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.seo-inline-cta p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--text-secondary);
}
.seo-inline-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff !important;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s;
}
.seo-inline-cta-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* =============================================================
   AI disclosure
   ============================================================= */
.seo-disclosure {
  margin-top: 56px;
  border: 1px solid var(--card-border);
  background: var(--neutral-50);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.seo-disclosure p {
  font-size: 13px; line-height: 1.65;
  color: var(--text-tertiary);
}
.seo-disclosure strong { color: var(--text-secondary); }
.seo-disclosure a { color: var(--brand); }

/* =============================================================
   Related guides
   ============================================================= */
.seo-related {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--card-border);
}
.seo-related h2 {
  font-size: 18px; font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 18px;
}
.seo-related-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.seo-related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.seo-related-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--card-shadow);
  transform: translateY(-1px);
}
.seo-related-category {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--brand);
  margin-bottom: 8px;
}
.seo-related-card h3 {
  font-size: 15.5px; font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.35;
  margin-bottom: 6px;
}
.seo-related-card p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-secondary);
}

/* =============================================================
   Sample conversations
   ============================================================= */
.seo-conversations { margin-top: 48px; }
.seo-conversations-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand);
  margin-bottom: 6px;
}
.seo-conversations-label span {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.seo-conversations h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--neutral-900); margin-bottom: 24px;
}
.seo-conversations-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.seo-conversation {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-sm);
  padding: 18px 20px 16px;
}
.seo-conversation-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.seo-conversation-body {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px;
}
.seo-msg {
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.45;
  max-width: 85%;
}
.seo-msg-bot {
  align-self: flex-start;
  background: var(--neutral-100);
  color: var(--neutral-800);
  border-bottom-left-radius: 4px;
}
.seo-msg-visitor {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.seo-msg-system {
  align-self: center;
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
}
.seo-conversation-outcome {
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px dashed var(--card-border);
  padding-top: 10px;
}
.seo-conversation-outcome strong { color: var(--success); }

/* =============================================================
   Stats
   ============================================================= */
.seo-stat-grid {
  display: grid; gap: 14px; margin: 28px 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.seo-stat {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--card-shadow-sm);
}
.seo-stat-value {
  font-size: 32px; font-weight: 800;
  letter-spacing: -1px;
  color: var(--brand);
  line-height: 1.1;
}
.seo-stat-label {
  font-size: 13.5px;
  color: var(--neutral-700);
  margin-top: 6px;
  font-weight: 500;
}
.seo-stat-source {
  display: block;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* =============================================================
   Features
   ============================================================= */
.seo-features { margin: 36px 0; }
.seo-features h2 {
  font-size: 24px; font-weight: 800;
  margin-bottom: 18px;
  color: var(--neutral-900);
}
.seo-feature-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.seo-feature-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow-sm);
}
.seo-feature-icon {
  width: 36px; height: 36px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.seo-feature-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 6px;
}
.seo-feature-card p {
  font-size: 14px; line-height: 1.55;
  color: var(--text-secondary);
}

/* =============================================================
   Bullet list variants
   ============================================================= */
.seo-bullet-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  margin: 18px 0;
}
.seo-bullet-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px; line-height: 1.6;
  color: var(--neutral-700);
}
.seo-bullet-list li::before {
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.seo-bullet-check li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  background: var(--success-bg);
  border-radius: 50%;
  font-size: 11px;
}
.seo-bullet-dot li::before {
  content: '';
  background: var(--brand);
  border-radius: 50%;
  width: 7px; height: 7px;
  left: 6px; top: 0.65em;
}
.seo-bullet-arrow li::before {
  content: '→';
  color: var(--brand);
  font-weight: 700;
}

/* =============================================================
   Procedure list (How-To)
   ============================================================= */
.seo-procedure { margin: 36px 0; }
.seo-procedure h2 {
  font-size: 24px; font-weight: 800;
  margin-bottom: 18px;
  color: var(--neutral-900);
}
.seo-procedure-list { list-style: none; padding: 0; }
.seo-procedure-list > li {
  display: flex; gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--card-border);
}
.seo-procedure-list > li:first-child { border-top: none; padding-top: 0; }
.seo-procedure-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  margin-top: 2px;
}
.seo-procedure-body { flex: 1; min-width: 0; }
.seo-procedure-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 4px;
}
.seo-procedure-body p {
  font-size: 15px; line-height: 1.6;
  color: var(--text-secondary);
}

/* =============================================================
   Callout
   ============================================================= */
.seo-callout {
  margin: 24px 0;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; line-height: 1.6;
}
.seo-callout-title {
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.seo-callout-info {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand-500);
  color: var(--neutral-800);
}
.seo-callout-info .seo-callout-title { color: var(--brand-700); }
.seo-callout-warn {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
  color: var(--neutral-800);
}
.seo-callout-warn .seo-callout-title { color: var(--warn); }
.seo-callout-tip {
  background: var(--success-bg);
  border-left: 3px solid var(--success);
  color: var(--neutral-800);
}
.seo-callout-tip .seo-callout-title { color: var(--success); }

/* =============================================================
   Hub / index pages
   ============================================================= */
.seo-hub {
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.seo-hub-header {
  text-align: left;
  margin-bottom: 36px;
  max-width: 720px;
}
.seo-hub-category {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--brand);
  margin-bottom: 12px;
}
.seo-hub-title {
  font-size: clamp(30px, 4vw + 1rem, 44px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.8px;
  color: var(--neutral-900);
  margin-bottom: 14px;
}
.seo-hub-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--brand) 0%, var(--brand-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seo-hub-deck {
  font-size: 18px; line-height: 1.5;
  color: var(--text-secondary);
}
.seo-hub-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.seo-hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.12s, box-shadow 0.18s, border-color 0.18s;
}
.seo-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
  border-color: var(--brand-200);
}
.seo-hub-card-category {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--brand);
  margin-bottom: 8px;
}
.seo-hub-card h2 {
  font-size: 17px; font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.3;
  margin-bottom: 8px;
}
.seo-hub-card p {
  font-size: 14px; line-height: 1.55;
  color: var(--text-secondary);
}
.seo-hub-card[data-disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}
.seo-hub-card[data-disabled]:hover {
  transform: none;
  box-shadow: var(--card-shadow-sm);
  border-color: var(--card-border);
}
.seo-hub-section-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--neutral-700);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

/* "Coming soon" pill for unfilled index entries */
.seo-pill-soon {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--neutral-200);
  color: var(--neutral-600);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* =============================================================
   Print-friendly tweaks (better LLM cache, less ink)
   ============================================================= */
@media print {
  .seo-nav, .seo-footer, .seo-inline-cta, .skip-link { display: none; }
  .seo-article { max-width: none; padding: 0; }
  a { color: var(--text); text-decoration: underline; }
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
