/* ============================================================
   LocalPilot AI — Design System Complet
   ============================================================ */

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-600: #64748b;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  --sidebar-w: 240px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 10px 50px rgba(0,0,0,.18);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Boutons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px;
  background: var(--primary); color: white; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(79,70,229,.35); transform: translateY(-1px); text-decoration: none; color: white; }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px;
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-outline.btn-full { width: 100%; justify-content: center; }

.btn-sm {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 6px;
  border: 1.5px solid var(--gray-200); background: white;
  font-size: 12px; font-weight: 600; color: var(--gray-800);
  cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none; }

.btn-green { background: var(--success); color: white; border: none; }
.btn-green:hover { background: #059669; color: white; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px 6px; border-radius: 6px; transition: background 0.15s; }
.btn-icon:hover { background: var(--gray-100); }

/* ── Alertes ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 18px; border-radius: var(--radius);
  margin-bottom: 16px; font-size: 14px; font-weight: 500;
  animation: slideIn 0.3s ease;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
@keyframes slideIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: none; } }

/* ── Formulaires ─────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid var(--gray-200); font-size: 14px;
  color: var(--dark); background: white; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-group small { color: var(--gray-400); font-size: 12px; margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { margin-top: 24px; }
.terms-note { font-size: 12px; color: var(--gray-400); margin-top: 12px; text-align: center; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: white; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); }

/* ── Tableaux ────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em;
  background: var(--gray-50); border-bottom: 2px solid var(--gray-200);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); vertical-align: middle; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }
.row-today td { background: #fefce8 !important; }

.status-badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-contacted { background: #fef3c7; color: #92400e; }
.status-converted { background: #d1fae5; color: #065f46; }
.status-lost { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-done { background: #e0e7ff; color: #3730a3; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.status-select {
  padding: 4px 8px; border-radius: 6px; font-size: 12px;
  border: 1.5px solid var(--gray-200); cursor: pointer; background: white;
}

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
}
.auth-card {
  background: white; border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: block; text-align: center; margin-bottom: 24px;
  font-size: 22px; font-weight: 900; color: var(--dark); text-decoration: none;
}
.auth-logo span { color: var(--primary); }
.auth-card h1 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--gray-600); font-size: 14px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 2px; }
.demo-hint {
  margin-top: 20px; padding: 12px 16px; background: var(--gray-50);
  border-radius: 8px; font-size: 13px; color: var(--gray-600);
  border: 1px dashed var(--gray-200); text-align: center;
}

/* ── Dashboard layout ────────────────────────────────────────── */
.dashboard-body { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: var(--dark); color: white;
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo a {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 900; color: white; text-decoration: none;
}
.logo-icon { font-size: 22px; }
.logo-ai { color: var(--accent); }

.sidebar-nav { list-style: none; padding: 12px 0; flex: 1; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,.7);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: all 0.15s; border-radius: 0;
  margin: 1px 8px; border-radius: 8px;
}
.sidebar-nav li a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-nav li.nav-section { 
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; 
  color: rgba(255,255,255,0.35); padding: 16px 20px 4px; 
  text-transform: uppercase; cursor: default;
}
.sidebar-nav li a.active { background: var(--primary); color: white; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 8px;
}
.plan-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
}
.trial-tag { background: var(--warning); color: white; padding: 2px 8px; border-radius: 10px; font-size: 10px; }
.upgrade-link, .logout-link {
  font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none;
  padding: 6px 12px; border-radius: 6px; transition: all 0.15s;
}
.upgrade-link:hover { color: white; background: rgba(255,255,255,.08); }
.logout-link:hover { color: #fca5a5; }

.main-content {
  flex: 1; margin-left: var(--sidebar-w);
  padding: 28px; max-width: calc(1200px + var(--sidebar-w));
}

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.page-header h1 { font-size: 26px; font-weight: 800; color: var(--dark); }
.page-sub { color: var(--gray-600); font-size: 14px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trial-banner {
  padding: 8px 16px; background: #fef3c7; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: #92400e;
  border: 1px solid #fde68a;
}
.trial-banner a { color: var(--primary); font-weight: 700; }

/* ── KPI Cards ───────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  transition: transform 0.15s, box-shadow 0.15s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-icon { font-size: 32px; flex-shrink: 0; }
.kpi-value { font-size: 28px; font-weight: 900; color: var(--dark); line-height: 1; }
.kpi-label { font-size: 12px; color: var(--gray-600); font-weight: 500; margin-top: 2px; }
.kpi-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.kpi-badge.new { background: #dbeafe; color: #1d4ed8; }
.kpi-badge.today { background: #d1fae5; color: #065f46; }
.kpi-link { font-size: 12px; color: var(--primary); margin-top: 6px; display: block; font-weight: 600; }

/* ── Deux colonnes ───────────────────────────────────────────── */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* ── Charts ──────────────────────────────────────────────────── */
.chart-container { position: relative; height: 220px; padding-top: 12px; }

/* ── Leads list ──────────────────────────────────────────────── */
.leads-list { display: flex; flex-direction: column; gap: 10px; }
.lead-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px; background: var(--gray-50);
  transition: background 0.15s;
}
.lead-item:hover { background: var(--gray-100); }
.lead-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.lead-info { flex: 1; min-width: 0; }
.lead-info strong { display: block; font-size: 14px; font-weight: 700; }
.lead-info span { font-size: 12px; color: var(--gray-600); }
.lead-meta { text-align: right; }
.lead-meta small { display: block; font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ── Appointments list ───────────────────────────────────────── */
.appt-list { display: flex; flex-direction: column; gap: 10px; }
.appt-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 10px; background: var(--gray-50);
}
.appt-date {
  text-align: center; min-width: 70px;
  background: var(--primary); color: white;
  border-radius: 8px; padding: 8px;
}
.appt-date strong { display: block; font-size: 12px; }
.appt-date span { font-size: 14px; font-weight: 800; }
.appt-info { flex: 1; }
.appt-info strong { display: block; font-size: 14px; }
.appt-info span { font-size: 12px; color: var(--gray-600); }

/* ── Quick links ─────────────────────────────────────────────── */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.quick-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; background: white; border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); text-align: center; text-decoration: none;
  transition: all 0.2s; gap: 6px;
}
.quick-link:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); text-decoration: none; }
.quick-link span { font-size: 28px; }
.quick-link strong { font-size: 14px; color: var(--dark); }
.quick-link small { font-size: 12px; color: var(--gray-600); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-height: 500px; overflow-y: auto; }
.faq-category-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--gray-400);
  letter-spacing: .08em; padding: 8px 0 4px;
}
.faq-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border-radius: 10px; background: var(--gray-50);
  border: 1px solid var(--gray-100); transition: opacity 0.2s;
}
.faq-inactive { opacity: 0.5; }
.faq-content { flex: 1; }
.faq-content strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.faq-content p { font-size: 12px; color: var(--gray-600); }
.faq-actions { display: flex; gap: 4px; flex-shrink: 0; }
.toggle-btn, .delete-btn { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; border-radius: 6px; }
.toggle-btn:hover { background: var(--gray-200); }
.delete-btn:hover { background: #fee2e2; }
.tips-box { background: #eff6ff; border-radius: 10px; padding: 16px; }
.tips-box h4 { font-size: 13px; margin-bottom: 8px; color: #1d4ed8; }
.tips-box ul { list-style: none; }
.tips-box li { font-size: 13px; padding: 4px 0; color: var(--gray-700); }
.tips-box li::before { content: '•'; margin-right: 8px; color: var(--primary); }

/* ── Filter tabs ─────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--gray-600); background: white; border: 1.5px solid var(--gray-200);
  text-decoration: none; transition: all 0.15s;
}
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); text-decoration: none; }
.today-badge { display: inline-block; padding: 2px 8px; background: var(--warning); color: white; border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 6px; }

/* ── Source badge ────────────────────────────────────────────── */
.source-badge { padding: 3px 10px; background: var(--gray-100); border-radius: 20px; font-size: 11px; color: var(--gray-600); font-weight: 600; }
.action-btns { display: flex; gap: 4px; }
.message-cell { max-width: 200px; color: var(--gray-600); font-size: 13px; }

/* ── Analytics ───────────────────────────────────────────────── */
.text-green { color: var(--success); font-weight: 700; }
.text-orange { color: var(--warning); font-weight: 700; }

/* ── Settings ────────────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-form { }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type=color] { width: 44px; height: 40px; border-radius: 6px; border: 1.5px solid var(--gray-200); cursor: pointer; padding: 2px; }

/* ── Widget page ─────────────────────────────────────────────── */
.code-block {
  background: var(--gray-900); color: #86efac; padding: 16px 20px;
  border-radius: 10px; font-family: 'Courier New', monospace; font-size: 13px;
  margin: 12px 0 16px; overflow-x: auto; white-space: nowrap;
}
.integration-guides { margin-top: 24px; }
.integration-guides h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.guide-list { display: flex; flex-direction: column; gap: 12px; }
.guide-item { padding: 12px; background: var(--gray-50); border-radius: 8px; }
.guide-item strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.guide-item p { font-size: 13px; color: var(--gray-600); }
.guide-item code { background: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; border: 1px solid var(--gray-200); }

.widget-preview-box {
  background: var(--gray-100); border-radius: 12px; padding: 20px;
  margin-bottom: 20px; min-height: 200px;
}
.preview-site { background: white; border-radius: 8px; padding: 16px; position: relative; min-height: 160px; box-shadow: var(--shadow); }
.preview-header { height: 10px; background: var(--gray-200); border-radius: 4px; margin-bottom: 12px; }
.preview-content { display: flex; flex-direction: column; gap: 8px; }
.preview-line { height: 8px; background: var(--gray-100); border-radius: 4px; }
.preview-line.short { width: 60%; }
.preview-widget-bubble {
  position: absolute; bottom: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  cursor: pointer;
}
.widget-info { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.info-row span:first-child { color: var(--gray-600); font-weight: 500; }
.info-row code { background: var(--gray-100); padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.test-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.test-section p { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; }

/* ── Reviews ─────────────────────────────────────────────────── */
.result-label { font-size: 12px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.review-message {
  background: var(--gray-50); border-radius: 10px; padding: 16px;
  font-size: 14px; white-space: pre-wrap; border: 1.5px solid var(--gray-200);
  margin-bottom: 12px; min-height: 80px;
}
.result-actions { display: flex; gap: 8px; }
.review-history { display: flex; flex-direction: column; gap: 12px; max-height: 500px; overflow-y: auto; }
.review-history-item { padding: 14px; background: var(--gray-50); border-radius: 10px; border: 1px solid var(--gray-100); }
.rh-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rh-header strong { font-size: 14px; }
.rh-header small { color: var(--gray-400); font-size: 12px; }
.rh-preview { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; }

/* ── Upgrade / Pricing ───────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.pricing-card-dash {
  background: white; border-radius: var(--radius-lg); padding: 28px;
  border: 2px solid var(--gray-200); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.pricing-card-dash.featured-dash { border-color: var(--primary); box-shadow: 0 8px 32px rgba(79,70,229,.15); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 20px; font-weight: 800; color: var(--dark); }
.plan-price { display: flex; align-items: baseline; gap: 2px; }
.plan-price strong { font-size: 36px; font-weight: 900; color: var(--dark); }
.plan-price span { font-size: 14px; color: var(--gray-600); }
.plan-desc { font-size: 13px; color: var(--gray-600); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 4px 0; }
.plan-features li { font-size: 13px; color: var(--gray-800); }
.guarantee-box {
  background: #f0fdf4; border-radius: var(--radius); padding: 18px 24px;
  border: 1px solid #86efac; font-size: 14px; color: #065f46; text-align: center;
}

/* ── Profile ─────────────────────────────────────────────────── */
.sub-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.plan-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.plan-badge.plan-starter { background: #dbeafe; color: #1d4ed8; }
.plan-badge.plan-pro { background: #ede9fe; color: #5b21b6; }
.plan-badge.plan-elite { background: #fef3c7; color: #92400e; }
.plan-badge.plan-free { background: var(--gray-100); color: var(--gray-600); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-600); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ── Landing page ────────────────────────────────────────────── */
.landing { background: white; }

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px; position: sticky; top: 0; background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-100); z-index: 100;
}
.nav-brand { font-size: 20px; font-weight: 900; color: var(--dark); text-decoration: none; }
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 14px; color: var(--gray-800); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.hero {
  text-align: center; padding: 80px 24px 60px;
  background: linear-gradient(180deg, #f0f4ff 0%, white 100%);
}
.hero-badge {
  display: inline-block; padding: 6px 18px; background: var(--primary-light);
  color: var(--primary); border-radius: 20px; font-size: 13px; font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.12; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; color: var(--gray-600); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { margin-bottom: 16px; }
.hero-cta-note { font-size: 13px; color: var(--gray-400); margin-top: 12px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.stat { text-align: center; }
.stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--primary); }
.stat span { font-size: 13px; color: var(--gray-600); }

.for-who { padding: 40px 24px; text-align: center; background: var(--gray-50); }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 16px; }
.sectors-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.sectors-grid span {
  padding: 8px 18px; background: white; border-radius: 20px;
  border: 1.5px solid var(--gray-200); font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.sectors-grid span:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.features-section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.features-section h2 { font-size: 36px; font-weight: 900; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; text-align: left; }
.feature-card {
  padding: 28px; border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200);
  background: white; transition: all 0.2s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(79,70,229,.1); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }

.how-it-works { padding: 80px 24px; background: var(--gray-50); text-align: center; }
.how-it-works h2 { font-size: 32px; font-weight: 900; margin-bottom: 48px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step { max-width: 240px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary);
  color: white; font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-600); }
.step-arrow { font-size: 28px; color: var(--gray-400); }

.pricing-preview { padding: 80px 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.pricing-preview h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.section-sub { color: var(--gray-600); margin-bottom: 40px; font-size: 15px; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pricing-card {
  background: white; border-radius: var(--radius-lg); padding: 28px;
  border: 2px solid var(--gray-200); position: relative; text-align: left;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(79,70,229,.12); }
.pricing-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 16px; }
.price strong { font-size: 32px; font-weight: 900; }
.price span { font-size: 14px; color: var(--gray-600); }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.pricing-card ul li { font-size: 13px; }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }

.landing-footer {
  padding: 40px 48px; border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-size: 18px; font-weight: 900; }
.footer-brand span { color: var(--primary); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--gray-600); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--gray-400); }

/* ── Legal ───────────────────────────────────────────────────── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.legal-page h1 { font-size: 32px; font-weight: 900; margin-bottom: 32px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.legal-content p { font-size: 15px; color: var(--gray-700); line-height: 1.75; }

/* ── Error pages ─────────────────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.error-content { text-align: center; }
.error-code { font-size: 96px; font-weight: 900; color: var(--primary); opacity: 0.2; line-height: 1; }
.error-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.error-content p { color: var(--gray-600); margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .two-cols, .settings-grid, .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .landing-nav { padding: 12px 20px; }
  .nav-links a:not(.btn-primary):not(.btn-outline) { display: none; }
  .hero { padding: 48px 16px 40px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .hero-stats { gap: 20px; }
  .landing-footer { flex-direction: column; text-align: center; }
}

.hamburger-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 20px;
  color: white;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .hamburger-btn { display: block; }
  .sidebar-overlay.active { display: block; }
}

@media (max-width: 768px) {
  .sidebar {
    width: 280px;
    background: #1a1a2e;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .sidebar-nav li a {
    color: #ffffff !important;
    font-size: 15px;
    padding: 12px 20px;
  }
  .sidebar-nav li.nav-section {
    color: #888 !important;
    font-size: 11px;
    padding: 16px 20px 4px;
  }
  .nav-icon { font-size: 18px; margin-right: 10px; }
}
