/* DurgaBhakti website v2 — one stylesheet for every page. Tokens → base → components → pages → motion. */

@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tiro-devanagari-hindi-deva.woff2?v=20260927a') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tiro-devanagari-hindi-latin.woff2?v=20260927a') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --c-bg: #fff7ec;
  --c-bg-2: #fdeedb;
  --c-surface: #ffffff;
  --c-text: #2a0f12;
  --c-text-muted: #6b4a4a;
  --c-link: #9e1030;
  --c-primary: #b3122e;
  --c-maroon: #6e0b1f;
  --c-btn: #b3122e;
  --c-on-btn: #ffffff;
  --c-saffron: #e8651a;
  --c-gold: #e8b64a;
  --c-gold-strong: #c8912a;
  --c-deep: #2a0508;
  --c-on-deep: #fbede4;
  --c-line: #f0d9bf;
  --shadow: 0 10px 30px -12px rgba(110, 11, 31, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(110, 11, 31, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Kohinoor Devanagari', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Nirmala UI', sans-serif;
  --header-h: 68px;
  color-scheme: light dark;
}
:root[data-theme="dark"] {
  --c-bg: #170407;
  --c-bg-2: #1f060b;
  --c-surface: #26090e;
  --c-text: #fbede4;
  --c-text-muted: #d9b9ae;
  --c-link: #ff9f8f;
  --c-primary: #ff6b6b;
  --c-maroon: #3a0811;
  --c-btn: #f2c75c;
  --c-on-btn: #2a0508;
  --c-saffron: #ff8a3d;
  --c-gold: #f2c75c;
  --c-gold-strong: #e8b64a;
  --c-deep: #0f0204;
  --c-on-deep: #fbede4;
  --c-line: #4a1a22;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #170407;
    --c-bg-2: #1f060b;
    --c-surface: #26090e;
    --c-text: #fbede4;
    --c-text-muted: #d9b9ae;
    --c-link: #ff9f8f;
    --c-primary: #ff6b6b;
    --c-maroon: #3a0811;
    --c-btn: #f2c75c;
    --c-on-btn: #2a0508;
    --c-saffron: #ff8a3d;
    --c-gold: #f2c75c;
    --c-gold-strong: #e8b64a;
    --c-deep: #0f0204;
    --c-on-deep: #fbede4;
    --c-line: #4a1a22;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1.0625rem/1.7 var(--font-body);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.25; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px rgba(232, 182, 74, 0.25); }
::selection { background: var(--c-gold); color: var(--c-deep); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-btn); color: var(--c-on-btn); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--c-btn); color: var(--c-on-btn); box-shadow: 0 8px 22px -8px rgba(179, 18, 46, 0.6); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(179, 18, 46, 0.75); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-gold); }
.btn-gold { background: linear-gradient(135deg, #f6d27a, #e8b64a 55%, #c8912a); color: #2a0508; }
.btn-sm { min-height: 40px; padding: 0.45em 1em; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--c-surface); border: 1px solid var(--c-line); font-size: 0.92rem; color: var(--c-text);
}
.chip .icon { color: var(--c-primary); width: 1em; height: 1em; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge-play { display: inline-block; border-radius: 10px; transition: transform 0.25s var(--ease), filter 0.25s; }
.badge-play:hover { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); }
.badge-play img { width: 180px; height: auto; }
.badge-soon {
  display: inline-flex; flex-direction: column; justify-content: center; height: 54px; padding: 0 16px 0 44px; position: relative;
  border-radius: 10px; border: 1px dashed rgba(251, 237, 228, 0.5); color: var(--c-on-deep); line-height: 1.15; font-size: 0.8rem; opacity: 0.85;
}
.badge-soon b { font-size: 1.05rem; font-weight: 600; }
.badge-soon .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-primary);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--c-gold); color: var(--c-deep); font-size: 0.8rem; font-weight: 700; }

