/* ─────────────────────────────────────────────────────────
   RepFit — Hub de ferramentas gratuitas
   Tokens e componentes alinhados com o index.html da landing.
   Escrito à mão: build-tools.py gera o HTML, não este arquivo.
   ───────────────────────────────────────────────────────── */

/* Mesma fonte da home, servida do nosso domínio: o Google Fonts custava dois
   requests bloqueantes antes da primeira pintura. */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/fonts/geist-var.woff2) format('woff2');
}

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-150: #e8edf3;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --green-50: #dcfce7;
    --green-100: #bbf7d0;
    --green-300: #86efac;
    --green-600: #16a34a;
    --green-700: #15803d;
    --primary: var(--blue-600);
    --text: var(--slate-900);
    --text-muted: var(--slate-600);
    --text-subtle: var(--slate-500);
    --border: var(--slate-150);
    --bg: #ffffff;
    --bg-soft: var(--slate-50);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body {
    margin: 0; padding: 0;
    font-family: "Geist", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Banner do topo ──────────────────────────────────── */
.promo {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(100deg, var(--blue-50), #f5f8ff 60%, #fff);
    border-bottom: 1px solid var(--blue-100);
}
.promo-inner { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.promo-mark { flex-shrink: 0; }
.promo-mark img { display: block; border-radius: 9px; }
.promo-text {
    flex: 1; min-width: 0; margin: 0;
    font-size: 14.5px; color: var(--text-muted); line-height: 1.5;
}
.promo-text strong { display: block; color: var(--text); font-weight: 600; font-size: 15.5px; }
.promo .btn { flex-shrink: 0; white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; }

/* ── Botões ──────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px; border-radius: 8px;
    font-size: 14px; font-weight: 500; border: 1px solid transparent;
    cursor: pointer; transition: all 150ms; letter-spacing: -0.005em;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-outline { background: #fff; border-color: var(--slate-200); color: var(--text); }
/* Verde é a cor do que é gratuito aqui (os selos do topo usam o mesmo
   tom): separa a ação da ferramenta dos CTAs azuis do RepFit. */
.btn-green { background: var(--green-50); border-color: var(--green-300); color: var(--green-700); gap: 8px; }
.btn-green:hover { background: var(--green-100); border-color: var(--green-600); }
.btn-green svg { transition: transform 150ms; }
.btn-green:hover svg { transform: translateX(3px); }
.btn-outline:hover { border-color: var(--slate-300); background: var(--slate-50); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; font-weight: 600; }

.eyebrow {
    font-size: 12.5px; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}

/* ── Selo de gratuidade ──────────────────────────────── */
.free-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.free-badges li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: #fff; color: var(--text); border: 1px solid var(--border);
    font-size: 12.5px; font-weight: 600;
}
.free-badges svg { color: var(--green-600); }

/* ── Hub ─────────────────────────────────────────────── */
.hub-hero {
    padding: 56px 0 44px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
}
.hub-hero h1 { font-size: 42px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 16px; max-width: 780px; }
.hub-hero .desc { font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0; line-height: 1.55; }
.hub-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hub-pills a {
    padding: 8px 14px; border-radius: 999px; background: #fff;
    border: 1px solid var(--slate-200); font-size: 13.5px; font-weight: 500; color: var(--text-muted);
}
.hub-pills a:hover { border-color: var(--blue-200); color: var(--primary); background: var(--blue-50); }

.cat { padding: 52px 0 8px; }
.cat-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.cat-ic {
    display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
    border-radius: 12px; background: var(--blue-50); font-size: 21px;
}
.cat-head h2 { font-size: 25px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 4px; }
.cat-head p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.cat-count {
    margin-left: auto; flex-shrink: 0; align-self: center;
    font-size: 12px; font-weight: 600; color: var(--text-subtle);
    background: var(--slate-100); border-radius: 999px; padding: 5px 11px;
}

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
    position: relative; display: block; padding: 20px 42px 20px 20px;
    border: 1px solid var(--border); border-radius: 14px;
    background: #fff; transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
a.tool-card:hover {
    border-color: var(--blue-200);
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}
.tool-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.tool-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }
/* O chevron fica no canto do card, não colado no texto: o card inteiro é o
   link, e a seta só sinaliza isso. */
.card-go {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--primary); transition: transform 150ms;
}
a.tool-card:hover .card-go { transform: translateY(-50%) translateX(3px); }
.card-soon { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--slate-400); }
.tool-card.is-soon { background: var(--slate-50); border-style: dashed; }
.tool-card.is-soon h3 { color: var(--slate-500); }

