/* ==========================================================================
   Rotina Fiscal 360 — site institucional (visual 2026-11)
   Identidade: azul-marinho + verde-água do logo.
   Assinatura: "campos" no estilo do DANFE (caixas com rótulo no canto),
   chaves de acesso em fonte mono. Uma família: IBM Plex Sans (+ Mono só
   para dados fiscais reais).
   ========================================================================== */

:root {
  --navy: #0a3058;
  --navy-2: #082747;
  --navy-3: #061c35;
  --ink: #0f2742;
  --ink-2: #2f4b68;
  --muted: #56708a;
  --paper: #f4f7fa;
  --line: #d3dee9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --teal: #3e9b68;
  --teal-2: #4db27a;
  --teal-ink: #24714a;
  --teal-tint: #e7f4ec;
  --blue: #1878cc;
  --amber: #b26a00;
  --amber-tint: #fff3df;
  --white: #fff;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", var(--font-body);
  --cta: #f7941e;
  --cta-2: #ffa63d;
  --cta-ink: #0a2a4c;
  --ok: #3e9b68;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1160px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--navy-2);
  text-decoration: none;
}

.btn-primary,
.btn-on-dark {
  background: var(--teal);
  color: #03302a;
}

.btn-primary:hover,
.btn-on-dark:hover {
  background: var(--teal-2);
  color: #03302a;
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: #b9c9d9;
  color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn-lg {
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}

.btn-wide {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-on-dark {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 0.25em;
}

.link-on-dark:hover {
  text-decoration-color: var(--white);
}

.link-plain {
  font-weight: 600;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(8px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  flex: none;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: auto;
}

.nav > a,
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.7rem;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
}

.nav > a:hover,
.nav-menu > summary:hover {
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
}

.nav > a[aria-current="page"],
.nav-menu > summary[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--teal);
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
  gap: 0.35rem;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.nav-menu[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -0.5rem;
  width: 380px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(8, 39, 71, 0.35);
}

.nav-menu-panel a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink-2);
}

.nav-menu-panel a:hover,
.nav-menu-panel a[aria-current="page"] {
  background: var(--paper);
  text-decoration: none;
}

.nav-menu-panel strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-menu-panel span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.nav-login {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-login {
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease;
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #d9e6f2;
  background-color: var(--navy-2);
  /* pauta discreta, lembrando o formulário do DANFE */
  background-image:
    linear-gradient(var(--navy-2), rgba(8, 39, 71, 0) 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 36px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero h1 {
  color: var(--white);
  max-width: 15ch;
}

.hero-lead {
  max-width: 38rem;
  margin-top: 1.4rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #c4d5e6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1rem;
  color: #8fa9c2;
  font-size: 0.9rem;
}

/* Painel de documentos (assinatura visual) */
.ledger {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.ledger-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal-ink);
  font-weight: 500;
}

.ledger-sync::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.ledger-sync.is-busy {
  color: var(--muted);
}

.ledger-sync.is-busy::before {
  background: var(--amber);
}

.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  grid-template-areas:
    "tag main val"
    "tag main status";
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row.is-new {
  animation: ledgerIn 0.6s ease both;
}

@keyframes ledgerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: var(--teal-tint);
  }
  to {
    opacity: 1;
    transform: none;
    background: transparent;
  }
}

.doc-tag {
  grid-area: tag;
  align-self: start;
  justify-self: start;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--navy);
}

.ledger-main {
  grid-area: main;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  align-items: baseline;
}

