/* ==========================================================================
   AI Sales Pipeline — shared component styles
   For component classes that the page templates use but never styled
   (feature pages, features.html, comparison.html, landing pages, blog posts).
   Linked BEFORE each page's own <style>, so any page rule for the same
   selector still wins. Selectors prefixed with `body` only exist to beat the
   template's generic `.content-section a|p|h3|ul li` rules inside a component.
   ========================================================================== */

/* ---------- Accessibility: skip link (hidden until focused) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; z-index: 10000; background: #000; color: #fff; padding: 8px 16px; border-radius: 4px; }

/* ---------- Shared card look ---------- */
.feature-card, .use-case-card, .impact-card, .related-card, .county-card, .data-category,
.competitor-card, .tool-card, .stat-grid .stat, .use-case, .workflow-step, .faq-item, .callout-cta,
.cta-box, .intro-box, .why-better, .toc, .related {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

/* ---------- Stats bar (feature pages) ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0 0 3rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.08), rgba(0, 212, 255, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.18);
    border-radius: 16px;
}
.stat-number {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ff8a5c;
    margin-bottom: 0.35rem;
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(240, 240, 240, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Generic sections inside feature pages ---------- */
.section, .related-features, .feature-group { margin: 0 0 3.5rem; }
.section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

/* ---------- Card grids ---------- */
.feature-grid, .use-case-grid, .impact-grid, .related-grid, .county-grid, .data-points-grid, .grid-2 {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
.feature-grid, .use-case-grid, .impact-grid, .data-points-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.related-grid, .county-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.feature-card, .use-case-card, .impact-card, .county-card, .data-category {
    padding: 1.5rem 1.4rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-card:hover, .use-case-card:hover, .impact-card:hover { border-color: rgba(255, 107, 53, 0.35); }
.feature-card.highlight { border-color: rgba(255, 107, 53, 0.45); background: linear-gradient(135deg, rgba(255, 107, 53, 0.09), rgba(255, 255, 255, 0.02)); }
.feature-card .icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.12);
    margin-bottom: 0.9rem;
}
body .feature-card h3, body .use-case-card h3, body .impact-card h3, body .impact-card h4,
body .county-card h3, body .data-category h3, body .use-case h3, body .related-card h3,
body .competitor-card h3, body .faq-item h3, body .cta-box h3, body .callout-cta h3,
body .step-content h3, body .workflow-step h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.12rem;
    line-height: 1.35;
}
body .feature-card h4, body .use-case-card h4, body .related-card h4, body .county-card h4, body .use-case h4 {
    margin: 0 0 0.6rem; font-size: 1.12rem; line-height: 1.35; color: #fff;
}
body .impact-card h4, body .feature-card h4, body .use-case-card h4, body .related-card h4, body .county-card h4, body .use-case h4 {
    font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700;
}
body .impact-card h4 { color: #ff8a5c; }
body .feature-card p, body .use-case-card p, body .impact-card p, body .county-card p,
body .related-card p, body .faq-item p, body .step-content p, body .workflow-step p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.65; }
body .data-category ul { margin-bottom: 0; }
body .data-category ul li { padding-top: 0.3rem; padding-bottom: 0.3rem; font-size: 0.92rem; }

