/* Bible Glow — Marketing Site Styles
   Colors derived from iOS app: app-ios/.../Core/DesignSystem/Colors.swift
   Typography: Serif headings (Georgia), system sans-serif body */

/* ============================================
   Fonts
   ============================================ */

@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel-Variable.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

/* ============================================
   Design Tokens
   ============================================ */

:root {
  /* Light mode (default) — warm parchment */
  --bg: hsl(33, 35%, 85%);
  --bg-alt: hsl(33, 30%, 82%);
  --fg: hsl(25, 30%, 15%);
  --primary: hsl(25, 45%, 25%);
  --card: hsl(35, 35%, 89%);
  --muted: hsl(25, 20%, 45%);
  --border: hsl(33, 25%, 78%);
  --gold: hsl(38, 85%, 55%);
  --gold-soft: hsl(38, 60%, 90%);

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1080px;
  --max-width-text: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 69px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(25, 30%, 8%);
    --bg-alt: hsl(25, 30%, 12%);
    --fg: rgba(255, 255, 255, 0.9);
    --primary: hsl(38, 80%, 55%);
    --card: hsl(25, 30%, 12%);
    --muted: hsl(25, 15%, 65%);
    --border: hsl(25, 20%, 20%);
    --gold: hsl(38, 85%, 55%);
    --gold-soft: hsl(38, 40%, 18%);
  }
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-width-text);
}

/* ============================================
   Header / Nav
   ============================================ */

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-logo span {
  font-family: 'Cinzel', var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 4px;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* ============================================
   Hero Banner
   ============================================ */

.hero-banner {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 72px;
  background: hsl(25, 30%, 12%) url('images/hero-banner-20260217.png') left 28% / cover no-repeat;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-banner-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-banner .availability-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}



/* App Store Badge */
.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.8;
  text-decoration: none;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* Scroll Arrow */
.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s ease infinite;
  text-decoration: none;
}

.scroll-arrow:hover {
  color: #fff;
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: 64px 0;
  scroll-margin-top: var(--header-height);
}

.features h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
  color: var(--fg);
}

.features-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.6;
}


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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--fg);
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
  padding: 64px 0;
  background: var(--bg-alt);
  scroll-margin-top: var(--header-height);
}

.pricing h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--fg);
}

.pricing-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: auto 1fr auto auto;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.pricing-card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.pricing-card-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--fg);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
}

.pricing-price-unit {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-period {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  line-height: 1.5;
}

.pricing-features li strong {
  color: var(--fg);
}

.pricing-cta {
  text-align: center;
  align-self: end;
}

.pricing-btn {
  display: inline-block;
  min-width: 200px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pricing-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.pricing-btn--outline {
  color: var(--primary);
  border: 2px solid var(--border);
  background: transparent;
}

.pricing-btn--primary {
  color: hsl(25, 30%, 8%);
  background: var(--gold);
  border: 2px solid var(--gold);
}

.pricing-btn--disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.pricing-also {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.pricing-fine-print {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
}

/* ============================================
   About Section
   ============================================ */

.about {
  padding: 64px 0;
  text-align: center;
  scroll-margin-top: var(--header-height);
}

.about h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 16px;
}

.about p {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
}

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

.site-footer .copyright {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--fg);
}

.legal h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--fg);
}

.legal p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.legal ul, .legal ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--fg);
}

.legal a {
  color: var(--primary);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.legal th,
.legal td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal th {
  color: var(--fg);
  font-weight: 600;
}

.legal td {
  color: var(--muted);
}

/* ============================================
   Features Demo Page
   ============================================ */

.demo-hero {
  text-align: center;
  padding: 56px 0 48px;
}

.demo-hero h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--fg);
}

.demo-hero p {
  font-size: 18px;
  color: var(--muted);
}

.demo-section {
  padding: 64px 0;
  scroll-margin-top: var(--header-height);
}

.demo-section:nth-child(even) {
  background: var(--bg-alt);
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.demo-section--reversed .demo-row {
  flex-direction: row-reverse;
}

.demo-phone {
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  width: 220px;
  height: 476px;
  border-radius: 32px;
  border: 4px solid var(--fg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 14px;
  background: var(--fg);
  border-radius: 10px;
  z-index: 2;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-text {
  flex: 1;
  min-width: 0;
}

.demo-text h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--fg);
}

.demo-text p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}

/* CTA section at bottom of features page */
.demo-cta {
  text-align: center;
  padding: 64px 0;
}

.demo-cta h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--fg);
}

.demo-cta p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

.demo-cta .app-store-badge {
  margin: 0 auto 12px;
}

.demo-cta .availability-note {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .site-header .container {
    justify-content: center;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 24px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 0;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 24px;
    font-size: 16px;
  }

  .site-logo span {
    font-size: 16px;
  }

  .hero-banner {
    min-height: 70vh;
    padding-bottom: 56px;
    background-position: min(calc(50vw - 32.5vh), 0px) 20%;
  }

  .scroll-arrow {
    display: none;
  }

  .features {
    padding: 40px 0;
  }

  .features h2 {
    font-size: 28px;
  }

  .features-subtitle {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing {
    padding: 40px 0;
  }

  .pricing h2 {
    font-size: 26px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .demo-hero {
    padding: 40px 0 32px;
  }

  .demo-hero h1 {
    font-size: 28px;
  }

  .demo-section {
    padding: 40px 0;
  }

  .demo-row {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .demo-section--reversed .demo-row {
    flex-direction: column;
  }

  .phone-frame {
    width: 180px;
    height: 390px;
    border-radius: 26px;
  }

  .phone-notch {
    width: 40px;
    height: 12px;
  }

  .demo-text h2 {
    font-size: 26px;
  }

  .demo-text p {
    font-size: 16px;
    margin: 0 auto;
  }

  .demo-cta h2 {
    font-size: 26px;
  }

  .legal h1 {
    font-size: 28px;
  }

  .legal h2 {
    font-size: 20px;
  }

  .legal table {
    display: block;
    overflow-x: auto;
  }
}

/* ============================================
   Consent Banner
   ============================================ */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  display: none;
}

.consent-banner.visible {
  display: block;
}

.consent-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.consent-banner p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.consent-banner p a {
  color: var(--primary);
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.consent-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.consent-btn:hover {
  opacity: 0.85;
}

.consent-btn--accept {
  background: var(--gold);
  color: hsl(25, 30%, 8%);
}

.consent-btn--decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