.ledger-main b {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-main small {
  color: var(--muted);
  font-size: 0.8rem;
}

.ledger-main code {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-val {
  grid-area: val;
  justify-self: end;
  font-weight: 600;
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

.status {
  grid-area: status;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-ok {
  color: var(--teal-ink);
}

.status-wait {
  color: var(--amber);
}

/* ---------- Campos estilo DANFE ---------- */
.fields {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.fields-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fields-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fields-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fields-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.field dd .nw {
  white-space: nowrap;
}

/* ferramentas grátis em destaque na faixa (verde-água) */
.field.field-gratis {
  background: #e6f6f3;
}

.field.field-gratis dt {
  color: #0b6f63;
  font-weight: 600;
}

.field.field-gratis dd a {
  color: #08766a;
  text-decoration: underline;
  text-decoration-color: rgba(8, 118, 106, 0.35);
  text-underline-offset: 3px;
}

.field.field-gratis dd a:hover,
.field.field-gratis dd a:focus-visible {
  color: #055a51;
  text-decoration-color: currentColor;
}

@media (max-width: 1080px) {
  .fields-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fields-5 .field:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 960px) {
  .fields-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  margin: 0;
  padding: 0.65rem 0.9rem 0.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.field-wide {
  grid-column: 1 / -1;
}

.field dt {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.field dd {
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.doc-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding-block: 1.5rem;
}

/* ---------- Seções ---------- */
.block {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.block-tint {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.block-tint + .block-tint {
  border-top: 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-head p,
.features-intro p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.section-head-row > div {
  max-width: 44rem;
}

.features-intro {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--teal-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.lede {
  max-width: 40rem;
  margin-top: 1.1rem;
  color: var(--ink-2);
  font-size: 1.15rem;
  line-height: 1.6;
}

.more-link {
  margin-top: 1.5rem;
  color: var(--ink-2);
}

/* Produtos (home) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* número ímpar de produtos: o último ocupa a linha toda */
.product-grid > .product:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  transition: background-color 0.15s ease;
}

.product:hover {
  background: var(--paper);
  text-decoration: none;
}

.product-sigla {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-ink);
}

.product h3 {
  font-size: 1.3rem;
}

.product p {
  max-width: 34rem;
}

.product-link {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.93rem;
}

.product:hover .product-link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Sequência numerada (processos reais) */
.split-steps {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sequence {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: passo;
}

.sequence li {
  position: relative;
  padding: 0 0 1.6rem 3.25rem;
  counter-increment: passo;
}

.sequence li:last-child {
  padding-bottom: 0;
}

.sequence li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.sequence li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.05rem - 1px);
  top: 2.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--line);
}

.sequence h3 {
  font-size: 1.08rem;
}

.sequence p {
  margin-top: 0.3rem;
  color: var(--muted);
}

/* Público */
.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.audience > div {
  padding-top: 1.1rem;
  border-top: 3px solid var(--navy);
}

.audience p {
  margin: 0.55rem 0 0.9rem;
  color: var(--muted);
}

.audience a {
  font-weight: 600;
}

/* Lista de recursos */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.feature-list-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature h3 {
  font-size: 1.02rem;
}

.feature p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Faixa ferramentas */
.tools-band {
  background: var(--teal-tint);
  border-block: 1px solid #cbe8d6;
  padding-block: 2.25rem;
}

.tools-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.tools-band h2 {
  font-size: 1.35rem;
}

.tools-band p {
  margin-top: 0.3rem;
  color: var(--ink-2);
}

.tools-band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tools-band-links a {
  padding: 0.55rem 0.9rem;
  border: 1px solid #b4dcc2;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.tools-band-links a:hover {
  border-color: var(--teal-ink);
  text-decoration: none;
}

/* FAQ */
.faq,
.home-faq {
  border-top: 1px solid var(--line);
}

.faq details,
.home-faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary,
.home-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  list-style: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.04rem;
  cursor: pointer;
}

.faq summary::-webkit-details-marker,
.home-faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.home-faq summary::after {
  content: "+";
  flex: none;
  color: var(--teal-ink);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after,
.home-faq details[open] summary::after {
  content: "−";
}

.faq details p,
.home-faq details p {
  max-width: 46rem;
  padding: 0 0 1.2rem;
  color: var(--ink-2);
}

/* Faixa de chamada final */
.cta-band {
  background: var(--navy-2);
  color: #c4d5e6;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  margin-top: 0.5rem;
  max-width: 34rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  flex: none;
}

/* ---------- Páginas internas ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.page-hero .hero-actions {
  margin-top: 1.75rem;
}

.price-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #a7b8c9;
}

.crumbs a {
  color: var(--ink-2);
}

/* Comparação antes/depois */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.compare-col {
  padding: 1.6rem 1.8rem;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--line);
}

.compare-col h3 {
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.compare-col-after {
  background: var(--teal-tint);
}

.compare-col-after h3 {
  color: var(--teal-ink);
}

.compare ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--ink-2);
}

.compare li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 2px;
  background: #9fb3c7;
}

.compare-col-after li::before {
  top: 0.8rem;
  width: 0.35rem;
  height: 0.65rem;
  background: none;
  border-right: 2px solid var(--teal-ink);
  border-bottom: 2px solid var(--teal-ink);
  transform: rotate(45deg);
}

/* Texto corrido (sobre) */
.prose h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: 1.45rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0 0 1rem;
}

.principles div {
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
}

.principles dt {
  color: var(--navy);
  font-weight: 600;
}

.principles dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.prose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.channel {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.channel h2 {
  font-size: 1.15rem;
}

.channel p {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
}

/* ---------- Formulários ---------- */
.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form h2 {
  font-size: 1.3rem;
}

.form-intro {
  margin-top: -0.4rem;
  color: var(--muted);
}

.form label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.form .optional {
  color: var(--muted);
  font-weight: 400;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9c9d9;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
}

.form textarea {
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 120, 204, 0.18);
}

.form-msg {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--ink-2);
}

.form-msg.is-ok {
  background: var(--teal-tint);
  color: #035c50;
}

.form-msg.is-error {
  background: #fdecec;
  color: #a12626;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Cadastro */
.signup-section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--navy-2);
  color: #c4d5e6;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.signup-copy h2 {
  color: var(--white);
}

.signup-copy > p {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.08rem;
}

.signup-checks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.signup-checks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
  color: #e3edf6;
}

