/* ============================================================
   Pillar Pest Co — quote lander
   Brand tokens matched exactly to pillarpestco.com live CSS
   ============================================================ */

:root {
  --navy-900: #0B2545;
  --navy-800: #13315C;
  --navy-700: #1B3A6C;
  --blue-500: #2563EB;
  --orange-500: #F58220;
  --orange-600: #E37416;
  --orange-400: #FFB347;
  --orange-tint: #FFF5EB;
  --green-600: #0F7A4F;
  --green-500: #10B981;
  --red-600: #B42318;
  --white: #fff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --section-pad: clamp(60px, 8vw, 110px);
  --container-max: 1240px;
  --shadow-sm: 0 1px 2px #0b25450f;
  --shadow-md: 0 4px 16px #0b254514;
  --shadow-lg: 0 20px 50px #0b25451f;
  --shadow-orange: 0 8px 24px #f582204d;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, legend { font-family: var(--font-display); color: var(--navy-900); margin: 0; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
button, input { font: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 15px 30px; font-size: 16px; line-height: 1.2;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange-500); color: var(--white); box-shadow: var(--shadow-orange); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--gray-500); border: 1.5px solid var(--gray-200); }
.btn--ghost:hover { border-color: var(--gray-400); color: var(--gray-700); }
.btn--sm { padding: 11px 22px; font-size: 14.5px; }
.btn--lg { padding: 18px 40px; font-size: 18px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange-400); outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--orange-500); color: var(--white); text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px;
  white-space: nowrap; overflow: hidden;
}
/* Hide the suffix before it can ever wrap to a second line (large phones included) */
@media (max-width: 560px) {
  .top-bar__suffix { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--navy-900); }
.brand__tagline { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-500); }
.site-header__right { display: flex; align-items: center; gap: 14px; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-600); border: 1.5px solid var(--orange-500);
  border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.pill-badge__icon { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 82% 4%, #1b3a6c99, transparent 65%),
    radial-gradient(560px 400px at 4% 96%, #13315c80, transparent 60%),
    radial-gradient(#ffffff0d 1.2px, transparent 1.2px);
  background-size: auto, auto, 26px 26px;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px);
}
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-400);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--orange-600); }
.hero__title {
  color: var(--white); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.015em;
}
.hero__title em { font-style: normal; color: var(--orange-500); }
.hero__subhead { color: #ffffffbf; font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; max-width: 52ch; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.hero__checks li {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: 15px;
}
.hero__checks svg { width: 19px; height: 19px; flex: none; }
.hero__visual { margin: 34px 0 0; max-width: 560px; }
.hero__visual img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero__visual-caption {
  display: flex; align-items: center; gap: 9px; margin-top: 14px;
  color: #ffffffd9; font-size: 15px;
}
.hero__visual-caption svg { width: 18px; height: 18px; flex: none; }
.hero__visual-caption strong { color: var(--orange-400); }

/* ---------- Form card ---------- */
.form-shell { scroll-margin-top: 96px; }
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px 26px 28px;
}
.form-progress__bar { height: 7px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.form-progress__fill { height: 100%; background: var(--orange-500); border-radius: 999px; transition: width .35s var(--ease); }
.form-progress__text {
  display: flex; justify-content: space-between; margin-top: 9px;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--gray-500);
}
.form-step { margin-top: 18px; }
.form-step__title { font-size: 21px; font-weight: 700; padding: 0; }
.form-step__hint { color: var(--gray-500); font-size: 14.5px; margin-top: 6px; }
.form-step.is-active { animation: step-in .3s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.service-option { position: relative; display: block; cursor: pointer; }
.service-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.service-option span {
  display: flex; align-items: center; min-height: 56px; padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  font-weight: 600; font-size: 14.5px; color: var(--navy-900); line-height: 1.3;
  background: var(--gray-50); transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.service-option span::before {
  content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--gray-400); background: var(--white);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.service-option:hover span { border-color: var(--orange-400); }
.service-option input:checked + span {
  border-color: var(--orange-500); background: var(--orange-tint); box-shadow: 0 0 0 1px var(--orange-500);
}
.service-option input:checked + span::before {
  border-color: var(--orange-500); box-shadow: inset 0 0 0 3.5px var(--white); background: var(--orange-500);
}
.service-option input:focus-visible + span { outline: 3px solid var(--orange-400); outline-offset: 2px; }

.service-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--orange-tint); border: 1.5px solid var(--orange-500);
  border-radius: var(--radius-md); padding: 10px 14px; margin-top: 16px;
}
.service-chip__label { font-weight: 700; font-size: 14.5px; color: var(--navy-900); }
.service-chip__change {
  background: none; border: 0; color: var(--orange-600); font-weight: 700;
  font-size: 13.5px; cursor: pointer; text-decoration: underline; padding: 2px;
}

.field { margin-top: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 13.5px; color: var(--navy-900); margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); font-size: 16px; color: var(--gray-900);
  background: var(--white); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder { color: var(--gray-400); }
.field input:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px #f5822033; }
.field input.is-invalid { border-color: var(--red-600); box-shadow: 0 0 0 3px #b4231822; }
.field input.is-valid { border-color: var(--green-500); }
.field-error { color: var(--red-600); font-size: 13.5px; font-weight: 600; margin-top: 7px; }
.field-note { font-size: 13.5px; font-weight: 700; margin-top: 7px; }
.field-note--ok { color: var(--green-600); }

.consent { margin-top: 18px; }
.consent__label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.55; color: var(--gray-500); }
.consent__label input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--orange-500); }
.consent__label a { color: var(--navy-800); font-weight: 600; }

