/* Shared stylesheet for the marketing content pages (/compare/*, /use-cases/*).
   Tokens + chrome mirror landing.html; article styles are specific to this
   page family. Landing keeps its own inline <style> (single-page, per repo
   convention) — this file exists so the content family doesn't duplicate
   ~150 lines per page. */
:root {
  --bg: #13100f;
  --bg-soft: #1a1614;
  --bg-card: #1d1816;
  --fg: #f7efe4;
  --fg-soft: #b19780;
  --fg-mute: #93806c;
  --line: #3d332c;
  --line-strong: #5a493f;
  --accent: #d4a176;
  --accent-soft: #c08a5d;
  --danger: #c4644b;
  --good: #8ab17d;
  --font-sans: Manrope, "Helvetica Neue", "Segoe UI", sans-serif;
  --font-serif: Fraunces, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}
:root[data-theme="light"] {
  --bg: #f7efe4;
  --bg-soft: #ede1d0;
  --bg-card: #ffffff;
  --fg: #2a2018;
  --fg-soft: #5a4836;
  --fg-mute: #75604f;
  --line: #d8c8b3;
  --line-strong: #b09a7e;
  --accent: #8a5228;
  --accent-soft: #74441f;
  --danger: #b04a32;
  --good: #5e7d52;
}
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--line-strong); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn.lg { padding: 16px 30px; font-size: 16px; }

/* Header (mirrors landing) */
header.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-serif); font-size: 25px; font-weight: 600;
  color: var(--fg); text-decoration: none; letter-spacing: -0.005em;
}
.brand:hover { opacity: 0.85; text-decoration: none; }
.brand .accent { color: var(--accent); }
.nav-actions { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--fg-soft); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-actions .signin { color: var(--fg-soft); white-space: nowrap; }
.nav-actions .signin:hover { color: var(--fg); text-decoration: none; }
.nav-cta { white-space: nowrap; }

/* Article */
.crumbs {
  font-size: 13.5px; color: var(--fg-mute); margin: 36px 0 0;
}
.crumbs a { color: var(--fg-soft); }
article.content { padding: 20px 0 72px; }
article.content .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 28px 0 14px;
}
article.content h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em;
  line-height: 1.12; margin: 0 0 18px;
}
article.content .lede { color: var(--fg-soft); font-size: 19px; margin: 0 0 40px; }
article.content h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 31px); letter-spacing: -0.015em;
  line-height: 1.18; margin: 52px 0 14px;
}
article.content h3 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
article.content p, article.content li { color: var(--fg-soft); font-size: 16.5px; }
article.content strong { color: var(--fg); }
article.content ul, article.content ol { padding-left: 22px; }
article.content li { margin: 6px 0; }

/* Comparison table */
.cmp { width: 100%; border-collapse: collapse; margin: 26px 0 10px; font-size: 15px; }
.cmp th, .cmp td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute);
}
.cmp td { color: var(--fg-soft); }
.cmp td:first-child { color: var(--fg); font-weight: 600; }
.cmp .yes { color: var(--good); }
.cmp .dim { color: var(--fg-mute); }
.cmp-scroll { overflow-x: auto; }

/* Callout card */
.callout {
  background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; margin: 26px 0;
}
.callout p { margin: 0; }

/* FAQ */
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  align-items: baseline; padding: 20px 2px;
  font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--fg);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent); font-family: var(--font-sans); font-weight: 400; }
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0 0 20px; }

/* CTA band */
.cta-band {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  text-align: center; padding: 64px 24px;
}
.cta-band h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px;
}
.cta-band p { color: var(--fg-soft); margin: 0 auto 26px; max-width: 56ch; }
.cta-band .note { font-size: 14px; color: var(--fg-mute); margin-top: 14px; }

/* Footer (mirrors landing) */
footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--fg-mute); flex-shrink: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-soft); }
.footer-links a:hover { color: var(--fg); text-decoration: none; }
.footer-brand { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--fg); }
.footer-brand .accent { color: var(--accent); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  header.topbar { padding: 12px 16px; }
  .brand { font-size: 25px; }
  .nav-actions { gap: 12px; }
  .nav-actions .nav-cta { padding: 9px 16px; font-size: 14px; }
  article.content .lede { font-size: 17.5px; }
}