.signup-checks li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.62rem;
  width: 0.4rem;
  height: 0.75rem;
  border-right: 2px solid var(--teal-2);
  border-bottom: 2px solid var(--teal-2);
  transform: rotate(45deg);
}

.signup-aside {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.signup-aside a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.signup-form {
  border-color: transparent;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy-3);
  color: #9fb6cc;
  padding-top: 3.5rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  width: 146px;
  height: auto;
  padding: 0.4rem 0.55rem;
  background: var(--white);
  border-radius: var(--radius);
}

.footer-brand p {
  max-width: 19rem;
  margin-top: 1rem;
}

.footer-whats {
  display: inline-block;
  margin-top: 1rem;
  color: var(--teal-2);
  font-weight: 600;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-col strong {
  margin-bottom: 0.2rem;
  color: var(--white);
  font-weight: 600;
}

.footer-col a {
  color: #b9cadb;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

/* ---------- Blog na home ---------- */
.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .feature-list-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .header-login {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(8, 39, 71, 0.3);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav > a,
  .nav-menu > summary {
    min-height: 48px;
    padding: 0 0.25rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }

  .nav > a[aria-current="page"],
  .nav-menu > summary[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--teal);
    padding-left: 0.75rem;
  }

  .nav-login {
    display: inline-flex !important;
  }

  .nav-menu-panel {
    position: static;
    width: auto;
    padding: 0.25rem 0 0.5rem;
    border: 0;
    box-shadow: none;
  }

  .hero-grid,
  .page-hero-grid,
  .split-steps,
  .signup,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .feature-list,
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-home-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-inner,
  .tools-band-inner,
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 128px;
  }

  .header-actions .btn {
    display: none;
  }

  .fields-3,
  .fields-4,
  .fields-5,
  .product-grid,
  .feature-list,
  .feature-list-4,
  .audience,
  .compare,
  .principles {
    grid-template-columns: 1fr;
  }

  .fields-5 .field:last-child {
    grid-column: auto;
  }

  .compare-col + .compare-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .ledger-row {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-areas:
      "tag main"
      "tag val"
      "tag status";
  }

  .ledger-val,
  .status {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Componentes das páginas de ferramentas, blog, artigo e planos
   (mantidos da versão anterior, agora usando os tokens acima)
   ========================================================================== */
.tools-seo {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.tools-seo h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  max-width: none;
}
.tools-seo > .wrap > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
}
.tools-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.tools-seo-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.tools-form input[type="file"] {
  padding: 0.65rem 0.75rem;
  background: var(--paper);
}
.tools-seo-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--navy);
}
.tools-seo-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: none;
}
.tools-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 720px;
}
.tools-faq details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 0.85rem 1rem;
}
.tools-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
}
.tools-faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: none;
}
@media (max-width: 900px) {
  .tools-seo-grid,
  .tools-seo-grid-3 {
    grid-template-columns: 1fr;
  }
}
.tools-hero {
  padding: 2.75rem 0 2rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(62, 155, 104, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.tools-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c9088;
}
.tools-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eaf6ef;
  border: 1px solid #c2e6cf;
  color: #256b46;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tools-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}
.tools-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}
.tools-lead strong {
  color: var(--navy);
}
.tools-section {
  padding: 2.25rem 0 3.5rem;
}
.tools-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem;
  align-items: start;
}
.tools-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.tools-tab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}
.tools-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tools-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.35rem;
}
.tools-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.tools-form {
  display: grid;
  gap: 0.9rem;
}
.tools-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.tools-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}
.tools-form input:focus {
  border-color: var(--blue);
  background: var(--white);
}
.recaptcha-wrap {
  min-height: 78px;
}
.tools-result {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.tools-result h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.result-dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.result-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.result-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.result-row dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}
.tools-empty {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.ie-table-wrap {
  margin-top: 1rem;
  overflow: auto;
}
.ie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ie-table th,
.ie-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
}
.ie-table th {
  color: var(--muted);
  font-weight: 600;
}
.tools-aside {
  background: #0a3058;
  color: #c5d8ea;
  border-radius: 4px;
  padding: 1.35rem;
}
.tools-aside-free {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  background: rgba(62, 155, 104, 0.22);
  color: #8fe0ad;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tools-aside h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  max-width: none;
}
.tools-aside p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: rgba(197, 216, 234, 0.88);
  max-width: none;
}
.tools-aside .btn {
  background: var(--teal);
  color: #04352f;
}
.tools-aside .btn:hover {
  background: #4db27a;
}
@media (max-width: 900px) {
  .tools-layout {
    grid-template-columns: 1fr;
  }
  .result-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
.blog-hero,
.post-hero {
  padding: 2.75rem 0 1.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(62, 155, 104, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1,
.post-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}
.blog-hero-lead,
.post-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}
.blog-home-grid {
  grid-template-columns: repeat(3, 1fr);
}
.blog-list {
  grid-template-columns: 1fr;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
}
.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--blue);
}
.post-back {
  margin: 0 0 1rem;
}
.post-back a {
  font-weight: 600;
  color: var(--muted);
}
.post-back a:hover {
  color: var(--blue);
}
.post-body {
  padding: 2.5rem 0 3rem;
  max-width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  font-size: 1.05rem;
}
.post-body h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.post-body p,
.post-body ul,
.post-body ol {
  color: var(--ink-2);
}
.post-body ul,
.post-body ol {
  padding-left: 1.2rem;
}
.post-body .btn {
  margin-top: 0.5rem;
}
.tools-lead-modal {
  border: 0;
  border-radius: 6px;
  padding: 0;
  max-width: min(100vw - 2rem, 420px);
  background: transparent;
}
.tools-lead-modal::backdrop {
  background: rgba(6, 31, 56, 0.55);
}
.tools-lead-card {
  margin: 0;
  background: #fff;
  border: 1px solid #d5dee8;
  border-radius: 6px;
  padding: 1.4rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.85rem;
}
.tools-lead-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tools-lead-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.tools-lead-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.tools-lead-card input[type="text"],
.tools-lead-card input[type="tel"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}
.tools-lead-card input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.tools-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}
.price-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 1.4rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  gap: 0.15rem;
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.price-toggle button.is-on {
  background: var(--navy);
  color: #fff;
}
.price-toggle button span {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #256b46;
}
.price-toggle button.is-on span {
  color: #c4ecd3;
}
.price-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.25rem 0 0;
}
.mod-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.mod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.mod-table th,
.mod-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.mod-table thead th {
  background: #eef3f8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mod-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
.mod-table td:last-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
}
.mod-table tbody tr:last-child th,
.mod-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.35rem 1.2rem 1.2rem;
}
.price-card.is-featured {
  border-color: var(--teal);
  box-shadow: 0 10px 28px rgba(10, 48, 88, 0.08);
}
.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--teal);
  color: #04352f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.price-tagline,
