/* Paleta e tipografia herdadas da própria ferramenta (mesmo tema "terminal financeiro" usado no
   app) — a landing precisa parecer o produto, não uma página de vendas colada na frente dele. */

:root {
  --bg: #100E17;
  --panel: #1A1826;
  --panel-2: #221F30;
  --line: #2A2836;
  --text: #F1EFF8;
  --muted: #A49DBA;
  --dim: #726C87;
  --gold: #8F81FF;
  --green: #4FBF88;
  --red: #E2726C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- barra superior ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.wordmark-brand { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600; font-size: 15px; }
.wordmark-sep { opacity: 0.4; margin: 0 2px; }
.wordmark-tool { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; color: var(--muted); }

.topbar-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.topbar-link:hover { color: var(--text); border-color: var(--dim); }
.topbar-nav { display: flex; gap: 8px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 88px;
}

h1 {
  font-size: 40px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 19ch;
}

.lede {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 52ch;
}

.hero-copy { padding-top: 4px; }

/* ---------- formulário de lista de espera ---------- */

.signup {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 440px;
}

.field { display: block; margin-bottom: 14px; }

.field-label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.optional { color: var(--dim); }

.signup input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.signup input::placeholder { color: var(--dim); }

.signup input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 46ch;
}

.form-note strong { color: var(--text); font-weight: 600; }

.form-status {
  font-size: 13.5px;
  margin: 12px 0 0;
  min-height: 20px;
}

.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

.acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #14100A;
  border: none;
  border-radius: 7px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: #A79AFF; }

.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.btn-vazado {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-vazado:hover { background: var(--panel); border-color: var(--dim); }

.hero-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 46ch;
}

.hero-note strong { color: var(--text); font-weight: 600; }

/* ---------- painel de exemplo ---------- */

.panel {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}

.panel-tag {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
}

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

.grid line { stroke: var(--line); stroke-width: 1; }

.line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.line-bh { stroke: var(--dim); }
.line-eq { stroke: var(--gold); }
.line-alt { stroke: var(--green); }

