/* Shared styles for the SEO/GEO landing pages (feature, use-case, comparison)
   and the blog/guides. Loaded on top of /css/style.css + /public-chrome.css.
   Uses the dashboard theme variables (--bg, --surface, --border, --blurple, …). */

html { scroll-behavior: smooth; }

/* ── Layout container ─────────────────────────────────────────────────────── */
.seo-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.seo-section { padding: 3.5rem 0; }
.seo-section + .seo-section { border-top: 1px solid var(--border); }
.seo-section > h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.seo-section p { color: var(--text); line-height: 1.7; margin: 0 0 1rem; }
.seo-section a { color: var(--blurple); text-decoration: underline; text-underline-offset: 2px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.seo-hero {
  position: relative; overflow: hidden;
  background: var(--bg-sidebar); border-bottom: 1px solid var(--border);
  padding: 4.5rem 1.5rem 3.5rem; text-align: center;
}
.seo-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--blurple);
  background: color-mix(in srgb, var(--blurple) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--blurple) 32%, transparent);
  padding: 0.35rem 0.9rem; border-radius: 9999px; margin-bottom: 1.1rem;
}
.seo-h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.02em; margin: 0 auto 1.1rem; max-width: 22ch;
}
.seo-lede {
  font-size: 1.0625rem; color: var(--text); line-height: 1.7;
  max-width: 46rem; margin: 0 auto 1.75rem;
}
.seo-cta { display: flex; justify-content: center; gap: 0.875rem; flex-wrap: wrap; }
.seo-cta .btn { padding: 0.8125rem 1.6rem; }

/* ── "At a glance" key-facts panel ────────────────────────────────────────── */
.kf-panel {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem;
  padding: 1.25rem;
}
.kf-item { padding: 0.55rem 0.65rem; border-radius: 0.55rem; background: var(--bg-sidebar); }
.kf-label {
  display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.2rem;
}
.kf-value { font-size: 0.9rem; color: var(--text); line-height: 1.45; }

/* ── Checkmark bullet lists ───────────────────────────────────────────────── */
.seo-bullets { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.seo-bullets li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text); line-height: 1.6; }
.seo-bullets li ion-icon { flex-shrink: 0; margin-top: 3px; font-size: 1rem; color: var(--blurple); }

/* ── Comparison strip / matrix tables ─────────────────────────────────────── */
.cmp-table, .matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.cmp-table th, .cmp-table td,
.matrix-table th, .matrix-table td {
  padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.cmp-table thead th, .matrix-table thead th {
  background: var(--bg-sidebar); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.matrix-table thead th.col-azra { color: var(--blurple); }
.cmp-table tbody tr:last-child td, .matrix-table tbody tr:last-child td { border-bottom: none; }
.cmp-table .cell-icon { text-align: center; }
.cell-yes { color: #22c55e; }
.cell-no { color: var(--text-muted); }
.cell-partial { color: #eab308; }
.matrix-table td.col-azra { font-weight: 600; color: var(--text); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 0.75rem; }

/* ── Comparison verdict + competitor strengths ────────────────────────────── */
.verdict {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--blurple); border-radius: 0.6rem;
  padding: 1.25rem 1.4rem; color: var(--text); line-height: 1.7;
}
.strengths { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.strengths li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text); line-height: 1.55; }
.strengths li ion-icon { flex-shrink: 0; margin-top: 3px; color: var(--text-muted); }

/* ── FAQ accordion (toggled by /js/landing-fx.js) ─────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.98rem; font-weight: 600; color: var(--text); cursor: pointer;
}
.faq-q:hover { color: var(--blurple); }
.faq-q ion-icon { flex-shrink: 0; transition: transform 0.2s; font-size: 1.2rem; color: var(--text-muted); }
.faq-item.open .faq-q ion-icon { transform: rotate(180deg); color: var(--blurple); }
.faq-a { display: none; padding-bottom: 1.1rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--blurple); }

/* ── Related pages grid ───────────────────────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem; }
.rel-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1rem 1.1rem; color: var(--text);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.rel-card:hover { border-color: color-mix(in srgb, var(--blurple) 55%, transparent); transform: translateY(-2px); }
.rel-card .rel-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.rel-card .rel-arrow { color: var(--blurple); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.seo-cta-band {
  position: relative; overflow: hidden; padding: 4rem 1.5rem; text-align: center;
  background: var(--bg-sidebar); border-top: 1px solid var(--border);
}
.seo-cta-band h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; margin: 0 0 0.9rem; }
.seo-cta-band p { color: var(--text-muted); max-width: 34rem; margin: 0 auto 1.75rem; line-height: 1.6; }

/* ── Blog listing ─────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.1rem; }
.blog-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.4rem;
  color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: color-mix(in srgb, var(--blurple) 55%, transparent); transform: translateY(-3px); }
.blog-cat {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blurple); margin-bottom: 0.6rem;
}
.blog-card h2 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; margin: 0 0 0.5rem; }
.blog-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 0.9rem; }
.blog-meta { margin-top: auto; font-size: 0.78rem; color: var(--text-muted); }

/* ── Article body ─────────────────────────────────────────────────────────── */
.article-head { padding: 3.25rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-sidebar); }
.article-head .seo-wrap { max-width: 46rem; }
.article-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; margin: 0.6rem 0 0.9rem; }
.article-lede { font-size: 1.05rem; color: var(--text); line-height: 1.7; }
.article-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }
.article-body { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 0.9rem; }
.article-body p { color: var(--text); line-height: 1.75; margin: 0 0 1rem; }
.article-body a { color: var(--blurple); text-decoration: underline; text-underline-offset: 2px; }
.howto {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.85rem;
  padding: 1.4rem 1.5rem; margin: 1.5rem 0;
}
.howto h2 { margin-top: 0; font-size: 1.15rem; }
.howto ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.75rem; }
.howto li { color: var(--text); line-height: 1.6; }
.howto li strong { color: var(--text-primary); }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.seo-breadcrumb { font-size: 0.8rem; color: var(--text-muted); }
.seo-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--blurple); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .kf-panel { grid-template-columns: 1fr; }
  .seo-section { padding: 2.75rem 0; }
}
