/* ============================================================================
   VERITAS — www.myveritasbible.com
   "Sacred Illuminated Editorial" Design System (Cathedral Obsidian & Vellum)
   ============================================================================ */

:root,
html[data-theme="obsidian"] {
  --bg: #0E0D0B;
  --surface: #161411;
  --surface-elevated: #1D1A16;
  --surface-glass: rgba(29, 26, 22, 0.78);
  --text-primary: #F3EDE1;
  --text-secondary: #B9AFA0;
  --text-muted: #7C7265;
  --accent-gold: #D8B243;
  --accent-gold-bright: #EAC860;
  --accent-gold-soft: rgba(216, 178, 67, 0.16);
  --accent-gold-glow: rgba(216, 178, 67, 0.28);
  --accent-crimson: #C85A5A;
  --accent-crimson-soft: rgba(200, 90, 90, 0.16);
  --accent-sapphire: #6CA0DC;
  --accent-sapphire-soft: rgba(108, 160, 220, 0.16);
  --accent-emerald: #7AB893;
  --accent-emerald-soft: rgba(122, 184, 147, 0.16);
  --border: rgba(216, 178, 67, 0.16);
  --border-strong: rgba(216, 178, 67, 0.34);
  --highlight-bg: rgba(216, 178, 67, 0.22);
  --shadow-elevated: 0 28px 70px rgba(0, 0, 0, 0.65);
  --phone-chassis-bg: linear-gradient(155deg, #27221B 0%, #100E0C 55%, #1E1A15 100%);
  --phone-bezel-border: rgba(216, 178, 67, 0.42);
  --badge-bg: #181512;
  --badge-hover-bg: #231E18;
}

html[data-theme="vellum"] {
  --bg: #F7F2E6;
  --surface: #EFE7D6;
  --surface-elevated: #FFFFFF;
  --surface-glass: rgba(255, 252, 245, 0.86);
  --text-primary: #1D1813;
  --text-secondary: #544A3D;
  --text-muted: #8A7D6B;
  --accent-gold: #A67808;
  --accent-gold-bright: #8A6204;
  --accent-gold-soft: rgba(166, 120, 8, 0.13);
  --accent-gold-glow: rgba(166, 120, 8, 0.22);
  --accent-crimson: #8E1B1B;
  --accent-crimson-soft: rgba(142, 27, 27, 0.12);
  --accent-sapphire: #1E4D8C;
  --accent-sapphire-soft: rgba(30, 77, 140, 0.12);
  --accent-emerald: #236B48;
  --accent-emerald-soft: rgba(35, 107, 72, 0.12);
  --border: rgba(166, 120, 8, 0.20);
  --border-strong: rgba(166, 120, 8, 0.40);
  --highlight-bg: rgba(216, 178, 67, 0.28);
  --shadow-elevated: 0 24px 60px rgba(45, 34, 16, 0.16);
  --phone-chassis-bg: linear-gradient(155deg, #322B22 0%, #191510 55%, #2B241C 100%);
  --phone-bezel-border: rgba(166, 120, 8, 0.55);
  --badge-bg: #1D1813;
  --badge-hover-bg: #2E261E;
}

/* Reset & Base Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1220px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Ambient Cathedral Radial Halos */
.ambient-halo {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
}

.ambient-halo--top {
  width: 680px;
  height: 680px;
  top: -260px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-gold-soft) 0%, transparent 70%);
}

.ambient-halo--mid {
  width: 620px;
  height: 620px;
  top: 42%;
  left: -240px;
  background: radial-gradient(circle, var(--accent-sapphire-soft) 0%, transparent 70%);
}

/* ============================================================================
   1. STICKY GLASS HEADER
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-crest {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
  display: grid;
  place-items: center;
  padding: 0.3rem;
  transition: transform 0.25s ease;
}

.brand-lockup:hover .brand-crest {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  margin-top: 0.12rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.theme-toggle-pill:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

html[data-theme="obsidian"] .theme-icon--moon {
  display: none;
}

html[data-theme="vellum"] .theme-icon--sun {
  display: none;
}

.btn-gold-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-bright) 100%);
  color: #0E0D0B;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-gold-glow);
}

/* ============================================================================
   2. HERO SECTION & 3D INTERACTIVE MOBILE APP PREVIEW
   ============================================================================ */
