/**
 * Bible Stories: Cinematic — marketing landing (Faith AI funnel layout, cream theme).
 */

:root {
  --bsc-m-cream: #faf6f0;
  --bsc-m-cream-2: #f4edde;
  --bsc-m-bg: #f5efe3;
  --bsc-m-card: #faf5e8;
  --bsc-m-text: #2a1f15;
  --bsc-m-text-soft: #6b5a48;
  --bsc-m-text-muted: #9b8b78;
  --bsc-m-gold: #c4973a;
  --bsc-m-gold-light: #e5c57c;
  --bsc-m-gold-deep: #a87e26;
  --bsc-m-brown: #4a3d29;
  --bsc-m-green: #3dce6a;
  --bsc-m-shadow-sm: 0 1px 3px rgba(42, 31, 21, 0.08);
  --bsc-m-shadow-md: 0 4px 12px rgba(42, 31, 21, 0.1);
  --bsc-m-shadow-gold: 0 6px 20px rgba(196, 151, 58, 0.35);
  --bsc-m-sticky-h: 84px;
}

.bsc-marketing-shell {
  background: #e8dfcb;
}

.bsc-marketing-shell .bsc-marketing-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bsc-m-cream);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  color: var(--bsc-m-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Sticky header */
.bsc-marketing-page .sticky-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bsc-m-sticky-h);
  background: var(--bsc-m-cream);
  border-bottom: 1px solid rgba(42, 31, 21, 0.06);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bsc-marketing-page .sb-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: var(--bsc-m-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsc-marketing-page .sb-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsc-marketing-page .sb-icon span {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5eddc;
  padding: 5px;
}

.bsc-marketing-page .sb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.bsc-marketing-page .sb-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bsc-m-text);
  letter-spacing: -0.01em;
}

.bsc-marketing-page .sb-stars {
  font-size: 12px;
  color: var(--bsc-m-text-soft);
  line-height: 1.2;
}

.bsc-marketing-page .sb-stars em {
  color: #f5a623;
  font-style: normal;
  letter-spacing: 0.05em;
}

.bsc-marketing-page .cta-pill,
.bsc-marketing-page .cta-big {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--bsc-m-gold-light) 0%, var(--bsc-m-gold) 100%);
  color: #1a1408;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: var(--bsc-m-shadow-gold);
  white-space: nowrap;
  animation: bsc-m-pulse 2.5s ease-in-out infinite;
  transition: transform 0.15s ease;
  letter-spacing: 0.01em;
}

.bsc-marketing-page .cta-big {
  display: block;
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  padding: 20px 24px;
  margin-bottom: 18px;
  color: #fff;
}

.bsc-marketing-page .cta-pill:active,
.bsc-marketing-page .cta-big:active {
  transform: scale(0.96);
}

.bsc-marketing-page .cta-pill.checkout-wait,
.bsc-marketing-page .cta-big.checkout-wait {
  opacity: 0.72;
  cursor: wait;
}

.bsc-marketing-page .cta-pill:disabled,
.bsc-marketing-page .cta-big:disabled {
  opacity: 0.72;
  cursor: wait;
}

@keyframes bsc-m-pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(196, 151, 58, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 28px rgba(196, 151, 58, 0.55);
    transform: scale(1.02);
  }
}

.bsc-marketing-page .landing-payment-error {
  margin: 0 16px 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #8b3a2a;
  background: rgba(201, 123, 92, 0.12);
  border: 1px solid rgba(201, 123, 92, 0.35);
  border-radius: 10px;
}

.bsc-marketing-page .landing-payment-error[hidden] {
  display: none !important;
}

/* Hero — full viewport below sticky bar, large spacer under dots */
.bsc-marketing-page .hero {
  height: calc(100svh - var(--bsc-m-sticky-h));
  min-height: 520px;
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, var(--bsc-m-cream) 0%, var(--bsc-m-cream-2) 100%);
  overflow: hidden;
}

.bsc-marketing-page .carousel-wrap {
  width: 100%;
  overflow: hidden;
  flex: 0 0 auto;
}

