/* Pest Profit Labs — pestprofitlabs.com
   Tokens follow the Pest Profit Labs demo's DESIGN.md: emerald for money, gold as an
   accent only, warm cream cards on a white surround. */

:root {
  --paper: #faf6ee;
  --white: #ffffff;
  --ink: #1c1a16;
  --ink-muted: #6e6a5f;
  --ink-fade: #a8a499;
  --emerald: #0d5d44;
  --emerald-dark: #0a3d2c;
  --emerald-mid: #1e7a5a;
  --emerald-soft: #6e9d80;
  --emerald-mist: #cfe0d4;
  --emerald-ghost: #e6efe1;
  --gold: #b58a3a;
  --rule: #d9d2bd;
  --rule-strong: #b5ad94;

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; font-optical-sizing: auto; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 21px; line-height: 1.3; }
.lede { color: var(--ink-muted); font-size: 18px; max-width: 620px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none;
  padding: 15px 24px; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-ghost { color: var(--ink); border: 1px solid var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--emerald-dark); }
.btn-light:hover { background: var(--white); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--ink-muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; }
.hero-side { padding-bottom: 14px; border-left: 1px solid var(--rule); padding-left: 36px; }
.division-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--emerald-dark);
  background: var(--emerald-ghost); border-radius: 999px;
  padding: 7px 14px; text-decoration: none; margin-bottom: 28px;
}
.division-pill:hover { background: var(--emerald-mist); }
.division-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.hero h1 {
  font-size: clamp(42px, 6vw, 68px); line-height: 1.03; letter-spacing: -0.025em;
  margin-bottom: 0;
}
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.band { background: var(--paper); }

/* Comparison widget */
.widget {
  background: var(--white); border: 1px solid var(--rule); border-radius: 20px;
  padding: 32px;
}
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.toggle-row { display: inline-flex; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; }
.toggle-btn {
  font: 600 14px/1 var(--sans); color: var(--ink-muted);
  background: transparent; border: 0; border-radius: 999px;
  padding: 11px 18px; cursor: pointer; transition: background .15s, color .15s;
}
.toggle-btn.active { background: var(--emerald); color: var(--white); }
.rev-control { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-muted); }
.rev-control input { accent-color: var(--emerald); width: 180px; }
.rev-val { font-family: var(--mono); font-size: 14px; color: var(--ink); min-width: 52px; font-variant-numeric: tabular-nums; }
.chart-box svg { width: 100%; height: auto; overflow: visible; }
.chart-box rect { transition: y .55s cubic-bezier(.3,.7,.2,1), height .55s cubic-bezier(.3,.7,.2,1); cursor: pointer; }
.grid-line { stroke: var(--rule); stroke-width: 1; }
.tick-label { font: 11px var(--mono); fill: var(--ink-fade); }
.band-label { font: 600 12px var(--sans); fill: var(--ink-muted); }
.line-label { font: 600 12px var(--sans); fill: var(--ink); }
.annot { font: italic 17px var(--display); fill: var(--emerald); transition: opacity .3s; }
.callout {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin-top: 24px; padding: 22px 24px; background: var(--emerald-ghost); border-radius: var(--radius);
}
.callout .big {
  font-family: var(--display); font-size: 36px; line-height: 1; color: var(--emerald);
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.callout .expl { font-size: 15px; color: var(--ink); flex: 1; min-width: 240px; }
.footnote { font-size: 12px; color: var(--ink-fade); margin-top: 14px; }
.tooltip {
  position: fixed; z-index: 30; pointer-events: none;
  background: var(--ink); color: var(--paper);
  font-size: 13px; line-height: 1.45; padding: 10px 13px; border-radius: 10px; max-width: 260px;
  opacity: 0; transition: opacity .12s;
}
.tooltip.show { opacity: 1; }
.tooltip .tt-money { font-weight: 700; color: var(--emerald-mist); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.step-num { font-family: var(--display); font-style: italic; font-size: 44px; line-height: 1; color: var(--gold); margin-bottom: 20px; }
.step h3 { margin-bottom: 6px; }
.step .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--emerald-mid); margin-bottom: 14px; }
.step p { color: var(--ink-muted); font-size: 15px; }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.outcome { background: var(--white); padding: 28px; }
.outcome .arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--emerald-ghost); color: var(--emerald); display: grid; place-items: center; margin-bottom: 18px; }
.outcome .arrow svg { width: 18px; height: 18px; }
.outcome h3 { font-size: 19px; margin-bottom: 8px; }
.outcome p { color: var(--ink-muted); font-size: 14px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.quote { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { font-family: var(--display); font-size: 21px; line-height: 1.4; }
.quote.feature { grid-row: span 2; background: var(--emerald-dark); border-color: var(--emerald-dark); color: var(--paper); }
.quote.feature blockquote { font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; }
.quote.feature .who { color: var(--emerald-mist); }
.quote.feature .figure { color: var(--white); font-style: normal; }
.who { font-size: 14px; color: var(--ink-muted); }
.who strong { display: block; color: inherit; font-weight: 600; }
.quote.feature .who strong { color: var(--white); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-size: 20px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted);
  transform: translateY(-75%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--ink-muted); padding: 0 40px 24px 0; }

/* Division */
.division {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  border: 1px solid var(--rule); border-radius: 20px; padding: 36px; background: var(--white);
}
.division-mark {
  width: 64px; height: 64px; border-radius: 16px; background: var(--paper); border: 1px solid var(--rule);
  display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: var(--emerald-dark);
}
.division h3 { margin-bottom: 6px; }
.division p { color: var(--ink-muted); font-size: 15px; max-width: 560px; }

/* CTA */
.cta { background: var(--emerald-dark); color: var(--paper); border-radius: 24px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(110, 157, 128, 0.35), transparent 70%),
              radial-gradient(500px 260px at 0% 100%, rgba(181, 138, 58, 0.18), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .eyebrow { color: var(--emerald-mist); margin-bottom: 18px; }
.cta h2 { color: var(--white); max-width: 720px; margin: 0 auto 18px; }
.cta p { color: rgba(250, 246, 238, 0.75); max-width: 560px; margin: 0 auto 32px; }
.cta .phone { display: block; margin-top: 20px; font-size: 14px; color: rgba(250, 246, 238, 0.7); }
.cta .phone a { color: var(--white); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-fade); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-side { border-left: 0; padding: 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .outcomes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .quote.feature { grid-row: auto; }
  .nav a.nav-link { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 68px 0; }
  .brand-sub { display: none; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 19px; }
  .outcomes { grid-template-columns: 1fr; }
  .widget { padding: 22px; }
  .rev-control { width: 100%; }
  .rev-control label { white-space: nowrap; }
  .rev-control input { flex: 1; width: auto; min-width: 0; }
  .toggle-row { width: 100%; }
  .toggle-btn { flex: 1; padding: 11px 10px; }
  .division { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .cta { padding: 52px 24px; border-radius: 20px; }
  .quote.feature blockquote { font-size: 24px; }
}