.hero-section {
  padding: 3.5rem 0 5.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-bottom: 1.35rem;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.hero-headline {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.1vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
}

.gold-italic-serif {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.08em;
}

.hero-lead {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.18rem, 1.45vw, 1.35rem);
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  max-width: 58ch;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trust-pill strong {
  color: var(--text-primary);
}

.trust-check {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

/* Official App Store & Google Play Store Badges */
.store-cta-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 1.35rem;
  border-radius: 0.9rem;
  background: var(--badge-bg);
  color: #F3EDE1;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.store-badge-btn:hover {
  transform: translateY(-2px);
  background: var(--badge-hover-bg);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 34px var(--accent-gold-glow);
}

.store-icon {
  width: 1.85rem;
  height: 1.85rem;
  color: #D8B243;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-badge-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B9AFA0;
}

.store-badge-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F3EDE1;
}

.qr-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qr-trigger-btn:hover {
  background: var(--accent-gold-soft);
  transform: translateY(-2px);
}

.mobile-exclusive-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gold-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

/* ============================================================================
   3D PHONE MOCKUP & INTERACTIVE MOBILE SANDBOX
   ============================================================================ */
.hero-phone-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-stage {
  width: 100%;
  max-width: 430px;
  perspective: 1200px;
}

.sandbox-controls {
  margin-bottom: 0.9rem;
}

.sandbox-controls-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  text-align: center;
}

