/* Scan Prospect — tema escuro, cards arredondados e degradê da marca */
:root {
  /* Paleta Scan Prospect: só as cores da logo (#101012, #F5F5F5, #26E7D6 → #4A77F8) e tons entre o preto e o branco */
  --bg: #101012;
  --bg-2: #0b0b0d;
  --surface: #17171a;
  --surface-2: #202024;
  --surface-3: #2a2a2f;
  --line: rgba(245, 245, 245, 0.07);
  --line-2: rgba(245, 245, 245, 0.13);
  --text: #f5f5f5;
  --muted: #8e8e96;
  --dim: #5c5c63;
  --lime: #26e7d6;
  --blue: #4a77f8;
  --pink: #4a77f8;
  --grad: linear-gradient(90deg, #26e7d6 0%, #4a77f8 100%);
  --grad-hero: var(--grad);
  --lime-2: #22cfc0;
  --lime-soft: rgba(38, 231, 214, 0.1);
  --ink: #101012;
  --paper: #f5f5f5;
  --paper-2: #e8e8ea;
  --paper-line: #dcdce0;
  --paper-muted: #6e6e76;
  --warm: #4a77f8;
  --hot: #f5f5f5;
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 'Urbanist', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- Estrutura ---------- */
.shell { max-width: 1320px; margin: 0 auto; padding: 18px 24px 60px; }
.top { display: flex; align-items: center; gap: 16px; padding: 4px 0 18px; }
.logo img { height: 34px; width: auto; display: block; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); }
.pillnav { display: flex; align-items: center; gap: 2px; background: var(--paper); border-radius: 999px; padding: 5px; margin: 0 auto; box-shadow: var(--shadow); }
.pillnav a { color: #55555c; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 7px; transition: background 0.15s, color 0.15s; }
.pillnav a:hover { color: var(--ink); background: var(--paper-2); }
.pillnav a.active { background: var(--grad); color: var(--ink); }
.pillnav a.active::before { content: '•'; font-size: 18px; line-height: 0; margin-right: -2px; }
.pillnav .count { background: var(--ink); color: var(--paper); font-size: 11px; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.pillnav a.active .count { background: var(--ink); color: var(--lime); }
.top-right { display: flex; align-items: center; gap: 8px; }
.circ { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; color: var(--text); transition: background 0.15s, border-color 0.15s; }
.circ:hover { background: var(--surface-2); border-color: transparent; }
.circ.sm { width: 34px; height: 34px; }
.circ.lime { background: var(--grad); color: var(--ink); border: 0; }
.circ.dark { border-color: var(--paper-line); color: var(--ink); }
.circ.dark:hover { background: var(--paper-2); }
.avatar-btn { position: relative; }
.menu { position: absolute; right: 0; top: 50px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px; min-width: 230px; box-shadow: var(--shadow); z-index: 50; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); word-break: break-all; }
.menu .who b { display: block; color: var(--text); font-size: 14px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; text-align: left; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }

.page-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 24px; }
.page-head h1 { font-size: 46px; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; position: relative; }
.card.tight { padding: 18px; }
.card h2, .h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.card .sub, .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.card.glow { background: var(--surface); }
.card.glow::before, .card.lime::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.card.lime { background: var(--surface); color: var(--text); }
.card.lime .sub, .card.lime .muted { color: var(--muted); }
.lime .btn.dark { background: var(--grad); color: var(--ink); }
.card.paper { background: var(--paper); color: var(--ink); border: 0; }
.card.paper .sub, .card.paper .muted { color: var(--paper-muted); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.grid > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.btn { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.15s, transform 0.1s, border-color 0.15s; }
.btn:hover { background: var(--surface-2); border-color: transparent; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.lime { background: var(--grad); color: var(--ink); border-color: transparent; }
.btn.lime:hover { filter: brightness(1.08); }
.btn.white { background: var(--paper); color: var(--ink); border-color: transparent; }
.btn.white:hover { background: var(--paper-2); }
.btn.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.btn.dark:hover { background: #26262b; }
.btn.ghost-dark { color: var(--ink); border-color: var(--paper-line); }
.btn.ghost-dark:hover { background: var(--paper-2); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--hot); }
.link { background: none; border: 0; padding: 0; color: var(--lime); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--text); transition: all 0.15s; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--grad); color: var(--ink); border-color: transparent; }
.chip .n { background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.chip.on .n { background: var(--ink); color: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text); }
.tag.lime { background: var(--grad); color: var(--ink); }
.tag.outline { background: transparent; border: 1px solid var(--line-2); }
.tag.warm { background: rgba(74, 119, 248, 0.16); color: var(--warm); }
.tag.hot { background: rgba(245, 245, 245, 0.08); color: var(--hot); }
.paper .tag { background: var(--paper-2); color: var(--ink); }
.paper .tag.lime { background: var(--grad); }
.paper .tag.dark, .tag.dark { background: var(--ink); color: var(--paper); }
.tag.s-sem_site { background: var(--grad); color: var(--ink); }
.tag.s-so_rede_social { background: rgba(38, 231, 214, 0.16); color: var(--lime); }
.paper .tag.s-so_rede_social { background: #d6f6f2; color: #101012; }
.tag.s-site_ruim { background: rgba(74, 119, 248, 0.16); color: var(--warm); }
.paper .tag.s-site_ruim { background: #dde5fd; color: #101012; }
.tag.s-site_ok { background: var(--surface-3); color: var(--muted); }
.paper .tag.s-site_ok { background: var(--paper-2); color: var(--paper-muted); }
.tag.s-fechado { background: rgba(245, 245, 245, 0.08); color: var(--hot); }
.tag.src { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.paper .tag.src { border-color: #cfd2d7; color: var(--paper-muted); }

.av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; border: 2px solid var(--surface); }
.av.c0 { background: var(--grad); color: var(--ink); }
.av.c1 { background: var(--paper); color: var(--ink); }
.av.c2 { background: #2a2a2f; color: var(--paper); }
.av.c3 { background: #dcdce0; color: #101012; }
.av.c4 { background: #4a77f8; color: #f5f5f5; }
.av-stack { display: flex; }
.av-stack .av { width: 34px; height: 34px; font-size: 11px; margin-left: -9px; border-color: var(--surface); }
.av-stack .av:first-child { margin-left: 0; }
.av-stack .more { background: var(--surface-3); color: var(--text); }

.score { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.score.quente { background: var(--grad); color: var(--ink); }
.score.morno { background: transparent; color: var(--warm); box-shadow: inset 0 0 0 2px var(--warm); }
.score.frio { background: var(--surface-3); color: var(--muted); }
.paper .score.frio { background: var(--paper-2); color: var(--paper-muted); }

.bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.5s; }
.bar.thin { height: 6px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.help { font-size: 12.5px; color: var(--muted); }
.input, .textarea, .select { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 11px 15px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-size: 14.5px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.input.pill, .select.pill { border-radius: 999px; height: 42px; padding: 0 18px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d929a' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; cursor: pointer; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.toggle input { display: none; }
.toggle .sw { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; transition: background 0.2s; }
.toggle .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform 0.2s; }
.toggle input:checked + .sw { background: var(--grad); }
.toggle input:checked + .sw::after { transform: translateX(18px); background: var(--ink); }
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.on { background: var(--paper); color: var(--ink); }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.search-pill { position: relative; flex: 1; min-width: 220px; }
.search-pill svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-pill .input { padding-left: 44px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h3 { color: var(--text); margin: 10px 0 6px; font-size: 20px; font-weight: 600; }
.paper .empty h3 { color: var(--ink); }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; background: var(--surface-2); padding: 2px 7px; border-radius: 7px; }

/* ---------- Painel ---------- */
.stat-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat .label { display: block; margin-bottom: 6px; }
.stat .big { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat .big small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.stat .bar { margin: 26px 0 14px; }
.stat-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.stage-tabs { display: flex; gap: 8px; align-items: flex-end; margin-top: 18px; height: 110px; }
.stage-tab { flex: 1; background: var(--surface-2); border-radius: 18px 18px 0 0; padding: 12px 12px 14px; height: 76%; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--muted); min-width: 0; }
.stage-tab b { font-size: 20px; color: var(--text); font-weight: 600; }
.stage-tab.on { background: var(--grad); color: var(--ink); height: 100%; }
.stage-tab.on b { color: var(--ink); }
.stage-wrap { position: relative; }
.stage-wrap .btn { position: absolute; right: 0; bottom: 14px; }

.notch-panel { margin-top: 30px; }
.notch { display: flex; justify-content: center; margin-bottom: -22px; position: relative; z-index: 2; }
.notch-inner { background: var(--bg); border-radius: 22px; padding: 6px; display: flex; gap: 4px; box-shadow: 0 0 0 6px var(--bg); }
.notch-inner button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; display: flex; gap: 7px; align-items: center; }
.notch-inner button .n { background: rgba(255, 255, 255, 0.12); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }
.notch-inner button.on { background: var(--grad); color: var(--ink); border-color: transparent; }
.notch-inner button.on .n { background: var(--ink); color: var(--lime); }
.md { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 20px; padding-top: 34px; }
.md > * { min-width: 0; }
.md-list { display: flex; flex-direction: column; gap: 4px; }
.md-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 9px; border-radius: 999px; cursor: pointer; transition: background 0.12s; }
.md-row:hover { background: var(--paper-2); }
.md-row.on { background: var(--ink); color: var(--paper); }
.md-row.on .muted { color: #9a9aa2; }
.md-row.on .tag { background: var(--paper); color: var(--ink); }
.md-row .nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-row .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.md-row .val { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; min-width: 34px; text-align: right; }
.md-detail { background: var(--bg-2); color: var(--text); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.md-detail .top3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: start; }
.md-detail .k { font-size: 12px; color: var(--muted); }
.md-detail .title { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2px; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini { background: var(--surface-2); border-radius: 18px; padding: 14px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.mini b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.mini .k { font-size: 12px; }
.mini .ar { position: absolute; top: 12px; right: 12px; color: var(--muted); }
.mini.plus { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 8px, #26262b 8px 16px); display: grid; place-items: center; cursor: pointer; border: 0; }
.mini.plus span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 22px; }
.md-foot { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 999px; padding: 10px 10px 10px 22px; flex-wrap: wrap; }
.md-foot .f { min-width: 0; }
.md-foot .f .k { display: block; }
.md-foot .f b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 170px; }
.md-foot .acts { margin-left: auto; display: flex; gap: 8px; }

.onboard { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; margin-bottom: 16px; }
.onboard h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 108px; transition: background 0.15s; }
.step:hover { background: rgba(255, 255, 255, 0.07); }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); }
.step.done .n { background: var(--grad); color: var(--ink); }
.step.next { border-color: var(--lime); }
.step b { font-size: 14px; }
.step span.muted { font-size: 12.5px; }

.hero { padding: 54px 44px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 58px; line-height: 1; letter-spacing: -0.045em; font-weight: 500; margin: 14px 0 16px; max-width: 640px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 28px; }
.feature-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.feature-tiles .card { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.feature-tiles h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.ico-dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.lime .ico-dot { background: var(--grad); color: var(--ink); }
.paper .ico-dot { background: var(--paper-2); }

/* ---------- Leads ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-right: 6px; }
.filters-label .n { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 11px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-row .select { width: auto; min-width: 150px; height: 40px; border-radius: 999px; padding-top: 0; padding-bottom: 0; font-size: 13px; background-color: var(--surface); }
.lead-list { display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 22px; cursor: pointer; transition: background 0.12s; }
.lrow + .lrow { border-top: 1px solid var(--paper-line); }
.lrow:hover { background: var(--paper-2); border-color: transparent; }
.lrow:hover + .lrow { border-color: transparent; }
.lrow .nm { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lrow .facts { font-size: 13px; color: var(--paper-muted); margin-top: 2px; }
.lrow .why { font-size: 12.5px; color: #2b4fb8; margin-top: 3px; }
.lrow .acts { display: flex; align-items: center; gap: 8px; }
.dot-sep { margin: 0 6px; opacity: 0.5; }
.contacts { display: flex; gap: 5px; }
.cicon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.cicon.off { opacity: 0.28; }
.cicon.on:hover { background: var(--grad); }
.st-select { height: 34px; border-radius: 999px; border: 1px solid var(--paper-line); background-color: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 0 30px 0 13px; width: auto; }
.list-foot { display: flex; justify-content: space-between; align-items: center; color: var(--paper-muted); font-size: 13px; padding: 14px 6px 0; }
.demo-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px; background: var(--paper-2); color: var(--paper-muted); }
.dark-ctx .demo-tag { background: var(--surface-3); color: var(--muted); }
.demo-banner { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; background: var(--lime-soft); border: 1px solid rgba(38, 231, 214, 0.25); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; margin-bottom: 18px; }

/* ---------- Ficha do lead ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); z-index: 60; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(540px, calc(100vw - 20px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); z-index: 61; transform: translateX(110%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto; box-shadow: var(--shadow); }
.drawer.open { transform: none; }
.d-head { padding: 24px 24px 18px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; margin: 6px 0 12px; line-height: 1.1; padding-right: 50px; }
.d-close { position: absolute; top: 20px; right: 20px; }
.d-body { padding: 8px 24px 28px; }
.d-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.d-sec:last-child { border: 0; }
.d-sec h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.why-box { display: flex; gap: 16px; align-items: center; background: var(--bg-2); border-radius: 22px; padding: 16px; }
.why-box .score { width: 64px; height: 64px; font-size: 22px; }
.why-box ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.bubble { background: #15201f; border: 1px solid rgba(38, 231, 214, 0.18); color: #e6f5f3; border-radius: 20px 20px 20px 6px; padding: 14px 16px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv a { color: var(--lime); }
.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.check .y { background: var(--grad); color: var(--ink); }
.check .n { background: rgba(245, 245, 245, 0.1); color: var(--hot); }
.timeline { font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; margin-top: 12px; }

/* ---------- Funil ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 12px; min-height: 420px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, background 0.15s; }
.col.over { border-color: var(--lime); background: #182221; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px; font-weight: 600; }
.col-head .n { background: var(--surface-3); border-radius: 999px; padding: 1px 10px; font-size: 12px; }
.col.won .col-head .n { background: var(--grad); color: var(--ink); }
.kcard { background: var(--surface-2); border-radius: 18px; padding: 12px; cursor: grab; display: flex; gap: 10px; align-items: flex-start; transition: transform 0.12s, background 0.12s; }
.kcard:hover { background: var(--surface-3); transform: translateY(-1px); }
.kcard .score { width: 32px; height: 32px; font-size: 11.5px; }
.kcard .nm { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.kcard .muted { font-size: 12px; }

/* ---------- Mensagens / Configurações ---------- */
.vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.vars code { cursor: pointer; background: var(--surface); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 999px; }
.vars code:hover { border-color: var(--lime); color: var(--lime); }
.claude-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.claude-hero h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 8px; }
.examples { display: grid; gap: 8px; }
.example { background: var(--surface-2); border-radius: 16px; padding: 11px 14px; font-size: 14px; font-weight: 600; }
.mcp-url { display: flex; gap: 8px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 6px 6px 18px; margin: 12px 0; }
.mcp-url code { background: none; padding: 0; color: var(--lime); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: 12.5px; }
.howto ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.lime .howto ol { color: var(--muted); }
.lime .btn.ghost-dark { color: var(--text); border-color: var(--line-2); }
.lime .btn.ghost-dark:hover { background: var(--surface-2); }
.lime code { background: var(--surface-2); color: var(--text); }
.limit-num { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }

/* ---------- Buscar ---------- */
.mp { position: relative; height: 580px; border-radius: var(--r-xl); overflow: hidden; background: #151518; border: 1px solid var(--line); }
.mp-map { position: absolute; inset: 0; }
.mp-top { position: absolute; top: 14px; left: 14px; right: 70px; z-index: 3; }
.mp-search { position: relative; max-width: 460px; }
.mp-search > svg { position: absolute; left: 17px; top: 14px; color: var(--muted); }
.mp-search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(23, 23, 26, 0.88); backdrop-filter: blur(10px); padding: 0 18px 0 46px; outline: none; font-size: 14.5px; }
.mp-search input:focus { border-color: var(--lime); }
.mp-results { margin-top: 8px; background: rgba(23, 23, 26, 0.96); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 22px; padding: 6px; max-height: 320px; overflow-y: auto; }
.mp-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 14px; }
.mp-results button:hover { background: var(--surface-2); }
.mp-results b { display: block; font-size: 14px; }
.mp-results span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-r-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.mp-zoom { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.mp-zoom button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(23, 23, 26, 0.88); font-size: 20px; backdrop-filter: blur(10px); }
.mp-zoom button:hover { background: var(--surface-2); }
.mp-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3; background: rgba(23, 23, 26, 0.9); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; font-size: 13.5px; white-space: nowrap; backdrop-filter: blur(10px); pointer-events: none; }
.mp-panel { position: absolute; left: 14px; bottom: 14px; z-index: 4; width: min(400px, calc(100% - 28px)); background: rgba(23, 23, 26, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.mp-p-head { display: flex; justify-content: space-between; gap: 10px; }
.mp-p-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.mp-p-sub { font-size: 12.5px; color: var(--muted); }
.mp-x { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: none; font-size: 18px; line-height: 1; }
.mp-range { display: flex; align-items: center; gap: 12px; }
.mp-range input { flex: 1; accent-color: var(--lime); }
.mp-range span { font-size: 13px; white-space: nowrap; color: var(--muted); }
.mp-range b { color: var(--text); font-size: 16px; }
.mp-add { height: 46px; border: 0; border-radius: 999px; background: var(--grad); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.mp-add:hover { filter: brightness(1.08); }
.mp-targets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; }
.tchip em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 12px; }
.tchip button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--surface-3); font-size: 15px; line-height: 1; }
.tchip button:hover { background: var(--hot); color: var(--ink); }
.tchip-ico { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); }
.tchip-ico.area { background: transparent; box-shadow: 0 0 0 2px var(--lime); }
.tchip-empty { color: var(--muted); font-size: 13.5px; padding: 8px 2px; }
.maplibregl-ctrl-attrib { background: rgba(16, 16, 18, 0.7) !important; color: var(--muted) !important; border-radius: 999px !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }

.niche-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 8px; min-height: 52px; cursor: text; }
.niche-input:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.niche-input .tag { height: 32px; padding: 0 6px 0 13px; font-size: 13px; }
.niche-input .tag button { border: 0; background: rgba(16, 16, 18, 0.15); border-radius: 50%; width: 20px; height: 20px; font-size: 13px; line-height: 1; display: grid; place-items: center; }
.niche-input input { flex: 1; min-width: 140px; border: 0; background: none; outline: none; padding: 6px 8px; font-size: 14px; }
.sugg { margin-top: 10px; }
.sugg .chip { height: 30px; font-size: 12.5px; color: var(--muted); }
.sugg .chip:hover { color: var(--text); }
.summary-lines { display: grid; gap: 10px; margin: 18px 0 20px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.summary-lines b { color: var(--text); font-weight: 600; text-align: right; }
.sum-big { font-size: 52px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.log { max-height: 220px; overflow-y: auto; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg-2); border-radius: 16px; padding: 12px; margin-top: 12px; display: grid; gap: 3px; color: var(--muted); }
.log .ok { color: var(--lime); }
.log .err { color: var(--hot); }
.hist { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.hist:first-of-type { border-top: 0; }

.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 26px; position: relative; }
.modal h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 6px; }
.prompt-box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 16px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; max-height: 300px; overflow-y: auto; color: #d9dce0; }

/* ---------- Sites recriados ---------- */
.site-list { display: grid; gap: 8px; }
.site-item { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border-radius: 18px; padding: 10px 10px 10px 12px; }
.modal.wide { width: min(1240px, 100%); height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 18px; }
.pv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pv-head .seg button { display: inline-flex; align-items: center; gap: 6px; }
.pv-frame { flex: 1; min-height: 0; background: var(--bg-2); border-radius: 20px; overflow: hidden; display: flex; justify-content: center; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width 0.3s; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.site-card { padding: 14px; }
.thumb { position: relative; height: 220px; border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; }
.thumb iframe { width: 1280px; height: 880px; border: 0; transform: scale(0.25); transform-origin: 0 0; pointer-events: none; }
@media (min-width: 700px) { .thumb iframe { transform: scale(0.27); } }

/* ---------- Editor ---------- */
body.wide .shell { max-width: none; }
.ed { display: flex; flex-direction: column; gap: 12px; }
.ed-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 8px; }
.ed-bar .seg button { flex: none; padding: 7px 14px; }
.ed-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; height: calc(100vh - 230px); min-height: 520px; }
.ed-stage { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; justify-content: center; }
.ed-frame-wrap { position: relative; width: 100%; height: 100%; transition: width 0.3s; }
.ed-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.ed-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ov-hover, .ov-sel { position: absolute; border: 2px dashed #4a77f8; border-radius: 4px; }
.ov-sel { border: 2px solid #26e7d6; box-shadow: 0 0 0 4000px rgba(16, 16, 18, 0.08); }
.ov-sel span { position: absolute; top: -24px; left: -2px; background: #26e7d6; color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.ov-pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; border: 2px solid #f5f5f5; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; pointer-events: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.ed-side { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow-y: auto; padding: 6px 16px 16px; }
.ed-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ed-sec:last-child { border: 0; }
.ed-sec .input { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.ed-color { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ed-color input { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; background: none; padding: 2px; cursor: pointer; }
.ed-vars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ed-vars .ed-color { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-gal button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-2); background-size: cover; background-position: center; background-color: var(--surface-2); }
.ed-gal button:hover { outline: 2px solid var(--lime); }
.ed-cm { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--bg-2); margin-top: 8px; cursor: pointer; }
.ed-cm .n { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--grad); color: #101012; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ed-cm.done { opacity: 0.5; }
.ed-cm.done .n { background: var(--surface-3); }
.ed-cm.flash { outline: 2px solid var(--pink); }
.ed-claude { margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--bg-2); }
.ed-pop { position: absolute; z-index: 5; width: 310px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.ed-pop .textarea { min-height: 80px; font-size: 13.5px; }
.skills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.skill { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 40px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s; }
.skill:hover { border-color: var(--lime); }
.skill b { font-size: 14px; }
.skill .muted { font-size: 12.5px; line-height: 1.4; }
.skill .dl { position: absolute; left: 14px; bottom: 12px; color: var(--lime); }
@media (max-width: 1100px) { .skills { grid-template-columns: repeat(2, 1fr); } .ed-main { grid-template-columns: 1fr; height: auto; } .ed-stage { height: 70vh; } }

/* ---------- Login ---------- */
.auth { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: var(--bg); overflow-y: auto; }
body.logged-out .shell { display: none; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 34px; padding: 32px; box-shadow: var(--shadow); }
.auth-card .logo { justify-content: center; margin-bottom: 24px; }
.auth-title { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; text-align: center; margin: 0 0 6px; line-height: 1.1; }
.auth-sub { color: var(--muted); text-align: center; margin: 0 0 22px; font-size: 14.5px; }
.auth-card .seg { margin-bottom: 20px; }
.auth-err { background: rgba(245, 245, 245, 0.06); color: var(--hot); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }

.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--paper); color: var(--ink); border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: up 0.25s ease; max-width: calc(100vw - 32px); }
.toast.ok::before { content: '✓  '; color: #2b4fb8; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .top { flex-wrap: wrap; }
  .pillnav { order: 3; width: 100%; overflow-x: auto; margin: 0; scrollbar-width: none; }
  .pillnav::-webkit-scrollbar { display: none; }
  .top-right { margin-left: auto; }
  .g-main, .claude-hero, .onboard { grid-template-columns: 1fr; }
  .md { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding: 12px 16px 50px; }
  .page-head { flex-wrap: wrap; }
  .page-head h1 { font-size: 34px; }
  .head-actions { margin-left: 0; justify-content: flex-start; }
  .g-2, .g-3, .feature-tiles, .steps { grid-template-columns: 1fr; }
  .stat-cols { grid-template-columns: 1fr; gap: 26px; }
  .minis { grid-template-columns: 1fr 1fr; }
  .md-detail .top3 { grid-template-columns: 1fr; }
  .md-row .tag { display: none; }
  .demo-banner { border-radius: 22px; }
  .md-foot { border-radius: 22px; }
  .hero { padding: 34px 22px; }
  .hero h1 { font-size: 40px; }
  .lrow { grid-template-columns: 42px minmax(0, 1fr); }
  .lrow .contacts, .lrow .acts { grid-column: 2; }
  .mp { height: 520px; }
  .card { padding: 20px; border-radius: 26px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv .k { margin-top: 8px; }
  .logo span:last-child { display: none; }
}

/* ---------- Blocos de leads ---------- */
.lgroup + .lgroup { margin-top: 6px; }
.ghead { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 18px; background: var(--paper-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ghead:hover { background: var(--paper-line); }
.gchev { display: grid; place-items: center; transition: transform 0.15s; transform: rotate(-90deg); flex: none; }
.ghead.open .gchev { transform: none; }
.gtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; flex: 1; font-size: 14px; }
.gtitle b { font-weight: 700; white-space: nowrap; }
.glabel { color: var(--paper-muted); overflow: hidden; text-overflow: ellipsis; }
.gstats { display: flex; gap: 14px; font-size: 13px; color: var(--paper-muted); white-space: nowrap; }
.gstats b { color: var(--ink); font-weight: 700; }
.gbody { padding: 4px 0 6px; }
.gmore { display: block; margin: 8px auto 4px; }
.list-foot .link { color: var(--ink); }
@media (max-width: 640px) {
  .ghead { flex-wrap: wrap; }
  .gstats { width: 100%; padding-left: 28px; gap: 10px; }
}

/* ---------- Telas de leads: destaques neutros ---------- */
.tag.s-sem_site, .tag.s-so_rede_social, .tag.s-site_ruim, .tag.s-fechado { background: var(--surface-3); color: var(--text); }
.tag.s-sem_site { background: var(--text); color: var(--bg); }
.paper .tag.s-sem_site { background: var(--ink); color: var(--paper); }
.paper .tag.s-so_rede_social, .paper .tag.s-site_ruim { background: var(--paper-2); color: var(--ink); }
.paper .tag.s-site_ruim { background: transparent; box-shadow: inset 0 0 0 1px #b9b9bf; }
.paper .tag.lime { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.paper .btn.lime { background: var(--ink); color: var(--paper); }
.paper .btn.lime:hover { filter: none; background: #2a2a2e; }
.lrow .why { color: var(--paper-muted); }

/* Nota: anel que preenche de acordo com a pontuação, número em destaque */
.score { position: relative; background: transparent !important; box-shadow: none !important; color: var(--text) !important; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  --ring: #f5f5f5; --track: rgba(245, 245, 245, 0.12); }
.score::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p, 0) * 1%), var(--track) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px)); }
.score.morno { --ring: #a4a4ac; }
.score.frio { --ring: #5c5c64; color: var(--muted) !important; }
.paper .score { color: var(--ink) !important; --ring: var(--ink); --track: var(--paper-line); }
.paper .score.morno { --ring: #85858d; }
.paper .score.frio { --ring: #bdbdc3; color: var(--paper-muted) !important; }
.why-box .score::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); }
.md-row.on .tag { box-shadow: none; }
@media (max-width: 640px) { .ghead { align-items: flex-start; } .gchev { margin-top: 1px; } .gtitle { gap: 4px 8px; } }
.drawer .tag.lime { background: var(--text); color: var(--bg); } .drawer .tag.warm { background: var(--surface-3); color: var(--text); } .drawer .btn.lime { background: var(--text); color: var(--bg); } .drawer .btn.lime:hover { filter: none; background: #dcdce0; }

/* ---------- Funil ---------- */
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.deal-grid .field { margin-bottom: 12px; }
@media (max-width: 560px) { .deal-grid { grid-template-columns: 1fr; } }
.stage-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stage-pick button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.stage-pick button b { font-size: 13.5px; }
.stage-pick button span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.stage-pick button:hover { background: var(--surface-2); }
.stage-pick button.past { border-color: transparent; background: var(--surface-2); }
.stage-pick button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.stage-pick button.on span { color: #55555c; }
@media (max-width: 480px) { .stage-pick { grid-template-columns: repeat(2, 1fr); } }
.deal-box { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.deal-box .big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.deal-box .muted { flex: 1; font-size: 13px; line-height: 1.45; }
.col-hint { font-size: 12px; color: var(--muted); margin: -4px 4px 10px; }
.col-hint b { color: var(--text); }

/* ---------- Resultados ---------- */
.card:has(#r-bars) { position: relative; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 240px; margin-top: 18px; position: relative; border-bottom: 1px solid var(--line); }
.bcol { display: flex; flex-direction: column; align-items: center; min-width: 0; outline: none; cursor: default; }
.bval { font-size: 12px; font-weight: 600; height: 18px; white-space: nowrap; color: var(--text); }
.btrack { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill { width: min(44px, 70%); border-radius: 4px 4px 0 0; background: rgba(245, 245, 245, 0.28); transition: background 0.12s; }
.bar-fill.now { background: #f5f5f5; }
.bcol:hover .bar-fill, .bcol:focus .bar-fill { background: rgba(245, 245, 245, 0.55); }
.bcol:hover .bar-fill.now, .bcol:focus .bar-fill.now { background: #fff; }
.blab { position: absolute; bottom: -24px; font-size: 12px; color: var(--muted); text-transform: capitalize; }
.bcol { position: relative; }
.btip { position: absolute; top: -8px; transform: translateX(-50%); z-index: 2; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 10px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.tbl-toggle { margin-top: 36px; font-size: 13px; color: var(--muted); }
.tbl-toggle summary { cursor: pointer; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; color: var(--text); }
.tbl th, .tbl td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; }
.funnel { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.frow { display: grid; grid-template-columns: 82px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; }
.frow b { text-align: right; }
.ftrack { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ftrack div { height: 100%; border-radius: 999px; background: #f5f5f5; min-width: 0; }
.stat-cols.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-cols.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-cols.four { grid-template-columns: 1fr; } }
.btrack { position: relative; }
.bval { position: absolute; left: 0; right: 0; text-align: center; height: auto; }
.bars { margin-top: 30px; }

.claude-pill { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.claude-pill:hover { background: var(--surface-2); }
.claude-pill .cdot { width: 8px; height: 8px; border-radius: 50%; background: #6e6e76; }
.claude-pill .cdot.on { background: var(--lime); box-shadow: 0 0 0 3px rgba(38, 231, 214, 0.18); }
@media (max-width: 640px) { .claude-pill span:last-child { display: none; } .claude-pill { padding: 0 13px; } }

/* Prévia do site: título em cima, ações embaixo */
.pv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 10px; align-items: start; margin-bottom: 14px; }
.pv-title { min-width: 0; }
.pv-title h2 { margin: 2px 0 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pv-actions .seg { width: auto; flex: none; }
.pv-frame.phone { padding: 18px 0; }
.pv-frame.phone iframe { border-radius: 28px; box-shadow: 0 0 0 8px #000, 0 0 0 9px var(--line-2); }
@media (max-width: 640px) { .pv-actions .grow { display: none; } }

/* Seu estilo / referências */
.ref-add { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; }
@media (max-width: 720px) { .ref-add { grid-template-columns: 1fr; } }
.ref-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.ref-item { display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 8px; border-radius: 16px; background: var(--surface-2); }
.ref-item a { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-item a:hover { text-decoration: underline; }
.ref-item .muted { font-size: 12.5px; }
.rate { display: inline-flex; gap: 4px; }
.rate .circ.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.circ.white { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Busca rodando: radar no fundo ---------- */
.job-card { position: relative; overflow: hidden; isolation: isolate; }
.job-body { position: relative; z-index: 1; }
.scan-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s; display: grid; place-items: center; }
.job-card.scanning .scan-bg { opacity: 1; }
.scan-bg img { width: 64px; opacity: 0.22; animation: sp-breathe 2.4s ease-in-out infinite; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.scan-bg i { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1px solid rgba(38, 231, 214, 0.35); animation: sp-ring 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
.scan-bg i:nth-child(2) { animation-delay: 1.2s; border-color: rgba(74, 119, 248, 0.35); }
.scan-bg i:nth-child(3) { animation-delay: 2.4s; }
.scan-bg .sweep { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(38, 231, 214, 0.16), rgba(74, 119, 248, 0.05) 50deg, transparent 80deg); animation: sp-spin 4s linear infinite; }
.scan-bg s { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: #26e7d6; opacity: 0; box-shadow: 0 0 0 4px rgba(38, 231, 214, 0.15); animation: sp-ping 4s ease-out infinite; animation-delay: var(--d); }
@keyframes sp-ring { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(7); opacity: 0; } }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-breathe { 50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes sp-ping { 0%, 100% { opacity: 0; transform: scale(0.4); } 12% { opacity: 1; transform: scale(1); } 40% { opacity: 0; } }

/* ---------- Comemoração ---------- */
.celebrate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(8, 8, 10, 0.55); backdrop-filter: blur(6px); animation: sp-fade 0.25s ease; }
.celebrate.out { opacity: 0; transition: opacity 0.3s; }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-card { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 28px; padding: 30px 34px 26px; width: min(420px, calc(100% - 32px)); animation: sp-pop 0.5s cubic-bezier(.2,1.4,.4,1); }
.cel-card h2 { margin: 14px 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.cel-card p { margin: 0 0 20px; color: var(--muted); }
.cel-mark { width: 78px; height: 78px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: 0 0 0 10px rgba(38, 231, 214, 0.06); animation: sp-glow 1.6s ease-in-out infinite; }
.cel-mark img { width: 46px; }
@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-pop { from { opacity: 0; transform: scale(0.85) translateY(10px); } }
@keyframes sp-glow { 50% { box-shadow: 0 0 0 18px rgba(38, 231, 214, 0.1); } }

/* ---------- Entrada na plataforma ---------- */
.intro { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 26px; }
.intro-logo { width: 120px; display: grid; place-items: center; animation: sp-in 0.6s cubic-bezier(.2,.8,.3,1); }
.intro-logo img { width: 100%; }
.intro-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.intro-bar div { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #26e7d6, #4a77f8); animation: sp-load 1.4s cubic-bezier(.3,.6,.2,1) forwards; }
.intro-name { font-size: 11px; letter-spacing: 0.4em; color: var(--muted); font-weight: 600; margin-top: -10px; }
.intro.out { background: transparent; transition: background 0.5s 0.35s; pointer-events: none; }
.intro.out .intro-logo { transform: scale(26); opacity: 0; transition: transform 1s cubic-bezier(.7,0,.3,1), opacity 0.45s 0.55s; }
.intro.out .intro-bar div { width: 100% !important; animation: none; }
.intro.out .intro-bar, .intro.out .intro-name { opacity: 0; transition: opacity 0.25s; }
body.intro-on .shell { opacity: 0; }
body.intro-reveal .shell { opacity: 1; animation: sp-reveal 0.9s 0.3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes sp-in { from { opacity: 0; transform: scale(0.7); } }
@keyframes sp-load { to { width: 82%; } }
@keyframes sp-reveal { from { opacity: 0; transform: scale(0.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .scan-bg { display: none; } }
.scan-bg .sweep { background: conic-gradient(from 0deg, rgba(38, 231, 214, 0.26), rgba(74, 119, 248, 0.08) 55deg, transparent 90deg); }
.scan-bg i { border-color: rgba(38, 231, 214, 0.55); }
.scan-bg i:nth-child(2) { border-color: rgba(74, 119, 248, 0.55); }
.scan-bg img { opacity: 0.35; width: 72px; }
.job-card.scanning { border-color: rgba(38, 231, 214, 0.25); }

.map-scan { position: absolute !important; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: rgba(16, 16, 18, 0.35); border: 0 !important; padding: 0 !important; transition: opacity 0.6s; }
.map-scan.out { opacity: 0; }
.map-scan .scan-bg img { width: 96px; opacity: 0.55; }
.map-scan-label { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; background: rgba(16, 16, 18, 0.85); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.map-scan-label .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: sp-glow 1.2s infinite; }
#lp { position: relative; border-radius: 28px; }
.map-scan-label { bottom: auto; top: 72px; }
