/* Trinity Bible — shared SEO landing-page chrome.
   Self-contained subset of the homepage design system so each topic
   page can ship as a single small HTML file with consistent brand
   chrome, type scale, color, and a11y. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Regular.woff2") format("woff2"), url("/fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-MediumItalic.woff2") format("woff2"), url("/fonts/CormorantGaramond-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --tb-bg: #FBFAF7;
  --tb-bg-2: #F2EFE6;
  --tb-surface: rgba(255,255,255,0.92);
  --tb-surface-2: rgba(255,255,255,0.72);
  --tb-text: #171513;
  --tb-text-2: #3B3632;
  --tb-text-3: #6B645F;
  --tb-border: rgba(20,16,14,0.10);
  --tb-border-2: rgba(20,16,14,0.16);
  --tb-primary: #4D4CDF;
  --tb-primary-2: #3A33C9;
  --tb-gold: #C5A55A;
  --tb-gold-text: #8E6F2E;
  --tb-shadow-sm: 0 18px 55px rgba(0,0,0,0.10);
  --tb-shadow-md: 0 46px 160px rgba(0,0,0,0.22);
  --tb-nav-bg: rgba(255,255,255,0.80);
  --tb-nav-border: rgba(20,16,14,0.08);
  --tb-r28: 28px;
  --tb-r20: 20px;
  --tb-r12: 12px;
  --tb-fast: 220ms;
  --tb-med: 360ms;
  --tb-ease: cubic-bezier(.22,.61,.36,1);
  --tb-font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --tb-font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html[data-tb-theme="dark"], body[data-tb-theme="dark"] {
  --tb-bg: #0B0B10;
  --tb-bg-2: #111225;
  --tb-surface: rgba(18,18,26,0.92);
  --tb-surface-2: rgba(18,18,26,0.70);
  --tb-text: #F7F7FB;
  --tb-text-2: rgba(247,247,251,0.86);
  --tb-text-3: rgba(247,247,251,0.62);
  --tb-border: rgba(255,255,255,0.10);
  --tb-border-2: rgba(255,255,255,0.16);
  --tb-primary: #7C7CFF;
  --tb-gold: #C9AE6A;
  --tb-gold-text: #C9AE6A;
  --tb-nav-bg: rgba(12,12,18,0.66);
  --tb-nav-border: rgba(255,255,255,0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--tb-font-system);
  background: var(--tb-bg);
  color: var(--tb-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
a { color: var(--tb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--tb-primary);
  outline-offset: 3px;
  border-radius: inherit;
}

.tb-container { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
@media (max-width: 720px) { .tb-container { width: min(1240px, calc(100% - 28px)); } }

.tb-serif { font-family: var(--tb-font-display); font-weight: 400; }

.tb-skip {
  position: fixed; top: -100px; left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--tb-text); color: var(--tb-bg);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 10px; text-decoration: none;
  transition: top var(--tb-fast) var(--tb-ease);
}
.tb-skip:focus { top: 12px; }

/* NAV */
.tb-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: var(--tb-nav-bg);
  border-bottom: 1px solid var(--tb-nav-border);
}
.tb-navRow {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.tb-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--tb-text);
}
.tb-brand:hover { text-decoration: none; }
.tb-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tb-logo img { width: 32px; height: 32px; object-fit: contain; }
.tb-wordmark {
  display: flex; flex-direction: column; gap: 2px;
}
.tb-wordmark .tb-word { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.tb-wordmark .tb-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase; color: var(--tb-text-3); }
.tb-navLinks { display: none; gap: 8px; }
@media (min-width: 980px) { .tb-navLinks { display: flex; } }
.tb-navLink {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--tb-text-2);
}
.tb-navLink:hover { color: var(--tb-text); background: rgba(91,90,230,0.08); text-decoration: none; }

.tb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--tb-font-system);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--tb-fast) var(--tb-ease), background var(--tb-fast) var(--tb-ease), color var(--tb-fast) var(--tb-ease);
}
.tb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.tb-btnPrimary {
  background: var(--tb-primary); color: #fff;
}
.tb-btnPrimary:hover { background: var(--tb-primary-2); color: #fff; }
.tb-btnGhost {
  background: transparent; color: var(--tb-text);
  border-color: var(--tb-border-2);
}
.tb-btnGhost:hover { background: var(--tb-surface); }

/* PAGE HERO */
.tb-pageHero {
  padding: 132px 0 64px;
  background:
    radial-gradient(900px 520px at 80% 0%, rgba(91,90,230,0.10), transparent 60%),
    radial-gradient(900px 520px at 20% 30%, rgba(197,165,90,0.10), transparent 62%),
    var(--tb-bg);
}
.tb-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(197,165,90,0.30);
  background: rgba(197,165,90,0.10);
  color: var(--tb-gold-text);
  font-family: var(--tb-font-system);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.tb-pageH1 {
  font-family: var(--tb-font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--tb-text);
  margin: 0 0 18px;
  text-wrap: balance;
}
.tb-pageH1 .tb-gold { color: var(--tb-gold); }
.tb-pageLede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--tb-text-2);
  margin: 0 0 28px;
  max-width: 64ch;
}
.tb-pageCtas { display: flex; gap: 12px; flex-wrap: wrap; }

