/* Luminverse website: a dark page in the logo's colours. Charcoal and near-black, warm cream text,
   gold for accents; Outfit for headings like the logo, EB Garamond for Scripture. */
:root {
  --bg: #121211;
  --bg-2: #1b1b19;
  --card: #1f1f1d;
  --ink: #f1efe8;
  --muted: #a9a69c;
  --faint: #6f6c64;
  --line: #2f2e2b;
  --gold: #ba7517;
  --rays: #ef9f27;
  --glow: rgba(239, 159, 39, 0.16);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Outfit', -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rays); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.logo-light { display: none; }

/* Top bar: hidden at first, it takes the logo once the opening animation hands it over. */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 68px;
  background: rgba(18, 18, 17, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.solid { border-bottom-color: var(--line); }
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .brand { display: block; opacity: 0; transition: opacity .25s; }
.topbar.has-logo .brand { opacity: 1; }
.topbar .brand img { height: 44px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 24px; font-size: 15px; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
.topbar.has-logo nav { opacity: 1; transform: none; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.topbar nav a:hover { color: var(--rays); }
@media (max-width: 680px) { .topbar nav .hide-small { display: none; } .topbar .brand img { height: 36px; } }

.button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #161514 !important;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--glow); }
.button.gold { background: linear-gradient(180deg, #f2ad3e, #d48a1f); color: #2a1a05 !important; }
.button.small { padding: 8px 16px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }

/* The opening: a tall section whose height is the length of the scroll that plays the animation. */
.intro { position: relative; height: 650vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #070706; }
/* Everything is placed inside this frame, which is the part of the screen that is always visible on a phone. */
.stage .frame { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; }


/* The three questions, which appear one after another in the dark */
.questions {
  position: absolute; inset: 0 0 12% 0; padding: 0 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4.5vh, 44px);
  text-align: center;
}
.questions p {
  margin: 0; max-width: 21ch; font-weight: 300; font-size: clamp(25px, 4.4vw, 46px); line-height: 1.2; letter-spacing: -0.3px;
  color: #cfccc2; opacity: 0; animation: ask 2.2s ease forwards; text-wrap: balance;
}
.questions p:nth-child(1) { animation-delay: .6s; }
.questions p:nth-child(2) { animation-delay: 2.7s; }
.questions p:nth-child(3) { animation-delay: 4.8s; max-width: 24ch; }
@keyframes ask { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* The answer, above the Book */
.claim { position: absolute; inset: 11% 0 auto 0; padding: 0 22px; text-align: center; pointer-events: none; }
.claim p { margin: 0; opacity: 0; }
.claim .c1 { font-size: 12.5px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--rays); margin-bottom: 14px; }
.claim .c2 { font-weight: 300; font-size: clamp(25px, 4vw, 46px); line-height: 1.14; letter-spacing: -0.5px; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.claim .c2 strong { font-weight: 600; background: linear-gradient(90deg, #f2ad3e, #ba7517); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* The Book and its light: a 3D scene drawn by scene.js */
.stage canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.questions, .claim, .scroll-hint { z-index: 1; }

.skip-intro {
  position: fixed; right: 20px; top: 22px; z-index: 25; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; letter-spacing: 1px; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  transition: opacity .3s, color .2s;
}
.skip-intro:hover { color: var(--ink); }
.skip-intro.gone { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .intro, .skip-intro { display: none; } }
#logo-anim { width: min(86vw, 760px); aspect-ratio: 2 / 1; transform-origin: 0 0; will-change: transform; position: relative; z-index: 1; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 6px; text-transform: uppercase; padding-left: 6px;
  text-shadow: 0 0 18px var(--glow);
}
.scroll-hint > span:first-child { animation: ask 1.6s ease 6.4s both; }
.scroll-hint .line { width: 2px; height: 56px; background: linear-gradient(var(--rays), transparent); opacity: 0; animation: fade-in 1.6s ease 6.4s forwards, drip 1.6s ease-in-out 6.4s infinite; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Content, which fades in as it comes into view */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* The first words about the app rise into the end of the opening, so there is no blank screen once the logo is at the top. */
.hero { position: relative; z-index: 2; margin-top: -60vh; padding: 120px 0 30px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .hero { margin-top: 0; } }
.hero.waiting { opacity: 0 !important; transform: translateY(28px) !important; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rays); margin: 0 0 14px; }
.hero h1 { font-weight: 300; font-size: clamp(38px, 6vw, 72px); line-height: 1.05; margin: 0 auto; max-width: 14ch; letter-spacing: -1px; }
.hero h1 strong { font-weight: 600; background: linear-gradient(90deg, #f2ad3e, #ba7517); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 42ch; margin: 22px auto 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.note { font-size: 14px; color: var(--faint); margin-top: 16px; }

.phones { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 26px; padding: 60px 0 30px; }
.phone {
  width: 250px; aspect-ratio: 1206 / 2622; border-radius: 42px; padding: 9px;
  background: linear-gradient(145deg, #3a3935, #0c0c0b);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px #2c2b28 inset;
}
.phone:nth-child(2) { width: 290px; box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 60px var(--glow); }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #161514; display: flex; flex-direction: column; }
.phone .status { position: relative; flex: none; height: 9%; display: flex; align-items: center; justify-content: space-between; padding: 0 10% 0 12%; color: #f1efe8; font-size: 12px; font-weight: 600; }
.phone .status i { position: absolute; left: 50%; top: 22%; width: 32%; height: 52%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.phone .status b { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid #f1efe8; position: relative; }
.phone .status b::after { content: ''; position: absolute; inset: 1.5px 3px 1.5px 1.5px; background: #f1efe8; border-radius: 1px; }
.phone .screen img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.phone .placeholder { text-align: center; color: var(--faint); font-size: 14px; }
.phone .placeholder img { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 16px; object-fit: contain; }
@media (max-width: 760px) { .phone { width: 200px; } .phone:nth-child(2) { width: 230px; } .phone:nth-child(1), .phone:nth-child(3) { display: none; } }

section { padding: 100px 0; }
h2 { font-weight: 300; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.5px; }
h2 strong { font-weight: 600; }
.section-lede { color: var(--muted); max-width: 54ch; margin: 0 0 44px; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature {
  background: linear-gradient(180deg, var(--card), #191917); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; transition: border-color .3s, transform .3s;
}
.feature:hover { border-color: #4a3b22; transform: translateY(-2px); }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; background: #2a2418; color: var(--rays); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { border-radius: 20px; padding: 30px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.plan::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; }
.plan:nth-child(10n+1) { background: #1f1d18; } .plan:nth-child(10n+1)::before { background: #c9a86a; }
.plan:nth-child(10n+2) { background: #241a18; } .plan:nth-child(10n+2)::before { background: #d9826f; }
.plan:nth-child(10n+3) { background: #182024; } .plan:nth-child(10n+3)::before { background: #7fa3b5; }
.plan:nth-child(10n+4) { background: #1c2019; } .plan:nth-child(10n+4)::before { background: #9bb27a; }
.plan:nth-child(10n+5) { background: #231d1a; } .plan:nth-child(10n+5)::before { background: #d9a066; }
.plan:nth-child(10n+6) { background: #1a1f24; } .plan:nth-child(10n+6)::before { background: #8aa6d6; }
.plan:nth-child(10n+7) { background: #20191f; } .plan:nth-child(10n+7)::before { background: #c68fb2; }
.plan:nth-child(10n+8) { background: #1b201d; } .plan:nth-child(10n+8)::before { background: #7fb59a; }
.plan:nth-child(10n+9) { background: #211e17; } .plan:nth-child(10n+9)::before { background: #d4b85c; }
.plan:nth-child(10n) { background: #1d1a24; } .plan:nth-child(10n)::before { background: #a394d6; }
.plan .meta { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); }
.plan h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.12; margin: 16px 0 12px; }
.plan p { margin: 0; color: var(--muted); font-size: 16px; }
.plan-group { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: 28px; margin: 44px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.plan-group span { font-family: 'Outfit', sans-serif; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }

.verse { padding: 130px 0; text-align: center; background: radial-gradient(50% 60% at 50% 50%, #1f1c16, var(--bg)); }
.verse blockquote { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.22; margin: 0 auto; max-width: 20ch; }
.verse cite { display: block; font-style: normal; color: var(--rays); margin-top: 22px; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }

.join { text-align: center; }
.join .section-lede { margin: 0 auto 32px; }

/* Plain pages (support) */
.page { max-width: 740px; margin: 0 auto; padding: 120px 22px 90px; }
.page h1 { font-weight: 300; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.5px; }
.page h2 { font-size: 24px; font-weight: 600; margin: 46px 0 6px; }
.page .lede { color: var(--muted); font-size: 18px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; float: right; color: var(--rays); font-weight: 300; font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p, details ul { color: var(--muted); margin: 12px 0 0; }
.contact { margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.topbar.static .brand, .topbar.static nav { opacity: 1; transform: none; }

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 52px; font-size: 14px; color: var(--faint); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-foot nav { display: flex; gap: 22px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--rays); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint .line { animation: none; }
}

/* Bible and Spirit of Prophecy, side by side */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.together .section-lede { margin-bottom: 18px; }
.pair { display: grid; gap: 14px; }
.pair-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.pair-card.ellen { margin-left: 34px; border-color: #3d321f; background: linear-gradient(180deg, #221e17, #1b1a17); }
.pair-card .meta { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); }
.pair-card p { font-family: 'EB Garamond', Georgia, serif; font-size: 22px; line-height: 1.45; margin: 12px 0 10px; }
.pair-card .red { color: #e0796f; }
.pair-card .ref { font-size: 14px; color: var(--rays); }

/* Make it yours */
.yours .phone.single { width: 300px; justify-self: center; box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 60px var(--glow); }
@media (max-width: 860px) { .yours .phone.single { width: 240px; display: block; order: 2; } }
.specs { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.specs li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.specs li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rays); box-shadow: 0 0 12px var(--rays); }
.specs strong { font-weight: 600; font-size: 18px; }
.specs span { color: var(--muted); font-size: 16px; }

.plan.coming { background: transparent; border-style: dashed; border-color: #4a3b22; }
.plan.coming::before { background: linear-gradient(90deg, #f2ad3e, #ba7517); }
.plan.coming h3 { color: var(--rays); }

/* While the opening plays the page stays put. */
html.opening, html.opening body { overflow: hidden; }

/* The official "Download on the App Store" badge */
.store-badge { display: inline-flex; align-items: center; line-height: 0; border-radius: 12px; transition: transform .15s ease, opacity .15s ease; }
.store-badge img { height: 56px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-1px); opacity: .92; }
.store-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* the line under the six featured plans */
.plans-more { margin: 28px auto 0; max-width: 46ch; text-align: center; font-size: 18px; color: var(--muted); }
/* six featured plans: three across on wide screens, so no row is left half empty */
@media (min-width: 900px) { #plans .plans { grid-template-columns: repeat(3, 1fr); } }
/* features: the list on one side, a phone showing each one on the other */
#features .features { grid-template-columns: 1fr; gap: 10px; }
#features .feature { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: default; }
#features .feature:hover { transform: none; }
#features .feature .icon { flex: none; margin: 0; width: 44px; height: 44px; }
#features .feature h3 { font-size: 17px; margin: 0 0 3px; }
#features .feature p { font-size: 15px; line-height: 1.4; }
.tour-phone { display: none; }
@media (min-width: 900px) {
  .tour { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
  #features .feature { opacity: .45; transition: opacity .35s, border-color .35s, background .35s; }
  #features .feature.active { opacity: 1; border-color: #4a3b22; background: linear-gradient(180deg, #24211b, #1b1a17); }
  #features .features { padding-bottom: 300px; }
  .tour-phone { display: block; position: sticky; top: max(84px, calc(50vh - 326px)); }
  .tour-phone .phone { width: 300px; box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 60px var(--glow); }
  .tour-phone .shots { position: relative; flex: 1; min-height: 0; }
  .tour-phone .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s ease; }
  .tour-phone .shots img.on { opacity: 1; }
}
/* hero: a quiet link under the store badges */
.inside-link { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.inside-link span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.inside-link:hover { color: var(--ink); }
.inside-link:hover span { transform: translateY(3px); }
