:root {
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --gold: #ab8900;
  --green: #2f8a3a;
  --green-dark: #22692b;
  --ink: #171717;
  --ink-2: #1f2328;
  --text: #3d434a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f6f8f4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .10);
  --head: "Gabarito", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #d6d9dd; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}
.section--dark .eyebrow { color: var(--yellow); }
.lead { font-size: 1.1rem; max-width: 720px; }
.center .lead { margin-inline: auto; }
.hl { background: linear-gradient(transparent 62%, rgba(255, 204, 0, .55) 62%); padding: 0 .1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: 0; cursor: pointer;
  padding: .95rem 1.6rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 204, 0, .45); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Top bar + header */
.topbar { background: var(--ink); color: #e5e7eb; font-size: .85rem; }
.topbar .container { display: flex; justify-content: center; gap: .5rem; padding: .5rem 0; text-align: center; flex-wrap: wrap; }
.topbar strong { color: var(--yellow); }
.topbar a { color: var(--yellow); font-weight: 700; text-decoration: none; }

.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.header__logo img { height: 54px; width: auto; }
.header__cta { display: flex; align-items: center; gap: 1rem; }
.header__phone { text-decoration: none; text-align: right; line-height: 1.2; }
.header__phone small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.header__phone span { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
@media (max-width: 640px) {
  .header__logo img { height: 38px; }
  .header__phone { display: none; }
  .header .btn { padding: .7rem 1.1rem; font-size: .95rem; }
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246, 248, 244, .96), rgba(246, 248, 244, .96)),
    url("../img/pests-home.webp") center / cover no-repeat;
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.hero__copy { padding-top: .5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .8rem; font-size: .85rem; font-weight: 600; color: var(--ink);
}
.badge svg { width: 16px; height: 16px; color: var(--green); }
.hero__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(23, 23, 23, .85); color: var(--white); border-radius: 10px;
  padding: .6rem .8rem; font-size: .85rem; display: flex; gap: .6rem; align-items: center;
}
.hero__photo figcaption strong { color: var(--yellow); }
.rating { display: flex; align-items: center; gap: .6rem; font-size: .92rem; margin-top: 1.25rem; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__photo, .hero__badges { display: none; }
  .hero .lead { font-size: 1rem; margin-bottom: .5rem; }
  .rating { margin-top: .5rem; }
}
@media (max-width: 640px) {
  .topbar { font-size: .78rem; }
  .hero .eyebrow { font-size: .7rem; margin-bottom: .4rem; }
}

/* Quiz card */
.quiz {
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; scroll-margin-top: 90px;
}
.quiz__head { background: var(--ink); color: var(--white); padding: 1.1rem 1.4rem; }
.quiz__head h2 { color: var(--white); font-size: 1.35rem; margin: 0; }
.quiz__head p { margin: .2rem 0 0; font-size: .88rem; color: #c9ccd1; }
.quiz__progress { height: 6px; background: #2c2f33; }
.quiz__bar { height: 100%; width: 20%; background: var(--yellow); transition: width .3s ease; }
.quiz__body { padding: 1.4rem; }
.quiz__step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__step.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz__step legend { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: .25rem; padding: 0; }
.quiz__step legend .quiz__count { display: block; font-family: var(--body); }
.quiz__hint { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.quiz__count { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: .35rem; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.options--list { grid-template-columns: 1fr; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.option label {
  display: flex; align-items: center; gap: .7rem; min-height: 54px;
  border: 2px solid var(--line); border-radius: 12px; padding: .7rem .9rem;
  font-weight: 600; color: var(--ink); cursor: pointer; background: var(--white);
  transition: border-color .15s, background .15s;
}
.option label .ico { font-size: 1.35rem; line-height: 1; }
.option input:hover + label { border-color: #c7cbd1; }
.option input:checked + label { border-color: var(--yellow); background: #fff9e0; }
.option input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.option label::after {
  content: ""; margin-left: auto; width: 20px; height: 20px; flex: none;
  border: 2px solid #c7cbd1; border-radius: 50%;
}
.option input[type="checkbox"] + label::after { border-radius: 6px; }
.option input:checked + label::after {
  border-color: var(--ink); background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 420px) { .options { grid-template-columns: 1fr; } }

.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .3rem; }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem .95rem; border: 2px solid var(--line); border-radius: 10px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 204, 0, .25); }
.field.has-error input { border-color: #c0392b; }
.field__error { display: none; color: #c0392b; font-size: .82rem; margin-top: .25rem; }
.field.has-error .field__error { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

.quiz__nav { display: flex; gap: .6rem; margin-top: 1.1rem; }
.quiz__nav .btn--ghost { flex: 0 0 auto; padding-inline: 1.1rem; }
.quiz__nav .btn--primary { flex: 1; }
.quiz__error { display: none; color: #c0392b; font-size: .88rem; margin-top: .6rem; }
.quiz__error.is-visible { display: block; }
.quiz__foot { display: flex; gap: .5rem; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); padding: 0 1.4rem 1.2rem; text-align: center; }
.quiz__foot svg { width: 14px; height: 14px; flex: none; }
.consent { font-size: .75rem; color: var(--muted); margin-top: .75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Trust strip */
.strip { background: var(--yellow); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.1rem 0; }
.strip__item { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); font-size: .95rem; }
.strip__item svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 820px) { .strip .container { grid-template-columns: 1fr 1fr; } }

/* Pain / familiar */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__img { order: -1; } .split__img { max-height: 420px; } }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .9rem; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start; }
.checks .dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fdecea; color: #c0392b; font-weight: 800; font-size: .9rem;
}
.checks--good .dot { background: #e7f4e8; color: var(--green); }
.callout {
  background: var(--ink); color: var(--white); border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; gap: .8rem; align-items: center; font-weight: 600;
}
.callout strong { color: var(--yellow); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-align: left; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card p { margin: 0; font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.5rem; counter-reset: step; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: left; background: #222; border: 1px solid #333; border-radius: var(--radius); padding: 1.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.2rem;
  margin-bottom: .9rem;
}
.step p { margin: 0; font-size: .95rem; }

/* Reviews */
.reviews__summary { display: inline-flex; align-items: center; gap: .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem .5rem .6rem; margin-bottom: 1rem; }
.reviews__summary img { width: 28px; height: 28px; }
.reviews__summary b { font-family: var(--head); color: var(--ink); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; text-align: left; }
@media (max-width: 920px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.review p { font-size: .95rem; flex: 1; }
.review__who { display: flex; align-items: center; gap: .7rem; margin-top: .5rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--white); font-weight: 700; font-family: var(--head); }
.review__who b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.review__who small { color: var(--muted); font-size: .8rem; }

/* About */
.about__img { position: relative; }
.about__img .tag {
  position: absolute; right: -10px; bottom: 20px; background: var(--yellow); color: var(--ink);
  font-family: var(--head); font-weight: 800; padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow); line-height: 1.15;
}
.about__img .tag span { display: block; font-size: 2rem; }
@media (max-width: 860px) { .about__img .tag { right: 12px; } }
.signoff { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1.1rem; }

/* Offer */
.offer {
  background: var(--yellow); border-radius: 20px; padding: clamp(28px, 5vw, 48px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.offer h2 { margin-bottom: .3rem; }
.offer p { color: var(--ink); margin: 0; }
.offer__actions { display: grid; gap: .6rem; }
.offer small { display: block; font-size: .78rem; color: #4a3f00; text-align: center; }
@media (max-width: 780px) { .offer { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 2rem auto 0; display: grid; gap: .7rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.2rem; font-family: var(--head); font-weight: 700;
  color: var(--ink); font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; }

/* Final CTA */
.final { background: var(--ink) url("../img/tech-roof-void.jpg") center / cover no-repeat; position: relative; }
.final::before { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 17, .88); }
.final .container { position: relative; }
.final__grid { display: grid; grid-template-columns: 1fr 440px; gap: clamp(28px, 5vw, 64px); align-items: center; }
.final h2 { color: var(--white); }
.final p { color: #d6d9dd; }
@media (max-width: 920px) { .final__grid { grid-template-columns: 1fr; } }
.quick { background: var(--white); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.quick h3 { margin-bottom: 1rem; }

/* Footer */
.footer { background: #0f0f0f; color: #9ca3af; font-size: .88rem; padding: 2.5rem 0 6rem; }
.footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.footer h4 { color: var(--white); font-size: 1rem; }
.footer a { color: #d1d5db; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer__logo { background: var(--white); border-radius: 10px; padding: .4rem .6rem; display: inline-block; margin-bottom: .8rem; }
.footer__logo img { height: 44px; width: auto; }
.footer__bottom { grid-column: 1 / -1; border-top: 1px solid #262626; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
@media (max-width: 760px) { .footer .container { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .footer { padding-bottom: 2.5rem; } }

/* Mobile sticky bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.mbar .btn { padding: .8rem 1rem; font-size: 1rem; }
@media (max-width: 760px) { .mbar { display: grid; } }

/* Thank-you page */
.ty { min-height: 70vh; display: grid; place-items: center; padding: 60px 0; background: var(--bg-soft); }
.ty__card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 48px); max-width: 680px; text-align: center; }
.ty__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.ty__tick svg { width: 38px; height: 38px; }
.ty ol { text-align: left; max-width: 460px; margin: 1.5rem auto; padding-left: 1.2rem; display: grid; gap: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
