:root {
  --ink: #0e1b2c;
  --ink-2: #33415c;
  --muted: #6b7690;
  --line: #e5e1d8;
  --paper: #f7f5f0;
  --card: #ffffff;
  --saffron: #ff7a1a;
  --saffron-d: #e35f00;
  --saffron-l: #fff1e6;
  --teal: #0f766e;
  --teal-l: #e6f4f2;
  --green: #16a34a;
  --wa: #25d366;
  --red: #dc2626;
  --amber: #f59e0b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .06), 0 8px 24px rgba(14, 27, 44, .06);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.right { margin-left: auto; }

/* brand */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.logo-mark::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 122, 26, .25); }
.logo small { font-weight: 600; font-size: 11px; color: var(--muted); display: block; letter-spacing: .02em; margin-top: -3px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #06351b; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 700; font-size: 13.5px; margin: 14px 0 6px; }
label .muted { font-weight: 500; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #d8d3c8; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 122, 26, .35); border-color: var(--saffron); }
textarea { resize: vertical; min-height: 80px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.pw-eye:hover { color: var(--ink); background: #f3f0ea; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 10px 0; }
.check input { width: auto; margin-top: 4px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef0f4; color: var(--ink-2); white-space: nowrap; }
.badge.New { background: #eef2ff; color: #3730a3; }
.badge.Contacted { background: #fff7e6; color: #9a5b00; }
.badge.Replied { background: #e0f2fe; color: #075985; }
.badge.Interested { background: var(--teal-l); color: var(--teal); }
.badge.Customer { background: #dcfce7; color: #166534; }
.badge.Not { background: #f3f4f6; color: #6b7280; }
.badge.Wrong { background: #fee2e2; color: #991b1b; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 99; box-shadow: var(--shadow); max-width: 90vw; }
#toast.error { background: var(--red); }

/* ---------- landing ---------- */
.nav { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.nav a.link { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.eyebrow { display: inline-block; background: var(--saffron-l); color: var(--saffron-d); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.stack { position: relative; height: 420px; }
.lead-card { position: absolute; width: 330px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(14, 27, 44, .14); padding: 16px 18px; }
.lead-card .t { font-weight: 800; }
.lead-card .s { color: var(--muted); font-size: 13px; }
.lead-card .r { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.lc1 { top: 10px; left: 30px; transform: rotate(-3deg); }
.lc2 { top: 140px; left: 120px; z-index: 2; }
.lc3 { top: 280px; left: 40px; transform: rotate(2deg); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
section.block { padding: 64px 0; }
section.block h2 { font-size: clamp(26px, 3.4vw, 38px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.step-n { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feature .ic { font-size: 26px; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.who span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-weight: 600; }
.dark { background: var(--ink); color: #fff; }
.dark .muted { color: #a7b0c3; }
.toggle { display: inline-flex; background: #fff; border-radius: 99px; padding: 4px; border: 1px solid var(--line); }
.toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 99px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.toggle button.on { background: var(--ink); color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.pop { outline: 2px solid var(--saffron); }
.price-card .tag { position: absolute; top: -12px; right: 18px; background: var(--saffron); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.price { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card ul { padding-left: 18px; color: var(--ink-2); flex: 1; }
.faq details { background: #fff; border-radius: 12px; padding: 16px 18px; margin: 10px 0; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; }
footer.site { padding: 36px 0; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 440px; }
.err { color: var(--red); font-weight: 600; margin-top: 10px; min-height: 1em; }

/* ---------- wizard ---------- */
.wizard { max-width: 760px; margin: 0 auto; padding: 28px 20px 80px; }
.progress { display: flex; gap: 8px; margin: 18px 0 26px; }
.progress div { flex: 1; height: 6px; border-radius: 99px; background: #e7e2d7; }
.progress div.on { background: var(--saffron); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--saffron-l); color: var(--saffron-d); border-radius: 99px; padding: 6px 10px 6px 12px; font-weight: 700; font-size: 13.5px; }
.chip button { border: 0; background: rgba(0, 0, 0, .08); color: inherit; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.chip.sugg { background: #fff; border: 1px dashed var(--saffron); cursor: pointer; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.state-grid .check { margin: 4px 0; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards label { margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 600; }
.radio-cards input { width: auto; margin-right: 6px; }
.radio-cards label:has(input:checked) { border-color: var(--saffron); background: var(--saffron-l); }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.tpl { white-space: pre-wrap; background: #e7f9ee; border-radius: 12px 12px 12px 2px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d1e2; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 99px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side .usage { flex-shrink: 0; margin-bottom: 4px; }
.side .logo { color: #fff; margin: 4px 8px 22px; }
.side .logo small { color: #8b96ad; }
.side a.nav-i { display: flex; align-items: center; gap: 10px; color: #c9d1e2; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; margin-bottom: 2px; }
.side a.nav-i:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.nav-i.on { background: rgba(255, 122, 26, .16); color: #fff; }
.side a.nav-i .cnt { margin-left: auto; background: var(--saffron); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.usage { margin-top: auto; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 14px; font-size: 13px; }
.bar { height: 8px; background: rgba(255, 255, 255, .14); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; background: var(--saffron); }
.main { padding: 24px 28px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar h1 { font-size: 26px; margin: 0; }
.banner { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.banner.warn { background: #fff7e6; color: #7a4a00; }
.banner.info { background: var(--teal-l); color: var(--teal); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.kpi .l { color: var(--muted); font-weight: 600; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.bars .b { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; }
.bars .b span:first-child { width: 120px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .b .track { flex: 1; height: 10px; background: #f0ece4; border-radius: 99px; overflow: hidden; }
.bars .b .track i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-width: 160px; padding: 9px 12px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #f0ece4; vertical-align: top; font-size: 14px; }
tr:hover td { background: #fffcf7; }
td .nm { font-weight: 700; }
td .sub { color: var(--muted); font-size: 12.5px; }
td select { padding: 6px 8px; font-size: 13px; width: auto; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 40px; }
.modal-bg { position: fixed; inset: 0; background: rgba(14, 27, 44, .45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.spinner { width: 42px; height: 42px; border: 4px solid #f0e3d6; border-top-color: var(--saffron); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mobile-top { display: none; }

@media (max-width: 900px) {
  .hero, .grid2 { grid-template-columns: 1fr; }
  .stack { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: -260px; width: 240px; z-index: 40; transition: left .2s; }
  .side.open { left: 0; }
  .mobile-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
  .mobile-top .logo { color: #fff; font-size: 18px; }
  .main { padding: 18px 14px 60px; }
  .radio-cards { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .leads-t thead { display: none; }
  .leads-t tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border-bottom: 1px solid #f0ece4; }
  .leads-t td { display: block; padding: 0; border: 0; }
  .leads-t td:nth-child(1) { grid-column: 1 / -1; }
  .leads-t td:nth-child(2) { font-size: 13px; }
  .leads-t td:nth-child(3) { text-align: right; font-size: 13px; }
  .leads-t td:nth-child(4) { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
  .leads-t td:nth-child(4) .wa { flex: 1; }
  .leads-t td:nth-child(5) select { width: 100%; }
  .leads-t td:nth-child(6) { text-align: right; }
}

/* ================= Wide desktop layout (shared) ================= */
.wrap { width: min(1280px, 92vw); margin: 0 auto; }
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(14, 27, 44, .95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav .logo, .on-dark .logo { color: #fff; }
.site-nav .logo small, .on-dark .logo small { color: #8b96ad; }
.site-nav .logo-mark, .on-dark .logo-mark { background: #1d2c44; }
.site-nav a.l { color: #c9d1e2; text-decoration: none; font-weight: 600; }
.site-nav a.l:hover { color: #fff; }
.site-foot { background: var(--ink); color: #a7b0c3; padding: 28px 0; margin-top: 64px; font-size: 14px; }
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: #c9d1e2; text-decoration: none; }

/* ---------- auth pages: split screen ---------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px clamp(32px, 5vw, 88px); display: flex; flex-direction: column; }
.auth-brand::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(520px 360px at 85% 15%, rgba(255,122,26,.30), transparent 60%),
    radial-gradient(520px 360px at 10% 95%, rgba(15,118,110,.32), transparent 60%); }
.auth-brand::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand h1 { font-size: clamp(32px, 3.2vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: auto 0 18px; max-width: 560px; }
.auth-brand h1 span { color: #ff9a4d; }
.auth-brand p { color: #c3cbdc; font-size: 17px; max-width: 520px; }
.auth-brand ul { list-style: none; padding: 0; margin: 22px 0 32px; }
.auth-brand li { padding: 8px 0 8px 34px; position: relative; color: #dfe5f0; font-weight: 600; }
.auth-brand li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: rgba(52,211,153,.18); color: #34d399; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.auth-mini { background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 18px; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,.35); margin-bottom: auto; }
.auth-mini .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0ece4; font-size: 14px; }
.auth-mini .r:last-child { border-bottom: 0; }
.auth-mini small { color: var(--muted); display: block; font-size: 12px; }
.auth-form { display: grid; place-items: center; padding: 48px 24px; background: var(--paper); }
.auth-form .auth-card { max-width: 460px; }
.auth-form .card { padding: 32px; }
.auth-form h2 { font-size: 28px; }
.auth-form .m-logo { display: none; margin-bottom: 18px; }

/* ---------- onboarding: wide with tips panel ---------- */
.wizard-wide { width: min(1180px, 94vw); margin: 0 auto; padding: 28px 0 80px; }
.wiz-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.wiz-tips { position: sticky; top: 92px; background: var(--ink); color: #dfe5f0; border-radius: 18px; padding: 26px; overflow: hidden; }
.wiz-tips::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 220px at 90% 0%, rgba(255,122,26,.28), transparent 70%); pointer-events: none; }
.wiz-tips > * { position: relative; }
.wiz-tips h3 { color: #fff; font-size: 19px; }
.wiz-tips p, .wiz-tips li { color: #c3cbdc; font-size: 14.5px; }
.wiz-tips ul { padding-left: 18px; }
.wiz-tips .tipnum { display: inline-block; background: rgba(255,122,26,.2); color: #ffb27a; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.wizard-wide .step.card { padding: 32px; }

@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form .m-logo { display: inline-flex; }
  .wiz-grid { grid-template-columns: 1fr; }
  .wiz-tips { position: static; order: -1; }
}
h1[id] { scroll-margin-top: 90px; }
