/* Hanuman Chalisa App — website v2 (plan: Docs/website-v2-redesign-plan.md §8)
   No build step. Colours only via the --c-* tokens (T11 checks their contrast). */

:root {
  --c-primary: #FF5722;
  --c-primary-strong: #E64A19;
  --c-gold: #FFD740;
  --c-sindoor: #B3261E;
  --c-bg: #FFF8EC;
  --c-surface: #FFFFFF;
  --c-text: #2A1A12;
  --c-text-muted: #6B5446;
  --c-link: #B23C0E;
  --c-btn: #BF360C;
  --c-on-btn: #FFFFFF;
  --c-saffron: #B8360B;
  --c-on-saffron: #FFFFFF;
  --c-deep: #2A0E06;
  --c-line: rgb(107 84 70 / 0.16);
  --c-glow: rgb(255 87 34 / 0.18);
  --c-card-shadow: 0 1px 2px rgb(42 26 18 / 0.06), 0 8px 28px rgb(42 26 18 / 0.08);

  --f-head: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', Georgia, serif;
  --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-primary: #FF7043;
    --c-primary-strong: #FF8A65;
    --c-gold: #FFD54F;
    --c-sindoor: #FF5252;
    --c-bg: #1E0A06;
    --c-surface: #2B120B;
    --c-text: #FBEFE3;
    --c-text-muted: #CBB5A5;
    --c-link: #FFAB91;
    --c-btn: #FF7043;
    --c-on-btn: #1E0A06;
    --c-saffron: #7A2408;
    --c-on-saffron: #FFFFFF;
    --c-deep: #140603;
    --c-line: rgb(251 239 227 / 0.12);
    --c-glow: rgb(255 112 67 / 0.14);
    --c-card-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

/* Self-hosted heading font (OFL, fonts/OFL.txt). Browsers fetch a subset only when a glyph needs it. */
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tiro-devanagari-hindi-deva.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tiro-devanagari-hindi-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2022, U+2026, U+20B9;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1rem/1.65 var(--f-body);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.25; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--c-btn); color: var(--c-on-btn); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Avoid a Hindi→English flash for returning English readers (head script adds .lang-wait). */
html.lang-wait body { visibility: hidden; animation: lang-reveal 0s 1.2s forwards; }
@keyframes lang-reveal { to { visibility: visible; } }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--c-btn); color: var(--c-on-btn); font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px var(--c-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--c-glow); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--c-text); border: 1.5px solid var(--c-line); box-shadow: none; }
.badge-link { display: inline-block; border-radius: 10px; transition: transform 0.25s var(--ease); }
.badge-link:hover { transform: translateY(-2px) scale(1.02); }
.badge-link img { width: 180px; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; background: rgb(255 255 255 / 0.12); color: #FFFFFF;
  border: 1px solid rgb(255 255 255 / 0.28); backdrop-filter: blur(6px);
}
.chip::before { content: '✓'; color: var(--c-gold); }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.02em; background: var(--c-saffron); color: var(--c-on-saffron);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #FFFFFF; transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.is-solid, .page-sub .site-header {
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
  color: var(--c-text);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { flex: none; display: block; border-radius: 8px; }
