/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps.
 * All styles are included directly here for maximum compatibility.
 */

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #111827;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #7c3aed;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.hero-background {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #faf5ff, #fce7f3);
}

/* Main Content Sections */
.hero-section {
  padding: 48px 24px;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 80px 48px;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Logo */
.logo-container {
  display: flex;
  justify-content: center;
}

.logo {
  height: 192px;
  width: 192px;
}

/* Typography */
.hero-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: #4b5563;
  margin: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: #111827;
  margin: 0 0 64px 0;
  line-height: 1.2;
}

/* Landing Page Section Titles - IMPORTANT: Must override any other styles */
h2.landing-section-title {
  font-size: 3rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  color: #111827 !important;
  margin: 0 0 80px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  display: block !important;
}

@media (max-width: 768px) {
  h2.landing-section-title {
    font-size: 2.25rem !important;
    margin: 0 0 60px 0 !important;
  }
}

/* Signup Form */
.signup-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 24px;
  max-width: 448px;
}

/* CTA Card */
.cta-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-badge {
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.price-wrapper {
  margin-bottom: 20px;
}

.price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 2rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: -8px;
}

.price {
  font-size: 4.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.price-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #7c3aed;
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.value-props {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.value-item {
  font-size: 0.95rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.button-container {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

@media (min-width: 640px) {
  .button-container {
    flex-direction: row;
  }
}

.cta-button {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
}

.cta-button-primary {
  background: #7c3aed;
  color: white;
  border: 2px solid #7c3aed;
}

.cta-button-primary:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  text-decoration: none;
}

.cta-button-secondary {
  background: white;
  color: #7c3aed;
  border: 2px solid #7c3aed;
}

.cta-button-secondary:hover {
  background: #faf5ff;
  text-decoration: none;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-button {
  width: 100%;
  background: #7c3aed;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.form-button:hover {
  background: #6d28d9;
}

.form-note {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

/* Error Messages */
.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
}

.error-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 0.875rem;
}

/* Screenshot Section */
.screenshot-container {
  position: relative;
}

.screenshot {
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  transition: transform 0.3s;
}

.screenshot-container:hover .screenshot {
  transform: scale(1.05);
}

/* Features Section */
.features-section {
  padding: 120px 24px;
  background: white;
}

@media (min-width: 1024px) {
  .features-section {
    padding: 120px 48px;
  }
}

.features-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: #ede9fe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.feature-icon {
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.feature-description {
  color: #4b5563;
  margin: 0;
}

/* Success/Rate Limited States */
.status-container {
  text-align: center;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.status-icon-wrapper.success {
  background: #d1fae5;
}

.status-icon-wrapper.warning {
  background: #fef3c7;
}

.status-icon {
  width: 32px;
  height: 32px;
}

.status-icon.success {
  color: #059669;
}

.status-icon.warning {
  color: #d97706;
}

.status-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.status-description {
  color: #4b5563;
  margin: 8px 0 0 0;
}

.status-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 24px;
  background: #fafafa;
}

@media (min-width: 1024px) {
  .faq-section {
    padding: 80px 48px;
  }
}

.faq-grid {
  display: grid;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

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

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
}

.faq-answer {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  padding: 48px 24px;
  text-align: center;
  color: #4b5563;
}

@media (min-width: 1024px) {
  .footer {
    padding: 48px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Turbo Frame */
turbo-frame {
  display: block;
}

/* Admin Dashboard */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Flash Messages */
.flash-message {
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}

.flash-notice {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.flash-alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.admin-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin: 0 0 32px 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin: 0;
}

/* Admin Sections */
.admin-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
  overflow: hidden;
}

.section-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* Email Broadcasting */
.broadcast-actions {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .broadcast-actions {
    grid-template-columns: 1fr;
  }
}

.broadcast-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.form-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.form-divider {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 16px 0;
  position: relative;
}

.form-divider::before,
.form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}

.form-divider::before {
  left: 0;
}

.form-divider::after {
  right: 0;
}

.form-button-danger {
  background: #ef4444;
}

.form-button-danger:hover {
  background: #dc2626;
}

.email-preview {
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
}

.preview-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.preview-box p {
  margin: 8px 0;
  font-size: 0.875rem;
  color: #4b5563;
}

.preview-link {
  display: inline-block;
  color: #7c3aed;
  font-size: 0.875rem;
  font-weight: 500;
}

.preview-link:hover {
  color: #6d28d9;
}

/* Admin Table */
.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #f9fafb;
}

.admin-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
  padding: 16px 24px;
  font-size: 0.875rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.admin-table tr:hover {
  background: #f9fafb;
}

.empty-message {
  text-align: center;
  color: #6b7280;
  padding: 32px !important;
}

.action-link {
  color: #7c3aed;
  font-size: 0.875rem;
  font-weight: 500;
}

.action-link:hover {
  color: #6d28d9;
}

/* Admin Footer */
.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.footer-link {
  color: #7c3aed;
  font-weight: 500;
}

.footer-link:hover {
  color: #6d28d9;
}

.footer-link-danger {
  color: #ef4444;
}

.footer-link-danger:hover {
  color: #dc2626;
}