.bsc-marketing-page .carousel {
  display: flex;
  gap: 14px;
  padding: 0 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bsc-marketing-page .carousel::-webkit-scrollbar {
  display: none;
}

.bsc-marketing-page .slide {
  flex: 0 0 auto;
  height: 62svh;
  max-height: 560px;
  min-height: 380px;
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0a0a;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-shadow: 0 12px 40px rgba(42, 31, 21, 0.18);
}

.bsc-marketing-page .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bsc-marketing-page .dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex: 0 0 auto;
}

.bsc-marketing-page .hero-spacer {
  flex: 1 1 auto;
  min-height: 48px;
}

.bsc-marketing-page .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(42, 31, 21, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bsc-marketing-page .dot.active {
  width: 20px;
  background: var(--bsc-m-gold);
  border-radius: 3px;
}

/* Trial / legal */
.bsc-marketing-page .trial {
  padding: 36px 24px 28px;
  background: var(--bsc-m-cream);
}

.bsc-marketing-page .consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}

.bsc-marketing-page .checkbox {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--bsc-m-gold);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.bsc-marketing-page .checkbox svg {
  width: 14px;
  height: 14px;
  stroke: var(--bsc-m-gold);
  stroke-width: 3;
  fill: none;
  opacity: 1;
}

.bsc-marketing-page .consent-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bsc-m-text);
}

.bsc-marketing-page .consent-text a {
  color: var(--bsc-m-gold-deep);
  font-weight: 600;
}

.bsc-marketing-page .trial-info {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bsc-m-text-soft);
}

.bsc-marketing-page .trial-info a {
  color: var(--bsc-m-gold-deep);
}

/* Ratings */
.bsc-marketing-page .ratings {
  padding: 8px 24px 32px;
  background: var(--bsc-m-cream);
}

.bsc-marketing-page .ratings-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.bsc-marketing-page .ratings-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bsc-m-text);
}

.bsc-marketing-page .appstore-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1fa2fe 0%, #0066d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bsc-marketing-page .appstore-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.bsc-marketing-page .rating-card {
  background: var(--bsc-m-card);
  border: 2px solid var(--bsc-m-gold);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 14px;
}

.bsc-marketing-page .rating-score .num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bsc-marketing-page .reviews-pill {
  background: var(--bsc-m-gold);
  color: #1a1612;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 16px;
  white-space: nowrap;
  margin-top: 10px;
}

.bsc-marketing-page .barchart {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bsc-marketing-page .bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bsc-marketing-page .bar-row .label {
  flex: 0 0 28px;
  font-weight: 700;
  color: var(--bsc-m-gold);
}

.bsc-marketing-page .bar-row .star {
  color: var(--bsc-m-gold);
  font-size: 10px;
}

.bsc-marketing-page .bar-track {
  flex: 1;
  height: 6px;
  background: rgba(26, 22, 18, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bsc-marketing-page .bar-fill {
  height: 100%;
  background: var(--bsc-m-green);
  border-radius: 3px;
}

.bsc-marketing-page .review {
  background: var(--bsc-m-card);
  border: 1px solid rgba(42, 31, 21, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.bsc-marketing-page .review-stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.bsc-marketing-page .review-author {
  font-size: 14px;
  color: var(--bsc-m-text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.bsc-marketing-page .review-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bsc-m-text);
}

/* Bottom CTA */
.bsc-marketing-page .bottom-cta {
  padding: 48px 28px 56px;
  text-align: center;
  background: var(--bsc-m-cream);
}

.bsc-marketing-page .cta-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  line-height: 1.32;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 8px;
}

.bsc-marketing-page .cta-ref {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--bsc-m-gold-deep);
  font-weight: 500;
  margin-bottom: 18px;
}

.bsc-marketing-page .cta-sub {
  font-size: 15px;
  color: var(--bsc-m-text-soft);
  margin-bottom: 28px;
  line-height: 1.5;
}

.bsc-marketing-page .cta-fineprint {
  font-size: 12px;
  color: var(--bsc-m-text-muted);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto;
}

/* Footer */
.bsc-marketing-page footer.bsc-m-footer {
  background: var(--bsc-m-brown);
  border-radius: 24px 24px 0 0;
  padding: 36px 28px 40px;
  color: #f5efe3;
}

.bsc-marketing-page .f-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.bsc-marketing-page .f-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.bsc-marketing-page .f-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsc-marketing-page .f-icon span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  color: #f5eddc;
  text-align: center;
  line-height: 1.05;
  padding: 5px;
}

.bsc-marketing-page .f-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.bsc-marketing-page .f-tagline {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 239, 227, 0.85);
  margin-bottom: 28px;
}

.bsc-marketing-page .f-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.bsc-marketing-page .f-row,
.bsc-marketing-page .f-legal a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #f5efe3;
  text-decoration: none;
  font-size: 15px;
}

