/* ==========================================================================
   Bible 365 — marketing site
   Palette and type mirror the App Store screenshot set: warm cream canvas,
   deep-purple display headings, gold accents, near-black device frames.
   ========================================================================== */

:root {
  --cream: #f8f2e4;
  --cream-soft: #fdf9f0;
  --cream-deep: #efe5d0;
  --ink: #241c43;
  --ink-soft: #55506e;
  --purple: #38286e;
  --purple-bright: #7c6fd3;
  --purple-ghost: rgba(124, 111, 211, 0.14);
  --gold: #b3821a;
  --gold-bright: #e2ac3c;
  --night: #15111e;
  --night-2: #201936;
  --line: rgba(36, 28, 67, 0.14);
  --radius: 24px;
  --shadow-card: 0 10px 30px -18px rgba(36, 28, 67, 0.35);
  --shadow-pop: 0 42px 90px -32px rgba(36, 28, 67, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--night); color: var(--cream); padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

/* --- Type ------------------------------------------------------------- */

h1, h2, h3 { color: var(--purple); letter-spacing: -0.03em; line-height: 1.08; }

h1 { font-size: clamp(2.55rem, 6.2vw, 4.15rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; }
h3 { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

.section { padding-block: 88px; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin: 16px auto 0; }

/* --- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 242, 228, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
  position: relative;
}

.nav-toggle, .nav-toggle-cb { display: none; }

.nav-brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 900; font-size: 1.14rem; letter-spacing: -0.02em;
  color: var(--purple); text-decoration: none;
}
.nav-brand:hover { color: var(--purple); }
.nav-brand img { width: 38px; height: 38px; border-radius: 9px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--night); color: var(--cream);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  padding: 10px 20px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--purple); color: var(--cream); transform: translateY(-1px); }

.nav-lang {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.nav-lang a {
  display: inline-flex; align-items: center;
  padding: 7px 13px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--ink-soft); text-decoration: none; line-height: 1;
}
.nav-lang a[aria-current="page"] { background: var(--purple); color: var(--cream); }
.nav-lang a:not([aria-current]):hover { color: var(--gold); }

/* --- Buttons & store badge ---------------------------------------------- */

.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 56px; width: auto; }
.store-badge:hover { opacity: 0.85; }
.store-badge.badge-lg img { height: 64px; }
.store-badge.badge-sm img { height: 44px; }

.btn-gold {
  display: inline-block;
  background: var(--gold-bright); color: var(--night);
  font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 15px 30px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 26px -14px rgba(179, 130, 26, 0.8);
}
.btn-gold:hover { transform: translateY(-2px); color: var(--night); }

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }

.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.hero-glow.g1 { width: 480px; height: 480px; top: -140px; right: 4%; background: rgba(124, 111, 211, 0.28); }
.hero-glow.g2 { width: 380px; height: 380px; bottom: -120px; left: -80px; background: rgba(226, 172, 60, 0.2); }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center;
}

.hero-copy .lead { margin: 22px 0 30px; }

.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.rating-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-size: 0.9rem; font-weight: 700; color: var(--ink);
}
.rating-chip .stars { color: var(--gold-bright); font-size: 1.05rem; letter-spacing: 2px; }
.rating-chip .from { color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; }

.hero-ticks {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  list-style: none;
}
.hero-ticks li::before { content: "✓  "; color: var(--gold); font-weight: 900; }

.hero-phone { display: flex; justify-content: center; }

/* --- Device frame --------------------------------------------------------- */

.phone {
  width: min(320px, 78vw);
  background: #0d0a14;
  border-radius: 54px;
  padding: 11px;
  box-shadow: var(--shadow-pop), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone img { border-radius: 44px; width: 100%; }
.phone.phone-sm { width: min(272px, 72vw); border-radius: 46px; }
.phone.phone-sm img { border-radius: 37px; }

/* --- Stats strip ----------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding: 34px 0 10px;
  text-align: center;
}
.stats div { border-right: 1px solid var(--line); padding: 6px 12px; }
.stats div:last-child { border-right: 0; }
.stats strong {
  display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 900; color: var(--gold); letter-spacing: -0.02em;
}
.stats span { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* --- Night bands (download / CTA) ------------------------------------------ */

.band {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 85% -20%, #453473 0%, var(--night-2) 45%, var(--night) 100%);
  border-radius: 34px;
  color: var(--cream);
  padding: 56px 54px;
}
.band h2 { color: var(--cream-soft); }
.band p { color: rgba(248, 242, 228, 0.78); }

.download-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center;
}
.download-brand { display: flex; gap: 22px; align-items: center; }
.download-brand img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.download-copy p { margin-top: 10px; max-width: 46ch; }
.download-action { text-align: center; }
.download-action .note { margin-top: 14px; font-size: 0.9rem; color: rgba(248, 242, 228, 0.62); }