/* ---------- header + toran ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--c-on-deep); transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-solid, .page-sub .site-header {
  background: color-mix(in srgb, var(--c-deep) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.6);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-head); font-size: 1.3rem; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.brand-shine { position: relative; overflow: hidden; border-radius: 10px; }
.brand-shine::after {
  content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 170, 0.75), transparent);
  transform: skewX(-18deg); animation: shine 8s var(--ease) 2s infinite;
}
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none; font-size: 0.98rem;
  transition: background-color 0.2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: inherit; cursor: pointer;
  text-decoration: none; transition: background-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.icon-btn:active { transform: scale(0.92); }
.lang-link { width: auto; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.theme-btn .icon { display: none; }
.theme-btn[data-mode="auto"] .t-auto, .theme-btn[data-mode="light"] .t-light, .theme-btn[data-mode="dark"] .t-dark { display: block; }
.theme-btn:not([data-mode]) .t-auto { display: block; }
.menu-btn { display: none; }
.header-cta { margin-left: 4px; }
.toran { position: absolute; inset: 100% 0 auto; height: 34px; pointer-events: none; overflow: hidden; }
.toran svg { width: 100%; height: 34px; }
.toran .swing { transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
.toran .swing:nth-child(2n) { animation-delay: -1.5s; animation-duration: 7s; }
.toran .swing:nth-child(3n) { animation-delay: -3s; }
.is-solid .toran, .page-sub .toran { opacity: 0.85; }

@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; background: var(--c-deep); padding: 12px 16px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.1rem; }
  .icon-btn { width: 38px; height: 38px; }
  .lang-link { width: auto; padding: 0 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--c-on-deep);
  background: radial-gradient(120% 90% at 20% 30%, #8a1328 0%, #4a0714 45%, #1c0306 100%);
  padding: calc(var(--header-h) + 64px) 0 88px;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--c-bg)); z-index: -1; }
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.mandala { position: absolute; width: min(120vw, 1100px); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; opacity: 0.16; color: var(--c-gold); animation: spin 140s linear infinite; }
.yantra { position: absolute; width: min(70vw, 560px); aspect-ratio: 1; right: -6%; top: 8%; opacity: 0.22; color: #f6d27a; }
.yantra path, .yantra circle { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 5s var(--ease) 0.4s forwards; }
.rays { position: absolute; inset: -30%; background: repeating-conic-gradient(from 0deg at 30% 45%, rgba(246, 210, 122, 0.07) 0 6deg, transparent 6deg 18deg); animation: spin 200s linear infinite reverse; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--c-gold); display: block; font-size: 0.62em; margin-top: 0.3em; }
.tagline {
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px;
  background: linear-gradient(90deg, #f6d27a 20%, #fff5d6 40%, #f6d27a 60%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite;
}
.hero-lead { font-size: 1.15rem; color: rgba(251, 237, 228, 0.9); max-width: 36em; }
.hero .chips { margin: 22px 0 28px; }
.hero .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(246, 210, 122, 0.35); color: var(--c-on-deep); backdrop-filter: blur(6px); }
.hero .chip .icon { color: var(--c-gold); }
.hero-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.98rem; }
.hero-links a { color: var(--c-gold); }
.diyas { display: flex; gap: 22px; margin-top: 30px; }
.diya { position: relative; width: 46px; height: 42px; }
.diya::before {
  content: ''; position: absolute; left: 50%; bottom: 20px; width: 14px; height: 24px; translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 75%, #fff7c2 0 20%, #ffc83d 45%, #ff7a1a 75%, transparent 76%);
  box-shadow: 0 0 22px 8px rgba(255, 170, 60, 0.45); transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite alternate;
}
.diya::after { content: ''; position: absolute; inset: auto 0 0; height: 20px; border-radius: 0 0 46px 46px / 0 0 26px 26px; background: linear-gradient(#e8b64a, #9c5c12); }
.diya:nth-child(2)::before { animation-delay: -0.5s; animation-duration: 1.3s; }
.diya:nth-child(3)::before { animation-delay: -0.9s; animation-duration: 1.9s; }
.hero-phones { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 16; animation: float 7s ease-in-out infinite; }
.hero-phones::before {
  content: ''; position: absolute; inset: 10% -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 170, 60, 0.55), transparent); filter: blur(20px); animation: glow 5s ease-in-out infinite alternate;
}
.hero-shots { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(246, 210, 122, 0.35); }
.hero-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 6s linear; }
.hero-shots img.is-active { opacity: 1; transform: scale(1); }
.hero-back { position: absolute; width: 74%; top: 9%; border-radius: 20px; opacity: 0.55; filter: saturate(0.8) blur(0.5px); box-shadow: var(--shadow-lg); z-index: -1; }
.hero-back.l { left: -40%; rotate: -9deg; }
.hero-back.r { right: -40%; rotate: 9deg; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(246, 210, 122, 0.6); border-radius: 14px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c-gold); animation: cue 1.8s ease-in-out infinite; }
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 44px); text-align: center; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-lead { margin-inline: auto; }
  .hero .chips, .badges, .diyas, .hero-links { justify-content: center; }
  .hero-phones { width: min(72vw, 300px); }
  .hero-back { display: none; }
  .scroll-cue { display: none; }
}

/* ---------- trust strip (marquee) ---------- */
.trust { background: var(--c-deep); color: var(--c-on-deep); border-block: 1px solid rgba(246, 210, 122, 0.25); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.trust:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; gap: 44px; padding: 14px 22px; margin: 0; list-style: none; white-space: nowrap; }
.marquee li { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; }
.marquee li::before { content: '✦'; color: var(--c-gold); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section.alt { background: var(--c-bg-2); }
.section.deep { background: linear-gradient(160deg, #3a0811, #1c0306); color: var(--c-on-deep); }
.section.deep .eyebrow { color: var(--c-gold); }
.section.deep a:not(.btn) { color: var(--c-gold); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--c-text-muted); font-size: 1.1rem; }
.section.deep .section-head p { color: rgba(251, 237, 228, 0.85); }
.filigree { display: block; width: 160px; height: 18px; margin: 14px auto 0; color: var(--c-gold-strong); }
.grid { display: grid; gap: 20px; }
.card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c-gold) 60%, var(--c-line)); }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--c-text-muted); margin: 0; }
.card-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-saffron)); color: #fff;
}
.card-ico .icon { width: 26px; height: 26px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Saptashati (book + stats) ---------- */
.book { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 3; margin-inline: auto; perspective: 1400px; }
.book-cover, .book-page {
  position: absolute; top: 0; bottom: 0; width: 50%; border-radius: 6px 16px 16px 6px; padding: 26px 22px;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.book-page.left { left: 0; border-radius: 16px 6px 6px 16px; background: linear-gradient(90deg, #fff4dc, #fbe6c1); color: #4a0714; box-shadow: inset -12px 0 20px -12px rgba(110, 11, 31, 0.35); }
.book-page.right { left: 50%; background: linear-gradient(90deg, #fbe6c1, #fff4dc); color: #4a0714; box-shadow: inset 12px 0 20px -12px rgba(110, 11, 31, 0.35); }
.book-page p { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.7; margin: 0; }
.book-page small { display: block; margin-top: 10px; font-size: 0.78rem; color: #8a4a3a; }
.book-cover {
  left: 50%; transform-origin: 0 50%; transform: rotateY(0deg); backface-visibility: hidden;
  background: linear-gradient(135deg, #8a1328, #4a0714); color: #f6d27a; border: 2px solid #c8912a;
  box-shadow: 10px 16px 30px -12px rgba(0, 0, 0, 0.6); transition: transform 1.6s var(--ease) 0.3s; z-index: 2;
}
.book-cover b { font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; }
.book-cover svg { width: 64px; height: 64px; margin: 0 auto 12px; }
.book.is-open .book-cover, .no-js .book-cover { transform: rotateY(-178deg); }
.book-glow { position: absolute; inset: 12% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(232, 182, 74, 0.45), transparent); filter: blur(16px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.stat { text-align: center; padding: 18px 8px; border-radius: var(--radius-sm); background: var(--c-surface); border: 1px solid var(--c-line); }
.stat b { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.92rem; color: var(--c-text-muted); }
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
.part-chips .chip { opacity: 1; }
.reveal-ready .part-chips .chip { opacity: 0; translate: 0 10px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal-ready .part-chips.is-visible .chip { opacity: 1; translate: 0 0; }

/* ---------- What's new ---------- */
.new-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .new-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .new-grid { grid-template-columns: 1fr; } }
.new-card { overflow: hidden; }
.new-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c-primary), var(--c-gold)); }
.version-pill { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; }

/* ---------- prayers ---------- */
.prayer-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .prayer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prayer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .prayer-grid { grid-template-columns: 1fr; } }
.prayer { padding: 0; overflow: hidden; will-change: transform; }
.prayer figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-maroon); }
.prayer figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.prayer:hover figure img { transform: scale(1.07); }
.prayer figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(28, 3, 6, 0.55)); }
.prayer-body { padding: 18px 20px 22px; }
.prayer-body h3 { font-size: 1.3rem; }
.prayer-body .en { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--c-text-muted); letter-spacing: 0.02em; }
.prayer .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-gold) 22%, transparent); color: var(--c-text); }
.tag.new { background: var(--c-primary); color: #fff; }
.prayer-more { display: grid; place-items: center; text-align: center; padding: 28px; background: linear-gradient(135deg, var(--c-maroon), #2a0508); color: var(--c-on-deep); border-color: transparent; }
.prayer-more p { color: rgba(251, 237, 228, 0.85); }
.prayer-more a { color: var(--c-gold); }

/* ---------- japa: mala + audio ---------- */
.japa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .japa-grid { grid-template-columns: 1fr; } }
.mala-box { text-align: center; }
.mala {
  position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 8px auto 16px; border: 0; border-radius: 50%; padding: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-gold) 22%, transparent), transparent 70%); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mala svg { width: 100%; height: 100%; overflow: visible; }
