:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --panel: #ffffff;
  --soft: #f7faff;
  --text: #1b2a44;
  --muted: #64748f;
  --accent: #3278ff;
  --ok: #1fa56d;
  --warn: #d14463;
  --border: #d8e0ef;
  --ui-ring: rgba(50, 120, 255, 0.35);
  --ui-shadow: 0 10px 26px rgba(26, 56, 112, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #eaf1ff, var(--bg) 60%);
  color: var(--text);
}

.container { width: min(1180px, 92vw); margin: 0 auto; }
.landing { max-width: 1100px; margin: 0 auto; padding: 36px 18px; }
.hero, .offer-card, .landing-card, .panel, .kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.hero { padding: 64px 0 24px; }
.hero-shell { margin-top: 8px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.hero-side-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.mini-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.mini-kpi {
  background: #f7faff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.mini-kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.mini-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.hero-tag { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-subtitle, .landing-card li, .offer-subtitle, .cta-note { color: var(--muted); }
.badge {
  display: inline-block;
  background: rgba(59, 120, 255, 0.1);
  border: 1px solid rgba(59, 120, 255, 0.35);
  color: #2f58b9;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.lead {
  color: var(--muted);
  max-width: 66ch;
  line-height: 1.6;
}
.checks {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.checks li {
  color: #2f6a46;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 15px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, #3179ff, #5a59ff); color: #fff; }
.btn-secondary { border-color: var(--border); color: var(--text); background: transparent; }
.landing-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing-stack { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.landing-card { padding: 16px; }
.section { padding: 30px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head p { margin: 0; color: var(--muted); }

.audience-head {
  display: block;
  margin-bottom: 22px;
}

.audience-eyebrow {
  margin: 0 0 10px;
  color: #8a95aa;
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.audience-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.audience-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.case-card {
  background: linear-gradient(180deg, var(--panel) 0%, #f9fbff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.case-card p,
.case-card li { color: var(--muted); }

.symptom-card {
  background: #f6f8fd;
  border-color: #d9e0ee;
  padding: 22px 22px 18px;
}

.symptom-icon {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1;
}

.symptom-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.symptom-lead {
  margin: 10px 0 12px;
  color: #7f8ba2;
  font-size: 20px;
  line-height: 1.4;
}

.symptom-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.symptom-list li {
  color: #4b5874;
  font-size: 20px;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}

.symptom-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: #9aa5bc;
}

.symptom-quote {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e0e6f2;
  color: #909cb1;
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
}
.offer-card { margin-top: 14px; padding: 16px; }
.offer-price { font-size: 32px; font-weight: 800; margin: 0; }
.offer-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.offer-item { background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.offer-item span { font-size: 13px; color: var(--muted); display: block; }
.offer-item strong { display: block; margin-top: 5px; }
.offer-actions { margin-top: 12px; display: flex; gap: 10px; }
.button-primary, .button-secondary {
  text-decoration: none; border-radius: 12px; padding: 11px 14px; display: inline-block;
}
.button-primary { background: linear-gradient(90deg, #3179ff, #44b6ff); color: #fff; }
.button-secondary { border: 1px solid #bcd0ff; color: var(--accent); background: #f5f9ff; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-col { background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.live-demo { margin-top: 14px; }

.app-shell { width: 100%; max-width: none; margin: 0; padding: 0 18px 18px; }
.topbar-fixed {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 252, 0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(26, 56, 112, 0.08);
}
.topbar-title h1 { margin: 0 0 8px; font-size: 24px; }
.table-controls select {
  background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.kpi-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi-card { padding: 12px; }
.kpi-card p { margin: 0; color: var(--muted); }
.kpi-card h2 { margin: 8px 0 0; }
.danger { color: var(--warn); }
.panel { margin-top: 10px; padding: 12px; }
.b24-card { box-shadow: var(--ui-shadow); }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--muted); }
.tab.active { background: rgba(50,120,255,.12); border-color: rgba(50,120,255,.5); color: #1e4297; }
.update-tab { border-color: rgba(50,120,255,.5); color: #1e4297; }
.kanban-scroll { overflow-x: auto; padding-bottom: 8px; width: 100%; }
.kanban-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 320px); gap: 12px; min-width: max-content; width: max-content; }
.kanban-col { background: linear-gradient(180deg, #f8fbff, #f2f6ff); border: 1px solid #d4dff5; border-radius: 12px; padding: 8px; min-height: 220px; }
.kanban-col h4 { margin: 0 0 8px; display: flex; justify-content: space-between; }
.kanban-col h4 span { background: #dfe9ff; color: #2453b8; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.kanban-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #d7e2f7;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  box-shadow: 0 6px 16px rgba(42,79,152,.08);
  animation: fadeIn .25s ease;
  cursor: pointer;
}
.kanban-card:hover { border-color: #8fb0f6; transform: translateY(-1px); }
.card-title { margin: 4px 0; font-weight: 600; }
.card-meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.table-controls { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
.b24-table table { border-collapse: separate !important; border-spacing: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
th { color: var(--muted); font-weight: 600; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: #f8fbff; }
.activity-list, .chat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.activity-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.chat-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.chat-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chat-filterchips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-chip {
  border: 1px solid #dce3ee;
  background: #f7f9fc;
  color: #33445f;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.chat-chip span {
  min-width: 18px;
  text-align: center;
  border-radius: 999px;
  background: #e9eef7;
  padding: 1px 6px;
  font-weight: 700;
}
.chat-chip.active {
  background: linear-gradient(180deg, #3f7dff, #2f70f6);
  color: #fff;
  border-color: #2e6ef0;
}
.chat-chip.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.chat-toggle {
  font-size: 13px;
  color: #4f5f7a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-total {
  margin-left: auto;
  color: #7b879e;
  font-size: 13px;
}
.chat-messages-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
}
.chat-viewport {
  max-height: 62vh;
  overflow-y: auto;
  padding: 4px 2px 42px;
}
.chat-day-group + .chat-day-group {
  margin-top: 14px;
}
.chat-day-title {
  margin: 0 0 10px;
  color: #3b5f9f;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.chat-message-root {
  position: relative;
  width: 100%;
  scroll-margin-top: 16px;
}
.chat-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 30px;
}
.chat-side-right .chat-container {
  justify-content: flex-end;
  margin-left: auto;
  max-width: 75%;
}
.chat-side-right .chat-leading {
  order: 2;
}
.chat-side-right .chat-content-wrap {
  align-items: flex-end;
}
.chat-leading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dbe8ff;
  color: #2d4d91;
  border: 1px solid #bfd2f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.chat-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}
.chat-content {
  background: var(--soft);
  border: 1px solid #dbe5f7;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  text-wrap: pretty;
}
.chat-variant-message .chat-content {
  background: #f7faff;
  border-color: #d8e3f7;
  color: #3a4b68;
}
.chat-variant-event .chat-content {
  background: #fff2f5;
  border-color: #efbfd0;
  color: #6a2c3d;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-content p { margin: 6px 0 0; line-height: 1.45; }
.chat-head small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.chat-actions {
  position: absolute;
  bottom: 0;
  left: 44px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .18s ease;
}
.chat-side-right .chat-actions {
  left: auto;
  right: 44px;
}
.chat-message-root:hover .chat-actions {
  opacity: 1;
}
.chat-action-btn {
  text-decoration: none;
  border: 1px solid #bed2ff;
  background: #f3f8ff;
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chat-action-btn:hover {
  background: #e8f1ff;
}
.chat-indicator {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0 42px;
}
.chat-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8ba3d9;
}
.chat-indicator span:nth-child(1) { animation: b24Bounce 1s infinite; }
.chat-indicator span:nth-child(2) { animation: b24Bounce 1s .15s infinite; }
.chat-indicator span:nth-child(3) { animation: b24Bounce 1s .3s infinite; }
.chat-auto-scroll {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 6px;
  border: 1px solid #bed2ff;
  background: #f3f8ff;
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chat-auto-scroll:hover {
  background: #e8f1ff;
}
.chat-day-divider {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.chat-day-title {
  margin: 0;
  color: #6f7c94;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: #eff2f8;
  border: 1px solid #e0e6f1;
  border-radius: 999px;
  padding: 4px 12px;
}
.chat-list {
  gap: 10px;
}
.chat-feed-item {
  background: #f5f7fb;
  border: 1px solid #e2e7f1;
  border-radius: 10px;
  padding: 10px 12px;
}
.chat-feed-item.is-negative {
  background: #fff3f4;
  border-color: #efc8ce;
  border-left: 3px solid #d45567;
}
.chat-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.chat-item-authorline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #33445f;
}
.chat-item-time {
  color: #7b879e;
  font-size: 12px;
}
.chat-badge {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid transparent;
  font-weight: 600;
}
.badge-neutral {
  color: #667085;
  background: #eef2f7;
  border-color: #dce3ee;
}
.badge-positive {
  color: #1f8b53;
  background: #ebfbf1;
  border-color: #c5efd4;
}
.badge-negative {
  color: #be3d53;
  background: #fdecef;
  border-color: #f4c5cf;
}
.badge-info {
  color: #4d6aa0;
  background: #edf3ff;
  border-color: #d1def8;
}
.badge-question {
  color: #5a4aa5;
  background: #f0ebff;
  border-color: #dcd0ff;
}
.chat-item-text {
  margin: 8px 0 6px;
  color: #2a3b56;
}
.chat-item-task {
  font-weight: 700;
  font-size: 13px;
  color: #3d5ea8;
  text-decoration: none;
}
.chat-item-task:hover {
  text-decoration: underline;
}
.chat-compact .chat-container {
  gap: 8px;
  padding-bottom: 26px;
}
.chat-compact .chat-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.chat-compact .chat-content {
  min-height: 32px;
  border-radius: 6px;
  padding: 8px 10px;
}
.chat-compact .chat-actions {
  left: 30px;
}
.chat-compact.chat-side-right .chat-actions {
  right: 30px;
}
.overlay { position: fixed; inset: 0; background: rgba(16, 28, 48, 0.4); display: grid; place-items: center; padding: 14px; z-index: 60; }
.modal { width: min(860px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(31, 57, 109, 0.22); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modern-modal h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.modal-id { margin: 0 0 6px; color: #3c68b8; font-weight: 700; }
.modal-badges { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge-chip { border: 1px solid #c8d8f8; color: #2d4f94; background: #eff5ff; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.modal-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.info-card { background: #f8fbff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.info-card span { display: block; color: var(--muted); font-size: 13px; }
.info-card strong { display: block; margin-top: 6px; color: #20304f; }

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ui-ring);
  outline-offset: 2px;
}

@keyframes fadeIn { from { opacity: .5; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }
@keyframes b24Bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}
@media (max-width: 1100px) {
  .kpi-grid, .offer-grid, .dashboard-grid, .landing-grid, .compare-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
  .hero-layout, .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kpi-grid, .offer-grid, .dashboard-grid, .landing-grid, .compare-grid, .cases-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .chat-total {
    margin-left: 0;
  }
}

/* Global hover layer for demo UI elements */
a,
button,
.btn,
.button-primary,
.button-secondary,
.tab,
.chat-chip,
.chat-feed-item,
.card,
.kpi-card,
.landing-card,
.case-card,
.hero-card,
.offer-card,
.kanban-card,
.info-card,
tr {
  transition: all 0.2s ease;
}

a:hover,
button:hover,
.btn:hover,
.button-primary:hover,
.button-secondary:hover,
.tab:hover,
.chat-chip:hover {
  transform: translateY(-1px);
}

.card:hover,
.kpi-card:hover,
.landing-card:hover,
.case-card:hover,
.hero-card:hover,
.offer-card:hover,
.kanban-card:hover,
.info-card:hover,
.chat-feed-item:hover {
  box-shadow: 0 14px 28px rgba(26, 56, 112, 0.14);
  border-color: #9eb8ef;
}

tr:hover {
  background: #f4f8ff;
}
