/* ════════════════════════════════════════════════════════════════════════
   PumpX — blog e calculadoras (pumpx.online/blog e /calculadoras)

   Nas cores e no tema escuro da página inicial (style.css). Arquivo compartilhado
   por TODAS as páginas geradas pelo build-blog.py.

   Os tokens são os mesmos do style.css do site. Se a página inicial mudar de
   cor ou fonte, mude aqui também.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #050505;
  --bg-soft: #151518;
  --card: #151518;
  --card-2: #1c1c20;
  --ink: #f5f5f7;
  --muted: #9a9aa3;
  /* vermelho de PREENCHIMENTO (botão, chip ativo): letra branca passa AA */
  --primary: #e3201b;
  --primary-dark: #c8120f;
  /* vermelho de TEXTO e link sobre o fundo escuro (6,6:1) */
  --link: #ff5a4f;
  --accent: #ff6a2b;
  --grad: linear-gradient(135deg, #c8120f 0%, #e3201b 45%, #ff6a2b 100%);
  --dark: #0e0e10;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  --maxw: 1120px;
  --readw: 760px;
  --gold: #f0a921;
  /* respiro lateral do conteúdo — a faixa de chips usa o valor negativo dele
     pra sangrar até a borda da tela, então os dois nunca saem de sincronia */
  --wrap-pad: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--wrap-pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--link); background: rgba(227, 32, 27, 0.14);
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px;
}

/* ───────────────────────────── HEADER / NAV ───────────────────────────── */
/* Barra de ponta a ponta com efeito de vidro (30/11/2026, pedido do dono, no
   molde do blog do OzemPro). O fundo translúcido + desfoque mora no <header>,
   que ocupa a largura toda; o <nav> só alinha o conteúdo na coluna do .wrap.
   Antes era uma pílula flutuante, 14px abaixo do topo. */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: background 0.2s, box-shadow 0.2s;
}
/* Sem linha divisória embaixo (dono, 30/11): ao rolar, só uma sombra bem
   difusa separa a barra do conteúdo. */
#hd.scrolled {
  background: rgba(5, 5, 5, 0.86); border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Escopado em `header nav` de propósito: breadcrumb, índice e paginação também
   são <nav>, e a regra solta da landing pintava os três com a pílula do topo. */
header nav {
  position: relative; display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
}
.logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block; }
.nav-left { display: flex; align-items: center; gap: 34px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.navlinks a:hover { color: var(--ink); }
.navlinks a.is-active { color: var(--link); font-weight: 600; }
.navlinks .nav-dl { display: none; }
.badge svg { height: 32px; width: auto; display: block; }
.badge.badge-sm svg { height: 44px; }
.badge.badge-lg svg { height: 50px; }
.badge { display: inline-flex; transition: transform 0.12s, filter 0.2s; }
.badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.menu-toggle { display: none; }
/* "Baixar o app" do topo: só no celular, onde os selos do .nav-right somem.
   Antes disso o celular (80% do tráfego do blog) só tinha o link do menu
   escondido no hambúrguer. margin-left:auto encosta no botão do menu. */
.nav-cta { display: none; }

/* ─────────────────────────── HERO DA LISTAGEM ─────────────────────────── */
.blog-hero {
  position: relative; padding: 96px 0 34px; text-align: center; overflow: hidden;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 46% at 78% 0%, rgba(227, 32, 27, 0.22), transparent 70%),
    radial-gradient(42% 42% at 4% 18%, rgba(255, 106, 43, 0.1), transparent 70%);
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.06;
  letter-spacing: -0.03em; font-weight: 600; margin: 16px 0 14px;
}
.blog-sub {
  font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted);
  max-width: 620px; margin: 0 auto;
}
.blog-hero-cat { text-align: left; padding-top: 80px; }
.blog-hero-cat .blog-sub { margin: 0; max-width: 700px; }
/* Na página de categoria o rótulo é TEXTO, não chip: o nome da categoria já é o
   título grande logo abaixo, e a pílula verde competia com ele. */
.blog-hero-cat .crumbs { margin-bottom: 38px; }
.blog-hero-cat .eyebrow {
  display: block; background: none; border: 0; padding: 0;
  color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em;
}
.blog-hero-cat h1 { margin: 10px 0 14px; }

/* chips de categoria */
.chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px;
}
.blog-hero-cat .chips { justify-content: flex-start; }
/* Na home e nas categorias as categorias ficam entre "Últimos artigos" e os
   cartões (dono, 30/11/2026): perto da lista, leem como filtro dela. */
.blog-list .chips { justify-content: flex-start; margin: -12px 0 26px; }
.chip-link {
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border: 1px solid transparent;
  padding: 9px 18px; border-radius: 999px; transition: all 0.15s;
}
.chip-link:hover { color: var(--ink); border-color: var(--border); background: var(--card); }
.chip-link.is-active { background: var(--primary); color: #fff; }

/* ───────────────────────────── GRID DE CARDS ──────────────────────────── */
.blog-list { padding: 30px 0 80px; }
.list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.list-head h2 {
  font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.02em;
}
.list-head .count { color: var(--muted); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Cada post num cartão (30/11/2026, pedido do dono): fundo cinza-claro, capa
   colada no topo, categoria à esquerda e data à direita, título e resumo em no
   máximo 2 linhas cada — assim todos os cartões da linha ficam da mesma altura.
   O cartão inteiro é clicável pelo ::after do link do título (um link só pro
   leitor de tela e pro Google, sem duplicar a âncora). */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-soft); border-radius: 18px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card-media {
  display: block; overflow: hidden; background: var(--bg-soft);
  aspect-ratio: 1200 / 630;
}
.card-media img, .card-media svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.03); }
.card-body { padding: 16px 18px 20px; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.card-meta time { white-space: nowrap; }
.card-title {
  font-size: 17.5px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--link); }
