/* CityRoadkills.com — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a1a; line-height: 1.7; background: #fafafa; }
a { color: #dc2626; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container ul, .container ol { margin: 12px 0 12px 40px; }
.container ul ul, .container ol ul, .container ul ol, .container ol ol { margin: 6px 0 6px 32px; }
.container li { margin-bottom: 6px; font-size: 1.05em; color: #4a4a4a; }
.container p { margin-bottom: 16px; }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, #1a0a0a 0%, #3a0a0a 40%, #5a1a1a 100%); color: #fff; text-align: center; padding: 64px 24px 48px; }
.hero h1 { font-size: 2.6em; font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.hero h1 span { color: #ef4444; }
.hero h1 .green { color: #4ade80; }
.hero .tagline { font-size: 1.1em; font-weight: 300; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 24px; }
.hero .hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 20px; }
.hero .hs { text-align: center; }
.hero .hs .num { font-size: 2em; font-weight: 700; color: #ef4444; }
.hero .hs .lbl { font-size: 0.8em; color: rgba(255,255,255,0.6); }
.hero .compare { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 28px; }
.hero .compare .side { text-align: center; }
.hero .compare .big { font-size: 3em; font-weight: 700; line-height: 1; }
.hero .compare .big.red { color: #ef4444; }
.hero .compare .big.green { color: #4ade80; }
.hero .compare .lbl { font-size: 0.85em; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hero .compare .vs { font-size: 1.4em; color: rgba(255,255,255,0.3); align-self: center; font-weight: 700; }
.hero .ratio { font-size: 1.3em; color: #ef4444; font-weight: 700; margin-top: 20px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 0; background: #1a0a0a; border-bottom: 2px solid rgba(239,68,68,0.3); padding: 0 24px; overflow-x: auto; position: sticky; top: 0; z-index: 100; }
.tab { padding: 12px 18px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); background: none; border: none; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.tab:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.tab.active { color: #ef4444; border-bottom-color: #ef4444; }
.panel { display: none; }
.panel.active { display: block; }

/* ── Sections ── */
section { padding: 48px 0; border-bottom: 1px solid #e0e0e0; }
section:last-of-type { border-bottom: none; }
section h2 { font-size: 1.7em; font-weight: 400; color: #1a1a1a; margin-bottom: 14px; }
section h2 span { color: #dc2626; }
section h2 .green { color: #16a34a; }
section p.lead { font-size: 1.05em; color: #4a4a4a; max-width: 720px; margin-bottom: 24px; }

/* ── Image blocks ── */
.img-block { margin: 28px 0; text-align: center; }
.img-block img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.img-block .caption { font-size: 0.85em; color: #6a6a7a; margin-top: 10px; font-style: italic; }
.img-block .missing { background: #1a1a2e; color: #888; padding: 80px 24px; border-radius: 8px; font-size: 0.95em; text-align: center; }

/* ── Quote ── */
.quote-block { background: #fef2f2; border-left: 4px solid #dc2626; padding: 24px 32px; margin: 28px 0; border-radius: 0 8px 8px 0; }
.quote-block.green { background: #f0fdf4; border-left-color: #16a34a; }
.quote-block p { font-style: italic; font-family: Georgia, serif; font-size: 1.1em; color: #1a1a1a; margin-bottom: 8px; }
.quote-block .attr { font-style: normal; font-size: 0.9em; color: #6a6a7a; }

/* ── Cards ── */
.parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.card { border-radius: 10px; padding: 24px; }
.card-light { background: #fef2f2; }
.card-dark { background: #1a0a0a; color: #ccc; }
.card-dark h3 { color: #ef4444; }
.card-green { background: #f0fdf4; }
.card-green h3 { color: #16a34a; }
.card h3 { font-size: 1.1em; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 0.93em; line-height: 1.6; }

/* ── Comparison table ── */
.comp-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comp-table th { text-align: left; padding: 12px 14px; font-size: 0.8em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #dc2626; border-bottom: 2px solid #dc2626; }
.comp-table td { padding: 10px 14px; font-size: 0.95em; border-bottom: 1px solid #eee; }
.comp-table td:nth-child(2), .comp-table td:nth-child(3) { text-align: right; font-family: Georgia, serif; font-weight: 700; }
.comp-table tr.highlight td { background: #f0fdf4; }
.comp-table tr.danger td { background: #fef2f2; }

/* ── Stats ── */
.stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 28px 0; }
.stat { text-align: center; }
.stat .number { font-size: 2em; font-weight: 700; }
.stat .number.red { color: #dc2626; }
.stat .number.green { color: #16a34a; }
.stat .label { font-size: 0.8em; color: #6a6a7a; margin-top: 4px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.step-card { background: #fff; border: 2px solid #e0e0e0; border-radius: 10px; padding: 18px 14px; text-align: center; transition: border-color 0.15s; }
.step-card:hover { border-color: #dc2626; }
.step-card .step-num { font-size: 1.8em; font-weight: 700; color: #dc2626; margin-bottom: 6px; }
.step-card h4 { font-size: 0.9em; font-weight: 600; margin-bottom: 4px; }
.step-card p { font-size: 0.78em; color: #6a6a7a; }
.step-card a { color: #dc2626; font-weight: 600; }

/* ── Template email ── */
.template-box { background: #fff; border: 2px solid #e0e0e0; border-radius: 12px; margin: 28px 0; overflow: hidden; }
.template-header { background: #1a1a1a; color: #fff; padding: 14px 24px; font-weight: 600; font-size: 0.85em; letter-spacing: 1px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.template-header .copy-btn { background: #dc2626; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 0.85em; font-weight: 600; cursor: pointer; }
.template-header .copy-btn:hover { background: #b91c1c; }
.template-body { padding: 24px; font-size: 0.93em; line-height: 1.8; }
.template-body .placeholder { background: #fef3c7; padding: 2px 6px; border-radius: 3px; font-weight: 600; color: #92400e; }

/* ── Library table ── */
.lib-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.lib-table th { text-align: left; padding: 10px 12px; font-size: 0.75em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #dc2626; border-bottom: 2px solid #dc2626; }
.lib-table td { padding: 8px 12px; font-size: 0.93em; border-bottom: 1px solid #eee; }
.lib-table tr:hover td { background: #fef2f2; }
.lib-table td:nth-child(n+3) { text-align: right; font-family: Georgia, serif; font-weight: 600; }

/* ── Letter box (city pages) ── */
.letter-box { background: #fff; border: 2px solid #e0e0e0; border-radius: 12px; margin: 28px 0; overflow: hidden; }
.letter-header { background: #1a1a1a; color: #fff; padding: 14px 24px; font-weight: 600; font-size: 0.85em; letter-spacing: 1px; text-transform: uppercase; }
.letter-body { padding: 24px; font-size: 0.93em; line-height: 1.8; }

/* ── CTA ── */
.cta-section { background: linear-gradient(160deg, #1a0a0a 0%, #3a0a0a 40%, #5a1a1a 100%); color: #fff; text-align: center; border-bottom: none; }
.cta-section h2 { color: #fff; }
.cta-section p.lead { color: rgba(255,255,255,0.8); margin: 0 auto 28px; }
.cta-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #fff; color: #1a0a0a; padding: 14px 32px; border-radius: 6px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform 0.15s; }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; padding: 14px 32px; border-radius: 6px; font-weight: 500; border: 2px solid rgba(255,255,255,0.4); text-decoration: none; }
.btn-secondary:hover { opacity: 0.85; text-decoration: none; }

/* ── Footer ── */
footer { background: #1a0a0a; color: #6a5a5a; text-align: center; padding: 36px 24px; }
footer .footer-links a { color: #ef4444; margin: 0 10px; font-size: 0.9em; }
footer .copyright { font-size: 0.8em; margin-top: 12px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero h1 { font-size: 2em; }
  .parallel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-links { flex-direction: column; align-items: center; }
  .hero .hero-stats { gap: 20px; }
  .hero .compare { gap: 24px; }
}
