/* ============================================================
   ShubhKit — site styles
   Layout: marigold "toran" strip on top, aubergine ink, one bold
   accent (marigold). Tool pages = form left, live preview right.
   ============================================================ */
:root {
  --bg: #fbf7f9;
  --surface: #ffffff;
  --surface-2: #f4ecf1;
  --ink: #2b1430;
  --muted: #6c5869;
  --line: #e9dde5;
  --accent: #f29d0c;        /* marigold */
  --accent-ink: #2b1430;    /* text on marigold */
  --plum: #8a2c72;          /* secondary, links & highlights */
  --leaf: #2f7d4b;          /* mango-leaf green (success) */
  --danger: #b42318;
  --shadow: 0 10px 30px -12px rgba(43, 20, 48, .25);

  --display: "Rozha One", "Tiro Devanagari Hindi", Georgia, serif;
  --body: "Hind", "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160c18; --surface: #211425; --surface-2: #2a1a2f; --ink: #f7ecf4; --muted: #bba6b7;
    --line: #3b2841; --accent: #f6a823; --accent-ink: #1d0f20; --plum: #e08ccc; --leaf: #5cc184;
    --danger: #ff8a7a; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #160c18; --surface: #211425; --surface-2: #2a1a2f; --ink: #f7ecf4; --muted: #bba6b7;
  --line: #3b2841; --accent: #f6a823; --accent-ink: #1d0f20; --plum: #e08ccc; --leaf: #5cc184;
  --danger: #ff8a7a; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
/* no display:block on img here: it breaks the PDF tool's text placement (text drawn too low) */
img { max-width: 100%; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- toran (marigold garland strip) ---------- */
.toran {
  height: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='34' viewBox='0 0 64 34'%3E%3Cpath d='M0 3 Q32 16 64 3' fill='none' stroke='%232f7d4b' stroke-width='2'/%3E%3Cpath d='M18 9 q-6 10 0 18 q6-8 0-18z' fill='%232f7d4b'/%3E%3Cpath d='M46 9 q-6 10 0 18 q6-8 0-18z' fill='%233f9a5e'/%3E%3Ccircle cx='32' cy='14' r='7' fill='%23f29d0c'/%3E%3Ccircle cx='32' cy='14' r='3.5' fill='%23e0620b'/%3E%3Ccircle cx='32' cy='26' r='5' fill='%23ffc233'/%3E%3C/svg%3E") repeat-x;
}

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 26px; line-height: 1; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 16px/1.2 var(--body); padding: 12px 20px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-plum { background: var(--plum); color: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease, filter .15s ease, border-color .15s ease; }
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- home: hero ---------- */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin-top: 16px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--leaf); font-weight: 700; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* hero mockup stack */
.mock-stack { position: relative; min-height: 420px; }
.mock { position: absolute; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bio { width: 58%; aspect-ratio: 210/297; left: 0; top: 20px; background: #fffaf1; border: 6px solid #8b1e1e; padding: 14px; transform: rotate(-4deg); }
.mock-bio .m-deity { text-align: center; color: #8b1e1e; font: 12px var(--display); }
.mock-bio .m-title { text-align: center; color: #8b1e1e; font: 24px var(--display); margin: 4px 0 10px; }
.mock-bio .m-photo { width: 34%; aspect-ratio: 3/4; float: right; margin-left: 8px; background: linear-gradient(160deg, #f3d9b1, #d9a066); border: 2px solid #c08a2b; border-radius: 4px; }
.mock-bio .m-line { height: 7px; border-radius: 4px; background: #ead7bf; margin-bottom: 8px; }
.mock-bio .m-line.s { width: 55%; } .mock-bio .m-line.m { width: 70%; }
.mock-bio .m-h { height: 9px; width: 40%; background: #c08a2b; border-radius: 4px; margin: 12px 0 8px; }
.mock-inv { width: 40%; aspect-ratio: 9/16; right: 4%; top: 0; background: linear-gradient(180deg, #5b0f2e, #2c0716); color: #f6d488; text-align: center; padding: 18px 10px; transform: rotate(5deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 3px solid #d4a440; }
.mock-inv .m-small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.mock-inv .m-names { font: 26px/1.1 var(--display); }
.mock-video { width: 34%; aspect-ratio: 9/16; left: 38%; bottom: -10px; background: #120a1c; border: 8px solid #261a2e; border-radius: 22px; display: grid; place-items: center; transform: rotate(-1deg); }
.mock-video .play { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.mock-video .play::after { content: ""; border-left: 16px solid #2b1430; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
@media (max-width: 860px) { .mock-stack { min-height: 380px; max-width: 460px; width: 100%; margin: 0 auto; } }

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 28px; display: grid; gap: 10px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 42px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 12px; align-content: start; }
.product h3 { font-size: 26px; }
.product .price { font: 34px var(--display); color: var(--plum); font-variant-numeric: tabular-nums; }
.product .price small { font: 500 15px var(--body); color: var(--muted); }
.product ul { margin: 0; padding-left: 20px; color: var(--muted); }
.product .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 8px; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 22px/40px var(--display); text-align: center; }
.step h3 { font-size: 22px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing table */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 10px; align-content: start; }
.plan h3 { font-size: 22px; }
.plan .price { font: 36px var(--display); font-variant-numeric: tabular-nums; }
.plan.best { border: 2px solid var(--accent); position: relative; }
.plan.best::before { content: "Best value"; position: absolute; top: -13px; left: 18px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; letter-spacing: .04em; }
.plan .strike { text-decoration: line-through; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.feature h3 { font-size: 21px; margin-bottom: 4px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* SEO content block */
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: 30px; margin-top: 10px; }
.prose h3 { font-size: 22px; }
.prose ul { margin: 0; padding-left: 22px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 36px; margin-top: 20px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--plum); }
.copyright { grid-column: 1 / -1; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- tool pages ---------- */
.tool-head { padding-block: 28px 18px; display: grid; gap: 8px; }
.tool-head h1 { font-size: clamp(30px, 4.6vw, 44px); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; padding-bottom: 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; min-width: 0; }
.preview-col { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: 14px; min-width: 0; }
.preview-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; overflow: hidden; }
.scale-host { position: relative; margin: 0 auto; }
.scale-host > .scale-inner { transform-origin: top left; position: absolute; top: 0; left: 0; }
.dl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dl-bar .note { font-size: 14px; color: var(--muted); flex-basis: 100%; }
.tool-tabs { display: none; }
@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .tool-tabs { display: flex; gap: 8px; position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); padding-block: 8px; }
  .tool-tabs button { flex: 1; }
  .tool[data-view="edit"] .preview-col { display: none; }
  .tool[data-view="preview"] .form-col { display: none; }
}

/* form controls */
.group { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; display: grid; gap: 12px; }
.group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.group-title h2 { font: 700 16px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: 16px var(--body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--plum) 22%, transparent); }
.custom-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: end; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--r-sm); width: 40px; height: 40px; cursor: pointer; font-size: 18px; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.link-btn { background: none; border: 0; color: var(--plum); font: 600 14px var(--body); cursor: pointer; padding: 4px 0; }

/* template chooser */
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tpl-chip { border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 6px; cursor: pointer; display: grid; gap: 6px; font: 600 13px var(--body); color: var(--ink); text-align: center; }
.tpl-chip .sw { height: 54px; border-radius: 5px; }
.tpl-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-wrap: wrap; }
.seg button { background: none; border: 0; padding: 7px 14px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.photo-drop { display: flex; gap: 14px; align-items: center; }
.photo-thumb { width: 72px; height: 90px; border-radius: 6px; background: var(--surface-2) center/cover no-repeat; border: 1px dashed var(--line); flex: none; }

.price-tag { display: inline-flex; align-items: baseline; gap: 6px; font: 26px var(--display); color: var(--plum); }
.price-tag small { font: 500 14px var(--body); color: var(--muted); }
.paid-badge { display: inline-flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--leaf) 15%, transparent); color: var(--leaf); font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 14px; }

/* modal */
.modal { box-sizing: border-box; border: 0; border-radius: var(--r-md); padding: 0; margin: auto; width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(20, 8, 22, .55); }
.modal-body { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.modal-body > * { min-width: 0; }
.modal h2 { font-size: 28px; }
.pay-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--bg); cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.pay-option:hover, .pay-option.sel { border-color: var(--accent); }
.pay-option strong { font-variant-numeric: tabular-nums; }
.pay-option .sub { display: block; font-size: 13px; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.secure { font-size: 13px; color: var(--muted); }
.footer-contact, .contact-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list { margin: 22px 0 28px; gap: 14px; max-width: 460px; }
.contact-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; min-width: 0; }
.contact-link span { min-width: 0; overflow-wrap: anywhere; }
.contact-link .ci { width: 22px; height: 22px; flex: none; }
.contact-link b { font-weight: 600; }
.contact-link small { display: block; color: var(--muted); font-size: 14px; }
.footer-contact .contact-link b { font-weight: 500; }
.footer-contact .contact-link .ci { width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #fff; }
.cl-wa .ci { color: #1f9d55; } .cl-ig .ci { color: #c13584; } .cl-em .ci { color: var(--plum); }
.footer-contact .cl-wa .ci { background: #1f9d55; } .footer-contact .cl-ig .ci { background: #c13584; } .footer-contact .cl-em .ci { background: var(--plum); }
.contact-list .contact-link { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.contact-list .contact-link .ci { width: 40px; height: 40px; padding: 8px; border-radius: 50%; color: #fff; }
.contact-list .cl-wa .ci { background: #1f9d55; } .contact-list .cl-ig .ci { background: #c13584; } .contact-list .cl-em .ci { background: var(--plum); }
.contact-link:hover b { color: var(--plum); }
.coupon { border-top: 1px dashed var(--line); padding-top: 12px; }
.coupon summary { cursor: pointer; font-size: 14px; color: var(--plum); font-weight: 600; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row input { flex: 1; min-width: 0; font: inherit; text-transform: uppercase; letter-spacing: .06em; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.coupon-msg { font-size: 13px; color: #b42318; margin-top: 6px; min-height: 1em; }
.coupon-msg.ok { color: var(--leaf); font-weight: 600; }
.pay-option .was { color: var(--muted); font-weight: 400; margin-right: 4px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.error { background: var(--danger); color: #fff; }

/* floating whatsapp */
.ig-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 600; text-decoration: none; box-shadow: 0 8px 22px -8px rgba(188, 24, 136, .6); }
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: #1f9d55; color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); font-size: 15px; }

/* legal pages */
.legal { max-width: 780px; padding-block: 40px; display: grid; gap: 14px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 24px; margin-top: 10px; }

/* busy overlay */
.busy { position: fixed; inset: 0; background: rgba(20, 8, 22, .55); display: grid; place-items: center; z-index: 90; color: #fff; font-weight: 700; font-size: 18px; text-align: center; padding: 16px; }

/* payment window on small phones */
@media (max-width: 480px) { .modal-body { padding: 18px 16px; } .modal h2 { font-size: 23px; } .pay-option { padding: 10px 12px; } .modal-actions .btn { flex: 1; justify-content: center; } }
