/* ============================================================
   Redadito — páginas de conteúdo (blog + landing pages de SEO)
   Reaproveita os tokens de styles.css. Layout editorial de leitura.
   ============================================================ */

.doc {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px clamp(18px, 5vw, 40px) 40px;
}
.doc--wide { max-width: 1060px; }

/* ---------- migalhas ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted-fg);
  margin: 10px 0 26px;
}
.crumbs a { color: var(--muted-fg); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs span { opacity: 0.6; }

/* ---------- cabeçalho do documento ---------- */
.doc__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.doc__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.doc__lead {
  font-size: clamp(17px, 2.4vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 26px;
  max-width: 68ch;
}
.doc__lead strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA para a ferramenta ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.cta__text { flex: 1 1 260px; }
.cta__text strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.cta__text span { font-size: 14.5px; color: var(--muted-fg); }
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.cta__btn:hover { transform: translateY(-1px); background: var(--accent-ink); }
.cta__btn svg { width: 18px; height: 18px; }

/* ---------- corpo de leitura ---------- */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 14px;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose ol.stepped { list-style: none; counter-reset: s; padding-left: 0; }
.prose ol.stepped > li {
  counter-increment: s;
  position: relative;
  padding: 4px 0 4px 46px;
  margin-bottom: 14px;
}
.prose ol.stepped > li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 15px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
}

/* ---------- índice de categorias (blog) ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 34px;
}
.toc a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.toc a:hover { color: var(--accent-ink); border-color: var(--line-2); transform: translateY(-1px); }

/* ---------- cartões de guias ---------- */
.guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 44px;
}
.guide {
  display: block;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 20px 22px;
  text-decoration: none;
  transition: transform 0.16s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.guide:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.guide h3 { font-family: var(--serif); font-weight: 600; font-size: 18.5px; color: var(--ink); margin: 0 0 6px; line-height: 1.2; }
.guide p { font-size: 14px; color: var(--muted-fg); margin: 0; line-height: 1.5; }
.guide__more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }

/* ---------- FAQ hub ---------- */
.qa-group { margin: 0 0 40px; scroll-margin-top: 84px; }
.qa-group__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 3.2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.qa-group__title .count { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted-fg); }
.qa-group__sub { font-size: 14.5px; color: var(--muted-fg); margin: 0 0 16px; }

.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 40px 15px 2px;
  position: relative;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-ink); }
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted-fg);
  border-bottom: 2px solid var(--muted-fg);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.qa[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qa__a { padding: 0 2px 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.66; }
.qa__a p { margin: 0 0 10px; }
.qa__a a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.qa__a strong { color: var(--ink); font-weight: 600; }

/* ---------- bloco relacionados ---------- */
.related { margin: 44px 0 10px; }
.related h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); margin: 0 0 14px; }
.related__list { display: flex; flex-wrap: wrap; gap: 10px; }
.related__list a {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px; transition: border-color 0.2s, color 0.2s;
}
.related__list a:hover { color: var(--accent-ink); border-color: var(--line-2); }

/* ---------- ferramentas grátis (widgets client-side) ---------- */
.tool-app { margin: 8px 0 32px; }
.tool-app__area {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-app__area:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.tool-app__area::placeholder { color: var(--muted-fg); }

.tool-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.tool-stat {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
}
.tool-stat__num { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--accent-ink); line-height: 1; }
.tool-stat__label { font-size: 12.5px; color: var(--muted-fg); margin-top: 6px; }

.tool-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.tool-btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 15px; transition: border-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.tool-btn:hover { color: var(--accent-ink); border-color: var(--line-2); transform: translateY(-1px); }
.tool-btn--primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.tool-btn--primary:hover { color: #fff; background: var(--accent-ink); }
.tool-note { font-size: 13px; color: var(--muted-fg); margin: 6px 0 0; }
.tool-app__out {
  width: 100%; min-height: 160px; margin-top: 12px;
  font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- topbar simplificada (páginas de conteúdo) ---------- */
.topnav--doc { gap: 18px; }
.topnav--doc .btn-tool {
  font-size: 14px; font-weight: 600; color: #fff; background: var(--accent);
  border-radius: 11px; padding: 9px 16px; text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.topnav--doc .btn-tool:hover { transform: translateY(-1px); background: var(--accent-ink); }

@media (max-width: 560px) {
  .topnav--doc .topnav__link { display: none; }
}