.card-excerpt {
  font-size: 14.5px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.empty { color: var(--muted); font-size: 16px; padding: 20px 0; }

/* Post em destaque no topo da home do blog (dono, 01/12/2026, no molde do
   Befit e do OzemPro): o mais recente, capa à esquerda e texto à direita.
   Herda do .card o fundo, o canto e o clique no cartão inteiro. */
.card.feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: 22px; margin-bottom: 24px;
}
.feature-media { aspect-ratio: auto; min-height: 100%; }
.feature-body {
  display: flex; flex-direction: column; justify-content: center; padding: 34px 38px;
}
.feature-eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--link); margin-bottom: 12px;
}
.feature-title {
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feature-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature:hover .feature-title a { color: var(--link); }
.feature-excerpt {
  font-size: 16px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feature-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 22px; font-size: 13px; color: var(--muted);
}
.feature-foot time { white-space: nowrap; }
.feature-cta {
  margin-left: auto; display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: 14.5px; font-weight: 600;
}
.feature:hover .feature-cta { background: var(--primary-dark); }
/* Calculadora no meio da lista: ocupa a linha inteira da grade. */
.grid .list-tool { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .card.feature { grid-template-columns: minmax(0, 1fr); }
  .feature-media { aspect-ratio: 1200 / 630; }
  .feature-body { padding: 20px 20px 22px; }
  .feature-title { font-size: 21px; }
  .feature-excerpt { font-size: 15px; }
  .feature-cta { display: none; }
}

/* chip de categoria (card e post) */
.chip {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; letter-spacing: 0.01em;
  background: rgba(227, 32, 27, 0.14); color: #ff7a70;
}
.chip-training { background: rgba(227, 32, 27, 0.16); color: #ff7a70; }
.chip-hypertrophy { background: rgba(255, 138, 61, 0.15); color: #ffad75; }
.chip-fat-loss { background: rgba(74, 222, 128, 0.12); color: #6ee7a0; }
.chip-nutrition { background: rgba(250, 204, 21, 0.12); color: #fcd34d; }
.chip-recovery { background: rgba(96, 165, 250, 0.13); color: #93c5fd; }

/* ─────────────────────────────── PAGINAÇÃO ────────────────────────────── */
.pager { margin-top: 48px; }
.pager ul {
  list-style: none; display: flex; align-items: center; gap: 6px; justify-content: center;
}
.pager a, .pager span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px;
  border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted);
}
.pager a:hover { color: var(--ink); background: var(--bg-soft); }
.pager .is-current { background: var(--primary); color: #fff; }
.pager .pager-arrow { background: var(--bg-soft); color: var(--ink); font-size: 20px; line-height: 1; }
.pager .pager-arrow.is-disabled { color: var(--border); }
.pager .pager-gap { min-width: 20px; padding: 0; letter-spacing: 1px; }
@media (max-width: 480px) {
  /* até 7 números + 2 setas numa tela de 320 px de conteúdo */
  .pager ul { gap: 2px; }
  .pager a, .pager span { min-width: 34px; height: 34px; padding: 0 4px; font-size: 14px; }
  .pager .pager-gap { min-width: 16px; padding: 0; }
}
@media (max-width: 360px) {
  /* celular de 320 px: 7 números + 2 setas em 270 px */
  .pager ul { gap: 0; }
  .pager a, .pager span { min-width: 30px; height: 30px; padding: 0 2px; font-size: 13px; }
}

/* ─────────────────────────────── BREADCRUMB ───────────────────────────── */
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; font-size: 13px; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #4a4a50; }
.crumbs a:hover { color: var(--link); }
.crumbs li[aria-current] {
  max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ══════════════════════════════ POST ══════════════════════════════════ */
.post { padding: 84px 0 80px; }
.post-head { max-width: var(--readw); }
.post-head .crumbs + h1 { margin-top: 22px; }
.post h1 {
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 600;
}
.post-deck {
  font-size: clamp(17px, 1.6vw, 20px); color: var(--muted);
  line-height: 1.55; margin-top: 16px;
}
/* assinatura (E-E-A-T): logo, quem escreveu, data e tempo de leitura — e o
   revisor, quando houver. Fica logo abaixo do subtítulo, no molde do g1. */
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.byline-logo { width: 40px; height: 40px; border-radius: 10px; display: block; flex: none; }
.byline-main { font-size: 15px; color: var(--muted); line-height: 1.4; }
.byline-main strong { color: var(--ink); font-weight: 600; }
.byline-main a:hover strong { color: var(--link); text-decoration: underline; }
.byline-sub {
  font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px;
}
.byline-sub strong { color: var(--ink); font-weight: 600; }
.post-updated { font-size: 13px; color: var(--muted); margin-top: 14px; }
.blog-page .prose { margin-top: 32px; }

/* Mesma largura da coluna de leitura: a capa tinha 900px contra 760px do texto e
   sobrava dos dois lados. `--readw` mantém as bordas alinhadas com o título e
   com o corpo do artigo. */
.post-cover { max-width: var(--readw); margin: 32px auto 0; }
.post-layout > .post-head, .post-body > .post-wrap,
.post-layout > .post-end, .post-layout > .post-related { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.post-cover img, .post-cover svg {
  width: 100%; height: auto; display: block; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-soft);
}

.post-wrap { max-width: var(--readw); }
/* "Parte do guia" e "Como apuramos": saíram do topo (dono, 30/11/2026) */
.post-foot { margin-top: 28px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.post-foot a { color: var(--link); font-weight: 600; text-decoration: underline; }

.box-title {
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--link); margin-bottom: 14px;
  font-weight: 600;
}

/* resumo rápido: recolhido, abre no toque ("Ver resumo rápido") */
.takeaways {
  margin: 24px 0 0; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px;
}
.takeaways summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.takeaways summary::-webkit-details-marker { display: none; }
.takeaways summary:hover { color: var(--link); }
.tk-chev {
  flex: none; color: var(--muted); transition: transform 0.2s ease;
}
.takeaways[open] .tk-chev { transform: rotate(180deg); }
.takeaways-body { padding: 2px 20px 20px; }
.takeaways-lead {
  font-size: 16px; line-height: 1.6; color: var(--ink); font-weight: 500;
  margin-bottom: 14px;
}
.takeaways-lead a { color: var(--link); text-decoration: underline; }
.takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.takeaways li {
  position: relative; padding-left: 24px; font-size: 15.5px;
  line-height: 1.55; color: var(--ink);
}
.takeaways li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px;
  border-radius: 3px; background: var(--accent);
}

/* índice */
.toc { margin: 36px 0 0; padding: 22px 26px; border: 1px solid var(--border); border-radius: var(--radius); }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 9px; }
.toc li { counter-increment: toc; font-size: 15px; line-height: 1.45; }
.toc li::before { content: counter(toc) ". "; color: var(--muted); font-weight: 600; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--link); text-decoration: underline; }

/* ───────────────────────────── TEXTO DO POST ──────────────────────────── */
.prose { margin-top: 42px; font-size: 17.5px; line-height: 1.75; color: #d6d6db; }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-size: clamp(23px, 2.6vw, 30px); line-height: 1.22; letter-spacing: -0.022em;
  font-weight: 600; color: var(--ink); margin-top: 52px; scroll-margin-top: 96px;
}
.prose h3 {
  font-size: clamp(18px, 2vw, 21px); line-height: 1.3; letter-spacing: -0.015em;
  font-weight: 600; color: var(--ink); margin-top: 34px; scroll-margin-top: 96px;
}
.prose h4 { font-size: 17px; font-weight: 600; margin-top: 26px; }
.prose a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--link); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  background: var(--bg-soft); padding: 2px 6px; border-radius: 6px;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.prose-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.prose ul.prose-list li { position: relative; padding-left: 25px; }
.prose ul.prose-list li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.prose ol.prose-list { counter-reset: li; }
.prose ol.prose-list li { position: relative; padding-left: 34px; counter-increment: li; }
.prose ol.prose-list li::before {
  content: counter(li); position: absolute; left: 0; top: 3px;
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(227, 32, 27, 0.14); color: var(--link); font-size: 13px; font-weight: 600;
}

/* caixa de alerta (blockquote no Markdown) */
.callout {
  border-left: 4px solid var(--gold); background: rgba(240, 169, 33, 0.09);
  padding: 18px 22px; border-radius: 0 14px 14px 0;
}
.callout p { font-size: 16px; line-height: 1.6; color: #f2dca0; margin: 0; }

/* tabela */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table {
  width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.prose thead { background: var(--bg-soft); }
.prose th, .prose td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.5;
}
.prose th { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.prose tbody tr:last-child td { border-bottom: 0; }

.post-figure { margin: 30px 0; }
.post-figure img { width: 100%; height: auto; border-radius: 16px; display: block; }

/* FAQ */
.post-faq { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--border); }
.post-faq h3 { margin-top: 30px; }

/* fontes */
.sources { margin-top: 52px; padding: 24px 26px; background: var(--bg-soft); border-radius: var(--radius); }
.sources ol { padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.sources li { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.sources a { color: var(--link); font-weight: 600; }

.disclaimer {
  margin-top: 26px; font-size: 13.5px; line-height: 1.6; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 14px; padding: 16px 18px;
}

/* ─────────────────────────── BANNER DO APP ────────────────────────────── */
/* Banner final: verde-escuro, texto + nota + selos e, no computador, o print
   do app num celular à direita (o print muda com o assunto do post). */
.app-banner {
  margin: 44px 0; padding: 34px 34px 0; border-radius: var(--radius); color: #fff;
  /* Degradê escuro com um fio de vermelho, o mesmo do cartão da lateral (dono,
     02/12/2026: o banner todo vermelho pesava). */
  background: radial-gradient(70% 90% at 100% 0%, rgba(227, 32, 27, 0.28), transparent 70%),
              linear-gradient(160deg, #2a1212 0%, var(--card) 70%);
  border: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 28px; justify-content: space-between;
  position: relative; overflow: hidden;
}
.app-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 78% at 92% 8%, rgba(255, 255, 255, 0.14), transparent);
}
.banner-body { position: relative; z-index: 1; padding-bottom: 34px; }
.banner-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); margin-bottom: 9px;
}
.banner-h { font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.banner-p {
  font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.9);
  margin-top: 9px; max-width: 44ch;
}
.banner-rating {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.92);
}
.banner-rating .star, .banner-rating .stars, .app-card-rating .star { color: var(--gold); }
.banner-rating .stars { letter-spacing: 1px; }
.banner-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.app-banner-end { margin-top: 40px; }

/* iPhone com o print do app (banner final e cards do meio). A moldura já vem
   na imagem; aqui só se recorta a parte de baixo, colada na borda do card. */
.phone { flex: none; position: relative; z-index: 1; overflow: hidden; align-self: flex-end; }
.phone img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.phone-lg { width: 244px; height: 340px; }
.phone-sm { width: 150px; height: 200px; }

/* card do app no meio do texto: claro, fala do assunto do post */
.prose .app-card { margin: 44px 0; }
.app-card {
  display: flex; align-items: stretch; gap: 22px; justify-content: space-between;
  padding: 26px 28px 0; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card-2) 0%, var(--card) 100%); border: 1px solid var(--border);
  overflow: hidden;
}
.app-card-body { padding-bottom: 26px; }
.app-card .banner-eyebrow { color: var(--link); }
.app-card-h { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.28; color: var(--ink); }
.app-card-p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin-top: 8px; max-width: 46ch; }
.app-card-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.prose .app-card-btn, .app-card-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
}
/* `.prose .app-card-btn` junto: os cards ficam DENTRO do texto, e o
   `.prose a:hover` (mais específico) pintava a letra da cor do fundo. */
