/* Shared styles for static About / FAQ pages. Matches MarkFlow's stone-based
   dark/light theme without pulling in the full app bundle. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e5e4;
  --accent: #047857;
  --accent-hover: #065f46;
  --link: #047857;
}

html[data-theme='dark'] {
  --bg: #0c0a09;
  --surface: #1c1917;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --border: #292524;
  --accent: #10b981;
  --accent-hover: #34d399;
  --link: #34d399;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-header nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.page-header nav a {
  color: var(--text-muted);
}
.page-header nav a:hover,
.page-header nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1rem;
}

.prose .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose ul li {
  margin-bottom: 0.4rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-secondary:hover {
  background: var(--surface);
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.page-footer a {
  color: var(--text-muted);
}
.page-footer a:hover {
  color: var(--text);
}
