/* ============================================================
   Mantras App — Design System (site.css)
   Warm "sacred editorial": cream paper, saffron accent, deep ink.
   Fonts: Fraunces (display) · Poppins (body) · Noto Serif Devanagari
   No framework dependencies.
   ============================================================ */

:root {
  /* palette */
  --saffron: #EA8442;
  --saffron-deep: #C96A2E;
  --saffron-soft: #FFE9D6;
  --saffron-tint: #FFF3E8;
  --ink: #241A12;
  --ink-soft: #52412F;
  --ink-mute: #8A7861;
  --paper: #FBF4EA;
  --cream: #FFF9F1;
  --white: #FFFFFF;
  --gold: #C9A227;
  --gold-soft: #E8D9A8;
  --maroon: #7C3A1D;
  --success: #3E7C4F;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-devanagari: "Noto Serif Devanagari", "Fraunces", serif;

  /* shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(96, 58, 24, 0.08);
  --shadow: 0 10px 30px rgba(96, 58, 24, 0.12);
  --shadow-lg: 0 24px 60px rgba(60, 32, 8, 0.18);

  --container: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--saffron-deep); text-decoration: none; }
a:hover { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ---------- utility ---------- */
.muted { color: var(--ink-mute); }
.small { font-size: 0.88rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section { padding: 78px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--cream); }
.section-ink {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(234, 132, 66, 0.28), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(124, 58, 29, 0.5), transparent 55%),
    linear-gradient(150deg, #2A1D12 0%, #38220F 55%, #4A2B12 100%);
  color: #F7EBDC;
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: #FFF6EA; }
.section-ink .muted { color: #D9C4AB; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  background: var(--saffron-tint);
  border: 1px solid var(--saffron-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-ink .eyebrow {
  color: #FFD9B8;
  background: rgba(255, 233, 214, 0.12);
  border-color: rgba(255, 217, 184, 0.35);
}

.rule {
  width: 64px; height: 3px; border: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  margin: 18px auto 26px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(201, 106, 46, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(201, 106, 46, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--saffron-deep) !important;
  border-color: var(--saffron);
}
.btn-ghost:hover { background: var(--saffron-tint); }
.btn-light {
  background: #fff;
  color: var(--saffron-deep) !important;
  box-shadow: var(--shadow-sm);
}
.play-badge img { width: 190px; display: block; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 244, 234, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--saffron-deep); }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 9px 20px; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--saffron-soft);
    box-shadow: var(--shadow);
    display: none;
    padding: 10px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 12px 20px; font-size: 1.05rem; }
  .nav-cta { margin: 8px auto 0; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-phone { text-align: center; position: relative; }
.hero-phone img {
  max-width: min(340px, 82%);
  filter: drop-shadow(0 30px 45px rgba(20, 8, 0, 0.45));
}
.hero-phone::before {
  content: "ॐ";
  position: absolute;
  inset: -40px 0 auto auto;
  font-family: var(--font-devanagari);
  font-size: 300px;
  line-height: 1;
  color: rgba(255, 214, 170, 0.07);
  z-index: -1;
  right: -30px;
  top: -60px;
}
.hero-sub { font-size: 1.15rem; max-width: 46ch; }
.hero-note { font-size: 0.85rem; opacity: 0.75; margin-top: 14px; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero-phone { order: -1; }
  .hero-phone img { max-width: 240px; }
}

/* ---------- stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--saffron-soft);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--saffron-deep);
}
.stat span { color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 a, .card h4 a { color: inherit; }

.icon-dot {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--saffron-tint);
  color: var(--saffron-deep);
  font-size: 22px;
  margin-bottom: 16px;
}

/* steps */
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

/* ---------- mantra components ---------- */
.mantra-card .tag { margin-bottom: 12px; }
.mantra-card .sanskrit-line {
  font-family: var(--font-devanagari);
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--maroon);
  margin: 4px 0 10px;
}
.mantra-card .card-links { margin-top: 4px; padding-top: 10px; }
.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  background: var(--saffron-tint);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 6px 6px 0;
}

.sanskrit-hero {
  font-family: var(--font-devanagari);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.75;
  color: var(--maroon);
  background:
    linear-gradient(180deg, rgba(255, 243, 232, 0.92), rgba(255, 249, 241, 0.96)),
    radial-gradient(600px 200px at 50% 0%, rgba(201, 162, 39, 0.25), transparent);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.sanskrit-hero .translit {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62em;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.7;
}

/* listen-on-app CTA */
.listen-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(234, 132, 66, 0.35), transparent 65%),
    linear-gradient(135deg, #33200F, #4A2B12);
  color: #FBEEDF;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.listen-cta .icon {
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255, 220, 180, 0.14);
  border: 1px solid rgba(255, 220, 180, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.listen-cta h3 { color: #FFF3E4; margin-bottom: 4px; }
.listen-cta p { margin: 0; color: #E4CBAC; font-size: 0.95rem; }
.listen-cta .play-badge { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 720px) {
  .listen-cta { flex-direction: column; text-align: center; }
  .listen-cta .play-badge { margin: 6px auto 0; }
}

/* ---------- article / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.4em 0;
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--ink-soft);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; background: #fff; }
.prose th, .prose td { border: 1px solid var(--saffron-soft); padding: 10px 14px; text-align: left; }
.prose th { background: var(--saffron-tint); }

.breadcrumbs { font-size: 0.85rem; color: var(--ink-mute); margin: 18px 0 0; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--saffron-deep); }

/* definition rows (word-by-word meaning) */
.word-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 8px 22px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gold-soft);
}
.word-row:last-child { border-bottom: 0; }
.word-row .word {
  font-family: var(--font-devanagari);
  font-size: 1.15rem;
  color: var(--maroon);
  font-weight: 600;
}
@media (max-width: 560px) { .word-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--saffron);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(255, 214, 170, 0.35), transparent 60%),
    linear-gradient(135deg, var(--saffron), var(--saffron-deep) 70%, var(--maroon));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 58px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFE9D6; max-width: 56ch; margin: 0 auto 1.4em; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: end; }
