/* Zen Analyze – App Help Pages
   Apple-inspired minimal design */

:root {
  --brand: #165a2f;
  --brand-light: #1d7a3f;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --border: #d2d2d7;
  --max-width: 740px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

/* ── Header ───────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  font-size: 21px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.header-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 24px;
  transition: color .2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brand);
}

/* ── Main Content ─────────────────────── */

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.effective-date {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* ── Sections ─────────────────────────── */

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.section ul {
  color: var(--text-secondary);
  padding-left: 22px;
  margin-bottom: 14px;
}

.section ul li {
  margin-bottom: 6px;
}

.section a {
  color: var(--brand);
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

/* ── Divider ──────────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── FAQ specific ─────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform .25s;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding-top: 4px;
  margin-bottom: 10px;
}

/* ── Footer ───────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-alt);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 10px;
}

.site-footer a:hover {
  color: var(--brand);
}

/* ── Responsive ───────────────────────── */

@media (max-width: 600px) {
  .page-title {
    font-size: 28px;
  }
  .section h2 {
    font-size: 20px;
  }
  .header-nav a {
    margin-left: 14px;
    font-size: 13px;
  }
  .content {
    padding: 36px 20px 60px;
  }
}
