/* Ledgwise: site público. Marca: azul #0B1F3B, dourado #C9A227, Inter. O extrato (IBM Plex Mono) é o elemento de destaque. */
:root {
  --ink: #0B1F3B; --ink-2: #1E3A63; --text: #13233B; --muted: #55667D; --faint: #8593A6;
  --paper: #FFFFFF; --mist: #F2F5F9; --rule: #DCE3EC; --rule-2: #E9EEF4;
  --gold: #C9A227; --gold-d: #A8861A; --gold-soft: #F7EFD2;
  --green: #1E7A55; --green-bg: #E5F3EC; --amber: #A86A12; --amber-bg: #FCF1DE;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 750; max-width: 22ch; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
p { margin: 0; }

/* ---------- barra de topo */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule-2); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750;
  font-size: 19px; letter-spacing: -.02em; }
.links { display: flex; gap: 26px; margin-right: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.right { display: flex; align-items: center; gap: 16px; }
.langs { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.langs a { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 5px 9px; }
.langs a + a { border-left: 1px solid var(--rule); }
.langs a.on { background: var(--ink); color: #fff; }
.signin { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.signin:hover { text-decoration: underline; }
.menu { display: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none;
  border: 1px solid var(--rule); border-radius: 8px; padding: 6px 12px; cursor: pointer; }

/* ---------- botões */
.btn-gold, .btn-line, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 650; font-size: 15px; border-radius: 9px; padding: 9px 16px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-gold:hover { background: #D6B23E; }
.btn-line { color: var(--ink); border: 1px solid var(--rule); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.big { padding: 13px 22px; font-size: 16px; }

/* ---------- topo da página */
.hero { padding: 76px 0 88px; background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 17ch; }
.lead { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.for { margin-top: 22px; font-size: 14px; color: var(--faint); }

/* o extrato: elemento principal */
.sheet { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11,31,59,.35), 0 2px 0 rgba(11,31,59,.03); font-family: var(--mono); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--ink); color: #DCE5F2;
  font-size: 13px; letter-spacing: .02em; }
.sheet-head .acct { color: #fff; font-weight: 500; }
.lines { list-style: none; margin: 0; padding: 4px 0; }
.ln { padding: 12px 20px; border-bottom: 1px dashed var(--rule); }
.ln:last-child { border-bottom: 0; }
.raw { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; font-size: 13.5px; color: var(--text); }
.raw time { color: var(--faint); }
.raw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raw b { font-weight: 500; font-variant-numeric: tabular-nums; }
.raw b.in { color: var(--green); }
.res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 8px 0 0 58px; font-family: var(--sans);
  font-size: 14px; line-height: 1.35; }
.res strong { color: var(--ink); font-weight: 650; }
.res .cat { background: var(--green-bg); color: var(--green); border-radius: 6px; padding: 1px 8px; font-weight: 600; font-size: 13px; }
.res em { font-style: normal; color: var(--muted); font-size: 13px; }
.res.ok strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  margin-right: 8px; vertical-align: 1px; }
.res.ask strong { color: var(--amber); }
.res.ask strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  margin-right: 8px; vertical-align: 1px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px;
  border-top: 1px solid var(--rule); background: var(--mist); font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.replay { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.replay:hover { text-decoration: underline; }
/* animação: começa como extrato cru, cada linha "resolve" em sequência */
.sheet:not(.static) .res { opacity: 0; transform: translateY(-4px); }
.sheet.run .res { animation: resolve .45s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.5s + var(--i) * .55s); }
.sheet.run .ln { animation: scan .9s ease-out; animation-delay: calc(.35s + var(--i) * .55s); animation-fill-mode: backwards; }
@keyframes resolve { to { opacity: 1; transform: none; } }
@keyframes scan { 0% { background: var(--gold-soft); } 100% { background: transparent; } }
.sheet:not(.static) .sheet-foot span { opacity: 0; }
.sheet.run .sheet-foot span { animation: resolve .4s forwards 3.3s; }

/* ---------- seções */
.band { padding: 96px 0; border-top: 1px solid var(--rule-2); }
.band.alt { background: var(--mist); }
.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.intro p, .lead-s { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 42ch; }

/* sequência real: 4 passos ligados por uma linha */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 24%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 8px, transparent 8px 14px); }
.steps li { position: relative; }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 16px; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--paper); position: relative; }
.steps li:last-child .n { background: var(--gold); color: var(--ink); }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* "o que ele faz": lista com linhas, como um livro-razão */
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 24px; padding: 20px 0;
  border-bottom: 1px solid var(--rule); }
