/* =========================================================================
   Bible Captions — landing page
   Brand system per spec: deep warm-black + a single gold light.
   ========================================================================= */

:root {
  /* Color */
  --bg:        #0F1013;  /* page background (warm near-black) */
  --band:      #0B0C0E;  /* deep section band */
  --intro:     #07080A;  /* cinematic intro screen */
  --gold:      #E8C66B;  /* gold accent (active word, CTAs, rules) */
  --gold-hi:   #F0D488;  /* gold hover */
  --ink:       #F3EFE6;  /* headings / bright ink */
  --body:      #B8B4AC;  /* body text on dark */
  --muted:     #8F8C85;  /* muted / secondary */

  --hair:      rgba(243, 239, 230, 0.10);  /* hairline rules */
  --hair-soft: rgba(243, 239, 230, 0.06);

  /* Type */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* Layout */
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 40px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------- Reset -------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.scroll-lock, body.scroll-lock { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.num { font-family: var(--serif); font-weight: 400; }
.gold { color: var(--gold); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #111; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================ CINEMATIC INTRO ============================ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  background: var(--intro);
  padding: var(--gutter);
  text-align: center;
  cursor: pointer;
}
html.intro-on .intro { display: grid; }
.intro.is-open { display: grid; }        /* keeps the overlay mounted through its fade */
.intro.is-hiding { animation: introOut 1.1s var(--ease) forwards; }

.intro__inner {
  max-width: 820px;
  display: grid;
  place-items: center;
  gap: 8px;
}

.intro__verse {
  font-size: clamp(1.5rem, 4.6vw, 2.75rem);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--muted);
  min-height: 1.4em;
}
.intro__verse .w {
  display: inline-block;
  opacity: 0;
  color: rgba(243, 239, 230, 0.72);
  transform: translateY(14px);
  filter: blur(8px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease), color .5s var(--ease);
}
.intro__verse .w.show { opacity: 1; transform: none; filter: blur(0); }
.intro__verse .w.active {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(232, 198, 107, 0.55);
}

.intro__ref {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  text-shadow: 0 0 30px rgba(232, 198, 107, 0.35);
}
.intro.show-ref .intro__verse { opacity: 0; transition: opacity .6s var(--ease); }
.intro.show-ref .intro__ref { opacity: 1; transform: none; }

.intro__skip {
  position: fixed; top: 22px; right: 22px;
  background: rgba(243, 239, 230, 0.06);
  border: 1px solid var(--hair);
  color: var(--body);
  font: 600 13px var(--sans);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.intro__skip:hover { background: rgba(243, 239, 230, 0.12); color: var(--ink); }
.intro__hint {
  position: fixed; bottom: 26px; left: 0; right: 0;
  text-align: center; color: var(--muted);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: .7;
}

@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ================================ TOP BAR ================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 16, 19, 0.62);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--hair); background: rgba(11, 12, 14, 0.78); }
.topbar__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--hair); }
.brand__word {
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 17px;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  color: var(--body); font-weight: 500; font-size: 14.5px;
  padding: 9px 12px; border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(243, 239, 230, 0.05); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--gold {
  background: var(--gold); color: #17130a;
  padding: 10px 20px; font-size: 14.5px; letter-spacing: -0.01em;
  box-shadow: 0 6px 22px rgba(232, 198, 107, 0.18);
}
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(232, 198, 107, 0.28); }
.nav__cta { margin-left: 6px; }

