/* ============================================================
   Om Mani – Global Buddhism · marketing site
   Brand palette mirrors the app (Assets.xcassets/Color)
   ============================================================ */

:root {
  --primary-100: #ffeaca;
  --primary-200: #ffdca0;
  --primary-300: #ffca7a;
  --primary-400: #e2ac5b;
  --primary-500: #b9873c;
  --primary-600: #906524;
  --primary-700: #674512;
  --accent: #ffc12b;
  --green: #16b364;

  --bg: #fffbf4;
  --cream: #fff7ec;
  --cream-deep: #fdeed6;
  --card: #ffffff;

  --ink: #2b2317;
  --ink-soft: #6b5b40;
  --ink-mute: #9a886a;
  --line: #efe2cb;

  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(103, 69, 18, 0.07);
  --shadow-md: 0 14px 40px rgba(103, 69, 18, 0.12);
  --shadow-lg: 0 30px 80px rgba(103, 69, 18, 0.18);

  --maxw: 1140px;
  --radius: 22px;
  --radius-sm: 14px;

  --serif: "Cormorant Garamond", "Be Vietnam Pro", Georgia, serif;
  --sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- language toggle (CSS-driven, no flash) ---------- */
html[data-lang="vi"] .en { display: none !important; }
html[data-lang="en"] .vi { display: none !important; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-100);
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow svg { width: 15px; height: 15px; }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600; letter-spacing: -0.5px;
  color: var(--primary-700);
}
.section-head p { font-size: 19px; color: var(--ink-soft); margin: 16px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 10px 24px rgba(144, 101, 36, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(144, 101, 36, 0.42); }
.btn-ghost { color: var(--primary-700); background: var(--white); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.appstore svg { width: 30px; height: 30px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore .as-small { font-size: 11px; opacity: .85; letter-spacing: .02em; }
.appstore .as-big { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 244, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand .bn { font-size: 17px; color: var(--primary-700); letter-spacing: -.2px; white-space: nowrap; }
.brand .bn small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-mute); letter-spacing: .04em; }
.nav-links { display: flex; gap: 26px; margin-left: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--primary-600); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; background: var(--primary-100); border-radius: 999px; padding: 3px;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--primary-600);
  padding: 6px 13px; border-radius: 999px; transition: all .18s ease;
}
.lang-toggle button.active { background: var(--white); color: var(--primary-700); box-shadow: var(--shadow-sm); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 540px at 75% -8%, var(--primary-100), transparent 60%),
    radial-gradient(900px 500px at 5% 18%, #fff3dd, transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6.6vw, 78px);
  font-weight: 600; letter-spacing: -1.2px; color: var(--primary-700);
}
.hero h1 .om { color: var(--primary-500); }
.hero .lead { font-size: 21px; color: var(--ink-soft); margin: 22px 0 14px; max-width: 540px; }
.hero-sub { font-size: 16px; color: var(--ink-mute); margin: 0 0 30px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.rate-txt { font-size: 14px; color: var(--ink-soft); }
.rate-txt b { color: var(--ink); }
.meta-div { width: 1px; height: 26px; background: var(--line); }
.meta-chip { font-size: 14px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.meta-chip svg { width: 16px; height: 16px; color: var(--green); }

/* phone mockup */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,172,91,.35), transparent 68%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; filter: blur(6px);
}
.phone {
  position: relative; z-index: 1;
  width: 300px; aspect-ratio: 300 / 620;
  background: #1c1409; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.phone .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f6e9cf; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 26px; background: #1c1409; border-radius: 0 0 16px 16px; z-index: 2;
}

