/* Shared public lead-feed component styles.
   Used by /lead-feed (lead-feed.html) and by the homepage hero
   (landing.html) — one component, one look, same live data from
   /api/lead-feed. Everything is scoped under .roof-feed so the
   host page's own styles are never disturbed. */
.roof-feed{
  --rf-navy:#0B1B33; --rf-blue-dark:#1D4ED8; --rf-blue-soft:#EFF4FE;
  --rf-green:#16A34A; --rf-green-soft:#EAF9F0;
  --rf-red:#DC2626;
  --rf-amber:#D97706; --rf-amber-soft:#FDF3E3;
  --rf-shadow-sm:0 4px 14px rgba(11,27,51,.07);
}
.roof-feed .search{display:flex;gap:10px;max-width:580px;margin:0 auto}
.roof-feed .search input{flex:1;min-width:0;padding:15px 18px;font-size:16px;border:2px solid var(--border);border-radius:12px;font-family:inherit;outline:none;background:#fff;color:var(--text)}
.roof-feed .search input:focus{border-color:var(--blue)}
@media(max-width:560px){.roof-feed .search{flex-direction:column}}
.roof-feed .chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.roof-feed .chip{background:#fff;border:1px solid var(--border);border-radius:99px;padding:6px 14px;font-size:13.5px;cursor:pointer;color:var(--text);font-family:inherit}
.roof-feed .chip:hover{border-color:var(--blue);color:var(--blue)}
.roof-feed .chip b{color:var(--blue)}
.roof-feed .results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:26px 0 14px;text-align:left}
.roof-feed .results-head h2{font-size:22px}
.roof-feed .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;text-align:left}
.roof-feed .card{border:1.5px solid var(--border);border-radius:16px;padding:18px;background:#fff;box-shadow:var(--rf-shadow-sm);display:flex;flex-direction:column;gap:8px;cursor:pointer;transition:border-color .12s;overflow:hidden}
.roof-feed .card.sel{border-color:var(--blue);background:var(--rf-blue-soft)}
.roof-feed .card .photo{display:block;width:calc(100% + 36px);max-width:none;margin:-18px -18px 2px;aspect-ratio:720/676;object-fit:cover;background:var(--bg-soft)}
.roof-feed .card .top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.roof-feed .card .street{font-weight:700;font-size:16px}
.roof-feed .card .loc{color:var(--muted);font-size:14px}
.roof-feed .card .price{font-family:'Space Grotesk','Inter',sans-serif;font-weight:700;font-size:20px;color:var(--text);white-space:nowrap}
.roof-feed .card .summary{font-size:14.5px;color:var(--text)}
.roof-feed .tags{display:flex;gap:6px;flex-wrap:wrap}
.roof-feed .tag{font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--bg-soft);color:var(--muted)}
.roof-feed .tag.grade{background:var(--rf-amber-soft);color:var(--rf-amber)}
.roof-feed .tag.contact{background:var(--rf-green-soft);color:var(--rf-green)}
.roof-feed .card .actions{display:flex;gap:8px;margin-top:auto;padding-top:6px;align-items:center}
.roof-feed .card label{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;cursor:pointer}
.roof-feed .card input[type=checkbox]{width:18px;height:18px;cursor:pointer}
.roof-feed .empty{border:1px dashed var(--border);border-radius:16px;padding:30px;text-align:center;color:var(--muted)}
.roof-feed .err{color:var(--rf-red);font-size:14px;margin-top:10px;min-height:18px;text-align:center}
.roof-feed .more{margin-top:18px;text-align:center;font-size:15px}
.roof-feed .more a{color:var(--blue);font-weight:700;text-decoration:none}
.roof-feed .more a:hover{text-decoration:underline}
/* Checkout bar — fixed to the viewport bottom on /lead-feed;
   .bar-inline renders the same bar in-flow (homepage hero, so it
   never covers the Rover chat bubble). */
.roof-feed-bar .bar{position:fixed;left:0;right:0;bottom:0;background:var(--rf-navy);color:#fff;padding:14px 0;box-shadow:0 -6px 20px rgba(0,0,0,.15);display:none;z-index:200}
.roof-feed-bar .bar.show{display:block}
.roof-feed-bar .bar-inline{position:static;border-radius:16px;margin-top:20px;box-shadow:var(--rf-shadow-sm)}
.roof-feed-bar .bar-in{max-width:1100px;margin:0 auto;padding:0 22px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between}
.roof-feed-bar .count{font-weight:700;font-size:16px}
.roof-feed-bar input{padding:12px 14px;border-radius:10px;border:0;font-size:15px;min-width:230px;flex:1;max-width:320px;font-family:inherit}
.roof-feed-bar .err{color:#fca5a5;font-size:14px;width:100%}
.roof-feed-bar .claim-link{background:none;border:0;color:#BFDBFE;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline;padding:4px 0}
.roof-feed-bar .claim-row{display:none;width:100%;align-items:center;gap:10px;flex-wrap:wrap}
.roof-feed-bar .claim-row.show{display:flex}
.roof-feed-bar .claim-row input{min-width:180px;text-transform:uppercase}
.roof-feed-bar .claim-note{font-size:13.5px;color:#BFDBFE;width:100%}
/* "First One on Us" hook block — mounted by first-lead.js on
   /lead-feed and in the homepage hero. Scoped under .first-lead. */
.first-lead{--fl-green:#16A34A;--fl-green-soft:#EAF9F0;--fl-red:#DC2626;border:1.5px solid var(--border);border-radius:16px;background:var(--fl-green-soft);padding:20px 22px;margin:22px auto;max-width:760px;text-align:left}
.first-lead h3{font-size:19px;margin-bottom:6px}
.first-lead p{font-size:15px;color:var(--text);margin-bottom:12px}
.first-lead form{display:flex;gap:10px;flex-wrap:wrap}
.first-lead input{padding:12px 14px;border-radius:10px;border:1.5px solid var(--border);font-size:15px;font-family:inherit;background:#fff;color:var(--text)}
.first-lead input.zip{width:130px}
.first-lead input.email{flex:1;min-width:210px}
.first-lead .err{color:var(--fl-red);font-size:14px;margin-top:10px;min-height:18px}
.first-lead .code{font-family:'Space Grotesk','Inter',sans-serif;font-size:26px;font-weight:700;letter-spacing:.06em;color:var(--fl-green)}
.first-lead .fine{font-size:13.5px;color:var(--muted);margin:8px 0 0}

/* Grade filter tabs + explainer + buy-all-by-grade (/lead-feed only,
   mounted with gradeFilter:true). Scoped under .roof-feed like the rest. */
.roof-feed .gtabs{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0;text-align:left}
.roof-feed .gtabs + .results-head{margin-top:14px}
.roof-feed .gtab{background:#fff;border:1.5px solid var(--border);border-radius:99px;padding:8px 16px;font-size:14px;font-weight:600;cursor:pointer;color:var(--text);font-family:inherit}
.roof-feed .gtab:hover{border-color:var(--blue);color:var(--blue)}
.roof-feed .gtab.on{background:var(--blue);border-color:var(--blue);color:#fff}
.roof-feed .gtab b{font-weight:800}
.roof-feed .gexplain{margin:0 0 14px;background:var(--rf-amber-soft);border:1px solid #F3D9AE;border-radius:12px;padding:12px 16px;font-size:15px;text-align:left}
.roof-feed .buyall{padding:11px 20px;font-size:15px}
