/* =================================================================
   LeadsBot — Shared chrome across every page
   Built on top of colors_and_type.css
   ================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ── Brand mark ─────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 32px; height: 32px;
  background: var(--grad-logo);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: #fff; font-weight: 800;
  font-size: 17px; letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(79,70,229,.25), inset 0 1px 0 rgba(255,255,255,.25);
}
.brand .wm {
  font-family: var(--font-display); font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Public navigation (landing, pricing, reviews, integrations) ── */
.nav-public {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,250,252,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.7);
}
.nav-public .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex; gap: 30px; font-size: 14px; color: var(--c-text-2);
  font-weight: 500;
}
.nav-links a { position: relative; transition: var(--trans); }
.nav-links a:hover { color: var(--c-text); }
.nav-links a.current { color: var(--c-text); }
.nav-links a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--trans); font-family: var(--font-ui);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-brand-hi); }
.btn-ghost { background: transparent; color: var(--c-text); }
.btn-ghost:hover { background: var(--c-bg-2); }
.btn-outline { background: #fff; color: var(--c-text); border-color: var(--c-border); }
.btn-outline:hover { background: var(--c-bg-2); border-color: #cbd5e1; }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-dark { background: var(--c-text); color: #fff; }
.btn-dark:hover { background: #1e293b; transform: translateY(-1px); }

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px;
  background: var(--brand); border-radius: 50%;
}
.eyebrow.muted { color: var(--c-text-3); }
.eyebrow.muted::before { background: var(--c-text-3); }

/* ── Headings (marketing) ────────────────────────────────────── */
.h-display {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.02;
  color: var(--c-text);
}
.h-section {
  font-family: var(--font-display); font-weight: 800;
  font-size: 44px; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--c-text); margin: 12px 0 14px;
}
.h-card {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.01em; color: var(--c-text);
}
.muted { color: var(--c-text-2); }
.muted-3 { color: var(--c-text-3); }

/* ── Section rhythm ──────────────────────────────────────────── */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 17px; color: var(--c-text-2); line-height: 1.55; margin-top: 6px; }

/* ── Marketing footer ────────────────────────────────────────── */
.mk-footer { padding: 72px 0 40px; border-top: 1px solid var(--c-border); margin-top: 80px; color: var(--c-text-3); font-size: 13px; background: #fff; }
.mk-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.mk-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-2); font-weight: 700; margin: 0 0 14px; }
.mk-footer a { display: block; padding: 5px 0; color: var(--c-text-3); transition: var(--trans); }
.mk-footer a:hover { color: var(--c-text); }
.mk-footer .footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--c-border); font-size: 12px; }
.mk-footer .footer-bottom .socials { display: flex; gap: 14px; }

/* ── Badges / chips ─────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--c-bg-2); color: var(--c-text-2);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.01em;
}
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.ok { background: rgba(5,150,105,.12); color: var(--ok); }
.chip.warn { background: rgba(217,119,6,.12); color: var(--warn); }
.chip.err { background: rgba(220,38,38,.10); color: var(--err); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Card base ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
}
.card-lift { transition: var(--trans); }
.card-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Secondary page-hero pattern ────────────────────────────── */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(99,102,241,.08), transparent 60%),
    radial-gradient(800px 400px at 10% 0%, rgba(147,51,234,.05), transparent 55%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.page-hero .page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: flex-end; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 52px; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--c-text); margin: 16px 0 16px;
}
.page-hero p.lede { font-size: 17px; line-height: 1.55; color: var(--c-text-2); max-width: 540px; }

/* ── App shell (dashboard/builder/automation/reviews/integrations) ── */
.app-shell { display: grid; grid-template-columns: 240px 1fr; height: 100vh; overflow: hidden; background: var(--c-bg); }

