/* ============================================================
   LumaInvoice — site institucional
   Fontes servidas pelo proprio servidor: /fonts vem do backend,
   ja usado no PDF e na pagina publica do documento
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  --ink: #13201E;
  --teal: #0E4F4A;
  --brass: #A8792F;
  --bone: #F6F4EF;
  --paper: #FFFFFF;
  --muted: #6C7873;
  --line: #E2DFD7;
  --ok: #2F6F4F;
  --maxw: 1060px;
  --narrow: 720px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
/* o atributo hidden perde para qualquer display de autor */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

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

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 244, 239, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.logo span { font-weight: 400; color: var(--muted); }
.logo .mark {
  width: 26px; height: 26px; flex: 0 0 26px; margin-right: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' rx='17' fill='%230E4F4A'/%3E%3Cpath d='M16.5 12h10v23h13v9h-23z' fill='%23A8792F'/%3E%3C/svg%3E") center/contain no-repeat;
}

.langs { display: flex; gap: 3px; }
.langs button {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid transparent;
  background: transparent; color: var(--muted);
  border-radius: 7px; cursor: pointer;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] {
  background: var(--ink); color: var(--bone);
}

/* ---------- botoes ---------- */
.btn {
  display: inline-block;
  font: inherit; font-weight: 500;
  padding: 12px 22px; border-radius: 9px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: var(--bone); }
.btn-primary:hover { background: var(--ink); color: var(--bone); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }

/* ---------- hero ---------- */
main { flex: 1; }

.hero.wrap { padding-top: 78px; padding-bottom: 68px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 18px;
  max-width: 15em;
}
.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 32em;
  margin: 0 0 30px;
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-nota {
  font-size: 13.5px; color: var(--muted);
  margin: 14px 0 0;
}

/* ---------- faixa de contraste ---------- */
/* a faixa e uma div, entao nao herda o padding de section:
   o respiro precisa ser dela mesma */
.faixa {
  background: var(--ink);
  color: #DCE5E2;
  padding: 96px 0 104px;
}
.faixa h2 { color: #fff; }
.faixa .kicker { color: #8FA39E; }
.fluxo {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 34px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; overflow: hidden;
}
.fluxo div { background: var(--ink); padding: 24px 26px; }
.fluxo b {
  display: block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; color: var(--brass); margin-bottom: 6px;
}
.fluxo span { font-size: 15px; color: #C4D2CE; }

/* ---------- secoes ---------- */
/* section.wrap: .wrap e classe e vence o seletor de elemento, entao
   'section { padding }' era descartado e as secoes ficavam coladas */
section.wrap { padding-top: 76px; padding-bottom: 76px; }
.kicker {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(25px, 3.6vw, 34px);
  letter-spacing: -.02em; line-height: 1.18;
  margin: 0 0 14px;
}
h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 18px; letter-spacing: -.01em;
  margin: 0 0 6px;
}
.sub { color: var(--muted); max-width: 34em; margin: 0 0 44px; }

/* recursos */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(14, 79, 74, .08); color: var(--teal);
  margin-bottom: 14px;
}

/* passos */
.passos { counter-reset: p; display: grid; gap: 2px; margin-top: 8px; }
.passo {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 28px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.passo:last-child { border-bottom: 1px solid var(--line); }
.passo::before {
  counter-increment: p; content: counter(p);
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--brass); line-height: 1.2;
}
.passo p { margin: 0; color: var(--muted); font-size: 15px; }

/* preco */
.preco-box {
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  max-width: none;
}
.preco-linha {
  display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.preco-v {
  font-family: var(--display); font-weight: 700;
  font-size: 44px; letter-spacing: -.03em; line-height: 1;
}
.preco-p { font-size: 15px; color: var(--muted); }
.preco-alt { font-size: 15px; color: var(--muted); }
.preco-alt b { color: var(--ink); font-weight: 600; }
.inclui { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.inclui li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px;
}
.inclui svg { flex: 0 0 18px; margin-top: 3px; color: var(--ok); }

/* faq */
details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  font-weight: 500; font-size: 16.5px;
  display: flex; justify-content: space-between; gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-family: var(--mono); font-size: 19px;
  color: var(--muted); flex: 0 0 auto;
}
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: var(--muted); max-width: 46em; }

/* cta final */
.cta-final.wrap { text-align: center; padding-top: 80px; padding-bottom: 88px; }
.cta-final h2 { margin-bottom: 10px; }
.cta-final .sub { margin: 0 auto 26px; }

/* ---------- rodape ---------- */
footer { border-top: 1px solid var(--line); }
.foot-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 26px 22px;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; font-size: 13.5px; color: var(--muted);
}
.foot-in a { text-decoration: none; color: var(--muted); }
.foot-in a:hover { color: var(--ink); }
.foot-in .sep { color: var(--line); }
.foot-in .dir { margin-left: auto; }

/* ---------- paginas de texto (termos e privacidade) ---------- */
.doc { max-width: var(--narrow); margin: 0 auto; padding: 44px 22px 72px; }
.doc h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 5vw, 38px); line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 6px;
}
.doc h2 {
  font-size: 19px; font-weight: 600;
  margin: 38px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.eff { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0 0 34px; }
.box {
  border: 1px solid var(--line); border-left: 3px solid var(--brass);
  background: var(--paper); padding: 16px 18px; margin: 0 0 28px;
  border-radius: 0 8px 8px 0;
}
.box p:last-child { margin-bottom: 0; }
.data { font-family: var(--mono); font-size: 13px; line-height: 1.8; }

/* ---------- telas estreitas ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .fluxo { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero.wrap { padding-top: 56px; padding-bottom: 48px; }
  section.wrap { padding-top: 64px; padding-bottom: 64px; }
  .faixa { padding: 60px 0; }
  .cta-final.wrap { padding-top: 68px; padding-bottom: 76px; }
  .top-in { padding: 12px 18px; }
  .wrap { padding: 0 18px; }
  .preco-box { padding: 24px 20px; }
  .btn-lg { width: 100%; text-align: center; }
  .hero-cta { gap: 10px; }
  .foot-in .dir { margin-left: 0; }
}