/* ---------- Related feature/article cards (whole card is a link) ---------- */
body a.related-card {
    display: block;
    padding: 1.25rem 1.3rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
body a.related-card:hover, body a.related-card:focus-visible {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-2px);
}
body a.related-card h3, body a.related-card h4 { color: #ff8a5c; }
body a.related-card p { color: rgba(240, 240, 240, 0.75); }

.related { padding: 1.25rem 1.4rem; margin: 2rem 0; }
body .related h4 { margin: 0 0 0.75rem; font-size: 1rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
body a.related-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 999px;
    color: #ff8a5c;
    text-decoration: none;
    font-size: 0.9rem;
}
body a.related-link:hover, body a.related-link:focus-visible { background: rgba(255, 107, 53, 0.1); }

/* ---------- Numbered steps (feature pages: .steps/.step, .workflow-step) ---------- */
.steps { display: grid; gap: 1rem; margin: 1.5rem 0; }
.step, .workflow-step { display: flex; align-items: flex-start; gap: 1rem; }
.step { padding: 1.1rem 1.2rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; }
.workflow-step { padding: 1.2rem 1.3rem; margin: 0 0 1rem; }
.step-number, .step-num {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #ff5a1f);
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}
.step-content { flex: 1; min-width: 0; }
.step-content strong { display: block; margin-bottom: 0.25rem; color: #fff; }
.step-content span { display: block; color: rgba(240, 240, 240, 0.75); line-height: 1.65; }

/* Step list (fsbo / clone video): <ol|ul class="step-list"><li>…</li> */
body .step-list { list-style: none; padding-left: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.9rem; counter-reset: none; }
body .step-list > li {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(240, 240, 240, 0.8);
}
body .step-list > li::before { content: none; display: none; }
/* clone-video variant has no .step-num: show the list counter as the badge */
body ol.step-list { counter-reset: step; }
body ol.step-list > li { display: block; padding-left: 3.6rem; position: relative; counter-increment: step; }
body ol.step-list > li::before {
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    position: absolute; left: 1rem; top: 1rem;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 107, 53, 0.15); color: #ff8a5c;
    font-weight: 700; font-size: 0.85rem;
}
body ol.step-list > li strong { display: block; margin-bottom: 0.2rem; }

/* ---------- Use cases, scenarios, scripts (feature pages) ---------- */
.use-case { padding: 1.4rem; margin: 0 0 1.25rem; }
.example-script, .scenario {
    margin-top: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-left: 3px solid #ff6b35;
    border-radius: 0 10px 10px 0;
    background: rgba(255, 107, 53, 0.06);
    color: rgba(240, 240, 240, 0.85);
    font-size: 0.93rem;
    line-height: 1.65;
}
.example-script { font-style: italic; }

/* ---------- CTA blocks ---------- */
.cta-section, .final-cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2.75rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
body .cta-section h2, body .final-cta h2 { margin-top: 0; text-align: center; }
body .cta-section p { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-box, .callout-cta {
    text-align: center;
    margin: 2.5rem 0;
    padding: 2rem 1.6rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 107, 53, 0.28);
}
body .cta-box p, body .callout-cta p { max-width: 620px; margin-left: auto; margin-right: auto; }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1rem; }