/* --- Screenshot gallery ------------------------------------------------------ */

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 258px;
  gap: 22px; overflow-x: auto; padding: 8px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--purple-bright) transparent;
}
.gallery figure { scroll-snap-align: center; }
.gallery img {
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--cream-soft);
}
.gallery figcaption {
  margin-top: 12px; text-align: center;
  font-size: 0.92rem; font-weight: 700; color: var(--ink-soft);
}

/* --- Screenshots: staggered, no-scroll ---------------------------------------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding-top: 30px;
}
.shots .phone {
  width: 182px;
  border-radius: 34px;
  padding: 8px;
}
.shots .phone img { border-radius: 27px; }
.shots .phone:nth-child(even) { transform: translateY(34px); }

/* --- Stories: overlapping card deck -------------------------------------------- */

.stories { position: relative; overflow: hidden; }
.stories-glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  filter: blur(90px); background: rgba(124, 111, 211, 0.22);
  top: -180px; left: 50%; transform: translateX(-50%); pointer-events: none;
}

.stories-deck {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  padding: 26px 0;
}
.scard {
  position: relative;
  flex: 0 0 auto;
  width: 214px;
  margin-left: -52px;
  border-radius: 22px;
  overflow: hidden;
  background: #0d0a14;
  border: 3px solid #fff;
  box-shadow: 0 30px 60px -26px rgba(36, 28, 67, 0.62);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease;
  cursor: default;
}
.scard:first-child { margin-left: 0; }
.scard img { width: 100%; aspect-ratio: 586 / 1050; object-fit: cover; display: block; }
.scard .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 42px 16px 16px;
  background: linear-gradient(to top, rgba(10,8,14,0.94), rgba(10,8,14,0.55) 52%, transparent);
  color: #fff;
}
.scard .cap h3 { color: #fff; font-size: 0.96rem; line-height: 1.2; letter-spacing: -0.01em; }
.scard .cap p {
  font-size: 0.8rem; line-height: 1.35; color: rgba(255,255,255,0.85); margin-top: 7px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.stories-deck .scard:nth-child(odd)  { transform: rotate(-5deg) translateY(12px); }
.stories-deck .scard:nth-child(even) { transform: rotate(4deg) translateY(-14px); }
.scard:hover, .scard.featured {
  transform: translateY(-16px) rotate(0deg) scale(1.05) !important;
  z-index: 30;
  box-shadow: 0 44px 84px -22px rgba(36, 28, 67, 0.7);
}
.scard:hover .cap p, .scard.featured .cap p { max-height: 92px; opacity: 1; }

.stories-foot {
  display: flex; flex-wrap: wrap; gap: 22px 30px;
  align-items: center; justify-content: center;
  margin-top: 40px; text-align: center;
}
.stories-foot p { color: var(--ink-soft); font-weight: 600; max-width: 52ch; }

/* --- Prayer & devotional: immersive collage ------------------------------------ */

.prayer-deck {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  margin-top: 34px; padding: 26px 0;
}
.pcard {
  position: relative; flex: 0 0 auto;
  width: 208px; margin-left: -54px;
  border-radius: 30px; overflow: hidden;
  background: #0d0a14; border: 5px solid #0d0a14;
  box-shadow: 0 30px 60px -26px rgba(36, 28, 67, 0.62);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease;
}
.pcard:first-child { margin-left: 0; }
.pcard img { width: 100%; aspect-ratio: 603 / 1311; object-fit: cover; display: block; }
.prayer-deck .pcard:nth-child(odd)  { transform: rotate(-5deg) translateY(12px); }
.prayer-deck .pcard:nth-child(even) { transform: rotate(4deg) translateY(-14px); }
.pcard:hover, .pcard.featured {
  transform: translateY(-16px) rotate(0deg) scale(1.05) !important;
  z-index: 30; box-shadow: 0 44px 84px -22px rgba(36, 28, 67, 0.7);
}
@media (max-width: 960px) {
  .prayer-deck, .stories-deck { flex-wrap: wrap; gap: 16px; }
  .prayer-deck .pcard,
  .stories-deck .scard { margin-left: 0; transform: none !important; width: 30%; min-width: 148px; }
}
@media (max-width: 640px) {
  .prayer-deck .pcard,
  .stories-deck .scard { width: 44%; }
}

/* --- How it works ------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--purple); color: var(--cream);
  font-weight: 900; font-size: 1.15rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* --- Feature grid ---------------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature .glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--purple-ghost); color: var(--purple);
  margin-bottom: 16px;
}
.feature .glyph svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.feature a { font-weight: 700; font-size: 0.94rem; }

/* --- Guide cards -------------------------------------------------------------------- */

.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.guide-card .kicker {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold);
}
.guide-card h3 { font-size: 1.14rem; }
.guide-card p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }
.guide-card .more { font-weight: 800; font-size: 0.94rem; color: var(--purple); }
.guide-card:hover .more { color: var(--gold); }

