/* =============================================
   PROSPELY · styles.css
   ============================================= */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0F172A;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img, svg { display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input { font-family: inherit; }

/* --- Variables --- */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1D4ED8;
  --primary-light: #EFF6FF;
  --accent:        #0EA5E9;

  --text-dark:   #0F172A;
  --text-medium: #334155;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;

  --bg:          #ffffff;
  --bg-light:    #F8FAFC;
  --border:      #E2E8F0;
  --border-faint:#F1F5F9;

  --success:     #10B981;
  --success-bg:  #ECFDF5;
  --danger:      #EF4444;
  --danger-bg:   #FEF2F2;
  --warning:     #F59E0B;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-xl:  0 32px 80px rgba(0,0,0,0.12), 0 12px 32px rgba(0,0,0,0.08);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  --ease: 0.2s ease;
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-medium);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text-dark);
  background: var(--bg-light);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Nav user session */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.nav-user-avatar-fallback {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.nav-user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   SECTION BASE
   ============================================= */

.section {
  padding: 96px 0;
}

.bg-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-pill {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   ANIMATIONS
   ============================================= */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }
.fade-in:nth-child(4) { animation-delay: 0.35s; }
.fade-in:nth-child(5) { animation-delay: 0.45s; }
.fade-in:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-faint);
  transition: box-shadow var(--ease);
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
  flex-shrink: 0;
}
.logo-dot-light {
  background: #93C5FD;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.nav-links a:hover {
  color: var(--text-dark);
  background: var(--bg-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.lang-toggle {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
  margin-left: 4px;
  font-family: inherit;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--ease);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  padding: 96px 0 116px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(37,99,235,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14,165,233,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.22);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hero title */
.hero-title {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-dark);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero search bar */
.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-xl);
  margin-bottom: 20px;
  gap: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10), var(--shadow-xl);
}

.search-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 8px 0;
  background: transparent;
  min-width: 0;
}
.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* Hero tags */
.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.tag-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
  transition: all var(--ease);
}
.hero-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Hero social proof */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.proof-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}
.proof-avatars .avatar:first-child {
  margin-left: 0;
}

.hero-proof p {
  font-size: 14px;
  color: var(--text-muted);
}
.hero-proof strong {
  color: var(--text-dark);
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 68px;
  color: var(--text-light);
  font-size: 22px;
}
.step-connector::before {
  content: '→';
}

/* =============================================
   BENEFITS
   ============================================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =============================================
   PRODUCT MOCKUP
   ============================================= */

.preview-wrapper {
  /* intentionally no extra margin */
}

.mockup {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
}

/* Browser chrome bar */
.mockup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28CA41; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 16px;
}

.mockup-controls {
  display: flex;
  gap: 8px;
}
.mock-chip {
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: default;
}

/* App body */
.mockup-body {
  padding: 20px;
}

/* Mock search row */
.mock-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mock-search-icon {
  color: var(--text-light);
  flex-shrink: 0;
  line-height: 1;
}

.mock-query-text {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
}

.mock-tag {
  display: inline-flex;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
}
.mock-tag-primary {
  background: var(--primary-light);
  border-color: rgba(37,99,235,0.2);
  color: var(--primary);
  font-weight: 600;
}

.mock-export {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

/* Result counter */
.mock-result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
  font-size: 13px;
  color: var(--text-muted);
}
.mock-sort {
  cursor: default;
}

/* Table */
.mock-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mock-thead,
.mock-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr 72px 100px;
  align-items: center;
  padding: 10px 16px;
}

.mock-thead {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}
.mock-thead span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mock-tbody .mock-row {
  border-bottom: 1px solid var(--border-faint);
  transition: background var(--ease);
}
.mock-tbody .mock-row:hover {
  background: #FAFAFA;
}
.mock-tbody .mock-row:last-child {
  border-bottom: none;
}

.mock-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-name strong {
  font-size: 14px;
  color: var(--text-dark);
}
.mock-name em {
  font-size: 11px;
  color: var(--text-light);
  font-style: normal;
}