.prose .app-card-btn:hover, .app-card-btn:hover { background: var(--primary-dark); color: #fff; }
.app-card-btn span { margin-left: 7px; }
.app-card-rating { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* compartilhar (fim do artigo) */
.share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border);
}
.share-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.share-btn:hover { border-color: #2c2c30; background: var(--bg-soft); }
.share-wa { background: #25d366; border-color: #25d366; color: #fff; }
.share-wa:hover { background: #1fbe5b; border-color: #1fbe5b; color: #fff; }

/* ──────────────────────────── RELACIONADOS ────────────────────────────── */
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.related-head h2 { margin-bottom: 0; }
.see-all { font-size: 15px; font-weight: 600; color: var(--link); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.related h2 {
  font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.related .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
.related .card-title { font-size: 16.5px; }
.related .card-excerpt { font-size: 14px; }

/* ─────────────────────────────── RODAPÉ ───────────────────────────────── */
.site-footer {
  background: var(--bg); color: var(--muted); padding: 56px 0 30px;
  border-top: 1px solid var(--border);
}
.foot-top {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
  padding-bottom: 34px; border-bottom: 1px solid var(--border);
}
.foot-brand .brand { color: var(--ink); margin-bottom: 14px; }
.foot-brand .ftag { font-size: 14.5px; max-width: 320px; color: var(--muted); line-height: 1.55; }
/* Duas fileiras (01/12/2026): Produto, Blog e Contato em cima; Calculadoras e
   App por remédio caem sozinhas na segunda fileira da mesma grade de 3. */
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.foot-cols h3 {
  color: var(--ink); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 14px; font-weight: 600;
}
.foot-cols a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; transition: color 0.15s; }
.foot-cols a:hover { color: var(--link); }
.foot-bottom { font-size: 13px; color: var(--muted); padding-top: 24px; }
.foot-bottom a { color: inherit; text-decoration: none; }

/* Print do app no meio do texto (01/12/2026): celular num painel claro, cortado
   embaixo como nos cards de recursos da home, com o alt como legenda. */
.post-figure-app { margin: 32px auto; max-width: 420px; }
.post-figure-app-media {
  height: 340px; overflow: hidden; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card-2) 100%); padding-top: 26px;
}
.post-figure-app-media img { display: block; width: 230px; height: auto; margin: 0 auto; border-radius: 0; }
.post-figure-app figcaption {
  font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center;
  padding: 12px 8px 0; border-top: 1px solid var(--border);
}

/* ─────────────────── LATERAL DO ARTIGO (COMPUTADOR) ───────────────────── */
/* A partir de 1100px: título, subtítulo e capa ocupam a largura toda; a divisão
   em duas colunas começa DEPOIS da capa (dono, 30/11/2026, como MeAgain e
   OzemPro): texto à esquerda e, à direita, índice que marca a seção atual +
   cartão do app com QR. A lateral acompanha a rolagem (sticky) até o fim do
   texto; se não couber na altura da tela, rola sozinha. O índice de dentro do
   texto some aqui — a lateral já mostra. */
.post-side { display: none; }
@media (min-width: 1100px) {
  .post-layout > .post-head { max-width: none; margin-left: 0; }
  .post-layout > .post-cover { max-width: none; margin: 32px 0 0; }
  /* texto + lateral num contêiner próprio: a lateral (sticky) só anda dentro
     dele, então para logo antes do banner final, que vem depois. */
  .post-body {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 56px; align-items: start;
  }
  .post-body > .post-wrap { margin-left: 0; margin-right: 0; }
  .post-wrap > .toc { display: none; }
  .post-side {
    display: block; position: sticky; top: 88px; margin-top: 40px;
    max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: none;
  }
  .post-side::-webkit-scrollbar { display: none; }
  /* banner final na largura da coluna do texto; relacionados de ponta a ponta */
  .post-layout > .post-end { max-width: calc(100% - 336px); margin-left: 0; }
  .post-layout > .post-related { max-width: none; margin-left: 0; }
  .post-related .related .grid { grid-template-columns: repeat(4, 1fr); }
}
.side-toc ol { list-style: none; display: flex; flex-direction: column; }
.side-toc a {
  display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--border);
  font-size: 14px; line-height: 1.4; color: var(--muted); transition: color 0.15s, border-color 0.15s;
}
.side-toc a:hover { color: var(--ink); }
.side-toc a.is-current { color: var(--link); border-left-color: var(--primary); font-weight: 600; }
.side-app {
  transition: opacity 0.25s ease, transform 0.25s ease;
  margin-top: 28px; padding: 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(160deg, #2a1212 0%, var(--card) 100%); border: 1px solid var(--border);
}
.side-app-top { display: flex; align-items: center; gap: 11px; }
.side-logo { width: 40px; height: 40px; border-radius: 10px; display: block; }
.side-name { font-size: 16px; font-weight: 600; line-height: 1.2; }
.side-rating { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.side-rating .star { color: var(--gold); }
.side-h { font-size: 18px; font-weight: 600; line-height: 1.3; margin-top: 16px; letter-spacing: -0.01em; }
.side-p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); margin-top: 6px; }
.side-app-off { opacity: 0; transform: translateY(8px); pointer-events: none; }
.dl-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ──────────────────── CARTÃO DO APP NO RODAPÉ (CELULAR) ───────────────── */
/* Vidro fixo no fim da tela, só abaixo de 1000px (onde os selos do topo somem).
   O script do MENU_JS põe/tira .dock-hidden conforme a direção da rolagem. */
.app-dock { display: none; }
@media (max-width: 1000px) {
  .app-dock {
    display: flex; align-items: center; gap: 12px;
    position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: 560px; margin: 0 auto; padding: 12px 12px 12px 14px;
    background: rgba(21, 21, 24, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border); border-radius: 22px;
    box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .app-dock.dock-hidden {
    transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none;
  }
  .dock-logo { width: 44px; height: 44px; border-radius: 11px; display: block; flex: none; }
  .dock-text { flex: 1; min-width: 0; }
  .dock-name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.25; }
  .dock-sub { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
  .dock-cta {
    flex: none; padding: 10px 16px; border-radius: 12px;
    background: var(--primary); color: #fff; font-size: 14.5px; font-weight: 600;
  }
  /* o cartão não pode cobrir o fim do rodapé quando reaparece lá embaixo */
  body.blog-post { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* ───────────────────────────── RESPONSIVO ─────────────────────────────── */
@media (max-width: 1000px) {
  .nav-right { display: none; }
  .navlinks { display: none; }
  .navlinks.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; background: var(--card); padding: 16px 20px; gap: 14px;
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); z-index: 60;
  }
  .navlinks.open .nav-dl {
    display: block; color: var(--link); font-weight: 600;
    border-top: 1px solid var(--border); padding-top: 14px;
  }
  .nav-cta {
    display: inline-flex; align-items: center; margin-left: auto; margin-right: 8px;
    height: 42px; padding: 0 16px; border-radius: 11px;
    background: var(--primary); color: #fff; font-size: 14.5px; font-weight: 600;
    white-space: nowrap;
  }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: 11px; background: var(--card); color: var(--ink);
    cursor: pointer;
  }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero { padding-top: 82px; }
  .post { padding-top: 74px; }
  .app-banner { flex-direction: column; align-items: flex-start; padding-bottom: 0; }
  .app-banner .phone-lg { display: none; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  /* Abaixo de 820px os 6 chips não cabem numa linha: em vez de quebrar (4 linhas
     no celular, 2 desequilibradas no tablet), viram faixa que rola na
     horizontal, sangrando até a borda — o chip cortado no canto avisa que há
     mais. */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    margin: 22px calc(var(--wrap-pad) * -1) 0;
    padding: 0 var(--wrap-pad) 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .blog-list .chips { margin: -12px calc(var(--wrap-pad) * -1) 22px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip-link { flex: none; }
}

@media (max-width: 680px) {
  :root { --wrap-pad: 18px; }
  .grid, .related .grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-hero { padding: 74px 0 26px; }
  .blog-hero h1 { font-size: clamp(27px, 8.4vw, 36px); }
  .post { padding: 68px 0 60px; }
  .prose { font-size: 17px; }
  .toc, .sources { padding: 20px 18px; }
  .takeaways summary { padding: 16px 18px; }
  .takeaways-body { padding: 2px 18px 18px; }
  .app-banner { padding: 24px 20px 0; }
  .banner-body { padding-bottom: 24px; }
  /* no celular os cards do meio ficam compactos: sem o print, menos respiro */
  .prose .app-card { margin: 32px 0; }
  .app-card { padding: 18px 18px; border-radius: 16px; }
  .app-card-body { padding-bottom: 0; }
  .app-card .phone-sm { display: none; }
  .app-card .banner-eyebrow { font-size: 11px; margin-bottom: 6px; }
  .app-card-h { font-size: 17.5px; }
  .app-card-p { font-size: 14.5px; margin-top: 6px; }
  .app-card-cta { margin-top: 14px; gap: 12px; }
  .prose .app-card-btn, .app-card-btn { height: 40px; padding: 0 16px; font-size: 14.5px; }
  .app-card-rating { font-size: 12.5px; }
  /* compartilhar no celular: rótulo em cima, os dois botões numa linha só */
  .share-label { flex-basis: 100%; margin: 0 0 2px; }
  .banner-badges { width: 100%; }
  .post-cover img, .post-cover svg { border-radius: 14px; }
}

/* rodapé: 3 colunas até o celular, 2 no celular (01/12/2026). */
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-media img, .card-media svg, .app-dock { transition: none; }
  .card:hover { transform: none; }
}

/* Ações da página 404 (build_404) — mesmo par de botões da landing:
   um sólido pro caminho recomendado, um discreto pro alternativo. */
.nf-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.nf-cta {
  display: inline-block; background: var(--primary); color: #ffffff;
  padding: 13px 26px; border-radius: var(--radius); font-size: 15.5px;
  font-weight: 600; text-decoration: none; transition: opacity 0.15s;
}
.nf-cta:hover { opacity: 0.9; }
.nf-link {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--ink); font-size: 15.5px;
  font-weight: 600; text-decoration: none; transition: border-color 0.15s;
}
.nf-link:hover { border-color: var(--primary); color: var(--link); }

/* ─────────────────── FERRAMENTAS (CALCULADORAS) ──────────────────────── */
/* Calculadoras: /calculadoras e /calculadoras/<slug>. */
.tools-wrap { padding-top: 22px; padding-bottom: 20px; }
.tools-h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); margin-top: 20px; text-wrap: balance; }
.tools-intro { font-size: 18px; line-height: 1.55; color: var(--muted); margin-top: 14px; }