/* ---------- trust strip ---------- */
.trust { background: var(--primary-700); color: #fff; padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust .n { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--primary-200); line-height: 1; }
.trust .l { font-size: 14px; opacity: .85; margin-top: 7px; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features { background: linear-gradient(180deg, var(--bg), var(--cream)); }
.feat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.feat-card {
  flex: 1 1 300px; max-width: 360px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.feat-ic {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  position: relative; margin-bottom: 22px; color: var(--primary-600);
  background: radial-gradient(125% 125% at 30% 22%, #fff7e6 0%, var(--primary-100) 46%, #ffd9a0 100%);
  box-shadow:
    0 9px 24px rgba(185,135,60,.30),
    inset 0 1.5px 2px rgba(255,255,255,.95),
    inset 0 -4px 9px rgba(185,135,60,.20);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.feat-ic::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,201,122,.55), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.feat-card:hover .feat-ic { transform: translateY(-3px) scale(1.06); }
.feat-card:hover .feat-ic::after { opacity: 1; }
.feat-ic svg { width: 27px; height: 27px; }
.feat-card h3 { font-size: 20px; color: var(--primary-700); margin-bottom: 9px; font-weight: 600; }
.feat-card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   SPOTLIGHT (alternating image rows)
   ============================================================ */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot + .spot { margin-top: 92px; }
.spot.rev .spot-media { order: 2; }
.spot-media { position: relative; }
.spot-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11; object-fit: cover;
}
.spot-media .frame-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary-700);
  box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 8px;
}
.spot-media .frame-tag svg { width: 15px; height: 15px; }
.spot-body h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); color: var(--primary-700); }
.spot-body p { font-size: 18px; color: var(--ink-soft); margin: 18px 0 22px; }
.spot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.spot-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.spot-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-100); color: var(--primary-600); display: grid; place-items: center; margin-top: 1px;
}
.spot-list .tick svg { width: 13px; height: 13px; }

/* ============================================================
   AI HIGHLIGHT (dark gold band)
   ============================================================ */
.ai-band { position: relative; overflow: hidden; color: #fff; }
.ai-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500) 55%, var(--primary-400));
}
.ai-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.ai-band .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.ai-band h2 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); }
.ai-band p { font-size: 18px; opacity: .92; margin: 18px 0 0; }
.ai-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.ai-chips span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.ai-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(8px);
}
.ai-card .q { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.4; }
.ai-card .div { height: 1px; background: rgba(255,255,255,.2); margin: 18px 0; }
.ai-card .row { display: flex; gap: 12px; margin-bottom: 14px; }
.ai-card .row:last-child { margin-bottom: 0; }
.ai-card .row .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; min-width: 86px; padding-top: 2px; }
.ai-card .row .v { font-size: 15px; opacity: .95; }

/* ============================================================
   VALUES
   ============================================================ */
.values { background: var(--cream); }
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.val {
  text-align: center; padding: 30px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.val .vic {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary-100); color: var(--primary-600);
}
.val .vic svg { width: 26px; height: 26px; }
.val h3 { font-size: 17px; color: var(--primary-700); margin-bottom: 6px; }
.val p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; text-align: center; padding: 110px 0; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 360px at 50% 0%, var(--primary-100), transparent 62%),
    var(--bg);
}
.cta h2 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 60px); color: var(--primary-700); max-width: 760px; margin: 0 auto; }
.cta p { font-size: 19px; color: var(--ink-soft); margin: 20px auto 34px; max-width: 540px; }
.cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--primary-700); color: #fff; padding: 56px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer .brand .bn { color: #fff; }
.footer .brand .bn small { color: rgba(255,255,255,.65); }
.footer .fdesc { max-width: 320px; font-size: 14px; opacity: .8; margin: 16px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .65; margin: 0 0 14px; font-weight: 600; }
.footer-cols a, .footer-cols span { display: block; font-size: 15px; opacity: .9; margin-bottom: 10px; }
.footer-cols a:hover { opacity: 1; color: var(--primary-200); }
.footer-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; opacity: .7; }

/* ============================================================
   DOC PAGES (privacy / support)
   ============================================================ */
.doc-hero { padding: 60px 0 40px; background: linear-gradient(180deg, var(--primary-100), var(--bg)); text-align: center; }
.doc-hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); color: var(--primary-700); }
.doc-hero p { color: var(--ink-soft); margin: 12px 0 0; }
.doc { max-width: 800px; margin: 0 auto; padding: 56px 24px 90px; }
.doc h2 { font-family: var(--serif); font-size: 28px; color: var(--primary-700); margin: 42px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; color: var(--ink); margin: 26px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc a { color: var(--primary-600); text-decoration: underline; }
.doc .lead { font-size: 18px; color: var(--ink); }
.callout {
  background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--ink); }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--card); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--primary-700); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary-400); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); margin-top: 18px; }
