/* CoverCraft — Stylesheet */
/* Built by AI */

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

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #ede9fe;
  --accent: #10b981;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(79,70,229,0.10);
  --shadow-lg: 0 8px 40px rgba(79,70,229,0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: #f3f4f6;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 10px; }
.btn-generate {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  border-radius: 10px;
  margin-top: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
}
.btn-generate:hover { background: linear-gradient(135deg, #3730a3, #6d28d9); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-footnote { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* How it works */
.how-it-works { padding: 72px 0; background: var(--bg); }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 17px; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; max-width: 260px; text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 28px; color: var(--border); align-self: center; padding-top: 0; }

/* Generator */
.generator-section { padding: 72px 0; background: var(--bg-alt); }
.generator-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; font-size: 14px; color: var(--text); }
.required { color: #ef4444; }
textarea, input[type="text"] {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
  background: #fafafa;
}
textarea:focus, input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
textarea::placeholder, input::placeholder { color: #9ca3af; }

.form-options { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.tone-group { flex: 2; }
.name-group { flex: 1; min-width: 180px; }
.tone-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.tone-btn {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.tone-btn:hover { border-color: var(--primary); color: var(--primary); }
.tone-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.free-count { font-weight: 800; color: var(--accent); }

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  color: var(--text-muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Output */
.output-section { margin-top: 28px; }
.output-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.output-header h3 { font-size: 18px; font-weight: 700; }
.output-actions { display: flex; gap: 10px; }
.output-text {
  width: 100%;
  min-height: 360px;
  font-size: 14px;
  line-height: 1.7;
  padding: 20px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fafafa;
  font-family: 'Georgia', serif;
  resize: vertical;
}
.output-footer { margin-top: 10px; }
.output-tip { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* Toast */
#copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

/* Paywall */
.paywall { margin-top: 32px; }
.paywall-inner {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 2px solid var(--primary-light);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.paywall-inner h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.paywall-inner > p { color: var(--text-muted); margin-bottom: 32px; font-size: 16px; }
.paywall-options { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.paywall-option {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  position: relative;
  text-align: left;
}
.paywall-option.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.option-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.paywall-option h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.option-price { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.option-price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.paywall-option ul { list-style: none; margin-bottom: 20px; }
.paywall-option ul li { font-size: 14px; color: var(--text); padding: 4px 0; }
.paywall-option .btn { width: 100%; }
.paywall-footnote { font-size: 12px; color: var(--text-muted); }

/* Social proof */
.social-proof { padding: 72px 0; background: var(--bg); }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.testimonial p { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 13px; font-weight: 700; color: var(--text-muted); }

/* Pricing */
.pricing-section { padding: 72px 0; background: var(--bg-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.18s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.price { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin-bottom: 28px; text-align: left; }
.pricing-card ul li { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pricing-card ul li:last-child { border: none; }
.pricing-card .btn { width: 100%; }

/* FAQ */
.faq-section { padding: 72px 0; background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 900px; margin: 32px auto 0; }
.faq-item { padding: 24px; background: var(--bg-alt); border-radius: 12px; border: 1px solid var(--border); }
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Footer */
.footer {
  background: var(--text);
  color: #9ca3af;
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}
.footer a { color: #9ca3af; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-links { display: flex; gap: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .hero-title { font-size: 32px; }
  .generator-card { padding: 24px 16px; }
  .paywall-options { flex-direction: column; align-items: center; }
  .nav a:not(.btn) { display: none; }
}

/* Error message */
.error-msg {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #dc2626;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