.price-cycle-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-value {
  margin: 0.35rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.price-value strong {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-value small {
  color: var(--muted);
  font-weight: 600;
}
.price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.price-meta li {
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: #eef3f8;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}
.price-list {
  margin: 0.4rem 0 0.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.price-list.is-out li {
  color: var(--muted);
}
.price-list.is-out li::before {
  content: "–";
  border: 0;
  transform: none;
  top: 0;
  width: auto;
  height: auto;
  color: #9aa8b8;
  font-weight: 700;
}
.price-card .btn,
.price-card .btn-ghost {
  margin-top: auto;
  width: 100%;
}
.price-audience {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.addon-group {
  margin-top: 2rem;
}
.addon-group-head {
  margin-bottom: 0.85rem;
}
.addon-group-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.addon-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.addon-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.1rem;
}
.addon-card.is-featured {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(10, 48, 88, 0.06);
}
.addon-badge {
  margin: 0 0 0.45rem;
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #eaf6ef;
  color: #256b46;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.addon-card h3,
.addon-card h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.addon-price {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.addon-price s {
  color: #9aa8b8;
  font-weight: 600;
  font-size: 0.85rem;
}
.addon-price strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.addon-price span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}
.addon-contabil,
.addon-incluso,
.addon-requer {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.addon-contabil {
  color: #256b46;
}
.addon-incluso {
  color: var(--blue);
}
.addon-requer {
  color: #8a6d3b;
}
.addon-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.1rem;
}
.stack-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.stack-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}
.stack-card li {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.stack-card li::before {
  content: "+ ";
  color: var(--teal);
  font-weight: 700;
}
.stack-total {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.stack-total small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.25rem;
}
.stack-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.price-table .mod {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .price-grid,
  .addon-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }
}
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.price-table th,
.price-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.price-table thead th {
  background: #eef3f8;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-table-group th {
  background: #f6f8fa;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.price-table .ok {
  color: #256b46;
  font-weight: 700;
}
.price-table .muted {
  color: #9aa8b8;
}
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}
@media (max-width: 640px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}
/* Ajustes do visual novo sobre os componentes mantidos */
.price-badge,
.price-toggle button span,
.blog-card-meta,
.tools-badge,
.tools-aside-free {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.blog-card h3,
.blog-card h2 {
  margin: 0.5rem 0 0.4rem;
}

.hero h1 {
  max-width: 17ch;
}

@media (max-width: 960px) {
  .blog-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ledger-row {
    grid-template-columns: 3.6rem minmax(0, 1fr);
  }

  .doc-tag {
    font-size: 0.7rem;
  }
}

@media (max-width: 960px) {
  .nav-menu > summary {
    display: flex;
    width: 100%;
  }
}

/* Atendimento da Bia (abre pelo botão do WhatsApp) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bot-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7.5rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(6, 31, 59, 0.28);
  overflow: hidden;
  font-family: var(--font-body);
}
.bot-chat[hidden] {
  display: none;
}
.bot-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: var(--navy);
  color: var(--white);
}
.bot-chat-head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--white);
}
.bot-chat-head p {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}
.bot-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy-3);
  font-weight: 700;
}
.bot-close {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.bot-close:hover,
.bot-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}
.bot-log {
  flex: 1;
  margin: 0;
  padding: 1rem 0.9rem;
  list-style: none;
  overflow-y: auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bot-msg {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.bot-msg.de-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-top-left-radius: 3px;
}
.bot-msg.de-cliente {
  align-self: flex-end;
  background: var(--teal-tint);
  border-top-right-radius: 3px;
}
.bot-msg a {
  color: var(--teal-ink);
  font-weight: 600;
}
.bot-msg.is-typing {
  color: var(--muted);
  font-style: italic;
}
.bot-msg.de-acao {
  align-self: flex-start;
  padding: 0;
  background: none;
}
.bot-handoff {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #25d366;
  color: #0b3a1f !important;
  font-weight: 600;
  text-decoration: none;
}
.bot-handoff:hover,
.bot-handoff:focus-visible {
  background: #1fbd5a;
}
.bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.bot-chips[hidden] {
  display: none;
}
.bot-chips button {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.bot-chips button:hover,
.bot-chips button:focus-visible {
  border-color: var(--teal);
  color: var(--teal-ink);
}
.bot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
}
.bot-form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}
.bot-form input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}
.bot-form button {
  padding: 0 0.95rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bot-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.bot-whats {
  display: block;
  padding: 0 0.9rem 0.75rem;
  background: var(--white);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.bot-whats:hover,
.bot-whats:focus-visible {
  color: var(--teal-ink);
}
@media (max-width: 640px) {
  .bot-chat {
    right: 0.5rem;
    left: 0.5rem;
    bottom: 4.75rem;
    width: auto;
    height: min(560px, calc(100vh - 6rem));
  }
}

/* Calculadoras e planilhas grátis */
.tool-head {
  padding-block: clamp(1.75rem, 4vw, 2.75rem) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tool-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.tool-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0.4rem 0 0.5rem;
}
.tool-head .lede {
  margin: 0;
  max-width: 62ch;
}
.tool-frame-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.tool-frame {
  display: block;
  width: 100%;
  border: 0;
  background: var(--white);
}
.tool-frame-pagina {
  height: 900px;
}
.tool-frame-app {
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  min-height: 560px;
}
.tool-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.tool-about h2 {
  font-size: 1.3rem;
}
.tool-points {
  margin: 1rem 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-2);
}
.tool-points li + li {
  margin-top: 0.4rem;
}
.tool-note {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 60ch;
}
.tool-related {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.tool-related li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.tool-related a {
  display: block;
  font-weight: 600;
  color: var(--navy);
}
.tool-related span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.calc-section {
  border-top: 1px solid var(--line);
}
.calc-head {
  max-width: 64ch;
  margin-bottom: 2rem;
}
.calc-head h2 {
  margin-bottom: 0.5rem;
}
.calc-head p {
  color: var(--ink-2);
}
.calc-group + .calc-group {
  margin-top: 2.25rem;
}
.calc-group h3 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.calc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.calc-list li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.calc-list a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.calc-list a:hover,
.calc-list a:focus-visible {
  background: var(--teal-tint);
}
.calc-list strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.calc-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .calc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-about-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .calc-list {
    grid-template-columns: 1fr;
  }
  .tool-frame-app {
    height: calc(100dvh - 64px);
  }
}

/* ---------- Empresas atendidas ---------- */
.clientes-section {
  padding-bottom: 1rem;
}

.clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.cliente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 170px;
  padding: 1.4rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cliente-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
}

.cliente-logo img {
  max-width: 78%;
  max-height: 72px;
  object-fit: contain;
}

.cliente-logo.is-sigla span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.cliente-nome {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.cliente-nome small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .clientes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cliente {
  justify-content: flex-start;
}

/* ---------- Painel do topo: dashboard (números ilustrativos) ---------- */
.dash {
  --d-bg: #071a33;
  --d-line: rgba(120, 200, 255, 0.12);
  --d-txt: #e8f3ff;
  --d-sub: #8aa6c4;
  --d-xml: #6fdc98;
  --d-notas: #7cc4ff;
  --d-rot: #b49cff;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 220, 255, 0.22);
  border-radius: 14px;
  color: var(--d-txt);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(111, 220, 152, 0.13), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(124, 196, 255, 0.12), transparent 60%),
    linear-gradient(160deg, #0b2747 0%, var(--d-bg) 70%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 30px 70px -30px rgba(0, 0, 0, 0.8),
    0 0 60px -20px rgba(111, 220, 152, 0.35);
}

/* fio de luz no topo */
.dash::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 220, 152, 0.9), transparent);
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem 0.6rem;
}

