/* ===== PramanikPuja — Demo Design System (investor demo pages) =====
   saffron #E8640A · gold #C9920A · maroon #6B1515 · cream #FDF8F0 · deep #1A0A00
   Fonts: Yatra One (display) · Tiro Devanagari Hindi (taglines) · DM Sans (body)
   Mirrors the VakilOS/PresenceOS demo architecture (Tailwind CDN + this sheet + Chart.js). */

:root {
  --saffron: #E8640A;
  --saffron-dark: #C9510A;
  --gold: #C9920A;
  --gold-dark: #A9790A;
  --maroon: #6B1515;
  --maroon-dark: #4A0E0E;
  --maroon-light: #8F2424;
  --cream: #FDF8F0;
  --cream-rich: #F7EDDD;
  --ink: #2B1A12;
  --muted: #6E5A4E;
  --line: rgba(201, 146, 10, 0.25);
  --card-shadow: 0 4px 14px rgba(107, 21, 21, 0.10);
  --card-shadow-hover: 0 12px 30px rgba(107, 21, 21, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: 'Yatra One', Georgia, serif; font-weight: 400; }
.deva { font-family: 'Tiro Devanagari Hindi', serif; }
a { text-decoration: none; color: inherit; }

/* ---- Brand helpers ---- */
.brand-wordmark { font-family: 'Yatra One', serif; letter-spacing: -0.3px; }
.text-saffron { color: var(--saffron); }
.text-maroon { color: var(--maroon); }
.text-gold { color: var(--gold); }
.bg-maroon { background: var(--maroon); }
.bg-saffron { background: var(--saffron); }
.gold-rule { height: 2px; width: 56px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: all .2s ease; font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(232,100,10,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,100,10,.4); }
.btn-maroon { background: var(--maroon); color: #fff; box-shadow: 0 6px 18px rgba(107,21,21,.25); }
.btn-maroon:hover { background: var(--maroon-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--maroon-dark); box-shadow: 0 6px 18px rgba(201,146,10,.32); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--maroon); border: 1.5px solid rgba(107,21,21,.22); }
.btn-ghost:hover { border-color: var(--saffron); background: #fff; }
.btn-whatsapp { background: #25D366; color: #06351a; font-weight: 700; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.btn-whatsapp:hover { transform: translateY(-2px); }

/* ---- Cards ---- */
.card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: var(--card-shadow); border: 1px solid rgba(201,146,10,.14);
  transition: all .25s ease;
}
.card-hover:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-gold { background: rgba(201,146,10,.15); color: #8a6608; }
.badge-saffron { background: rgba(232,100,10,.12); color: var(--saffron-dark); }
.badge-maroon { background: rgba(107,21,21,.1); color: var(--maroon); }
.badge-green { background: rgba(34,160,90,.12); color: #1f8a4d; }
.badge-amber { background: rgba(230,160,30,.15); color: #b97c0a; }
.badge-red { background: rgba(200,50,50,.12); color: #c0392b; }
.badge-blue { background: rgba(50,90,200,.1); color: #2c5cc5; }

/* ---- App shell (sidebar layout) ---- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px; background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 14px;
}
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.sidebar .logo .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: grid; place-items: center; font-size: 22px; color: #fff;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px;
  color: rgba(255,255,255,.78); font-size: 14.5px; font-weight: 500; margin-bottom: 3px;
  transition: all .15s ease; cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(232,100,10,.25); color: #FFD9A0; font-weight: 600; }
.nav-item .ic { width: 18px; text-align: center; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); padding: 14px 13px 6px; }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.content { padding: 28px; flex: 1; }

/* ---- Stat tiles ---- */
.stat-tile { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--card-shadow); border-left: 4px solid var(--saffron); }
.stat-tile .num { font-family: 'Yatra One', serif; font-size: 28px; color: var(--maroon); line-height: 1.05; }
.stat-tile .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---- Tables ---- */
.vtable { width: 100%; border-collapse: collapse; }
.vtable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--line); }
.vtable td { padding: 13px 14px; border-bottom: 1px solid #f0ece3; font-size: 14px; }
.vtable tr:hover td { background: var(--cream-rich); }

/* ---- Phone frame (WhatsApp) ---- */
.phone { width: 348px; background: #0b141a; border-radius: 36px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.phone-screen { background: #e5ddd5; border-radius: 26px; overflow: hidden; height: 620px; display: flex; flex-direction: column; }
.wa-header { background: #075e54; color: #fff; padding: 13px 16px; display: flex; align-items: center; gap: 11px; }
.wa-body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; }
.wa-msg { max-width: 82%; padding: 8px 12px; border-radius: 9px; margin-bottom: 9px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.wa-out { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 2px; }
.wa-time { font-size: 10px; color: #888; text-align: right; margin-top: 2px; }
.wa-typing { background:#fff; align-self:flex-start; padding:12px 14px; border-radius:9px; }
.wa-typing span { display:inline-block; width:7px; height:7px; margin:0 2px; border-radius:50%; background:#9aa; animation:dotpulse 1.2s infinite; }
.wa-typing span:nth-child(2){ animation-delay:.2s } .wa-typing span:nth-child(3){ animation-delay:.4s }

/* ---- Toggle ---- */
.toggle-wrap { display: inline-flex; background: var(--cream-rich); border-radius: 999px; padding: 4px; }
.toggle-wrap button { border: none; background: transparent; padding: 8px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s; }
.toggle-wrap button.active { background: var(--maroon); color: #fff; box-shadow: 0 3px 8px rgba(107,21,21,.25); }

/* ---- Pricing ---- */
.price-card { background: #fff; border-radius: 18px; padding: 28px 24px; box-shadow: var(--card-shadow); border: 2px solid transparent; transition: all .25s; position: relative; }
.price-card.featured { border-color: var(--saffron); box-shadow: 0 14px 40px rgba(232,100,10,.24); }
.price-card .amt { font-family: 'Yatra One', serif; font-size: 34px; color: var(--maroon); }
.price-feat { display: flex; gap: 9px; font-size: 13.5px; padding: 7px 0; color: #4a3a30; align-items: flex-start; }
.price-feat .tick { color: #1f8a4d; flex-shrink: 0; }
.price-feat .cross { color: #c9c2b5; flex-shrink: 0; }

/* ---- Step cards ---- */
.step-num { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--saffron), var(--gold)); color: #fff; display: grid; place-items: center; font-family: 'Yatra One', serif; font-size: 22px; flex-shrink: 0; }

/* ---- Loading dots ---- */
.dots span { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--saffron); animation: dotpulse 1.2s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotpulse { 0%,100%{ opacity:.3; transform: scale(.8);} 50%{ opacity:1; transform: scale(1.1);} }

.fade-in { animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Mandala accents ---- */
.kpi { background:#fff;border-radius:14px;padding:20px;box-shadow:var(--card-shadow);text-align:center;border-top:3px solid var(--saffron) }
.kpi .v { font-family:'Yatra One',serif;font-size:27px;color:var(--maroon);line-height:1.05 }
.kpi .l { font-size:12.5px;color:var(--muted);margin-top:6px }

/* ---- Mobile ---- */
@media (max-width: 880px) {
  .sidebar { display: none; }
  .content { padding: 18px; }
  .phone { width: 320px; }
}

/* ---- Print (financials PDF) ---- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card, .stat-tile, .kpi { box-shadow: none; border: 1px solid #ddd; }
}