.app-side {
  background: #fff;
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.app-side .side-brand { padding: 16px 18px 12px; border-bottom: 1px solid var(--c-bg-2); display:flex; align-items:center; gap:10px; }
.app-side .side-brand .mark { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }
.app-side .side-brand .wm { font-size: 15px; }
.app-side .side-workspace {
  margin: 14px 12px; padding: 10px 12px;
  border: 1px solid var(--c-border); border-radius: 10px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: var(--trans);
}
.app-side .side-workspace:hover { background: var(--c-bg-2); }
.app-side .side-workspace .ws-avatar {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-family: var(--font-display); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.app-side .side-workspace .ws-text { flex: 1; min-width: 0; }
.app-side .side-workspace .ws-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.app-side .side-workspace .ws-plan { font-size: 10.5px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.app-side .side-workspace .caret { color: var(--c-text-3); font-size: 10px; }

.side-group { padding: 10px 12px 4px; }
.side-group-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--c-text-3); padding: 10px 10px 6px; }
.side-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--c-text-2);
  cursor: pointer; transition: var(--trans); font-weight: 500;
  position: relative;
}
.side-item:hover { background: var(--c-bg-2); color: var(--c-text); }
.side-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-item.active .si-icon { color: var(--brand); }
.side-item .si-icon {
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3); flex-shrink: 0;
}
.side-item .si-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700;
  background: var(--c-bg-2); color: var(--c-text-2);
  padding: 2px 7px; border-radius: 999px;
  font-family: var(--font-mono);
}
.side-item.active .si-badge { background: rgba(79,70,229,.15); color: var(--brand); }

.side-user { margin-top: auto; border-top: 1px solid var(--c-bg-2); padding: 12px; display:flex; gap:10px; align-items:center; }
.side-user .avatar { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-family: var(--font-display); font-weight: 800; display:flex; align-items:center; justify-content:center; font-size: 13px; }
.side-user .u-text { flex: 1; min-width: 0; }
.side-user .u-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.side-user .u-email { font-size: 11px; color: var(--c-text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-user .u-cog { color: var(--c-text-3); cursor: pointer; padding: 6px; border-radius: 6px; }
.side-user .u-cog:hover { background: var(--c-bg-2); color: var(--c-text); }

/* App main area */
.app-main { display: flex; flex-direction: column; overflow: hidden; }
.app-top {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; padding: 0 28px; gap: 18px;
  flex-shrink: 0;
}
.app-top .crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--c-text-2); font-weight: 500; }
.app-top .crumbs .sep { color: var(--c-text-3); }
.app-top .crumbs .current { color: var(--c-text); font-weight: 600; }
.app-top .top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app-top .top-search {
  position: relative; width: 280px;
}
.app-top .top-search input {
  width: 100%; padding: 7px 10px 7px 34px;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--c-text);
  outline: none; transition: var(--trans);
}
.app-top .top-search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.app-top .top-search .sico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); }
.app-top .kbd { display:inline-flex; align-items:center; gap: 2px; font-family: var(--font-mono); font-size: 10px; padding: 2px 5px; background: #fff; border: 1px solid var(--c-border); border-radius: 4px; color: var(--c-text-3); position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-2); background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: var(--trans); position: relative;
}
.icon-btn:hover { background: var(--c-bg-2); color: var(--c-text); }
.icon-btn .dot-indicator {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err); border: 2px solid #fff;
}

.app-content {
  flex: 1; overflow-y: auto; padding: 28px 32px 60px;
}

/* Lucide icon sizing default */
.lucide, [data-lucide] { width: 18px; height: 18px; stroke-width: 1.75; }
.si-icon .lucide { width: 16px; height: 16px; }
.icon-btn .lucide { width: 18px; height: 18px; }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 10px; border: 2px solid #fff; }
*::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }
*::-webkit-scrollbar-track { background: transparent; }

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.text-center { text-align: center; }
.grow { flex: 1; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  section { padding: 64px 0; }
  .page-hero .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 36px; }
  .h-section { font-size: 32px; }
  .mk-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
