:root {
  --ink: #18211d;
  --muted: #647067;
  --line: #d8ded7;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --green: #27745f;
  --green-dark: #1d5949;
  --amber: #b66a18;
  --rust: #923f2d;
  --blue: #356d8a;
  --shadow: 0 16px 45px rgba(23, 33, 28, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--green-dark); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: white; padding: .5rem .75rem; }
.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: conic-gradient(from 180deg, var(--green), var(--blue), var(--amber), var(--green)); display: inline-block; }
.nav, .site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a, .site-footer a { color: var(--ink); text-decoration: none; font-weight: 650; }
.sitewide-promo {
  width: min(920px, calc(100% - 2rem));
  margin: .9rem auto 0;
  background: #fffdf8;
  border: 1px solid rgba(146, 63, 45, .42);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 28, .06);
}
.sitewide-promo__inner {
  padding: .62rem .75rem;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
}
.sitewide-promo__media {
  display: block;
  width: 108px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(39, 116, 95, .2);
  border-radius: 7px;
  background: #f4f1ea;
  text-decoration: none;
}
.sitewide-promo__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}
.sitewide-promo__copy { display: grid; gap: .16rem; min-width: 0; }
.sitewide-promo__label {
  width: max-content;
  padding: .08rem .36rem;
  border: 1px solid rgba(146, 63, 45, .28);
  border-radius: 5px;
  background: rgba(146, 63, 45, .06);
  color: var(--rust);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sitewide-promo p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: baseline;
  color: var(--ink);
}
.sitewide-promo strong { color: var(--rust); }
.sitewide-promo small { color: #6e5932; font-size: .78rem; }
.sitewide-promo__links {
  display: grid;
  gap: .45rem;
  min-width: 190px;
}
.sitewide-promo__links .button {
  width: 100%;
  white-space: normal;
  text-align: center;
  box-shadow: none;
}
main { min-height: 70vh; }
.tool-hero, .city-hero, .page-title, .section-grid, .split-band, .content-grid, .metrics-grid, .stats-product-band, .trend-panel, .recommendation-band, .text-block, .table-shell, .checklist, .answer-card, .setup-chooser {
  width: min(1120px, 90vw);
  margin: 0 auto;
}
.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 3rem;
}
.tool-hero__copy, .city-hero > div:first-child { max-width: 720px; }
.eyebrow { color: var(--rust); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 800; margin: 0 0 .65rem; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; margin: 0; letter-spacing: 0; }
h2 { font-size: 1.45rem; line-height: 1.15; margin: 0 0 .9rem; letter-spacing: 0; }
.lede { font-size: 1.18rem; color: #405048; max-width: 65ch; }
.search-panel, .rate-panel, .metric, .analysis-block, .source-box, .affiliate-box, .table-shell, .text-block.warning {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.search-panel { padding: 1.15rem; border-radius: 8px; }
.search-panel label { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: .9rem; }
input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .65rem .8rem;
  font: inherit;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: .65rem .95rem;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: #eef2ed; color: var(--ink); border: 1px solid var(--line); }
.button.small { min-height: 36px; padding: .45rem .7rem; }
.search-results { margin-top: .8rem; display: grid; gap: .5rem; }
.search-results a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .65rem; background: #f4f7f2; border-radius: 7px; color: var(--ink); text-decoration: none; }
.section-grid { padding: 2.5rem 0; display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.section-grid.compact { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.city-grid, .state-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.city-card, .state-card, .guide-card { display: grid; gap: .35rem; min-height: 136px; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.city-card strong, .state-card strong, .guide-card strong { font-size: 1.25rem; }
.city-card__meta, .metric span, .rate-panel span, small { color: var(--muted); font-size: .86rem; }
.guide-card { background: #fbfdf9; border-color: rgba(53, 109, 138, .28); }
.guide-card.is-current { outline: 2px solid rgba(39, 116, 95, .28); }
.setup-chooser {
  padding: 1.35rem 0 2.35rem;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.setup-chooser--index { padding-top: 0; border-top: 0; }
.ranking-setup-band { margin-top: -0.35rem; }
.setup-chooser__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.setup-chooser__intro p { color: #405048; }
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.setup-card {
  display: grid;
  gap: .38rem;
  min-height: 154px;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.setup-card strong { font-size: 1.1rem; line-height: 1.2; }
.setup-card span:last-child { color: #405048; }
.setup-card.is-featured {
  border-color: rgba(39, 116, 95, .5);
  background: #f8fbff;
  box-shadow: 0 10px 26px rgba(23, 33, 28, .07);
}
.setup-chooser__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.intent-checks {
  margin: .85rem 0 .9rem;
  padding: 0;
  display: grid;
  gap: .42rem;
  list-style: none;
  color: #405048;
}
.intent-checks li {
  position: relative;
  padding-left: 1rem;
}
.intent-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: .38rem;
  height: .38rem;
  border-radius: 99px;
  background: var(--green);
}
.quick-picks {
  width: min(1120px, 90vw);
  margin: 0 auto 2.4rem;
  padding: 1.2rem;
  background: #fffdf8;
  border: 1px solid rgba(39, 116, 95, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.quick-picks__intro {
  max-width: 760px;
  margin-bottom: 1rem;
}
.quick-picks__intro p:last-child { color: #405048; }
.quick-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.quick-product-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: .95rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.quick-product-card h3 {
  margin: .18rem 0 .25rem;
  font-size: 1.05rem;
  line-height: 1.2;
}
.quick-product-card p {
  margin: 0;
  color: #405048;
}
.quick-product-card .button {
  grid-column: 1 / -1;
}
.quick-product-card__media {
  display: block;
  width: 118px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f1ea;
  border: 1px solid rgba(39, 116, 95, .2);
  border-radius: 8px;
}
.quick-product-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.quick-picks__disclosure {
  margin-top: .9rem;
}
.answer-card {
  margin-bottom: 2rem;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(53, 109, 138, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.answer-card h2 { margin-bottom: .45rem; }
.answer-card p:last-child { margin-bottom: 0; }
.comparison-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.comparison-list > div, .qa-card {
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.comparison-list h3, .qa-card h3 { margin: 0 0 .7rem; font-size: 1rem; }
.context-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.context-link:first-of-type { border-top: 0; padding-top: 0; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.qa-card p { margin-bottom: 0; color: #405048; }
.split-band { margin-top: 1rem; margin-bottom: 3.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.rules-list, .checklist { display: grid; gap: .75rem; }
.rules-list div, .checklist div { display: flex; align-items: center; gap: .65rem; padding: .8rem; background: #f4f7f2; border-radius: 8px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.city-hero { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: end; padding: 4rem 0 2rem; }
.rate-panel { border-radius: 8px; padding: 1.2rem; }
.rate-panel strong { display: block; font-size: 3rem; line-height: 1; color: var(--blue); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 2rem; }
.metric { border-radius: 8px; padding: 1rem; display: grid; gap: .3rem; min-height: 118px; }
.metric strong { font-size: 1.55rem; line-height: 1.05; }
.trend-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: #eef4f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.trend-panel h2 { margin-bottom: .5rem; }
.trend-status, .trend-chart {
  min-height: 128px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.trend-status {
  display: grid;
  align-content: center;
  gap: .35rem;
}
.trend-status strong, .trend-change {
  color: var(--blue);
  font-size: 1.8rem;
  line-height: 1.05;
}
.trend-status span { color: var(--muted); }
.trend-chart { display: grid; gap: .7rem; }
.trend-change { justify-self: end; }
.trend-bar { display: grid; grid-template-columns: 54px 1fr 72px; gap: .65rem; align-items: center; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 1rem; margin-bottom: 2rem; }
.analysis-block, .source-box, .affiliate-box { border-radius: 8px; padding: 1.2rem; }
.bar-chart { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: 145px 1fr 72px; gap: .75rem; align-items: center; }
.bar-track { height: 14px; background: #e8eee8; border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--amber)); }
.recommendation-band { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 1rem; padding: 1.25rem 0 4rem; }
.affiliate-box { border-color: #e3c28c; background: #fffaf0; box-shadow: none; }
.affiliate-box.standalone { width: min(760px, 90vw); margin: 1rem auto 4rem; }
.affiliate-product { display: grid; gap: 1rem; }
.affiliate-product h2 { margin-bottom: .35rem; }
.product-offer { border-color: rgba(39, 116, 95, .34); background: #fffdf8; }
.product-offer__top { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 1rem; align-items: center; }
.product-offer__media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(39, 116, 95, .22);
  border-radius: 8px;
  background: #f4f1ea;
  text-decoration: none;
}
.product-offer__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-meta { margin: 0; color: #405048; }
.product-points { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.product-drawback { margin: 0; padding: .7rem .8rem; background: #f4f7f2; border: 1px solid var(--line); border-radius: 8px; }
.disclosure-note { margin: 0; color: #5d4b29; font-size: .92rem; }
.affiliate-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.stats-product-band {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) minmax(240px, 290px);
  gap: 1rem;
  align-items: center;
  margin: -0.75rem auto 2rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(53, 109, 138, .34);
  background: linear-gradient(135deg, #f8fbff 0%, #fffdf8 100%);
  box-shadow: 0 14px 34px rgba(23, 33, 28, .08);
}
.stats-product-band__media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(53, 109, 138, .24);
  border-radius: 8px;
  background: #f4f7f2 url("/assets/video-doorbell-kit.webp") center / cover no-repeat;
  text-decoration: none;
}
.stats-product-band__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.stats-product-band__copy {
  display: grid;
  align-content: center;
  gap: .42rem;
  min-width: 0;
}
.stats-product-band h2 {
  margin: 0;
  font-size: 1.18rem;
}
.stats-product-band p { margin: 0; }
.stats-product-band__checks {
  margin: .18rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .28rem .75rem;
  color: #405048;
  font-size: .9rem;
}
.stats-product-band__checks li {
  position: relative;
  padding-left: .95rem;
}
.stats-product-band__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: .42rem;
  height: .42rem;
  border-radius: 99px;
  background: var(--green);
}
.stats-product-band__actions {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: .6rem;
  align-items: center;
}
.stats-product-band__actions .button {
  width: 100%;
  white-space: normal;
  text-align: center;
}
.checklist-link {
  display: grid;
  gap: .16rem;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eef2ed;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.checklist-link small {
  color: #58645c;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}
.buyer-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2.5rem;
}
.buyer-checklist div { align-items: flex-start; }
.buyer-checklist span { display: grid; gap: .14rem; }
.buyer-checklist strong { color: var(--ink); }
.page-title { padding: 4rem 0 1.5rem; }
.page-title p { max-width: 760px; }
.text-block { max-width: 820px; padding-bottom: 4rem; }
.text-block.warning { padding: 1.2rem; border-radius: 8px; margin-bottom: 4rem; }
.table-shell { border-radius: 8px; padding: 1rem; margin-bottom: 4rem; }
.table-note { margin-top: -.3rem; color: #405048; max-width: 780px; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ranking-table { min-width: 980px; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: .84rem; color: var(--muted); }
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.sort-button::after {
  content: "^v";
  color: #8b948d;
  font-size: .76rem;
}
.sort-button[aria-sort="ascending"]::after { content: "^"; color: var(--green-dark); }
.sort-button[aria-sort="descending"]::after { content: "v"; color: var(--green-dark); }
.signal-pill {
  display: inline-flex;
  min-width: 2.3rem;
  min-height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--green-dark);
  font-weight: 850;
}
.site-footer { border-top: 1px solid var(--line); padding: 2rem 5vw; display: flex; justify-content: space-between; gap: 2rem; background: #f3f5ef; }
.site-footer p { max-width: 620px; color: var(--muted); }
@media (max-width: 780px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .sitewide-promo__inner { grid-template-columns: 98px minmax(0, 1fr); gap: .62rem; padding: .72rem .78rem .85rem; }
  .sitewide-promo__media { width: 98px; }
  .sitewide-promo p { display: grid; gap: .12rem; }
  .sitewide-promo__links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tool-hero, .city-hero, .section-grid, .split-band, .content-grid, .trend-panel, .recommendation-band, .metrics-grid, .stats-product-band, .answer-card, .comparison-list, .qa-grid, .buyer-checklist, .setup-chooser__inner, .setup-grid, .quick-product-grid { grid-template-columns: 1fr; }
  .setup-chooser__buttons .button { width: 100%; }
  .quick-product-card { grid-template-columns: 92px minmax(0, 1fr); }
  .quick-product-card__media { width: 92px; }
  .stats-product-band { margin-top: -0.5rem; }
  .stats-product-band__media { width: min(100%, 220px); }
  .stats-product-band__checks { grid-template-columns: 1fr; }
  .stats-product-band__actions { width: 100%; }
  .tool-hero { padding-top: 2.5rem; }
  .city-grid, .state-grid, .guide-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: .35rem; }
  .trend-bar { grid-template-columns: 48px 1fr 64px; }
  .product-offer__top { grid-template-columns: 1fr; }
  .product-offer__media { max-width: 240px; }
}