.dash-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dash-titulo em {
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--d-line);
  border-radius: 999px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--d-sub);
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--d-xml);
  white-space: nowrap;
}

.dash-live i {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--d-xml);
  box-shadow: 0 0 10px var(--d-xml);
}

.dash-live i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--d-xml);
  animation: dashPing 1.8s ease-out infinite;
}

.dash-live.is-busy {
  color: var(--d-notas);
}

@keyframes dashPing {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(1.9); opacity: 0; }
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0.3rem 1.2rem 0.9rem;
}

.dash-kpi {
  --c: var(--d-xml);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 0.7rem 0.8rem 2.6rem;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.kpi-notas { --c: var(--d-notas); }
.kpi-rotinas { --c: var(--d-rot); }

.dash-kpi dt {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--d-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-kpi dd {
  margin: 0.25rem 0 0;
  font-size: 1.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--d-txt);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.dash-kpi dd.is-tick {
  color: var(--c);
  text-shadow: 0 0 14px var(--c);
}

.dash-delta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--c);
}

.dash-spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  display: block;
  width: 100%;
  height: 30px;
}

.dash-spark path {
  fill: none;
  stroke: var(--c);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px var(--c));
}

.dash-chart {
  position: relative;
  margin: 0 1.2rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--d-line);
}