.sandbox-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.sandbox-pill {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.sandbox-pill:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.sandbox-pill.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0E0D0B;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.phone-chassis {
  background: var(--phone-chassis-bg);
  border: 2px solid var(--phone-bezel-border);
  border-radius: 2.6rem;
  padding: 0.75rem;
  box-shadow: var(--shadow-elevated), 0 0 45px var(--accent-gold-soft);
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}

.phone-notch {
  width: 112px;
  height: 20px;
  background: #090807;
  border-radius: 999px;
  margin: 0.2rem auto 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.phone-speaker {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #25221D;
}

.phone-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #3B6998 0%, #111822 70%);
}

.phone-screen {
  background: var(--bg);
  border-radius: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  max-height: 640px;
  position: relative;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app-book-pill {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.app-trans-switch {
  display: inline-flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 0.15rem;
  border: 1px solid var(--border);
}

.app-trans-btn {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.app-trans-btn.is-active {
  background: var(--accent-gold);
  color: #0E0D0B;
}

.app-scripture-area {
  padding: 0.95rem 1.1rem;
  font-family: 'EB Garamond', serif;
  border-bottom: 1px solid var(--border);
}

.app-chapter-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.app-verse-context {
  font-size: 0.92rem;
  line-height: 1.42;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.app-highlighted-verse {
  background: var(--highlight-bg);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0.55rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.app-highlighted-verse:hover {
  transform: scale(1.01);
}

.app-verse-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-right: 0.35rem;
  vertical-align: super;
}

.app-verse-text {
  font-size: 1.04rem;
  line-height: 1.48;
  color: var(--text-primary);
  font-weight: 500;
}

.app-highlight-badge {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

/* Expandable Illumination Bottom Sheet Inside Phone */
.app-illumination-sheet {
  flex: 1;
  background: var(--surface-elevated);
  border-top: 1.5px solid var(--border-strong);
  border-radius: 1.35rem 1.35rem 0 0;
  margin-top: -0.35rem;
  padding: 0.55rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.sheet-drag-handle {
  display: flex;
  justify-content: center;
  padding: 0.2rem 0 0.45rem;
}

.sheet-pill-bar {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sheet-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}

.sheet-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
}

.sheet-ref-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 0.4rem;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  white-space: nowrap;
}

.sheet-lenses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-bottom: 0.55rem;
}

.sheet-lens-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.sheet-prose-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
  font-family: 'EB Garamond', serif;
  font-size: 0.98rem;
  line-height: 1.56;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 220px;
}

.sheet-prose-scroll::-webkit-scrollbar {
  width: 4px;
}

.sheet-prose-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

/* Inline [Book Chapter:Verse] Pill Inside Illumination Prose */
.verse-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.42rem;
  margin-inline: 0.1rem;
  border-radius: 0.35rem;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.verse-ref-pill:hover {
  background: var(--accent-gold);
  color: #0E0D0B;
}

.inline-xref-card {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--accent-gold);
  animation: fadeSlideUp 0.22s ease-out;
}

.inline-xref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.inline-xref-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.inline-xref-close {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.1rem 0.3rem;
}

.inline-xref-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.42;
  color: var(--text-primary);
}

.sheet-footer-bar {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sheet-telemetry {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.sheet-telemetry strong {
  color: var(--accent-gold);
}

.sheet-get-app-btn {
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-gold);
  color: #0E0D0B;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================================
   3. THE 4 ORGANIC DIMENSIONS BENTO GRID
   ============================================================================ */
.bento-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.section-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.22rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.bento-card {
  grid-column: span 6;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-elevated);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card--wide {
  grid-column: span 12;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

/* Cursor-Tracked Radial Gold Spotlight */
.bento-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    var(--accent-gold-soft),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover .bento-card-glow {
  opacity: 1;
}

.bento-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dimension-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
}

.dimension-pill--gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--border-strong);
}

.dimension-pill--crimson {
  background: var(--accent-crimson-soft);
  color: var(--accent-crimson);
  border: 1px solid var(--accent-crimson);
}

.dimension-pill--sapphire {
  background: var(--accent-sapphire-soft);
  color: var(--accent-sapphire);
  border: 1px solid var(--accent-sapphire);
}

.dimension-pill--emerald {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
}

.bento-artifact-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bento-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.bento-description {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.bento-description strong {
  color: var(--text-primary);
}

.artifact-showcase-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.artifact-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.artifact-year {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.artifact-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.typology-arc-box {
  margin-top: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.typology-node {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.typology-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-crimson);
}

.typology-ref {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.typology-quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.38;
  color: var(--text-secondary);
}

.typology-arrow {
  font-size: 1.35rem;
  color: var(--accent-gold);
}

.fathers-quote-box {
  margin-top: auto;
  background: var(--surface);
  border-left: 3px solid var(--accent-sapphire);
  border-radius: 0.75rem;
  padding: 1.05rem 1.2rem;
}

.fathers-quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.fathers-cite {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-sapphire);
}

.science-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.science-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.science-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.science-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
}

.science-ref {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.science-case-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ============================================================================
   4. 73-BOOK CATHOLIC CANON & TRANSLATION SWITCHER
   ============================================================================ */
.canon-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.canon-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.canon-copy .section-title,
.canon-copy .section-subtitle {
  text-align: left;
}

.deutero-box {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border-radius: 1.1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.deutero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.deutero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deutero-badge {
  padding: 0.4rem 0.78rem;
  border-radius: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-gold-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-bright) 100%);
  color: #0E0D0B;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 12px 30px var(--accent-gold-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px var(--accent-gold-glow);
}

.translation-compare-card {
  background: var(--surface-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
}

.compare-header {
  margin-bottom: 1.35rem;
}

.compare-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 0.7rem;
}

.compare-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
}

.compare-tab {
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.compare-tab.is-active {
  background: var(--accent-gold);
  color: #0E0D0B;
}

.compare-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.compare-book-ref {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-gold);
}

.compare-style-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.compare-verse-quote {
  font-family: 'EB Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.58;
  color: var(--text-primary);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.compare-note {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================================
   5. "100% FREE FOREVER" MANIFESTO & EXCLUSIVE FAQ ACCORDION
   ============================================================================ */
.manifesto-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.manifesto-card {
  background: linear-gradient(145deg, var(--surface-elevated) 0%, var(--surface) 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: 1.65rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-elevated);
  margin-bottom: 4.5rem;
}

.manifesto-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--border-strong);
  margin-bottom: 1rem;
}

