/* Páginas públicas estáticas da Descobria (consultas e revenda).
   O MESMO HTML vai para pessoas, Google, Bing e IAs — sem desvio por
   user-agent. Visual alinhado à LandingV2 (navy + azul da marca, Geist). */
:root {
  --brand: #1C72E8;
  --brand-600: #155fc4;
  --brand-50: #eef5ff;
  --navy: #0a0f1e;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f6f9ff;
  --ok: #059669;
  --warn: #b45309;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(6px); border-bottom: 1px solid var(--line); }
.top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.top .logo img { height: 30px; width: auto; display: block; }
.top nav { display: none; gap: 18px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 960px) { .top nav { display: flex; } }
.top .actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #cbd5e1; color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline-flex; } }
/* Visitante x logado: o site.js troca os botões quando há sessão. */
[data-auth] { display: none !important; }
html.is-auth [data-auth] { display: inline-flex !important; }
html.is-auth [data-guest] { display: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #cbd5e1; padding: 36px 0 44px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 30px 30px; }
.hero::after { content: ""; position: absolute; left: 50%; top: -120px; transform: translateX(-50%); width: 760px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(28,114,232,.32), transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.crumbs { font-size: 13px; color: #94a3b8; margin: 0 0 18px; }
.crumbs a { color: #cbd5e1; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 6px; color: #64748b; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #bfdbfe; background: rgba(28,114,232,.14); border: 1px solid rgba(96,165,250,.25); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(30px, 6vw, 50px); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 14px; max-width: 820px; }
.hero h1 .accent { color: #8ab8f5; }
.hero .lead { font-size: clamp(16px, 2.2vw, 18px); color: #cbd5e1; max-width: 720px; margin: 0 0 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero .cta .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero .cta .btn { flex: 0 0 auto; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #e2e8f0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; }
.chips li::before { content: "✓"; color: #34d399; font-weight: 700; }

/* ---------- Seções ---------- */
.sec { padding: 48px 0; }
@media (min-width: 768px) { .sec { padding: 64px 0; } }
.sec.alt { background: var(--soft); border-top: 1px solid #edf2fb; border-bottom: 1px solid #edf2fb; }
.sec .intro { color: var(--muted); max-width: 760px; margin-bottom: 24px; }
.answer { font-size: 17px; color: var(--ink); background: var(--brand-50); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 16px; margin: 0 0 24px; max-width: 820px; }
.prose { max-width: 780px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.g2, .grid.g3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.g3 { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; color: var(--muted); font-size: 15px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps li strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; color: var(--ink); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); min-width: 150px; }

.note { border: 1px solid #fde68a; background: #fffbeb; border-radius: var(--radius); padding: 16px 18px; color: #78350f; font-size: 15px; }
.note strong { color: #78350f; }
.note ul { margin: 8px 0 0; padding-left: 20px; }
.example { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13.5px; background: #0b1224; color: #e2e8f0; border-radius: var(--radius); padding: 16px; overflow-x: auto; white-space: pre; line-height: 1.6; }
.example .k { color: #93c5fd; }
.example .m { color: #94a3b8; }
.small { font-size: 13px; color: var(--muted); }

/* Preços */
.prices { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; text-align: center; }
.price b { display: block; font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.price span { display: block; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 16px 14px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Faixa de CTA */
.band { background: var(--navy); color: #cbd5e1; border-radius: 18px; padding: 28px 20px; text-align: center; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band p { max-width: 620px; margin: 0 auto 18px; }
.band .cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.related { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; }
.related a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.related a:hover { border-color: #bfd4f6; }

/* ---------- Rodapé ---------- */
.foot { background: var(--navy); color: #94a3b8; padding: 40px 0 28px; font-size: 14px; }
.foot .cols { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { color: #e2e8f0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: #cbd5e1; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .foot .brand { grid-column: auto; } }
.foot .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 26px; padding-top: 18px; font-size: 12.5px; line-height: 1.6; }
.prices + .small { margin-top: 12px; }
