/* ============================================================
   BrandSentra — components.css (Lovable Design System)
   Feature cards, mockups, forms, tables, footer
   ============================================================ */

/* --- Feature cards --- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(59, 186, 126, 0.15);
  border-color: var(--border-primary);
}
.feature-card .icon-box {
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Problem stat boxes --- */
.problem-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.problem-stat .number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 8px;
}
.problem-stat .label {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- How it works steps --- */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}
.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Dashboard mockup rows --- */
.dash-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
  font-size: 13px;
}
.dash-row:hover {
  background: rgba(255,255,255,0.02);
}
.dash-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-row .type {
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
  font-size: 12px;
}
.dash-row .desc {
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-row .time {
  color: var(--text-faint);
  font-size: 12px;
  flex-shrink: 0;
}

/* --- Stat bar in mockup --- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}
.stat-bar-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border-subtle);
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-item .value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.stat-bar-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Founder section --- */
.founder-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}
.founder-section blockquote {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
}
.founder-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #000;
}

/* --- CTA section --- */
.cta-section {
  background: linear-gradient(135deg, rgba(59, 186, 126, 0.08) 0%, rgba(246, 168, 35, 0.04) 100%);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Platform strip --- */
.platform-strip {
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 24px;
  text-align: center;
}
.platform-strip .label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Scan demo --- */
#bs-scan-display {
  min-height: 20px;
  font-weight: 600;
  color: var(--color-primary);
}
.scan-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Security badges --- */
.security-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.security-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  min-width: 140px;
}
.security-badge .icon { font-size: 24px; margin-bottom: 8px; }
.security-badge .title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.security-badge .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Tab buttons --- */
.bs-tab {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.bs-tab.active {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
}
.bs-tab:hover:not(.active) {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* --- Tab panels --- */
.bs-tab-panel { display: none; opacity: 0; transition: opacity 0.3s; }
.bs-tab-panel.active { display: block; opacity: 1; }

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .founder-section { padding: 32px 24px; }
  .cta-section { padding: 40px 24px; }
  .stat-bar { grid-template-columns: 1fr; }
  .stat-bar-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-bar-item:last-child { border-bottom: none; }
}