.manifesto-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.manifesto-prose {
  font-family: 'EB Garamond', serif;
  font-size: 1.26rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 68ch;
  margin: 0 auto 2.2rem;
}

.manifesto-prose strong {
  color: var(--text-primary);
}

.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.manifesto-pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.manifesto-number {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.1;
}

.manifesto-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Exclusive Native <details name="veritas-faq"> Accordion */
.faq-wrapper {
  max-width: 820px;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-gold);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  transition: transform 0.22s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.4rem 1.3rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-answer code {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

/* ============================================================================
   6. GRAND FINAL DOWNLOAD CALLOUT & FOOTER
   ============================================================================ */
.final-cta-section {
  padding: 2rem 0 5.5rem;
}

.final-cta-card {
  background: radial-gradient(circle at top right, var(--accent-gold-soft), transparent 60%),
              var(--surface-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: 1.75rem;
  padding: clamp(2.2rem, 4.5vw, 3.75rem);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-elevated);
}

.final-cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.final-cta-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.24rem;
  color: var(--text-secondary);
  margin-bottom: 1.65rem;
}

.final-qr-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 1.25rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-frame {
  padding: 0.55rem;
  background: #F7F2E6;
  border-radius: 0.9rem;
  border: 2px solid var(--accent-gold);
  margin-bottom: 0.75rem;
}

.qr-svg {
  width: 124px;
  height: 124px;
  display: block;
}

.qr-svg--large {
  width: 156px;
  height: 156px;
}

.qr-caption-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.qr-caption-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Minimal Colophon Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copy {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================================
   NATIVE TOP-LAYER <dialog> MODAL (modern-web-guidance compliant)
   ============================================================================ */
dialog.qr-dialog {
  margin: auto;
  width: min(460px, calc(100% - 2rem));
  border: 1.5px solid var(--border-strong);
  border-radius: 1.5rem;
  background: var(--surface-elevated);
  color: var(--text-primary);
  padding: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);

  /* Closed base state for exit animation */
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.26s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

dialog.qr-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.26s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

:is(dialog.qr-dialog[open]):where(:not([data-closing])) {
  opacity: 1;
  transform: scale(1) translateY(0);

  @starting-style {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }

  &::backdrop {
    background-color: rgba(8, 7, 6, 0.72);
    backdrop-filter: blur(6px);

    @starting-style {
      background-color: rgba(8, 7, 6, 0);
      backdrop-filter: blur(0px);
    }
  }
}

.qr-dialog-inner {
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.qr-dialog-close:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.qr-dialog-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 0.45rem;
}

.qr-dialog-title {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.qr-dialog-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.qr-dialog-code-wrap {
  padding: 0.75rem;
  background: #F7F2E6;
  border: 2px solid var(--accent-gold);
  border-radius: 1.1rem;
  margin-bottom: 1.35rem;
}

.qr-dialog-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
}

.store-badge-btn--dialog {
  flex: 1;
  min-width: 175px;
  justify-content: center;
}

.copy-url-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.copy-url-btn:hover {
  border-color: var(--accent-gold);
}

/* ============================================================================
   SCROLL-DRIVEN ENTRY ANIMATIONS + FALLBACK + REDUCED MOTION SAFETY
   ============================================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Native CSS Scroll-Driven Animations where fully supported */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .reveal-on-scroll {
    animation: fadeSlideUp auto linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 28%;
  }
}

/* Fallback class controlled by IntersectionObserver when scroll-timeline is unsupported */
@supports not ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }

  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MANDATORY Reduced-Motion Accessibility Override */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll,
  dialog.qr-dialog,
  .phone-chassis {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition-duration: 0.05s !important;
  }

  @starting-style {
    dialog.qr-dialog[open] {
      transform: none;
    }
  }
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .canon-layout,
  .final-cta-card {
    grid-template-columns: 1fr;
  }

  .hero-phone-column {
    order: 2;
  }

  .bento-card {
    grid-column: span 12;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .typology-arc-box {
    grid-template-columns: 1fr;
  }

  .typology-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .store-cta-cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge-btn,
  .qr-trigger-btn {
    justify-content: center;
  }
}