.mock-cell {
  font-size: 13px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge-success {
  background: var(--success-bg);
  color: #059669;
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge-neutral {
  background: var(--bg-light);
  color: var(--text-muted);
}

/* Score pill */
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.score.high   { background: var(--success-bg); color: #059669; }
.score.medium { background: #FFFBEB;           color: var(--warning); }

/* Action button */
.mock-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: default;
  transition: background var(--ease);
}
.mock-cta:hover {
  background: #DBEAFE;
}

/* Blurred last row */
.mock-row-blurred {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  position: relative;
}

/* "More results" overlay */
.mock-more-overlay {
  position: relative;
  text-align: center;
  padding: 20px 16px 8px;
}
.mock-more-overlay::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #fff 40%, transparent);
  pointer-events: none;
}
.mock-more-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* =============================================
   FOR WHO
   ============================================= */

.icp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.icp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.icp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icp-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.icp-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.icp-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   FINAL CTA
   ============================================= */

.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #0ea5e9 100%);
}

.cta-box {
  text-align: center;
  color: #fff;
  max-width: 620px;
  margin: 0 auto;
}

.cta-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cta-box > p {
  font-size: 18px;
  opacity: 0.85;
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 13px;
  opacity: 0.6;
  margin: 0 !important;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: #0B1120;
  color: #fff;
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 10px;
}

.footer-tagline-note {
  font-size: 13px;
  color: #475569;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: #64748B;
  transition: color var(--ease);
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 13px;
  color: #475569;
  transition: color var(--ease);
}
.footer-bottom a:hover {
  color: #94A3B8;
}

/* =============================================
   RESPONSIVE — 1024px
   ============================================= */

@media (max-width: 1024px) {
  .icp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-links {
    gap: 40px;
  }
}

/* =============================================
   RESPONSIVE — 768px
   ============================================= */

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav */
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav-cta {
    gap: 0;
  }

  /* Hero */
  .hero { padding: 72px 0 88px; }

  .hero-title { font-size: clamp(32px, 8vw, 48px); }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: var(--radius-lg);
    gap: 10px;
  }
  .search-icon { display: none; }
  .search-btn {
    width: 100%;
    justify-content: center;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-connector { display: none; }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* ICP */
  .icp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mockup table: hide Activity + Action columns */
  .mock-thead,
  .mock-row {
    grid-template-columns: 2fr 1fr 1.4fr 64px;
  }
  .mock-thead span:nth-child(3),
  .mock-row > span:nth-child(3),
  .mock-thead span:nth-child(6),
  .mock-row > span:nth-child(6) {
    display: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-header { margin-bottom: 44px; }
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .icp-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-tags::-webkit-scrollbar { display: none; }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mockup-controls { display: none; }
  .mock-tag        { display: none; }
  .mock-export     { margin-left: 0; }

  .mockup-body { padding: 14px; }
}

/* =============================================
   GOOGLE SIGN-IN MODAL
   ============================================= */

.signin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.signin-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.signin-modal-overlay.is-open .signin-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.signin-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease;
}

.signin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.signin-modal-close:hover {
  background: var(--border);
  color: var(--text-dark);
}

.signin-modal-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.signin-modal-soon-badge {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  color: #4338CA;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.signin-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.signin-modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.signin-modal-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.signin-modal-benefits span {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.google-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 44px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  min-width: 280px;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-google:active {
  background: #f1f3f4;
}

.btn-google svg {
  flex-shrink: 0;
}

.signin-modal-note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.65;
}
.signin-modal-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.signin-modal-note a:hover {
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .signin-modal-box {
    padding: 36px 24px 28px;
    border-radius: var(--radius-lg);
  }
  .signin-modal-benefits {
    gap: 6px 12px;
  }
}

/* =============================================
   WAITLIST SUCCESS PAGE
   ============================================= */
.waitlist-success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
}

.waitlist-success-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.waitlist-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: #fff;
  font-weight: bold;
}

.waitlist-success-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.waitlist-success-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.waitlist-success-info {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.waitlist-success-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dark);
}

.waitlist-success-info p:first-child {
  margin-bottom: 4px;
}

.waitlist-success-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.waitlist-success-benefits span {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .waitlist-success-box {
    padding: 36px 24px;
  }
  .waitlist-success-title {
    font-size: 24px;
  }
}

/* =============================================
   SIGNUP PAGE
   ============================================= */
.signup-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
}

.signup-page-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  padding: 48px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
}

.signup-page-back {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.signup-page-back:hover {
  color: var(--text-dark);
}

.signup-page-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  margin-top: 16px;
}

.signup-page-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.signup-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.signup-page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.signup-page-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.signup-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
}

.signup-benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.signup-page-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

.signup-page-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-page-note a:hover {
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .signup-page-box {
    padding: 36px 24px;
  }
  .signup-page-title {
    font-size: 24px;
  }
  .signup-page-back {
    top: 16px;
    left: 16px;
  }
}

/* =============================================
   FLOW TABS — 4 écrans interactifs
   ============================================= */

/* Nav tabs */
.flow-tabs-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.flow-tab-btn {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.flow-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.flow-tab-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
}

