/* 123DemoPro — a BeehiveStack product */

/* ── LIGHT THEME (system default) ── */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface2: #ebebef;
  --border: #d0d0d8;
  --text: #111114;
  --text-muted: #666;
  --text-dim: #aaa;
  --accent: #2563EB;
  --accent-dim: rgba(37,99,235,0.10);
  --accent2: #D4860A;
  --yellow: #D4860A;
  --orange: #d97a00;
  --green: #1a9e55;
  --red: #c0392b;
  --nav-bg: rgba(245,245,247,0.92);
  --shadow: 0 24px 64px rgba(0,0,0,0.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── DARK THEME (system dark mode or explicit) ── */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d0d10;
  --surface: #111114;
  --surface2: #18181d;
  --border: #2a2a30;
  --text: #f0f0f4;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #3B82F6;
  --accent-dim: rgba(59,130,246,0.12);
  --accent2: #F5A623;
  --yellow: #F5A623;
  --orange: #ff9f43;
  --green: #2ecc71;
  --red: #e74c3c;
  --nav-bg: rgba(13,13,16,0.92);
  --shadow: 0 24px 64px rgba(0,0,0,0.5);
} }

[data-theme="dark"] {
  --bg: #0d0d10;
  --surface: #111114;
  --surface2: #18181d;
  --border: #2a2a30;
  --text: #f0f0f4;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #3B82F6;
  --accent-dim: rgba(59,130,246,0.12);
  --accent2: #F5A623;
  --yellow: #F5A623;
  --orange: #ff9f43;
  --green: #2ecc71;
  --red: #e74c3c;
  --nav-bg: rgba(13,13,16,0.92);
  --shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface2: #ebebef;
  --border: #d0d0d8;
  --text: #111114;
  --text-muted: #666;
  --text-dim: #aaa;
  --accent: #2563EB;
  --accent-dim: rgba(37,99,235,0.10);
  --accent2: #D4860A;
  --yellow: #D4860A;
  --orange: #d97a00;
  --green: #1a9e55;
  --red: #c0392b;
  --nav-bg: rgba(245,245,247,0.92);
  --shadow: 0 24px 64px rgba(0,0,0,0.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── THEME TOGGLE BUTTON ── */
.dh-theme-btn {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  padding: 7px 10px;
  line-height: 1;
  transition: all .15s;
  font-family: var(--font);
}
.dh-theme-btn:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all .15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface2);
  text-decoration: none;
}

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  font-weight: 800 !important;
  border-radius: 10px;
}

.nav-cta:hover { background: #e09920 !important; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 8px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover { background: #e09920; transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.b-lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.b-lang-btn.active:hover { background: var(--accent); color: #fff; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
}

.btn-submit:hover { background: #e09920; transform: translateY(-1px); }

/* ── FEATURES GRID ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── VERTICALS GRID ── */
.verticals-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.vertical-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}

.vertical-chip:hover, .vertical-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.vertical-chip .vi { font-size: 22px; display: block; margin-bottom: 6px; }

/* ── BUILDER LAYOUT ── */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 900px) {
  .builder-layout { grid-template-columns: 1fr; }
}

.builder-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.builder-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FORM ELEMENTS ── */
.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.ob-input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}

.ob-input:focus { border-color: var(--accent); }
.ob-input::placeholder { color: var(--text-muted); }

/* ── SCRIPT EDITOR ── */
.script-turn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}

.script-turn label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  display: block;
}

.script-turn textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  resize: vertical;
  outline: none;
  min-height: 48px;
  line-height: 1.4;
}

.turn-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
}

.turn-remove:hover { color: var(--red); background: rgba(231,76,60,0.1); }

.btn-add-turn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 16px;
}

.btn-add-turn:hover { border-color: var(--accent); color: var(--accent); }

/* ── PREVIEW PANEL ── */
.preview-panel {
  position: sticky;
  top: 80px;
}

