/* ============================================================
   SITE 2: only-fans-ai.com
   Theme: Light Mode / Purple-Indigo / Professional SaaS — HeyGen Inspired
   Font: Plus Jakarta Sans (headings) + Inter (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f0ff;
  --text: #374151;
  --text-muted: #6b7280;
  --text-heading: #111827;
  --border: #e5e7eb;
  --border-accent: rgba(124,58,237,.2);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
  --gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
  --gradient-soft: linear-gradient(135deg, #ede9fe, #e0e7ff);
  --transition: .25s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-heading);
}
a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 10px; font-weight: 600;
  font-size: 1rem; transition: all var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
  color: #fff;
}
.btn-secondary {
  background: #fff; color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); background: #faf5ff; }
.btn-sm { padding: .55rem 1.3rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: .8rem 1.5rem;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: var(--text-heading);
  display: flex; align-items: center; gap: .5rem;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: .95rem;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-heading); }
.mobile-toggle { display: none; color: var(--text-heading); font-size: 1.5rem; padding: .5rem; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text-heading); font-size: 1.3rem; font-weight: 600; }
.mobile-menu .close-menu { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--text-heading); font-size: 2rem; }

/* --- Hero --- */
.hero {
  padding: 9rem 0 5rem; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-text { text-align: left; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.5rem; letter-spacing: -.02em; }
.hero .subtitle {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft); border-radius: 24px; padding: 3rem;
  min-height: 350px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 50px; font-size: .8rem;
  background: #ede9fe; color: var(--primary); font-weight: 600; margin-bottom: 1.2rem;
}
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap;
}
.hero-stats .stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.hero-stats .stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--primary);
}
.hero-stats .stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* --- Cards --- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-soft); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .75rem; font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* --- Tool Card --- */
.tool-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.tool-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.tool-card .tool-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0; color: #fff;
}
.tool-card .tool-info { flex: 1; }
.tool-card .tool-name { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.tool-card .tool-tagline { color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; }
.tool-card .tool-features { margin-bottom: 1rem; }
.tool-card .tool-features li { padding: .25rem 0; font-size: .9rem; color: var(--text-muted); }
.tool-card .tool-features li::before { content: '✓ '; color: var(--primary); font-weight: 700; }
.tool-card .tool-commission { font-size: .85rem; color: var(--accent); font-weight: 600; margin-bottom: .75rem; }

/* --- Comparison Table --- */
.comparison-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; }
.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-alt); color: var(--text-heading);
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
.comparison-table td { font-size: .95rem; }
.comparison-table tr:hover td { background: #faf5ff; }
.comparison-table .highlight-row { background: #faf5ff; }
.check { color: #22c55e; font-weight: 700; }
.cross { color: #ef4444; font-weight: 700; }

/* --- Pros / Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.pros-list, .cons-list {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.pros-list h4 { color: #16a34a; margin-bottom: 1rem; }
.cons-list h4 { color: #dc2626; margin-bottom: 1rem; }
.pros-list li, .cons-list li { padding: .5rem 0; font-size: .95rem; border-bottom: 1px solid #f3f4f6; }
.pros-list li:last-child, .cons-list li:last-child { border-bottom: none; }
.pros-list li::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.cons-list li::before { content: '✗ '; color: #dc2626; font-weight: 700; }

/* --- FAQ --- */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: .75rem; overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.faq-question {
  width: 100%; padding: 1.25rem 1.5rem; color: var(--text-heading); font-size: 1rem;
  font-weight: 600; text-align: left; display: flex;
  justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: #faf5ff; }
.faq-question .faq-icon { transition: transform var(--transition); font-size: 1.2rem; color: var(--primary); }
.faq-item.active .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
  padding: 0 1.5rem; color: var(--text-muted); font-size: .95rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 600px; padding: 0 1.5rem 1.25rem; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; counter-reset: step; }
.step {
  text-align: center; padding: 2rem 1.5rem;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-weight: 700;
  font-size: 1.2rem; margin: 0 auto 1.2rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--text-muted); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient); border-radius: 16px;
  padding: 3.5rem 2rem; text-align: center; margin: 3rem 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.1) 0%, transparent 60%);
}
.cta-banner h2, .cta-banner p, .cta-banner .btn { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.cta-banner .btn { background: #fff; color: var(--primary-dark); }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,0,0,.2); }

/* --- Mid CTA --- */
.mid-cta {
  background: var(--gradient-soft); border: 1px solid var(--border-accent);
  border-radius: var(--radius); padding: 2rem; text-align: center; margin: 2rem 0;
}
.mid-cta h3 { margin-bottom: .5rem; }
.mid-cta p { color: var(--text-muted); margin-bottom: 1rem; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.testimonial .stars { color: #f59e0b; margin-bottom: .75rem; font-size: 1.1rem; }
.testimonial .quote { font-style: italic; color: var(--text); margin-bottom: 1rem; font-size: .95rem; }
.testimonial .author { font-weight: 600; font-size: .85rem; color: var(--text-muted); }

/* --- Tool Stack --- */
.tool-stack {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem; margin: 2.5rem 0;
}
.tool-stack h3 { margin-bottom: 1.5rem; text-align: center; }
.tool-stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tool-stack-item {
  text-align: center; padding: 1.5rem 1rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.tool-stack-item:hover { box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.tool-stack-item .ts-icon { font-size: 2rem; margin-bottom: .75rem; }
.tool-stack-item .ts-name { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; color: var(--text-heading); }
.tool-stack-item .ts-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }

/* --- Article / Blog --- */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h1 { margin-bottom: 1rem; }
.article-meta { display: flex; gap: 1.5rem; color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; flex-wrap: wrap; }
.article-content h2 { margin: 2.5rem 0 1rem; }
.article-content h3 { margin: 2rem 0 .75rem; }
.article-content p { font-size: 1.05rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .5rem; font-size: 1.05rem; }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: #faf5ff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.article-toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 2rem;
}
.article-toc h4 { margin-bottom: .75rem; }
.article-toc li { padding: .3rem 0; }
.article-toc a { color: var(--text-muted); font-size: .9rem; }
.article-toc a:hover { color: var(--primary); }
.related-reading {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.5rem; margin-top: 3rem;
}
.related-reading h4 { margin-bottom: 1rem; }
.related-reading li { padding: .4rem 0; }
.related-reading a { color: var(--primary); font-size: .95rem; }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 6rem 0 1rem; font-size: .85rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text-muted); margin: 0 .5rem; }
.breadcrumbs .current { color: var(--text-heading); }

/* --- Footer --- */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem; margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-heading); }
.footer-col li { padding: .3rem 0; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--text-muted);
}
.affiliate-notice {
  background: #faf5ff; border: 1px solid #e9d5ff;
  border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .8rem;
  color: var(--text-muted); text-align: center; margin-bottom: 1.5rem;
}

