/* =============================================================================
   Conteudix Auditoria — folha de estilo única.
   Mobile first. Sem build, sem framework: um arquivo que dá para ler inteiro.
   ========================================================================== */

:root {
  --ink: #0d1524;
  --ink-soft: #475467;
  --ink-faint: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-deep: #0d1b2e;

  --brand: #1c50d4;
  --brand-dark: #143aa0;
  --brand-soft: #eaf0ff;

  --pass: #0b8a5b;
  --pass-soft: #e6f6ef;
  --warn: #a86300;
  --warn-soft: #fdf3e2;
  --fail: #c62828;
  --fail-soft: #fdecec;
  --na: #5c6a7d;
  --na-soft: #eef1f5;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-alt); padding: .1em .35em; border-radius: 5px; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.15rem; }
.wrap--narrow { max-width: 760px; }

.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .75rem;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* -- Botões ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.05rem; }

/* -- Cabeçalho e rodapé ---------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1rem; }
.brand__text span { font-size: .78rem; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--brand); }
.site-nav a.btn { color: #fff; }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

.site-footer { margin-top: 3rem; padding: 2.5rem 0 2rem; background: var(--bg-deep); color: #c9d3e0; }
.site-footer a { color: #e6ecf5; text-decoration: none; display: block; padding: .2rem 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #93a1b5; }
.site-footer__grid { display: grid; gap: 1.75rem; margin-bottom: 2rem; }
.site-footer__brand { color: #fff; margin-bottom: .35rem; }
.site-footer__title { color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 1.25rem; font-size: .82rem; color: #93a1b5;
}

@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* -- Seções ---------------------------------------------------------------- */

.section { padding: 3rem 0; }
.section--tight { padding: 2rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--brand); color: var(--ink-soft); font-style: italic;
}

.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink-soft); }

/* -- Hero ------------------------------------------------------------------ */

.hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.hero__inner { display: grid; gap: 2.5rem; }
.hero h1 { margin-bottom: .5rem; }
.hero__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.hero__points li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .95rem; }
.hero__points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--pass); font-weight: 700;
}

.hero__demo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); text-align: center;
}

.demo-tag {
  display: inline-block; background: var(--warn-soft); color: var(--warn);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}

.demo-list { list-style: none; padding: 0; margin: 1.25rem 0 1rem; display: grid; gap: .6rem; text-align: left; }
.demo-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.35fr 1fr; align-items: center; }
}

/* -- Busca ----------------------------------------------------------------- */

.search { display: grid; gap: .65rem; margin: 1.5rem 0 0; }
.search input {
  width: 100%; min-height: 54px; padding: .8rem 1rem;
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.search input:focus { border-color: var(--brand); }
.search .btn { width: 100%; }

@media (min-width: 620px) {
  .search { grid-template-columns: 1fr auto; }
  .search .btn { width: auto; }
}

/* -- Passos e cartões ------------------------------------------------------ */

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding-left: 3.25rem; }
.steps__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  background: var(--brand-soft); color: var(--brand); border-radius: 50%; font-weight: 700;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { color: var(--ink-soft); margin: 0; }

