/* AI Marketing Compare — Vanilla CSS */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --color-primary:    #1a56db;
    --color-primary-dk: #1342a8;
    --color-accent:     #0ea5e9;
    --color-text:       #111827;
    --color-text-muted: #6b7280;
    --color-bg:         #ffffff;
    --color-bg-alt:     #f9fafb;
    --color-border:     #e5e7eb;
    --color-success:    #16a34a;
    --color-warning:    #ca8a04;
    --color-danger:     #dc2626;
    --radius:           8px;
    --shadow:           0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:        0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --max-width:        1200px;
    --font:             system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--color-primary); color: #fff; padding: .5rem 1rem; z-index: 9999; transition: top .2s; }
.skip-link:focus { top: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 600; line-height: 1.3; margin: 2rem 0 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: underline; }
a:hover { color: var(--color-primary-dk); }
.site-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; padding: .75rem 0; }
.site-header .container { display: flex; align-items: center; gap: 2rem; }
.logo img { display: block; }
.logo { text-decoration: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { text-decoration: none; color: var(--color-text); font-weight: 500; font-size: .9375rem; }
.main-nav a:hover { color: var(--color-primary); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 200px; padding: .5rem 0; flex-direction: column; gap: 0; }
.has-dropdown:hover .dropdown { display: flex; }
.dropdown li { padding: 0; }
.dropdown a { padding: .5rem 1rem; display: block; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 5px 0; transition: .3s; }
.hero { background: linear-gradient(135deg, #1e40af 0%, #1a56db 60%, #0ea5e9 100%); color: #fff; padding: 4rem 0 3rem; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.125rem; opacity: .9; max-width: 600px; margin: 0 auto 2rem; }
.cta-hero { font-size: 1.0625rem; padding: .875rem 2rem; }
.cta-btn { display: inline-block; text-decoration: none; border-radius: var(--radius); font-weight: 600; padding: .625rem 1.25rem; font-size: .9375rem; transition: background .2s, transform .1s; cursor: pointer; border: none; }
.cta-primary { background: var(--color-primary); color: #fff; }
.cta-primary:hover { background: var(--color-primary-dk); color: #fff; }
.cta-btn:active { transform: scale(.98); }
.categories-section { padding: 3rem 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.category-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); background: var(--color-bg); transition: box-shadow .2s, transform .1s; }
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card-has-img { overflow: hidden; padding: 0; }
.category-card-has-img .category-icon, .category-card-has-img h3, .category-card-has-img .tool-count { padding: 0 1.25rem; }
.category-card-has-img h3 { padding-top: .75rem; }
.category-card-has-img .tool-count { padding-bottom: 1.25rem; }
.category-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.category-icon { font-size: 1.75rem; }
.category-card h3 { font-size: 1rem; margin: 0; }
.tool-count { font-size: .8125rem; color: var(--color-text-muted); margin-top: auto; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.tool-card { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); background: var(--color-bg); transition: box-shadow .2s; align-items: flex-start; }
.tool-card:hover { box-shadow: var(--shadow-md); }
.tool-card h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.tool-tagline { font-size: .875rem; color: var(--color-text-muted); margin: 0; }
.rating { color: var(--color-warning); font-weight: 600; }
.see-all { text-align: center; margin-top: 1.5rem; }
.value-prop { background: var(--color-bg-alt); padding: 3rem 0; margin-top: 2rem; }
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.prop { background: var(--color-bg); padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
.prop h3 { margin-top: 0; font-size: 1rem; }
.prop p { font-size: .9375rem; color: var(--color-text-muted); margin: 0; }
.site-footer { background: #111827; color: #d1d5db; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: .875rem; margin-top: .75rem; color: #9ca3af; }
.footer-nav h3 { color: #f9fafb; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: #9ca3af; text-decoration: none; font-size: .875rem; }
.footer-nav a:hover { color: #f9fafb; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; font-size: .8125rem; color: #6b7280; }
.footer-bottom p { margin-bottom: .375rem; }
.footer-bottom a { color: #9ca3af; }
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1f2937; color: #f9fafb; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; z-index: 9999; display: none; }
#cookie-banner p { margin: 0; font-size: .875rem; flex: 1; }
#cookie-banner a { color: #93c5fd; }
#cookie-accept { background: var(--color-primary); color: #fff; border: none; padding: .5rem 1rem; border-radius: 4px; cursor: pointer; font-weight: 600; }
#cookie-decline { background: transparent; color: #9ca3af; border: 1px solid #4b5563; padding: .5rem 1rem; border-radius: 4px; cursor: pointer; }
.legal-page { padding: 3rem 0; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
/* Image styles */
.tool-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.tool-hero-img img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 350px; }
.category-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.category-hero-img img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 300px; }
.tool-card-img-layout { overflow: hidden; }
.tool-card-img { flex-shrink: 0; }
.tool-card-img img { width: 100%; height: 160px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.vs-tool-img { width: 100%; max-width: 280px; height: 160px; object-fit: cover; border-radius: var(--radius); margin-bottom: .75rem; }
/* Tool page */
.tool-page { padding: 2rem 0; }
.tool-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tool-header-text { flex: 1; }
.tool-tagline { font-size: 1.125rem; color: var(--color-text-muted); margin-top: .25rem; }
.rating-block { display: flex; align-items: baseline; gap: .25rem; margin-top: .75rem; }
.rating-score { font-size: 2rem; font-weight: 700; color: var(--color-warning); }
.rating-max { font-size: 1rem; color: var(--color-text-muted); }
.layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
.tool-sidebar { position: sticky; top: 5rem; align-self: start; }
.sidebar-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-card h3 { margin-top: 0; font-size: 1rem; margin-bottom: .75rem; }
.info-table { width: 100%; font-size: .875rem; }
.info-table th { text-align: left; padding: .375rem 0; color: var(--color-text-muted); font-weight: 500; }
.info-table td { text-align: right; padding: .375rem 0; }
.alt-list { list-style: none; }
.alt-list li { display: flex; justify-content: space-between; padding: .375rem 0; border-bottom: 1px solid var(--color-border); }
.alt-list li:last-child { border-bottom: none; }
.alt-list a { text-decoration: none; }
.feature-list { padding-left: 1.25rem; }
.feature-list li { margin-bottom: .5rem; }
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pros h3 { color: var(--color-success); }
.cons h3 { color: var(--color-danger); }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }
.cons li::before { content: "✗ "; color: var(--color-danger); font-weight: 700; }
.pros li, .cons li { margin-bottom: .375rem; }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td { padding: .625rem .75rem; border: 1px solid var(--color-border); text-align: left; }
.pricing-table thead { background: var(--color-bg-alt); }
.faq-list dt { font-weight: 600; margin-top: 1.25rem; }
.faq-list dd { margin-left: 0; color: var(--color-text-muted); }
.comparison-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.comparison-links li a { display: inline-block; padding: .375rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; font-size: .875rem; }
.comparison-links li a:hover { background: var(--color-bg-alt); }
.affiliate-disclosure { font-size: .8125rem; color: var(--color-text-muted); background: var(--color-bg-alt); padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
/* VS page */
.vs-page { padding: 2rem 0; }
.vs-header { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.vs-tool { text-align: center; flex: 1; min-width: 200px; }
.vs-tool h2 { margin: .5rem 0; }
.vs-divider { font-size: 2rem; font-weight: 800; color: var(--color-text-muted); padding: 0 1rem; }
.tldr-box { background: #eff6ff; border-left: 4px solid var(--color-primary); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2rem; }
.vs-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.vs-table th, .vs-table td { padding: .625rem .75rem; border: 1px solid var(--color-border); text-align: center; }
.vs-table thead { background: var(--color-bg-alt); }
.vs-table td:first-child { text-align: left; }
.has-feature { color: var(--color-success); font-weight: 600; }
.no-feature { color: var(--color-text-muted); }
.use-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.use-case-card { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.use-case-card h3 { margin-top: 0; }
.use-case-card ul { padding-left: 1.25rem; margin-bottom: 1rem; }
/* Category page */
.category-page { padding: 2rem 0; }
.category-header { text-align: center; margin-bottom: 2rem; }
.category-icon-lg { font-size: 3rem; display: block; margin-bottom: .5rem; }
.category-description { color: var(--color-text-muted); max-width: 600px; margin: 0 auto 1rem; }
.tool-count-label { font-size: .875rem; color: var(--color-text-muted); }
.tools-grid-full { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.category-comparisons { margin-top: 3rem; }
/* All tools page */
.all-tools-page { padding: 2rem 0; }
.subtitle { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.category-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { display: inline-block; padding: .375rem .875rem; border: 1px solid var(--color-border); border-radius: 20px; text-decoration: none; font-size: .875rem; color: var(--color-text); }
.filter-btn:hover, .filter-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
/* Sister sites */
.sister-sites { border-top: 1px solid #374151; padding-top: 1.5rem; margin-bottom: 1.5rem; }
.sister-sites h3 { color: #f9fafb; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.sister-sites-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.sister-sites-list a { color: #93c5fd; text-decoration: none; font-size: .875rem; }
.sister-sites-list a:hover { color: #f9fafb; }
/* Breadcrumb */
.breadcrumb { padding: 1rem 0; font-size: .875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem; padding: 0 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span[aria-hidden] { color: var(--color-text-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .layout-sidebar { grid-template-columns: 1fr; } .tool-sidebar { position: static; } }
@media (max-width: 640px) { .main-nav { display: none; } .nav-toggle { display: block; margin-left: auto; } .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 1rem; gap: .75rem; } .main-nav.open ul { flex-direction: column; gap: .5rem; } .footer-grid { grid-template-columns: 1fr; } .vs-header { flex-direction: column; } .pros-cons-grid, .use-case-grid { grid-template-columns: 1fr; } }