.dash-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.dash-grade line {
  stroke: var(--d-line);
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
}

.dash-linha-xml {
  fill: none;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.dash-linha-notas {
  fill: none;
  stroke: var(--d-notas);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

.dash-area,
.dash-linha-xml,
.dash-linha-notas {
  transition: d 0.8s ease;
}

.dash-ponto {
  fill: var(--d-bg);
  stroke: var(--d-xml);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  transition: cy 0.8s ease;
}

.dash-ponto.is-hoje {
  fill: var(--d-xml);
}

.dash-pulso {
  fill: none;
  stroke: var(--d-xml);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: dashPulso 2s ease-out infinite;
  transition: cy 0.8s ease;
}

@keyframes dashPulso {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(4); opacity: 0; }
}

.dash-guia {
  stroke: rgba(232, 243, 255, 0.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dash-chart.is-hover .dash-guia {
  opacity: 1;
}

.dash-dias {
  position: relative;
  height: 1.5rem;
  padding: 0.15rem 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--d-sub);
  text-align: center;
}

.dash-dias span {
  position: absolute;
  top: 0.15rem;
  transform: translateX(-50%);
}

.dash-dias .is-hoje {
  color: var(--d-xml);
}

.dash-tip {
  position: absolute;
  top: 0.4rem;
  z-index: 2;
  min-width: 9.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(120, 220, 255, 0.3);
  border-radius: 8px;
  background: rgba(5, 18, 36, 0.92);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  font-size: 0.76rem;
  line-height: 1.5;
  pointer-events: none;
  transform: translateX(-50%);
}

.dash-tip b {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.78rem;
}

.dash-tip span {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--d-sub);
}

.dash-tip span strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--d-txt);
}

.dash-rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  padding: 0.7rem 1.2rem 0.95rem;
  font-size: 0.75rem;
  color: var(--d-sub);
}

.dash-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dash-leg::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
}

.leg-xml::before {
  background: var(--d-xml);
  box-shadow: 0 0 8px var(--d-xml);
}

.leg-notas::before {
  background: repeating-linear-gradient(90deg, var(--d-notas) 0 4px, transparent 4px 7px);
}