@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.cards { display: grid; gap: 1rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.card h3, .card__title { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.card--link .card__title a { text-decoration: none; }
.card--link:hover { border-color: var(--brand); }

@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* -- Lista de empresas encontradas ----------------------------------------- */

.candidates { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .85rem; }

.candidate {
  display: grid; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem;
}
.candidate:hover { border-color: var(--brand); }
.candidate__name { margin: 0 0 .25rem; font-size: 1.05rem; }
.candidate__address { margin: 0 0 .5rem; color: var(--ink-soft); font-size: .92rem; }
.candidate__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.candidate__action .btn { width: 100%; }

@media (min-width: 640px) {
  .candidate { grid-template-columns: 1fr auto; }
  .candidate__action .btn { width: auto; }
}

.tag {
  display: inline-block; background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .78rem; padding: .2rem .6rem; border-radius: 999px;
}
.tag--alert { background: var(--warn-soft); border-color: transparent; color: var(--warn); }

/* -- Avisos ---------------------------------------------------------------- */

.alert { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.25rem 0; background: var(--bg-alt); }
.alert p:last-child { margin: 0; }
.alert--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.alert--ok { border-left-color: var(--pass); background: var(--pass-soft); }

/* -- Pontuação ------------------------------------------------------------- */

.result-head { background: var(--bg-deep); color: #fff; padding: 2.5rem 0 3rem; text-align: center; }
.result-head .eyebrow { color: #8fb0ff; }
.result-head__name { margin-bottom: .35rem; }
.result-head__address { color: #b6c2d3; margin-bottom: .75rem; }
.result-head__meta { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: 2rem; }
.result-head .tag { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #dbe5f2; }

.result-score { max-width: 560px; margin: 0 auto; }
.result-score__title { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #93a1b5; margin-bottom: 1rem; }
.result-score__note { font-size: .85rem; color: #b6c2d3; margin-top: 1rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }

.score { position: relative; display: inline-grid; place-items: center; }
.score--grande { width: 190px; height: 190px; }
.score--medio { width: 140px; height: 140px; }
.score__ring { width: 100%; height: 100%; transform: rotate(0deg); }
.score__track { fill: none; stroke: rgba(125, 145, 175, .28); stroke-width: 11; }
.score__value { fill: none; stroke-width: 11; stroke-linecap: round; stroke: var(--brand); }

.score__label { position: absolute; display: flex; align-items: baseline; gap: .1rem; }
.score__number { font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em; }
.score--medio .score__number { font-size: 2rem; }
.score__total { font-size: 1rem; opacity: .65; }

.score__grade {
  margin: .85rem 0 0; font-weight: 800; letter-spacing: .12em; font-size: .85rem;
}

.is-excelente .score__value { stroke: #12b76a; }
.is-muito-bom .score__value { stroke: #3ba55d; }
.is-precisa-melhorar .score__value { stroke: #f0a500; }
.is-fraco .score__value { stroke: #ef6c26; }
.is-critico .score__value { stroke: #e5484d; }

.score__grade.is-excelente { color: #12b76a; }
.score__grade.is-muito-bom { color: #3ba55d; }
.score__grade.is-precisa-melhorar { color: #f0a500; }
.score__grade.is-fraco { color: #ef6c26; }
.score__grade.is-critico { color: #e5484d; }

.summary { font-size: 1.05rem; }

.themes { padding-left: 1.1rem; }

/* -- Barras por categoria -------------------------------------------------- */

.bars { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.bar__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; font-size: .9rem; }
.bar__label { font-weight: 600; }
.bar__value { color: var(--ink-soft); white-space: nowrap; }
.bar__track { height: 9px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; }
.bar__fill { height: 100%; background: var(--brand); border-radius: 999px; }
.bar__fill--na { background: var(--na); }

/* -- Checklist ------------------------------------------------------------- */

.check-title { margin-top: 2rem; padding-left: .75rem; border-left: 4px solid var(--line); }
.check-title--pass { border-left-color: var(--pass); }
.check-title--warn { border-left-color: var(--warn); }
.check-title--fail { border-left-color: var(--fail); }
.check-title--na { border-left-color: var(--na); }

.checks { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .6rem; }

.check {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.1rem;
}
.check__label { margin: 0 0 .2rem; font-weight: 600; }
.check__found { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.pill--pass { background: var(--pass-soft); color: var(--pass); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--fail { background: var(--fail-soft); color: var(--fail); }
.pill--na { background: var(--na-soft); color: var(--na); }

/* -- Recomendações --------------------------------------------------------- */

.recs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; counter-reset: rec; }

.rec {
  background: #fff; border: 1px solid var(--line); border-left-width: 4px;
  border-radius: var(--radius); padding: 1.25rem;
}
.rec--alta { border-left-color: var(--fail); }
.rec--media { border-left-color: var(--warn); }
.rec--baixa { border-left-color: var(--na); }

.rec__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.rec__title { margin: 0; }

.priority { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.priority--alta { background: var(--fail-soft); color: var(--fail); }
.priority--media { background: var(--warn-soft); color: var(--warn); }
.priority--baixa { background: var(--na-soft); color: var(--na); }

.rec__body { margin: 1rem 0 0; }
.rec__body dt {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); margin-top: .9rem;
}
.rec__body dt:first-child { margin-top: 0; }
.rec__body dd { margin: .2rem 0 0; color: var(--ink-soft); }

.rec__points { margin: 1rem 0 0; font-size: .84rem; color: var(--ink-faint); }

/* -- Anúncios -------------------------------------------------------------- */

/* Moldura e rótulo: as políticas do AdSense exigem separação clara entre
   anúncio e conteúdo. Nada de anúncio junto de botão ou sobreposto. */
.ad {
  max-width: 1120px; margin: 2rem auto; padding: 0 1.15rem;
  text-align: center;
}
.ad__label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 .5rem;
}
.ad ins { display: block; }
.ad__placeholder {
  display: grid; place-items: center; gap: .35rem;
  min-height: 110px; padding: 1rem;
  border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-faint); font-size: .85rem; background: var(--bg-alt);
}
.ad__placeholder small { font-size: .75rem; opacity: .8; }

/* -- Formulários ----------------------------------------------------------- */

.form { margin-top: 1.25rem; }
.form__row { margin-bottom: 1rem; }
.form__row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.form__row input, .form__row textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.form__row textarea { min-height: 140px; resize: vertical; }
.form__row input:focus, .form__row textarea:focus { border-color: var(--brand); }
.form__grid { display: grid; gap: 0 1rem; }
.form__help { font-size: .85rem; color: var(--ink-soft); }

@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } }

/* Isca para robô de spam: escondida de gente, alcançável por robô. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cta { background: var(--brand-soft); }
.lead-form { margin-top: 1.5rem; }
.lead-form summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }

.attribution { border-top: 1px solid var(--line); padding-top: 1rem; }

/* -- Impressão do relatório ------------------------------------------------ */

@media print {
  .site-header, .site-footer, .ad, .cta, .result-actions, .skip-link { display: none !important; }

  body { font-size: 11pt; color: #000; }
  .result-head { background: #fff !important; color: #000 !important; padding: 0 0 1rem; }
  .result-head__address, .result-score__note, .result-head .eyebrow { color: #333 !important; }
  .result-head .tag { border: 1px solid #999 !important; color: #333 !important; background: none !important; }
  .section { padding: .75rem 0; page-break-inside: avoid; }
  .check, .rec, .card { break-inside: avoid; border-color: #bbb; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .score__track { stroke: #ddd; }
}
