/* ============================================================
   SITE 4: ai-ofcontent.com
   Theme: Warm Gradient / Coral-Gold / Friendly — Pictory Inspired
   Font: DM Sans (headings) + Inter (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #f97066;
  --primary-dark: #e05550;
  --primary-light: #fca5a1;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --bg: #fffbf7;
  --bg-alt: #fff5ee;
  --bg-card: #ffffff;
  --bg-card-hover: #fff8f2;
  --text: #4a3728;
  --text-muted: #8b7355;
  --text-heading: #2d1810;
  --border: #f0e0d0;
  --border-accent: rgba(249,112,102,.25);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(139,85,54,.06);
  --shadow-md: 0 4px 20px rgba(139,85,54,.1);
  --shadow-lg: 0 10px 40px rgba(139,85,54,.12);
  --gradient: linear-gradient(135deg, #f97066, #f59e0b);
  --gradient-warm: linear-gradient(135deg, #fef3c7, #fce7f3, #ede9fe);
  --gradient-hero: linear-gradient(180deg, #fff5ee 0%, #fef3c7 30%, #fce7f3 60%, #ede9fe 100%);
  --gradient-soft: linear-gradient(135deg, rgba(249,112,102,.06), rgba(245,158,11,.06));
  --transition: .3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM 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: .9rem 2.2rem; border-radius: 50px; font-weight: 600;
  font-size: 1rem; transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(249,112,102,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249,112,102,.35);
  color: #fff;
}
.btn-secondary {
  background: #fff; color: var(--primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--primary); background: #fff8f2; }
.btn-sm { padding: .6rem 1.4rem; font-size: .875rem; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.1rem; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,251,247,.92); 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: 'DM Sans', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: var(--text-heading);
  display: flex; align-items: center; gap: .5rem;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.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,251,247,.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; text-align: center;
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; letter-spacing: -.02em; }
.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 50px; font-size: .8rem;
  background: rgba(249,112,102,.1); border: 1px solid rgba(249,112,102,.2);
  color: var(--primary); font-weight: 600; margin-bottom: 1.5rem;
}
.hero-stats {
  display: flex; gap: 2rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap;
}
.hero-stats .stat {
  background: #fff; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; text-align: center; box-shadow: var(--shadow-md);
}
.hero-stats .stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem; font-weight: 700; 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); }
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-warm); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; 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); }
.tool-card .tool-icon {
  width: 60px; height: 60px; border-radius: 50%;
  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: '🌟 '; }
.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: .05em;
}
.comparison-table td { font-size: .95rem; }
.comparison-table tr:hover td { background: #fff8f2; }
.comparison-table .highlight-row { background: #fff8f2; }
.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; 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 #f5ebe0; }
.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);
  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: #fff8f2; }
.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: 52px; height: 52px; border-radius: 50%;
  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: 24px;
  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 30% 80%, rgba(255,255,255,.15) 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,.9); margin-bottom: 1.5rem; }
.cta-banner .btn { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-md); }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --- Mid CTA --- */
.mid-cta {
  background: var(--gradient-warm); 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: var(--accent); 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: 24px; 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);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.tool-stack-item:hover { box-shadow: var(--shadow-md); }
.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 --- */
.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: #fff5ee; 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 { 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); }

.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: rgba(249,112,102,.05); border: 1px solid rgba(249,112,102,.15);
  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: rgba(249,112,102,.1); color: var(--primary); }
.badge-accent { background: rgba(245,158,11,.1); color: var(--accent); }
.rating { display: flex; align-items: center; gap: .5rem; }
.rating-stars { color: var(--accent); 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: 24px; 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: 700; 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: 50px; height: 50px; border-radius: 50%;
  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-warm); 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; }
  .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; }
}