.logo img { width: 148px; height: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.25)); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { background: var(--c-glow); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-nav + .header-actions { margin-left: 0; }
.lang-toggle, .menu-btn {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid currentColor;
  background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 0 12px; font-weight: 700; font-size: 0.85rem;
}
.lang-toggle span { opacity: 0.55; }
html[lang='hi'] .lang-toggle .lt-hi, html[lang='en'] .lang-toggle .lt-en { opacity: 1; }
.lang-toggle .lt-sep { opacity: 0.4; }
.menu-btn { display: none; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; }
.header-cta { display: none; }

@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    background: var(--c-bg); color: var(--c-text); box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.35s var(--ease); visibility: hidden;
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 20px; }
  .site-nav a { padding: 14px 8px; border-radius: 10px; border-bottom: 1px solid var(--c-line); }
  .header-actions { margin-left: auto; }
}
@media (min-width: 1100px) { .header-cta { display: inline-flex; min-height: 40px; padding: 8px 18px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px); display: grid; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 72px; color: #FFFFFF; background: var(--c-deep);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-bg img { animation: hero-zoom 30s ease-in-out infinite alternate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 70% 40%, rgb(255 171 64 / 0.25), transparent 70%),
    linear-gradient(180deg, rgb(20 6 3 / 0.55) 0%, rgb(42 14 6 / 0.35) 45%, rgb(20 6 3 / 0.92) 100%),
    linear-gradient(90deg, rgb(20 6 3 / 0.75) 0%, transparent 70%);
}
.hero-rays {
  position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; z-index: -2;
  translate: -50% -50%; opacity: 0.22; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgb(255 215 64 / 0.5) 0deg 3deg, transparent 3deg 15deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  animation: spin 160s linear infinite;
}
.mandala {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  background: var(--c-gold);
  mask: url(../images/mandala.svg) center / contain no-repeat;
  -webkit-mask: url(../images/mandala.svg) center / contain no-repeat;
}
.hero .mandala { width: min(900px, 130vw); right: -20%; top: 50%; translate: 0 -50%; opacity: 0.14; animation: spin 120s linear infinite; }
.particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4.5vw, 4.4rem); margin-bottom: 0.15em;
  background: linear-gradient(100deg, #FFFFFF 20%, var(--c-gold) 50%, #FFFFFF 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite; text-shadow: none;
}
.hero-tagline { font-family: var(--f-head); font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); color: #FFE9B8; margin-bottom: 0.6em; }
.hero-sub { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); max-width: 36em; color: rgb(255 255 255 / 0.9); }
.hero .chips { margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 8px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 8px; height: 53px; padding: 0 16px 0 12px; box-sizing: border-box;
  background: #000000; color: #FFFFFF; border: 1px solid #A6A6A6; border-radius: 10px; opacity: 0.8; cursor: default;
}
.store-soon svg { display: block; flex: none; }
.store-soon-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-soon-text small { font-size: 0.7rem; color: rgb(255 255 255 / 0.85); }
.store-soon-text span { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; color: rgb(255 255 255 / 0.8);
  font-size: 0.8rem; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero-scroll::after { content: ''; width: 2px; height: 28px; background: linear-gradient(currentColor, transparent); animation: drip 2s ease-in-out infinite; }

/* hero screenshots: the Play images already show a phone, so they are rounded cards that crossfade */
.shots { position: relative; width: min(300px, 72vw); aspect-ratio: 9 / 16; margin-inline: auto; animation: float 6s ease-in-out infinite; }
.shots::before {
  content: ''; position: absolute; inset: -18% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 193 7 / 0.5), rgb(255 87 34 / 0.15) 45%, transparent 70%);
  filter: blur(10px); animation: glow 5s ease-in-out infinite alternate;
}
.shots img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.18);
  opacity: 0; transform: scale(0.96) rotate(-1.5deg); transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.shots img.is-active { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow-x: clip; }
.section--alt { background: var(--c-surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p { color: var(--c-text-muted); font-size: 1.08rem; margin: 0; }
.section-head h2::after {
  content: '॥'; display: block; font-size: 1.1rem; margin-top: 8px; color: var(--c-primary);
  letter-spacing: 0.3em;
}
.card {
  background: var(--c-surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--c-card-shadow); border: 1px solid var(--c-line);
}
.section--alt .card { background: var(--c-bg); }

/* reveal on scroll (JS adds .reveal-ready to <html> so no-JS readers see everything) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* trust strip */
.trust { background: var(--c-saffron); color: var(--c-on-saffron); padding: 18px 0; overflow: hidden; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.trust li::before { content: '✦'; color: var(--c-gold); }

/* what's new */
.new-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .new-grid { grid-template-columns: 1fr 1fr; } }
.new-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.new-kicker .ver { font-weight: 700; color: var(--c-text-muted); }
.new-points li { position: relative; padding: 10px 0 10px 40px; border-bottom: 1px dashed var(--c-line); }
.new-points li::before {
  content: '🎙'; position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.9rem; background: var(--c-glow);
}
.new-points li:nth-child(2)::before { content: '🎯'; }
.new-points li:nth-child(3)::before { content: '🔔'; }
.new-points li:nth-child(4)::before { content: '🔒'; }
.new-shot { position: relative; width: min(320px, 80%); margin-inline: auto; }
.new-shot img { border-radius: 28px; box-shadow: 0 24px 60px rgb(42 14 6 / 0.35); }
.new-shot .mandala { inset: -25%; width: 150%; opacity: 0.12; background: var(--c-primary); animation: spin 90s linear infinite reverse; }
.mini-cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .mini-cards { grid-template-columns: repeat(3, 1fr); } }
.mini-cards h3 { margin-bottom: 0.3em; }
.mini-cards p { color: var(--c-text-muted); margin: 0; }

/* mala demo */
.mala-section { background: radial-gradient(80% 60% at 50% 40%, var(--c-glow), transparent 70%), var(--c-bg); overflow: hidden; }
.mala-wrap { display: grid; justify-items: center; gap: 20px; }
.mala {
  position: relative; width: min(380px, 88vw); aspect-ratio: 1; border-radius: 50%;
  border: 0; background: none; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mala svg { width: 100%; height: 100%; overflow: visible; }
.mala .bead { fill: color-mix(in srgb, var(--c-text-muted) 30%, transparent); transition: fill 0.3s, r 0.3s; }
.mala .bead.on { fill: var(--c-primary); }
.mala .bead.cur { fill: var(--c-gold); r: 6.5; filter: drop-shadow(0 0 6px var(--c-gold)); }
.mala .guru { fill: var(--c-sindoor); }
.mala-core {
  position: absolute; inset: 22%; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, var(--c-primary), var(--c-saffron));
  color: var(--c-on-saffron); box-shadow: 0 16px 40px var(--c-glow), inset 0 -8px 20px rgb(0 0 0 / 0.2);
  transition: transform 0.15s;
}
.mala:active .mala-core, .mala.is-tapped .mala-core { transform: scale(0.95); }
.mala-om { font-family: var(--f-head); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; }
.mala-num { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.mala.is-done .mala-core { animation: bloom 1.2s var(--ease); }
.mala-stats { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.stat { min-width: 110px; text-align: center; padding: 10px 16px; }
.stat b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--c-text-muted); font-size: 0.9rem; }
.mala-done { font-family: var(--f-head); font-size: 1.4rem; color: var(--c-link); min-height: 1.6em; text-align: center; }
.mala-hint { color: var(--c-text-muted); font-size: 0.9rem; margin: 0; }
.petal { position: absolute; left: 50%; top: 50%; font-size: 1.2rem; pointer-events: none; animation: petal 1.6s ease-out forwards; }

/* prayers */
.paath-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.paath-card { padding: 0; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); transform-style: preserve-3d; }
.paath-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px var(--c-glow); }
.paath-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.paath-card div { padding: 16px 18px 20px; }
.paath-card h3 { margin-bottom: 0.2em; }
.paath-card p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