.contact-card a { font-weight: 600; }
.back-home { display: inline-flex; align-items: center; gap: 7px; color: var(--primary-600); font-weight: 600; margin-top: 8px; }

/* ---------- decorative doodles ---------- */
.doodle { position: absolute; opacity: .5; pointer-events: none; z-index: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lead, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .spot, .ai-inner { grid-template-columns: 1fr; gap: 36px; }
  .spot.rev .spot-media { order: 0; }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -.6px; }
  .footer-top { flex-direction: column; }
  .brand .bn small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .petals, .orb { display: none !important; }
}

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SCREENSHOTS GALLERY (real App Store panels, language-aware)
   ============================================================ */
.gallery { background: linear-gradient(180deg, var(--cream), var(--bg)); overflow: hidden; }
.shots {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding: 12px 24px 28px; margin: 0 -24px;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--primary-200); border-radius: 99px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shot { flex: none; scroll-snap-align: center; }
.shot img {
  height: 568px; width: auto; display: block; border-radius: 30px;
  box-shadow: var(--shadow-md); background: var(--cream-deep);
}
.swipe-hint {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--ink-mute); margin-top: 4px;
}
.swipe-hint svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .shot img { height: 480px; border-radius: 26px; }
  .shots { gap: 16px; }
}

/* ============================================================
   ETHEREAL LAYER — "bay bổng" (orbs, petals, gentle motion)
   ============================================================ */
@keyframes floatY  { 0%,100% { transform: translateY(0) }   50% { transform: translateY(-16px) } }
@keyframes floatYsm{ 0%,100% { transform: translateY(0) }   50% { transform: translateY(-9px) } }
@keyframes sway    { 0%,100% { transform: rotate(-5deg) }   50% { transform: rotate(5deg) } }
@keyframes twinkle { 0%,100% { opacity:.45; transform: scale(1) } 50% { opacity:.9; transform: scale(1.12) } }
@keyframes phoneFloat { 0%,100% { transform: rotate(-3deg) translateY(0) } 50% { transform: rotate(-3deg) translateY(-13px) } }
@keyframes petalFall {
  0%   { transform: translate3d(0,-40px,0) rotate(0);                                opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .7; }
  100% { transform: translate3d(var(--dx,30px), 96vh, 0) rotate(var(--rot,320deg));  opacity: 0; }
}

