/* Billit marketing site — same design language as the admin app: light, airy, indigo accent. */
:root {
  --bg: #fbfcfe;
  --surface: #ffffff;
  --ink: #1e293b;
  --ink-2: #52627a;
  --ink-3: #97a3b6;
  --line: #e8ecf3;
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-soft: #eef2ff;
  --ok: #16a34a;  --warn: #d97706;  --bad: #dc2626;  --info: #0284c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30,41,59,.05), 0 6px 20px rgba(30,41,59,.04);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15.5px; line-height: 1.55;
}
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
a { color: var(--brand); text-decoration: none; }
.container { width: 1120px; max-width: calc(100% - 40px); margin: 0 auto; }
.container.narrow { width: 760px; }
.container.center { text-align: center; }
h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: 30px; letter-spacing: -.01em; margin-bottom: 8px; }
h3 { font-size: 17px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-sub { color: var(--ink-2); max-width: 620px; margin-bottom: 34px; font-size: 16.5px; }
.container.center .section-sub { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 600; border-radius: 10px; padding: 10px 18px; cursor: pointer;
  text-decoration: none; transition: background .12s ease, transform .12s ease;
}
.btn:hover { background: #f4f6fb; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.inverse { background: #fff; border-color: #fff; color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.small { padding: 7px 13px; font-size: 13px; }
.btn.lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,252,254,.85);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-size: 20px; font-weight: 800; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.brand-mark { color: var(--brand); }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-inline-start: auto; }
@media (max-width: 860px) { .main-nav { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; background: linear-gradient(170deg, var(--brand-soft), var(--bg) 55%, #f0fdf4); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--ink-2); margin: 18px 0 28px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.mock-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  box-shadow: 0 24px 60px rgba(79,70,229,.12); transform: rotate(1.5deg);
}
[dir="rtl"] .mock-card { transform: rotate(-1.5deg); }
.mock-head { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-stat-row { display: flex; gap: 12px; margin-bottom: 18px; }
.mock-stat { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mock-stat i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.mock-stat b { font-size: 18px; direction: ltr; display: inline-block; }
.mock-stat b.ok { color: var(--ok); } .mock-stat b.warn { color: var(--warn); }
.mock-line { height: 9px; border-radius: 5px; background: var(--line); margin: 10px 0; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 60%; } .mock-line.grow { flex: 1; margin: 0 12px; height: 7px; }
.mock-row { display: flex; align-items: center; margin-top: 12px; }
.mock-row b { direction: ltr; font-size: 13px; }
.pill { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.pill.ok { background: #e7f8ee; color: var(--ok); } .pill.info { background: #e6f4fc; color: var(--info); } .pill.warn { background: #fdf3dd; color: var(--warn); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature-card svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--ink-2); font-size: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  box-shadow: var(--shadow); position: relative;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 18px 50px rgba(79,70,229,.14); }
.popular {
  position: absolute; top: -12px; inset-inline-start: 24px; background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px;
}
.price-card h3 { font-size: 19px; }
.price { font-size: 34px; font-weight: 800; margin: 10px 0 16px; }
.price i { font-size: 13px; color: var(--ink-3); font-weight: 500; font-style: normal; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-card li { padding: 7px 0; color: var(--ink-2); font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.price-card li::before { content: "✓  "; color: var(--ok); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 26px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: start; background: none; border: none; font: inherit; font-weight: 700;
  padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; color: var(--ink);
}
.faq-q::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--ink-2); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .section-sub { color: #e0e7ff; }

/* ---------- contact ---------- */
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 14px 0 5px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid #c7d2fe; border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-form .btn { margin-top: 20px; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 20px; color: var(--ok); }
.form-status.err { color: var(--bad); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 14px; }
.footer-grid p { max-width: 340px; font-size: 14px; margin-top: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 13px; color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); }

/* ---------- chat widget ---------- */
.chat-fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: 0 10px 30px rgba(79,70,229,.35);
  display: flex; align-items: center; justify-content: center;
}
.chat-fab:hover { background: var(--brand-dark); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed; bottom: 90px; inset-inline-end: 22px; z-index: 91;
  width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15,23,42,.25); display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { background: var(--brand); color: #fff; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.chat-head button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.chat-msg.agent { background: var(--brand-soft); color: var(--ink); align-self: flex-start; border-start-start-radius: 4px; }
.chat-msg.visitor { background: var(--brand); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-actions .btn { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
.chat-typing { color: var(--ink-3); font-size: 13px; padding: 0 4px; }

/* ---------- onboarding ---------- */
.ob-body { background: linear-gradient(170deg, var(--brand-soft), var(--bg) 45%); min-height: 100vh; }
.ob-wrap { width: 640px; padding: 44px 0 80px; }
.ob-wrap h1 { font-size: 30px; margin-bottom: 20px; }
.ob-progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: step; }
.ob-progress li {
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  padding: 8px 4px; border-bottom: 3px solid var(--line);
}
.ob-progress li.on { color: var(--brand-dark); border-color: var(--brand); }
.ob-progress li.done { color: var(--ok); border-color: var(--ok); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.card.center { text-align: center; padding: 56px 28px; }
.plan-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.plan-list li::before { content: "✓  "; color: var(--ok); font-weight: 700; }
.ob-step label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 16px 0 5px; }
.ob-step input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.ob-step input:focus { outline: 2px solid #c7d2fe; border-color: var(--brand); }
.help-line { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ob-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cred { margin-top: 16px; }
.cred label { margin: 0 0 5px; }
.cred-row { display: flex; gap: 8px; align-items: stretch; }
.cred-row code {
  flex: 1; background: #f3f6fa; border: 1px dashed var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 13px; word-break: break-all; font-family: ui-monospace, Menlo, monospace;
}
#ob-open { margin-top: 26px; }
.next-box { margin-top: 26px; background: var(--brand-soft); border-radius: 12px; padding: 18px 20px; }
.next-box h3 { margin-bottom: 8px; }
.next-box ol { padding-inline-start: 20px; color: var(--ink-2); }
.next-box li { padding: 3px 0; }
