/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

nav .logo:hover {
  opacity: 0.8;
}

nav .logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

nav .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

nav .nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

nav .nav-links a:hover {
  color: #2563eb;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #f0f7ff;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .btn {
  margin: 0 0.5rem;
}

/* Problem Section */
.problem-section {
  padding: 4rem 0;
  background: white;
  text-align: center;
}

.problem-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.problem-section p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
  color: #6b7280;
}

/* How It Works */
.how-it-works {
  padding: 4rem 0;
  background: #f8f9fa;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.step p {
  color: #6b7280;
}

/* Features */
.features {
  padding: 4rem 0;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.feature p {
  color: #6b7280;
}

/* Social Proof */
.social-proof {
  padding: 4rem 0;
  background: #f8f9fa;
}

.social-proof h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quote {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.author {
  font-weight: 600;
  color: #2563eb;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.cta-section p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Authentication Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
  text-align: center;
}

.auth-card .subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.form-actions {
  margin-top: 2rem;
}

.form-actions .btn {
  width: 100%;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  color: #6b7280;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Error Messages */
.error-messages {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-messages h3 {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.error-messages ul {
  list-style: none;
  padding-left: 0;
}

.error-messages li {
  color: #dc2626;
  font-size: 0.875rem;
}

/* Flash Messages */
.flash {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

.flash.notice {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #059669;
}

.flash.alert {
  background: #fef2f2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

.flash.success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #059669;
}

.flash.error {
  background: #fef2f2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

/* Pricing Page */
.pricing-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.pricing-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.pricing-header p {
  font-size: 1.25rem;
  opacity: 0.95;
}

.pricing-tiers {
  padding: 4rem 0;
  background: #f8f9fa;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.tier {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.tier-featured {
  border: 3px solid #2563eb;
  transform: scale(1.05);
}

.tier .badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.tier h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #1f2937;
  text-align: center;
}

.price {
  text-align: center;
  margin-bottom: 1rem;
}

.price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: #2563eb;
}

.price .period {
  font-size: 1.25rem;
  color: #6b7280;
}

.tier .description {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

.features-list li:last-child {
  border-bottom: none;
}

.tier .btn {
  width: 100%;
}

/* Pricing Comparison */
.pricing-comparison {
  padding: 4rem 0;
  background: white;
}

.pricing-comparison h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.comparison-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.comparison-table thead {
  background: #f3f4f6;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
  font-weight: 700;
  color: #1f2937;
}

.comparison-table td {
  color: #4b5563;
}

/* FAQ */
.faq {
  padding: 4rem 0;
  background: #f8f9fa;
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.faq-item p {
  color: #6b7280;
  line-height: 1.7;
}

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

  .hero .btn {
    display: block;
    margin: 0.5rem 0;
  }

  .tier-featured {
    transform: none;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}