/* O único momento de movimento da página: as curvas se desenham na carga */
@media (prefers-reduced-motion: no-preference) {
  .line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: draw 2.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .line-eq { animation-delay: 0.35s; }
  .line-alt { animation-delay: 0.15s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.legend {
  display: flex;
  gap: 18px;
  margin: 12px 0 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.key { display: inline-flex; align-items: center; gap: 7px; }

.key::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 1px;
}

.key-bh::before { background: var(--dim); }
.key-eq::before { background: var(--gold); }
.key-alt::before { background: var(--green); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.metric {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.metric dt {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 3px;
  line-height: 1.35;
}

.metric dd {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 15px;
  font-weight: 600;
}

.metric .pos { color: var(--green); }
.metric .neg { color: var(--red); }
.metric .warn { color: var(--gold); }

figcaption {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- seções ---------- */

.what, .isnot, .closing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.what { padding-bottom: 72px; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.features li { background: var(--bg); padding: 22px 20px; }

.features h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 7px;
}

.features p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.58;
}

.isnot {
  padding-top: 40px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

.isnot p {
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 16px;
  font-size: 15px;
}

.isnot p strong { color: var(--text); font-weight: 600; }

.closing {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 72px;
}

.closing p {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 52ch;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- seção "por dentro da ferramenta" ---------- */

.deep {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 72px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.deep-lede {
  color: var(--muted);
  max-width: 62ch;
  margin: -8px 0 44px;
  font-size: 15.5px;
}

.deep-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.deep-row:last-child { padding-bottom: 0; }

.deep-row.reverse .deep-text { order: 2; }
.deep-row.reverse .panel { order: 1; }

.deep-text h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.deep-text p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 14px;
  max-width: 46ch;
}

.deep-text p:last-child { margin-bottom: 0; }

/* ---------- tabela da fatura ---------- */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.tbl th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
}

.tbl th:not(:first-child) { text-align: right; }

.tbl td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.tbl tbody tr:last-child td { border-bottom: none; }

.tbl .num {
  text-align: right;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.tbl .pos { color: var(--green); }
.tbl .neg { color: var(--red); }
.tbl .warn { color: var(--gold); }

.tbl tr.hl td {
  background: rgba(201, 162, 39, 0.07);
  box-shadow: inset 2px 0 0 var(--gold);
}

.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}
.tag-pend { background: rgba(212, 162, 76, 0.14); color: var(--gold); }
.tag-pago { background: rgba(79, 174, 124, 0.14); color: var(--green); }

/* ---------- barras (fluxo de caixa / 50-30-20) ---------- */

.wf { margin-bottom: 14px; }

.wf-row {
  display: grid;
  grid-template-columns: 42px 1fr 58px;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.wf-y {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.wf-bar {
  height: 8px;
  background: var(--panel-2);
  border-radius: 3px;
  overflow: hidden;
}

.wf-bar i { display: block; height: 100%; border-radius: 3px; }

.wf-fx { background: var(--dim); }
.wf-va { background: var(--clay, #5FC9D6); }
.wf-po { background: var(--green); }
.wf-ng { background: var(--red); }

.wf-v {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  text-align: right;
}

.wf-v.pos { color: var(--green); }
.wf-v.neg { color: var(--red); }

.key-fx::before { background: var(--dim); }
.key-va::before { background: #5FC9D6; }
.key-po::before { background: var(--green); }
.key-ng::before { background: var(--red); }

.metrics-2 { grid-template-columns: repeat(2, 1fr); }
.metrics-3 { grid-template-columns: repeat(3, 1fr); }

/* barra empilhada 50/30/20 */
.stack {
  display: flex;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 14px;
}
.stack span { display: block; height: 100%; }
.stack .s-need { background: var(--dim); }
.stack .s-want { background: #5FC9D6; }
.stack .s-save { background: var(--green); }

/* larguras em classes, não inline */
.w-3 { width: 3%; } .w-4 { width: 4%; } .w-8 { width: 8%; } .w-9 { width: 9%; }
.w-12 { width: 12%; } .w-15 { width: 15%; } .w-17 { width: 17%; } .w-18 { width: 18%; } .w-20 { width: 20%; }
.w-22 { width: 22%; } .w-24 { width: 24%; } .w-27 { width: 27%; } .w-28 { width: 28%; } .w-30 { width: 30%; }
.w-32 { width: 32%; } .w-38 { width: 38%; } .w-40 { width: 40%; } .w-42 { width: 42%; }
.w-46 { width: 46%; } .w-48 { width: 48%; } .w-50 { width: 50%; } .w-52 { width: 52%; }
.w-58 { width: 58%; } .w-61 { width: 61%; } .w-62 { width: 62%; } .w-64 { width: 64%; }
.w-70 { width: 70%; } .w-71 { width: 71%; } .w-75 { width: 75%; } .w-78 { width: 78%; }
.w-85 { width: 85%; } .w-100 { width: 100%; }

/* ---------- página de documento (aviso de privacidade) ---------- */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 28px 72px;
}

.doc-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  max-width: none;
}

.doc-meta {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--dim);
  margin: 0 0 28px;
}

.doc-intro {
  color: var(--text);
  font-size: 15.5px;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin: 0 0 36px;
}

.doc h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.doc p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.doc p strong { color: var(--text); font-weight: 600; }

.doc .mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13.5px;
  color: var(--text);
}

.doc-link { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.doc-link:hover { color: #A79AFF; }

.wordmark-link { color: var(--text); text-decoration: none; }
.wordmark-link:hover { color: var(--gold); }

.foot .doc-link { text-decoration: none; }
.foot .doc-link:hover { text-decoration: underline; }

/* ---------- responsivo ---------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 48px 22px 64px;
  }
  h1 { font-size: 32px; max-width: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .what, .isnot, .closing, .deep { padding-left: 22px; padding-right: 22px; }
  .deep-row { grid-template-columns: 1fr; gap: 26px; padding-bottom: 44px; }
  .deep-row.reverse .deep-text { order: 0; }
  .deep-row.reverse .panel { order: 0; }
  .deep-text p { max-width: none; }
}

@media (max-width: 620px) {
  h1 { font-size: 27px; }
  .lede { font-size: 15.5px; }
  .features { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .wf-row { grid-template-columns: 34px 1fr 46px; gap: 5px; }
  .tbl { font-size: 11.5px; }
  .tbl td, .tbl th { padding: 7px 5px; }
  .topbar { padding: 14px 22px; }
  .doc { padding: 40px 22px 56px; }
  .doc-title { font-size: 24px; }
  .signup { max-width: none; }
  .btn { width: 100%; text-align: center; }
  .acoes { flex-direction: column; align-items: stretch; }
}
