/* BetterRoofingPro — /features page styles.
   Extracted from the inline <style> block in features.html so the page stays
   inside the 800-line cap in Docs/Planning/FILE_LENGTH_STANDARDS.md. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6; color: #1f2937; background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section-pad { padding: 5rem 0; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.navbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 0; max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; font-weight: 800; color: #2563eb; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: #4b5563; transition: color 0.2s; }
.nav-link:hover { color: #2563eb; }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600;
    font-size: 0.95rem; transition: all 0.25s; border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.btn-outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn-outline:hover { background: #eff6ff; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: 12px; }
.btn-white { background: #fff; color: #2563eb; }
.btn-white:hover { background: #f0f4ff; transform: translateY(-1px); }
.btn-hero-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); }

/* Hero */
.hero {
    margin-top: 64px;
    background: linear-gradient(145deg, #1e3a8a 0%, #3b82f6 50%, #7c3aed 100%);
    color: #fff; padding: 5rem 0 4rem; text-align: center;
}
.hero h1 { font-size: 2.75rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.15rem; opacity: 0.9; max-width: 680px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 900; }
.hero-stat-label { font-size: 0.85rem; opacity: 0.8; margin-top: 0.2rem; }

/* Overview grid */
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.overview-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 1.5rem; text-align: center; transition: all 0.25s;
    cursor: pointer; text-decoration: none; color: inherit;
}
.overview-card:hover { border-color: #2563eb; box-shadow: 0 4px 16px rgba(37,99,235,0.12); transform: translateY(-2px); }
.overview-emoji { font-size: 2rem; margin-bottom: 0.75rem; }
.overview-name { font-size: 0.92rem; font-weight: 700; color: #111827; margin-bottom: 0.35rem; }
.overview-desc { font-size: 0.8rem; color: #6b7280; line-height: 1.5; }
.badge-soon { display: inline-block; background: #fef3c7; color: #92400e; font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 10px; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

/* Category grouping */
.category-group { margin-bottom: 2.5rem; }
.category-group:last-child { margin-bottom: 0; }
.category-group-header {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1.25rem; border-radius: 12px;
    font-size: 1.1rem; font-weight: 800; color: #fff;
    margin-bottom: 1.25rem; width: fit-content;
}
.category-group-header-icon { font-size: 1.2rem; }
.cat-leads { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.cat-deals { background: linear-gradient(135deg, #f97316, #c2410c); }
.cat-jobs { background: linear-gradient(135deg, #eab308, #a16207); }
.cat-grow { background: linear-gradient(135deg, #475569, #1e293b); }
.cat-soon { background: linear-gradient(135deg, #334155, #0f172a); }
.category-group-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* Section header */
.section-header { max-width: 700px; margin: 0 auto 3.5rem; }
.section-label { color: #2563eb; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
.section-title { font-size: 2.25rem; font-weight: 800; color: #111827; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: #6b7280; line-height: 1.6; }

/* Feature block (alternating rows) */
.feature-block { background: #fff; position: relative; }
.feature-block.alt { background: #f9fafb; }
.feature-block + .feature-block::before {
    content: '';
    display: block;
    width: 60%;
    max-width: 600px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, #d1d5db 30%, #d1d5db 70%, transparent);
}

/* Category dividers */
.category-divider {
    padding: 2rem 0; text-align: center;
}
.category-divider-inner {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.75rem 2rem; border-radius: 14px;
    font-size: 1.35rem; font-weight: 800; color: #fff;
}
.category-divider-icon { font-size: 1.4rem; }
.cd-leads { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.cd-deals { background: linear-gradient(135deg, #f97316, #c2410c); }
.cd-jobs { background: linear-gradient(135deg, #eab308, #a16207); }
.cd-grow { background: linear-gradient(135deg, #475569, #1e293b); }

/* Coming Soon cards */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.roadmap-card {
    background: #fff; border: 2px dashed #d1d5db; border-radius: 16px;
    padding: 2rem; text-align: center; transition: border-color 0.2s;
}
.roadmap-card:hover { border-color: #2563eb; }
.roadmap-emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.roadmap-name { font-size: 1.15rem; font-weight: 800; color: #111827; margin-bottom: 0.5rem; }
.roadmap-desc { font-size: 0.92rem; color: #6b7280; line-height: 1.6; }
.roadmap-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 12px; margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.fb-row-gap-2 { gap: 2rem; }
.fb-row.reverse .fb-text { order: 2; }
.fb-row.reverse .fb-visual { order: 1; }
.fb-label { color: #2563eb; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
.fb-title { font-size: 1.75rem; font-weight: 800; color: #111827; margin-bottom: 1rem; line-height: 1.2; }
.fb-title-sm { font-size: 1.25rem; font-weight: 800; color: #111827; margin-bottom: 1rem; line-height: 1.2; }
.mt-2 { margin-top: 2rem; }
.fb-desc { font-size: 1rem; color: #4b5563; line-height: 1.7; margin-bottom: 1.5rem; }
.fb-bullets { list-style: none; }
.fb-bullets li { padding: 0.4rem 0; font-size: 0.95rem; color: #374151; display: flex; align-items: flex-start; gap: 0.6rem; }
.fb-bullets li::before { content: '✓'; color: #10b981; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.fb-visual {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border-radius: 20px; padding: 2.5rem; display: flex; align-items: center; justify-content: center;
    min-height: 280px; font-size: 4rem;
}
.feature-quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.feature-quad > div { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }

/* Comparison table */
.comp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
.comp-table {
    width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px;
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.comp-table thead { background: #1e3a8a; color: #fff; }
.comp-table th { padding: 1rem 1.25rem; text-align: left; font-weight: 600; font-size: 0.9rem; }
.comp-table th:first-child { border-radius: 16px 0 0 0; }
.comp-table th:last-child { border-radius: 0 16px 0 0; }
.comp-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
.comp-table tbody tr:hover { background: #f9fafb; }
.comp-check { color: #10b981; font-weight: 700; font-size: 1.15rem; }
.comp-x { color: #d1d5db; font-size: 1.15rem; }
.comp-highlight { background: #eff6ff; }
.comp-table .comp-highlight td { font-weight: 600; color: #1e3a8a; }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(145deg, #1e3a8a 0%, #3b82f6 50%, #7c3aed 100%);
    color: #fff; text-align: center; padding: 5rem 1.25rem;
}
.cta-banner h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; max-width: 550px; margin: 0 auto 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Demo Modal */
.demo-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.55); display: flex;
    align-items: center; justify-content: center; padding: 1.25rem;
}
.demo-modal {
    background: #fff; border-radius: 20px; padding: 2.5rem;
    width: 100%; max-width: 480px; position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.demo-modal-close {
    position: absolute; top: 1rem; right: 1.25rem;
    background: none; border: none; font-size: 1.5rem;
    color: #6b7280; cursor: pointer; line-height: 1;
}
.demo-modal-close:hover { color: #111827; }
.demo-modal-title { font-size: 1.5rem; font-weight: 800; color: #111827; margin-bottom: 0.25rem; }
.demo-modal-sub { font-size: 0.95rem; color: #6b7280; margin-bottom: 1.5rem; }
.demo-field { margin-bottom: 1rem; }
.demo-field label { display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.demo-field input, .demo-field select {
    width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid #d1d5db;
    border-radius: 8px; font-size: 0.95rem; color: #111827;
    transition: border-color 0.2s;
}
.demo-field input:focus, .demo-field select:focus { outline: none; border-color: #2563eb; }
.demo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.demo-submit {
    width: 100%; padding: 0.9rem; background: #2563eb; color: #fff;
    border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
    cursor: pointer; margin-top: 0.5rem; transition: background 0.2s;
}
.demo-submit:hover { background: #1d4ed8; }
.demo-submit:disabled { background: #93c5fd; cursor: not-allowed; }
.demo-success { text-align: center; padding: 1.5rem 0; }
.demo-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.demo-success h3 { font-size: 1.25rem; font-weight: 800; color: #111827; margin-bottom: 0.5rem; }
.demo-success p { color: #6b7280; font-size: 0.95rem; }
.demo-error-msg { color: #dc2626; font-size: 0.85rem; margin-top: 0.5rem; }
.turnstile-widget { margin-top: 1rem; display: flex; justify-content: center; }
.turnstile-status-text { text-align: center; }
.field-hint { font-size: 0.8rem; color: #9ca3af; margin-top: 0.25rem; }
.initially-hidden { display: none !important; }

/* Footer */
.footer { background: #111827; color: #d1d5db; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer .logo { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.88rem; color: #9ca3af; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; margin-top: 1.5rem; text-align: center; font-size: 0.8rem; color: #6b7280; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .overview-grid, .category-group-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .section-pad { padding: 3.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .fb-row { grid-template-columns: 1fr; gap: 2rem; }
    .fb-row.reverse .fb-text { order: 1; }
    .fb-row.reverse .fb-visual { order: 2; }
    .fb-visual { min-height: 180px; }
    .section-title { font-size: 1.75rem; }
    .nav-links { display: none; }
    .cta-banner h2 { font-size: 1.75rem; }
    .overview-grid, .category-group-cards { grid-template-columns: repeat(2, 1fr); }
    .roadmap-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
    .feature-quad { grid-template-columns: 1fr; }
    .hero-stat-num { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.65rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .cta-btns { flex-direction: column; align-items: center; }
    .overview-grid, .category-group-cards { grid-template-columns: 1fr; }
}