/* ================================= HERO ================================= */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; z-index: 0;
  top: -12%; right: -8%;
  width: min(760px, 82vw); aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(232, 198, 107, 0.16), rgba(232, 198, 107, 0) 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 104px);
}
.hero__title {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  line-height: 1.03; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__title .gold { text-shadow: 0 0 34px rgba(232, 198, 107, 0.4); }
.hero__sub {
  margin-top: 22px; max-width: 30em;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--body);
}
.hero__actions {
  margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

/* App Store badge — original placeholder art (Apple's badge is trademarked). */
.app-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: var(--ink);
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: 14px; padding: 10px 20px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.app-badge:hover { transform: translateY(-1px); border-color: rgba(232, 198, 107, 0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.app-badge__glyph { color: var(--gold); flex: none; }
.app-badge__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.app-badge__pre { font-size: 11px; letter-spacing: 0.02em; color: var(--body); }
.app-badge__store { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.app-badge--lg { padding: 13px 26px; }
.app-badge--lg .app-badge__store { font-size: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(243, 239, 230, 0.04);
  border: 1px solid var(--hair);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.chip__num { color: var(--ink); font-weight: 700; }
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 198, 107, 0.8);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ------------------------------- Phone --------------------------------- */
.hero__device { display: grid; place-items: center; }
.phone {
  position: relative;
  width: clamp(258px, 30vw, 312px);
  animation: float 6.5s var(--ease) infinite;
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; inset: -14% -10% -18%;
  background: radial-gradient(circle at 50% 42%, rgba(232, 198, 107, 0.22), rgba(232, 198, 107, 0) 66%);
  z-index: -1; filter: blur(6px);
}
.phone__frame {
  position: relative;
  background: linear-gradient(160deg, #26262b, #17181b 42%, #0d0e11);
  border-radius: 46px; padding: 10px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 40px 80px -30px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.04);
}
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}
.phone__screen {
  position: relative;
  background: var(--intro);
  border-radius: 38px; overflow: hidden;
  aspect-ratio: 9 / 19.3;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6) inset;
}

/* Reading screen (the live app UI) */
.reader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 58px 22px 26px;
}
.reader__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--hair-soft);
}
.reader__nav {
  background: none; border: 0; padding: 0; cursor: default;
  display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink);
}
.reader__book { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.reader__ref { font-family: var(--serif); font-size: 15px; color: var(--gold); }
.reader__aa {
  display: inline-grid; place-items: center;
  width: 34px; height: 26px; border-radius: 8px;
  border: 1px solid var(--hair); color: var(--body);
  font-size: 13px; font-weight: 600;
}
.reader__verse {
  flex: 1; display: flex; align-items: center; flex-wrap: wrap;
  align-content: center; gap: 0.32em 0;
  margin: 0; padding: 18px 0;
  font-size: 17px; line-height: 1.68; font-weight: 500;
  color: rgba(184, 180, 172, 0.32);
}
.reader__verse .rw {
  display: inline-block; margin-right: 0.30em;
  transition: color .45s var(--ease), text-shadow .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease);
}
.reader__verse .rw.read { color: rgba(243, 239, 230, 0.62); }
.reader__verse .rw.active {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 198, 107, 0.6);
  transform: translateY(-1px);
}
.reader__meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--hair-soft);
}
.reader__count { display: flex; flex-direction: column; line-height: 1; }
.reader__count-num { font-size: 30px; color: var(--ink); letter-spacing: 0.01em; }
.reader__count-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 6px; }
.reader__actions { display: flex; gap: 8px; }
.reader__act {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hair); color: var(--body);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.reader__act.pop { color: var(--gold); border-color: rgba(232, 198, 107, 0.5); background: rgba(232, 198, 107, 0.08); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-16px) rotate(0.6deg); }
}

