/* Shared styles for BPMN Generator content / marketing pages.
   Mirrors the design tokens used in index.html and terms.html so the
   informational pages feel like part of the same product. */

:root {
  --bg:         #fcfcfc;
  --surface:    #ffffff;
  --surface2:   #f5f5f5;
  --text:       #1a1a1a;
  --text-muted: #8e8e8e;
  --border:     #e0e0e0;
  --accent:     #2563eb;
  --accent-fg:  #ffffff;
}
body.dark {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --surface2:   #1a1a1a;
  --text:       #e8e8e8;
  --text-muted: #6b7280;
  --border:     #272727;
  --accent:     #3b82f6;
  --accent-fg:  #ffffff;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  padding: 0 1.25rem 5rem;
  transition: background 0.2s, color 0.2s;
}

.container { max-width: 760px; margin: 0 auto; }

/* ── Top nav ─────────────────────────────────────────────── */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.topnav .cta-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.topnav .cta-link:hover { text-decoration: underline; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.crumbs { font-size: 12px; color: var(--text-muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ── Article typography ──────────────────────────────────── */
h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.page-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 1rem;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p { margin-bottom: 1rem; }
a { color: var(--accent); }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin: 0.4rem 0; }

strong { font-weight: 600; }

/* ── TOC ─────────────────────────────────────────────────── */
.toc {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
}
.toc-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.6rem;
}
.toc ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.toc li { margin: 0.3rem 0; font-size: 14px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

/* ── Callout / note ──────────────────────────────────────── */
.note {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.1rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.note strong { color: var(--text); }

/* ── Tables ──────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.25rem 0;
}
th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-weight: 600;
  color: var(--text);
}
td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

/* ── Example cards ───────────────────────────────────────── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
}
.card h3 { margin-top: 0; font-size: 1rem; }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 0.9rem; }
.card .prompt {
  font-size: 12.5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  margin: 2.5rem 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.cta h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.cta p { color: var(--text-muted); margin-bottom: 1.25rem; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.faq p { color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1rem;
}
footer .links a { color: var(--text-muted); text-decoration: none; }
footer .links a:hover { color: var(--text); }
footer .copy { font-size: 12px; }