/* CONTENT SECTIONS */
.tb-section { padding: 64px 0; }
.tb-sectionTight { padding: 36px 0; }
.tb-h2 {
  font-family: var(--tb-font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--tb-text);
  margin: 0 0 14px;
  text-wrap: balance;
}
.tb-h3 {
  font-family: var(--tb-font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--tb-text);
  margin: 0 0 8px;
}
.tb-lede {
  font-size: 17px; line-height: 1.7;
  color: var(--tb-text-2);
  max-width: 64ch;
  margin: 0 0 20px;
}

.tb-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 720px) { .tb-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1080px) { .tb-grid { grid-template-columns: repeat(3, 1fr); } }
.tb-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .tb-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.tb-card {
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  border-radius: 24px;
  padding: 26px 26px 28px;
  box-shadow: 0 14px 38px rgba(20,16,30,0.06), 0 2px 6px rgba(20,16,30,0.04);
}
html[data-tb-theme="dark"] .tb-card,
body[data-tb-theme="dark"] .tb-card {
  box-shadow: 0 16px 44px rgba(0,0,0,0.32), 0 3px 10px rgba(0,0,0,0.18);
}
.tb-card .tb-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tb-gold-text);
  display: inline-block;
  margin-bottom: 10px;
}
.tb-card p {
  font-size: 14.5px; line-height: 1.66;
  color: var(--tb-text-2);
  margin: 0;
}

/* TABLE (comparison pages) */
.tb-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--tb-border);
  border-radius: 18px;
  overflow: hidden;
  font-size: 14.5px;
  background: var(--tb-surface);
  margin-top: 24px;
}
.tb-compare th, .tb-compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tb-border);
  text-align: left;
  vertical-align: top;
}
.tb-compare tr:last-child th, .tb-compare tr:last-child td { border-bottom: none; }
.tb-compare thead th {
  background: var(--tb-bg-2);
  font-family: var(--tb-font-system);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tb-text);
}
.tb-compare tbody th {
  font-weight: 600;
  color: var(--tb-text);
  background: rgba(255,255,255,0.4);
}
html[data-tb-theme="dark"] .tb-compare tbody th,
body[data-tb-theme="dark"] .tb-compare tbody th {
  background: rgba(18,18,26,0.4);
}
.tb-compare .tb-yes { color: #1F8A4C; font-weight: 700; }
.tb-compare .tb-no  { color: #B23A48; font-weight: 700; }
.tb-compare .tb-partial { color: var(--tb-text-3); font-weight: 600; }

/* CTA BAND */
.tb-ctaBand {
  margin: 56px 0 24px;
  padding: 40px 32px;
  border-radius: 28px;
  background:
    radial-gradient(900px 400px at 70% 30%, rgba(91,90,230,0.12), transparent 60%),
    radial-gradient(900px 400px at 30% 70%, rgba(197,165,90,0.12), transparent 60%),
    var(--tb-surface);
  border: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow-sm);
}
.tb-ctaBand h2 { margin-top: 0; }

/* FOOTER STRIP */
.tb-pageFooter {
  border-top: 1px solid var(--tb-border);
  padding: 36px 0 48px;
  margin-top: 48px;
}
.tb-pageFooterGrid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .tb-pageFooterGrid { grid-template-columns: repeat(3, 1fr); } }
.tb-pageFooter h4 {
  font-family: var(--tb-font-system);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tb-text-3);
  margin: 0 0 14px;
}
.tb-pageFooter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tb-pageFooter a { color: var(--tb-text-2); }
.tb-pageFooterFinal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--tb-border);
  font-size: 12px;
  color: var(--tb-text-3);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* FAQ */
.tb-faqBlock { margin-top: 28px; display: grid; gap: 10px; }
.tb-faqItem {
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}
.tb-faqItem summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--tb-font-system);
  font-size: 15.5px; font-weight: 600;
  color: var(--tb-text);
}
.tb-faqItem summary::-webkit-details-marker { display: none; }
.tb-faqItem[open] summary { border-bottom: 1px solid var(--tb-border); }
.tb-faqItem p {
  padding: 16px 18px 18px;
  font-size: 14.5px; line-height: 1.7;
  color: var(--tb-text-2);
  margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
