:root{
  --c-primary:#3f6b3a;
  --c-primary-hover:#4f8347;
  --c-secondary:#a8631b;
  --c-bg:#f7f3ea;
  --c-ink:#2a2118;
  --c-dark:#2e2a20;
  --font-display:"Zilla Slab",Georgia,serif;
  --font-body:"Inter",system-ui,sans-serif;
}
/* Directory Kit base stylesheet.
   Theme tokens (--c-primary, --font-display, etc.) are injected at the top of
   this file at build time from config.json. Do not hardcode colors here — use
   the variables so every site re-themes from config alone. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
img { max-width: 100%; display: block; }

.section-wrap { max-width: 1180px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-primary); margin-bottom: .6rem;
}
.label-pale { color: rgba(255,255,255,.7); }
.section-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.8rem; gap: 1rem; }
.section-row h2 { font-size: 2rem; }
.link-accent { color: var(--c-primary); font-weight: 600; white-space: nowrap; }

/* ---- Nav ---- */
.nav-accent { height: 4px; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); }
nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: .9rem 1.5rem; gap: 1rem;
}
.logo-wrap { display: flex; align-items: center; gap: .6rem; }
.logo-emblem { width: 40px; height: 40px; flex-shrink: 0; }
.logo-emblem svg { width: 100%; height: 100%; }
.logo-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.logo-sub { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--c-primary); }
.nav-cta { background: var(--c-ink); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.nav-cta:hover { background: var(--c-primary); }

/* ---- Hero ---- */
.hero { background: var(--c-dark); color: #fff; padding: 5rem 1.5rem; text-align: center; }
.hero-inner-home { max-width: 760px; margin: 0 auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .9rem; margin-bottom: 1.5rem;
}
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 0 var(--c-primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(185,28,28,.6);} 70%{box-shadow:0 0 0 10px rgba(185,28,28,0);} 100%{box-shadow:0 0 0 0 rgba(185,28,28,0);} }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1rem; }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-browse-btn { display: inline-block; background: var(--c-primary); color: #fff; padding: .85rem 1.8rem; border-radius: 999px; font-weight: 600; }
.hero-browse-btn:hover { background: var(--c-primary-hover); }

/* ---- Stats bar ---- */
.stats-bar { background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); }
.stats-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 2rem; padding: 1.5rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-n { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c-primary); }
.stat-l { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #777; }
.stat-div { width: 1px; height: 36px; background: rgba(0,0,0,.1); }

/* ---- Listing grid + cards ---- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.l-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.l-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(0,0,0,.4); }
.l-img { position: relative; aspect-ratio: 16/10; background: var(--c-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.l-photo { width: 100%; height: 100%; object-fit: cover; }
.l-emoji { font-size: 3.4rem; }
.l-body { padding: 1.1rem; }
.l-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin-bottom: .5rem; }
.l-meta { font-size: .85rem; color: #666; line-height: 1.5; }
.l-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(0,0,0,.07); font-size: .8rem; }
.l-count { font-weight: 600; }
.l-cat { color: #777; }

.badge { position: absolute; top: .7rem; left: .7rem; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; color: #fff; }
.badge-live { background: var(--c-primary); }
.badge-upcoming { background: var(--c-secondary); }
.badge-ended { background: #777; }

/* ---- Category cards ---- */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.cat-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 1.4rem; transition: transform .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--c-primary); }
.cat-empty { opacity: .55; }
.cat-icon { font-size: 2rem; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: .5rem 0 .2rem; }
.cat-sub { font-size: .85rem; color: #777; }
.cat-count { font-size: .8rem; font-weight: 600; color: var(--c-primary); margin-top: .7rem; }

/* ---- Geo tile map ---- */
.map-section { background: var(--c-dark); padding: 4rem 1.5rem; }
.map-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.map-eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.map-title { color: #fff; font-size: 2rem; margin-bottom: .4rem; }
.map-sub { color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.geo-map-wrap { display: flex; justify-content: center; }
.geo-map-svg { width: 100%; max-width: 780px; height: auto; }

/* ---- Page header ---- */
.page-header { background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); }
.page-header-inner { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.breadcrumb { font-size: .82rem; color: #888; margin-bottom: .7rem; }
.breadcrumb a:hover { color: var(--c-primary); }
.page-title { font-size: 2.4rem; }
.page-sub { color: #666; margin-top: .4rem; }

/* ---- Detail ---- */
.detail-wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.detail-wrap .breadcrumb { margin-bottom: 1.4rem; }
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.4rem; align-items: start; }
.detail-hero { aspect-ratio: 16/9; background: #fff; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; border: 1px solid rgba(0,0,0,.08); }
.detail-hero .l-emoji { font-size: 5rem; }
.detail-title { font-size: 2.2rem; margin: 1.4rem 0 1rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.detail-tag { background: #fff; border: 1px solid rgba(0,0,0,.12); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; }
a.detail-tag:hover { border-color: var(--c-primary); color: var(--c-primary); }
.detail-desc h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.detail-desc p { color: #444; }
.detail-card { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 16px; padding: 1.4rem; }
.detail-card-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .92rem; }
.dc-label { color: #888; }
.dc-value { font-weight: 600; text-align: right; }
.dc-cta { display: block; text-align: center; background: var(--c-primary); color: #fff; padding: .8rem; border-radius: 999px; font-weight: 600; margin-top: 1rem; }
.dc-cta:hover { background: var(--c-primary-hover); }
.provider-box { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 16px; padding: 1.4rem; margin-top: 1.2rem; }
.pb-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #999; }
.pb-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: .3rem 0; }
.pb-name:hover { color: var(--c-primary); }
.pb-loc, .pb-cred { font-size: .85rem; color: #777; }
.pb-cred { color: var(--c-secondary); font-weight: 600; margin-top: .3rem; }
.provider-bio { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 1.6rem; margin-bottom: 2rem; }
.pb-contact { margin-top: .8rem; font-weight: 600; }
.provider-bio + h2 { margin-bottom: 1.4rem; }

/* ---- List / alerts layout ---- */
.list-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.list-intro h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.list-lead { color: #555; margin-bottom: 1.4rem; }
.list-benefits { list-style: none; margin-bottom: 1.6rem; }
.list-benefits li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; font-size: .95rem; }
.lb-check { width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); flex-shrink: 0; position: relative; }
.lb-check::after { content: "\2713"; color: #fff; font-size: .8rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.list-help { background: var(--c-bg); border-radius: 12px; padding: 1rem 1.2rem; }
.lh-title { font-weight: 700; margin-bottom: .2rem; }
.lh-text { font-size: .9rem; color: #666; }
.lh-text a { color: var(--c-primary); font-weight: 600; }
.form-embed { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 16px; padding: 1.4rem; }
.form-placeholder { background: #fff; border: 2px dashed rgba(0,0,0,.15); border-radius: 16px; padding: 2.4rem; text-align: center; }
.fp-icon { font-size: 2.4rem; margin-bottom: .6rem; }
.fp-title { font-weight: 700; margin-bottom: .4rem; }
.fp-text { font-size: .9rem; color: #777; }
.fp-text a { color: var(--c-primary); }
.empty-note { color: #777; }

/* ---- Provider CTA ---- */
.provider-cta { background: var(--c-secondary); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.provider-cta-inner { max-width: 680px; margin: 0 auto; }
.provider-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.provider-cta p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; }

/* ---- Newsletter band ---- */
.news-band { background: var(--c-dark); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.news-band-inner { max-width: 620px; margin: 0 auto; }
.news-title { color: #fff; font-size: 1.9rem; margin-bottom: .6rem; }
.news-sub { color: rgba(255,255,255,.75); margin-bottom: 1.6rem; }
.news-cta { display: inline-block; background: var(--c-primary); color: #fff; padding: .8rem 1.8rem; border-radius: 999px; font-weight: 600; }
.news-cta:hover { background: var(--c-primary-hover); }
.news-fineprint { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 1rem; }

/* ---- Footer ---- */
footer { background: var(--c-ink); color: rgba(255,255,255,.8); }
.footer-main { max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.f-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.f-tagline { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 36ch; }
.f-col-title { font-weight: 700; color: #fff; margin-bottom: .8rem; font-size: .95rem; }
.f-links { list-style: none; }
.f-links li { margin: .4rem 0; }
.f-links a { font-size: .88rem; color: rgba(255,255,255,.65); }
.f-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 1.5rem; text-align: center; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---- 404 ---- */
.notfound { max-width: 600px; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }
.nf-num { font-family: var(--font-display); font-size: 5rem; font-weight: 900; color: var(--c-primary); }
.nf-title { font-size: 2rem; margin: .5rem 0; }
.nf-text { color: #666; margin-bottom: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .detail-grid, .list-layout, .footer-main { grid-template-columns: 1fr; }
  .footer-main { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation: none !important; transition: none !important; } }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }

/* ============================================================
   New-feature styles (#1 scale, #2 use-cases, #6 city, #7 tiers/claim)
   ============================================================ */

/* #1 hero scale claim */
.hero-scale { font-size: .95rem; color: rgba(255,255,255,.7); margin: -0.5rem 0 1.6rem; font-weight: 500; letter-spacing: .01em; }

/* tier badges on cards/detail */
.l-badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.l-badges .badge { position: static; }
.badge-featured { background: var(--c-primary); color: #fff; }
.badge-verified { background: #1a7f4b; color: #fff; }
.l-card-featured { border: 2px solid var(--c-primary); box-shadow: 0 8px 30px -12px color-mix(in srgb, var(--c-primary) 50%, transparent); }
.page-title .badge { font-size: .55em; vertical-align: middle; margin-left: .5rem; }

/* #2 use-case grid */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.uc-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 1.4rem; transition: transform .15s, border-color .15s; }
a.uc-card:hover { transform: translateY(-3px); border-color: var(--c-secondary); }
.uc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.uc-blurb { font-size: .9rem; color: #666; line-height: 1.5; }
.uc-count { font-size: .82rem; font-weight: 600; color: var(--c-secondary); margin-top: .8rem; }

/* #6 city chips on state pages */
.city-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.city-chip { background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 500; }
.city-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* #7 claim CTAs */
.claim-box { background: color-mix(in srgb, var(--c-secondary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c-secondary) 25%, transparent); border-radius: 16px; padding: 1.3rem; margin-top: 1.2rem; }
.claim-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; }
.claim-text { font-size: .88rem; color: #555; margin-bottom: .9rem; }
.claim-cta { display: inline-block; background: var(--c-secondary); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.claim-cta:hover { filter: brightness(1.1); }
.claim-banner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; background: color-mix(in srgb, var(--c-secondary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c-secondary) 22%, transparent); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: 2rem; flex-wrap: wrap; }
.claim-banner strong { font-family: var(--font-display); }

/* #7 pricing tiers */
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.4rem; align-items: start; }
.tier-card { background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 18px; padding: 2rem 1.6rem; position: relative; }
.tier-card-featured { border: 2px solid var(--c-primary); box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--c-primary) 45%, transparent); }
.tier-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; }
.tier-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.tier-price { font-size: 2rem; font-weight: 700; font-family: var(--font-display); color: var(--c-primary); margin: .3rem 0 1.2rem; }
.tier-features { list-style: none; margin-bottom: 1.6rem; }
.tier-features li { font-size: .9rem; padding: .45rem 0 .45rem 1.6rem; position: relative; border-bottom: 1px solid rgba(0,0,0,.05); }
.tier-features li::before { content: "\2713"; position: absolute; left: 0; color: #1a7f4b; font-weight: 700; }
.tier-cta { display: block; text-align: center; background: var(--c-primary); color: #fff; padding: .8rem; border-radius: 999px; font-weight: 600; }
.tier-cta:hover { background: var(--c-primary-hover); }
.tier-cta-ghost { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-ink); }
.tier-cta-ghost:hover { background: var(--c-ink); color: #fff; }
.pricing-note { text-align: center; margin-top: 2rem; color: #666; font-size: .92rem; }
.pricing-note a { color: var(--c-primary); font-weight: 600; }
.btn-ghost-cta { background: transparent !important; border: 1.5px solid #fff; color: #fff !important; margin-left: .6rem; }

/* Hero background photo (set config.heroImage) */
.hero-photo { background-size: cover; background-position: center; }
.hero-photo .hero-desc, .hero-photo .hero-scale { color: rgba(255,255,255,0.92); }

/* Service cards with photo thumbnails */
.cat-card-photo { padding: 0; overflow: hidden; }
.cat-card-photo .cat-thumb { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.cat-card-photo .cat-body { padding: 1.1rem 1.3rem 1.3rem; }