.badge { display: inline-block; padding: .25rem .75rem; border-radius: 50px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.badge-primary { background: #ede9fe; color: var(--primary); }
.badge-accent { background: #fef3c7; color: #d97706; }
.rating { display: flex; align-items: center; gap: .5rem; }
.rating-stars { color: #f59e0b; font-size: 1.1rem; }
.rating-score { font-weight: 700; color: var(--text-heading); }
.rating-count { color: var(--text-muted); font-size: .85rem; }

.pricing-box {
  background: #fff; border: 2px solid var(--border-accent);
  border-radius: 16px; padding: 2.5rem; text-align: center;
  max-width: 420px; margin: 2rem auto; box-shadow: var(--shadow-md);
}
.pricing-box .price { font-size: 2.8rem; font-weight: 800; color: var(--primary); }
.pricing-box .price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-box .price-note { font-size: .85rem; color: var(--text-muted); margin: .5rem 0 1.5rem; }

.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient); color: #fff;
  font-size: 1.2rem; display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 100;
  transition: all var(--transition);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { transform: translateY(-3px); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.img-placeholder {
  background: var(--gradient-soft); border: 2px dashed var(--border-accent);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  min-height: 200px; color: var(--text-muted); font-size: .9rem; text-align: center; padding: 2rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 7rem 0 3rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .tool-card { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
}