/* Panels */
.flow-tab-panel {
  display: none;
}
.flow-tab-panel.is-active {
  display: block;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Caption */
.flow-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

/* 5-column table */
.mock-thead-5col,
.mock-row-5col {
  grid-template-columns: 2fr 1.5fr 1fr 1fr 110px;
}

/* Row highlights */
.mock-row-hl-red    { background: #FFF5F5; }
.mock-row-hl-yellow { background: #FFFBEB; }

.text-light-val {
  font-size: 13px;
  color: var(--text-light);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.st-new       { background: #F1F5F9; color: #475569; }
.st-contacted { background: var(--primary-light); color: var(--primary); }
.st-replied   { background: var(--success-bg); color: #059669; }
.st-client    { background: #FFF7ED; color: #D97706; }

/* Relance badges */
.relance-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.rb-late  { background: var(--danger-bg); color: var(--danger); }
.rb-today { background: #FFFBEB; color: #D97706; }
.rb-soon  { background: var(--success-bg); color: #059669; }

/* CTA variants */
.mock-cta-blue {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.mock-cta-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Pipeline kanban */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pipeline-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.pipeline-h-new       { background: #F1F5F9; color: #475569; }
.pipeline-h-contacted { background: var(--primary-light); color: var(--primary); }
.pipeline-h-replied   { background: var(--success-bg); color: #059669; }
.pipeline-h-client    { background: #FFF7ED; color: #D97706; }

.pipeline-count {
  font-size: 12px;
  opacity: 0.7;
}
.pipeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pipeline-card strong {
  font-size: 13px;
  color: var(--text-dark);
}
.pipeline-card em {
  font-size: 11px;
  color: var(--text-muted);
  font-style: normal;
}
.pipeline-card-hot    { border-color: #BBF7D0; background: #F0FDF4; }
.pipeline-card-signed { border-color: #FED7AA; background: #FFF7ED; }

/* Email composer */
.mock-email {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mock-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-faint);
}
.mock-email-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 44px;
  flex-shrink: 0;
}
.mock-email-val {
  font-size: 14px;
  color: var(--text-dark);
}
.mock-email-sep {
  height: 1px;
  background: var(--border);
}
.mock-email-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.75;
}
.mock-email-body p { margin-bottom: 12px; }
.mock-email-body p:last-child { margin-bottom: 0; }

.mock-var {
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
  font-size: inherit;
}
.mock-email-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-faint);
  background: var(--bg-light);
  flex-wrap: wrap;
}
.mock-email-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Responsive flow tabs */
@media (max-width: 768px) {
  .flow-tab-btn { font-size: 13px; padding: 8px 14px; }

  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }

  .mock-thead-5col,
  .mock-row-5col { grid-template-columns: 2fr 1fr 90px; }

  .mock-row-5col > span:nth-child(2),
  .mock-thead-5col > span:nth-child(2),
  .mock-row-5col > span:nth-child(4),
  .mock-thead-5col > span:nth-child(4) { display: none; }

  .mock-email-hint { display: none; }
}

@media (max-width: 480px) {
  .pipeline-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pipeline-col:nth-child(3),
  .pipeline-col:nth-child(4) { display: none; }

  .flow-tabs-nav { gap: 6px; }
  .flow-tab-btn  { font-size: 12px; padding: 7px 12px; }
}

/* =============================================
   APP SHELL — zone privée admin (search-only)
   ============================================= */

/* --- App Nav --- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.app-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 48px;
  max-width: 1800px;
  margin: 0 auto;
}
.app-logo { margin-right: auto; }
.app-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.app-user-badge svg { flex-shrink: 0; }
#app-user-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* --- App Main --- */
.app-main { max-width: 1800px; margin: 0 auto; padding: 40px 48px 80px; }
.app-page-header { margin-bottom: 28px; }
.app-page-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.app-page-sub { font-size: 15px; color: var(--text-muted); }

/* --- Search Bar --- */
.search-bar-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 14px;
  gap: 10px;
  margin-bottom: 14px;
  transition: border-color var(--ease);
  box-shadow: var(--shadow-sm);
}
.search-bar-wrap:focus-within { border-color: var(--primary); }
.search-icon-wrap { color: var(--text-light); flex-shrink: 0; }
.app-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
}
.app-search-input::placeholder { color: var(--text-light); }
.app-search-select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
  padding: 14px 12px;
  cursor: pointer;
  min-width: 0;
}
.app-search-select + .app-search-select {
  border-left: 1px solid var(--border);
}
.structured-search {
  padding: 0;
  gap: 0;
}
.structured-search .btn {
  flex-shrink: 0;
  margin: 6px 6px 6px 0;
  border-radius: var(--radius-sm);
}

/* --- Search Chips --- */
.search-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.search-chip-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.search-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-medium);
  transition: background var(--ease), border-color var(--ease);
}
.search-chip:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* --- Loader --- */
.search-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.loader-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Results --- */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.results-count { font-size: 14px; color: var(--text-medium); }
.results-count strong { color: var(--text-dark); }
.results-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.results-table thead th {
  background: var(--bg-light);
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.results-table tbody tr {
  border-bottom: 1px solid var(--border-faint);
  transition: background var(--ease);
}
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: var(--bg-light); }
.results-table td { padding: 12px 16px; color: var(--text-medium); vertical-align: middle; }
.td-name {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
}
.td-name:hover { color: var(--primary); }
.td-city, .td-type { white-space: nowrap; }

.score-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.score-high    { background: var(--success-bg); color: var(--success); }
.score-mid     { background: #FEF9C3; color: #A16207; }
.score-low     { background: var(--bg-light); color: var(--text-muted); }
.score-neutral { background: var(--bg-light); color: var(--text-muted); }

.status-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-medium);
  cursor: pointer;
  font-family: inherit;
}
.st-new       { background: var(--primary-light); color: var(--primary); }
.st-contacted { background: #FEF9C3; color: #A16207; }
.st-replied   { background: var(--success-bg); color: var(--success); }
.st-client    { background: #F0FDF4; color: #15803D; }
.st-lost      { background: var(--bg-light); color: var(--text-muted); }

.btn-row-action {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: background var(--ease);
}
.btn-row-action:hover { background: var(--primary); color: #fff; }

/* --- Drawer --- */
.prospect-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.35);
  backdrop-filter: blur(2px);
}
.drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(480px, 96vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
  gap: 12px;
}
.drawer-title { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.drawer-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.drawer-close {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--ease);
  flex-shrink: 0;
}
.drawer-close:hover { background: var(--bg-light); color: var(--text-dark); }
.drawer-body { padding: 24px; flex: 1; }
.drawer-meta { margin-bottom: 24px; }
.drawer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-faint);
  font-size: 14px;
}
.drawer-meta-row:last-child { border-bottom: none; }
.drawer-meta-label { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.drawer-link { color: var(--primary); font-weight: 500; text-decoration: underline; }
.drawer-section { margin-top: 24px; }
.drawer-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.drawer-note {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  resize: vertical;
  outline: none;
  transition: border-color var(--ease);
  background: var(--bg-light);
}
.drawer-note:focus { border-color: var(--primary); background: var(--bg); }
.drawer-template {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 12px;
}
.drawer-template p { margin-bottom: 8px; }
.drawer-template p:last-child { margin-bottom: 0; }
.drawer-template mark { background: #FEF9C3; padding: 0 2px; border-radius: 3px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .app-nav-inner { padding: 0 16px; }
  #app-user-email { display: none; }
  .app-main { padding: 24px 16px 60px; }
  .results-table td:nth-child(3),
  .results-table th:nth-child(3) { display: none; }
}

/* ======================================================
   PERSISTENCE LAYER — Saved Leads & row actions
   ====================================================== */

/* Tab navigation in app-nav */
.app-tabs {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.app-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-tab:hover  { background: var(--bg-light); color: var(--text-dark); }
.app-tab.active { background: var(--primary-light); color: var(--primary); }

/* Badge on "Mes leads" tab */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
}

/* Save button in results table */
.btn-row-save {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn-row-save:hover        { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-row-save.saved        { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; cursor: default; }

/* Delete button in saved-leads table */
.btn-row-delete {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.btn-row-delete:hover { background: #FEF2F2; color: #EF4444; border-color: #FECACA; }

/* Row highlight for saved leads */
.results-table tbody tr.row-saved { background: #F0FDF4; }
.results-table tbody tr.row-saved:hover { background: #DCFCE7; }

/* td-actions — no wrap */
.td-actions { white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 8px 16px; }

/* Empty state cell */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px !important;
  font-size: 14px;
  line-height: 1.6;
}

/* ======================================================
   RESULTS VIEW FILTER TOGGLE
   ====================================================== */
.results-view-toggle {
  display: flex;
  gap: 4px;
  margin: 20px 0 0;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--ease);
}
.filter-btn:hover  { color: var(--text-dark); border-color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-count      { font-weight: 400; opacity: 0.85; }

/* ======================================================
   FOLLOW-UP / TODAY
   ====================================================== */

/* Drawer follow-up fields */
.followup-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  transition: border-color var(--ease);
}
.drawer-input:focus { border-color: var(--primary); background: var(--bg); }
.drawer-date { font-size: 13px; }

/* Follow-up date badge in tables */
.followup-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #EFF6FF;
  color: #2563EB;
  margin-left: 6px;
  white-space: nowrap;
}
.followup-badge.overdue {
  background: #FEF2F2;
  color: #EF4444;
}

/* Next action text in table */
.next-action-text {
  font-size: 13px;
  color: var(--text-medium);
}

/* Today view row highlights */
.results-table tbody tr.row-due-today { background: #FFFBEB; }
.results-table tbody tr.row-due-today:hover { background: #FEF3C7; }
.results-table tbody tr.row-overdue    { background: #FFF5F5; }
.results-table tbody tr.row-overdue:hover  { background: #FEE2E2; }

/* Urgent tab badge */
.tab-badge-urgent { background: #EF4444; }
