/* WantReviews — Global Styles */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff7ed;
  --gold: #fbbf24;
  --gold-light: #fef3c7;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --dark-mid: #334155;
  --bg: #f9fafb;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red: #ef4444;
  --red-light: #fef2f2;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600;
  font-size: 14px; border: none; cursor: pointer; transition: all 0.15s;
  font-family: inherit; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #f59e0b; }
.btn-outline { background: transparent; color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-50); }
.btn-outline-light { background: transparent; color: rgba(255,255,255,0.9); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.btn-danger { background: var(--red); color: white; }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); box-shadow: none; transform: none; }
.btn-ghost-light { background: transparent; color: rgba(255,255,255,0.7); }
.btn-ghost-light:hover { color: white; background: rgba(255,255,255,0.1); box-shadow: none; transform: none; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; font-weight: 700; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* === Forms === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s; background: white;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.form-input::placeholder { color: var(--gray-400); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* === Cards === */
.card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}

/* === Nav (Landing) === */
.nav-landing {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: var(--dark);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-brand {
  font-size: 20px; font-weight: 900; color: white;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  letter-spacing: -0.02em;
}
.nav-brand .accent { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 12px; }

/* === Nav (App) === */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: white; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.nav .nav-brand { color: var(--gray-900); }
.nav .nav-brand .accent { color: var(--primary); }

/* === LANDING PAGE === */

/* Hero */
.hero {
  text-align: center; padding: 100px 24px 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); font-weight: 900; line-height: 1.05;
  color: white; margin-bottom: 24px; letter-spacing: -0.03em;
  max-width: 800px; margin-left: auto; margin-right: auto;
  position: relative;
}
.hero h1 .highlight { color: var(--primary); }
.hero h1 .gold { color: var(--gold); }
.hero p.subtitle {
  font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,0.6);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.6;
  position: relative;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-note {
  margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.35);
  position: relative;
}