/* features */
.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.feat { display: flex; gap: 14px; align-items: flex-start; transition: transform 0.3s var(--ease), border-color 0.3s; }
.feat:hover { transform: translateY(-4px); border-color: var(--c-primary); }
.feat-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem;
  background: linear-gradient(135deg, var(--c-glow), transparent); border: 1px solid var(--c-line);
}
.feat h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.feat p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

/* screens carousel */
.carousel { position: relative; }
.car-track { position: relative; height: clamp(420px, 100vw, 620px); perspective: 1200px; }
.car-slide {
  position: absolute; left: 50%; top: 0; width: clamp(220px, 58vw, 320px); margin: 0; padding: 0; border: 0; background: none;
  translate: -50% 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), filter 0.7s; border-radius: 26px;
}
.car-slide img { border-radius: 26px; box-shadow: 0 24px 50px rgb(42 14 6 / 0.3); width: 100%; }
.car-slide[data-pos='active'] { transform: translateX(0) scale(1); z-index: 3; opacity: 1; }
.car-slide[data-pos='side'] { z-index: 2; opacity: 0.55; filter: saturate(0.7); }
.car-slide[data-pos='side'].is-before { transform: translateX(-62%) scale(0.82) rotateY(18deg); }
.car-slide[data-pos='side'].is-after { transform: translateX(62%) scale(0.82) rotateY(-18deg); }
.car-slide[data-pos='far'] { opacity: 0; transform: scale(0.6); z-index: 1; pointer-events: none; }
.car-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.car-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--c-line); background: var(--c-surface);
  display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--c-card-shadow);
}
.car-btn:hover { border-color: var(--c-primary); }
.car-dots { display: flex; gap: 6px; }
.car-dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 0; background: var(--c-line); transition: width 0.3s, background 0.3s; }
.car-dots button[aria-current='true'] { width: 30px; background: var(--c-primary); }
.car-caption { text-align: center; color: var(--c-text-muted); margin-top: 12px; min-height: 1.6em; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(20 6 3 / 0.85); backdrop-filter: blur(4px); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 24px; }
.lightbox .car-btn { position: absolute; top: 8px; right: 8px; }

/* steps */
.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; position: relative; padding-top: 40px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -22px; left: 50%; translate: -50% 0;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-btn); color: var(--c-on-btn); font-weight: 700; font-size: 1.3rem; box-shadow: 0 0 0 6px var(--c-bg);
}
.section--alt .step::before { box-shadow: 0 0 0 6px var(--c-surface); }
.step p { margin: 0; color: var(--c-text-muted); }

