/* Analisador SEO, design alinhado ao ericsoncampos.com.br
   Fundo #0B0B0C, superfície #111113, bordas #26262B, Plus Jakarta Sans,
   gradiente roxo > índigo > ciano, painéis de vidro, CTA verde do WhatsApp.

   Layout 100% fluido: a tipografia escala com a largura da tela (rem) e todos os
   blocos usam grids que preenchem a largura disponível, do celular ao ultrawide. */
:root {
  --bg: #0B0B0C;
  --bg-2: #111113;
  --bg-3: #1C1C20;
  --text: #F5F5F4;
  --muted: #C9C9CE;
  --soft: #A9A9B0;
  --line: #26262B;
  --line-strong: rgba(200, 240, 49, .45);
  --glass: rgba(22, 22, 25, .85);
  --glass-line: rgba(200, 240, 49, .2);
  --cyan: #C8F031;
  --ok: #34d399;
  --warn: #FACC15;
  --fail: #F472B6;
  --grad: linear-gradient(90deg, #C8F031, #A8D11E, #C8F031);
  --radius: 12px;
  --header-h: 4rem;
  --pad: clamp(1rem, 3vw, 4rem);
}
* { box-sizing: border-box; }
html {
  font-size: clamp(16px, .4vw + 9px, 22px); /* 16px no celular/iPad, ~17px Full HD, 22px em ultrawide */
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 5rem);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(70rem 30rem at 50% -8rem, rgba(200, 240, 49, .22), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #C8F031; color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0B0B0C; }
::-webkit-scrollbar-thumb { background: #26262B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C8F031; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #DDF77A; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  width: 100%;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

/* Cartão de vidro (igual ao painel do site principal) */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, .7), 0 0 25px -5px rgba(200, 240, 49, .3);
  border-color: rgba(200, 240, 49, .4);
}

/* Cabeçalho */
.top {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(11, 11, 12, .95);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.logo {
  flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: var(--radius); font-weight: 800; color: #fff;
  background: linear-gradient(to bottom right, #C8F031, #C8F031, #C8F031);
  box-shadow: 0 10px 15px -3px rgba(200, 240, 49, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-weight: 800; font-size: .95rem; letter-spacing: .02em; white-space: nowrap; }
.brand-text small { color: var(--cyan); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.top-right { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.hostchip {
  max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .3rem .8rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; color: #E4F7A6;
  background: rgba(200, 240, 49, .15); border: 1px solid var(--line-strong);
}
.back { font-size: .9rem; font-weight: 500; white-space: nowrap; }

main { flex: 1; width: 100%; display: flex; flex-direction: column; }

/* Landing: ocupa toda a altura da tela */
.landing {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr);
  align-content: center; align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(1.5rem, 5vh, 4rem);
}
.lcopy { min-width: 0; }
.pill {
  display: inline-block; padding: .4rem .9rem; border-radius: 9999px;
  background: rgba(200, 240, 49, .15); border: 1px solid var(--line-strong);
  color: #E4F7A6; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(200, 240, 49, .25);
}
h1 {
  margin: 1.1rem 0 .9rem; font-weight: 900; line-height: 1.06; letter-spacing: -.02em;
  font-size: clamp(2rem, 3.2vw + 1rem, 4.6rem); color: #fff;
}
.lead { max-width: 46rem; color: var(--muted); font-weight: 300; font-size: clamp(1rem, .6vw + .8rem, 1.35rem); }

/* Formulário */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.75rem; max-width: 60rem; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; min-width: 0; padding: .95rem 1.1rem; font: inherit; font-weight: 500; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: var(--radius);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #6E6E76; font-weight: 400; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(200, 240, 49, .18); }
.f-go, .btn {
  padding: .95rem 1.7rem; border: 0; border-radius: var(--radius); color: #fff; font-weight: 700;
  background: var(--grad); box-shadow: 0 8px 24px rgba(200, 240, 49, .35);
  transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap;
}
.f-go:hover:not(:disabled), .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #C8F031, #A8D11E, #C8F031);
  box-shadow: 0 12px 30px rgba(200, 240, 49, .4);
}
.f-go:disabled { opacity: .6; cursor: wait; }
/* iPad vertical e telas largas: três campos na mesma linha */
@media (min-width: 700px) and (max-width: 1023px), (min-width: 1700px) {
  .form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
}
/* Entre iPad horizontal e Full HD o texto ocupa meia tela: campo + botão, palavra-chave abaixo */
@media (min-width: 1024px) and (max-width: 1699px) {
  .form { grid-template-columns: minmax(0, 1fr) auto; }
  .f-url { order: 1; } .f-go { order: 2; } .f-kw { order: 3; grid-column: 1 / -1; }
}
.error {
  max-width: 60rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius);
  background: rgba(244, 114, 182, .1); border: 1px solid rgba(244, 114, 182, .4); color: #FBCFE8; font-size: .95rem;
}
.recents { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.recents > span { color: var(--soft); font-size: .85rem; margin-right: .25rem; }
.rchip {
  padding: .35rem .85rem; border-radius: 9999px; font-size: .85rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
}
.rchip:hover { border-color: var(--cyan); color: var(--cyan); }
.rchip b { margin-left: .4rem; }

.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .9rem; min-width: 0; }
.fcard h3 { margin: .6rem 0 .25rem; font-size: 1rem; font-weight: 800; }
.fcard p { color: var(--soft); font-size: .88rem; font-weight: 300; }
.ficon {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; font-size: 1.15rem;
  border-radius: 10px; background: rgba(200, 240, 49, .15); border: 1px solid var(--glass-line);
}
@media (min-width: 1024px) {
  .landing { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1700px) { .feat { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }

/* Carregando */
.loading { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.4rem; text-align: center; padding-block: 3rem; }
.loading h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2.2rem); font-weight: 800; word-break: break-all; }
.loading .muted { max-width: 34rem; margin: .4rem auto 0; font-size: .95rem; }
.spinner {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 3px solid rgba(200, 240, 49, .2); border-top-color: var(--cyan); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pbar { width: min(100%, 34rem); height: .45rem; border-radius: 9999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pbar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width .7s ease; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; width: min(100%, 24rem); text-align: left; }
.steps li { display: flex; align-items: center; gap: .7rem; color: var(--soft); font-size: .92rem; transition: color .3s; }
.steps li::before { content: ""; flex: none; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--line); }
.steps li.cur { color: var(--text); }
.steps li.cur::before { border-color: var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--muted); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }

/* Painel: sidebar em telas >= 1024px, abas rolando no topo abaixo disso */
.dash {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.75rem; align-items: start;
  padding-top: 0; padding-bottom: 3rem;
}
.side-head, .side-foot { display: none; }
.tabs {
  display: flex; gap: .4rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 20;
  margin-inline: calc(var(--pad) * -1); padding: .7rem var(--pad);
  background: rgba(11, 11, 12, .95); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem; border-radius: var(--radius); background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { color: var(--text); background: rgba(200, 240, 49, .1); }
.tab[aria-selected=true] { color: #fff; background: rgba(200, 240, 49, .2); border-color: var(--line-strong); }
.tscore { margin-left: auto; padding: .08rem .5rem; border-radius: 9999px; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .06); }
.tscore.ok { color: var(--ok); } .tscore.warn { color: var(--warn); } .tscore.fail { color: var(--fail); }

.panels { min-width: 0; padding-top: 1.25rem; }
.panel { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ph { margin-bottom: 1.1rem; }
.ph h2 { font-size: clamp(1.4rem, 1vw + 1.1rem, 2.1rem); font-weight: 900; letter-spacing: -.02em; }
.ph p { margin-top: .25rem; color: var(--soft); font-size: .95rem; max-width: 60rem; }
.sec { margin: 1.75rem 0 .8rem; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sec .count { padding: .08rem .6rem; border-radius: 9999px; font-size: .75rem; background: rgba(200, 240, 49, .18); color: #E4F7A6; }
.sec.high .count { background: rgba(244, 114, 182, .15); color: #F9A8D4; }
.sec.med .count { background: rgba(250, 204, 21, .15); color: #FDE047; }

@media (min-width: 1024px) {
  .dash { grid-template-columns: 16.5rem minmax(0, 1fr); padding-top: 1.25rem; }
  .tabs {
    flex-direction: column; overflow-y: auto; scroll-snap-type: none; gap: .25rem;
    top: calc(var(--header-h) + 1.25rem); max-height: calc(100dvh - var(--header-h) - 2.5rem);
    margin: 0; padding: .9rem; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass);
  }
  .tab { width: 100%; }
  .side-head { display: flex; align-items: center; gap: .9rem; padding: .3rem .4rem .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
  .side-head .ring { width: 4.2rem; flex: none; }
  .side-head b { display: block; font-size: .95rem; word-break: break-all; line-height: 1.25; }
  .side-head span { color: var(--soft); font-size: .78rem; }
  .side-foot { display: grid; gap: .5rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); }
  .panels { padding-top: 0; }
}

/* Grades que preenchem 100% da largura em qualquer tela */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid.sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.checks { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); }
.full { grid-column: 1 / -1; }

/* Anel de nota */
.ring { display: block; width: 9rem; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring.ok .ring-fg { stroke: var(--ok); } .ring.warn .ring-fg { stroke: var(--warn); } .ring.fail .ring-fg { stroke: var(--fail); }
.ring-n { fill: #fff; font-weight: 900; font-size: 34px; font-family: inherit; }
.ring.sm .ring-n { font-size: 38px; }

/* Resumo */
.sumtop { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sumtop { grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr); } }
.scorecard { display: flex; align-items: center; gap: 1.4rem; padding: 1.4rem; }
.scorecard .ring { width: clamp(7rem, 12vw, 11rem); flex: none; }
.verdict { font-size: clamp(1.3rem, 1vw + 1rem, 1.9rem); font-weight: 900; line-height: 1.15; }
.meta { margin-top: .35rem; color: var(--soft); font-size: .85rem; word-break: break-word; }
.counts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.cnt { padding: .15rem .65rem; border-radius: 9999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); }
.cnt.high { color: #F9A8D4; border-color: rgba(244, 114, 182, .4); }
.cnt.med { color: #FDE047; border-color: rgba(250, 204, 21, .4); }
.cnt.low { color: var(--soft); }
.cats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.catcard { display: block; width: 100%; text-align: left; padding: .9rem 1rem; }
.catcard .cn { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-weight: 700; font-size: .9rem; }
.catcard .cs { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.catcard .cs.ok { color: var(--ok); } .catcard .cs.warn { color: var(--warn); } .catcard .cs.fail { color: var(--fail); }
.catcard small { display: block; margin-top: .4rem; color: var(--soft); font-size: .78rem; }
.bar { height: .4rem; border-radius: 9999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: .55rem; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.btn-ghost {
  padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: .9rem; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.2rem; border-radius: 16px; font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(90deg, #10b981, #059669); box-shadow: 0 0 30px rgba(16, 185, 129, .35); text-align: center;
}
.btn-wa:hover { color: #fff; transform: translateY(-1px); }

/* Itens de verificação */
.item { display: flex; gap: .85rem; padding: 1rem 1.1rem; }
.item h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.item .detail { margin-top: .2rem; color: var(--muted); font-size: .88rem; word-break: break-word; }
.item .why { margin-top: .4rem; color: var(--soft); font-size: .8rem; font-weight: 300; }
.dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; margin-top: .4rem; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.fail { background: var(--fail); }
.tag {
  display: inline-block; margin-left: .5rem; padding: .05rem .55rem; border-radius: 9999px; vertical-align: 1px;
  font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(200, 240, 49, .15); border: 1px solid var(--glass-line); color: #E4F7A6;
}
.tag.high { background: rgba(244, 114, 182, .12); border-color: rgba(244, 114, 182, .35); color: #F9A8D4; }
.go { margin-top: .5rem; padding: 0; background: none; border: 0; color: var(--cyan); font-size: .8rem; font-weight: 600; }
.go:hover { color: #DDF77A; }
details.fold > summary { cursor: pointer; margin: 1.75rem 0 .8rem; font-size: 1.05rem; font-weight: 800; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: " ▾"; color: var(--cyan); }
details.fold[open] > summary::after { content: " ▴"; }

/* Métricas */
.metric .ml { color: var(--soft); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.metric .mv { margin-top: .25rem; font-size: clamp(1.3rem, .8vw + 1rem, 1.9rem); font-weight: 900; line-height: 1.15; word-break: break-word; font-variant-numeric: tabular-nums; }
.metric .mv.ok { color: var(--ok); } .metric .mv.warn { color: var(--warn); } .metric .mv.fail { color: var(--fail); }
.metric .ms { margin-top: .3rem; color: var(--soft); font-size: .8rem; word-break: break-word; }
.ctitle { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: .5rem; }
.ctext { font-size: .95rem; color: var(--text); word-break: break-word; }
.ctext.empty { color: var(--fail); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .9rem; }
.kv dt { color: var(--soft); } .kv dd { margin: 0; text-align: right; word-break: break-word; }
.pill-s { display: inline-block; padding: .1rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 800; }
.pill-s.ok { background: rgba(52, 211, 153, .15); color: var(--ok); }
.pill-s.warn { background: rgba(250, 204, 21, .15); color: var(--warn); }
.pill-s.fail { background: rgba(244, 114, 182, .15); color: var(--fail); }
.pill-s.off { background: rgba(255, 255, 255, .06); color: var(--soft); }

/* Barra de comprimento (title e description) */
.lenbar { position: relative; height: .55rem; margin: .8rem 0 .35rem; border-radius: 9999px; background: rgba(255, 255, 255, .08); }
.lenbar .ideal { position: absolute; top: 0; bottom: 0; background: rgba(52, 211, 153, .25); border-radius: inherit; }
.lenbar .fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.lenbar .fill.ok { background: var(--ok); } .lenbar .fill.warn { background: var(--warn); } .lenbar .fill.fail { background: var(--fail); }
.lenlabel { display: flex; justify-content: space-between; color: var(--soft); font-size: .78rem; }

/* Escala de velocidade e peso */
.scale { position: relative; display: flex; height: .7rem; margin: 1.4rem 0 .4rem; border-radius: 9999px; overflow: visible; }
.scale i { display: block; height: 100%; }
.scale i:first-child { border-radius: 9999px 0 0 9999px; } .scale i:nth-child(3) { border-radius: 0 9999px 9999px 0; }
.scale .mk { position: absolute; top: -.45rem; width: .35rem; height: 1.6rem; margin-left: -.18rem; border-radius: 4px; background: #fff; box-shadow: 0 0 0 3px rgba(11, 11, 12, .9); }
.scalelabels { display: flex; justify-content: space-between; color: var(--soft); font-size: .78rem; }
.stack { display: flex; height: 1rem; border-radius: 9999px; overflow: hidden; margin: .7rem 0; background: rgba(255, 255, 255, .06); }
.stack i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .82rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-right: .4rem; background: var(--c); }

/* Árvore de títulos */
.tree { display: grid; gap: .3rem; max-height: 26rem; overflow: auto; }
.tree div { display: flex; gap: .6rem; align-items: baseline; font-size: .9rem; padding-left: calc((var(--lv) - 1) * 1.2rem); }
.tree b { flex: none; min-width: 2rem; text-align: center; padding: .02rem .4rem; border-radius: 6px; font-size: .7rem; font-weight: 800; background: rgba(200, 240, 49, .2); color: #E4F7A6; }
.tree div.l1 b { background: var(--grad); color: #fff; }
.tree span { word-break: break-word; }

/* Barras de detalhamento */
.brk { display: grid; gap: .9rem; }
.brk .bt { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; font-weight: 600; }
.brk .bt span { color: var(--soft); font-weight: 500; }
.brk .bt b { font-variant-numeric: tabular-nums; }

/* Tabelas (viram cartões no celular) */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--soft); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tbl td { padding: .7rem .8rem; border-bottom: 1px solid rgba(38, 38, 43, .6); vertical-align: middle; word-break: break-word; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .thumb { display: block; width: 3.4rem; height: 2.6rem; object-fit: cover; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); }
.tbl .sub { display: block; color: var(--soft); font-size: .78rem; margin-top: .1rem; }
.tbl .n { font-weight: 800; font-variant-numeric: tabular-nums; }
.tbl .n.ok { color: var(--ok); } .tbl .n.warn { color: var(--warn); } .tbl .n.fail { color: var(--fail); }
@media (max-width: 699px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: .8rem; margin-bottom: .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 11, 12, .5); }
  .tbl td { border: 0; padding: .3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: right; }
  .tbl td::before { content: attr(data-label); flex: none; color: var(--soft); font-size: .75rem; text-align: left; }
  .tbl td.first { display: block; text-align: left; }
  .tbl td.first::before { display: none; }
}

/* Chips e barras de palavras */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip { padding: .35rem .8rem; border-radius: 9999px; font-size: .88rem; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.chip.on { border-color: rgba(52, 211, 153, .5); color: var(--ok); }
.chip.off { color: var(--soft); }
.chip em { font-style: normal; color: var(--soft); font-weight: 500; margin-left: .35rem; }
.words { display: grid; gap: .55rem; }
.words .w { display: grid; grid-template-columns: minmax(6rem, 12rem) 1fr 4rem; align-items: center; gap: .8rem; font-size: .9rem; }
.words .w .bar { margin: 0; }
.words .w b { text-align: right; font-variant-numeric: tabular-nums; color: var(--soft); font-weight: 600; }

/* Explicações e CTA */
.explain { border-color: var(--line-strong); background: linear-gradient(135deg, rgba(200, 240, 49, .12), rgba(200, 240, 49, .08)); }
.explain h3 { font-size: 1rem; font-weight: 800; margin-bottom: .35rem; }
.explain p { color: var(--muted); font-size: .92rem; font-weight: 300; max-width: 70rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1.75rem; padding: 1.4rem 1.6rem; }
.cta h3 { font-size: 1.15rem; font-weight: 800; }
.cta p { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.kwform { display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
@media (min-width: 640px) { .kwform { grid-template-columns: minmax(0, 1fr) auto; } }
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }

.foot { width: 100%; padding: 1.4rem var(--pad); text-align: center; border-top: 1px solid var(--line); color: var(--soft); font-size: .8rem; }
.foot p { margin: .2rem 0; }

@media (max-width: 560px) {
  :root { --header-h: 3.6rem; }
  .brand-text small, .back { display: none; }
  .hostchip { max-width: 11rem; }
  .scorecard { flex-direction: column; align-items: flex-start; }
  .words .w { grid-template-columns: 1fr 3.2rem; }
  .words .w .bar { grid-column: 1 / -1; order: 3; }
  .cta { padding: 1.1rem; }
  .btn-wa { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Impressão: gera um PDF limpo, em fundo branco, com todos os painéis */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --bg-3: #fff; --text: #111; --muted: #333; --soft: #555; --line: #ccc; --glass: #fff; --glass-line: #ccc; --pad: 0px; }
  html { font-size: 14px; }
  body { background: #fff; color: #111; display: block; }
  .no-print, .landing, .loading, .tabs, .actions, .cta, .go { display: none !important; }
  .dash { display: block; padding: 0; }
  .panel { display: block !important; margin-bottom: 1.5rem; break-inside: auto; animation: none; }
  .card { backdrop-filter: none; background: #fff !important; border-color: #ccc; box-shadow: none !important; break-inside: avoid; }
  .ring-n { fill: #111; } .bar i, .pbar i { background: #A8D11E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #111; }
  .metric .mv.ok, .metric .mv.warn, .metric .mv.fail, .verdict { color: #111; }
}

/* Captura de contato (módulo integrado ao CRM) */
.leadform { display: grid; gap: .6rem; flex: 1 1 24rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: center; }
.leadform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.leadform .f-go, .leadform .btn-wa, .leadform .leadmsg { grid-column: 1 / -1; text-align: center; }
.leadmsg { margin: 0; color: var(--fail); font-size: .88rem; }
.leadmsg.ok { color: var(--ok); }

/* =============================================================================
   v4.0 (2026-10) — visual alinhado ao site principal v2
   Editorial escuro, uma cor de marca (verde-limão #C8F031), Bricolage Grotesque
   + Inter + JetBrains Mono, botões em pílula, motion de entrada igual ao site.
   Só tela: a impressão (@media print acima) continua igual.
   ========================================================================== */
@media screen {
  :root {
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --glass: #161619;
    --glass-line: rgba(255, 255, 255, .08);
    --cyan: #C8F031;
    --accent: #C8F031;
    --accent-ink: #0B0B0C;
    --grad: linear-gradient(90deg, #C8F031, #C8F031);
    --radius: 18px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --f-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  body { font-family: var(--f-body); background-image: radial-gradient(60rem 26rem at 85% -10rem, rgba(200, 240, 49, .06), transparent 70%); }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  ::-webkit-scrollbar-thumb:hover { background: #6E6E76; }
  a { color: var(--text); }
  a:hover { color: var(--accent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  h1, h2, h3, .sec, details.fold > summary, .ring-n { font-family: var(--f-display); }
  h1 { font-weight: 700; letter-spacing: -.035em; line-height: .98; font-size: clamp(2.4rem, 3.6vw + 1rem, 5.4rem); }
  h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
  h1 .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
  .is-ready h1 .w > span { transform: none; }
  h2, h3, .sec, details.fold > summary { letter-spacing: -.015em; font-weight: 700; }
  .lead { font-weight: 400; color: var(--soft); }

  /* Selo acima do título = "eyebrow" do site */
  .pill { padding: 0; background: none; border: 0; box-shadow: none; color: var(--soft); font-family: var(--f-mono); font-weight: 500; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 10px; }
  .pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(200, 240, 49, .2); }

  /* Cabeçalho */
  .top { background: rgba(11, 11, 12, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
  .logo { position: relative; width: 38px; height: 38px; border-radius: 11px; background: var(--text); color: var(--bg); box-shadow: none; font-family: var(--f-display); font-size: 15px; }
  .logo::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ec-rec 1.6s infinite; }
  @keyframes ec-rec { 50% { opacity: .2; } }
  .brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
  .brand-text small { color: var(--soft); font-family: var(--f-mono); font-weight: 500; letter-spacing: .14em; }
  .hostchip { color: var(--accent); background: rgba(200, 240, 49, .08); border-color: rgba(200, 240, 49, .3); font-family: var(--f-mono); font-weight: 500; }
  .back { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; transition: border-color .25s, transform .35s var(--ease); }
  .back:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); }

  /* Formulário e botões */
  input[type=text], input[type=email], input[type=tel] { background: #111113; border-color: var(--line-strong); border-radius: 999px; padding: 1rem 1.4rem; }
  input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 240, 49, .14); }
  .f-go, .btn { border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 10px 40px -12px rgba(200, 240, 49, .7); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .f-go:hover:not(:disabled), .btn:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(200, 240, 49, .8); }
  .btn-ghost { border-radius: 999px; background: transparent; border-color: var(--line-strong); transition: border-color .25s, transform .35s var(--ease); }
  .btn-ghost:hover { border-color: var(--text); color: var(--text); transform: translateY(-2px); }
  .btn-wa { border-radius: 999px; background: #25D366; color: #04220f; box-shadow: none; transition: transform .35s var(--ease); }
  .btn-wa:hover { color: #04220f; transform: translateY(-2px); }
  .rchip { border-color: var(--line-strong); transition: border-color .25s, color .25s; }
  .rchip:hover { border-color: var(--text); color: var(--text); }

  /* Cartões: superfície lisa do site + luz que segue o mouse */
  .card { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--glass); border-color: var(--glass-line); transition: border-color .3s, transform .5s var(--ease); }
  .card:hover { box-shadow: none; border-color: rgba(255, 255, 255, .18); }
  .fcard { background-image: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(200, 240, 49, .10), transparent 60%); }
  .fcard:hover { transform: translateY(-3px); }
  .ficon { background: rgba(255, 255, 255, .04); border-color: var(--line); border-radius: 12px; }
  .tab { border-radius: 999px; }
  .tab:hover { background: rgba(255, 255, 255, .05); }
  .tab[aria-selected=true] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
  .tab[aria-selected=true] .tscore { background: rgba(11, 11, 12, .14); }
  .tree div.l1 b { color: var(--accent-ink); }
  .foot { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .02em; }

  /* Entrada ao rolar (igual ao site) */
  .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.in { opacity: 1; transform: none; }
  .dash > * { animation: ec-up .8s var(--ease) both; }
  .dash > *:nth-child(2) { animation-delay: .08s; } .dash > *:nth-child(3) { animation-delay: .16s; } .dash > *:nth-child(4) { animation-delay: .24s; }
  @keyframes ec-up { from { opacity: 0; transform: translateY(18px); } }
}
@media screen and (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
  h1 .w > span { transform: none; }
}
@media screen {
  .ficon { color: var(--accent); font-size: 1rem; }
  .back { gap: .5rem; }
}