.chat-preview {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.chat-header {
  background: var(--surface2);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}

.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-bot-info strong { font-size: 14px; font-weight: 800; }
.chat-bot-info span { font-size: 11px; color: var(--green); display: block; }

.chat-messages {
  padding: 16px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  animation: msgIn .2s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
  background: var(--surface2);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg-user {
  background: var(--accent);
  color: #000;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 600;
}

.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.chat-input-row input:focus { border-color: var(--accent); }

.btn-send {
  background: var(--accent);
  border: none;
  color: #000;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

/* ── TYPING INDICATOR ── */
.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  animation: msgIn .2s ease;
}

.typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: dot .8s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes dot {
  0%,80%,100% { transform: scale(1); opacity: .4; }
  40% { transform: scale(1.3); opacity: 1; }
}

/* ── DEMO LINK BOX ── */
.demo-link-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.demo-link-box .link-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.demo-link-box .link-url {
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  font-family: monospace;
}

.copy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-copy-link, .btn-open-demo {
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}

.btn-copy-link {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-copy-link:hover { border-color: var(--accent); color: var(--accent); }

.btn-open-demo {
  background: var(--accent);
  color: #000;
}

.btn-open-demo:hover { background: #e09920; }

/* ── DEMO PAGE ── */
.demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.demo-powered {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.demo-powered a { color: var(--accent); }

/* ── PRICING ── */
.pricing-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, var(--surface) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 20px;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.pricing-cadence {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px 20px 16px 16px;
  padding: 24px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-drag-bar {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ── DEMO TYPE TOGGLE ── */
.demo-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.type-btn {
  flex: 1;
  padding: 12px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}

.type-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── PLAN BADGE ── */
.plan-badge {
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── BRANDING SECTION ── */
.branding-section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.lock-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: 8px;
}

/* ── VOICE UI ── */
.phone-ui {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  max-width: 340px;
  margin: 0 auto;
}

.call-status {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
}

.call-avatar {
  font-size: 72px;
  text-align: center;
  line-height: 1;
  margin: 20px 0;
}

.voice-waves {
  display: flex;
  gap: 4px;
  justify-content: center;
  height: 40px;
  align-items: center;
}

.voice-waves span {
  display: block;
  width: 6px;
  background: #F5A623;
  border-radius: 3px;
  animation: wave 0.8s ease-in-out infinite;
  height: 8px;
}

.voice-waves span:nth-child(2) { animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { animation-delay: 0.2s; height: 32px; }
.voice-waves span:nth-child(4) { animation-delay: 0.1s; }
.voice-waves span:nth-child(5) { animation-delay: 0s; }

@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

.transcript {
  max-height: 200px;
  overflow-y: auto;
  margin: 16px 0;
  font-size: 13px;
}

.transcript-line {
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 8px;
  line-height: 1.4;
  animation: msgIn .2s ease;
}

.transcript-line.ai {
  background: #1a1a1f;
  color: #f0f0f4;
  margin-right: 20px;
}

.transcript-line.caller {
  background: rgba(245,166,35,0.15);
  color: #F5A623;
  margin-left: 20px;
  text-align: right;
}

.btn-call {
  width: 100%;
  background: #2ecc71;
  border: none;
  color: #000;
  font-size: 16px;
  font-weight: 800;
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--font);
  transition: all .15s;
}

.btn-call:hover { background: #27ae60; }
.btn-call:disabled { background: var(--surface2); color: var(--text-muted); cursor: not-allowed; }

/* ── VOICE SCRIPT EDITOR ── */
.voice-turn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}

.voice-turn label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  display: block;
}

.voice-turn label.lbl-caller { color: #F5A623; }
.voice-turn label.lbl-ai { color: var(--green); }

.voice-turn textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  resize: vertical;
  outline: none;
  min-height: 40px;
  line-height: 1.4;
}

/* ── LEADS DASHBOARD ── */
.leads-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .leads-layout { grid-template-columns: 1fr; }
  .leads-sidebar { display: none; }
}

.leads-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.sidebar-brand {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-brand span { color: var(--accent); }

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
}

.sidebar-nav a.active { color: var(--accent); }

.leads-main {
  padding: 32px 24px;
  max-width: 800px;
}

.page-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.demo-ready-card {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.demo-ready-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.demo-ready-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.demo-ready-card .demo-link-preview {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 16px;
  background: var(--surface2);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: monospace;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-share-action {
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}

.btn-share-copy {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-share-copy:hover { border-color: var(--accent); color: var(--accent); }

.btn-share-email {
  background: var(--accent);
  color: #000;
}

.btn-share-email:hover { background: #e09920; }

.btn-share-sms {
  background: var(--green);
  color: #000;
}

.btn-share-sms:hover { background: #27ae60; }

.btn-share-preview {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-share-preview:hover { border-color: var(--accent); color: var(--accent); }

/* ── EMAIL PREVIEW CARD ── */
.email-card-preview-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.preview-card-render {
  background: #111114;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  font-family: sans-serif;
  border: 1px solid #2a2a30;
  margin-bottom: 16px;
}

.preview-html-code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  height: 120px;
  resize: vertical;
  outline: none;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a { color: var(--accent); }

/* ── UTILS ── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 999;
  animation: toastIn .2s ease;
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── VERTICALS TICKER ── */
.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.ticker-left {
  animation: tickerLeft 35s linear infinite;
}

.ticker-right {
  animation: tickerRight 35s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes tickerRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.ticker-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 110px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}

.ticker-chip:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.ticker-chip .vi {
  font-size: 26px;
  line-height: 1;
}

.ticker-chip .vn {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

/* ── DASHBOARD PREVIEW FADE ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 640px) {
  /* Nav */
  .nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .nav-brand { font-size: 16px; }
  .nav-links { gap: 4px; flex-wrap: wrap; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .nav-cta { padding: 8px 14px !important; font-size: 13px !important; }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  /* Features */
  .features { grid-template-columns: 1fr; padding: 0 16px 40px; }

  /* Verticals */
  .verticals-section { padding: 0 16px 40px; }
  .verticals-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .vertical-chip { padding: 10px 8px; font-size: 12px; }

  /* Builder */
  .builder-layout { padding: 16px; gap: 16px; }
  .builder-panel { padding: 16px; }

  /* Demo type toggle */
  .demo-type-toggle { gap: 6px; }
  .type-btn { padding: 10px 8px; font-size: 13px; }

  /* Preview panel in mobile: un-sticky */
  .preview-panel { position: static; }

  /* Pricing */
  .pricing-section { padding: 40px 16px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-card { padding: 24px 20px; }
  .pricing-price { font-size: 36px; }

  /* Leads */
  .leads-main { padding: 20px 16px; }
  .share-buttons { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Demo card */
  .demo-card { border-radius: 14px; }

  /* Sections */
  .section-header h2 { font-size: 22px; }

  /* Buttons */
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-primary { justify-content: center; }

  /* CTA section */
  section[style*="text-align:center"] .hero-actions,
  section[style*="text-align:center"] div[style*="display:flex"] { flex-direction: column; align-items: stretch; }

  /* How it works numbers */
  div[style*="display:flex;gap:16px;align-items:flex-start"] { gap: 12px; }

  /* Footer */
  .footer { padding: 24px 16px; font-size: 12px; }

  /* Modal */
  .modal-sheet { border-radius: 16px 16px 0 0; }

  /* Email preview */
  .email-card-preview-section { padding: 16px; }
  .preview-card-render { padding: 16px; }

  /* Demo preview strip on homepage */
  div[style*="min-width:180px"] { min-width: 140px !important; }
}

@media (max-width: 480px) {
  .nav-links .nav-cta { display: none; }
  .verticals-grid { grid-template-columns: repeat(3, 1fr); }
  .copy-actions { grid-template-columns: 1fr 1fr; }
  .share-buttons { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .voice-style-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .voice-style-btn { padding: 8px 4px; font-size: 11px; }
}

/* ── VOICE STYLE SELECT ── */
.voice-style-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.voice-style-btn {
  padding: 10px 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-family: var(--font);
  transition: all .15s;
}

.voice-style-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── TURNS SELECTOR ── */
.voice-turns-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.turns-btn {
  flex: 1;
  padding: 8px 6px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-family: var(--font);
  transition: all .15s;
  line-height: 1.3;
  white-space: nowrap;
}

.turns-btn small {
  font-weight: 400;
  font-size: 10px;
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  white-space: normal;
}

.turns-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.turns-btn.active small {
  color: var(--accent);
  opacity: 0.8;
}

/* ── BOT NAME DISPLAY ── */
.voice-bot-name {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.phone-header { margin-bottom: 8px; }



/* ── OUTRO CARD ── */
.outro-card {
  margin: 20px 0 8px;
  background: linear-gradient(135deg, #1a1500 0%, #0d0d10 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 0 40px rgba(245,166,35,0.18), 0 4px 24px rgba(0,0,0,0.4);
  text-align: center;
}

.outro-card-name {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .01em;
  line-height: 1.1;
}

.outro-card-tagline {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.5;
  font-weight: 500;
}

.outro-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  letter-spacing: .01em;
}
.outro-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
}

.outro-btn-call {
  background: var(--accent);
  color: #0d0d10;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}

.outro-btn-web {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  margin-top: 4px;
}

/* ── EMAIL PREVIEW MODAL ── */
.email-preview-modal {
  max-width: 900px !important;
  width: 100%;
  /* center vertically when used in the overlay */
  align-self: center;
}

.email-preview-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.email-preview-panel {
  flex: 1.2;
  min-width: 0;
}

.email-html-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: 520px;
  overflow-y: auto;
  background: var(--bg);
}

.email-controls-panel {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.btn-toggle-intro {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: all .15s;
}
.btn-toggle-intro:hover { color: var(--text); border-color: var(--accent); }

@media (max-width: 700px) {
  .email-preview-layout { flex-direction: column; }
  .email-controls-panel { flex: unset; width: 100%; }
  .email-html-preview { max-height: 320px; }
  .email-preview-modal { max-width: 100% !important; }
}

/* ── DEMO MODE TOGGLE (demo.html) ── */
.demo-mode-toggle {
  display: flex;
  gap: 0;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.mode-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
  white-space: nowrap;
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

/* ── OUTREACH METRICS DASHBOARD ── */
.metric-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.metric-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#metric-followups .metric-value { color: #ff9f43; }
#metric-callbacks .metric-value { color: var(--green); }
