:root {
  --bg: #f7f8f3;
  --ink: #172018;
  --muted: #5c6a5e;
  --card: #ffffff;
  --line: #dde5d8;
  --accent: #3f7f46;
  --accent-dark: #28572e;
  --accent-soft: #eaf3e8;
  --warning: #b86914;
  --danger: #b83030;
  --shadow: 0 24px 70px rgba(23, 32, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(63, 127, 70, 0.18), transparent 30rem),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.bug-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 650;
}

.nav-cta {
  color: white;
  background: var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
}

.hero {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 26px 20px 64px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.7;
  margin: 28px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 850;
  font-size: 0.78rem;
  margin: 0 0 12px;
}

.hero-actions, .trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-row li {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}
.trust-row li strong {
  color: var(--accent-dark);
  font-weight: 850;
  margin-right: 4px;
}

.nav-call {
  font-weight: 850;
  color: var(--ink);
}

.button {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: white; box-shadow: 0 12px 30px rgba(63,127,70,0.28); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.button.full { width: 100%; margin-top: 4px; }

.lead-card, .admin-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(221,229,216,0.9);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(14px);
}

.card-header h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

form { display: grid; gap: 14px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }

label {
  display: grid;
  gap: 7px;
  font-weight: 750;
  color: #253227;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 13px;
  font: inherit;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(63,127,70,0.12);
}

textarea { resize: vertical; }
.hidden-field { display: none; }
.consent {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}
.consent input { width: auto; margin-top: 4px; }

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 750;
}
.form-message.success { color: var(--accent-dark); }
.form-message.error { color: var(--danger); }

.field-error {
  display: block;
  min-height: 16px;
  color: var(--danger);
  font-weight: 650;
  font-size: 0.82rem;
}

.step.hidden { display: none; }
.step { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }

.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
.form-actions .button.full { margin-top: 0; }

.tag-warn, .tag-info {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-warn { background: #fff2c6; color: #704b00; }
.tag-info { background: #e7eefc; color: #1d427d; }
.hidden { display: none !important; }
.badge.suspicious { background: #fde2e2; color: #7c1717; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}
.section h2 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cards article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(23,32,24,0.06);
}
.cards h3 { margin: 0 0 10px; }
.cards p { color: var(--muted); line-height: 1.6; margin: 0; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}
.testimonials article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(23,32,24,0.06);
}
.testimonials .stars {
  color: #d49a00;
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.testimonials blockquote {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.55;
}
.testimonials cite {
  font-style: normal;
  color: var(--muted);
  font-weight: 650;
}
.reviews-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

.service-area code {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.92em;
}
.zip-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.zip-grid li {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-weight: 750;
  color: #334536;
}

#faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
#faq summary {
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 900;
}
#faq details[open] summary::after { content: '−'; }
#faq p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 16px;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 14px 32px rgba(63,127,70,0.32);
  z-index: 30;
}

footer {
  border-top: 1px solid var(--line);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.admin-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}
.admin-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.chart-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}
.chart {
  width: 100%;
  height: 140px;
}
.chart svg { width: 100%; height: 100%; }

.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.variant-card {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.variant-card h4 { margin: 0 0 8px; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); }
.variant-row { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 6px; }
.variant-row strong { font-size: 1.15rem; color: var(--ink); }
.variant-bands { margin: 0; color: var(--muted); font-size: 0.88rem; }

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.source-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(23,32,24,0.05);
}
.source-card h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  word-break: break-word;
}
@media (max-width: 920px) {
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .source-grid { grid-template-columns: 1fr; }
}
.stat {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 16px;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
th { background: #eff5ed; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 850;
  font-size: 0.78rem;
  background: #edf0ee;
}
.badge.hot { background: #fee2d2; color: #7c3417; }
.badge.warm { background: #fff2c6; color: #704b00; }
.badge.new { background: #e7eefc; color: #1d427d; }

.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
  line-height: 1;
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }

.button.small { padding: 6px 10px; font-size: 0.85rem; border-radius: 10px; }
.user-mgmt {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.user-mgmt summary { cursor: pointer; font-weight: 850; }
.user-mgmt summary::-webkit-details-marker { display: none; }
.user-mgmt[open] summary { margin-bottom: 12px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .zip-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  nav a:not(.nav-cta):not(.nav-call) { display: none; }
  .grid.two, .cards, .stats { grid-template-columns: repeat(2, 1fr); }
  .lead-card, .admin-card { padding: 20px; border-radius: 24px; }
  footer { flex-direction: column; }
  .form-actions { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  main { padding-bottom: 96px; }
}