.shots img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #2A1D12, #221711);
  color: #CDB99F;
  padding: 64px 0 30px;
  margin-top: 90px;
  font-size: 0.94rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 38px;
}
.site-footer h4 { color: #F6E8D4; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #CDB99F; }
.site-footer a:hover { color: var(--saffron); }
.site-footer .brand img { height: 30px; }
.footer-om {
  font-family: var(--font-devanagari);
  color: rgba(234, 132, 66, 0.5);
  font-size: 1.6rem;
  margin-right: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(205, 185, 159, 0.18);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #99856C;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* temple-silhouette hero variant (dark overlay keeps text readable) */
.hero--temple {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(234, 132, 66, 0.30), transparent 60%),
    linear-gradient(150deg, rgba(42, 29, 18, 0.93) 0%, rgba(56, 34, 15, 0.90) 55%, rgba(74, 43, 18, 0.88) 100%),
    url("/web/assets/images/home-bg-1920.webp") center bottom / cover no-repeat;
}

/* footer app image */
.footer-app-img {
  max-width: 150px;
  margin: 2px 0 14px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  transition: transform 0.18s ease;
}
.footer-app-img:hover { transform: translateY(-3px); }

/* temple-silhouette CTA variant */
.cta-band--temple {
  background:
    linear-gradient(135deg, rgba(234, 132, 66, 0.93), rgba(201, 106, 46, 0.94) 70%, rgba(124, 58, 29, 0.96)),
    url("/web/assets/images/home-bg-1920.webp") center 65% / cover no-repeat;
}

/* gold ornament divider */
.ornament {
  height: 30px;
  margin: 26px auto;
  background: url("/web/assets/images/border_up.webp") center / contain no-repeat;
  border: 0;
}

/* framed app screenshot figure */
.fig-shot { text-align: center; margin: 28px auto; }
.fig-shot img {
  max-width: 280px;
  border-radius: 26px;
  border: 6px solid #2A1D12;
  box-shadow: var(--shadow-lg);
}
.fig-shot figcaption { font-size: 0.85rem; color: var(--ink-mute); margin-top: 12px; }

/* screenshot captions */
.shots figure { margin: 0; text-align: center; }
.shots figcaption { font-size: 0.85rem; color: var(--ink-mute); margin-top: 10px; }

/* ---------- misc ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 14px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--saffron-tint);
  color: var(--saffron-deep);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.note-box {
  background: var(--saffron-tint);
  border: 1px solid var(--saffron-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.star { color: var(--gold); }