/* privacy promise */
.promise { display: grid; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--c-surface), var(--c-bg)); }
@media (min-width: 800px) { .promise { grid-template-columns: auto 1fr; padding: 40px; } }
.promise-seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--c-glow); margin-inline: auto; }
.promise ul { display: grid; gap: 8px; margin-bottom: 16px; }
@media (min-width: 700px) { .promise ul { grid-template-columns: 1fr 1fr; } }
.promise li { padding-left: 28px; position: relative; }
.promise li::before { content: '✓'; position: absolute; left: 0; color: var(--c-link); font-weight: 700; }
.promise h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--c-link), var(--c-link)) center / 12px 2px no-repeat,
    linear-gradient(var(--c-link), var(--c-link)) center / 2px 12px no-repeat,
    var(--c-glow);
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--c-text-muted); }

/* download CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; color: #FFFFFF; background: var(--c-deep); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0.55; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 6 3 / 0.92), rgb(20 6 3 / 0.55) 60%, rgb(20 6 3 / 0.3)); }
.cta .mandala { width: 520px; left: -160px; bottom: -200px; opacity: 0.12; animation: spin 100s linear infinite; }
.cta-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .cta-grid { grid-template-columns: 1fr auto; } }
.cta h2 { color: var(--c-gold); }
.cta p { color: rgb(255 255 255 / 0.9); font-size: 1.1rem; }
.qr { background: #FFFFFF; color: #2A1A12; border-radius: var(--radius); padding: 18px; text-align: center; width: 220px; justify-self: center; box-shadow: 0 20px 50px rgb(0 0 0 / 0.4); }
.qr img { width: 184px; height: 184px; image-rendering: pixelated; }
.qr p { margin: 8px 0 0; font-size: 0.9rem; font-weight: 600; color: #2A1A12; }
@media (max-width: 799px) { .qr { display: none; } }

/* footer */
.site-footer { background: var(--c-deep); color: #F3E3D6; padding: 56px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #FFCCBC; }
.site-footer li a, .footer-brand a {
  text-decoration: none; display: inline-block; padding: 2px 8px; margin-inline: -8px; border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.site-footer li a:hover, .site-footer li a:focus-visible,
.footer-brand a:hover, .footer-brand a:focus-visible {
  background: rgb(255 204 188 / 0.1); color: #FFE0D4; text-decoration: none;
}
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.site-footer h2 { font-size: 1.1rem; color: var(--c-gold); margin-bottom: 0.6em; }
.site-footer li { margin-bottom: 6px; }
.footer-brand img { width: 170px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.14); margin-top: 36px; padding-top: 20px; text-align: center; color: #D9C3B3; }
.footer-bottom p { margin: 0; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--c-btn); color: var(--c-on-btn); font-size: 1.3rem; box-shadow: 0 8px 24px var(--c-glow);
  opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity 0.3s, translate 0.3s;
}
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }

/* ---------- sub pages (legend + legal) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #FFFFFF; background: var(--c-deep);
  padding: calc(var(--header-h) + 48px) 0 48px;
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 80% 20%, rgb(255 112 67 / 0.45), transparent 70%); }
.page-hero .mandala { width: 520px; right: -140px; top: -120px; opacity: 0.13; animation: spin 120s linear infinite; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); margin: 0; color: #FFFFFF; }
.page-hero p { margin: 10px 0 0; color: rgb(255 255 255 / 0.85); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; list-style: none; font-size: 0.9rem; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: 0.7; }
.crumbs a { color: #FFCCBC; }
.prose { max-width: 760px; margin-inline: auto; padding: 48px 0 72px; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--c-card-shadow); width: 100%; }
.prose blockquote {
  margin: 28px 0; padding: 22px 26px; border-radius: var(--radius); border-left: 5px solid var(--c-primary);
  background: var(--c-surface); box-shadow: var(--c-card-shadow);
}
.prose blockquote p:first-child { font-family: var(--f-head); font-size: 1.3rem; color: var(--c-link); }
.prose .toc { padding: 20px 24px; margin-bottom: 32px; }
.prose .toc h2 { font-size: 1.2rem; margin: 0 0 8px; }
.prose .toc ol { margin: 0; columns: 2 220px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.effective { color: var(--c-text-muted); font-size: 0.95rem; }
.legend-cta { text-align: center; margin-top: 40px; }
.legend-cta p { color: var(--c-text-muted); }

/* ---------- keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12) translateY(-2%); } }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes glow { from { opacity: 0.6; scale: 0.95; } to { opacity: 1; scale: 1.05; } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes bloom { 0% { box-shadow: 0 0 0 0 rgb(255 215 64 / 0.8); } 100% { box-shadow: 0 0 0 40px rgb(255 215 64 / 0); } }
@keyframes petal { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(220deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .particles, .hero-rays { display: none; }
}
