/* Vidocq Landing Page Styles */

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

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --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;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --amber-500: #f59e0b;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px 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);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--gray-900);
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--gray-900);
  text-decoration: none;
}

.nav-cta {
  background: var(--blue-600);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--blue-700);
  text-decoration: none !important;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--blue-100);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-600), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-screenshot {
  margin-top: 48px;
}

.hero-screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 24px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}

.trust-badge svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

/* --- Problem Section --- */
.problem {
  padding: 80px 0;
  background: var(--gray-900);
  color: var(--white);
}

.problem-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.problem-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.problem-stat-number {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--red-500), var(--amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.problem h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.problem p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.problem-transition {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--blue-500) !important;
  margin-top: 24px;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  border: 2px solid var(--blue-100);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.step p {
  color: var(--gray-500);
  font-size: 14px;
}

/* --- Screenshots --- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  transition: box-shadow 0.15s;
}

.screenshot-item:hover {
  box-shadow: var(--shadow-md);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.screenshot-item figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  font-weight: 500;
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s;
}

.feature:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.feature p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Pricing --- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.billing-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.15s;
}

.billing-label.active {
  color: var(--gray-900);
  font-weight: 600;
}

.billing-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--gray-300);
  border-radius: 13px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.billing-switch.annual {
  background: var(--blue-600);
}

.billing-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.billing-switch.annual .billing-switch-knob {
  transform: translateX(22px);
}

.billing-save-badge {
  background: #dcfce7;
  color: var(--green-600);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.billing-save-badge.visible {
  opacity: 1;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 1px var(--blue-500), var(--shadow-lg);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pricing-price span,
.price-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--green-500);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-trust {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 32px;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  gap: 12px;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-chevron {
  color: var(--gray-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer ol,
.faq-answer ul {
  padding-left: 40px;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--gray-800);
}

/* --- Final CTA --- */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-600), #4f46e5);
  text-align: center;
  color: var(--white);
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.final-cta > .container > p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.final-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta .btn-primary {
  background: var(--white);
  color: var(--blue-700);
}

.final-cta .btn-primary:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.final-cta .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.final-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.final-cta-trust {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Auth Panel --- */
.auth-section {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.auth-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--gray-900);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-btn {
  width: 100%;
  margin-top: 8px;
}

.auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.auth-toggle button {
  background: none;
  border: none;
  color: var(--blue-600);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.auth-toggle button:hover {
  text-decoration: underline;
}

.auth-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.auth-msg.success {
  background: #dcfce7;
  color: var(--green-600);
}

.auth-msg.error {
  background: var(--red-100);
  color: var(--red-500);
}

/* --- Dashboard --- */
.dashboard {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.dashboard h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.dashboard-email {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.status-badge.active {
  background: #dcfce7;
  color: var(--green-600);
}

.status-badge.inactive {
  background: var(--gray-100);
  color: var(--gray-500);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

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

.footer-links a {
  color: var(--gray-500);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gray-700);
}

.footer-copy {
  color: var(--gray-400);
  font-size: 13px;
}

/* --- Utilities --- */
.hidden {
  display: none !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .trust-badges {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .problem-stat-number {
    font-size: 56px;
  }

  .problem h2 {
    font-size: 26px;
  }

  .final-cta h2 {
    font-size: 28px;
  }

  .billing-toggle {
    flex-wrap: wrap;
  }
}
