/* Prospect Spy — estilo único da landing e da página de instalação
   Tema claro por padrão; escuro via [data-theme="dark"] (botão no topo, lembrado no navegador). */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --card-alt: #f5f5f7;
  --tx: #1d1d1f;
  --tx-2: #6e6e73;
  --tx-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --ac: #0071e3;
  --ac-hover: #0077ed;
  --link: #0066cc;
  --ok: #248a3d;
  --ok-bg: #e9f6ec;
  --warn: #b25000;
  --warn-bg: #fff4e5;
  --nav: rgba(255, 255, 255, 0.8);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #101012;
  --card: #1c1c1e;
  --card-alt: #2c2c2e;
  --tx: #f5f5f7;
  --tx-2: #a1a1a6;
  --tx-3: #8e8e93;
  --line: #424245;
  --line-soft: #2c2c2e;
  --ac: #0a84ff;
  --ac-hover: #409cff;
  --link: #2997ff;
  --ok: #30d158;
  --ok-bg: rgba(48, 209, 88, 0.14);
  --warn: #ff9f0a;
  --warn-bg: rgba(255, 159, 10, 0.14);
  --nav: rgba(22, 22, 23, 0.8);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--tx);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s, color 0.25s;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 44px); margin-inline: auto; }

/* ---------- navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--tx); font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
[data-theme="dark"] .brand img, [data-theme="dark"] .dl-meta img, [data-theme="dark"] .panel-head img { box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--tx-2); font-size: 14px; white-space: nowrap; }
.nav-links a:hover { color: var(--tx); text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.theme {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--tx-2);
}
.theme:hover { background: var(--bg-alt); color: var(--tx); }
.theme .moon, [data-theme="dark"] .theme .sun { display: none; }
[data-theme="dark"] .theme .moon { display: block; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 980px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ac); color: #fff; }
.btn-primary:hover { background: var(--ac-hover); }
.btn-secondary { background: transparent; color: var(--link); border-color: var(--link); }
.btn-secondary:hover { background: var(--link); color: #fff; }
.btn-sm { height: 32px; padding: 0 15px; font-size: 13px; }
.btn-block { width: 100%; }
.link-arrow { font-size: 17px; white-space: nowrap; }
.link-arrow::after { content: " \203A"; }

/* ---------- tipografia ---------- */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.display { font-size: clamp(40px, 7.2vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.intro { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.38; color: var(--tx-2); font-weight: 400; letter-spacing: -0.015em; }
.muted { color: var(--tx-2); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- seções ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sec-head .intro { margin-top: 16px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 0; text-align: center; overflow: hidden; }
.hero .intro { max-width: 660px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--tx-3); }

/* ---------- mockup do produto (imita o painel da extensão) ---------- */
.stage { margin: clamp(48px, 7vw, 72px) auto 0; max-width: 1000px; padding: 0 0 clamp(64px, 8vw, 96px); }
.window {
  border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-url { margin-left: 14px; flex: 1; max-width: 420px; height: 24px; border-radius: 7px; background: var(--card); color: var(--tx-3); font-size: 12px; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.window-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 420px; }
.ads { padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: start; background: var(--bg-alt); }
.ad { border-radius: 12px; background: var(--card); border: 1px solid var(--line-soft); overflow: hidden; }
.ad.hot { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.ad-bar { display: flex; justify-content: space-between; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line-soft); }
.ad-acts { display: flex; gap: 4px; }
.ad-acts span { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-alt); }
.ad-tags { display: flex; gap: 4px; }
.tag { font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--bg-alt); color: var(--tx-2); white-space: nowrap; letter-spacing: 0; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.ad-media { aspect-ratio: 4 / 3; background: var(--line-soft); }
.ad-media.v2 { background: var(--card-alt); }
.ad-lines { padding: 10px; display: grid; gap: 6px; }
.ad-lines i { height: 7px; border-radius: 4px; background: var(--line-soft); }
.ad-lines i:last-child { width: 60%; }
.panel { border-left: 1px solid var(--line-soft); padding: 16px; display: grid; gap: 12px; align-content: start; background: var(--card); }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head img { width: 30px; height: 30px; border-radius: 8px; }
.panel-head b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.panel-head small { display: block; font-size: 11.5px; color: var(--tx-2); letter-spacing: 0; }
.p-search { height: 34px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; padding: 0 4px 0 12px; font-size: 13px; color: var(--tx); }
.p-search span:last-child { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; background: var(--ac); }
.p-group { border-radius: 12px; background: var(--bg-alt); overflow: hidden; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: 12.5px; letter-spacing: 0; }
.p-row + .p-row { border-top: 1px solid var(--line-soft); }
.p-row b { font-weight: 600; white-space: nowrap; }
.toggle { width: 30px; height: 18px; border-radius: 99px; background: #34c759; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.p-btn { height: 36px; border-radius: 10px; background: var(--ac); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; }

/* ---------- recursos em grade ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile { grid-column: span 2; background: var(--card); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.alt .tile { background: var(--card); }
.tile.wide { grid-column: span 3; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); color: var(--ac); display: grid; place-items: center; margin-bottom: 8px; }
.alt .tile .ico { background: var(--bg-alt); }
.tile h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.tile p { color: var(--tx-2); font-size: 16px; }
.tile .big { font-size: clamp(44px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: auto; padding-top: 18px; }
.tile .big small { font-size: 17px; font-weight: 500; color: var(--tx-2); letter-spacing: -0.01em; margin-left: 6px; }

/* ---------- passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: passo; }
.step { counter-increment: passo; padding: 30px; border-radius: var(--r-md); background: var(--bg-alt); }
.alt .step { background: var(--card); }
.step::before { content: counter(passo); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tx); color: var(--bg); font-weight: 600; font-size: 16px; margin-bottom: 20px; }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { color: var(--tx-2); font-size: 16px; }

/* ---------- planos ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 24px 26px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-soft); }
.plan.best { border: 2px solid var(--ac); padding: 29px 23px 25px; }
.plan-flag { font-size: 13px; font-weight: 600; color: var(--ac); min-height: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.plan h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.price { margin-top: 14px; font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; }
.price span { font-size: 20px; font-weight: 600; margin-right: 3px; letter-spacing: -0.02em; }
.per { margin-top: 6px; font-size: 14px; color: var(--tx-2); min-height: 21px; letter-spacing: -0.01em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--tx); letter-spacing: -0.01em; }
.plan li svg { flex: none; margin-top: 3px; color: var(--ok); }
.plans-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--tx-2); }

/* ---------- perguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--tx-2); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--tx-2); font-size: 17px; }

/* ---------- chamada final ---------- */
.final { text-align: center; }
.final .intro { margin: 16px auto 32px; max-width: 560px; }

/* ---------- rodapé ---------- */
.foot { background: var(--bg-alt); padding: 36px 0 44px; font-size: 12px; color: var(--tx-2); letter-spacing: -0.01em; }
.foot-top { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot-links a { color: var(--tx-2); }
.foot p + p { margin-top: 8px; }

/* ---------- página de instalação ---------- */
.dl-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.dl-hero .intro { margin: 18px auto 0; max-width: 620px; }
.dl-card { margin: 36px auto 0; max-width: 560px; background: var(--bg-alt); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 18px; text-align: left; }
.dl-meta { display: flex; align-items: center; gap: 14px; }
.dl-meta img { width: 56px; height: 56px; border-radius: 13px; }
.dl-meta b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.dl-meta span { display: block; font-size: 14px; color: var(--tx-2); letter-spacing: -0.01em; white-space: nowrap; }
.dl-card .btn { height: 52px; font-size: 17px; }
.dl-small { font-size: 13px; color: var(--tx-2); text-align: center; letter-spacing: -0.01em; }
.guide { display: grid; gap: 16px; counter-reset: g; }
.g-step { counter-increment: g; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 26px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-soft); }
.g-step::before { content: counter(g); width: 44px; height: 44px; border-radius: 50%; background: var(--tx); color: var(--bg); font-weight: 600; font-size: 18px; display: grid; place-items: center; }
.g-step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 9px 0 6px; }
.g-step p { color: var(--tx-2); font-size: 16px; }
.g-step p + p { margin-top: 8px; }
kbd, code {
  font: 600 14px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0;
  background: var(--bg-alt); color: var(--tx); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; white-space: nowrap;
}
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--link); cursor: pointer; font-size: 14px; padding: 0 0 0 6px; }
.callout { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-alt); font-size: 14.5px; color: var(--tx-2); letter-spacing: -0.01em; }
.callout b { color: var(--tx); font-weight: 600; }
.changelog { display: grid; gap: 0; border-top: 1px solid var(--line); }
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.release b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.release time { display: block; font-size: 14px; color: var(--tx-2); margin-top: 2px; }
.release .current { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.release ul { padding-left: 18px; display: grid; gap: 6px; color: var(--tx-2); font-size: 16px; }

/* ---------- páginas legais ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.legal .updated { margin-top: 10px; color: var(--tx-2); font-size: 15px; }
.legal .summary { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-md); background: var(--bg-alt); font-size: 16px; }
.legal .summary ul { margin-top: 8px; padding-left: 20px; display: grid; gap: 6px; color: var(--tx-2); }
.legal h2 { margin-top: 44px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.legal h3 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.legal p, .legal li { font-size: 17px; color: var(--tx); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 22px; display: grid; gap: 8px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--tx-2); font-size: 13px; letter-spacing: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.wide { grid-column: span 3; }
  .window-body { grid-template-columns: minmax(0, 1fr) 250px; }
  .ads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads .ad:nth-child(n+5) { display: none; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav-end { margin-left: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.wide { grid-column: span 6; min-height: 0; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .panel { border-left: 0; border-top: 1px solid var(--line-soft); order: -1; }
  .release { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .ads { padding: 12px; gap: 10px; }
  .ads .ad:nth-child(n+3) { display: none; }
  .window-url { display: none; }
  .hero-cta .btn { width: 100%; }
  .g-step { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .g-step h3 { margin-top: 0; }
  .faq details p { padding-right: 0; }
  .dl-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