body a.cta-button, body a.cta-btn, body a.btn {
    display: inline-block;
    margin: 0.35rem 0.25rem;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35, #ff5a1f);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body a.cta-button:hover, body a.cta-btn:hover, body a.btn:hover,
body a.cta-button:focus-visible, body a.cta-btn:focus-visible, body a.btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}
body a.btn-secondary {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.03);
    color: #f0f0f0;
    font-weight: 700;
    text-decoration: none;
}
body a.btn-secondary:hover, body a.btn-secondary:focus-visible { background: rgba(255, 107, 53, 0.1); color: #fff; }
.cta-price-note { color: rgba(240, 240, 240, 0.72); }

/* ---------- FAQ blocks (always-open Q&A lists) ---------- */
.faq-section { margin: 3rem 0 1rem; }
.faq-item { padding: 1.2rem 1.35rem; margin: 0 0 0.9rem; }
body .faq-item h3.faq-q { color: #fff; }
.faq-a { color: rgba(240, 240, 240, 0.8); }
body .faq-a p:last-child { margin-bottom: 0; }
.faq-visible h2 { margin-bottom: 1.25rem; }
.faq-visible h3 { margin: 1.5rem 0 0.4rem; color: #ff8a5c; font-size: 1.08rem; line-height: 1.4; }
.faq-visible p { color: rgba(240, 240, 240, 0.8); line-height: 1.7; }

/* ---------- Article helpers (blog + landing templates) ---------- */
.article-intro, .lead {
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(240, 240, 240, 0.88);
}
body p.article-intro, body p.lead { color: rgba(240, 240, 240, 0.88); font-size: 1.12rem; }
.answer-first, .definition {
    border-left: 3px solid #ff6b35;
    background: rgba(255, 107, 53, 0.07);
    padding: 0.9rem 1.1rem;
    border-radius: 0 10px 10px 0;
    margin: 1rem 0 1.5rem;
}
.highlight-box, .intro-box {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.4rem;
    background: rgba(255, 107, 53, 0.06);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-left: 3px solid #ff6b35;
    border-radius: 12px;
}
body .highlight-box p:last-child { margin-bottom: 0; }

/* Landing template header: <div class="container"><div class="tag">…<div class="meta">… */
.container { max-width: 860px; margin: 0 auto; }
.tag {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
    color: #ff8a5c;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.meta { color: rgba(240, 240, 240, 0.68); font-size: 0.88rem; margin-bottom: 1.25rem; }

/* Inline text links inside feature copy */
body a.inline-link { color: #ff8a5c; }

/* ---------- Table of contents (pillar guide) ---------- */
.toc { padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; }
.toc-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a5c; font-weight: 700; margin-bottom: 0.5rem; }
body .toc ol { margin-bottom: 0; }
body .toc ol li { padding-top: 0.25rem; padding-bottom: 0.25rem; }

/* ---------- Stat grid (pillar guide) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.stat-grid .stat { padding: 1.1rem 1.2rem; }
.stat-grid .num { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.6rem; font-weight: 800; color: #ff8a5c; line-height: 1.2; }
.stat-grid .lbl { font-size: 0.9rem; color: rgba(240, 240, 240, 0.78); margin-top: 0.3rem; }

/* ---------- Comparison tables: status marks ---------- */
.check, td.yes { color: #4ade80; font-weight: 700; }
.cross, td.no { color: #f87171; font-weight: 700; }
.partial, td.partial { color: #fbbf24; font-weight: 600; }
.compare-table td.ai { color: #fff; font-weight: 600; }
.compare-table td.trad { color: rgba(240, 240, 240, 0.7); }

/* ---------- Competitor / tool cards (comparison pages) ---------- */
.competitor-card, .tool-card { padding: 1.5rem 1.5rem 1.25rem; margin: 0 0 1.5rem; }
.competitor-card.ours, .tool-card.ours { border-color: rgba(255, 107, 53, 0.5); background: linear-gradient(135deg, rgba(255, 107, 53, 0.09), rgba(255, 255, 255, 0.02)); }
.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.pros, .cons { padding: 1rem 1.1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.pros { border: 1px solid rgba(74, 222, 128, 0.25); }
.cons { border: 1px solid rgba(248, 113, 113, 0.25); }
body .pros h4, body .cons h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
body .pros h4 { color: #4ade80; }
body .cons h4 { color: #f87171; }
body .pros ul, body .cons ul { margin-bottom: 0; }
body .pros ul li, body .cons ul li { padding-top: 0.3rem; padding-bottom: 0.3rem; font-size: 0.92rem; }
.verdict {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.07);
    border: 1px solid rgba(255, 107, 53, 0.22);
    color: rgba(240, 240, 240, 0.88);
    font-size: 0.95rem;
}
.verdict strong { display: block; color: #ff8a5c; margin-bottom: 0.25rem; }
.why-better, .intro-box { padding: 1.5rem 1.6rem; margin: 2rem 0; }
.tool-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.tool-name { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; }
.tool-tag { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #ff8a5c; padding: 0.2rem 0.6rem; border: 1px solid rgba(255, 107, 53, 0.35); border-radius: 999px; }
.tool-price { font-size: 0.9rem; color: rgba(240, 240, 240, 0.72); margin-bottom: 0.8rem; }
.tool-meta { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.tool-meta-row { font-size: 0.92rem; color: rgba(240, 240, 240, 0.8); line-height: 1.6; }
.tool-meta-row strong { display: block; color: #fff; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Integrations (features.html) ---------- */
.integration-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.5rem 0 2rem; }
.integration-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.88);
}

/* ---------- Pricing final CTA decoration ---------- */
.shimmer-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 107, 53, 0.12), transparent 70%);
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 1.25rem 1rem; }
    .cta-section, .final-cta { padding: 2rem 1.1rem; }
    .cta-box, .callout-cta { padding: 1.5rem 1.1rem; }
    .step, .workflow-step, body ul.step-list > li { flex-direction: column; gap: 0.6rem; padding: 1rem; }
    .step-number, .step-num { width: 34px; height: 34px; font-size: 0.85rem; }
    body a.cta-button, body a.cta-btn, body a.btn, body a.btn-secondary { display: block; margin: 0.5rem 0; text-align: center; }
    body a.cta-btn { margin-right: 0 !important; } /* inline margin-right meant for side-by-side desktop buttons */
}
@media (prefers-reduced-motion: reduce) {
    .feature-card, .use-case-card, .impact-card, body a.related-card, body a.cta-button, body a.cta-btn, body a.btn { transition: none; }
}
