/* Bible Motion — book pages. Tokens and base components mirror the homepage. */
:root {
  --bg0: #0C0A2E;
  --bg1: #120F3A;
  --gold: #C8A96E;
  --gold-light: #E8C97A;
  --sky: #8EB4FF;
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.95);
  --muted: rgba(255,255,255,.62);
  --good: #7de89a;
  --bad: #f19a9a;
  --radius: 20px;
  --max: 1120px;
  --read: 720px;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg0);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.read { max-width: var(--read); }

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 900px 700px at 15% -5%,  rgba(180,140,255,.22), transparent 55%),
    radial-gradient(ellipse 700px 500px at 85% 10%,  rgba(200,169,110,.16), transparent 55%),
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(100,80,220,.18),  transparent 55%);
}
section, nav, footer, header, main, .nav { position: relative; z-index: 1; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(12,10,46,.78);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 13px var(--pad); gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.navlinks { display: flex; gap: 4px; font-size: 13.5px; color: var(--muted); align-items: center; }
.navlinks a { padding: 7px 13px; border-radius: 999px; transition: background .18s, color .18s; }
.navlinks a:hover, .navlinks a[aria-current] { background: rgba(255,255,255,.07); color: white; }
.navlinks a.nav-cta { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #0A0800; font-weight: 700; }

/* BREADCRUMBS */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: white; }

/* HERO */
.hero { padding: 28px 0 56px; border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,169,110,.3);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 20px;
  background: rgba(200,169,110,.08);
}
h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
  max-width: 820px; margin-bottom: 16px;
}
h1 em, h2 em { font-style: italic; color: var(--gold); }
.lede { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 660px; line-height: 1.65; }

h2 {
  font-family: 'Lora', serif;
  font-size: clamp(24px,3.6vw,34px); font-weight: 700;
  line-height: 1.18; letter-spacing: -.02em; margin-bottom: 12px;
}
h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-sub { font-size: 16px; color: var(--muted); max-width: 600px; margin-bottom: 28px; }

/* PROSE */
.prose p { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.84); margin-bottom: 18px; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: white; }
.prose em { color: var(--gold-light); }

/* BUTTONS */
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; font-family: 'Outfit', sans-serif; color: var(--text);
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07);
  transition: background .18s, transform .15s, border-color .18s; cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0A0800; border: none; box-shadow: 0 8px 32px rgba(200,169,110,.30);
}
.btn.primary:hover { background: linear-gradient(135deg, #f0d880 0%, var(--gold-light) 100%); }

/* VIDEO */
.video-wrap {
  margin-top: 32px; aspect-ratio: 16/9; background: #000;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-caption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* FACTS */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
}
.fact { background: rgba(12,10,46,.88); padding: 18px 16px; }
.fact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.fact-value { font-weight: 700; font-size: 15px; }

/* CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; }
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  transition: border-color .2s, transform .2s; display: block;
}
a.card:hover { border-color: rgba(200,169,110,.4); transform: translateY(-2px); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

/* VERSES */
.verses { display: flex; flex-direction: column; gap: 12px; }
blockquote {
  background: rgba(200,169,110,.08); border-left: 3px solid var(--gold);
  padding: 16px 20px; border-radius: 0 14px 14px 0;
}
blockquote p { font-family: 'Lora', serif; font-style: italic; font-size: 17px; line-height: 1.6; color: var(--gold-light); }
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); }

/* FAQ / DETAILS */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: border-color .2s;
}
details[open] { border-color: rgba(200,169,110,.3); }
summary {
  cursor: pointer; font-weight: 700; font-size: 15px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; list-style: none; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--gold); flex-shrink: 0; transition: transform .2s; margin-left: 12px; }
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* APP CTA BANNER */
.app-cta {
  background: linear-gradient(135deg, rgba(200,169,110,.14), rgba(140,100,255,.10));
  border: 1px solid rgba(200,169,110,.28); border-radius: 22px; padding: 34px 30px;
}
.app-cta h2 { margin-bottom: 6px; }
.app-cta p { color: var(--muted); font-size: 15.5px; max-width: 560px; }
.app-cta .btnrow { margin-top: 20px; }

/* NEXT/PREV */
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pager a:hover { color: white; }

/* HUB */
.hub-group { margin-bottom: 40px; }
.hub-group h3 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
.book-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 2px;
}
.book-card .bk-name { font-weight: 700; font-size: 15px; }
.book-card .bk-meta { font-size: 12px; color: var(--muted); }
a.book-card { background: linear-gradient(160deg, rgba(200,169,110,.16), rgba(255,255,255,.03)); border-color: rgba(200,169,110,.35); transition: transform .2s; }
a.book-card:hover { transform: translateY(-2px); }
.book-card.soon { opacity: .55; }

