:root {
  --bg: #fffaf7;
  --bg-soft: #f7eee9;
  --text: #2f2826;
  --muted: #6f625d;
  --brand: #9d6b5f;
  --brand-dark: #754b43;
  --brand-soft: #ead7d0;
  --line: #eadbd5;
  --shadow: 0 22px 70px rgba(89, 56, 48, 0.12);
  --max: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(234, 215, 208, 0.6), transparent 32rem),
    linear-gradient(180deg, #fffaf7 0%, #fff 42%, #fffaf7 100%);
  line-height: 1.75;
}

a { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }

/* Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 247, 0.85);
  border-bottom: 1px solid rgba(234, 219, 213, 0.82);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 780; letter-spacing: -0.03em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 0.95rem; box-shadow: 0 12px 24px rgba(117, 75, 67, 0.2);
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.back { font-weight: 700; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 760; text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--brand-dark); box-shadow: 0 16px 34px rgba(117, 75, 67, 0.22); }
.btn-primary:hover { background: #633f38; }
.btn-secondary { color: var(--brand-dark); background: rgba(255, 255, 255, 0.85); border-color: var(--line); }
.btn-light { color: var(--brand-dark); background: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }

/* Artigo */
.article { width: min(100% - 32px, var(--max)); padding: 40px 0 72px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.article h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.article h2 {
  margin: 44px 0 12px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.article p, .article li { color: #4a3f3b; font-size: 1.06rem; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 8px 0; }

.byline { font-size: 0.93rem; color: var(--muted) !important; margin: 0 0 26px; }
.lead { font-size: 1.2rem !important; color: #3b312e !important; }

.callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.callout strong { display: block; margin-bottom: 4px; color: var(--brand-dark); }
.callout p { margin: 0; font-size: 1rem; }

/* 12 sinais */
.signals { list-style: none; counter-reset: sinal; padding: 0 !important; margin: 20px 0; display: grid; gap: 12px; }
.signals li {
  counter-increment: sinal;
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.signals li::before {
  content: counter(sinal);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.signals strong { display: block; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.signals span { display: block; font-size: 1rem; color: #5a4d49; }

.steps li { padding-left: 4px; }
.more { margin-top: 18px; }

/* CTA */
.cta {
  margin: 48px 0;
  padding: 34px 30px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #5d3a33);
  box-shadow: var(--shadow);
}
.article .cta h2 { margin: 0 0 10px; color: #fff; }
.article .cta p { color: rgba(255, 255, 255, 0.86); margin: 0 0 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq { display: grid; gap: 12px; margin: 18px 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 800; letter-spacing: -0.01em; }
.faq details p { margin: 12px 0 0; }

.emergency {
  margin: 36px 0 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
}
.emergency strong { display: block; margin-bottom: 4px; }
.note { font-size: 0.9rem !important; color: var(--muted) !important; }

/* Rodape */
footer { border-top: 1px solid var(--line); padding: 28px 0 90px; color: var(--muted); font-size: 0.93rem; }
footer p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a, .link-btn { color: var(--brand-dark); font-weight: 750; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 750; cursor: pointer; }

.float-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 62px; height: 62px;
  display: grid; place-items: center; color: #fff; background: #25D366; border-radius: 50%;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}
.float-whatsapp:hover { transform: translateY(-3px); background: #1ebe5d; }
.float-whatsapp svg { width: 32px; height: 32px; display: block; }

/* Barra de progresso de leitura */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40; pointer-events: none; }
.reading-progress span {
  display: block; width: 100%; height: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 1px 8px rgba(117, 75, 67, 0.35);
  will-change: transform;
}

/* Aviso de cookies */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  width: min(100% - 32px, 560px);
  max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 20px 22px; border-radius: 24px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.93rem; color: var(--text);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.cookie-banner p { margin: 0 0 10px; font-size: 0.93rem; color: var(--muted); }
.cookie-banner details { margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 0.88rem; }
.cookie-banner summary { cursor: pointer; color: var(--brand-dark); font-weight: 700; }
.cookie-banner details p { margin: 8px 0 0; font-size: 0.88rem; }
.cookie-banner a { color: var(--brand-dark); font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 140px; min-height: 44px; font-size: 0.95rem; }

@media (max-width: 620px) {
  .nav-right .back { display: none; }
  .article { padding-top: 28px; }
  .signals li { padding: 16px 16px 16px 58px; }
  .signals li::before { left: 14px; top: 15px; }
  .cta { padding: 26px 22px; }
  .cta-actions .btn { width: 100%; }
  .cookie-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
}

/* Sinal bonus */
.article .bonus {
  margin: 14px 0 22px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px dashed var(--brand);
  background: rgba(234, 215, 208, 0.35);
}
.article .bonus strong { color: var(--brand-dark); }

/* Lista de artigos */
.post-list { display: grid; gap: 16px; margin: 28px 0; }
.post-card {
  display: block; padding: 24px 26px; border-radius: 24px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  box-shadow: 0 16px 50px rgba(89, 56, 48, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(89, 56, 48, 0.12); }
.post-card .tag { display: block; margin-bottom: 6px; color: var(--brand-dark); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.post-card strong { display: block; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 8px; }
.article .post-card p { margin: 0 0 10px; color: var(--muted); font-size: 1rem; }
.post-card .meta { font-size: 0.88rem; color: var(--muted); }