.mala .thread { fill: none; stroke: var(--c-gold-strong); stroke-width: 1; opacity: 0.6; }
.mala .bead { fill: #a0522d; transition: fill 0.25s, r 0.25s; }
.mala .bead.on { fill: var(--c-primary); }
.mala .bead.cur { fill: var(--c-gold); }
.mala .guru { fill: var(--c-gold-strong); stroke: var(--c-primary); stroke-width: 2; }
.mala-core { position: absolute; inset: 22%; display: grid; place-content: center; border-radius: 50%; background: var(--c-surface); box-shadow: var(--shadow); }
.mala-core b { font-family: var(--font-head); font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.mala-core span { font-size: 0.85rem; color: var(--c-text-muted); }
.mala.is-tapped .mala-core { animation: pop 0.3s var(--ease); }
.mala.is-done .mala-core { animation: bloom 1.2s var(--ease); }
.petal { position: absolute; left: 50%; top: 50%; font-size: 1.4rem; pointer-events: none; animation: petal 1.6s var(--ease) forwards; }
.mala-meta { display: flex; justify-content: center; gap: 20px; color: var(--c-text-muted); margin-bottom: 10px; }
.mala-meta b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.mala-done { color: var(--c-primary); font-weight: 600; }
.audio-card { display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, #3a0811, #1c0306); color: var(--c-on-deep); border-color: rgba(246, 210, 122, 0.3); }
.audio-card h3 { color: #fff; }
.audio-card p { color: rgba(251, 237, 228, 0.85); }
.audio-player { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(246, 210, 122, 0.2); }
.loop-ring { position: relative; width: 84px; height: 84px; flex: none; }
.loop-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.loop-ring circle { fill: none; stroke-width: 6; }
.loop-ring .track { stroke: rgba(255, 255, 255, 0.12); }
.loop-ring .prog { stroke: var(--c-gold); stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 226; animation: ring 4s linear infinite; }
.loop-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; color: var(--c-gold); }
.wave { display: flex; align-items: center; gap: 4px; height: 56px; flex: 1; }
.wave i { flex: 1; max-width: 8px; height: 100%; border-radius: 4px; background: linear-gradient(var(--c-gold), var(--c-saffron)); transform-origin: 50% 50%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-duration: 0.9s; }
.wave i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -0.3s; }
.wave i:nth-child(4n) { animation-delay: -0.6s; }
.wave i:nth-child(5n) { animation-duration: 1.1s; animation-delay: -0.8s; }
.audio-card .ticks li::before { background-color: var(--c-gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a0508' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.audio-card .ticks { margin: 0; }
.audio-card .btn { align-self: flex-start; }

/* ---------- reader demo ---------- */
.reader-phone {
  position: relative; width: min(100%, 340px); margin-inline: auto; aspect-ratio: 9 / 17; border-radius: 34px; padding: 14px;
  background: #1a0508; box-shadow: var(--shadow-lg), inset 0 0 0 2px #4a1a22;
}
.reader-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: #fff8ec; color: #3a0811; }
:root[data-theme="dark"] .reader-screen { background: #1f060b; color: #fbede4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reader-screen { background: #1f060b; color: #fbede4; } }
.reader-title { position: absolute; inset: 0 0 auto; z-index: 2; padding: 14px 16px 10px; background: inherit; font-family: var(--font-head); font-size: 1rem; border-bottom: 1px solid rgba(200, 145, 42, 0.35); text-align: center; }
.reader-scroll { position: absolute; inset: 48px 0 70px; overflow: hidden; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.reader-text { padding: 0 18px; font-family: var(--font-head); font-size: var(--reader-font, 18px); line-height: 1.85; text-align: center; animation: autoscroll var(--reader-dur, 16s) linear infinite; }
.reader-text p { margin: 0 0 1.1em; }
.reader-text .num { display: block; font-family: var(--font-body); font-size: 0.7em; color: var(--c-gold-strong); }
.reader-screen.is-paused .reader-text { animation-play-state: paused; }
.reader-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 10px; border-radius: 999px; background: #6e0b1f; color: #fff; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5);
}
.reader-bar button { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.reader-bar button:hover { background: rgba(255, 255, 255, 0.26); }
.reader-bar output { font-size: 0.85rem; min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.reader-controls { display: grid; gap: 14px; margin: 24px 0; padding: 20px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.reader-controls label { display: flex; justify-content: space-between; font-weight: 600; }
.reader-controls input[type="range"] { width: 100%; accent-color: var(--c-primary); height: 32px; }

/* ---------- features ---------- */
.feature-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .feature-grid { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: 0.97rem; }
.feature:hover .card-ico { animation: wiggle 0.6s var(--ease); }

/* ---------- screenshots carousel ---------- */
.carousel { position: relative; outline: none; }
.car-track { position: relative; height: clamp(440px, 62vw, 620px); display: grid; place-items: center; touch-action: pan-y; }
.car-slide {
  position: absolute; width: clamp(230px, 30vw, 330px); border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 22px;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s; opacity: 0; transform: scale(0.7); pointer-events: none;
}
.car-slide img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); }
.car-slide[data-pos="active"] { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.car-slide.is-before { opacity: 0.55; transform: translateX(-72%) scale(0.82) rotateY(12deg); pointer-events: auto; filter: saturate(0.7); cursor: pointer; }
.car-slide.is-after { opacity: 0.55; transform: translateX(72%) scale(0.82) rotateY(-12deg); pointer-events: auto; filter: saturate(0.7); cursor: pointer; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.car-btn:hover { border-color: var(--c-gold); transform: scale(1.06); }
.car-dots { display: flex; gap: 0; }
/* 24px tap target (WCAG 2.5.8); the visible dot is the ::before */
.car-dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transition: width 0.3s var(--ease); }
.car-dots button::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; bottom: 7px; border-radius: 999px; background: var(--c-line); transition: background-color 0.3s; }
.car-dots button[aria-current="true"] { width: 42px; }
.car-dots button[aria-current="true"]::before { background: var(--c-primary); }
.car-caption { text-align: center; color: var(--c-text-muted); margin: 14px auto 0; max-width: 40em; min-height: 3.4em; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 480px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(15, 2, 4, 0.85); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 20px; }
.lightbox button { position: absolute; top: 10px; right: 10px; }
.lightbox[open] { animation: zoom-in 0.35s var(--ease); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 20px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-btn); color: var(--c-on-btn); font-weight: 700; font-size: 1.2rem;
}

/* ---------- privacy promise ---------- */
.promise { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.promise-ico { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c-gold) 40%, transparent), transparent 70%); color: var(--c-primary); }
.promise-ico .icon { width: 60px; height: 60px; stroke-width: 1.4; }
.promise .ticks { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.promise small { color: var(--c-text-muted); display: block; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; text-align: center; } .promise-ico { margin-inline: auto; } .promise .ticks { grid-template-columns: 1fr; text-align: left; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item[open] { border-color: var(--c-gold); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 18px; height: 18px;
  background: linear-gradient(var(--c-primary), var(--c-primary)) center / 100% 2px no-repeat, linear-gradient(var(--c-primary), var(--c-primary)) center / 2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--c-text-muted); }
.faq-item[open] p { animation: fade-up 0.4s var(--ease); }

/* ---------- download CTA ---------- */
.download { position: relative; overflow: hidden; text-align: center; }
.download::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 150, 60, 0.35), transparent); animation: aarti 6s ease-in-out infinite alternate; pointer-events: none;
}
.download-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; text-align: left; }
.download .badges { margin-top: 24px; }
.qr { background: #fff; padding: 14px; border-radius: 20px; box-shadow: var(--shadow-lg); text-align: center; color: #2a0508; font-size: 0.85rem; }
.qr img { width: 168px; height: 168px; margin-bottom: 6px; }
@media (max-width: 800px) { .download-in { grid-template-columns: 1fr; text-align: center; } .download .badges { justify-content: center; } .qr { display: none; } }

/* ---------- community / share ---------- */
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.btn-wa { background: #0b7a3e; color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--c-deep); color: var(--c-on-deep); box-shadow: var(--shadow-lg); transition: opacity 0.3s, translate 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; translate: -50% 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-deep); color: var(--c-on-deep); padding: 64px 0 28px; position: relative; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--c-gold); margin-bottom: 12px; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(251, 237, 228, 0.88); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--c-gold); }
.site-footer p { color: rgba(251, 237, 228, 0.78); font-size: 0.95rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--font-head); font-size: 1.4rem; color: #fff; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(246, 210, 122, 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: rgba(251, 237, 228, 0.7); }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-btn); color: var(--c-on-btn); box-shadow: var(--shadow-lg); display: grid; place-items: center;
  opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity 0.3s, translate 0.3s var(--ease);
}
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }

