/* Shared styles for the content pages (use cases, comparisons, guides,
   integrations, changelog). The home page keeps its own stylesheet, home.css;
   the tokens below match it. */

:root {
  --ink:    #26215C;
  --ink-8:  rgba(38,33,92,.08);
  --ink-14: rgba(38,33,92,.14);
  --paper:  #F1EFE8;
  --paper-warm: #EAE7DE;
  --silk:   #EEEDFE;
  --accent: #534AB7;
  --thread: #AFA9EC;
  --void:   #1A1835;
  --text:   #2C2C2A;
  --muted:  #5F5E5A;
  --faint:  #888780;
  --staff:  1px solid rgba(38,33,92,.10);
  --r-sm:   6px;
  --r-md:   10px;
  --w:      760px;
  --w-wide: 1100px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── nav ─────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(241,239,232,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--staff);
}
.nav-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; height: 58px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 13.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: var(--silk);
  border-radius: var(--r-sm); padding: 8px 16px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }

/* ─── breadcrumbs ─────────────────────────────────────────────── */
.crumbs { font-size: 12.5px; color: var(--faint); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* ─── page head ───────────────────────────────────────────────── */
.page-head { padding: 28px 0 40px; border-bottom: var(--staff); }
.eyebrow {
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px;
}
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 54px);
  font-weight: 500; color: var(--ink);
  line-height: 1.08; letter-spacing: -.01em; margin-bottom: 18px;
}
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }

/* The short, direct answer at the top of a page: what search engines and AI
   assistants quote. Keep it to two or three sentences. */
.answer {
  margin-top: 28px; padding: 20px 24px;
  background: var(--silk); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink); font-size: 16px;
}
.answer strong { font-weight: 600; }

/* ─── article body ────────────────────────────────────────────── */
.prose { padding: 40px 0 24px; }
.prose h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px; font-weight: 600; color: var(--ink);
  line-height: 1.2; margin: 44px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 16.5px; font-weight: 600; color: var(--ink);
  margin: 28px 0 8px;
}
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--thread); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink);
  border-left: 2px solid var(--thread); padding: 4px 0 4px 20px; margin: 20px 0;
}
code {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: .88em; color: var(--ink);
  background: var(--ink-8); border-radius: 4px; padding: 1px 5px;
}
kbd {
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500;
  background: var(--ink-8); color: var(--ink);
  border: 1px solid var(--ink-14); border-radius: 4px;
  padding: 1px 6px; white-space: nowrap;
}
.note { font-size: 13.5px; color: var(--faint); }
/* A command to copy. Scrolls sideways instead of widening the page. */
.prose pre {
  background: var(--ink-8); border-radius: var(--r-sm);
  padding: 14px 16px; margin: 0 0 16px; overflow-x: auto;
}
.prose pre code { background: none; padding: 0; white-space: pre; }

/* ─── tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 8px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: var(--staff); }
thead th {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--ink-14);
}
tbody th { font-weight: 600; color: var(--ink); width: 28%; }

/* ─── steps (how a workflow is built) ─────────────────────────── */
ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
ol.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 18px 44px; margin: 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink-8); color: var(--ink);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ─── cards (hub pages) ───────────────────────────────────────── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; padding: 40px 0 24px;
}
.card {
  display: block; background: rgba(255,255,255,.45);
  border: var(--staff); border-radius: var(--r-md);
  padding: 22px 22px 20px; color: var(--text);
  transition: border-color 140ms, background 140ms;
}
.card:hover { text-decoration: none; border-color: var(--thread); background: rgba(255,255,255,.7); }
.card-tag {
  font-size: 11px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 600; color: var(--ink);
  line-height: 1.25; margin-bottom: 8px;
}
.card-body { font-size: 14.5px; color: var(--muted); }

/* ─── related links + CTA ─────────────────────────────────────── */
.related { padding: 8px 0 40px; }
.related h2 {
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.related a {
  display: inline-block; font-size: 13.5px; color: var(--ink);
  border: var(--staff); border-radius: 999px; padding: 5px 14px;
  background: rgba(255,255,255,.4);
}
.related a:hover { text-decoration: none; border-color: var(--thread); }

.cta {
  background: var(--void); color: var(--silk);
  text-align: center; padding: 64px 0;
}
.cta h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px); font-weight: 500; font-style: italic;
  line-height: 1.15; margin-bottom: 12px; color: var(--silk);
}
.cta p { color: rgba(238,237,254,.6); font-size: 15px; margin-bottom: 26px; }
.btn-lg {
  display: inline-block; background: var(--silk); color: var(--ink);
  border-radius: var(--r-sm); padding: 14px 28px;
  font-size: 15px; font-weight: 500;
}
.btn-lg:hover { background: #fff; text-decoration: none; }
.cta-note { font-size: 12.5px !important; margin: 16px 0 0 !important; color: rgba(238,237,254,.35) !important; }

/* ─── changelog ───────────────────────────────────────────────── */
.release { padding: 28px 0; border-bottom: var(--staff); }
.release:last-child { border-bottom: none; }
.release h2 { margin: 0 0 4px; }
.release time { display: block; font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.release ul { margin-bottom: 0; }

/* ─── footer ──────────────────────────────────────────────────── */
footer { background: var(--void); border-top: 1px solid rgba(255,255,255,.06); padding: 44px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px;
}
.footer-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 600; color: rgba(238,237,254,.55);
}
.footer-tag { font-size: 13px; color: rgba(238,237,254,.3); margin-top: 6px; max-width: 220px; line-height: 1.5; }
.footer-col h2 {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(238,237,254,.3); margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: rgba(238,237,254,.5); }
.footer-col a:hover { color: rgba(238,237,254,.85); text-decoration: none; }
.footer-copy { font-size: 12px; color: rgba(238,237,254,.22); margin-top: 32px; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  tbody th { width: auto; }
}
