/* meditacious landing page. Every colour, font and space comes from these tokens, which mirror the app's
   own (src/theme/tokens/palette.json and typography): a near-black ground, glass cards, indigo accent,
   copper only for paid plans. Layout: one centred column; grids stack to one column on phones. */
:root {
  --ground: #080A0D;
  --surface: #101318;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #F5F7FA;
  --muted: #A7AFBA;
  --faint: #737C88;
  --indigo: #6575D8;
  --indigo-deep: #4655A8;
  --indigo-soft: #8490E8;
  --glow: rgba(101, 117, 216, 0.28);
  --copper: #C99469;

  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Poppins", "Nirmala UI", sans-serif;

  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px; --s8: 112px;
  --radius: 20px;
  --pill: 999px;
  --column: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; border-radius: 6px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: calc(var(--s2) + env(safe-area-inset-top, 0px)) var(--s3) var(--s2); background: rgba(8, 10, 13, 0.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; align-items: center; gap: var(--s1); text-decoration: none; font-weight: 600; letter-spacing: 1px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s5); border-radius: var(--pill);
  background: linear-gradient(180deg, var(--indigo), var(--indigo-deep)); box-shadow: 0 0 24px var(--glow); color: var(--ink);
  font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 32px var(--glow); }
.btn-ghost { background: var(--glass); box-shadow: none; border: 1px solid var(--border-strong); }
.btn-ghost:hover { box-shadow: none; background: var(--glass-strong); }
.btn-small { min-height: 38px; padding: 0 var(--s3); font-size: 12px; }

/* Layout */
main { display: flex; flex-direction: column; }
.section, .hero, .final { width: 100%; max-width: var(--column); margin: 0 auto; padding-inline: var(--s3); }
.section { padding-block: var(--s7); display: flex; flex-direction: column; gap: var(--s3); }
.eyebrow { color: var(--faint); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; }
h2 { font-size: clamp(26px, 5vw, 36px); line-height: 1.25; }
.intro { color: var(--muted); max-width: 60ch; }
.fine { color: var(--faint); font-size: 13px; }
.center { text-align: center; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); }

/* Hero */
.hero { display: grid; gap: var(--s6); align-items: center; padding-block: var(--s6) var(--s7); }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s1); }
.hero-mark { width: 88px; height: 88px; margin-bottom: var(--s2); }
.wordmark { font-size: clamp(40px, 9vw, 64px); font-weight: 600; letter-spacing: 2px; line-height: 1.1; }
.byline { color: var(--faint); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; }
.tagline { margin-top: var(--s3); font-size: clamp(20px, 3.4vw, 26px); font-weight: 500; }
.motto { color: var(--muted); }
.motto em { font-style: normal; color: var(--ink); }
.lede { margin-top: var(--s2); color: var(--muted); max-width: 42ch; }
.ctas { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.hero .fine { margin-top: var(--s1); }
.phone { margin: 0 auto; width: min(300px, 78vw); aspect-ratio: 9 / 19; border-radius: 40px; border: 1px solid var(--border-strong); overflow: hidden;
  position: relative; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--glow); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { position: absolute; inset: auto 0 0 0; padding: var(--s6) var(--s4) var(--s5); display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(transparent, rgba(8, 10, 13, 0.92) 45%); font-size: 12px; color: var(--muted); text-align: center; }
.phone figcaption b { color: var(--ink); font-size: 20px; font-weight: 500; }

/* Lists */
.why, .practices, .features { display: grid; gap: var(--s2); margin-top: var(--s2); }
.why .card, .practices .card, .features .card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.why span, .practices span, .features span { color: var(--muted); font-size: 14px; }
.why b, .practices b, .features b { font-weight: 500; }
.practices .card { position: relative; padding-right: 96px; }
.tier { position: absolute; top: var(--s4); right: var(--s4); font-style: normal; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--indigo-soft); border: 1px solid var(--border-strong); border-radius: var(--pill); padding: 2px 10px; }
.tier.paid { color: var(--copper); border-color: rgba(201, 148, 105, 0.4); }

.meditations { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s2); }
.meditations li { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meditations img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: var(--s1); }
.meditations b { font-weight: 500; }
.meditations span { color: var(--muted); font-size: 13px; }
.meditations .tier { top: var(--s2); right: var(--s2); background: rgba(8, 10, 13, 0.7); }

.badges { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s2); }
.badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.badges img { width: 72px; height: 72px; margin-bottom: var(--s1); }
.badges b { font-weight: 500; }
.badges span { color: var(--muted); font-size: 13px; }

/* Plans */
.plans { display: grid; gap: var(--s3); margin-top: var(--s2); }
.plan { display: flex; flex-direction: column; gap: var(--s1); }
.plan h3 { font-size: 20px; }
.price { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.plan-tag { color: var(--muted); font-size: 14px; }
.plan ul { margin-top: var(--s2); display: flex; flex-direction: column; gap: var(--s1); }
.plan li { position: relative; padding-left: 22px; font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); }
.plan.featured { border-color: rgba(201, 148, 105, 0.45); background: var(--glass-strong); }
.plan.featured h3 { color: var(--copper); }

/* Final CTA */
.final { padding-block: var(--s8); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); }
.final img { width: 64px; height: 64px; opacity: 0.85; }
.hindi { font-family: var(--font-hi); color: var(--muted); font-size: 18px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: var(--s6) var(--s3) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; color: var(--faint); font-size: 13px; }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: var(--s1); }
.foot-brand .logo { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s4); }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* Gentle entrance, only where motion is welcome (index.html adds .motion). */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.motion .reveal.in { opacity: 1; transform: none; }

/* Wider screens */
@media (min-width: 640px) {
  .why, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meditations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badges { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bar { padding-inline: var(--s5); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-block: var(--s7) var(--s8); }
  .hero-text { align-items: flex-start; text-align: left; }
  .ctas { justify-content: flex-start; }
  .why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .practices, .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meditations { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