.hub-cta {
    margin: 64px 0 72px; padding: 40px; border-radius: 18px;
    background: linear-gradient(160deg, var(--blue-50), var(--bg-soft));
    border: 1px solid var(--border); text-align: center;
}
.hub-cta h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; }
.hub-cta p { font-size: 15.5px; color: var(--text-muted); max-width: 620px; margin: 0 auto 24px; line-height: 1.6; }
.hub-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Página de ferramenta ────────────────────────────── */
.tool-page { padding-bottom: 72px; }
/* Uma coluna só: título, texto, formulário e cards terminam todos na mesma
   linha à direita. Larguras diferentes por bloco criavam degraus. O respiro
   extra em relação à home vem de o texto ser corrido — e é o formulário que
   ganha uma coluna a mais de campos em vez de esticar cada input. */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; align-items: start; }
.tool-main { min-width: 0; }

.tool-aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 14px; }
.aside-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: #fff; }
.aside-card h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-subtle); margin: 0 0 12px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { padding: 6px 0; font-size: 14px; }
.aside-card li a { color: var(--text); font-weight: 500; }
.aside-card li a:hover { color: var(--primary); }
.aside-card .soon { color: var(--slate-400); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.aside-card .soon em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0; }
.aside-all { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }
.aside-card.is-promo { background: linear-gradient(165deg, var(--blue-50), #fff); border-color: var(--blue-100); }
.aside-card.is-promo strong { display: block; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 6px; }
.aside-card.is-promo p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0 0 14px; }
.aside-card.is-promo .btn { width: 100%; }

/* Celular espiando de dentro do card: só a parte de cima do aparelho, com a
   tela cortada embaixo, para dar ideia do produto sem esticar a coluna. */
.aside-phone {
    position: relative; width: 180px; height: 230px; margin: 4px auto 16px;
    overflow: hidden;
}
.aside-phone-screen {
    position: absolute; inset: 0 0 -70px 0;
    border: 6px solid #1e293b; border-radius: 22px 22px 8px 8px;
    background: #0b0e13; overflow: hidden;
    box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.5);
}
.aside-phone-screen::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 34%; height: 7px; background: #1e293b; border-radius: 0 0 6px 6px; z-index: 2;
}
.aside-phone img { display: block; width: 100%; height: auto; }
.aside-phone::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 20px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0), var(--blue-50) 85%);
}

/* Convite para outra ferramenta no meio do texto. */
.inline-tool {
    display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px;
    border: 1px solid var(--blue-100); border-radius: 12px; background: var(--blue-50);
    transition: border-color 150ms, transform 150ms;
}
.inline-tool:hover { border-color: var(--blue-500); transform: translateY(-1px); }
.inline-tool-ic { color: var(--primary); font-size: 17px; font-weight: 700; }
.inline-tool span span { display: block; }
.inline-tool strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.inline-tool span span { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.tool-head { padding: 26px 0 30px; }
.tool-head h1 { font-size: 38px; line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 18px; }
.tool-head .lead p { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; }
.tool-head .lead p:last-child { margin-bottom: 0; }

/* ── Calculadora ─────────────────────────────────────── */
.tool {
    border: 1px solid var(--border); border-radius: 18px; background: #fff;
    box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.25); overflow: hidden;
}
.tool-form { padding: 26px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field[hidden] { display: none; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--slate-700); }
.field-help { font-size: 12px; color: var(--text-subtle); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .unit {
    position: absolute; right: 14px; font-size: 13px; color: var(--text-subtle);
    font-weight: 500; pointer-events: none;
}
.tool input[type="number"], .tool select {
    width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
    border: 1px solid var(--slate-200); background: #fff;
    font-size: 15.5px; color: var(--text);
    transition: border-color 150ms, box-shadow 150ms;
    -moz-appearance: textfield;
}
.tool input[type="number"]::-webkit-outer-spin-button,
.tool input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tool input:focus, .tool select:focus {
    outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100);
}
.tool select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
    padding-right: 38px;
}
.segmented { display: grid; grid-auto-flow: column; gap: 6px; padding: 4px; background: var(--slate-100); border-radius: 10px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
    display: block; text-align: center; padding: 9px 10px; border-radius: 7px;
    font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all 150ms;
}
.seg input:checked + span { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-200); }