/* Social proof strip */
.social-proof {
  padding: 24px 24px; text-align: center;
  background: var(--dark-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.social-proof p {
  color: rgba(255,255,255,0.4); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
}

/* Problem section */
.section-dark {
  padding: 80px 24px;
  background: var(--dark);
  color: white;
}
.section-light {
  padding: 80px 24px;
  background: var(--bg);
}
.section-container {
  max-width: 1000px; margin: 0 auto;
}

.section-eyebrow {
  text-transform: uppercase; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: 12px;
  text-align: center;
}
.section-title {
  text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 900;
  margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.1;
}
.section-title-dark { color: white; }
.section-title-light { color: var(--gray-900); }
.section-subtitle {
  text-align: center; font-size: 16px; margin-bottom: 56px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
.section-subtitle-dark { color: rgba(255,255,255,0.5); }
.section-subtitle-light { color: var(--gray-500); }

/* Problem cards */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative;
}
.problem-stat {
  font-size: clamp(48px, 6vw, 64px); font-weight: 900; color: var(--primary);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
}
.problem-card h3 {
  font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px;
}
.problem-card p {
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6;
}
.problem-source {
  font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 12px;
  font-style: italic;
}

/* How it works - timeline */
.timeline {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
  max-width: 900px; margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 32px; left: 80px; right: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  opacity: 0.3;
}
.timeline-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.timeline-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 900; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(249,115,22,0.2);
}
.timeline-step h3 {
  font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px;
}
.timeline-step p {
  font-size: 14px; color: var(--gray-500); line-height: 1.5;
}
.timeline-arrow {
  display: flex; align-items: center; padding-top: 28px;
  color: var(--primary); font-size: 24px; opacity: 0.4;
}

/* AI section */
.ai-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
  text-align: center; color: white;
}
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--dark); padding: 6px 16px; border-radius: 24px;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 24px;
}
.ai-stat {
  font-size: clamp(48px, 8vw, 72px); font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.ai-section h2 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 900;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.ai-section p {
  color: rgba(255,255,255,0.6); font-size: 16px; max-width: 560px;
  margin: 0 auto; line-height: 1.6;
}
.ai-section p.ai-detail {
  margin-top: 24px;
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border: 2px solid var(--gray-200); text-align: center; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-card.featured { border-color: var(--primary); }
.pricing-card.managed {
  background: var(--dark);
  border-color: var(--gold);
  color: white;
}
.pricing-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; text-transform: uppercase;
}
.pricing-badge-gold {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #f59e0b); color: var(--dark);
  padding: 4px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 900; margin-bottom: 4px; }
.pricing-card.managed .pricing-price { color: var(--gold); }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--gray-500); }
.pricing-card.managed .pricing-price span { color: rgba(255,255,255,0.4); }
.pricing-period { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.pricing-card.managed .pricing-period { color: rgba(255,255,255,0.4); }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.pricing-card.managed .pricing-features li { color: rgba(255,255,255,0.7); }
.pricing-card.managed .pricing-features li::before { color: var(--gold); }
.pricing-save { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pricing-tagline {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; font-style: italic;
}

/* Competitors */
.compare {
  background: var(--dark); color: white; padding: 80px 24px; text-align: center;
}
.compare h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.02em; }
.compare p.compare-sub { color: rgba(255,255,255,0.4); margin-bottom: 40px; font-size: 16px; }
.compare-table {
  max-width: 600px; margin: 0 auto; text-align: left;
}
.compare-row {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px;
}
.compare-row .them { color: rgba(255,255,255,0.35); text-decoration: line-through; }
.compare-row .us { color: var(--primary); font-weight: 700; font-size: 17px; }

/* Final CTA */
.final-cta {
  padding: 80px 24px;
  background: var(--dark-light);
  text-align: center; color: white;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 16px;
  letter-spacing: -0.02em; max-width: 700px; margin-left: auto; margin-right: auto;
}
.final-cta p {
  color: rgba(255,255,255,0.5); font-size: 16px; margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 32px 24px; text-align: center; font-size: 13px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
}
.footer a { color: rgba(255,255,255,0.3); }
.footer a:hover { color: rgba(255,255,255,0.5); }

/* === Dashboard === */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--dark); border-right: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0; display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
}
.sidebar-brand {
  padding: 0 20px 20px; font-size: 18px; font-weight: 900; color: white;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-brand .accent { color: var(--primary); }
.sidebar-nav { flex: 1; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.1s; border: none; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); color: white; }
.sidebar-item.active { background: rgba(249,115,22,0.15); color: var(--primary); font-weight: 600; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.sidebar-user { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.sidebar-plan {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.sidebar-plan.free { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.sidebar-plan.pro { background: rgba(249,115,22,0.2); color: var(--primary); }

.main-content { flex: 1; margin-left: 240px; padding: 24px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--gray-200);
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--gray-900); margin-top: 4px; }
.stat-sub { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* Customer table */
.table-wrap { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--gray-200); }
.table-header h2 { font-size: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 12px 20px; font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--gray-200); }
tbody td { padding: 12px 20px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
tbody tr:hover { background: var(--gray-50); }

/* Status badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-sent { background: var(--primary-light); color: var(--primary-dark); }
.badge-pending { background: var(--gold-light); color: #92400e; }
.badge-clicked { background: #dbeafe; color: #1d4ed8; }
.badge-failed { background: var(--red-light); color: var(--red); }
.badge-skipped { background: var(--gray-100); color: var(--gray-500); }

/* Email steps */
.email-steps { display: flex; gap: 6px; }
.email-step {
  width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.email-step.sent { background: var(--primary); color: white; }
.email-step.pending { background: var(--gray-200); color: var(--gray-500); }
.email-step.skipped { background: var(--gray-100); color: var(--gray-400); }
.email-step.failed { background: var(--red); color: white; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex;
  align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
  max-width: 400px;
}
.toast-success { background: var(--primary); color: white; }
.toast-error { background: var(--red); color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Onboarding */
.onboard-container { max-width: 560px; margin: 60px auto; padding: 0 24px; }
.onboard-container h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.onboard-container p.sub { color: var(--gray-500); margin-bottom: 32px; }
.review-link-helper { background: var(--gray-50); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.review-link-helper strong { color: var(--gray-800); }

/* Settings */
.settings-section { margin-bottom: 32px; }
.settings-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .mobile-nav { display: flex !important; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 13px; }
  thead th, tbody td { padding: 8px 12px; }
  .timeline { flex-direction: column; gap: 24px; }
  .timeline::before { display: none; }
  .timeline-arrow { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: white; border-top: 1px solid var(--gray-200);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 50; justify-content: space-around;
}
.mobile-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: var(--gray-500); font-size: 10px;
  font-weight: 600; cursor: pointer; padding: 4px 12px; font-family: inherit;
}
.mobile-nav button.active { color: var(--primary); }
.mobile-nav button .icon { font-size: 20px; }

/* Activity */
.activity-list { margin-top: 16px; }
.activity-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--gray-100); font-size: 13px;
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.activity-dot.step1 { background: var(--primary); }
.activity-dot.step2 { background: var(--gold); }
.activity-dot.step3 { background: #8b5cf6; }

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

/* CSV paste area */
.csv-area {
  width: 100%; min-height: 120px; padding: 12px; border: 2px dashed var(--gray-300);
  border-radius: var(--radius); font-family: monospace; font-size: 13px;
  resize: vertical; background: var(--gray-50);
}
.csv-area:focus { border-color: var(--primary); outline: none; }
.csv-hint { font-size: 12px; color: var(--gray-400); margin-top: 6px; }

/* Upgrade banner */
.upgrade-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 16px 20px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.upgrade-banner p { font-size: 14px; font-weight: 500; }
.upgrade-banner .btn { background: white; color: var(--primary); }
