/* demo.css — AI Receptionist demo page styles */

:root {
  --bg: #111111;
  --surface: #1c1c1c;
  --surface2: #222222;
  --fg: #f5f5f0;
  --fg-muted: #888888;
  --accent: #FF5C1A;
  --accent-dim: #cc4a14;
  --border: #2a2a2a;
  --success: #22c55e;
  --error: #ef4444;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.back-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--fg); }

/* SHOP BANNER */
.shop-banner {
  padding: 2rem 3rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.shop-phone { display: flex; flex-direction: column; gap: 0.3rem; }
.phone-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.phone-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone-shops { font-size: 0.875rem; color: var(--fg-muted); }
.shop-status {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.shop-status span {
  font-size: 0.875rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shop-status strong { color: var(--fg); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* MAIN */
main { max-width: 1100px; margin: 0 auto; padding: 0 2rem 5rem; }

/* SECTION SHARED */
.section-header { margin-bottom: 3rem; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
}

/* FLOW SECTION */
.flow-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.75rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.flow-step:first-child { border-top: 1px solid var(--border); }
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.step-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.step-body p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.step-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.step-meta code {
  font-family: 'Courier New', monospace;
  color: var(--accent);
}
.sms-preview {
  font-size: 0.8rem;
  color: var(--fg-muted);
  display: block;
  font-style: italic;
}

/* CAPTURE CARDS */
.step-capture {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  max-width: 420px;
  transition: background 0.3s;
}
.step-capture.filled { background: #1a2e1a; border-color: #2d4a2d; }
.capture-label { color: var(--fg-muted); min-width: 110px; flex-shrink: 0; }
.capture-value { color: var(--fg); font-weight: 500; }
.capture-value.fresh { color: var(--success); }

/* SIM SECTION */
.sim-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.sim-header { margin-bottom: 2.5rem; }
.sim-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.sim-header p { font-size: 0.95rem; color: var(--fg-muted); }

/* LEAD FORM */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 700px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
input, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
input::placeholder { color: var(--fg-muted); }
select { cursor: pointer; }
.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-submit:hover:not(:disabled) { background: var(--accent-dim); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.hidden { display: none; }
.form-result {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}
.form-result.success { background: #1a2e1a; border: 1px solid #2d4a2d; color: var(--success); }
.form-result.error { background: #2e1a1a; border: 1px solid #4a2d2d; color: var(--error); }

/* LEADS SECTION */
.leads-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.leads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.leads-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
.refresh-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.refresh-link:hover { color: var(--accent); }

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.leads-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.leads-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: var(--surface); }
.loading-cell, .empty-cell {
  text-align: center;
  color: var(--fg-muted);
  padding: 2rem !important;
}
.sync-yes { color: var(--success); font-size: 0.8rem; }
.sync-no { color: var(--fg-muted); font-size: 0.8rem; }

/* SETUP SECTION */
.setup-section {
  padding: 5rem 0 4rem;
}
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.setup-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.setup-step:first-child { border-top: 1px solid var(--border); }
.setup-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  padding-top: 0.2rem;
}
.setup-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.setup-body p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 0.5rem;
}
.code-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* FOOTER */
footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tagline { font-size: 0.85rem; color: var(--fg-muted); }

/* MOBILE */
@media (max-width: 768px) {
  nav, main { padding-left: 1.25rem; padding-right: 1.25rem; }
  .shop-banner { padding: 1.5rem; flex-direction: column; }
  .shop-status { gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .leads-table { font-size: 0.8rem; }
  .leads-table th:nth-child(5),
  .leads-table td:nth-child(5),
  .leads-table th:nth-child(7),
  .leads-table td:nth-child(7) { display: none; }
  .footer-inner { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}