/* --- FAQ -------------------------------------------------------------------------------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 18px 4px;
  font-weight: 800; font-size: 1.08rem; color: var(--purple);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 700; color: var(--gold);
  line-height: 1; flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-body { padding: 0 4px 22px; color: var(--ink-soft); }
.faq-list .faq-body a { font-weight: 700; }

/* --- Final CTA ------------------------------------------------------------------------------ */

.cta-band { text-align: center; padding: 72px 40px; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 20ch; margin: 0 auto; }
.cta-band p { max-width: 52ch; margin: 18px auto 34px; }
.cta-band .note { margin-top: 16px; font-size: 0.9rem; color: rgba(248, 242, 228, 0.62); }

/* --- Footer ------------------------------------------------------------------------------------ */

.footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  margin-top: 88px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--purple); font-size: 1.08rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-col p { color: var(--ink-soft); margin: 12px 0 18px; max-width: 30ch; }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.85rem;
}

/* --- Guide article pages -------------------------------------------------------------------------- */

.article-hero { padding-block: 56px 16px; }
.breadcrumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumbs a { color: var(--ink-soft); font-weight: 600; }
.breadcrumbs a:hover { color: var(--gold); }

.article-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
  align-items: start; padding-bottom: 40px;
}
.article h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 18px; }
.article .lead { margin-bottom: 26px; font-size: 1.14rem; }
.article h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.article h3 { margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: var(--ink); }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 10px; }
.article-side { position: sticky; top: 96px; }

.answer-box {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold-bright);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 6px 0 30px;
  font-size: 1.05rem;
}
.answer-box strong { color: var(--purple); }

.verse-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  margin: 0 0 18px;
}
.verse-card blockquote { font-size: 1.06rem; color: var(--ink); font-style: italic; }
.verse-card cite {
  display: block; margin-top: 12px;
  font-style: normal; font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}

.app-steps { counter-reset: appstep; list-style: none; margin-left: 0 !important; }
.app-steps li {
  counter-increment: appstep;
  position: relative; padding-left: 58px; margin-bottom: 18px;
}
.app-steps li::before {
  content: counter(appstep);
  position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple); color: var(--cream);
  font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.app-steps strong { color: var(--purple); }

.article-cta {
  margin: 40px 0;
  background: radial-gradient(120% 160% at 85% -20%, #453473 0%, var(--night-2) 45%, var(--night) 100%);
  border-radius: 24px; padding: 34px 34px;
  color: var(--cream);
}
.article-cta h2, .article-cta h3 { color: var(--cream-soft); margin: 0 0 10px; }
.article-cta p { color: rgba(248, 242, 228, 0.78); margin-bottom: 22px; }

.related { margin-top: 26px; }
.related h2 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* --- Responsive ---------------------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-inner, .download-grid, .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; display: flex; justify-content: center; }
  .steps, .features, .guides-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-phone { order: -1; }
  .download-action { text-align: left; }
}

@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; column-gap: 12px; }
  .nav-brand { flex-shrink: 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-left: auto; order: 2; cursor: pointer;
    color: var(--purple); border-radius: 10px;
  }
  .nav-toggle:hover { background: var(--purple-ghost); }
  .nav-cta { order: 3; }
  .nav-links {
    display: none; order: 5; flex-basis: 100%; width: 100%;
    flex-direction: column; gap: 0; margin-top: 6px; border-top: 1px solid var(--line);
  }
  .nav-lang { display: none; }
  .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .nav-toggle-cb:checked ~ .nav-lang { display: inline-flex; order: 6; flex-basis: 100%; margin-top: 10px; }
  .nav-links a { width: 100%; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .section { padding-block: 64px; }
  .steps, .features, .guides-grid, .related-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .band { padding: 42px 28px; }
  .hero { padding-top: 44px; }
  .hero-cta { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
