/* 1000faturas: estilos dos componentes comerciais e da homepage. */
:root {
  --brand: #0a7fba;
  --brand-dark: #076891;
  --ink: #17212f;
  --muted: #526477;
  --line: #dce6eb;
  --surface: #f0f8fd;
  --radius: 1rem;
}

.site-logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: min(40vw, 12.5rem);
  object-fit: contain;
  flex-shrink: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
.gradient-hero a:focus-visible,
.gradient-cta a:focus-visible,
.plan-card--featured a:focus-visible {
  outline-color: #fff;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 18px rgb(23 33 47 / 5%);
}
.plan-card--featured {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 12px 32px rgb(7 104 145 / 18%);
}
.plan-label,
.plan-limit,
.plan-period {
  font-size: 0.875rem;
  color: var(--muted);
}
.plan-label { margin-bottom: 0.5rem; }
.plan-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.plan-price { margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.plan-amount { font-size: 2.5rem; font-weight: 700; line-height: 1.15; }
.plan-period { margin-left: 0.25rem; }
.plan-limit { margin-bottom: 1.25rem; }
.plan-features {
  flex: 1;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.plan-features li { position: relative; padding-left: 1rem; }
.plan-features li + li { margin-top: 0.5rem; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
}
.plan-card--featured .plan-label,
.plan-card--featured .plan-limit,
.plan-card--featured .plan-period,
.plan-card--featured .plan-features { color: #e0f0fa; }
.plan-action {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--brand-dark);
  border-radius: 0.75rem;
  color: var(--brand-dark);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.plan-action:hover { background: var(--surface); }
.plan-card--featured .plan-action { background: #fff; border-color: #fff; }
.plan-card--featured .plan-action:hover { background: #e0f0fa; }

.financial-overview table { font-variant-numeric: tabular-nums; }
.financial-overview .grid > *,
.product-demo .flex > *,
.business-solutions .grid > * { min-width: 0; }
.product-demo p,
.business-solutions p { overflow-wrap: anywhere; }
.business-solutions h2 { line-height: 1.3; }
.business-solutions a { display: inline-block; padding-block: 0.25rem; }

.reading-method,
.editorial-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.editorial-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reading-method > div,
.editorial-links > a {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.reading-method h3,
.editorial-links strong { display: block; color: var(--brand-dark); font-weight: 700; margin-bottom: .6rem; }
.reading-method p,
.editorial-links span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.editorial-links a:hover { border-color: var(--brand); background: var(--surface); }

/* A navegação completa precisa de espaço para os cinco destinos. */
@media (min-width: 768px) and (max-width: 1099px) {
  header nav[aria-label="Navegação principal"] .hidden.md\:flex { display: none; }
}
@media (max-width: 639px) {
  header nav[aria-label="Navegação principal"] > div { padding-inline: 1rem; }
  header nav[aria-label="Navegação principal"] .site-logo { max-width: 32vw; }
  header nav[aria-label="Navegação principal"] .fx-login { display: none; }
}

@media (max-width: 767px) {
  .reading-method,
  .editorial-links { grid-template-columns: minmax(0, 1fr); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .plan-card { padding: 1.5rem; }
  .financial-overview th,
  .financial-overview td { padding-inline: 1rem; }
  .product-demo .border-r { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-float,
  .animate-pulse { animation: none; }
  .card-hover,
  .ch,
  .plan-action,
  .nav-link::after,
  .nl::after { transition: none; }
  .card-hover:hover,
  .ch:hover { transform: none; }
}

/* Homepage: pipeline, demo e cards de funcionalidades */
:root { --fx-blue: #0396dc; --fx-ink: #17212f; }
.fx-pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.fx-step { position: relative; text-align: center; padding: 0 0.5rem; }
.fx-step:not(:last-child)::after { content: "→"; position: absolute; right: -0.65rem; top: 1.6rem; color: var(--fx-blue); font-weight: 700; font-size: 1.25rem; }
.fx-step svg, .fx-card svg { width: 3.25rem; height: 3.25rem; stroke: var(--fx-blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-step .fx-ico { width: 5rem; height: 5rem; margin: 0 auto 0.75rem; border-radius: 1.25rem; background: #eef8fd; border: 1px solid #cdeaf8; display: flex; align-items: center; justify-content: center; }
.fx-step strong { display: block; color: var(--fx-ink); font-size: 0.95rem; }
.fx-step span.fx-sub { display: block; color: #6b7280; font-size: 0.8rem; margin-top: 0.25rem; }
.fx-demo { max-width: 42rem; margin: 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.fx-demo-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.fx-bar-row { margin-bottom: 1rem; }
.fx-bar-label { display: flex; justify-content: space-between; font-size: 0.875rem; color: #374151; margin-bottom: 0.35rem; gap: 0.75rem; }
.fx-bar-label b { color: var(--fx-ink); white-space: nowrap; }
.fx-bar { height: 0.6rem; background: #eef2f5; border-radius: 999px; overflow: hidden; }
.fx-bar i { display: block; height: 100%; background: var(--fx-blue); border-radius: 999px; }
.fx-bar-row.fx-warn .fx-bar i { background: #f59e0b; }
.fx-bar-row.fx-warn .fx-bar-label b { color: #b45309; }
.fx-bar-row.fx-bad .fx-bar i { background: #dc2626; }
.fx-bar-row.fx-bad .fx-bar-label b { color: #b91c1c; }
.fx-quote { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--fx-blue); background: #eef8fd; border-radius: 0 0.75rem 0.75rem 0; color: var(--fx-ink); font-weight: 600; }
.fx-quote span { display: block; font-weight: 400; color: #4b5563; font-size: 0.9rem; margin-top: 0.25rem; }
.fx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fx-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; text-decoration: none; transition: all .2s ease; }
.fx-card:hover { border-color: var(--fx-blue); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(3,150,220,.12); }
.fx-card h3 { margin: 0.75rem 0 0.35rem; font-weight: 700; color: var(--fx-ink); }
.fx-card p { margin: 0; font-size: 0.875rem; color: #6b7280; line-height: 1.5; }
.fx-card .fx-more { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--fx-blue); }
@media (max-width: 768px) {
  .fx-pipeline { grid-template-columns: 1fr; gap: 1.25rem; }
  .fx-step { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .fx-step .fx-ico { margin: 0; flex-shrink: 0; }
  .fx-step:not(:last-child)::after { display: none; }
  .fx-cards { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) { .fx-cards { grid-template-columns: repeat(2, 1fr); } }

/* Menu principal com dropdowns (Soluções, Setores) */
.fx-dd { position: relative; }
.fx-dd > .nav-link { cursor: pointer; }
.fx-caret { display: inline-block; width: 0.45rem; height: 0.45rem; margin-left: 0.35rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.fx-menu { display: none; position: absolute; top: 100%; left: -1rem; padding-top: 0.9rem; z-index: 60; }
.fx-menu > div { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.9rem; box-shadow: 0 16px 40px rgba(23,33,47,.12); padding: 0.5rem; display: grid; gap: 0.15rem; min-width: 15rem; }
.fx-menu.fx-wide > div { grid-template-columns: repeat(2, minmax(15rem, 1fr)); }
.fx-dd:hover > .fx-menu, .fx-dd:focus-within > .fx-menu { display: block; }
.fx-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 0.6rem; text-decoration: none; color: var(--fx-ink); font-size: 0.875rem; font-weight: 600; }
.fx-mt { font-style: normal; }
.fx-mt span { display: block; color: #6b7280; font-weight: 400; font-size: 0.78rem; margin-top: 0.1rem; }
.fx-menu a:hover, .fx-menu a:focus-visible { background: #eef8fd; color: #0369a1; }

/* Menu hambúrguer (abaixo de 1100px) */
.fx-burger { display: none; }
.fx-burger > summary { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.6rem; border: 1px solid #e5e7eb; color: var(--fx-ink); }
.fx-burger > summary::-webkit-details-marker { display: none; }
.fx-burger > summary svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.fx-burger > summary .fx-x { display: none; }
.fx-burger[open] > summary .fx-x { display: block; }
.fx-burger[open] > summary .fx-bars { display: none; }
.fx-burger-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 4rem); overflow-y: auto; background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 16px 40px rgba(23,33,47,.12); padding: 0.75rem 1rem 1.25rem; }
.fx-burger-panel > a, .fx-burger-panel summary { display: block; padding: 0.8rem 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--fx-ink); text-decoration: none; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.fx-burger-panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fx-burger-panel summary::-webkit-details-marker { display: none; }
.fx-burger-panel summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.fx-burger-panel details[open] > summary::after { transform: rotate(-135deg); }
.fx-burger-panel details > div { padding: 0.25rem 0 0.5rem 0.75rem; }
.fx-burger-panel details > div a { display: block; padding: 0.55rem 0.5rem; font-size: 0.9rem; color: #374151; text-decoration: none; border-radius: 0.5rem; }
.fx-burger-panel details > div a:hover { background: #eef8fd; color: #0369a1; }
.fx-burger-panel .fx-soon { display: block; padding: 0.8rem 0.5rem; color: #9ca3af; font-weight: 500; font-size: 0.95rem; }
@media (max-width: 1099px) { .fx-burger { display: block; } }

.fx-mi { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; background: #eef8fd; display: inline-flex; align-items: center; justify-content: center; }
.fx-mi svg { width: 1.2rem; height: 1.2rem; stroke: var(--fx-blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-menu a:hover .fx-mi, .fx-menu a:focus-visible .fx-mi { background: #fff; }
.fx-burger-panel details > div a { display: flex; align-items: center; gap: 0.65rem; }
.fx-burger-panel .fx-mi { width: 1.9rem; height: 1.9rem; }
.fx-burger-panel .fx-mi svg { width: 1.05rem; height: 1.05rem; }

/* Moedas dos planos */
.plan-coins { display: block; width: min(100%, 30rem); height: auto; margin: 0 auto 2rem; }
.plan-coin { width: 4.5rem; height: 4.5rem; margin-bottom: 0.9rem; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgb(23 33 47 / 25%); }
.plan-coin--sm { width: 3.5rem; height: 3.5rem; margin: 0; }
.plan-coins--sm { width: 9rem; margin: 0 auto 0.75rem; }
@media (min-width: 1024px) { .plan-coins--sm { margin-left: 0; } }

.fx-qr-note { max-width: 40rem; margin: 2.5rem auto 0; text-align: center; color: #4b5563; font-size: 0.95rem; line-height: 1.6; }
.fx-qr-note strong { color: var(--fx-ink); }
.fx-email { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border: 1px solid #cdeaf8; border-radius: 1rem; background: #eef8fd; }
.fx-email .fx-mi { width: 3rem; height: 3rem; background: #fff; }
.fx-email .fx-mi svg { width: 1.6rem; height: 1.6rem; }
@media (max-width: 640px) { .fx-email { flex-direction: column; } }
.fx-card--static { cursor: default; }
.fx-card--static:hover { border-color: #e5e7eb; transform: none; box-shadow: none; }