.tool-actions { display: flex; gap: 10px; margin-top: 22px; }
.tool-error { margin: 14px 0 0; font-size: 13.5px; color: #b91c1c; font-weight: 500; }
.tool-error[hidden] { display: none; }

.tool-result { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 26px; }
.tool-result[hidden] { display: none; }
.result-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result-main .value { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; color: var(--primary); line-height: 1; }
.result-main .unit { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.result-label { font-size: 13.5px; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.result-note { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 14px 0 0; }
.result-rows { margin: 20px 0 0; border-top: 1px solid var(--border); }
.result-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px;
}
.result-row .k { color: var(--text-muted); }
.result-row .v { font-weight: 600; }
.result-row.is-active .k { color: var(--text); font-weight: 600; }
.result-row.is-active .v { color: var(--primary); }

/* ── Documento gerado (anamnese, fichas) ─────────────── */
.field-wide { grid-column: 1 / -1; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-700); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.share {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
}
.share .btn svg { margin-right: 2px; }

.doc-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.doc-acoes > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.doc-acoes strong { font-size: 15px; letter-spacing: -0.02em; }
.doc-acoes span { font-size: 13px; color: var(--text-muted); }

.doc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.doc-head { border-bottom: 2px solid var(--text); padding-bottom: 14px; margin-bottom: 22px; }
.doc-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.doc-quem { font-size: 14px; color: var(--text-muted); margin: 4px 0 0; }
.doc-secao { margin-bottom: 22px; break-inside: avoid; }
.doc-secao h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.doc-perguntas { list-style: none; margin: 0; padding: 0; }
.doc-perguntas li { font-size: 13.5px; color: var(--slate-700); margin-bottom: 14px; }
/* Altura da linha é o espaço de escrita à mão: apertado demais e ninguém
   consegue preencher a ficha impressa. */
.doc-linha { display: block; margin-top: 6px; border-bottom: 1px solid var(--slate-200); height: 26px; }
.revisado {
    font-size: 13px; color: var(--text-muted); margin: 14px 0 0;
    display: flex; align-items: center; gap: 7px;
}
.revisado::before {
    content: ""; width: 15px; height: 15px; flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.doc-perguntas.is-duas { columns: 2; column-gap: 28px; }
.doc-perguntas.is-duas li { break-inside: avoid; }
.pauta-titulo { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.pauta-gancho { font-size: 13.5px; color: var(--text-muted); font-style: italic; margin: 0 0 8px; }
.pauta-pontos { margin: 0; padding-left: 18px; }
.pauta-pontos li { font-size: 13.5px; color: var(--slate-700); line-height: 1.6; margin-bottom: 4px; }

.legendas { display: grid; gap: 12px; }
.legenda { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.legenda-topo {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fff;
}
.legenda-topo span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.legenda-texto { padding: 14px 16px; }
.legenda-texto p { font-size: 14.5px; line-height: 1.65; color: var(--slate-700); margin: 0 0 12px; }
.legenda-texto p:last-child { margin: 0; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.planilhas { display: grid; gap: 10px; }
.planilha {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
    background: var(--bg-soft);
}
.planilha > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.planilha strong { font-size: 15px; letter-spacing: -0.02em; }
.planilha span { font-size: 13px; color: var(--text-muted); }
.planilha-colunas { font-size: 12px !important; color: var(--text-subtle) !important; line-height: 1.5; }

.doc-tabela { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.doc-tabela th {
    text-align: left; font-weight: 600; color: var(--text-muted);
    border-bottom: 1px solid var(--slate-300); padding: 6px 8px 6px 0;
}
.doc-tabela td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--border); color: var(--slate-700); }
.doc-tabela td:last-child { border-bottom: 1px solid var(--slate-400); min-width: 58px; }
.doc-texto { position: absolute; left: -9999px; }

.doc-campos { font-size: 13.5px; color: var(--text-muted); margin: 14px 0 0; }
.doc-p { font-size: 13.5px; color: var(--slate-700); line-height: 1.7; margin: 0; text-align: justify; }
/* Espaço entre a linha da assinatura e o nome, para caber a caneta. */
.doc-assina { font-size: 13.5px; color: var(--slate-700); line-height: 1.7; margin: 34px 0 0; }

/* Margem zero na página tira o cabeçalho e o rodapé que o navegador carimba
   sozinho (título, URL, data, número da página). A margem da folha volta como
   padding do documento. */
@page { margin: 0; }

/* Na impressão sobra só a ficha, sem banner, formulário ou rodapé. */
@media print {
    .promo, .tool-form, .tool-aside, .doc-acoes, .share, .planilhas, .legendas, .next-step, .cta-tool,
    .related, .prose, .faq, .all-tools, .tool-head, footer { display: none !important; }
    .tool, .tool-result { border: 0; box-shadow: none; padding: 0; background: #fff; }
    .doc { border: 0; box-shadow: none; background: #fff; padding: 16mm 14mm; }
    .doc-secao { page-break-inside: avoid; }
    .doc-perguntas li { margin-bottom: 18px; }
    .doc-perguntas.is-duas { columns: 2; }
    .doc-linha { height: 30px; }
    .doc-tabela { font-size: 11.5px; }
    .doc-tabela td { padding: 7px 6px 7px 0; }
}

/* ── Próximo passo, CTA e relacionadas ───────────────── */
.next-step {
    display: flex; align-items: center; gap: 16px; padding: 18px 26px;
    border-top: 1px solid var(--blue-100); background: var(--blue-50);
    transition: background 150ms;
}
.next-step[hidden] { display: none; }
.next-step:hover { background: #dbe8ff; }
.next-step > div { display: flex; flex-direction: column; gap: 3px; }
.next-eyebrow { font-size: 11.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.next-step strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.next-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.next-step svg { margin-left: auto; flex-shrink: 0; color: var(--primary); }

.cta-tool {
    display: flex; align-items: stretch; gap: 0; margin-top: 16px;
    border: 1px solid var(--border); border-radius: 14px;
    background: linear-gradient(215deg, #e6eefe 0%, #f2f6ff 28%, #fff 58%);
    overflow: hidden; transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.cta-tool:hover {
    border-color: var(--blue-200);
    box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}
.cta-body { flex: 1; min-width: 0; padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.cta-tool h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.cta-tool p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.cta-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    font-size: 14px; font-weight: 600; color: var(--primary);
}
.cta-link svg { transition: transform 150ms; }
.cta-tool:hover .cta-link svg { transform: translateX(3px); }

/* A tela ocupa 40% do card, num notebook que sai pela borda direita: cortar
   parte do aparelho sugere continuidade e evita a moldura inteira encolhida. */
.cta-shot { flex: 0 0 40%; position: relative; overflow: hidden; }
.cta-mac {
    position: absolute; left: 22px; top: 20px; width: 125%;
    background: linear-gradient(150deg, #4a5162, #2b303b 40%, #14181f);
    border-radius: 10px; padding: 6px 6px 0;
    box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.55);
}
.cta-mac img { display: block; width: 100%; height: auto; border-radius: 5px 5px 0 0; }

.related { margin-top: 44px; }
.related h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 16px; }
.related .tool-grid { grid-template-columns: repeat(2, 1fr); }
.related .tool-card p { margin-bottom: 0; }

/* ── Conteúdo ────────────────────────────────────────── */
.prose { margin-top: 52px; }
.prose-section { margin-bottom: 40px; }
.prose h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.2; }
.prose h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; margin: 28px 0 10px; }
.prose h4 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.prose p { font-size: 16.5px; color: var(--slate-700); line-height: 1.75; margin: 0 0 17px; }
.prose ul, .prose ol { font-size: 16px; color: var(--slate-700); line-height: 1.7; padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--blue-700); }
.prose strong { font-weight: 600; color: var(--text); }
.callout {
    padding: 16px 18px; border-radius: 12px; background: var(--blue-50);
    border: 1px solid var(--blue-100); margin: 0 0 18px;
}
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; background: var(--slate-50); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { margin-top: 52px; }
.faq > h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 18px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex-shrink: 0; width: 9px; height: 9px;
    border-right: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400);
    transform: rotate(45deg) translateY(-2px); transition: transform 150ms;
}
.faq-item[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq-item summary h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { font-size: 15.5px; color: var(--slate-700); line-height: 1.7; margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

.all-tools { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); }
.all-tools h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.all-tools p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.all-tools a { color: var(--primary); font-weight: 500; }

/* ── Rodapé ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; margin-bottom: 40px; }
.foot-brand p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 14px 0 0; max-width: 280px; }
.foot-col h4 { font-size: 13px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.foot-col a { display: block; font-size: 13.5px; color: var(--text-muted); padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
.foot-col.is-wide { grid-column: span 2; }
.foot-col.is-wide .foot-links { columns: 2; column-gap: 28px; }
.foot-bottom {
    border-top: 1px solid var(--border); padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 12.5px; color: var(--text-subtle);
}
.foot-social a {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
    border-radius: 8px; background: var(--slate-100); color: var(--text-muted);
    font-size: 13px; font-weight: 500;
}
.foot-social a:hover { background: var(--slate-150); color: var(--text); }

/* ── Responsivo ──────────────────────────────────────── */
@media (max-width: 1100px) {
    /* Sem espaço para a coluna fixa, ela vira o fecho da página. */
    .tool-layout { grid-template-columns: 1fr; gap: 32px; }
    .tool-aside { position: static; }
}

@media (max-width: 900px) {
    .tool-grid, .related .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .hub-hero h1 { font-size: 32px; }
    .tool-head h1 { font-size: 30px; }
    .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
    .cta-tool { flex-direction: column; }
    .cta-shot { flex: 0 0 160px; order: -1; }
    .cta-mac { left: 24px; top: 22px; width: 115%; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 18px; }
    /* No celular a faixa vira bloco: a frase inteira acima, o botão largo
       embaixo — encolher os três numa linha só espremeria todos. */
    .promo-inner { flex-wrap: wrap; gap: 12px; }
    .promo-mark { display: none; }
    .promo-text { flex: 1 1 100%; font-size: 14px; }
    .promo .btn { width: 100%; }
    .hub-hero { padding: 36px 0 32px; }
    .hub-hero h1 { font-size: 27px; }
    .hub-hero .desc { font-size: 15.5px; }
    .cat { padding: 36px 0 4px; }
    .cat-head h2 { font-size: 21px; }
    .cat-count { display: none; }
    .tool-grid, .related .tool-grid { grid-template-columns: 1fr; gap: 12px; }
    .tool-head h1 { font-size: 26px; }
    .tool-head .lead p { font-size: 15.5px; }
    .fields { grid-template-columns: 1fr; gap: 15px; }
    .checks { grid-template-columns: 1fr; }
    .tool-form, .tool-result { padding: 20px; }
    .tool-actions { flex-direction: column; }
    .tool-actions .btn { width: 100%; }
    .result-main .value { font-size: 36px; }
    .prose h2, .faq > h2 { font-size: 22px; }
    .prose p, .prose ul, .prose ol { font-size: 15.5px; }
    .hub-cta { padding: 28px 22px; margin: 44px 0 52px; }
    .hub-cta h2 { font-size: 22px; }
    .foot { grid-template-columns: 1fr; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
    .nav-cta .cta-extra { display: none; }
}