.form-actions { margin-top: 20px; }
.form-actions--split { display: flex; gap: 10px; }
.form-actions--split .btn--ghost { flex: 0 0 auto; }
.form-actions--split .btn--primary { flex: 1; }
.form-reassure { text-align: center; font-size: 12.5px; color: var(--gray-400); margin-top: 12px; }

.form-success { text-align: center; padding: 26px 6px 14px; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.form-success h2 { font-size: 24px; }
.form-success p { margin-top: 10px; color: var(--gray-500); }
.form-success__note strong { color: var(--orange-600); }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid #ffffff70; border-top-color: var(--white);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--gray { background: var(--gray-50); }
.section--tint { background: var(--orange-tint); }
.section--navy { background: var(--navy-900); }
.section__title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; max-width: 24ch; }
.section__title--light { color: var(--white); }
.section__lede { color: var(--gray-500); font-size: 17px; margin-top: 14px; max-width: 62ch; }
.section__lede--light { color: #ffffffa6; }

/* ---------- Stats band ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 40px; padding-bottom: 40px;
}
.stats__grid article { text-align: left; }
.stats__grid strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.2vw, 27px); color: var(--orange-500); line-height: 1.2;
}
.stats__grid span { color: var(--gray-500); font-size: 14.5px; }

/* ---------- How it works ---------- */
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.how-card {
  position: relative; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm);
}
.how-card__num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-display); font-weight: 800; font-size: 42px;
  color: var(--gray-100); line-height: 1;
}
.how-card__icon { width: 48px; height: 48px; margin-bottom: 18px; }
.how-card h3 { font-size: 18.5px; font-weight: 700; }
.how-card p { color: var(--gray-500); font-size: 15px; margin-top: 9px; }

/* ---------- Coverage ---------- */
.coverage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.pest-card {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange-400); }
.pest-card svg { width: 44px; height: 44px; margin-bottom: 16px; }
.pest-card h3 { font-size: 17.5px; font-weight: 700; }
.pest-card p { color: var(--gray-500); font-size: 14.5px; margin-top: 7px; }

/* ---------- Offer ---------- */
.offer__inner {
  display: flex; align-items: center; gap: 26px;
  background: var(--white); border: 1.5px solid var(--orange-400);
  border-radius: var(--radius-xl); padding: 30px 34px; box-shadow: var(--shadow-md);
}
.offer__badge { flex: none; width: 58px; height: 58px; }
.offer__copy { flex: 1; }
.offer__copy h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--orange-600); }
.offer__copy p { color: var(--gray-500); margin-top: 5px; }

/* ---------- Areas ---------- */
.areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.areas__grid li {
  background: var(--navy-800); border: 1px solid var(--navy-700);
  border-radius: var(--radius-md); padding: 18px 20px;
}
.areas__grid strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--white); }
.areas__grid span { color: #ffffff80; font-size: 13.5px; }

/* ---------- Reviews ---------- */
.reviews__score { color: var(--orange-500); }
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.review-card {
  margin: 0; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.review-card__stars { color: var(--orange-400); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { color: var(--gray-700); font-size: 14.5px; flex: 1; }
.review-card footer { margin-top: 16px; display: flex; flex-direction: column; }
.review-card cite { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--navy-900); }
.review-card footer span { color: var(--gray-400); font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__item:first-of-type { margin-top: 34px; border-top: 1px solid var(--gray-200); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer; padding: 19px 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--navy-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-tint); color: var(--orange-600);
  font-weight: 700; font-size: 17px; transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq__item p { color: var(--gray-500); padding: 0 40px 20px 2px; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--navy-900); padding: var(--section-pad) 0; }
.final-cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final-cta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; max-width: 22ch; line-height: 1.15; }
.final-cta__inner > p { color: #ffffffa6; font-size: 17px; }
.final-cta .btn { margin-top: 8px; }
.final-cta__note {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffffff80; font-size: 14.5px; margin-top: 4px;
}
.final-cta__note svg { width: 17px; height: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); border-top: 1px solid var(--navy-700);
  padding: 44px 0 36px; text-align: center;
}
.site-footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--white);
}
.site-footer__disclaimer { color: #ffffff80; font-size: 13px; max-width: 640px; margin: 18px auto 0; }
.site-footer__links { display: flex; justify-content: center; gap: 26px; margin-top: 20px; }
.site-footer__links a { color: #ffffffbf; font-size: 14px; font-weight: 600; text-decoration: none; }
.site-footer__links a:hover { color: var(--white); text-decoration: underline; }
.site-footer__copyright { color: #ffffff47; font-size: 12.5px; margin-top: 18px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--navy-900); border-top: 1px solid var(--navy-700);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; }
.sticky-cta__text { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .form-step.is-active { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .form-shell { order: 2; max-width: 560px; }
  .hero__visual { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .how__grid, .coverage__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header__right .pill-badge { display: none; }
  .site-header .btn--sm { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .site-header__row { gap: 10px; }
  .brand { gap: 9px; }
  .brand__name { font-size: 16px; white-space: nowrap; }
  .brand__tagline { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .top-bar { font-size: 11px; }
  .hero__grid { padding-top: 36px; padding-bottom: 44px; }
  .hero__title { font-size: clamp(30px, 8.4vw, 38px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-option span { min-height: 50px; }
  .field-row { grid-template-columns: 1fr; }
  .how__grid, .coverage__grid, .reviews__grid, .areas__grid { grid-template-columns: 1fr; }
  .offer__inner { flex-direction: column; text-align: center; padding: 28px 22px; }
  .form-card { padding: 20px 18px 22px; }
  .stats__grid { gap: 24px 16px; }
  body { padding-bottom: 68px; } /* room for sticky CTA */
}
