/* Poopetrator marketing site — homepage (direction 1b, "The loop") */

:root {
  --bg: #faf6f0;
  --fg: #2b2420;
  --primary: #46331f;
  --on-primary: #faf3ea;
  --secondary: #ede3d6;
  --surface: #fffdf9;
  --surface-2: #f1e9dd;
  --border: #e2d5c3;
  --muted: #7a6e60;
  --body: #4a3f36;
  --accent: #c4652f;
  --open: #a8432e;
  --resolved: #5f7a52;
  --map: #e9e3d4;
  --map-road: #f7f1e6;
  --map-bldg: #dcd0bd;
  --map-green: #d9dfc9;
  --dark: #2b2420;
  --dark-fg: #efe6d8;
  --dark-muted: #b3a28c;
  --dark-accent: #d97a44;
  --sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: var(--accent); }

h1, h2, p { margin: 0; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.ico {
  display: inline-block;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ico-paw { --icon: url(icons/paw-print.svg); }
.ico-pin { --icon: url(icons/map-pin.svg); }
.ico-truck { --icon: url(icons/truck.svg); }
.ico-check { --icon: url(icons/circle-check.svg); }

.eyebrow {
  font: 500 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { color: var(--on-primary); background: #5a4229; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; background: #b05827; }
.btn-ghost { border: 1px solid var(--border); color: var(--fg); font-weight: 500; }
.btn-ghost:hover { color: var(--fg); background: var(--surface); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-md { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-lg.btn-ghost { padding: 0 24px; }
.btn-xl { height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand { display: flex; flex: none; }
.brand img { display: block; height: 36px; width: auto; }
.cta-short { display: none; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}
.nav-pill a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
}
.nav-pill a:hover { background: var(--surface); color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .signin { font-size: 14px; font-weight: 500; text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(54px, 8.2vw, 104px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.hero-sub {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reassure { font-size: 14px; color: var(--muted); }
.reassure strong { color: var(--fg); font-weight: 600; }

/* ---------- The loop (3 steps) ---------- */

.loop {
  position: relative;
  padding-top: 64px;
  padding-bottom: 96px;
}
.loop-line {
  position: absolute;
  left: 180px;
  right: 180px;
  top: 340px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
}
.loop-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.step-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  text-align: center;
}
.step-num {
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 13px var(--mono);
}
.step-num.done { background: var(--resolved); }
.step-title { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.step-text { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Phone frame */
.phone {
  width: 250px;
  height: 500px;
  flex: none;
  border-radius: 40px;
  background: var(--dark);
  padding: 9px;
  box-shadow: 0 30px 60px -24px rgba(43, 36, 32, .5);
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Step 1: resident landing */
.resident-screen {
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  text-align: center;
}
.resident-tile {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.resident-tile .ico { width: 26px; height: 26px; }
.resident-head { display: flex; flex-direction: column; gap: 4px; }
.resident-head strong { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.resident-head span { font-size: 12px; color: var(--muted); }
.report-btn {
  width: 100%;
  height: 60px;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 10px 20px -8px rgba(70, 51, 31, .4);
}
.report-btn .ico { width: 16px; height: 16px; }
.resident-foot { font-size: 11px; color: var(--muted); }

/* Map drawing (shared) */
.map {
  position: relative;
  background: var(--map);
  overflow: hidden;
}
.map > span { position: absolute; display: block; }
.map .road-h { left: 0; right: 0; background: var(--map-road); }
.map .road-v { top: 0; bottom: 0; background: var(--map-road); }
.map .bldg { background: var(--map-bldg); border-radius: 4px; }
.map .green { background: var(--map-green); border-radius: 6px; }
.map .boundary { border: 2px dashed rgba(70, 51, 31, .45); border-radius: 8px; }
.map .pin {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.map .pin.open { background: var(--open); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.map .pin.resolved { background: var(--resolved); }
.map .pin.lg { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.map .halo {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(168, 67, 46, .2);
}

/* Step 2: manager map card */
.map-card {
  width: 340px;
  height: 500px;
  flex: none;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -24px rgba(43, 36, 32, .35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-card .map { height: 290px; flex: none; }
.map-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.report-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.badge {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.badge-open { background: rgba(168, 67, 46, .1); color: var(--open); }
.report-note { font-size: 13px; }
.assign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.assign-row > span:first-child { color: var(--muted); }
.assign-row .who { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.assign-row .ico { width: 12px; height: 12px; }
.card-actions { display: flex; gap: 8px; }
.card-actions span {
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.card-actions .primary { flex: 1; background: var(--primary); color: var(--on-primary); }
.card-actions .secondary { padding: 0 12px; background: var(--secondary); color: var(--primary); }

/* Step 3: vendor job page */
.vendor-screen {
  gap: 12px;
  padding: 30px 16px 18px;
  font-size: 11px;
}
.vendor-head { display: flex; align-items: center; gap: 10px; text-align: left; }
.vendor-tile {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vendor-tile .ico { width: 16px; height: 16px; }
.vendor-head div { display: flex; flex-direction: column; }
.vendor-head small { color: var(--muted); font-size: 10px; }
.vendor-head strong { font-weight: 700; font-size: 14px; }
.vendor-done {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  background: rgba(95, 122, 82, .15);
  color: var(--resolved);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
}
.vendor-done .ico { width: 16px; height: 16px; }
.vendor-screen .map { height: 120px; flex: none; border-radius: 10px; }
.vendor-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vendor-btns span {
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.vendor-btns .primary { background: var(--primary); color: var(--on-primary); }
.vendor-btns .outline { border: 1px solid var(--border); background: var(--surface); }
.vendor-note {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  text-align: left;
}
.vendor-note small { display: block; color: var(--muted); font-size: 10px; }
.photo-placeholder {
  flex: 1;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, var(--secondary) 0 6px, var(--border) 6px 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 10px var(--mono);
  color: var(--muted);
}

/* ---------- Before / after ---------- */

.compare-section { padding-bottom: 96px; }
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-col {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.compare-col.before { background: var(--surface-2); }
.compare-col.before .eyebrow { color: var(--muted); }
.compare-col.after { background: var(--surface); }
.compare-col.after .eyebrow { color: var(--resolved); }
.compare-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--body);
}
.compare-list li { display: flex; gap: 12px; }
.compare-list li::before { font-weight: 600; flex: none; }
.before .compare-list li::before { content: "—"; color: var(--open); }
.after .compare-list li::before { content: "✓"; color: var(--resolved); }

/* ---------- Audiences (dark band) ---------- */

.audiences {
  background: var(--dark);
  color: var(--dark-fg);
  padding: 96px 0;
}
.audiences .wrap { display: flex; flex-direction: column; gap: 48px; }
.audiences h2 {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 820px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border-radius: 24px;
  overflow: hidden;
}
.audience {
  background: var(--dark);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audience .eyebrow { color: var(--dark-accent); }
.audience-title { font-size: 20px; font-weight: 700; }
.audience-text { font-size: 14px; line-height: 1.55; color: var(--dark-muted); }

/* ---------- Board report ---------- */

.board {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px -30px rgba(43, 36, 32, .35);
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.report-head small { display: block; font-size: 12px; color: var(--muted); }
.report-head strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.print-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.stat-label { font-size: 11px; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; }
.stat-note { font-size: 10.5px; color: var(--muted); }
.report-subhead { font-weight: 600; font-size: 14px; }
.hotspots { display: flex; flex-direction: column; font-size: 12px; }
.hotspots > div {
  display: grid;
  grid-template-columns: 24px 1fr 60px 60px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.hotspots > div:last-child { border-bottom: 0; }
.hotspots .th { padding: 6px 0; color: var(--muted); }
.hotspots .loc { text-decoration: underline; }
.hotspots .num { text-align: right; }
.hotspots .num.strong { font-weight: 600; }
.sample-note { font: 10px var(--mono); color: var(--muted); }
.board-copy { display: flex; flex-direction: column; gap: 18px; }
.board-copy h2 {
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.board-copy p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.board-copy .btn { align-self: flex-start; }

/* ---------- Privacy + FAQ ---------- */

.privacy-faq {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.privacy {
  background: var(--secondary);
  border-radius: 28px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.privacy .eyebrow { color: var(--primary); }
.privacy h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.privacy p { font-size: 15px; line-height: 1.6; color: var(--body); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Final CTA + footer ---------- */

.final-cta {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.final-cta h2 {
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.final-cta p { font-size: 15px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap {
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Form pages (pilot, contact) ---------- */

.form-page {
  padding-top: 56px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.form-intro { display: flex; flex-direction: column; gap: 20px; }
.form-intro .eyebrow { color: var(--accent); }
.form-intro h1 {
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.form-sub { font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.info-box {
  margin-top: 12px;
  background: var(--secondary);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-box-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.info-box .compare-list li::before { content: "✓"; color: var(--resolved); }
.info-box strong { color: var(--fg); font-weight: 600; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px -30px rgba(43, 36, 32, .35);
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field-hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px var(--sans);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.form-card .btn { border: 0; cursor: pointer; font-family: var(--sans); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

.form-faq { padding-bottom: 96px; max-width: 880px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .loop-line { display: none; }
  .loop-steps { grid-template-columns: 1fr; gap: 64px; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; gap: 48px; }
  .board-copy { order: -1; }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .nav-pill { display: none; }
  .compare { grid-template-columns: 1fr; }
  .privacy-faq { grid-template-columns: 1fr; gap: 40px; }
  .form-page { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .header-actions .signin { display: none; }
  .brand img { height: 30px; }
  .hero { padding-top: 48px; }
  .hero-sub { font-size: 18px; }
  .loop { padding-top: 56px; padding-bottom: 72px; }
  .compare-section, .privacy-faq { padding-bottom: 72px; }
  .compare-col, .privacy { padding: 28px; }
  .compare-title { font-size: 26px; }
  .audiences { padding: 72px 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .board { padding-top: 72px; padding-bottom: 72px; }
  .report-card { padding: 20px; }
  .report-head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .form-page { padding-top: 32px; }
  .info-box, .form-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .form-faq { padding-bottom: 72px; }
}

@media (max-width: 400px) {
  .site-header .btn-sm { padding: 0 14px; font-size: 13px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* Lead forms (forms.js) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 14px; color: var(--open); text-align: center; }
.form-done { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 24px 8px; }
.form-done h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.form-done p { color: var(--muted); line-height: 1.55; }
.field-error { font-size: 13px; font-weight: 400; color: var(--open); }
.field [aria-invalid="true"] { border-color: var(--open); }
