/* ==========================================================================
   DivyaMala — styles
   Brand: saffron #E89B32 · maroon #7A263A · cream #FFF8ED · gold #D6B36A · text #2E2723
   Designed for 40+ users: 18px base text, 48px+ tap targets, high contrast.
   ========================================================================== */
:root {
  --saffron: #E89B32; --saffron-d: #C9761A;
  --maroon: #7A263A; --maroon-2: #92304A; --maroon-d: #5A1A2A;
  --cream: #FFF8ED; --cream-2: #F8EBD5; --sand: #F1DDBA;
  --gold: #D6B36A; --gold-d: #B8902F;
  --ink: #2E2723; --ink-2: #5C4A3F; --white: #FFFFFF;
  --line: #E8D3AE; --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(92, 40, 10, .14); --shadow-s: 0 4px 14px rgba(92, 40, 10, .12);
  --font: "Noto Sans Devanagari", "Mukta", system-ui, sans-serif;
  --head: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;
  --radius: 14px; --tap: 52px;
  --header-h: 76px;
}
[data-theme="dark"] {
  --cream: #15111A; --cream-2: #1E1824; --sand: #2A2230; --card: #221B28;
  --ink: #F3E9DA; --ink-2: #CDBFAE; --line: #3A3040; --maroon: #F0A8B8; --maroon-2: #F5BCC8; --maroon-d: #0E0B12;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45); --shadow-s: 0 4px 14px rgba(0, 0, 0, .4);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 900px; }
.center { text-align: center; margin-top: 28px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--maroon); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.pattern { background-image: radial-gradient(circle at 10% 20%, rgba(214, 179, 106, .12) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(214, 179, 106, .1) 0 2px, transparent 3px); background-size: 44px 44px, 62px 62px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); padding: 10px 22px; border-radius: 14px; font-weight: 600; font-size: 17px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; text-align: center; }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(180deg, #92304A, #7A263A); color: #fff; box-shadow: 0 4px 14px rgba(122, 38, 58, .32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(122, 38, 58, .4); }
[data-theme="dark"] .btn-primary { background: linear-gradient(180deg, #B4486A, #92304A); }
.btn-ghost { background: var(--card); color: var(--maroon); border: 2px solid var(--maroon); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-outline { border: 2px solid var(--maroon); color: var(--maroon); border-radius: 40px; background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
[data-theme="dark"] .btn-outline:hover { color: #15111A; }
.btn-xl { min-height: 60px; font-size: 20px; padding: 12px 30px; border-radius: 40px; }
.btn-primary.btn-xl { border: 3px solid #E9C98A; }
.icon-btn { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 0 8px; color: var(--ink); }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 24px; height: 24px; }
.linkish { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 56px; height: auto; }
.logo-text b { display: block; font-family: Georgia, "Playfair Display", serif; font-size: 27px; line-height: 1; color: var(--maroon); }
.logo-text span { display: block; font-family: var(--head); font-size: 19px; line-height: 1.25; color: var(--maroon); font-weight: 600; }
.menu { display: flex; gap: 4px; margin: 0 auto; }
.menu a { text-decoration: none; font-size: 15.5px; padding: 8px 10px; min-height: 48px; display: flex; align-items: center; border-bottom: 3px solid transparent; white-space: nowrap; }
.menu a:hover, .menu a[aria-current="true"] { color: var(--maroon); border-color: var(--maroon); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
#langLabel { font-size: 15px; font-weight: 600; }
.nav-jap { margin-left: 6px; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(100deg, #FCF1E0 0%, #F7E4C6 55%, #EBD0A6 100%); overflow: hidden; }
[data-theme="dark"] .hero { background: linear-gradient(100deg, #1E1824, #2A1E22 60%, #2A1A14); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .8fr .62fr .82fr; min-height: 540px; padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px)); }
.hero-copy { position: relative; z-index: 3; padding: 44px 0 40px; }
.hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.14; color: var(--maroon); letter-spacing: -.3px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; width: 260px; max-width: 100%; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1.5px; background: var(--gold); }
.divider img { width: 30px; }
.divider.light::before, .divider.light::after { background: #E9C98A; }
.hero-sub { font-family: var(--head); font-weight: 700; font-size: clamp(21px, 2vw, 26px); color: var(--maroon); line-height: 1.4; }
.hero-text { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); max-width: 400px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-woman { position: relative; z-index: 1; margin-left: -70px; margin-right: -240px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%); mask-image: linear-gradient(90deg, transparent, #000 26%); }
.hero-woman img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-phone { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.hero-deity { position: relative; z-index: 2; margin-left: -14px; background: #3A1A0C; }
.hero-deity > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-deity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(30, 10, 4, .78) 58%, rgba(24, 8, 3, .94) 80%); }
.hero-quote { position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 2; text-align: center; color: #fff; font-family: var(--head); font-size: 20px; font-weight: 600; line-height: 1.5; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hero-quote .q { font-family: Georgia, serif; font-size: 36px; color: #E9C98A; line-height: 0; vertical-align: -12px; }
.hero-quote .divider { margin: 10px auto 0; width: 180px; }

/* ---------- Phone mockup ---------- */
.phone { width: 236px; height: 468px; border-radius: 38px; background: #141414; padding: 9px; box-shadow: 0 30px 60px rgba(40, 15, 0, .45), inset 0 0 0 2px #444; position: relative; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; background: #141414; border-radius: 12px; z-index: 3; }
.phone-screen { height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #FFFAF1, #FBECD2); display: flex; flex-direction: column; align-items: center; position: relative; color: #2E2723; }
[data-theme="dark"] .phone-screen { background: linear-gradient(180deg, #161C30, #0B1020); color: #F1E8D8; }
.phone-top { padding-top: 34px; }
.phone-logo { display: flex; align-items: center; gap: 4px; font-family: Georgia, serif; color: #7A263A; font-size: 13px; }
[data-theme="dark"] .phone-logo { color: #F3D9A4; }
.phone-logo img { width: 26px; }
.phone-mantra { font-family: var(--head); font-weight: 700; color: #7A263A; font-size: 19px; text-align: center; margin: 6px 10px 0; line-height: 1.3; min-height: 50px; display: flex; align-items: center; }
[data-theme="dark"] .phone-mantra { color: #F3D9A4; }
.phone-mala { position: relative; width: 190px; flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.phone-mala .mala-svg { width: 182px; height: 214px; }
.phone-count { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 3px; pointer-events: none; }
.phone-count b { font-size: 26px; }
.phone-count small { font-size: 14px; color: inherit; opacity: .75; }
.phone-hint { font-size: 11px; opacity: .75; margin-top: -4px; }
.phone-bottom { width: 100%; display: flex; justify-content: space-around; align-items: center; padding: 4px 6px 14px; }
.pb { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; width: 66px; min-height: 48px; justify-content: center; color: inherit; border-radius: 10px; }
.pb svg { width: 21px; height: 21px; color: #7A263A; }
[data-theme="dark"] .pb svg { color: #F3D9A4; }
.pb-main { width: 50px; height: 50px; border-radius: 50%; background: #7A263A; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(122, 38, 58, .4); }
.pb-main svg { width: 20px; height: 20px; fill: #fff; stroke: none; }

/* ---------- Mala bead colours (5 styles) ---------- */
.mala-svg .bead { transition: fill .25s; transform-box: fill-box; transform-origin: center; }
.mala-svg .bead.cur { animation: pulse .5s; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* ---------- Strip ---------- */
.strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.strip-grid li { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-right: 1px solid var(--line); font-size: 16px; line-height: 1.35; font-weight: 500; }
.strip-grid li:last-child { border-right: 0; }
.ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; border: 1.8px solid var(--saffron); display: flex; align-items: center; justify-content: center; color: var(--saffron); }
.ico svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 24px; }
.sec-title { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); color: var(--maroon); line-height: 1.3; }
.sec-sub { font-size: 18px; margin-top: 6px; color: var(--ink-2); }
.empty-state { text-align: center; padding: 24px; color: var(--ink-2); font-size: 18px; }

/* search / select */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 40px; padding: 0 16px; min-height: 54px; flex: 1; max-width: 460px; }
.search:focus-within { border-color: var(--saffron); }
.search svg { width: 22px; height: 22px; color: var(--ink-2); flex-shrink: 0; }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 18px; min-height: 50px; }
.select select { min-height: 54px; border-radius: 40px; border: 2px solid var(--line); background: var(--card); padding: 0 18px; font-size: 17px; max-width: 100%; }

/* ---------- Deity carousel ---------- */
.deity-tools { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 8 * 14px) / 9); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.car-track > li { scroll-snap-align: start; }
.car-btn { position: absolute; top: 38%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--maroon); border: 2px solid var(--line); }
.car-btn svg { width: 26px; height: 26px; }
.car-btn.prev { left: -20px; } .car-btn.next { right: -20px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.deity-card { width: 100%; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-s); text-align: center; border: 3px solid transparent; transition: transform .2s, box-shadow .2s; display: block; }
.deity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.deity-card[aria-current="true"] { border-color: var(--maroon); }
.deity-card .art { aspect-ratio: 5 / 6; overflow: hidden; background: var(--sand); }
.deity-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.deity-card .nm { display: block; font-family: var(--head); font-weight: 700; font-size: 15.5px; padding: 8px 4px 2px; line-height: 1.3; }
.deity-card .mt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--ink-2); margin: 0 4px 9px; line-height: 1.35; min-height: 2.7em; }
.deity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }

/* ---------- Thoughts banner ---------- */
.banner { position: relative; min-height: 240px; display: flex; align-items: center; background: linear-gradient(90deg, #F3DCC0, #F6DFC0 35%, #F2C99B 65%, #C98955); overflow: hidden; }
[data-theme="dark"] .banner { background: linear-gradient(90deg, #2A1E22, #2E2026 50%, #3A2418); }
.b-devotee { position: absolute; left: 0; top: 0; height: 100%; width: 24%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent); mask-image: linear-gradient(90deg, #000 68%, transparent); }
.b-ghat { position: absolute; right: 0; top: 0; height: 100%; width: 32%; object-fit: cover; -webkit-mask-image: linear-gradient(270deg, #000 62%, transparent); mask-image: linear-gradient(270deg, #000 62%, transparent); }
.banner-inner { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; padding: 32px 24px; text-align: center; }
.thought blockquote { font-family: var(--head); font-weight: 700; font-style: italic; font-size: clamp(24px, 2.8vw, 32px); color: #7A263A; line-height: 1.45; min-height: 2.9em; display: flex; align-items: center; justify-content: center; gap: 4px; }
[data-theme="dark"] .thought blockquote { color: #F3D9A4; }
.thought .q { font-family: Georgia, serif; font-size: 48px; line-height: 0; font-style: normal; align-self: flex-start; margin-top: 18px; }
.thought figcaption { font-size: 16px; color: #7A263A; margin-top: 6px; font-weight: 600; }
[data-theme="dark"] .thought figcaption { color: #E9C98A; }
.thought-ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; color: #7A263A; }
[data-theme="dark"] .thought-ctrl { color: #E9C98A; }
.dots { display: flex; gap: 2px; }
.dots button { width: 32px; height: 48px; display: flex; align-items: center; justify-content: center; }
.dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .3; }
.dots button[aria-current="true"]::before { opacity: 1; }

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.feat { height: 100%; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; border-radius: var(--radius); padding-bottom: 4px; }
.feat .card { width: 100%; aspect-ratio: 146 / 113; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-s); background: linear-gradient(135deg, #F6E2C4, #E8C79B); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.feat:hover .card { transform: translateY(-4px); }
.feat .card img { width: 100%; height: 100%; object-fit: cover; }
.feat .card svg { width: 46%; height: 60%; color: #7A263A; }
.feat h3 { font-family: var(--head); font-weight: 700; color: var(--maroon); font-size: 19px; margin-top: 12px; line-height: 1.3; }
.feat p { font-size: 15.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }

/* ---------- How-to ---------- */
.howto { background: var(--cream-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--card); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-s); text-align: center; position: relative; border: 1px solid var(--line); }
.step-art { background: linear-gradient(135deg, #FFF3DD, #F6DFBC); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.step-art svg { width: 100%; height: 170px; }
.step-no { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; border: 3px solid #E9C98A; }
[data-theme="dark"] .step-no { color: #15111A; }
.step h3 { font-family: var(--head); font-weight: 700; color: var(--maroon); font-size: 21px; }
.step p { color: var(--ink-2); margin-top: 6px; }

/* ---------- Moments ---------- */
.moments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.moment { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); }
.moment img { width: 100%; aspect-ratio: 400 / 260; object-fit: cover; }
.moment div { padding: 12px 14px 16px; }
.moment h3 { font-family: var(--head); color: var(--maroon); font-size: 19px; font-weight: 700; }
.moment p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- Mantra library ---------- */
.lib-tools { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.mantra-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mantra-list.compact { grid-template-columns: 1fr; gap: 12px; }
.mantra { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-s); display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.compact .mantra { grid-template-columns: 1fr; }
.mantra > img { width: 64px; height: 76px; object-fit: cover; object-position: top; border-radius: 10px; }
.compact .mantra > img { display: none; }
.m-deity { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.m-name { font-size: 15px; color: var(--saffron-d); font-weight: 700; }
[data-theme="dark"] .m-name { color: var(--saffron); }
.m-text { font-family: var(--head); font-weight: 700; color: var(--maroon); font-size: 23px; line-height: 1.5; margin: 4px 0; white-space: pre-line; }
.m-row { font-size: 15.5px; margin-top: 4px; }
.m-row b { color: var(--ink); font-weight: 600; }
.m-row span { color: var(--ink-2); }
.m-translit { font-style: italic; }
.m-src { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.m-flag { display: inline-block; margin-left: 6px; background: #FFF0D6; color: #8A5A12; border-radius: 8px; padding: 0 8px; font-size: 12.5px; }
[data-theme="dark"] .m-flag { background: #3A2E1A; color: #E9C98A; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.m-actions .btn { min-height: 48px; font-size: 15.5px; padding: 8px 16px; }
.fav-btn { min-width: 48px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--maroon); }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 19px; position: relative; list-style: none; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--maroon); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- Install ---------- */
.install { background: linear-gradient(90deg, #F8E3C4, #FBEEDB 40%, #F8E9D3); border-top: 1px solid var(--line); overflow: hidden; }
[data-theme="dark"] .install { background: linear-gradient(90deg, #241A20, #1E1824); }
.install-grid { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; min-height: 160px; }
.diya { align-self: end; width: 230px; height: 140px; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.install-mid { text-align: center; padding: 22px 0; }
.install-mid h2 { font-family: var(--head); font-weight: 800; color: var(--maroon); font-size: clamp(24px, 2.4vw, 31px); line-height: 1.3; }
.install-mid > p { margin: 4px 0 14px; color: var(--ink-2); }
.install-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.install-help { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 16px; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; border-left: 1px solid var(--line); padding-left: 26px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.trust svg { width: 28px; height: 28px; color: var(--saffron); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #5A1A2A; color: #F6E4C8; padding: 36px 0 0; }
[data-theme="dark"] .site-footer { background: #0E0B12; }
.site-footer .logo-text b, .site-footer .logo-text span { color: #FFE9C2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; }
.f-brand p { margin-top: 12px; font-size: 15px; opacity: .9; max-width: 460px; }
.f-links { display: flex; flex-direction: column; gap: 2px; }
.f-links a, .f-links button { text-align: left; min-height: 44px; display: flex; align-items: center; font-size: 16.5px; text-decoration: none; }
.f-links a:hover, .f-links button:hover { text-decoration: underline; }
.f-lang > span { font-weight: 600; }
.lang-switch { display: flex; gap: 8px; margin-top: 8px; }
.lang-switch button { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid rgba(255, 233, 194, .5); }
.lang-switch button[aria-pressed="true"] { background: #FFE9C2; color: #5A1A2A; border-color: #FFE9C2; }
.f-bottom { border-top: 1px solid rgba(255, 233, 194, .2); margin-top: 26px; padding: 16px 24px 22px; font-size: 14.5px; opacity: .85; }

/* ---------- Dialogs ---------- */
.dlg { border: 0; border-radius: 20px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); margin: auto; }
.dlg.wide { width: min(1000px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(30, 10, 5, .6); }
.dlg[open] { display: flex; flex-direction: column; padding: 0 22px 22px; overflow: auto; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; background: var(--cream); padding: 16px 0 10px; z-index: 2; }
.dlg-head h2 { font-family: var(--head); color: var(--maroon); font-weight: 800; font-size: 26px; line-height: 1.3; }
.dlg-text { font-size: 18px; }
.deity-detail { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
.dd-art img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 5 / 6; object-fit: cover; object-position: top; }
.dd-about { color: var(--ink-2); margin-bottom: 12px; }
.dd-info h3 { font-family: var(--head); color: var(--maroon); font-size: 20px; margin-bottom: 8px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--line); font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--maroon); color: #fff; border-color: var(--maroon); }
[data-theme="dark"] .tabs button[aria-selected="true"] { color: #15111A; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats b { display: block; font-size: 28px; color: var(--maroon); line-height: 1.2; }
.table-wrap { overflow-x: auto; }
.hist { width: 100%; border-collapse: collapse; font-size: 16px; }
.hist th, .hist td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hist th { color: var(--maroon); }
.hist td small { display: block; color: var(--ink-2); }
.note { font-size: 14.5px; color: var(--ink-2); margin: 12px 0; }

/* ---------- Full-screen jap ---------- */
.jap { position: fixed; inset: 0; z-index: 120; background: radial-gradient(circle at 50% 30%, #FFFAF1, #F8E6C6); color: #2E2723; display: flex; flex-direction: column; overflow-y: auto; }
.jap[hidden] { display: none; }
.jap.dark { background: radial-gradient(circle at 50% 30%, #1A2240, #0B1020); color: #F1E8D8; }
.jap .icon-btn { color: inherit; }
.jap .icon-btn:hover { background: rgba(0, 0, 0, .06); }
.jap-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 6px; }
.jap-deity { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 14px 4px 4px; border-radius: 40px; background: rgba(255, 255, 255, .6); border: 1.5px solid #E8D3AE; text-align: left; }
.jap.dark .jap-deity { background: rgba(255, 255, 255, .06); border-color: #33405f; }
.jap-deity img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; }
.jap-deity b { display: block; font-size: 16px; line-height: 1.2; }
.jap-deity small { font-size: 13px; opacity: .75; }
.jap-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 16px max(20px, env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; }
.jap-mantra { font-family: var(--head); font-weight: 800; color: #7A263A; font-size: clamp(24px, 4.5vw, 36px); text-align: center; line-height: 1.45; white-space: pre-line; }
.jap.dark .jap-mantra { color: #F3D9A4; }
.jap-translit { font-style: italic; opacity: .8; text-align: center; font-size: 16px; }
.jap-mala { position: relative; width: min(78vw, 340px); aspect-ratio: 200 / 236; margin: 6px 0 0; border-radius: 50%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.jap-mala .mala-svg { width: 100%; height: 100%; }
.jap-count { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 4px; pointer-events: none; }
.jap-count b { font-size: clamp(44px, 10vw, 64px); line-height: 1; }
.jap-count small { font-size: 22px; opacity: .75; }
.jap-rounds { position: absolute; top: 55%; left: 50%; transform: translateX(-50%); font-size: 15px; opacity: .8; white-space: nowrap; pointer-events: none; }
.progress { width: min(100%, 420px); height: 10px; border-radius: 10px; background: rgba(122, 38, 58, .15); overflow: hidden; margin-top: 4px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E89B32, #7A263A); transition: width .25s; }
.tap-btn { width: min(100%, 420px); min-height: 72px; font-size: 26px; border-radius: 20px; margin-top: 14px; touch-action: manipulation; }
.jap-hint { font-size: 14.5px; opacity: .75; margin-top: 6px; text-align: center; }
.jap-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 520px); margin-top: 14px; }
.ja { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 72px; border-radius: 14px; background: rgba(255, 255, 255, .65); border: 1.5px solid #E8D3AE; font-size: 13.5px; line-height: 1.25; padding: 6px 4px; text-align: center; }
.jap.dark .ja { background: rgba(255, 255, 255, .06); border-color: #33405f; }
.ja svg { width: 24px; height: 24px; color: #7A263A; }
.jap.dark .ja svg { color: #F3D9A4; }
.ja[aria-pressed="true"] { background: #7A263A; color: #fff; border-color: #7A263A; }
.ja[aria-pressed="true"] svg { color: #fff; }
#japFav[aria-pressed="true"] svg { fill: #fff; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; background: #FFFDF8; color: #2E2723; border-radius: 22px 22px 0 0; padding: 6px 20px max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); z-index: 3; max-width: 640px; margin: 0 auto; }
.jap.dark .sheet { background: #1B2238; color: #F1E8D8; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet h3 { font-family: var(--head); font-size: 22px; color: #7A263A; }
.jap.dark .sheet h3 { color: #F3D9A4; }
.sheet fieldset { border: 0; margin-top: 12px; }
.sheet legend { font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; min-width: 56px; padding: 0 16px; border-radius: 30px; border: 2px solid #E8D3AE; background: #FFF8ED; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; color: #2E2723; }
.jap.dark .chip { background: #232c48; border-color: #33405f; color: #F1E8D8; }
.chip[aria-pressed="true"] { background: #7A263A; color: #fff; border-color: #7A263A; }
.chip .swatch { width: 16px; height: 16px; border-radius: 50%; }
.custom-target { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.custom-target input { width: 120px; min-height: 48px; border-radius: 12px; border: 2px solid #E8D3AE; padding: 0 12px; font-size: 18px; background: #fff; color: #2E2723; }
.toggles { display: grid; gap: 4px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; border-bottom: 1px solid rgba(0, 0, 0, .08); cursor: pointer; }
.toggle small { display: block; font-size: 13.5px; opacity: .75; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { flex-shrink: 0; width: 54px; height: 30px; border-radius: 30px; background: #C9BFB0; position: relative; transition: .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + i { background: #7A263A; }
.toggle input:checked + i::after { left: 27px; }
.toggle input:focus-visible + i { outline: 3px solid var(--saffron); outline-offset: 2px; }
.complete { position: absolute; inset: 0; z-index: 5; background: rgba(30, 10, 5, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.complete[hidden] { display: none; }
.complete-box { background: #FFFDF8; color: #2E2723; border-radius: 22px; padding: 28px 24px; text-align: center; max-width: 420px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.complete-box h3 { font-family: var(--head); font-size: 30px; color: #7A263A; }
.complete-box .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #2E2723; color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 16px; opacity: 0; pointer-events: none; transition: .25s; z-index: 150; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.jap .toast { top: calc(max(10px, env(safe-area-inset-top)) + 64px); bottom: auto; transform: translate(-50%, -12px); }
.jap .toast.show { transform: translate(-50%, 0); }
.noscript { padding: 16px; text-align: center; background: #FFF0D6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .menu a { font-size: 14.5px; padding: 8px 7px; }
  .nav-jap span { display: none; }
  .nav-jap { padding: 10px 14px; }
}
@media (max-width: 1100px) {
  .menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { font-size: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .nav-jap span { display: inline; }
  .car-track { grid-auto-columns: calc((100% - 6 * 14px) / 7); }
  .feats { grid-template-columns: repeat(5, 1fr); gap: 18px 12px; }
  .feat h3 { font-size: 17px; } .feat p { font-size: 14.5px; }
  .strip-grid li { padding: 16px 10px; font-size: 15px; gap: 8px; }
  .ico { width: 44px; height: 44px; }
  .moments { grid-template-columns: repeat(3, 1fr); }
  .install-grid { grid-template-columns: 180px 1fr; }
  .trust { grid-column: 1 / -1; border-left: 0; padding: 0 0 22px; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .7fr .62fr .7fr; }
  .feats { grid-template-columns: repeat(3, 1fr); }
  .car-track { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-grid li:nth-child(3) { border-right: 0; }
  .strip-grid li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .mantra-list { grid-template-columns: 1fr; }
  .steps { gap: 30px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

/* ---- Mobile hero: same concept, art-directed and stacked ---- */
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  body { font-size: 17.5px; }
  .logo img { width: 46px; }
  .logo-text b { font-size: 22px; } .logo-text span { font-size: 16px; }
  .nav { gap: 6px; }
  .nav-jap span { display: none; }
  .nav-jap { padding: 10px 12px; margin-left: 2px; }
  #langLabel { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "woman phone" "deity deity"; padding: 0; min-height: 0; }
  .hero-copy { grid-area: copy; text-align: center; padding: 26px 20px 18px; }
  .hero-copy .divider { margin: 14px auto; }
  .hero-text { margin: 10px auto 0; }
  .hero-ctas { justify-content: center; margin-top: 20px; }
  .hero-ctas .btn { flex: 1 1 240px; max-width: 360px; }
  .hero-woman { grid-area: woman; margin: 0 -40px 0 0; min-height: 440px; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
  .hero-woman img { object-position: 40% top; }
  .hero-phone { grid-area: phone; justify-content: flex-start; padding: 18px 12px 18px 0; margin-left: -30px; }
  .phone { width: 212px; height: 422px; }
  .phone-mala .mala-svg { width: 166px; height: 196px; }
  .phone-mantra { font-size: 17px; min-height: 44px; }
  .hero-deity { grid-area: deity; margin: 0; min-height: 300px; }
  .hero-deity > img { object-position: center 18%; }
  .hero-quote { bottom: 22px; font-size: 21px; }
  .section { padding: 44px 0; }
  .install-grid { grid-template-columns: 1fr; }
  .diya { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .b-devotee { width: 34%; opacity: .55; } .b-ghat { width: 42%; opacity: .5; }
  .banner-inner { padding: 30px 20px; }
  .deity-detail { grid-template-columns: 1fr; }
  .dd-art { max-width: 240px; margin: 0 auto; }
  .moments { grid-template-columns: repeat(2, 1fr); }
  .moments li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .car-btn { display: none; }
  .car-track { grid-auto-columns: 36%; padding-right: 20px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-woman { min-height: 400px; margin-right: -56px; }
  .hero-phone { margin-left: -44px; padding-right: 8px; }
  .phone { width: 190px; height: 384px; border-radius: 32px; padding: 8px; }
  .phone-screen { border-radius: 26px; }
  .phone-top { padding-top: 30px; }
  .phone-mala { width: 160px; }
  .phone-mala .mala-svg { width: 150px; height: 178px; }
  .phone-count b { font-size: 22px; }
  .phone-mantra { font-size: 15.5px; margin-top: 2px; }
  .pb { width: 54px; font-size: 9px; }
  .pb-main { width: 44px; height: 44px; }
  .feats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid li { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .strip-grid li:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .strip-grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .car-track { grid-auto-columns: 44%; gap: 12px; }
  .deity-grid { grid-template-columns: repeat(2, 1fr); }
  .search { max-width: none; flex-basis: 100%; }
  .deity-tools .btn { width: 100%; }
  .lib-tools .select, .lib-tools .select select { width: 100%; }
  .mantra { grid-template-columns: 1fr; }
  .mantra > img { display: none; }
  .m-actions .btn { flex: 1 1 auto; }
  .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats b { font-size: 22px; }
  .jap-actions { grid-template-columns: repeat(2, 1fr); }
  .dlg[open] { padding: 0 16px 16px; }
}
@media (max-width: 380px) {
  .logo-text b { font-size: 17px; } .logo-text span { font-size: 15px; }
  .logo { gap: 6px; } .logo img { width: 36px; }
  .nav { gap: 2px; } .nav-tools { gap: 0; }
  .hero-woman { min-height: 370px; margin-right: -64px; }
  .hero-phone { margin-left: -52px; }
  .phone { width: 176px; height: 360px; }
  .phone-mala .mala-svg { width: 140px; height: 166px; }
  .phone-mantra { font-size: 14.5px; }
  .pb span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Large-text pass for readers aged 40+ (overrides above).
   Nothing a visitor needs to read is smaller than 16px; body text is 20px.
   ========================================================================== */
body { font-size: 20px; line-height: 1.7; }
.btn { font-size: 18.5px; min-height: 56px; }
.btn-xl { font-size: 21px; min-height: 64px; }
.hero-text { font-size: 20px; max-width: 460px; line-height: 1.7; }
.hero-sub { font-size: clamp(23px, 2.2vw, 28px); }
.sec-sub { font-size: 20px; line-height: 1.6; max-width: 820px; margin-left: auto; margin-right: auto; }
.strip-grid li { font-size: 18px; }
.search input { font-size: 19px; }
.select select { font-size: 18.5px; }
.deity-card .nm { font-size: 18px; padding-top: 10px; }
.deity-card .mt { font-size: 15.5px; }
.thought figcaption { font-size: 18px; }
.feat h3 { font-size: 21px; }
.feat p { font-size: 17.5px; line-height: 1.5; }
.step h3 { font-size: 24px; }
.step p { font-size: 19px; }
.moment h3 { font-size: 21px; }
.moment p { font-size: 17.5px; }
.moment div { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; height: calc(100% - 0px); }
.moment { display: flex; flex-direction: column; }
.moment div .btn { margin-top: auto; min-height: 52px; font-size: 17px; padding: 8px 14px; }
.moment-mantra { font-family: var(--head); font-weight: 700; color: var(--maroon) !important; font-size: 18px !important; line-height: 1.45; margin: 6px 0 10px; }
.m-deity { font-size: 16px; }
.m-name { font-size: 17px; }
.m-text { font-size: 28px; line-height: 1.55; }
.m-row { font-size: 18px; line-height: 1.6; margin-top: 6px; }
.m-when { background: var(--cream-2); border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.m-src { font-size: 15.5px; }
.m-actions .btn { font-size: 17.5px; min-height: 52px; }
.fav-btn { min-width: 52px; min-height: 52px; }
.faq summary { font-size: 21px; padding: 18px 56px 18px 22px; }
.faq details p { font-size: 19px; line-height: 1.75; padding: 0 22px 20px; }
.install-mid > p { font-size: 19px; }
.install-help { font-size: 18px; }
.trust li { font-size: 17.5px; }
.f-brand p { font-size: 17px; line-height: 1.7; }
.f-links a, .f-links button { font-size: 18px; min-height: 48px; }
.f-bottom { font-size: 16px; }
.dlg-head h2 { font-size: 28px; }
.dlg-text, .dd-about { font-size: 19px; line-height: 1.7; }
.tabs button { font-size: 18px; min-height: 52px; }
.stats span { font-size: 16.5px; }
.hist { font-size: 17.5px; }
.note { font-size: 16.5px; }
.empty-state { font-size: 19px; }
/* jap screen */
.jap-translit { font-size: 18px; }
.jap-hint { font-size: 17px; }
.jap-rounds { font-size: 17px; }
.jap-deity b { font-size: 18px; }
.jap-deity small { font-size: 15px; }
.ja { font-size: 16px; min-height: 80px; }
.ja svg { width: 28px; height: 28px; }
.tap-btn { font-size: 30px; min-height: 84px; }
.chip { font-size: 18px; min-height: 52px; }
.toggle { font-size: 18.5px; min-height: 60px; }
.toggle small { font-size: 15.5px; }
.sheet h3 { font-size: 24px; }
.sheet legend { font-size: 18.5px; }
.custom-target input { font-size: 20px; min-height: 52px; }
.complete-box p { font-size: 19px; line-height: 1.6; }
.toast { font-size: 18px; }
/* menu: keep on one line, burger earlier because labels are bigger */
.menu a { font-size: 16.5px; }
@media (max-width: 1280px) { .menu a { font-size: 16px; padding: 8px 6px; } }

/* ---------- Why section ---------- */
.why { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.why-art img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: left center; }
.why-copy .sec-title { text-align: left; }
.why-sub { font-family: var(--head); font-weight: 700; color: var(--saffron-d); font-size: 22px; margin: 4px 0 14px; }
[data-theme="dark"] .why-sub { color: var(--saffron); }
.why-copy p { margin-bottom: 14px; color: var(--ink); }
.why-p3 { font-family: var(--head); font-weight: 700; color: var(--maroon) !important; font-size: 21px; }
.why-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.why-points li { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 40px; padding: 8px 18px; font-size: 18px; font-weight: 600; }
.why-points li span:first-child { color: #fff; background: var(--maroon); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
[data-theme="dark"] .why-points li span:first-child { color: #15111A; }

@media (max-width: 1100px) {
  .feats { grid-template-columns: repeat(3, 1fr); }
  .moments { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 19px; }
  .why-grid { grid-template-columns: 1fr; gap: 22px; }
  .why-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .why-copy .sec-title { text-align: center; }
  .why-sub { text-align: center; }
  .m-text { font-size: 25px; }
}
@media (max-width: 560px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .moments { grid-template-columns: 1fr; }
  .moments li:last-child { grid-column: auto; }
  .feat h3 { font-size: 19px; } .feat p { font-size: 16.5px; }
  .deity-card .nm { font-size: 17px; }
  .strip-grid li { font-size: 16.5px; padding: 14px 8px; }
  .why-points li { width: 100%; }
  .tap-btn { font-size: 28px; }
}

/* ---------- Hero headline: reason for jap ---------- */
.hero-kicker { display: inline-block; font-family: var(--head); font-weight: 700; color: var(--saffron-d); font-size: 21px; letter-spacing: .2px; margin-bottom: 8px; padding: 4px 16px; border-radius: 30px; background: rgba(232, 155, 50, .14); border: 1.5px solid rgba(232, 155, 50, .45); }
[data-theme="dark"] .hero-kicker { color: var(--saffron); }
.hero h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.22; }

/* ---------- Deity carousel (large cards, peek of the next card) ---------- */
.carousel { position: relative; }
.car-track { grid-auto-columns: calc((100% - 4 * 20px) / 5.35); gap: 20px; padding: 8px 4px 18px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.deity-card { border-radius: 18px; }
.deity-card .art { aspect-ratio: 4 / 5; }
.deity-card .nm { font-size: 21px; padding: 12px 8px 2px; }
.deity-card .mt { font-size: 16.5px; margin: 2px 10px 14px; }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.car-ctrl .car-btn { position: static; transform: none; width: 56px; height: 56px; opacity: 1; pointer-events: auto; display: inline-flex; }
.car-ctrl .car-btn svg { width: 28px; height: 28px; }
.car-ctrl .car-btn:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.car-play { width: 48px !important; height: 48px !important; margin-left: 6px; }
.car-play svg { width: 18px !important; height: 18px !important; }
.car-dots { display: flex; gap: 0; flex-wrap: wrap; justify-content: center; max-width: 60%; }
.car-dots button { width: 30px; height: 48px; display: flex; align-items: center; justify-content: center; }
.car-dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--maroon); opacity: .25; transition: .2s; }
.car-dots button[aria-current="true"]::before { opacity: 1; width: 26px; border-radius: 8px; }
.carousel.single .car-ctrl { display: none; }
@media (max-width: 1100px) { .car-track { grid-auto-columns: calc((100% - 3 * 18px) / 4.3); gap: 18px; } }
@media (max-width: 860px) {
  .car-track { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); gap: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(32px, 7.4vw, 44px); }
  .hero-kicker { font-size: 19px; }
}
@media (max-width: 560px) {
  .car-track { grid-auto-columns: 62%; gap: 14px; }
  .deity-card .nm { font-size: 20px; }
  .car-dots { max-width: 100%; order: 3; flex-basis: 100%; }
  .car-dots button { width: 24px; }
}
.car-progress { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 170px; }
.car-count { font-weight: 700; font-size: 18px; color: var(--maroon); font-variant-numeric: tabular-nums; }
.car-bar { width: 160px; height: 6px; border-radius: 6px; background: rgba(122, 38, 58, .15); overflow: hidden; }
.car-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E89B32, #7A263A); transition: width .3s; }
[data-theme="dark"] .car-bar { background: rgba(240, 168, 184, .2); }
.hero h1 { font-size: clamp(30px, 2.9vw, 44px); text-wrap: balance; }
@media (max-width: 560px) { .car-progress { min-width: 110px; } .car-bar { width: 100px; } }
@media (max-width: 860px) { .hero h1 { font-size: clamp(30px, 7.2vw, 42px); } }

/* ---------- Animated golden border on every "जाप शुरू करें" button ---------- */
@property --dm-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-primary[data-action="jap"] {
  --dm-fill: linear-gradient(180deg, #92304A, #7A263A);
  position: relative; border: 3px solid transparent !important;
  background: var(--dm-fill) padding-box,
              conic-gradient(from var(--dm-angle), #FFE7A8, #E89B32 25%, #7A263A 45%, #D6B36A 60%, #FFF3CF 75%, #E89B32 90%, #FFE7A8) border-box;
  animation: dm-border-spin 3.2s linear infinite, dm-glow 2.6s ease-in-out infinite;
}
[data-theme="dark"] .btn-primary[data-action="jap"] { --dm-fill: linear-gradient(180deg, #B4486A, #92304A); }
.btn-primary[data-action="jap"]:hover { animation-duration: 1.6s, 2.6s; }
@keyframes dm-border-spin { to { --dm-angle: 360deg; } }
@keyframes dm-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(122, 38, 58, .32), 0 0 0 0 rgba(232, 155, 50, 0); }
  50% { box-shadow: 0 6px 20px rgba(122, 38, 58, .38), 0 0 18px 2px rgba(232, 155, 50, .45); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary[data-action="jap"] { animation: none !important; background: var(--dm-fill) padding-box, linear-gradient(135deg, #FFE7A8, #E89B32, #D6B36A) border-box; }
}
.btn-ghost[data-action="jap"] {
  --dm-fill: linear-gradient(var(--card), var(--card));
  border: 3px solid transparent !important;
  background: var(--dm-fill) padding-box,
              conic-gradient(from var(--dm-angle), #FFE7A8, #E89B32 25%, #7A263A 45%, #D6B36A 60%, #FFF3CF 75%, #E89B32 90%, #FFE7A8) border-box;
  animation: dm-border-spin 3.2s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .btn-ghost[data-action="jap"] { animation: none !important; } }

/* ---------- Hero order: title → image → button → short description ---------- */
.hero-text { margin-top: 18px; max-width: 440px; font-size: 19px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr 1fr;
    grid-template-areas: "kicker kicker" "title title" "woman phone" "ctas ctas" "text text" "sub sub" "deity deity"; }
  .hero-copy { display: contents; }
  .hero-kicker { grid-area: kicker; justify-self: center; margin: 22px 20px 8px; }
  #heroTitle { grid-area: title; text-align: center; padding: 0 18px 14px; }
  .hero-copy .divider { display: none; }
  .hero-woman { grid-area: woman; min-height: 400px; }
  .hero-phone { grid-area: phone; }
  .hero-ctas { grid-area: ctas; justify-content: center; margin: 0; padding: 18px 20px 4px; position: relative; z-index: 5; background: linear-gradient(180deg, rgba(247, 228, 198, 0), #F7E4C6 30%); }
  [data-theme="dark"] .hero-ctas { background: linear-gradient(180deg, rgba(30, 24, 36, 0), #241C26 30%); }
  .hero-text { grid-area: text; text-align: center; margin: 0 auto; padding: 12px 22px 6px; max-width: 520px; }
  .hero-sub { grid-area: sub; text-align: center; padding: 4px 20px 24px; font-size: 20px; }
}
@media (max-width: 440px) {
  .nav { gap: 4px; }
  .nav-tools { gap: 0; }
  .nav-jap { padding: 8px 10px; margin-left: 0; }
  .logo { gap: 6px; } .logo img { width: 40px; }
  .logo-text b { font-size: 20px; } .logo-text span { font-size: 15px; }
}
@media (max-width: 340px) {
  .logo-text b { font-size: 17px; } .logo-text span { font-size: 14px; }
  .logo img { width: 32px; }
  .icon-btn { min-width: 44px; padding: 0 4px; }
  .nav-jap { padding: 8px; }
}
.f-links .f-mail { font-weight: 600; word-break: break-all; }
.dd-page { margin-top: 16px; }

/* ==========================================================================
   SEO pages: /mantra/ and /mantra/<deity>/
   ========================================================================== */
.page-nav { display: flex; gap: 6px; margin-left: auto; }
.page-nav a { text-decoration: none; font-size: 17px; padding: 8px 10px; min-height: 48px; display: flex; align-items: center; border-radius: 10px; }
.page-nav a:hover { background: var(--cream-2); color: var(--maroon); }
.page { padding: 18px 0 56px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 16.5px; color: var(--ink-2); margin: 6px 0 18px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-d); }
.crumbs a { color: var(--maroon); }
.page-hero { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: center; background: linear-gradient(120deg, #FCF1E0, #F7E4C6); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-s); }
[data-theme="dark"] .page-hero { background: linear-gradient(120deg, #241C26, #2A1E22); }
.page-art img { width: 100%; border-radius: 18px; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
.page-intro h1 { font-family: var(--head); font-weight: 800; color: var(--maroon); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; margin: 6px 0 12px; }
.page-intro .lead { font-family: var(--head); font-weight: 700; color: var(--saffron-d); font-size: 21px; margin-bottom: 10px; }
.page-intro p { margin-bottom: 14px; }
.page-sec { margin-top: 48px; }
.page-sec > .sec-title { text-align: left; margin-bottom: 18px; }
.mantra-full { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow-s); }
.mantra-full .m-text { margin: 6px 0 12px; }
.m-dl { display: grid; gap: 8px; margin-bottom: 16px; }
.m-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 18.5px; }
.m-dl dt { font-weight: 700; color: var(--ink); }
.m-dl dd { color: var(--ink-2); }
.m-dl .m-when { background: var(--cream-2); border-radius: 10px; padding: 8px 12px; margin: 2px 0; }
.how-list { counter-reset: h; list-style: none; display: grid; gap: 12px; }
.how-list li { counter-increment: h; position: relative; padding: 14px 18px 14px 64px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.how-list li::before { content: counter(h); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .how-list li::before { color: #15111A; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; }
.rel-card { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; min-height: 72px; }
.rel-card:hover { border-color: var(--maroon); }
.rel-card img { width: 64px; height: 76px; border-radius: 10px; object-fit: cover; object-position: top; flex-shrink: 0; }
.rel-card span { font-family: var(--head); font-weight: 700; color: var(--maroon); font-size: 18px; line-height: 1.3; }
.rel-card small { display: block; font-family: var(--font); font-weight: 400; color: var(--ink-2); font-size: 15.5px; }
.page-head { margin-bottom: 26px; }
.deity-grid.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; list-style: none; }
.deity-grid.big .deity-card { text-decoration: none; color: inherit; }
.f-deities { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 22px; margin-top: 22px; border-top: 1px solid rgba(255, 233, 194, .2); }
.f-deities a { font-size: 16px; text-decoration: none; opacity: .92; min-height: 36px; display: inline-flex; align-items: center; }
.f-deities a:hover { text-decoration: underline; opacity: 1; }
.lib-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px 20px; }
@media (max-width: 960px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } .page-nav a:nth-child(3) { display: none; } }
@media (max-width: 760px) {
  .page-hero { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .page-art { max-width: 300px; margin: 0 auto; width: 100%; }
  .page-intro { text-align: center; }
  .page-sec > .sec-title { text-align: center; }
  .m-dl div { grid-template-columns: 1fr; gap: 2px; }
  .page-nav { display: none; }
}
@media (max-width: 560px) { .rel-grid { grid-template-columns: 1fr; } .deity-grid.big { grid-template-columns: repeat(2, 1fr); gap: 12px; } .mantra-full { padding: 18px; } .mantra-full .btn { width: 100%; } }

/* ---------- Hero: app demo video inside the phone frame ---------- */
.phone.phone-demo { height: auto; display: block; padding: 9px; cursor: pointer; transition: transform .2s; }
.phone.phone-demo:hover { transform: translateY(-3px); }
.phone-demo .phone-video { display: block; width: 100%; height: auto; aspect-ratio: 422 / 910; object-fit: cover; border-radius: 30px; background: #FBEFD9; }
.phone-demo .phone-poster { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
.phone-demo .phone-poster[hidden] { display: none; }
@media (max-width: 560px) { .phone-demo .phone-video { border-radius: 25px; } }