.ledger dt { font-weight: 650; color: var(--ink); }
.ledger dd { margin: 0; color: var(--muted); }

/* clientes: portal com a marca de outro escritório (mostra o white label) */
.clients { align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 48ch; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.portal { --brand: #0F766E; background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(11,31,59,.4); max-width: 460px; justify-self: end; width: 100%; }
.p-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 3px solid var(--brand); }
.p-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 13px; }
.p-head b { color: #0E2B2A; }
.p-tag { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.p-body { padding: 20px; display: grid; gap: 12px; font-size: 15px; }
.p-q { display: grid; gap: 4px; }
.p-line { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.p-a { border: 1px solid var(--rule); border-radius: 9px; padding: 10px 12px; color: var(--text); }
.p-send { justify-self: start; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; border-radius: 8px; padding: 8px 14px; }
.p-miss { margin-top: 6px; padding: 10px 12px; border-radius: 9px; background: var(--amber-bg); color: var(--amber); font-size: 14px; }

/* segurança */
.sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: 44px; }
.sec div { border-top: 2px solid var(--ink); padding-top: 18px; }
.sec p { margin-top: 10px; color: var(--muted); max-width: 52ch; }

/* chamada final */
.cta { background: var(--ink); color: #C9D5E6; padding: 88px 0; }
.cta h2 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 48px; align-items: end; }
.cta p { margin-top: 16px; max-width: 52ch; font-size: 18px; }
.cta .price { font-size: 15px; color: #94A6BF; }
.cta .actions { margin-top: 0; }

/* rodapé */
.foot { background: #fff; border-top: 1px solid var(--rule-2); padding: 48px 0 32px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.foot-grid p { margin-top: 12px; max-width: 36ch; }
.foot nav { display: grid; gap: 8px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-langs a { font-size: 13px; padding: 6px 10px; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--rule-2); font-size: 12.5px; color: var(--faint); }

/* ---------- páginas legais */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.legal .eff { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal .note { margin-top: 20px; padding: 12px 16px; background: var(--mist); border-radius: 10px; font-size: 14.5px; color: var(--muted); }
.legal h2 { font-size: 22px; max-width: none; margin-top: 44px; letter-spacing: -.015em; }
.legal h3 { margin-top: 24px; font-size: 17px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 14px 0 0; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 650; background: var(--mist); }
.toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 12px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { display: block; padding: 3px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- responsivo */
@media (max-width: 1020px) {
  .links { display: none; }
  .menu { display: inline-block; }
  .nav-open .links { display: grid; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 12px 28px 20px;
    border-bottom: 1px solid var(--rule); gap: 4px; }
  .nav-open .links a { padding: 10px 0; font-size: 16px; }
  .hero-grid, .two, .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .portal { justify-self: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .bar { gap: 12px; height: 60px; }
  .nav-open .links { top: 60px; }
  .small-hide, .signin { display: none; }
  .hero { padding: 44px 0 56px; }
  .lead { font-size: 17px; }
  .band { padding: 64px 0; }
  .raw { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; font-size: 12.5px; }
  .res { margin-left: 0; }
  .ln, .sheet-head, .sheet-foot { padding-left: 14px; padding-right: 14px; }
  .sheet-head { font-size: 12px; } .sheet-head .period { display: none; }
  .steps, .sec { grid-template-columns: 1fr; }
  .ledger div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .actions .big { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet .res, .sheet .sheet-foot span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sheet .ln { animation: none !important; }
}
