/* Churn Detective — Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #1a202c; background: #f7fafc; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.navbar { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: 1.4rem; font-weight: 700; color: #2b6cb0; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: #4a5568; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #2b6cb0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; min-height: 44px; border-radius: 6px; border: none; cursor: pointer; font-size: 0.95rem; text-decoration: none; }
.btn-primary { background: #2b6cb0; color: #fff; }
.btn-primary:hover { background: #2c5282; }
.btn-secondary { background: #edf2f7; color: #2d3748; border: 1px solid #cbd5e0; }
.btn-large { font-size: 1.1rem; padding: 12px 28px; margin-top: 20px; }
.btn-small { font-size: 0.8rem; padding: 5px 12px; min-height: 40px; }
.hero { background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%); color: #fff; padding: 90px 0; text-align: center; }
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; }
.hero .lead { font-size: 1.15rem; max-width: 700px; margin: 0 auto; opacity: 0.95; }
.pricing { padding: 70px 0; text-align: center; }
.pricing h2 { margin-bottom: 40px; font-size: 2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.card h3 { color: #2b6cb0; font-size: 1.3rem; }
.price { font-size: 2rem; font-weight: 700; margin: 12px 0 4px; }
.price span { font-size: 1rem; color: #718096; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { padding: 6px 0; border-bottom: 1px solid #f0f4f8; color: #4a5568; }
.auth { padding: 60px 0; }
.auth-container { max-width: 420px; margin: 0 auto; }
.auth .card { padding: 36px; }
.auth input { width: 100%; padding: 12px; margin-bottom: 14px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 1rem; }
.auth-switch { text-align: center; color: #2b6cb0; cursor: pointer; font-weight: 600; margin-top: 10px; }
.error { color: #e53e3e; margin-top: 8px; font-weight: 500; }
.app { padding: 50px 0; }
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.usage { display: flex; gap: 18px; flex-wrap: wrap; color: #4a5568; font-size: 0.9rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.dropzone { border: 2px dashed #cbd5e0; border-radius: 10px; padding: 30px 16px; text-align: center; margin-bottom: 14px; cursor: pointer; color: #4a5568; }
.dropzone.dragover { border-color: #2b6cb0; background: #ebf8ff; }
.dropzone .small { font-size: 0.85rem; margin-top: 8px; color: #718096; }
.app input[type="text"] { width: 100%; padding: 10px; border: 1px solid #cbd5e0; border-radius: 6px; margin-bottom: 12px; }
.schema-errors .error { background: #fff5f5; border: 1px solid #feb2b2; border-radius: 6px; padding: 10px; margin-top: 8px; }
.list { list-style: none; margin-top: 8px; }
.list-item { padding: 10px 8px; border-bottom: 1px solid #edf2f7; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.list-item .muted { color: #718096; font-size: 0.85rem; flex: 1; }
.empty { color: #a0aec0; padding: 14px 0; }
.badge { background: #e2e8f0; color: #2d3748; padding: 2px 10px; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; }
.badge.success { background: #c6f6d5; color: #22543d; }
.segment-group { margin-bottom: 14px; }
.segment-group h4 { font-size: 0.95rem; margin-bottom: 6px; color: #2d3748; }
.segment-item { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f0f4f8; font-size: 0.9rem; }
.report { padding: 50px 0; }
.report-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.report-content { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.report-content h3 { margin-bottom: 12px; }
.report-content h4 { margin: 18px 0 8px; color: #2b6cb0; }
.report-content pre { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 14px; overflow-x: auto; }
.report-content ul, .report-content ol { margin-left: 22px; }
.report-content li { margin-bottom: 6px; color: #4a5568; }
footer { background: #2d3748; color: #a0aec0; padding: 22px 0 92px; text-align: center; font-size: 0.9rem; margin-top: 50px; }
.hidden { display: none !important; }
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .nav-container { position: relative; }
  .nav-toggle-label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; font-size: 0.95rem; font-weight: 600; color: #2b6cb0; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 10px 18px rgba(0,0,0,0.08); flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px 18px; z-index: 300; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; width: 100%; padding: 10px 0; font-size: 1.05rem; }
  .nav-links .btn { width: 100%; text-align: center; }
  .app-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .report-header { flex-direction: column; align-items: stretch; }
} | Add Churn Detective web frontend styles.css

.btn-google { display: block; width: 100%; text-align: center; background: #ffffff; color: #3c4043; border: 1px solid #dadce0; margin-top: 12px; }
.btn-google:hover { background: #f8f9fa; }
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 999; background: #2563eb; color: #fff; border: none; border-radius: 24px; padding: 12px 18px; font-size: 15px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 1000; width: 340px; max-width: 92vw; height: 60vh; max-height: 560px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; display: none; flex-direction: column; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.chat-panel.open { display: flex; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; font-weight: 600; }
.chat-close { background: none; border: none; width: 44px; height: 44px; font-size: 22px; cursor: pointer; line-height: 1; flex: 0 0 auto; }
.chat-banner { background: #fef9c3; color: #713f12; font-size: 12px; padding: 8px 12px; border-bottom: 1px solid #fde68a; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { font-size: 14px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; max-width: 85%; white-space: pre-wrap; }
.chat-msg.bot { background: #f3f4f6; color: #111827; align-self: flex-start; }
.chat-msg.user { background: #2563eb; color: #fff; align-self: flex-end; }
.chat-inputrow { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e5e7eb; }
.chat-inputrow textarea { flex: 1; resize: none; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px; font: inherit; }
.chat-emailrow { display: none; gap: 8px; padding: 0 12px 10px; }
.chat-emailrow input { flex: 1; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px; }


/* S4d: content + legal pages, footer links, AI disclosure, notes */
.page-hero { background: #2d3748; color: #ffffff; padding: 46px 0 34px; }
.page-hero h1 { font-size: 1.9rem; margin: 0 0 10px; }
.page-hero .lead { color: #cbd5e0; max-width: 760px; }
.page-section { padding: 34px 0 46px; }
.page-section h2 { margin: 26px 0 10px; }
.page-section h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.page-section ul.does li, .page-section ul.does-not li { margin: 7px 0; }
.legal p, .legal li { line-height: 1.6; }
.faq p { margin: 0 0 14px; }
.price-note { color: #4a5568; font-size: 0.9rem; margin-top: 12px; }
.hero-note { margin-top: 14px; color: #4a5568; font-size: 0.95rem; }
.hero-note a, .legal a { color: #2b6cb0; }
footer .footer-links { margin: 0 0 8px; }
footer .footer-links a { color: #cbd5e0; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 0.95rem; }
footer .footer-links a:hover { text-decoration: underline; }
footer .ai-disclosure { font-size: 0.85rem; color: #a0aec0; margin: 8px 0 4px; }
@media (max-width: 480px) { .page-hero h1 { font-size: 1.45rem; } .page-section { padding: 22px 0 32px; } }


/* S5F-A: mobile nav, tap targets, chat and report states */
.nav-toggle { display: none; }
@media (min-width: 601px) {
  .nav-toggle-label { display: none; }
}
.footer-notice { font-size: 0.85rem; color: #a0aec0; margin: 0 0 6px; }
.notice { background: #fef9c3; border: 1px solid #fde68a; color: #713f12; border-radius: 8px; padding: 10px 14px; margin: 12px 0 4px; font-size: 0.95rem; }
.report-metrics { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 6px; color: #4a5568; }
.small { font-size: 0.85rem; }
.chat-note { font-size: 11px; color: #6b7280; margin-top: 4px; }
footer .contact-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 0.95rem; }
@media (max-width: 600px) {
  .chat-fab { right: 12px; bottom: 12px; min-height: 44px; }
  .chat-panel { right: 12px; left: 12px; width: auto; max-width: none; bottom: 12px; height: 70vh; }
}