.dash-rodape small {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .dash-head { padding: 0.85rem 0.9rem 0.5rem; }
  .dash-kpis { gap: 0.4rem; padding: 0.2rem 0.9rem 0.8rem; }
  .dash-kpi { padding: 0.55rem 0.55rem 2.4rem; }
  .dash-kpi dd { font-size: 1.05rem; }
  .dash-delta { display: none; }
  .dash-titulo em { display: none; }
  .dash-live { max-width: 52%; }
  .dash-live span { overflow: hidden; text-overflow: ellipsis; }
  .dash-chart { margin: 0 0.9rem; }
  .dash-rodape { padding: 0.6rem 0.9rem 0.85rem; }
  .dash-rodape small { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-live i::after,
  .dash-pulso { animation: none; }
}

/* Link discreto para o gerenciador (rodapé) */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-admin { font-size: .72rem; opacity: .28; color: inherit; text-decoration: none; }
.footer-admin:hover, .footer-admin:focus-visible { opacity: .8; text-decoration: underline; }

/* ==========================================================================
   Rotina Fiscal 360 — camada de marca
   - Títulos em Poppins (a mesma geometria da logo)
   - Chamada principal em laranja: a única cor quente da página, para o olho
     achar a ação sem procurar
   - Selos de confiança logo abaixo da chamada (reduz o medo antes do clique)
   ========================================================================== */
h1, h2, h3, .price-value strong, .dash-kpi dd { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-weight: 700; }

.btn-primary,
.btn-on-dark,
.price-card.is-featured .btn {
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: 0 6px 18px -6px rgba(247, 148, 30, 0.55);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover,
.btn-on-dark:hover,
.price-card.is-featured .btn:hover {
  background: var(--cta-2);
  color: var(--cta-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(247, 148, 30, 0.7);
}
.btn-primary:focus-visible, .btn-on-dark:focus-visible { outline: 3px solid #ffd59e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover, .btn-on-dark:hover { transform: none; } }

.brand img { height: 44px; width: auto; }
.site-footer .brand img, .footer-brand img { height: 46px; width: auto; padding: 0; background: none; border-radius: 0; }

/* Selos de confiança no topo */
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.1rem 0 0; padding: 0; list-style: none; color: #cfe0ef; font-size: .9rem; }
.trust-row li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row svg { width: 18px; height: 18px; flex: none; color: #6fdc98; }

/* Garantia junto do formulário */
.risk-free { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: .85rem 1rem; border: 1px solid #cbe8d6; border-left: 4px solid var(--ok); border-radius: var(--radius); background: #f3faf6; color: var(--ink); }
.risk-free svg { width: 26px; height: 26px; flex: none; color: var(--ok); }
.risk-free strong { display: block; color: var(--navy); }
.signup-checks li::marker { color: var(--ok); }
.form-msg + .form-lock, .form-lock { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; justify-content: center; }
.form-lock svg { width: 14px; height: 14px; }

.price-badge { background: var(--ok); color: #fff; }

/* ---------- Vitrine do topo: painel ↔ grades e relatórios ---------- */
.vitrine {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.vitrine-palco {
  display: grid;
  min-width: 0;
}

.vitrine-tela {
  grid-area: 1 / 1;
  min-width: 0;
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}

.vitrine-tela:not(.is-ativa) {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  visibility: hidden;
  pointer-events: none;
}

.app-demo {
  --a-line: #dbe4ee;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  contain: size; /* não aumenta a altura do palco: acompanha a do painel */
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 60px -24px rgba(111, 220, 152, 0.4);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #eef3f8;
  border-bottom: 1px solid var(--a-line);
}

.app-luzes {
  display: inline-flex;
  gap: 5px;
}

.app-luzes i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f1736a;
}

.app-luzes i + i {
  background: #f4c34f;
}

.app-luzes i + i + i {
  background: #5fca7c;
}

.app-endereco {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-endereco b {
  margin-left: 0.35rem;
  color: var(--ink);
  font-weight: 600;
}

.app-abas {
  display: flex;
  gap: 0.15rem;
  padding: 0 0.6rem;
  border-bottom: 1px solid var(--a-line);
  overflow: hidden;
}

.app-abas span {
  padding: 0.55rem 0.6rem 0.45rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.app-abas span.is-ativa {
  color: var(--teal-ink);
  border-bottom-color: var(--teal);
}

.app-ferramentas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
}

.app-rotulo {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.app-select,
.app-btn,
.rel-nome {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--a-line);
  border-radius: 4px;
  white-space: nowrap;
}

.app-select {
  min-width: 9.5rem;
  color: var(--ink);
}

.app-btn {
  border-color: #9fd3b4;
  color: var(--teal-ink);
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.app-btn-primario {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.app-btn.is-press {
  transform: scale(0.93);
  filter: brightness(0.9);
}

.app-exporta {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.app-telas {
  display: grid;
  flex: 1;
  min-height: 0;
}

.app-tela {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  transition: opacity 0.35s ease;
}

.app-tela:not(.is-ativa) {
  opacity: 0;
  visibility: hidden;
}

.app-grade-rolagem {
  flex: 1;
  min-height: 0;
  margin: 0 0.85rem;
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-radius: 4px;
}

.app-grade {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.app-grade th,
.app-grade td {
  padding: 0.42rem 0.6rem;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  white-space: nowrap;
}

.app-grade th {
  position: sticky;
  top: 0;
  background: #f4f7fa;
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--a-line);
}

.app-grade .num {
  text-align: right;
}

.app-grade .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}

.app-tela.is-ativa tbody tr {
  animation: appLinha 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes appLinha {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.app-total {
  padding: 0.55rem 0.85rem 0.6rem;
  color: var(--muted);
  text-align: right;
}

.app-total strong {
  margin-left: 0.5rem;
  color: var(--ink);
}

.app-nota {
  position: absolute;
  left: 0.85rem;
  bottom: 0.6rem;
  color: var(--muted);
  font-size: 10.5px;
}

/* montador de relatório */
.app-relatorio {
  gap: 0.5rem;
  padding: 0 0.85rem 1.9rem;
}

.rel-campos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.rel-subtitulo {
  color: var(--ink);
  font-weight: 600;
}

.rel-grupo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.rel-grupo > span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  margin-right: 0.15rem;
}

.rel-campo {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  color: var(--ink-2);
  font-style: normal;
  font-size: 11px;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.rel-campo::before {
  content: "+ ";
  color: var(--muted);
}

.rel-campo.is-on {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-ink);
}

.rel-campo.is-on::before {
  content: "✓ ";
  color: var(--teal-ink);
}

.rel-previa {
  flex: 1;
  min-height: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-radius: 4px;
}

.rel-previa [data-col] {
  display: none;
}

.rel-previa [data-col].is-on {
  display: table-cell;
  animation: relColuna 0.35s ease both;
}

@keyframes relColuna {
  from {
    opacity: 0;
    background: var(--teal-tint);
  }
  to {
    opacity: 1;
  }
}

.rel-salvar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.rel-nome {
  min-width: 10.5rem;
  min-height: 1.6rem;
  color: var(--ink);
}

.rel-nome.is-digitando::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--ink);
  animation: relCursor 0.8s steps(1) infinite;
}

@keyframes relCursor {
  50% {
    opacity: 0;
  }
}

.rel-salvos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.rel-salvos i {
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  background: #f4f7fa;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.rel-salvos .rel-novo {
  display: none;
  background: var(--teal-tint);
  color: var(--teal-ink);
  font-weight: 600;
}

.rel-salvos .rel-novo.is-on {
  display: inline;
  animation: relColuna 0.4s ease both;
}

.rel-aviso {
  position: absolute;
  right: 0.85rem;
  top: 0.45rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: var(--teal-ink);
  color: var(--white);
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.rel-aviso.is-on {
  opacity: 1;
  transform: none;
}

/* botões abaixo do quadro */
.vitrine-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.vitrine-nav button {
  --prog: 0;
  position: relative;
  overflow: hidden;
  padding: 0.32rem 0.8rem 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #c9dcee;
  font: 600 0.82rem/1.2 var(--font-body);
  cursor: pointer;
}

.vitrine-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #6fdc98;
  transform: scaleX(var(--prog));
  transform-origin: left;
}

.vitrine-nav button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.vitrine-nav button.is-ativa {
  border-color: #6fdc98;
  background: rgba(111, 220, 152, 0.14);
  color: var(--white);
}

.vitrine-nav button:focus-visible {
  outline: 2px solid #8fe9b0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .vitrine-tela,
  .app-tela {
    transition: none;
  }

  .app-tela.is-ativa tbody tr,
  .rel-previa [data-col].is-on,
  .rel-salvos .rel-novo.is-on {
    animation: none;
  }

  .vitrine-nav button::after {
    display: none;
  }
}

.rel-mais {
  color: var(--muted);
  font-size: 10.5px;
  font-style: italic;
  align-self: center;
}

/* ---------- Faixa de resultados/destaques (estilo métrica) ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.result-fig {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal-ink);
}
.result-card h3 {
  margin-top: 0.7rem;
  font-size: 1.02rem;
  color: var(--navy);
}
.result-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .results-grid { grid-template-columns: 1fr; }
}
