/* RoofingEye — Professional SaaS Styling */
:root {
    --primary: #1a1a2e;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.navbar { background: var(--primary); padding: 0 20px; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav-logo { color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-link-muted { opacity: 0.6; }

/* Buttons */
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }

/* Hero */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 100px 20px 80px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.hero-sub { font-size: 1.25rem; max-width: 700px; margin: 0 auto 30px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* Features */
.features { padding: 80px 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { background: var(--card-bg); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--primary); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Steps */
.how-it-works { background: var(--primary); color: #fff; padding: 80px 20px; text-align: center; }
.how-it-works h2 { font-size: 2rem; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 800px; margin: 0 auto; }
.step { text-align: center; }
.step-num { display: inline-block; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 48px; margin-bottom: 12px; }
.step h4 { margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* CTA */
.cta-section { padding: 80px 20px; text-align: center; }
.cta-section h2 { font-size: 2rem; margin-bottom: 30px; }
.plan-features { list-style: none; max-width: 400px; margin: 0 auto 30px; text-align: left; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.plan-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* Social proof */
.social-proof { background: var(--bg); padding: 50px 20px; text-align: center; }
.testimonial { font-size: 1.1rem; font-style: italic; color: var(--text-muted); }

/* Forms */
.auth-container { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: var(--card-bg); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.auth-card h2 { text-align: center; margin-bottom: 24px; }
.auth-card h1 { text-align: center; margin-bottom: 16px; }
.auth-hint { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; text-align: center; }
.auth-section .auth-link { text-align: center; margin-top: 16px; font-size: 0.9rem; }
.auth-section .auth-link + .auth-link { margin-top: 8px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,102,255,0.15); }
.form-actions { margin-top: 24px; }
.form-actions .btn { width: 100%; text-align: center; }
.form-footer { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }

/* Dashboard */
.dashboard { padding: 40px 20px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dashboard-header h1 { font-size: 1.8rem; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }

.subscription-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.subscription-active { background: #d4edda; color: #155724; }
.subscription-past_due { background: #f8d7da; color: #721c24; }
.subscription-canceled { background: #fff3cd; color: #856404; }
.subscription-inactive { background: #e2e3e5; color: #383d41; }

/* Report cards */
.reports-list { display: flex; flex-direction: column; gap: 12px; }
.report-card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.report-info h4 { margin-bottom: 4px; }
.report-info p { font-size: 0.85rem; color: var(--text-muted); }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-completed { background: #d4edda; color: #155724; }
.status-processing { background: #fff3cd; color: #856404; }
.status-queued { background: #cce5ff; color: #004085; }
.status-failed { background: #f8d7da; color: #721c24; }

/* Status page */
.status-container { max-width: 600px; margin: 80px auto; text-align: center; padding: 0 20px; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-message { font-size: 1.1rem; color: var(--text-muted); }

/* Report view */
.report-section { padding: 40px 20px; }
.report-section h1 { margin-bottom: 8px; }
.report-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.report-actions-bar { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.report-map-section { margin-bottom: 30px; }
.report-map-section h2 { margin-bottom: 8px; }
.map-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.map-container { position: relative; }
.webmap-iframe { width: 100%; height: 600px; border: none; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-container.map-fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: #fff; padding: 0; }
.map-container.map-fullscreen .webmap-iframe { height: 100vh; border-radius: 0; }
#expand-map-btn { margin-top: 8px; }
.report-back { margin-top: 30px; }
.report-back a { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing */
.pricing-section { padding: 80px 20px; text-align: center; }
.pricing-card { background: var(--card-bg); border: 2px solid var(--accent); border-radius: var(--radius); max-width: 480px; margin: 30px auto; padding: 40px; box-shadow: var(--shadow); }
.pricing-card .price { font-size: 3rem; font-weight: 800; color: var(--primary); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

/* Visual proof / imagery */
.visual-proof { padding: 80px 20px; background: var(--card-bg); }
.visual-proof h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--primary); }
.visual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.visual-card { text-align: center; }
.visual-card img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.visual-card p { margin-top: 14px; font-size: 1rem; font-weight: 600; color: var(--primary); }

/* Sample Report */
.sample-report { padding: 80px 20px; background: var(--bg); }
.sample-report h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.sample-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; max-width: 900px; margin: 0 auto; }
.sample-image img { width: 100%; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.sample-image .sample-secondary { margin-top: 16px; }
.sample-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

/* Deliverables */
.deliverables { padding: 80px 20px; }
.deliverables h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.deliverable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
.deliverable-card { text-align: center; padding: 30px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.deliverable-icon { color: var(--accent); margin-bottom: 16px; }
.deliverable-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); }
.deliverable-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ROI social proof */
.social-proof { background: linear-gradient(135deg, #0a1628, #162447); padding: 50px 20px; text-align: center; }
.roi-stat { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto; line-height: 1.6; }
.roi-stat strong { color: #4da6ff; }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.6); padding: 40px 20px; text-align: center; }
.footer-links { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); margin: 0 12px; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer p { font-size: 0.85rem; }

/* Nav hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 0; height: 0; overflow: hidden; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: rgba(255,255,255,0.9); border-radius: 2px; transition: 0.3s; }
@media (max-width: 768px) {
    .nav-toggle { display: flex; width: auto; height: auto; overflow: visible; padding: 8px; }
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 20px; gap: 12px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
    .nav-links.is-open { display: flex; }
    .nav-container { position: relative; }
}
@media (min-width: 769px) {
    .nav-links { display: flex !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .nav-links { gap: 10px; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .report-card { flex-direction: column; align-items: flex-start; }
    .sample-content { grid-template-columns: 1fr; }
    .roi-stat { font-size: 1rem; }
}
