:root {
  --accent: #e8552d;
  --ink: #1a1f2b;
  --muted: #667085;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e6e8ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

/* Demo bar */
.demobar {
  display: flex; align-items: center; justify-content: space-between;
  background: #0f1320; color: #fff; padding: 8px 18px; font-size: 13px;
  position: sticky; top: 0; z-index: 50;
}
.demobar-left { display: flex; align-items: center; gap: 8px; opacity: .9; }
.demobar .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.demobar-right { display: flex; align-items: center; gap: 10px; }
.demobar select {
  background: #1c2233; color: #fff; border: 1px solid #2c3450; border-radius: 8px;
  padding: 5px 10px; font-size: 13px; cursor: pointer;
}
.mode-pill {
  font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600;
  background: #1c2233; border: 1px solid #2c3450; letter-spacing: .3px;
}
.mode-pill.live { background: #0d3321; border-color: #1f7a4d; color: #6ee7a8; }
.mode-pill.scripted { background: #2a2410; border-color: #7a611f; color: #f3d27a; }

/* Sales teleprompter */
.teleprompter {
  display: flex; align-items: center; gap: 10px;
  background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #7c2d12;
  padding: 7px 18px; font-size: 13px; position: sticky; top: 35px; z-index: 49;
}
.teleprompter .tele-label {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
#pitch { font-style: italic; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.biz-name { font-weight: 800; font-size: 18px; }
.biz-tag { color: var(--muted); font-size: 13px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; }
nav a.cta { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 10px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff);
  padding: 64px 28px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: 40px; margin: 0 0 12px; line-height: 1.1; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hours { color: var(--muted); font-size: 14px; }
.btn-primary {
  background: var(--accent); color: #fff; border: none; padding: 13px 22px;
  border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); }

/* Services */
.services { padding: 44px 28px; }
.services h2, .leadpanel h2 { font-size: 22px; margin: 0 0 20px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; font-weight: 600;
}
.service-card .tick { color: var(--accent); margin-right: 8px; }

/* Lead panel */
.leadpanel { padding: 24px 28px 120px; }
.leadpanel h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.lead-list { display: grid; gap: 12px; }
.lead-empty { color: var(--muted); font-style: italic; }
.lead-card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px;
  animation: pop .3s ease;
}
.lead-card .lc-name { font-weight: 800; font-size: 15px; }
.lead-card .lc-row { font-size: 13px; color: var(--muted); }
.lead-card .lc-row b { color: var(--ink); font-weight: 600; }
.lead-card .lc-badge { font-size: 11px; color: #16a34a; font-weight: 700; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Chat launcher */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 26px;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 60;
}

/* Chat window */
.chat {
  position: fixed; right: 22px; bottom: 22px; width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 90px);
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; z-index: 70;
}
.chat-head {
  background: var(--accent); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-head-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 800; }
.chat-title { font-weight: 800; }
.chat-sub { font-size: 12px; opacity: .9; }
.chat-head-actions button {
  background: rgba(255,255,255,.18); border: none; color: #fff; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 15px; margin-left: 6px;
}
.chat-head-actions button.active { background: #fff; color: var(--accent); }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fbfbfc; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.dots span { animation: blink 1.2s infinite; }
.dots span:nth-child(2){ animation-delay: .2s; } .dots span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,100%{ opacity:.2 } 50%{ opacity:1 } }

.chat-suggests { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.chip {
  font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 14px; outline: none; }
.chat-input input:focus { border-color: var(--accent); }
.chat-input button { background: var(--accent); color: #fff; border: none; padding: 0 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }

.voice-status { padding: 8px 14px; font-size: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); border-top: 1px solid var(--line); }
.voice-status.listening { font-weight: 700; }

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  nav a:not(.cta) { display: none; }
}
