/* ============================================================
   Devosh Apps — per-app pages (/<slug>/..., e.g. /bhaktihub/)
   Saffron + maroon look from the BhaktiHub app,
   system fonts (no downloads), large type for 35–65 readers.
   Every app folder shares this file; only the content changes.
   ============================================================ */

:root {
  --saffron: #E8630A;        /* buttons, accents */
  --saffron-text: #B4470A;   /* saffron that is readable as body-size text on cream */
  --deep: #7A1F2B;           /* maroon */
  --deep-2: #4E1219;
  --ink: #2A1C14;
  --body: #4A3B32;
  --muted: #7A6555;
  --line: #EADFD4;
  --bg: #FFF8F0;
  --card: #FFFFFF;
  --tint: #FBEFE3;
  --radius: 16px;
  --shadow: 0 6px 22px rgba(122, 31, 43, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--saffron-text); }
h1, h2, h3 { color: var(--ink); line-height: 1.3; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.ap-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 240, 0.96);
  border-bottom: 1px solid var(--line);
}
.ap-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.ap-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 20px;
}
.ap-brand img { width: 40px; height: 40px; border-radius: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;                 /* comfortable tap target */
  padding: 10px 22px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 6px 18px rgba(232, 99, 10, .28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(232, 99, 10, .36); }
.btn-light { background: #fff; color: var(--deep); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: 16px; }
.btn-big { min-height: 56px; padding: 14px 30px; font-size: 19px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 85% 10%, rgba(232, 99, 10, .35), transparent 60%),
              linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #FFF3E6;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding-top: 56px; padding-bottom: 60px;
}
.hero-tag {
  display: inline-block; font-size: 15px; font-weight: 600;
  background: rgba(255, 243, 230, .14); border: 1px solid rgba(255, 224, 184, .35);
  border-radius: 22px; padding: 6px 16px; margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 50px); margin: 0 0 16px; }
.hero-sub { font-size: 19px; opacity: .95; margin: 0 0 26px; max-width: 560px; }

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 34px; margin: 0 0 30px; padding: 0; list-style: none; }
.stats li { line-height: 1.3; }
.stats strong { display: block; color: #fff; font-size: 28px; }
.stats .lbl { display: block; font-size: 15px; opacity: .88; }

.hero-shots { position: relative; height: 470px; }
.hero-shots img {
  position: absolute; width: 230px; border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
}
.hero-shots .s1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; animation: bh-float 6s ease-in-out infinite; }
.hero-shots .s2 { left: 2%;  top: 50px; transform: rotate(-7deg); z-index: 2; opacity: .92; }
.hero-shots .s3 { right: 2%; top: 50px; transform: rotate(7deg);  z-index: 1; opacity: .92; }

@keyframes bh-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-shots .s1 { animation: none; } }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 19px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 20px; margin: 10px 0 6px; }
.card p { margin: 0; font-size: 17px; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--tint);
}

.step { position: relative; padding-top: 34px; }
.step .num {
  position: absolute; top: -18px; left: 22px;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--saffron); color: #fff; font-weight: 800; font-size: 20px;
}

/* ---------- Pricing ---------- */

.plan { max-width: 560px; margin: 0 auto; }
.plan-card {
  background: var(--card); border: 2px solid var(--saffron); border-radius: 20px;
  padding: 30px 26px; text-align: center; box-shadow: 0 14px 40px rgba(232, 99, 10, .16);
}
/* COMPLIANCE: the price must never be smaller than the trial line.
   Trial line is 22px; price is 46px. Do not shrink the price for visual balance. */
