:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6b6259;
  --line: #eee4d6;
  --brand: #e85d04;
  --brand-2: #9d0208;
  --accent: #3a0ca3;
  --ok: #15803d;
  /* पढ़ने लायक (WCAG AA) गहरे रंग: हल्के background पर text, और सफेद text वाले छोटे badges */
  --brand-text: #c2410c;
  --wa: #15803d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 30, 0, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Mukta', 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Baloo 2', 'Mukta', sans-serif; line-height: 1.15; margin: 0 0 .4em; }
a { color: inherit; }
img, canvas { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 26px; font: 700 17px 'Mukta', sans-serif;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(232, 93, 4, .35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(232, 93, 4, .45); }
.btn-ghost { background: transparent; border: 2px solid var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 243, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 22px 'Baloo 2', sans-serif; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 20px; }
.nav-links { display: flex; gap: 22px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* sections */
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--brand-text); background: #fff0e0; padding: 4px 12px; border-radius: 999px; font-size: 14px; margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--muted); max-width: 36em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: #fff0e0; margin-bottom: 14px; }

/* hero */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.phone {
  width: min(320px, 80vw); margin-inline: auto; border-radius: 40px; padding: 14px; background: #1c1917;
  box-shadow: 0 30px 60px rgba(60, 30, 0, .25); position: relative;
}
.phone canvas { border-radius: 26px; width: 100%; height: auto; }
.phone-bar { display: flex; gap: 8px; margin-top: 12px; }
.phone-bar span { flex: 1; text-align: center; color: #fff; background: #292524; border-radius: 12px; padding: 8px 0; font-size: 13px; font-weight: 600; }
.phone-bar span.wa { background: var(--wa); }
.float-tag { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* template showcase */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; font-size: 15px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tcard { position: relative; border-radius: 14px; overflow: hidden; background: #eee; cursor: pointer; aspect-ratio: 1; box-shadow: var(--shadow); transition: transform .15s; border: 0; padding: 0; }
.tcard:hover { transform: translateY(-3px); }
.tcard canvas { width: 100%; height: 100%; }
.tcard .lock, .tcard .free { position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tcard .lock { background: rgba(0, 0, 0, .65); color: #fde68a; }
.tcard .free { background: var(--wa); color: #fff; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--brand); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-text); color: #fff; padding: 3px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.price { font: 800 44px 'Baloo 2', sans-serif; margin: 6px 0; }
.price small { font-size: 17px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.plan li { padding: 5px 0 5px 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.terms { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { background: #1c1917; color: #d6d3d1; padding: 48px 0 32px; }
footer a { color: #d6d3d1; text-decoration: none; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
footer .small { font-size: 14px; color: #a8a29e; margin-top: 28px; }

/* forms */
label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 15px; }
input, select, textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font: 500 17px 'Mukta', sans-serif;
  background: #fff; color: var(--ink); outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 14px; background: #f5ede2; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 700; }
.input-prefix input { border-radius: 0 12px 12px 0; }
.err { color: #b91c1c; font-size: 14px; min-height: 20px; margin-top: 6px; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: #1c1917; color: #fff; padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; font-weight: 600; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }
/* सिर्फ screen reader के लिए text (दिखता नहीं) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.mt { margin-top: 16px; }

.confirm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; z-index: 200; padding: 16px; }
.confirm-box { background: #fff; border-radius: 18px; padding: 20px; max-width: 380px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.confirm-box p { margin: 0 0 16px; font-size: 17px; font-weight: 600; }
:focus-visible { outline: 3px solid #fb923c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* v2 */
.ic { flex: none; vertical-align: -0.18em; }
.btn .ic { margin: 0; }
i[data-ic] { display: inline-grid; font-style: normal; }
.tcard canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcard { content-visibility: auto; }
.tcard .lock { background: rgba(0,0,0,.6); color: #fde68a; border-radius: 50%; }
select { appearance: auto; }
input[type=color] { padding: 3px; height: 46px; min-width: 54px; cursor: pointer; }
input[type=file] { padding: 10px; font-size: 15px; }
input[type=checkbox] { width: auto; }

/* Payment success: सेवा कोड + WhatsApp बटन (js/common.js → sevaBox) */
.seva-box { box-sizing: border-box; max-width: 480px; margin: 30px auto; text-align: center; padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.seva-box .sv-ico { font-size: 48px; line-height: 1.15; }
.seva-box .sv-title { color: #111827; margin: 10px 0; font-size: 24px; font-weight: 800; line-height: 1.3; }
.seva-box .sv-code { color: #4b5563; font-size: 15px; margin: 0 0 20px; }
.seva-box .sv-code strong { color: #d97706; font-size: 20px; letter-spacing: 1px; white-space: nowrap; user-select: all; }
.seva-box .sv-btn { display: inline-block; max-width: 100%; box-sizing: border-box; background-color: #25D366; color: #fff; padding: 16px 28px; font-size: 18px; font-weight: bold; line-height: 1.35; border-radius: 50px; text-decoration: none; box-shadow: 0 4px 14px rgba(37,211,102,.4); }
.seva-box .sv-btn:active { transform: scale(.98); }
.seva-box .sv-note { color: #9ca3af; font-size: 13px; margin: 15px 0 0; }
.seva-box .nw { white-space: nowrap; } /* छोटी screen पर 🚩 अकेला नीचे न जाए */
@media (max-width: 400px) { .seva-box { padding: 26px 14px; } .seva-box .sv-btn { padding: 15px 16px; font-size: 17px; } }
@media (max-width: 340px) { .seva-box .sv-btn { padding: 14px 12px; font-size: 16px; } }