/* ---------- sub pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 56px) 0 64px; color: var(--c-on-deep); background: radial-gradient(120% 100% at 80% 0%, #8a1328, #3a0811 55%, #1c0306); }
.page-hero .mandala { opacity: 0.12; left: 85%; }
.page-hero h1 { color: #fff; max-width: 20em; }
.page-hero p { max-width: 42em; color: rgba(251, 237, 228, 0.9); font-size: 1.12rem; }
.page-hero .btn-ghost { color: var(--c-on-deep); border-color: rgba(246, 210, 122, 0.5); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.92rem; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: 0.7; }
.crumbs a { color: var(--c-gold); }
.crumbs [aria-current] { color: rgba(251, 237, 228, 0.8); }
.prose { max-width: 70ch; }
.prose p { font-size: 1.08rem; }

/* timeline */
.timeline-groups { display: grid; gap: 40px; }
.tl-group h3 { display: flex; align-items: center; gap: 10px; }
.tl-group h3 .pill { font-family: var(--font-body); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 10px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--c-line); }
.timeline::after {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--c-primary), var(--c-gold)); transform-origin: top; transform: scaleY(1);
}
.reveal-ready .timeline::after { transform: scaleY(0); transition: transform 1.6s var(--ease); }
.reveal-ready .timeline.is-visible::after { transform: scaleY(1); }
@supports (animation-timeline: view()) {
  .reveal-ready .timeline::after { transition: none; animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
}
.timeline li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 18px; width: 13px; height: 13px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); z-index: 1; }
.timeline .tl-name { font-family: var(--font-head); font-size: 1.08rem; }
.timeline .tl-en { display: block; font-size: 0.85rem; color: var(--c-text-muted); }
.timeline .tl-count { align-self: center; font-size: 0.88rem; color: var(--c-text-muted); white-space: nowrap; }
.timeline .tl-count b { color: var(--c-primary); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0; }
.formats li { padding: 8px 16px; border-radius: 12px; font-weight: 700; letter-spacing: 0.04em; background: var(--c-surface); border: 1px solid var(--c-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.3s); }
.shots-row { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.shots-row img { width: min(260px, 42vw); border-radius: 20px; box-shadow: var(--shadow-lg); }
.shots-row img:nth-child(2) { translate: 0 28px; }
.note-box { padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--c-gold-strong); background: color-mix(in srgb, var(--c-gold) 10%, var(--c-surface)); }