/* TRIVIA */
.quiz-box {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; min-height: 280px;
}
.quiz-progress { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.quiz-bar { height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; margin-bottom: 22px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .3s; }
.quiz-q { font-family: 'Lora', serif; font-size: clamp(19px, 2.6vw, 23px); font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 15.5px; color: var(--text);
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.quiz-opt:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: rgba(200,169,110,.45); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { background: rgba(80,200,100,.15); border-color: rgba(80,200,100,.5); color: var(--good); }
.quiz-opt.wrong { background: rgba(200,80,80,.14); border-color: rgba(200,80,80,.45); color: var(--bad); }
.quiz-feedback { margin-top: 16px; font-size: 14px; color: var(--muted); min-height: 22px; }
.quiz-next { margin-top: 14px; }
.quiz-score { font-family: 'Lora', serif; font-size: clamp(48px, 9vw, 72px); font-weight: 700; color: var(--gold-light); line-height: 1; margin: 6px 0 10px; }
.quiz-result p { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 6px; }
.quiz-result h2 { margin-top: 4px; }

.qa-list { list-style: none; counter-reset: qa; display: flex; flex-direction: column; gap: 10px; }
.qa-list > li { counter-increment: qa; }
.qa-list summary::before { content: counter(qa) '.'; color: var(--gold); margin-right: 10px; font-weight: 800; }
.qa-list summary { justify-content: flex-start; }
.qa-list summary::after { margin-left: auto; }
.qa-opts { list-style: none; padding: 0 20px 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.qa-opts li::before { content: '○ '; color: rgba(255,255,255,.3); }
.qa-answer { padding: 8px 20px 18px; font-size: 14.5px; }
.qa-answer strong { color: var(--good); }
.qa-answer span { color: var(--muted); }

/* FOOTER */
footer { padding: 36px 0 44px; font-size: 13.5px; color: rgba(255,255,255,.45); }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footlinks { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footlinks a { color: rgba(255,255,255,.5); transition: color .15s; }
.footlinks a:hover { color: white; }

@media (max-width: 640px) {
  .navlinks a:not(.nav-cta) { display: none; }
  .btnrow { flex-direction: column; }
  .btnrow .btn { width: 100%; }
  .section { padding: 44px 0; }
  .app-cta { padding: 26px 20px; }
  .prose p { font-size: 16px; }
}

/* Sign-up card and certificate on trivia results */
.join-wrap { margin-top: 30px; }
.join { border: 1px solid rgba(200,169,110,.35); background: rgba(200,169,110,.06); border-radius: var(--radius); padding: 24px; }
.join h3 { font-family: 'Lora', serif; font-size: 22px; margin: 4px 0 6px; }
.join-wrap .join-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.join-providers { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.join-providers:empty { display: none; }
.join-apple {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; width: 100%; max-width: 320px;
  border-radius: 999px; border: 0; background: #fff; color: #000; font: 600 15px -apple-system, BlinkMacSystemFont, 'Outfit', sans-serif; cursor: pointer;
}
.join-or { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 4px 0 2px; }
.join-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.join-form input {
  flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: var(--text); font: 15px 'Outfit', sans-serif;
}
.join-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.join-form .btn { flex: 1 1 100%; justify-content: center; }
.join-wrap .join-msg { font-size: 14px; color: var(--muted); min-height: 20px; margin-top: 10px; }
.join-wrap .join-msg.error { color: var(--bad); }
.join-wrap .join-fine { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.join-fine a { text-decoration: underline; }
.join-wrap .join-done { font-size: 18px; font-weight: 700; color: var(--good); margin-bottom: 16px; }
.cert {
  background: #fdfaf2; color: #2a2210; border: 6px double #b8964f; border-radius: 6px;
  padding: 36px 24px; text-align: center; font-family: 'Lora', serif;
}
.cert-brand { font: 700 13px 'Outfit', sans-serif; letter-spacing: .25em; text-transform: uppercase; color: #8a6d2f; }
.cert-title { font-size: clamp(24px, 4.5vw, 34px); font-weight: 700; margin: 10px 0 18px; }
.cert-line { font-size: 15px; color: #5b4c2c; }
.cert-name { font-size: clamp(26px, 5vw, 38px); font-style: italic; font-weight: 700; margin: 8px 0 12px; border-bottom: 1px solid #c9b07a; display: inline-block; padding: 0 18px 4px; }
.cert-score { font-size: 30px; font-weight: 700; color: #8a6d2f; margin: 6px 0 14px; }
.cert-date { font: 13px 'Outfit', sans-serif; color: #7a6a48; }
@media print {
  body * { visibility: hidden; }
  .cert, .cert * { visibility: visible; }
  .cert { position: absolute; left: 0; top: 0; width: 100%; border-radius: 0; }
}

/* Pricing and comparison pages */
.price-card { border: 1px solid rgba(200,169,110,.28); border-radius: 22px; padding: 32px 28px; background: linear-gradient(135deg, rgba(200,169,110,.14), rgba(140,100,255,.10)); max-width: 560px; }
.price-big { font-family: 'Lora', serif; font-size: 52px; font-weight: 700; color: var(--gold-light); line-height: 1; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.perks { list-style: none; margin: 20px 0; display: grid; gap: 8px; }
.perks li { font-size: 15px; color: rgba(255,255,255,.84); }
.perks li::before { content: '✓ '; color: var(--gold); font-weight: 800; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.fine a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.compare-wrap { overflow-x: auto; margin-top: 20px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.compare td:first-child { color: var(--muted); }
