@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #FF6B35;
  --primary-hover: #E85A26;
  --secondary: #FFD700;
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --text: #2D1B00;
  --text-sub: #8B6914;
  --border: #F0D9A8;
  --highlight: #FFF176;
  --header-bg: #FF6B35;
  --header-text: #FFFFFF;
  --shadow: rgba(139, 105, 20, 0.12);
  --font-devanagari: 'Noto Sans Devanagari', sans-serif;
  --font-latin: 'Poppins', sans-serif;
}

[data-theme="dark"] {
  --primary: #FFB347;
  --primary-hover: #FFA024;
  --secondary: #FFD700;
  --bg: #1A0A00;
  --surface: #2D1B00;
  --card: #2D1B00;
  --text: #FFF8F0;
  --text-sub: #F0D9A8;
  --border: #4A3200;
  --highlight: #5D4037;
  --header-bg: #2D1B00;
  --header-text: #FFB347;
  --shadow: rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-devanagari);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
}

/* Header */
.app-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px var(--shadow);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
}

.om-icon {
  font-size: 30px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  opacity: 0.9;
  font-family: var(--font-latin);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle, .lang-select {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

/* Container */
.main-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 80px 16px;
  flex: 1;
}

/* Search Bar */
.search-container {
  position: relative;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background-color: var(--card);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-devanagari);
  box-shadow: 0 2px 8px var(--shadow);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-sub);
}

/* Category Grid Tiles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.category-tile {
  border-radius: 16px;
  padding: 20px 16px;
  color: #FFFFFF;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.tile-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.tile-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.tile-name {
  font-size: 18px;
  font-weight: 800;
}

.tile-sub {
  font-size: 12px;
  opacity: 0.85;
  font-family: var(--font-latin);
}

/* Category Filter Chips */
.chips-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Content Cards List */
.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--shadow);
}

.item-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.item-info p {
  font-size: 12px;
  color: var(--text-sub);
  font-family: var(--font-latin);
}

.item-arrow {
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
}

/* Detail View Modal / Screen */
.detail-view {
  display: block;
}

/* The reader toggles views with the `hidden` attribute, so it must win over
   any element's own display rule. */
[hidden] {
  display: none !important;
}

.back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
}

.detail-header {
  text-align: center;
  margin-bottom: 20px;
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.detail-sub {
  font-size: 14px;
  color: var(--text-sub);
}

/* Audio Player Web Bar */
.audio-player-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.verse-text-container {
  font-size: 19px;
  line-height: 1.8;
  text-align: center;
  margin-top: 16px;
}

.verse-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: background-color 0.2s;
}

.verse-item.speaking {
  background-color: var(--highlight);
  font-weight: 600;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Firebase Auth UI */
.auth-container {
  display: flex;
  align-items: center;
}

.google-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-login-btn:hover {
  background: var(--highlight);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}



/* ── Additions for the rebuilt reader and the legal pages ─────────────── */

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-logo { border-radius: 10px; flex-shrink: 0; }

/* Read-only site: a pointer to the app instead of a sign-in control. */
.app-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.promo-logo { border-radius: 10px; flex-shrink: 0; }
.promo-text { flex: 1 1 240px; font-size: 14px; line-height: 1.5; color: var(--text-sub); }
.promo-btn {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 24px;
  white-space: nowrap;
}
.promo-btn:hover { background: var(--primary-hover); }

.result-count { font-size: 13px; color: var(--text-sub); margin: 14px 2px 8px; }

.category-tile {
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
  border: none;
  cursor: pointer;
  font: inherit;
  color: #fff;
  text-align: left;
}
.category-tile.wide { grid-column: 1 / -1; }
.tile-name { font-size: 17px; font-weight: 700; display: block; }

.content-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
}
.content-item:hover { border-color: var(--primary); }
.item-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
}
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-title { font-size: 14px; font-weight: 600; }
.item-god { font-size: 11px; color: var(--text-sub); }
.item-arrow { color: var(--text-sub); font-size: 20px; }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-body { font-size: 13px; color: var(--text-sub); }

.detail-meta {
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}
.meta-row { display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 12px; font-weight: 700; color: var(--primary); }
.meta-value { font-size: 13px; line-height: 1.55; }

.audio-label { font-size: 13px; opacity: 0.85; }

