/* Shared styles for ChapterAgent content/comparison pages.
   Tokens mirror landing/index.html (source of truth: client glass.css). */
:root {
  --cc-orange:      #F17201;
  --cc-blue:        #2563EB;
  --cc-blue-dark:   #1D4ED8;
  --cc-blue-light:  #EFF6FF;
  --cc-green:       #10B981;
  --cc-bg:          #FAFBFC;
  --cc-text:        #0F172A;
  --cc-text-muted:  #64748B;
  --cc-border:      rgba(37,99,235,0.12);
  --cc-brand-grad:  linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --glass-bg:       rgba(255,255,255,0.55);
  --glass-border:   1px solid rgba(255,255,255,0.7);
  --glass-shadow:   0 4px 32px rgba(37,99,235,0.08), 0 1px 4px rgba(15,23,42,0.06);
  --radius-card:    16px;
  --radius-pill:    999px;
  --font-main:      'DM Sans', 'Inter', sans-serif;
  --font-display:   'DM Serif Display', Georgia, serif;
  --transition:     all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: linear-gradient(160deg, #EFF6FF 0%, #FAFBFC 30%, #FAFBFC 100%) fixed;
  color: var(--cc-text);
  line-height: 1.65;
}
a { color: var(--cc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.page-header {
  background: rgba(250,251,252,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cc-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo img { height: 36px; width: auto; }
.header-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.header-links a { color: var(--cc-text-muted); font-weight: 500; font-size: 15px; }
.header-links a:hover { color: var(--cc-blue); text-decoration: none; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cc-brand-grad);
  color: white !important;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.30);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 8px 24px rgba(37,99,235,0.38); }

/* ── Article layout ── */
.article-hero { padding: 64px 0 32px; }
.article-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cc-blue);
  margin-bottom: 12px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 18px;
}
.article-lede { font-size: 19px; color: var(--cc-text-muted); max-width: 720px; }
.article-meta { margin-top: 16px; font-size: 13.5px; color: #94A3B8; }

section { padding: 36px 0; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}
h3 { font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
section p { margin-bottom: 14px; color: var(--cc-text); max-width: 760px; }
section ul { margin: 0 0 14px 22px; max-width: 760px; }
section li { margin-bottom: 6px; }
.muted { color: var(--cc-text-muted); }

/* ── Verdict box ── */
.verdict {
  background: var(--glass-bg);
  border: 1.5px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
  padding: 24px 28px;
  margin: 24px 0;
}
.verdict-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cc-blue);
  margin-bottom: 8px;
}
.verdict p { margin-bottom: 8px; }
.verdict p:last-child { margin-bottom: 0; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--cc-border);
  box-shadow: var(--glass-shadow);
  background: rgba(255,255,255,0.8);
  margin: 20px 0;
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(37,99,235,0.08); }
thead th {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cc-text-muted);
  background: rgba(37,99,235,0.04);
}
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 500; }
.col-ca { color: var(--cc-blue-dark); font-weight: 600; }
.yes { color: #059669; font-weight: 600; }
.no  { color: #94A3B8; }
.partial { color: #B45309; }
.table-note { font-size: 13px; color: #94A3B8; margin-top: -8px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; max-width: 760px; }
.faq-item {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  font-size: 16.5px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--cc-blue); flex-shrink: 0; transition: var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; font-size: 15.5px; color: var(--cc-text-muted); }

/* ── CTA ── */
.cta-box {
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  background: var(--cc-brand-grad);
  box-shadow: 0 24px 64px rgba(37,99,235,0.28);
  margin: 40px 0 64px;
}
.cta-box h2 { color: white; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 24px; }
.cta-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.cta-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px;
  font-family: var(--font-main);
  min-width: 0;
}
.cta-form button {
  border: none;
  background: var(--cc-text);
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  cursor: pointer;
  font-family: var(--font-main);
}
.cta-note { font-size: 13px; color: rgba(255,255,255,0.7) !important; margin-top: 12px !important; margin-bottom: 0 !important; }

/* ── Footer ── */
footer { border-top: 1px solid var(--cc-border); padding: 28px 0 40px; }
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13.5px; color: var(--cc-text-muted); }
.footer-links { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--cc-text-muted); }

@media (max-width: 640px) {
  .header-links { display: none; }
  .article-hero { padding: 40px 0 20px; }
  section { padding: 26px 0; }
  .cta-form { flex-direction: column; border-radius: 16px; }
  .cta-form button { width: 100%; }
}