.bsc-marketing-page .f-fine {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(245, 239, 227, 0.55);
  line-height: 1.65;
}

/* Payment processing overlay (Apple Pay → API) */
.bsc-payment-processing {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 3, 28, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bsc-payment-processing[hidden] {
  display: none !important;
}

.bsc-payment-processing-inner {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 28px 22px;
  border-radius: 20px;
  background: #141b24;
  border: 1px solid rgba(245, 166, 35, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.bsc-payment-processing-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.bsc-payment-processing-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsc-payment-processing-title {
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.bsc-payment-processing-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.bsc-payment-processing-inner::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin: 18px auto 0;
  border: 2px solid rgba(245, 166, 35, 0.25);
  border-top-color: #f5a623;
  border-radius: 50%;
  animation: bsc-pay-spin 0.75s linear infinite;
}

@keyframes bsc-pay-spin {
  to {
    transform: rotate(360deg);
  }
}

body.bsc-payment-busy {
  overflow: hidden;
}

/* Thanks — same flow as quiz funnel */
body.bsc-thanks-active {
  background: #0d1117;
}

.bsc-marketing-shell #screen-thanks {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0d1117;
  overflow-y: auto;
  max-width: 480px;
  margin: 0 auto;
  animation: bsc-m-thanks-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsc-marketing-shell #screen-thanks.active {
  display: block;
}

.bsc-thanks-active .bsc-marketing-page {
  visibility: hidden;
}

@keyframes bsc-m-thanks-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bsc-marketing-shell #screen-thanks .intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 28px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 166, 35, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
    #0d1117;
  color: #e8e3d6;
  font-family: 'Inter', sans-serif;
}

.bsc-marketing-shell #screen-thanks .intro-icon {
  width: 96px;
  height: 96px;
  margin: 8px auto 28px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(245, 166, 35, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.2);
}

.bsc-marketing-shell #screen-thanks .intro-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bsc-marketing-shell #screen-thanks .intro-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f5a623;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

.bsc-marketing-shell #screen-thanks .intro-title {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 40px;
  line-height: 1.08;
  color: #f5efe3;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.bsc-marketing-shell #screen-thanks .intro-title em {
  font-style: italic;
  color: #e8c77e;
  font-weight: 400;
}

.bsc-marketing-shell #screen-thanks .intro-sub {
  font-size: 16px;
  color: #9b9385;
  text-align: center;
  max-width: 340px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.bsc-marketing-shell #screen-thanks .thanks-open-app {
  display: none;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5a623 0%, #d4891a 100%);
  color: #1a1408;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.28);
}

.bsc-marketing-shell #screen-thanks .thanks-link-fallback {
  display: none;
  margin-top: 14px;
  font-size: 13px;
  color: #9b9385;
  text-align: center;
  line-height: 1.5;
}

.bsc-marketing-shell #screen-thanks .thanks-link-fallback a {
  color: #e8c77e;
}

.bsc-marketing-shell #screen-thanks .intro-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.bsc-marketing-shell #screen-thanks .intro-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #141b24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.bsc-marketing-shell #screen-thanks .intro-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(245, 166, 35, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5a623;
  font-weight: 700;
  font-size: 14px;
}

.bsc-marketing-shell #screen-thanks .intro-feature-text strong {
  display: block;
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.bsc-marketing-shell #screen-thanks .intro-feature-text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