.verse-item {
  text-align: center;
  line-height: 1.9;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 4px 0;
  transition: background-color 0.25s;
}
.verse-item.speaking { background: var(--highlight); color: #2D1B00; }

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

/* ── Legal / informational pages ──────────────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  line-height: 1.7;
}
.legal-page h1 { font-size: 26px; margin-bottom: 6px; }
.legal-page .updated { font-size: 13px; color: var(--text-sub); margin-bottom: 26px; }
.legal-page h2 {
  font-size: 18px;
  margin: 30px 0 10px;
  color: var(--primary);
}
.legal-page h3 {
  font-size: 16px;
  margin: 22px 0 8px;
  color: var(--text);
}
.legal-page p, .legal-page li { font-size: 15px; margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--primary); }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}
.legal-page th, .legal-page td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
.legal-page th { background: color-mix(in srgb, var(--primary) 10%, transparent); font-weight: 700; }
.callout {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}
.callout strong { display: block; margin-bottom: 4px; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 620px) {
  .app-header { padding: 10px 14px; gap: 10px; }
  .brand-title { font-size: 16px; }
  /* The five-category tagline cannot wrap gracefully in a phone-width header,
     and the page repeats it in the tiles anyway. */
  .brand-subtitle { display: none; }
  .brand-logo { width: 34px; height: 34px; }
  .header-actions { gap: 8px; flex-shrink: 0; }
  .theme-toggle, .lang-select { padding: 6px 10px; font-size: 12px; }

  .app-promo {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* Without this the text's flex-basis stretches the card into a tall gap. */
  .promo-text { flex: 0 1 auto; }
  .promo-logo { width: 40px; height: 40px; }
  .promo-btn { width: 100%; text-align: center; }

  .legal-page { padding: 22px 16px 44px; }
  .legal-page h1 { font-size: 22px; }
  /* Tables cannot shrink below their content, so let them scroll instead of
     forcing the whole page to scroll sideways. */
  .legal-page table { display: block; overflow-x: auto; white-space: nowrap; }
  .legal-page td, .legal-page th { white-space: normal; min-width: 130px; }
}

/* ── Landing page ─────────────────────────────────────────────────────────
   Hindu Bhakti Sangrah official landing website
   Rich devotional aesthetics with saffron & gold tones, language dropdown,
   bulletproof store badges, and interactive accordion FAQs.               */

.site {
  background-color: #FFFDF9;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.16) 0%, rgba(255, 215, 0, 0.08) 35%, rgba(255, 253, 249, 1) 75%);
  color: var(--text);
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FF6B35 0%, #E85A26 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(232, 90, 38, 0.25);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 17px;
  color: #FFFFFF;
  text-decoration: none;
}

.site-brand img {
  border-radius: 10px;
  border: 1.5px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Language Dropdown Selector in Header */
.lang-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 2px 10px 2px 8px;
  gap: 6px;
  color: #FFFFFF;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-dropdown-wrapper:hover, .lang-dropdown-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.28);
  border-color: #FFD700;
}

.lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #FFD700;
}

.lang-select-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding-right: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23FFFFFF' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 8px;
}

.lang-select-dropdown option {
  background-color: #2D1B00;
  color: #FFFFFF;
  font-size: 14px;
  padding: 8px;
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 20px 48px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.28);
  color: #D34510;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.08);
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 107, 53, 0.2) 60%, transparent 80%);
  z-index: -1;
  filter: blur(10px);
}

.hero-logo {
  border-radius: 26px;
  border: 2px solid rgba(255, 215, 0, 0.75);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.25);
  display: block;
}

.hero h1 {
  font-family: var(--font-devanagari);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: #2D1B00;
  margin: 12px 0 6px;
  letter-spacing: -0.5px;
}

.hero-devanagari {
  font-family: var(--font-devanagari);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: 17px;
  line-height: 1.7;
  color: #5A4325;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Rock-Solid Official Store Badges ───────────────────────────────────── */
.store-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 32px !important;
}

.store-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  height: 56px !important;
  min-width: 205px !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  background: #000000 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  user-select: none !important;
  -webkit-font-smoothing: antialiased !important;
}

.store-btn:hover {
  background: #181818 !important;
  transform: translateY(-2.5px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
}

.store-btn-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.store-btn-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  line-height: 1 !important;
}

.store-btn-sub {
  font-size: 10px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.1 !important;
  margin-bottom: 3px !important;
  display: block !important;
}

.store-btn-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.2px !important;
  display: block !important;
}

/* ── Section Structure ─────────────────────────────────────────────────── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section h2 {
  font-family: var(--font-devanagari);
  font-size: 28px;
  font-weight: 800;
  color: #2D1B00;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 580px;
  margin: 0 auto;
}

/* ── Devotional Stat Grid ───────────────────────────────────────────────── */
.stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 0;
}

.stat-grid li {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-grid li:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.16);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}

.stat-grid strong {
  display: block;
  font-family: var(--font-latin);
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-grid span {
  font-size: 14px;
  font-weight: 600;
  color: #2D1B00;
  line-height: 1.4;
  display: block;
}

.stat-grid i {
  font-family: var(--font-devanagari);
  font-style: normal;
  font-size: 12px;
  color: var(--text-sub);
  display: block;
  margin-top: 2px;
}

/* ── Screenshot Showcase ────────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.shots figure {
  margin: 0;
  text-align: center;
}

.shot-frame {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.4), rgba(255, 107, 53, 0.2));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.22);
}

.shots img {
  width: 100%;
  max-width: 230px;
  height: auto;
  border-radius: 16px;
  display: block;
}

.shots figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4A3200;
}

/* ── Feature Cards ──────────────────────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  padding: 0;
}

.feature-list li {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-list li:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-list h3 {
  font-family: var(--font-devanagari);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2D1B00;
}

.feature-list p {
  font-size: 14px;
  line-height: 1.65;
  color: #5A4325;
}

/* ── Support & Interactive FAQ Accordion ─────────────────────────────────── */
.support-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px var(--shadow);
}

.support-lead-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.support-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #5A4325;
  margin: 0;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.email-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary);
  background: rgba(255, 248, 240, 0.5);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-family: var(--font-devanagari);
  font-size: 16px;
  font-weight: 700;
  color: #2D1B00;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #5A4325;
}

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(255, 215, 0, 0.15) 100%);
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-radius: 24px;
  padding: 44px 24px;
  margin: 30px auto 40px;
  max-width: 860px;
}

.cta-section h2 {
  font-family: var(--font-devanagari);
  font-size: 32px;
  font-weight: 800;
  color: #2D1B00;
  margin-bottom: 8px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-sub);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px 48px;
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
  background: #FFFFFF;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.site-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer .muted {
  opacity: 0.75;
}

/* ── Mobile Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }
  .site-brand span {
    font-size: 15px;
  }
  .site-nav {
    display: none; /* Mobile navigation kept clean, links available in footer */
  }
  .hero {
    padding: 40px 16px 36px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-devanagari {
    font-size: 17px;
  }
  .hero-tagline {
    font-size: 15px;
  }
  .store-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .store-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .section {
    padding: 36px 16px;
  }
}

