/* Smaran website – "midnight indigo & gold". One stylesheet, light + dark, mobile first. */

/* ---------- Fonts (self-hosted, Latin only; other scripts use the phone's own fonts) ---------- */
@font-face { font-family: 'Manrope'; src: url('fonts/manrope.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('fonts/playfair.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #1b1a33; --muted: #5d5b73; --bg: #faf8f4; --surface: #ffffff; --surface-2: #f3f0ea; --border: #e7e1d5;
  --primary: #2e2a6e; --primary-2: #4b3f9e; --gold: #b8862b; --gold-2: #d9a948; --gold-soft: #f5ead1;
  --night: #0f1024; --night-2: #1c1a4a;
  --shadow: 0 18px 40px -18px rgba(30, 27, 75, .35);
  --radius: 22px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #ecebf5; --muted: #a3a1b8; --bg: #0b0c18; --surface: #141629; --surface-2: #1a1d34; --border: #262a45;
  --primary: #b9b3ff; --primary-2: #8f86f0; --gold: #e3b95e; --gold-2: #f0cd7d; --gold-soft: #2e2716;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ecebf5; --muted: #a3a1b8; --bg: #0b0c18; --surface: #141629; --surface-2: #1a1d34; --border: #262a45;
    --primary: #b9b3ff; --primary-2: #8f86f0; --gold: #e3b95e; --gold-2: #f0cd7d; --gold-soft: #2e2716;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.65; transition: background .3s, color .3s; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
/* Playfair has no Indic/Arabic letters: use the sans stack for those languages */
html:not([lang^="en"]):not([lang="hi-Latn"]) h1, html:not([lang^="en"]):not([lang="hi-Latn"]) h2 { font-family: var(--sans); font-weight: 800; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section-head p { color: var(--muted); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.muted { color: var(--muted); }
.center { justify-content: center; text-align: center; }
.gap-top { margin-top: 28px; }
.section-head.start { margin-inline: 0; text-align: start; }
.field-label { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.copy-btn { width: auto; padding: 0 12px; }
/* "View in Hindi" etc. – offered (never forced) on the English page when the browser uses another language */
.lang-bar { display: flex; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--gold-soft); font-weight: 700; font-size: 15px; }
.lang-bar a { color: var(--ink); }
.lang-bar button { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }
/* Visually hidden, but not moved off-screen: in right-to-left pages an element pushed far left
   becomes scrollable and the page would open scrolled to that empty area */
.skip, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; top: 12px; inset-inline-start: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 700 16px var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1404; box-shadow: 0 12px 28px -12px rgba(184, 134, 43, .8); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-primary { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b0c18; }
.btn svg { width: 20px; height: 20px; }
.arr { display: inline-block; }
[dir="rtl"] .arr { transform: scaleX(-1); } /* arrows point the reading direction */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 12px 20px; background: color-mix(in srgb, var(--bg) 96%, transparent); /* nearly solid: text must not show through */
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 21px var(--serif); }
.brand img { border-radius: 11px; box-shadow: 0 4px 14px -4px rgba(184, 134, 43, .55); }
.tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.tools select, .icon-btn {
  height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font: 600 14px var(--sans); padding: 0 10px; cursor: pointer;
}
.icon-btn { width: 42px; padding: 0; font-size: 18px; }
.support-link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font: 700 14px var(--sans); color: var(--gold); border: 1.5px solid var(--gold); white-space: nowrap;
}
.site-nav { order: 3; width: 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); background: var(--surface-2); }
.site-nav a.nav-cta { color: var(--primary); }
@media (min-width: 980px) { .site-nav { order: 0; width: auto; } }
/* Small phones: Support moves from the header into the menu row */
@media (max-width: 420px) { .support-link { display: none; } }
@media (min-width: 421px) { .site-nav .nav-support { display: none; } }

/* ---------- Hero (always night-sky dark) ---------- */
.hero {
  position: relative; overflow: hidden; color: #f3f1ff; padding: 72px 0 88px;
  background:
    radial-gradient(800px 420px at 85% 15%, rgba(217, 169, 72, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(103, 88, 230, .35), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night) 70%);
}
.hero::after { /* faint stars */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.2px 1.2px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 40% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 65%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 60%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 55% 45%, #fff 50%, transparent 51%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.kicker { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #f6e3b4; background: rgba(217, 169, 72, .14); border: 1px solid rgba(217, 169, 72, .35); }
.hero h1 { font-size: clamp(38px, 7vw, 66px); margin: 18px 0 16px; color: #fff; }
.hero h1 .gold { background: linear-gradient(120deg, #f6dc9a, #d9a948 60%, #f0cd7d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: #cfcce6; max-width: 560px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .btn-ghost { color: #fff; }
.play-badge img { height: 56px; width: auto; }
.play-badge.soon { opacity: .5; cursor: default; }
.soon-note { margin: 10px 0 0; font-size: 14px; color: #aaa6cc; }

/* Phone mock-up with the app, inside a slowly turning mala */
.stage { position: relative; justify-self: center; width: min(420px, 88vw); aspect-ratio: 1; display: grid; place-items: center; }
.mala { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 140s linear infinite; }
.mala .bead { fill: url(#beadGrad); }
.mala .guru { fill: url(#beadGrad); stroke: #f6e3b4; stroke-width: 1.5; }
.orbit { position: absolute; inset: 0; animation: spin 9s linear infinite; }
.orbit::before { content: ''; position: absolute; top: 3.2%; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 18px 6px rgba(246, 220, 154, .8); }
.phone {
  position: relative; width: 48%; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #2c2a52, #0f1024);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), inset 0 0 0 1.5px rgba(255, 255, 255, .12); transform: rotate(-4deg);
}
.phone img { border-radius: 26px; }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; width: 30%; height: 10px; margin-left: -15%; border-radius: 10px; background: #0f1024; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Stats strip ---------- */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 0; }
.stat { background: var(--surface); padding: 22px 12px; text-align: center; }
.stat b { display: block; font: 700 34px var(--serif); color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: 14px; text-transform: lowercase; }
@media (min-width: 700px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); max-width: 900px; } }

/* ---------- Features ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: var(--gold); background: var(--gold-soft); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18.5px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Faith showcase: the mock counter takes each religion's colours ---------- */
.faiths { background: var(--surface-2); }
.faith-wrap { display: grid; gap: 32px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font: 600 15px var(--sans); transition: all .2s;
}
.chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip.on { border-color: var(--f1, var(--gold)); color: var(--f1, var(--gold)); box-shadow: 0 6px 18px -8px var(--f1, var(--gold)); }
.mock {
  --f1: #9333ea; --f2: #4f46e5; --fa: #7e22ce; --fbg: #f6f3fb;
  width: min(320px, 86vw); justify-self: center; border-radius: 30px; overflow: hidden; background: var(--fbg);
  box-shadow: var(--shadow); border: 8px solid var(--surface); transition: background .5s;
}
.mock-head { background: linear-gradient(110deg, var(--f1), var(--f2)); color: #fff; text-align: center; padding: 18px 12px 22px; border-radius: 0 0 22px 22px; transition: background .5s; }
.mock-head b { display: inline-flex; align-items: center; gap: 8px; font: 700 19px var(--sans); }
.mock-head svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.mock-ring { width: 120px; height: 120px; margin: 22px auto 8px; position: relative; }
.mock-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mock-ring circle { fill: none; stroke-width: 8; }
.mock-ring .t { stroke: color-mix(in srgb, var(--f1) 14%, #fff); }
.mock-ring .p { stroke: var(--f1); stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke-dashoffset .8s, stroke .5s; }
.mock-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 38px var(--sans); color: var(--fa); transition: color .5s; }
.mock-naam { text-align: center; font-style: italic; font-weight: 700; color: #2a2730; margin-bottom: 16px; }
.mock-tap { margin: 0 18px 22px; border-radius: 20px; padding: 34px 10px; text-align: center; color: #fff; font: 800 18px var(--sans); background: linear-gradient(110deg, var(--f1), var(--f2)); transition: background .5s; }
.faith-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (min-width: 980px) { .faith-wrap { grid-template-columns: 1.1fr 1fr; } .chips { justify-content: flex-start; } .faith-hint { text-align: start; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 62px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; inset-inline-start: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--sans); color: #1b1404; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Screenshots ---------- */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: thin; }
.shots figure { flex: none; margin: 0; width: 220px; scroll-snap-align: center; padding: 8px; border-radius: 30px; background: linear-gradient(160deg, #2c2a52, #0f1024); box-shadow: var(--shadow); transition: transform .3s; }
.shots figure:hover { transform: translateY(-6px) rotate(-1deg); }
.shots img { border-radius: 23px; }
.shots figure:first-child { margin-inline-start: auto; }
.shots figure:last-child { margin-inline-end: auto; }

/* ---------- Trust band ---------- */
.trust { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #ecebf5; border-radius: 32px; padding: 48px 28px; }
.trust h2 { color: #fff; text-align: center; font-size: clamp(26px, 4vw, 38px); margin-bottom: 32px; }
.trust .grid { gap: 26px; }
.trust-item { display: flex; gap: 14px; }
.trust-item .ico { flex: none; background: rgba(217, 169, 72, .15); color: #f0cd7d; margin: 0; }
.trust-item h3 { color: #fff; font-size: 18px; margin: 4px 0; }
.trust-item p { margin: 0; color: #b9b6d3; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote p { margin: 10px 0 14px; font-size: 17px; }
.quote .stars { color: var(--gold); letter-spacing: 2px; }
.quote footer { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }
.qa { padding: 18px 22px; }
.qa summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Support band + page ---------- */
.band { border-radius: 32px; padding: 44px 28px; text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(217, 169, 72, .25), transparent 70%), var(--surface); border: 1px solid var(--border); }
.band h2 { font-size: clamp(26px, 4vw, 38px); }
.band p { color: var(--muted); max-width: 620px; margin: 0 auto 24px; }
.support-grid { display: grid; gap: 22px; align-items: start; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.amounts button, .amounts input {
  height: 50px; min-width: 84px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--ink); font: 700 17px var(--sans); cursor: pointer;
}
.amounts input { width: 170px; cursor: text; }
.amounts button.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.qr { background: #fff; border-radius: 22px; padding: 16px; max-width: 280px; margin: 0 auto; position: relative; }
.qr img.code { width: 100%; }
.qr img.logo { position: absolute; width: 18%; left: 41%; top: 41%; border-radius: 10px; border: 4px solid #fff; box-sizing: content-box; }
.upi-id { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; font-weight: 700; word-break: break-all; }
.small { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) { .support-grid { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Feedback page ---------- */
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; font-size: 15px; display: grid; gap: 6px; }
.form input[type="text"], .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--ink); font: 500 16px var(--sans);
}
.form textarea { min-height: 120px; resize: vertical; }
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 34px; line-height: 1; color: var(--border); cursor: pointer; transition: color .15s, transform .15s; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--gold); }
.rating input:focus-visible + label { outline: 3px solid var(--gold-2); border-radius: 6px; }
.msg { min-height: 24px; font-weight: 700; }
.msg.ok { color: #2f8f5b; }
.msg.err { color: #c2412d; }

/* ---------- Text pages ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.page.wide { max-width: 1000px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); }
.page .card { margin-bottom: 16px; }
.page .card h2 { font: 700 20px var(--sans); }
.page .card p { margin: 0; color: var(--muted); }
.page ol, .page ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 9px; color: var(--muted); }
.mail { font-size: 22px; font-weight: 800; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 48px 20px 36px; border-top: 1px solid var(--border); background: var(--surface-2); }
.foot { max-width: 1140px; margin: 0 auto; display: grid; gap: 24px; }
.foot .brand { margin-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }
.foot-langs { margin-top: 12px; font-size: 14px; }
.visits { color: var(--gold); font-weight: 700; }
.copy { color: var(--muted); font-size: 14px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1.4fr 1fr; align-items: center; } .foot-links { justify-content: flex-end; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mala, .orbit { animation: none; }
  * { transition-duration: 0s !important; }
}