/* ---------- legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; padding-block: 56px 80px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); font-size: 0.95rem; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.toc h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--c-text-muted); text-decoration: none; }
.toc a:hover { color: var(--c-link); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.8em; padding-top: 0.4em; border-top: 1px solid var(--c-line); }
.legal-body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.legal-body ul { display: grid; gap: 6px; }
.legal-body .updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text-muted); font-size: 0.92rem; }
.legal-body .contact-box, .legal-body .highlight { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--c-surface); border-left: 4px solid var(--c-gold-strong); margin: 1em 0; }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; max-height: none; } }

/* ---------- reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal="left"] { translate: -30px 0; }
.reveal-ready [data-reveal="right"] { translate: 30px 0; }
.reveal-ready [data-reveal="zoom"] { translate: 0 0; scale: 0.94; transition-property: opacity, scale; }
.reveal-ready [data-reveal].is-visible { opacity: 1; translate: 0 0; scale: 1; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

/* ---------- keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes glow { from { opacity: 0.55; scale: 0.95; } to { opacity: 1; scale: 1.05; } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); opacity: 0.95; } 50% { transform: scale(0.92, 1.08) rotate(2deg); } 100% { transform: scale(1.05, 0.94) rotate(-1deg); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { 50% { scale: 1.08; } }
@keyframes bloom { 0% { box-shadow: 0 0 0 0 rgba(232, 182, 74, 0.9); } 100% { box-shadow: 0 0 0 40px rgba(232, 182, 74, 0); } }
@keyframes petal { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(200deg); } }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes autoscroll { from { transform: translateY(40%); } to { transform: translateY(-100%); } }
@keyframes wiggle { 30% { rotate: -8deg; } 60% { rotate: 6deg; } }
@keyframes zoom-in { from { opacity: 0; scale: 0.92; } }
@keyframes fade-up { from { opacity: 0; translate: 0 -6px; } }
@keyframes aarti { from { opacity: 0.6; scale: 0.9; } to { opacity: 1; scale: 1.08; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bob { 50% { translate: 0 -4px; } }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .mandala, .rays, .toran .swing, .wave i, .marquee, .hero-phones, .formats li { animation: none !important; }
  .marquee { flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; white-space: normal; gap: 12px 28px; }
  .reader-text { animation: none !important; }
  .yantra path, .yantra circle { stroke-dashoffset: 0; }
  .book-cover { transform: rotateY(-178deg); }
  .particles { display: none; }
}
.fx-off .particles, .fx-off .rays { display: none; }
.fx-off .mandala { animation: none; }

/* ---------- print (legal pages) ---------- */
@media print {
  .site-header, .site-footer, .toc, .to-top, .skip, .toran, .page-hero .mandala { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { padding: 0 0 12pt; background: none; color: #000; }
  .page-hero h1, .page-hero p, .crumbs a, .crumbs [aria-current] { color: #000; }
  .legal-wrap { display: block; padding: 0; }
  .legal-body { max-width: none; }
  a { color: #000; }
  .legal-body a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}

.sprite{position:absolute;width:0;height:0;overflow:hidden}