.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; min-height: 318px; padding: 20px;
  border-radius: 22px; background: var(--card); border: 1px solid #2c2c30; color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 26px -18px rgba(0, 0, 0, 0.25);
  transition: transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s cubic-bezier(.23,1,.32,1);
}
a.tool-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 22px 40px -22px rgba(0, 0, 0, 0.35); }
a.tool-card:active { transform: scale(.99); }
a.tool-card:focus-visible { outline: 2px solid var(--tool-accent); outline-offset: 3px; }
.tool-card-off { opacity: .62; }
.tool-card-top { display: flex; align-items: center; gap: 8px; }
.tool-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tool-label { font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(245, 245, 247, 0.45); }
.tool-soon { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-soft); padding: 3px 9px; border-radius: 999px; }
.tool-num { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tool-num span { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tool-num small { font-size: 13px; font-weight: 600; color: rgba(245, 245, 247, 0.4); }
.tool-viz { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 4px; }
.tool-viz svg { width: 100%; max-height: 150px; }
.tool-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tool-card-foot p { font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 24ch; }
.tool-go {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #050505;
  display: grid; place-items: center; font-size: 18px; transition: background .2s;
}
a.tool-card:hover .tool-go { background: var(--tool-accent); }

.tool-strip {
  display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(60% 140% at 30% 0%, rgba(227, 32, 27, 0.35), transparent 70%), linear-gradient(120deg, #2a1212, var(--card));
}
.tool-strip picture { display: flex; flex: none; }
.tool-strip img { display: block; border-radius: 12px; flex: none; }
.tool-strip-txt { flex: 1; min-width: 0; }
.tool-strip-h { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tool-strip-p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); margin-top: 3px; }
.tool-strip-p .stars { color: var(--gold); letter-spacing: 1px; }
.tool-strip-btn {
  flex: none; background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; transition: transform .15s;
}
.tool-strip-btn:hover { transform: translateY(-1px); }
.tools-prose { max-width: none; margin-top: 56px; }

/* página da calculadora */
.calc {
  margin-top: 28px; padding: 22px 26px 18px; border-radius: 26px; border: 1px solid #2c2c30;
  background: linear-gradient(170deg, color-mix(in srgb, var(--tool-tint) 40%, var(--card)) 0%, var(--tool-tint) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -26px rgba(0, 0, 0, 0.3); scroll-margin-top: 90px;
}
.calc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(245, 245, 247, 0.6); }
.calc-brand { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; line-height: 20px; color: rgba(245, 245, 247, 0.42); }
.calc-brand picture { display: flex; }
.calc-logo { display: block; border-radius: 5px; filter: grayscale(1); opacity: .55; }
.calc-stage { padding-top: 20px; }
.calc-form { display: flex; flex-direction: column; gap: 26px; }
.calc-q { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.calc-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(65, 116, 84, 0.2); color: var(--link); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.calc-hint { font-size: 14px; color: var(--muted); margin: 4px 0 0 40px; }
.calc-f > .calc-field, .calc-f > .calc-opts, .calc-f > .calc-stepper, .calc-f > .calc-chips, .calc-f > .calc-err { margin-left: 40px; }
.calc-field { display: flex; align-items: center; max-width: 280px; margin-top: 12px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--card); border: 1.5px solid #2c2c30; transition: border-color .15s; }
.calc-f-bad .calc-field, .calc-f-bad .calc-opts button { border-color: #ff7a70; }
.calc-err { font-size: 14px; color: #ff7a70; margin-top: 8px; }
.calc-opts button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
.calc-opts button[aria-pressed="true"] strong { color: #fff; }
.calc-opts button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
.calc-opts button:not([aria-pressed="true"]):hover { border-color: var(--tool-accent); }
.calc-go-row { margin: 28px 0 0 40px; }
.calc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 26px 16px; align-items: end; }
.calc-row-1 { grid-template-columns: minmax(0, 280px); }
.calc-row-3 { grid-template-columns: repeat(3, minmax(0, 240px)); }
.calc-plain .calc-hint, .calc-plain .calc-go-row, .calc-plain .calc-f > .calc-opts, .calc-plain .calc-f > .calc-chips, .calc-plain .calc-f > .calc-field, .calc-plain .calc-f > .calc-stepper, .calc-plain .calc-f > .calc-err { margin-left: 0; }
.calc-plain .calc-q { font-size: 16px; }
.calc-plain .calc-field { max-width: none; margin-top: 10px; }
.calc-plain .calc-stepper, .calc-plain .calc-opts { margin-top: 10px; }
.calc-go { height: 48px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--grad); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s; }
.calc-go:hover { filter: brightness(1.08); }
.calc-result { margin-top: 26px; padding: 22px 22px 18px; border-radius: 20px; background: rgba(0, 0, 0, 0.32); scroll-margin-top: 90px; animation: calcIn .35s cubic-bezier(.23,1,.32,1); transition: opacity .2s; }
.calc-result[hidden] { display: none; }
.calc-stale { opacity: .45; }
@keyframes calcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calc-field:focus-within { border-color: var(--tool-accent); }
.calc-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 19px; font-weight: 600; color: var(--ink); }
.calc-unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.calc-stepper { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 5px; border-radius: 14px; background: var(--card); border: 1.5px solid #2c2c30; }
.calc-stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bg-soft); font-size: 22px; color: var(--ink); cursor: pointer; }
.calc-stepper output { min-width: 64px; text-align: center; font-size: 20px; font-weight: 600; }
.calc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; max-width: 640px; }
.calc-opts button { text-align: left; padding: 13px 16px; border-radius: 14px; border: 1.5px solid #2c2c30; background: var(--card); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.calc-opts strong { display: block; font-size: 15.5px; color: var(--ink); }
.calc-opts span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.res-top { display: flex; justify-content: space-between; gap: 24px; }
.res-big { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; outline: none; }
.res-big span { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.res-big em { font-style: normal; color: rgba(245, 245, 247, 0.3); margin: 0 4px; }
.res-big small { font-size: 17px; font-weight: 600; color: rgba(245, 245, 247, 0.4); }
.res-lead { font-size: 15.5px; line-height: 1.6; color: #c8c8cf; margin-top: 12px; max-width: 60ch; }
.res-side { display: flex; gap: 22px; text-align: right; flex: none; }
.res-side dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 245, 247, 0.42); }
.res-side dd { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.res-side [hidden] { display: none; }
.res-dial { margin: 18px auto 0; max-width: 380px; padding: 14px 14px 10px; border-radius: 20px; background: var(--card); }
.res-dial svg { width: 100%; display: block; }
.dial-num { font-size: 44px; font-weight: 700; fill: var(--ink); letter-spacing: -1px; }
.dial-u { font-size: 18px; fill: rgba(245, 245, 247, 0.4); }
.dial-cap { font-size: 10px; font-weight: 600; letter-spacing: 1.6px; fill: rgba(245, 245, 247, 0.42); }
.dial-legend { display: flex; justify-content: space-between; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: -4px; }
.dial-legend span:last-child { text-align: right; }
.dial-you { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.dial-you i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.res-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.tool-more { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.tool-more a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.tool-body { margin-top: 52px; }
.tool-body .prose { margin-top: 36px; }

@media (max-width: 1000px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .tools-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tool-card { min-height: 0; }
  .tool-viz svg { max-height: 120px; }
  .tool-strip { flex-wrap: wrap; }
  .tool-strip-btn { width: 100%; text-align: center; }
  .calc { padding: 18px 16px 14px; border-radius: 22px; }
  .calc-hint, .calc-go-row { margin-left: 0; }
  .calc-f > .calc-field, .calc-f > .calc-opts, .calc-f > .calc-stepper, .calc-f > .calc-chips, .calc-f > .calc-err { margin-left: 0; }
  .calc-field { max-width: none; }
  .calc-go { width: 100%; }
  .calc-row, .calc-row-1, .calc-row-3 { grid-template-columns: minmax(0, 1fr); }
  .calc-result { padding: 18px 16px 14px; }
  .calc-opts { grid-template-columns: minmax(0, 1fr); }
  .res-top { flex-direction: column; gap: 14px; }
  .res-side { text-align: left; }
}
/* calculadoras: peças das demais ferramentas */
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calc-chips button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid #2c2c30; background: var(--card); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.calc-chips button:hover { border-color: var(--tool-accent); }
.calc-field-date { max-width: 240px; }
.calc-field-date input { font-size: 17px; }
.res-viz { margin: 18px auto 0; max-width: 560px; padding: 16px 16px 12px; border-radius: 20px; background: var(--card); }
.res-viz:empty { display: none; }
.res-viz > svg { width: 100%; display: block; }
.res-viz .res-dial { margin: 0 auto; padding: 0; background: none; max-width: 360px; }
.viz-t { font-size: 11px; font-weight: 600; fill: rgba(245, 245, 247, 0.5); }
.viz-b { fill: var(--ink); font-weight: 600; }
.res-warn { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(240, 169, 33, 0.1); border: 1px solid rgba(240, 169, 33, 0.35); color: #f2dca0; font-size: 14.5px; line-height: 1.55; }
.calc-opts-1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 680px) {
}

/* cards de ferramenta dentro dos posts (30/11/2026) */
.tool-inline { background: linear-gradient(140deg, color-mix(in srgb, var(--tool-tint) 55%, var(--card)) 0%, var(--tool-tint) 100%); align-items: center; }
/* Sem padding-bottom próprio (dono, 01/12/2026): o espaço do botão até a borda
   de baixo vem do .app-card-body, igual ao card do cardápio. */
.tool-inline .banner-eyebrow { color: var(--tool-accent); }
.prose .tool-inline-btn, .tool-inline-btn { background: var(--ink); color: #050505; }
.prose .tool-inline-btn:hover, .tool-inline-btn:hover { background: #fff; color: #050505; }
.tool-inline-viz { flex: none; width: 130px; align-self: center; margin-right: 6px; }
.tool-inline-viz svg { width: 100%; display: block; }
/* Desenhos largos (onda, linha, barra, gotas): mais largura, senão ficam miúdos. */
.tool-inline-viz-wide { width: 170px; }
.tool-row {
  display: flex; align-items: center; gap: 14px; margin-top: 44px; padding: 16px 16px 16px 20px;
  border-radius: 16px; border: 1px solid #2c2c30; background: var(--card-2); color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.tool-row:hover { border-color: var(--primary); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.4); }
.tool-row-ico { flex: none; color: var(--link); }
.tool-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.tool-row-txt strong { font-size: 15.5px; font-weight: 600; }
.tool-row-txt span { font-size: 14px; color: var(--muted); }
.tool-row-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1.5px solid var(--primary); border-radius: 999px; background: var(--card);
  color: var(--link); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.tool-row:hover .tool-row-btn { background: var(--primary); color: #fff; }
.tool-row + .sources { margin-top: 28px; }
@media (max-width: 680px) {
  .tool-inline-viz { display: none; }
  .tool-row { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .tool-row-txt { flex-basis: calc(100% - 36px); }
  .tool-row-btn { width: 100%; justify-content: center; }
}

/* calculadora de dose: a tela do app (DoseCalculatorScreen) no site */
@media (max-width: 960px) {
}
@media (max-width: 680px) {
}

/* remédio no corpo: seletores e gráfico interativo (sem moldura, 30/11/2026) */
.calc-select { position: relative; }
.calc-select select { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer; }
.calc-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #6b6b73; border-bottom: 2px solid #6b6b73; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.calc-sub { margin-top: 10px; }
.calc-sub .calc-field { margin-top: 0; }
.res-viz:has(.mj-chart) { max-width: none; padding: 0; background: none; border-radius: 0; margin-top: 22px; }
.mj-chart { position: relative; width: 100%; touch-action: pan-y; }
.mj-chart svg { display: block; overflow: visible; }
.mc-t { font-size: 11.5px; font-weight: 600; fill: rgba(245, 245, 247, 0.45); }
.mc-b { fill: rgba(245, 245, 247, 0.7); }
.mc-hit { cursor: crosshair; }
.mc-tip { position: absolute; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: #2c2c30; color: #fff; font-size: 12.5px; line-height: 1.3; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
.mc-tip strong { display: block; font-size: 16px; }
.mc-tip span { color: rgba(255, 255, 255, 0.7); }
.mc-pt { position: absolute; transform: translate(10px, -26px); font-size: 13px; font-weight: 600; color: var(--ink); pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.mc-pt-l { transform: translate(calc(-100% - 10px), -26px); }
.mc-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* IMC: régua das faixas da OMS (30/11/2026) */
.res-viz:has(.bmi-gauge) { max-width: none; padding: 0; background: none; border-radius: 0; margin-top: 26px; }
.bmi-gauge { position: relative; padding-top: 46px; }
.bmi-pin { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.bmi-pin span { padding: 5px 11px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.bmi-pin::after { content: ""; width: 2px; height: 14px; background: var(--ink); margin-top: 2px; border-radius: 2px; }
.bmi-bar { display: flex; gap: 4px; }
.bmi-seg { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bmi-seg i { display: block; height: 12px; border-radius: 999px; background: var(--c); opacity: .28; transition: opacity .2s; }
.bmi-seg.on i { opacity: 1; height: 16px; margin-top: -2px; }
.bmi-seg em { font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.25; color: rgba(245, 245, 247, 0.45); text-align: center; padding: 0 2px; margin-top: 18px; }
.bmi-seg.on em { color: var(--ink); }
.bmi-ticks { position: absolute; left: 0; right: 0; top: 70px; height: 16px; }
.bmi-ticks span { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: rgba(245, 245, 247, 0.5); font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .bmi-seg em { display: none; }
  .bmi-gauge { padding-bottom: 26px; }
}

/* calorias: régua de energia (30/11/2026) */
.res-viz:has(.cal-gauge) { max-width: none; padding: 0; background: none; border-radius: 0; margin-top: 26px; }
.cal-gauge { position: relative; padding: 50px 0 0; }
.cal-lab { position: absolute; transform: translateX(-50%); text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cal-lab small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(245, 245, 247, 0.45); }
.cal-lab-top { top: 0; }
.cal-lab-bot { top: 92px; }
.cal-lab-bot small { color: var(--tool-accent); }
.cal-track { position: relative; height: 22px; border-radius: 999px; background: rgba(245, 245, 247, 0.07); }
.cal-band { position: absolute; top: -6px; bottom: -6px; border-radius: 8px; border: 1.5px dashed rgba(245, 245, 247, 0.35); }
.cal-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--tool-accent); }
.cal-def { position: absolute; top: 0; bottom: 0; border-radius: 0 999px 999px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tool-accent) 32%, transparent) 0 5px, transparent 5px 10px); }
.cal-tdee { position: absolute; top: -14px; bottom: -6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.cal-ticks { position: relative; height: 18px; margin-top: 64px; }
.cal-ticks span { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: rgba(245, 245, 247, 0.45); font-variant-numeric: tabular-nums; }
.cal-ticks span:first-child { transform: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-k-fill { background: var(--tool-accent); }
.cal-k-def { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--tool-accent) 45%, transparent) 0 3px, transparent 3px 6px); border: 1px solid color-mix(in srgb, var(--tool-accent) 45%, transparent); }
.cal-k-band { border: 1.5px dashed rgba(245, 245, 247, 0.4); }
.cal-ticks span:last-child { transform: translateX(-100%); }

/* água: copos e divisão do dia (30/11/2026) */
.res-viz:has(.water-viz) { max-width: none; padding: 0; background: none; border-radius: 0; margin-top: 24px; }
.wv-glasses { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.wv-glasses svg { display: block; }
.wv-cap { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.wv-h { margin-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 245, 247, 0.45); }
.wv-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.wv-p { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--tool-accent) 12%, var(--card)); display: flex; flex-direction: column; gap: 2px; }
.wv-p span { font-size: 13px; font-weight: 600; color: var(--muted); }
.wv-p strong { font-size: 20px; font-weight: 600; color: var(--ink); }
.wv-p small { font-size: 12.5px; color: var(--muted); }
.wv-p strong { white-space: nowrap; }
@media (max-width: 440px) { .wv-split { gap: 8px; } .wv-p { padding: 11px 10px; } .wv-p strong { font-size: 15.5px; } }

/* ═══════════════════════════ SÓ DO PUMPX ═══════════════════════════════ */
/* Selos das lojas no desenho do style.css (index.html). Enquanto o app não
   está publicado, são <span class="store soon"> e não respondem ao toque. */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000; border-radius: 14px; padding: 10px 20px 10px 16px;
  transition: transform .15s ease;
}
a.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .7; }
.store strong { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.store.soon { background: transparent; color: var(--ink); border: 1px solid var(--border); cursor: default; }
.app-banner .store.soon { border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.store-sm { padding: 7px 14px 7px 11px; border-radius: 11px; gap: 9px; }
.store-sm svg { width: 20px; height: 20px; }
.store-sm strong { font-size: 14.5px; }
.store-sm small { font-size: 10px; }

/* Botão "Baixar grátis" do topo, igual ao da página inicial. */
.btn-grad {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(227, 32, 27, 0.35); transition: transform .15s, box-shadow .15s;
}
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(227, 32, 27, 0.5); }
.nav-cta { background: var(--grad) !important; }
.chip-link.is-active, .pager .is-current, .feature-cta, .app-card-btn, .dock-cta, .nf-cta { background: var(--grad); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

/* Botão do cartão do app da lateral . */
.side-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px;
  height: 44px; border-radius: 999px; background: var(--grad); color: #fff;
  font-size: 14.5px; font-weight: 600;
}
.side-btn:hover { filter: brightness(1.08); }

/* Telas do app (img/tela-*.webp, sem moldura): a moldura é daqui. */
/* As telas (img/tela-*.webp) já vêm com o celular desenhado: só o canto. */
.phone img { border-radius: 22px 22px 0 0; }

/* Divisão do prato (calculadora de calorias). */
.macro-bar { margin-top: 4px; }
.macro-bar .wv-h { margin-top: 0; }
.mb-track { display: flex; gap: 4px; height: 16px; margin-top: 12px; }
.mb-track span { border-radius: 6px; }
.mb-leg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mb-p {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
  background: var(--card-2);
}
.mb-p i { width: 10px; height: 10px; border-radius: 3px; display: block; margin-bottom: 4px; }
.mb-p span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mb-p strong { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.mb-p small { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) {
  .mb-leg { grid-template-columns: 1fr; }
  .mb-p { flex-direction: row; align-items: baseline; gap: 8px; }
  .mb-p i { margin: 0; align-self: center; }
  .mb-p strong { font-size: 17px; margin-left: auto; }
}
.app-banner .banner-eyebrow { color: var(--link); }