.plan-trial { font-size: 22px; font-weight: 700; color: var(--deep); margin: 0 0 6px; }
.plan-price { font-size: 46px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.2; }
.plan-price small { font-size: 26px; font-weight: 700; }
.plan-renew { font-size: 17px; color: var(--body); margin: 8px 0 20px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.plan-list li { position: relative; padding: 8px 0 8px 34px; border-top: 1px solid var(--line); font-size: 17px; }
.plan-list li::before {
  content: '✓'; position: absolute; left: 0; top: 10px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--saffron-text); font-weight: 800; font-size: 14px;
}
.plan-soon {
  background: #FFF1D6; border: 1px solid #F2C77A; color: #6B4A00;
  border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: 17px; text-align: center;
}

.know {
  margin: 22px auto 0; max-width: 560px;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--deep);
  border-radius: 14px; padding: 20px 22px;
}
.know h3 { margin: 0 0 8px; font-size: 20px; }
.know ul { margin: 0; padding-left: 22px; }
.know li { margin: 8px 0; font-size: 17px; }

/* ---------- Final CTA ---------- */

.final {
  text-align: center; color: #FFF3E6; border-radius: 22px; padding: 46px 22px;
  background: linear-gradient(135deg, var(--deep) 0%, #B8360F 60%, var(--saffron) 100%);
}
.final h2 { color: #fff; font-size: clamp(28px, 5vw, 38px); margin: 0 0 8px; }
.final p { margin: 0 0 24px; font-size: 19px; }

/* ---------- Policy pages ---------- */

.page-band {
  background: linear-gradient(135deg, var(--deep) 0%, #B8360F 60%, var(--saffron) 100%);
  color: #FFF3E6; padding: 36px 0 32px;
}
.page-band h1 { color: #fff; margin: 0 0 6px; font-size: clamp(28px, 5vw, 38px); }
.page-band p { margin: 0; font-size: 16px; opacity: .92; }

.policy { padding: 12px 0 56px; }
.policy h2 { font-size: 23px; margin: 36px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.policy h3 { font-size: 19px; margin: 20px 0 6px; }
.policy ul { padding-left: 24px; }
.policy li { margin: 6px 0; }
.policy table { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--card); border-radius: 12px; overflow: hidden; }
.policy th, .policy td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { color: var(--ink); background: var(--tint); width: 42%; font-weight: 700; }
.policy .note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--saffron);
  border-radius: 12px; padding: 16px 18px; margin: 18px 0;
}

/* ---------- Footer ---------- */

.ap-footer { background: #22160F; color: #E9DCCF; margin-top: 30px; font-size: 16px; }
.ap-footer .wrap {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 34px;
  padding-top: 46px; padding-bottom: 40px;
}
.ap-footer h4 { color: #FFB672; margin: 0 0 12px; font-size: 17px; }
.ap-footer a { color: #F3E6D8; text-decoration: none; }
.ap-footer a:hover { color: #FFB672; text-decoration: underline; }
.ap-footer .f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.ap-footer .f-brand img { width: 40px; height: 40px; border-radius: 10px; }
.ap-footer p { margin: 0 0 14px; line-height: 1.65; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; }
.ap-footer li { margin: 0 0 10px; }
.ap-footer .f-legal-name { font-weight: 700; color: #fff; letter-spacing: .3px; }
.ap-footer .f-copy { font-size: 14px; opacity: .8; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3.steps { gap: 34px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .stats { justify-content: center; }
  .hero-shots { height: auto; }
  .hero-shots img { position: static; transform: none; margin: 0 auto; width: 240px; }
  .hero-shots .s1 { left: auto; transform: none; animation: none; }
  .hero-shots .s2, .hero-shots .s3 { display: none; }   /* lazy + hidden = not downloaded on phones */
  .ap-footer .wrap { grid-template-columns: 1fr 1fr; }
  .ap-footer .f-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .ap-brand { font-size: 18px; }
  .ap-brand img { width: 36px; height: 36px; }
  .stats { gap: 10px 20px; }
  .stats strong { font-size: 24px; }
  .hero-cta .btn { width: 100%; }
  .ap-footer .wrap { grid-template-columns: 1fr; }
  .plan-price { font-size: 42px; }
}