/* soft drifting light orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(44px); pointer-events: none; z-index: 0; opacity: .5; }
.orb-a { width: 340px; height: 340px; background: radial-gradient(circle, #ffd49a, transparent 70%); animation: floatY 9s ease-in-out infinite; }
.orb-b { width: 280px; height: 280px; background: radial-gradient(circle, #ffe8c6, transparent 70%); animation: floatY 12s ease-in-out infinite .8s; }
.orb-c { width: 220px; height: 220px; background: radial-gradient(circle, #fff0d4, transparent 70%); animation: floatY 10s ease-in-out infinite 1.6s; }

/* falling lotus petals */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal {
  position: absolute; top: 0; width: 13px; height: 13px;
  background: linear-gradient(135deg, #ffdcae, #f4b277);
  border-radius: 0 100% 0 100%;
  opacity: 0; will-change: transform, opacity;
  animation: petalFall var(--d, 15s) linear infinite;
}
.petal.pink { background: linear-gradient(135deg, #ffd2cb, #f3a99f); }
.petal.pale { background: linear-gradient(135deg, #fff0d8, #ffd9a0); }

/* gentle motion on hero pieces */
.hero-grid { position: relative; z-index: 2; }
.phone { animation: phoneFloat 6.5s ease-in-out infinite; }
.doodle { animation: floatYsm 7s ease-in-out infinite; }
.hero .eyebrow svg { animation: twinkle 4s ease-in-out infinite; }

/* ============================================================
   REVIEWS / testimonials
   ============================================================ */
.reviews { background: linear-gradient(180deg, var(--bg), var(--cream)); position: relative; overflow: hidden; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 2; }
.rev-card {
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--shadow-sm);
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.rev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rev-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--primary-200);
}
.rev-stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 13px; }
.rev-stars svg { width: 16px; height: 16px; }
.rev-text { font-size: 15.5px; color: var(--ink); line-height: 1.62; margin: 0 0 18px; }
.rev-author { display: flex; align-items: center; gap: 11px; }
.rev-ava {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.rev-name { font-weight: 600; color: var(--primary-700); font-size: 14.5px; }
.rev-src { color: var(--ink-mute); font-size: 12.5px; }
@media (max-width: 940px) { .rev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rev-grid { grid-template-columns: 1fr; } }

/* Google Play badge uses .appstore pill; its triangle keeps its own colors */
.appstore .gp { width: 26px; height: 26px; }

/* one feature card per row on phones */
@media (max-width: 600px) { .feat-card { flex-basis: 100%; max-width: 100%; } }

/* ============================================================
   LIBRARY CARD — app-style Buddha detail (in the gold band)
   ============================================================ */
.lib-card {
  background: #fff; border-radius: 24px; padding: 26px 26px 28px; text-align: center;
  color: var(--ink); box-shadow: 0 30px 70px rgba(60,38,8,.34);
}
.lib-portrait {
  width: 158px; height: 158px; margin: 2px auto 14px; border-radius: 22px; overflow: hidden;
  background: var(--cream); box-shadow: var(--shadow-sm);
}
.lib-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-title { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--primary-700); line-height: 1.1; }
.lib-title i { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--primary-300); margin: 13px auto 0; }
.lib-seg { display: flex; gap: 4px; background: #f3ead9; border-radius: 999px; padding: 4px; margin: 18px 0; }
.lib-seg > span { flex: 1; font-size: 13px; padding: 9px 6px; border-radius: 999px; color: var(--ink-soft); white-space: nowrap; }
.lib-seg > span.on { background: #fff; color: var(--primary-700); font-weight: 600; box-shadow: var(--shadow-sm); }
.lib-mantra { font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.42; }
.lib-phon { font-style: italic; color: var(--primary-500); font-size: 14.5px; line-height: 1.45; margin-top: 9px; }
.lib-mean { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lib-mean b { display: block; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--primary-500); margin-bottom: 6px; font-weight: 700; }
.lib-mean > span { color: var(--ink-soft); font-size: 14.5px; }
.chant-btn {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 16px; color: #fff; border: 0;
  padding: 12px 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  box-shadow: 0 10px 22px rgba(144,101,36,.36); transition: transform .18s ease, box-shadow .18s ease;
}
.chant-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(144,101,36,.46); }
.chant-btn .flower { display: grid; place-items: center; }
.chant-btn .flower svg { width: 19px; height: 19px; }
.chant-btn.playing { animation: chantPulse 1.7s ease-in-out infinite; }
.chant-btn.playing .flower { animation: spin 3.6s linear infinite; }
@keyframes chantPulse { 0%,100% { box-shadow: 0 10px 22px rgba(144,101,36,.36) } 50% { box-shadow: 0 12px 32px rgba(144,101,36,.62) } }
@keyframes spin { to { transform: rotate(360deg) } }

/* ============================================================
   LANGUAGE DROPDOWN (🌐 — replaces the old VI/EN toggle)
   ============================================================ */
.lang-dd { position: relative; }
.lang-cur {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--primary-100); color: var(--primary-700); border: 0;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: 999px; transition: background .18s ease;
}
.lang-cur:hover { background: var(--primary-200); }
.lang-cur > svg:first-child { width: 16px; height: 16px; }
.lang-cur .chev { width: 13px; height: 13px; transition: transform .2s ease; opacity: .7; }
.lang-dd.open .lang-cur .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 6px; margin: 0; list-style: none;
  min-width: 184px; max-height: 0; overflow: hidden; opacity: 0;
  transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, max-height .2s ease;
}
.lang-dd.open .lang-menu { max-height: 460px; opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a {
  display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 11px;
  font-size: 14.5px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.lang-menu a:hover { background: var(--cream); }
.lang-menu a.on { color: var(--primary-700); font-weight: 700; background: var(--primary-100); }
