/* ==========================================================================
   Profluxus — folha de impressão (e "Salvar como PDF")
   Carregada com media="print" por último no <head>. A tela não muda.
   Objetivo: o conteúdo em fluxo normal, em papel branco, sem menus, botões,
   animações, carrosséis nem elementos fixos (que o navegador repete ou
   recorta em cada página), sem cortar blocos e com os links visíveis.
   ========================================================================== */
@page { size: A4; margin: 14mm 13mm 16mm; }

/* cores de papel, em qualquer tema e modelo do site */
:root, :root[data-theme], :root[data-theme="light"], :root[data-modelo] {
  --ink: #fff; --ink-2: #fff; --ink-card: #fff; --card: #fff; --card-2: #fff;
  --paper: #1A1213; --paper-card: #fff; --paper-dim: #4A4042;
  --line-dark: #D9D0D0; --line-light: #D9D0D0; --line: #D9D0D0;
  --txt-dark: #1A1213; --txt-dark-mut: #3F3537; --muted: #5B5052;
  --txt-light: #1A1213; --txt-light-mut: #3F3537;
  --heading: #000; --brand-2: #81212C; --gold: #7A5A12;
  --nav-bg: #fff; --menu-bg: #fff;
}

html, body {
  background: #fff !important; color: #1A1213 !important;
  overflow: visible !important; height: auto !important;
  font-size: 11pt; line-height: 1.5;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
*, *::before, *::after {
  animation: none !important; transition: none !important;
  box-shadow: none !important; text-shadow: none !important;
  backdrop-filter: none !important;
}

/* ---- o que não vai para o papel ---- */
header.nav, .nav-gatilho, .mobile-menu, .mega, .burger, .theme-toggle, .nav-cta,
.modal-back, .modal, .lbox, .btn, .actions, button, form, input, select, textarea,
.shots, .shots-nav, .shots-dots, .hm-abas, .hm-prompt, .hm-exemplos,
.hero-img, .hero-veu, .hero-glow, .hero-grid, .strip,
video, iframe, audio, canvas, noscript,
footer .foot-top, footer .foot-legal,
[aria-hidden="true"]:not(svg):not(svg *),
.docs-dev, .md-lado .btn {
  display: none !important;
}

/* ---- tudo visível e em fluxo normal ---- */
/* a home esconde o conteúdo até o quiz ser respondido: no papel vai tudo, sem o quiz */
#lockedContent { display: block !important; }
#descobrir, #quiz { display: none !important; }
.hm-painel[hidden] { display: block !important; }
.reveal, .reveal.in { opacity: 1 !important; transform: none !important; }
[style*="position:fixed"], [style*="position: fixed"],
[style*="position:sticky"], [style*="position: sticky"],
.md-lado { position: static !important; }
.hm-painel { display: block !important; margin-top: 8mm; }
.hm-shot.vazia, .hm-figura.vazia { display: none !important; }   /* "Imagem em breve" */
#app .wrap > div:last-child:not(:first-child) { display: none !important; } /* imagem do celular, decorativa */

/* sem altura de tela, sem margens de vitrine */
.hero, .hero-foto, .md-hero, .section {
  min-height: 0 !important; height: auto !important;
  padding: 6mm 0 !important; background: none !important; overflow: visible !important;
}
.hero { padding-top: 0 !important; }
.wrap { max-width: none !important; padding: 0 !important; }
body > section:first-of-type, main > section:first-of-type { padding-top: 0 !important; }

/* texto: legível no papel */
h1, .hero h1 { font-size: 22pt !important; max-width: none !important; color: #000 !important; }
h2 { font-size: 16pt !important; color: #000 !important; }
h3 { font-size: 13pt !important; color: #000 !important; }
h4 { font-size: 11.5pt !important; color: #000 !important; }
p, li, td, th, .sub, .muted { color: #2A2022 !important; }
.hero p.sub { font-size: 12pt !important; max-width: none !important; }
.accent, .hero-foto .accent, .hero-foto h1 {
  background: none !important; -webkit-text-fill-color: currentColor !important;
  color: #81212C !important;
}
.hero-foto h1 { color: #000 !important; }
.eyebrow, .hero-foto .eyebrow { color: #5B5052 !important; }

/* cartões e grades: borda fina, nada de fundo escuro, sem quebrar no meio */
.feat-card, .hm-card, .card-light, .panel, .plan, .kpi, .stat, .md-box, .md-cartao, .md-rel,
.md-sec, .md-faq details, .sol-bloco, .docs-dev-card, .notice, .hm-painel, .md-linha, details {
  background: #fff !important; border: 1px solid #D9D0D0 !important; color: #1A1213 !important;
}
.feat-grid, .hm-cards, .plan-grid, .kpi-grid, .stat-grid, .md-cartoes, .md-grade {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4mm !important;
}
details { padding: 3mm !important; }
details::details-content { display: block !important; content-visibility: visible !important; } /* perguntas abertas */
details > summary { list-style: none; font-weight: 600; }
details > summary::-webkit-details-marker, details > summary::after, details > summary > span:last-child:not(:first-child) { display: none !important; }

/* ---- quebras: entre seções, nunca dentro de um bloco ----
   A seção inteira não leva "avoid": seção maior que a folha deixaria a
   página anterior em branco. Os blocos dela é que não se partem, e o
   título nunca fica sozinho no pé da página. */
.hm-painel, .feat-card, .hm-card, .md-cartao, .md-rel, .plan,
.kpi, .stat, .md-box, .md-faq details, details, figure, img, pre, .md-pre, blockquote, tr {
  break-inside: avoid; page-break-inside: avoid;
}
section, .section { break-before: auto; break-inside: auto; }
.section > .wrap > h2:first-child, .section .eyebrow + h2 { break-before: auto; }
h1, h2, h3, h4, .eyebrow { break-after: avoid; page-break-after: avoid; }
p, li { orphans: 3; widows: 3; }

/* tabelas inteiras, cabeçalho repetido em cada página */
table, .legal .md-tab { display: table !important; width: 100% !important; overflow: visible !important; border-collapse: collapse; }
thead { display: table-header-group; }
th, td, .legal .md-tab th { white-space: normal !important; border-bottom: 1px solid #D9D0D0 !important; }
pre, .md-pre, .md-pre code { white-space: pre-wrap !important; word-break: break-word; overflow: visible !important; }
img, svg { max-width: 100% !important; }
img { max-height: 120mm; object-fit: contain; }

/* ---- links visíveis ---- */
a { color: #81212C !important; text-decoration: underline; }
.legal a[href^="http"]::after, .legal a[href^="/"]::after, .legal a[href^="mailto:"]::after,
.hero a[href^="http"]::after, .hero a[href^="/"]::after,
.md-sec a[href^="http"]::after, .md-sec a[href^="/"]::after,
.md-rel[href]::after, .md-cartao[href]::after, .feat-card a[href]::after, .hm-card a[href]::after {
  content: " (" attr(href) ")";
  font-size: 9pt; font-weight: 400; color: #5B5052; word-break: break-all;
}
a.logo, a.logo::after { text-decoration: none; content: none !important; }
a[href^="#"]::after, a[href^="javascript"]::after { content: none !important; }

/* rodapé: só a linha com a empresa */
footer { background: #fff !important; border-top: 1px solid #D9D0D0; margin-top: 8mm; padding-top: 3mm; }
footer .foot-bottom { display: block !important; color: #5B5052 !important; font-size: 9pt; border: 0 !important; }

/* a marca no topo da primeira página, já que o menu some */
body::before {
  content: "Profluxus · profluxus.com";
  display: block; font: 600 9pt 'Inter', system-ui, sans-serif; color: #5B5052;
  border-bottom: 1px solid #D9D0D0; padding-bottom: 2mm; margin-bottom: 5mm;
}

/* cartões que são um link inteiro: sem sublinhar o texto todo (o endereço vai no fim) */
a.md-cartao, a.md-rel, a.feat-card, a.hm-card, a.mod-pill, a.docs-dev-card, a.panel {
  text-decoration: none !important; color: #1A1213 !important;
}
a.md-cartao *, a.md-rel *, a.feat-card *, a.hm-card *, a.mod-pill * { text-decoration: none !important; }
