@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Caveat:wght@600&display=swap');

/* ── Reset & Base ── */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:#1e293b;background:#f8fafc;line-height:1.7;-webkit-font-smoothing:antialiased}
.container{max-width:1040px;margin:0 auto;padding:0 1.25rem}

/* ── Hero ── */
.hero{position:relative;background:#0f172a;color:#fff;overflow:hidden}
.hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:120px;background:linear-gradient(to top,#0f172a,transparent);z-index:1;pointer-events:none}
.hero-banner{position:relative;width:100%;line-height:0}
.hero-banner img{width:100%;height:auto;display:block;object-fit:cover;max-height:380px;opacity:.85}

/* Waze powered pill */
.waze-powered{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem;font-size:.82rem;color:rgba(255,255,255,.8);letter-spacing:.03em;background:rgba(255,255,255,.06);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06)}
.waze-icon{width:20px;height:20px;color:#06b6d4;flex-shrink:0}
.waze-powered strong{color:#06b6d4;font-weight:600}

/* Hero content */
.hero-content{position:relative;z-index:2;text-align:center;padding:2.5rem 1.25rem 3rem}
.hero-content h1{font-size:3rem;font-weight:800;letter-spacing:-.03em;line-height:1.1;margin-bottom:.5rem;background:linear-gradient(135deg,#fff 0%,#94a3b8 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-content .subtitle{font-size:1.1rem;color:#94a3b8;font-weight:400;margin-bottom:1.8rem}

/* Stats bar */
.stats-bar{display:flex;justify-content:center;gap:2.5rem;margin-bottom:2rem;flex-wrap:wrap}
.stat{text-align:center}
.stat-num{display:block;font-size:2.2rem;font-weight:800;color:#fff;line-height:1.2}
.stat-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:500}

/* Buttons */
.hero-buttons{display:flex;justify-content:center;align-items:center;gap:.75rem;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.7rem 1.5rem;border-radius:10px;font-weight:600;text-decoration:none;font-size:.9rem;transition:all .2s ease;cursor:pointer;border:none}
.btn-primary{background:#fff;color:#0f172a}
.btn-primary:hover{background:#e2e8f0;transform:translateY(-1px)}
.btn-outline{background:rgba(255,255,255,.08);color:#fff;border:1.5px solid rgba(255,255,255,.2);backdrop-filter:blur(8px)}
.btn-outline:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.4);transform:translateY(-1px)}

/* Handwritten nudges */
.handwritten-nudge{display:block;margin-bottom:.35rem}
.nudge-text{font-family:'Caveat',cursive;font-size:1.5rem;color:#fbbf24;display:inline-block;animation:wiggle 3s ease-in-out infinite}
@keyframes wiggle{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}

/* ── Waze CTA Strip ── */
.waze-cta{background:linear-gradient(135deg,#0e7490 0%,#0891b2 50%,#06b6d4 100%);color:#fff;padding:1.5rem 1.25rem;position:relative;overflow:hidden}
.waze-cta::before{content:'';position:absolute;top:-50%;right:-20%;width:300px;height:300px;background:rgba(255,255,255,.05);border-radius:50%;pointer-events:none}
.waze-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;position:relative;z-index:1}
.waze-cta-text p{margin:.25rem 0 0;font-size:.92rem;opacity:.88;line-height:1.5}
.handwritten-waze{font-family:'Caveat',cursive;font-size:1.6rem;color:#fff;display:inline-block;animation:wiggle 3s ease-in-out infinite;text-shadow:0 1px 3px rgba(0,0,0,.15)}
.waze-cta-buttons{display:flex;gap:.5rem;flex-shrink:0}
.waze-store-btn{display:inline-block;transition:all .2s;opacity:.9}
.waze-store-btn:hover{opacity:1;transform:translateY(-1px)}
.waze-store-btn img{height:40px;display:block}

/* ── Main Content ── */
main{padding:2.5rem 0 1rem}

/* Section headings */
.section-heading{font-size:1.35rem;font-weight:700;color:#0f172a;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}
.section-heading::before{content:'';display:inline-block;width:4px;height:1.2em;background:linear-gradient(to bottom,#0891b2,#06b6d4);border-radius:2px}

/* Intro card */
.intro{background:#fff;border-radius:16px;padding:1.75rem 2rem;margin-bottom:2.5rem;box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);border:1px solid #e2e8f0;position:relative;overflow:hidden}
.intro::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#0891b2,#06b6d4,#fbbf24)}
.intro p{font-size:1rem;color:#475569;line-height:1.8}
.intro strong{color:#0f172a}

/* ── Tracking Cards ── */
.tracking-section{margin-bottom:2.5rem}
.tracking-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.track-card{background:#fff;border-radius:14px;padding:1.25rem 1rem;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);border:1px solid #e2e8f0;transition:transform .2s,box-shadow .2s}
.track-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.08)}
.track-icon{font-size:1.5rem;display:block;margin-bottom:.25rem}
.track-num{display:block;font-size:2rem;font-weight:800;color:#0f172a;line-height:1.2}
.track-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:500}
.track-new{border-top:3px solid #f97316}
.track-resolved{border-top:3px solid #22c55e}
.track-waiting{border-top:3px solid #eab308}
.track-alltime{border-top:3px solid #0891b2}
.tracking-since{text-align:center;font-size:.78rem;color:#94a3b8;margin-top:.75rem;font-style:italic}

/* ── Chart ── */
.chart-section{margin-bottom:2.5rem}
.chart-wrap{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);border:1px solid #e2e8f0;height:300px;position:relative}
.chart-note{text-align:center;margin-top:.75rem;font-size:.8rem;color:#94a3b8;font-style:italic}

/* ── Shame / Longest Unresolved ── */
.shame-section{margin-bottom:2.5rem}
.shame-subtitle{font-size:.9rem;color:#64748b;margin-bottom:1rem;line-height:1.5}

/* ── Map ── */
.map-section{margin-bottom:2.5rem}
#leaflet-map{height:420px;border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.06);border:1px solid #e2e8f0;z-index:0}

/* ── Table ── */
.table-section{margin-bottom:2rem}
.legend{margin-bottom:1rem;font-size:.82rem;color:#64748b;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-weight:500}
.swatch{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:2px}
.swatch-red{background:#ef4444}.swatch-orange{background:#f97316}.swatch-yellow{background:#eab308}
.table-wrap{border-radius:16px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03);border:1px solid #e2e8f0}
table{width:100%;border-collapse:collapse;background:#fff;font-size:.9rem}
thead{background:#0f172a;color:#fff}
th{padding:.75rem 1rem;text-align:left;font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8}
td{padding:.7rem 1rem;border-bottom:1px solid #f1f5f9;transition:background .15s}
tr.severe{background:#fef2f2}
tr.severe:hover{background:#fee2e2}
tr.high{background:#fff7ed}
tr.high:hover{background:#ffedd5}
tr.moderate{background:#fefce8}
tr.moderate:hover{background:#fef9c3}
tbody tr:hover{background:#f8fafc}
td a{color:#0891b2;font-weight:500;text-decoration:none;transition:color .15s}
td a:hover{color:#0e7490;text-decoration:underline}

/* Updated timestamp */
.updated{text-align:center;margin:2rem 0;color:#94a3b8;font-size:.82rem;font-weight:500}
.updated strong{color:#64748b}

/* ── Footer ── */
footer{background:#0f172a;color:#94a3b8;padding:2.5rem 1.25rem;margin-top:1rem;text-align:center;border-top:1px solid #1e293b}
.footer-mission{font-size:1rem;color:#e2e8f0;font-weight:500;margin-bottom:1rem;letter-spacing:-.01em}
footer a{color:#06b6d4;text-decoration:none;font-weight:500;transition:color .15s}
footer a:hover{color:#67e8f9;text-decoration:underline}
footer .small{font-size:.78rem;margin-top:.75rem;opacity:.65;line-height:1.6}
.footer-links{display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap;margin-bottom:.75rem}

/* ── Animations ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.intro,.map-section,.table-section{animation:fadeUp .5s ease-out both}
.map-section{animation-delay:.1s}
.table-section{animation-delay:.2s}

/* ── Mobile ── */
@media(max-width:640px){
    .hero-content h1{font-size:2.2rem}
    .hero-content .subtitle{font-size:.95rem}
    .hero-content{padding:1.5rem 1rem 2rem}
    .stats-bar{gap:1.5rem}
    .stat-num{font-size:1.7rem}
    #leaflet-map{height:280px;border-radius:12px}
    .intro{padding:1.25rem 1.5rem;border-radius:12px}
    .table-wrap{border-radius:12px}
    th,td{padding:.55rem .6rem;font-size:.82rem}
    .tracking-cards{grid-template-columns:repeat(2,1fr)}
    .track-num{font-size:1.5rem}
    .chart-wrap{height:220px}
    .waze-cta-inner{flex-direction:column;text-align:center}
    .waze-cta-buttons{justify-content:center}
    .hero-buttons{flex-direction:column;gap:.5rem}
    .btn{width:100%;justify-content:center}
    .footer-links{flex-direction:column;gap:.75rem}
}
@media(max-width:380px){
    .hero-content h1{font-size:1.8rem}
    .stats-bar{gap:1rem}
}