/* Rise-in for hero copy */
.rise { opacity: 0; transform: translateY(22px); }
html:not(.intro-on) .rise,
.reveal-ready .rise {
  animation: riseIn .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* =============================== FEATURES =============================== */
.features { padding: clamp(20px, 5vw, 40px) 0 clamp(48px, 8vw, 88px); }
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 18px; overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.4vw, 30px);
  min-height: 200px; display: flex; flex-direction: column;
}
.feature__idx { font-size: 22px; color: var(--gold); opacity: .85; }
.feature__title { margin-top: 20px; font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.feature__body { margin-top: 10px; font-size: 0.98rem; color: var(--body); line-height: 1.55; }

/* ================================ VOICES ================================ */
.voices { background: var(--band); border-block: 1px solid var(--hair); }
.voices__inner {
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  max-width: 900px; text-align: center; position: relative;
}
.voices__mark {
  display: block; font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 6.5rem); line-height: 0.6; color: var(--gold);
  opacity: 0.4; height: 0.5em;
}
.voices__quote {
  margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.34; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.voices__quote .gold { text-shadow: 0 0 26px rgba(232, 198, 107, 0.35); }
.voices__by {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-weight: 600; letter-spacing: 0.02em;
}
.voices__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ============================== DOWNLOAD CTA ============================= */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(232, 198, 107, 0.18), rgba(232, 198, 107, 0) 70%);
}
.cta__inner {
  position: relative; z-index: 1;
  padding: clamp(72px, 11vw, 140px) var(--gutter);
  display: grid; place-items: center; gap: 8px;
}
.cta__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.cta__sub { color: var(--body); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.cta .app-badge { margin-top: 26px; }

/* ================================= FOOTER ================================= */
.footer { border-top: 1px solid var(--hair); background: var(--band); }
.footer__inner {
  padding: clamp(44px, 6vw, 72px) var(--gutter) 34px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.wordmark { display: inline-flex; flex-direction: column; line-height: 0.98; font-weight: 800; letter-spacing: 0.02em; }
.wordmark__a { color: var(--ink); font-size: 22px; }
.wordmark__b { color: var(--gold); font-size: 22px; text-shadow: 0 0 20px rgba(232, 198, 107, 0.35); }
.footer__tag { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__head { color: var(--muted); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.footer__link { color: var(--body); font-size: 15px; transition: color .2s var(--ease); }
.footer__link:hover { color: var(--gold); }
.footer__base {
  padding: 20px var(--gutter) 30px;
  border-top: 1px solid var(--hair-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}
.footer__base-tag { color: var(--muted); opacity: .7; }
.footer__cols { display: flex; gap: clamp(36px, 7vw, 84px); flex-wrap: wrap; }

/* Bigger pill for prominent actions */
.btn--lg { padding: 15px 28px; font-size: 16px; gap: 10px; }

/* ================================ CONTACT ================================ */
.contact {
  max-width: 720px; text-align: center; position: relative;
  padding: clamp(64px, 10vw, 128px) var(--gutter) clamp(72px, 11vw, 136px);
}
.contact__lead {
  margin: 18px auto 0; max-width: 42ch;
  color: var(--body); font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.6;
}
.contact__btn { margin-top: 36px; }
.contact__glyph { color: #17130a; }
.contact__alt { margin-top: 30px; color: var(--muted); font-size: 14.5px; }
.contact__alt a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.contact__alt a:hover { color: var(--gold-hi); }

/* ===================== LEGAL / SIMPLE CONTENT PAGES ===================== */
.page {
  max-width: 760px;
  padding: clamp(52px, 9vw, 104px) var(--gutter) clamp(60px, 10vw, 120px);
}
.page__glow {
  position: absolute; top: -6%; left: 50%; transform: translateX(-50%);
  width: min(720px, 90vw); aspect-ratio: 2 / 1; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(232, 198, 107, 0.10), rgba(232, 198, 107, 0) 66%);
}
.page__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.page__title {
  margin-top: 12px; font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.page__updated { margin-top: 14px; color: var(--muted); font-size: 14px; }
.page__rule { height: 3px; width: 56px; background: var(--gold); border-radius: 2px; margin: 26px 0 34px; }
.page__note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(232, 198, 107, 0.06);
  border: 1px solid rgba(232, 198, 107, 0.22);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 34px;
  color: var(--body); font-size: 14.5px; line-height: 1.55;
}
.page__note b { color: var(--ink); }
.page h2 {
  margin: 38px 0 12px; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink);
}
.page h3 {
  margin: 26px 0 8px; font-size: 1.06rem; font-weight: 700;
  letter-spacing: -0.005em; color: var(--ink);
}
.page p, .page li { color: var(--body); font-size: 1rem; line-height: 1.7; }
.page p + p { margin-top: 14px; }
.page ul { margin: 12px 0; padding-left: 22px; }
.page li { margin: 8px 0; }
.page a.inline { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.page__back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 44px;
  color: var(--body); font-weight: 600; font-size: 14.5px;
}
.page__back:hover { color: var(--gold); }

/* 404 */
.notfound {
  min-height: 72vh; display: grid; place-items: center; text-align: center;
  padding: 80px var(--gutter); position: relative;
}
.notfound__code { font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--gold); line-height: 1; text-shadow: 0 0 40px rgba(232, 198, 107, 0.3); }
.notfound__msg { margin-top: 12px; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.notfound__sub { margin-top: 10px; color: var(--muted); }

/* =============================== RESPONSIVE =============================== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__device { order: 1; margin-bottom: 8px; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature { min-height: 0; }
}
@media (max-width: 620px) {
  .nav__link { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .footer__inner { gap: 28px; }
  .brand__word { display: none; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none !important; }
  .phone { animation: none; }
  .chip__dot { animation: none; }
  .rise { opacity: 1; transform: none; animation: none; }
  .intro__verse .w { transition: none; }
  .reader__verse .rw { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
