/* Quem paga o quê? — landing. Papel frio, verde-tinta e a esmeralda do app.
   As duas pessoas do exemplo usam as cores de membro do app (azul e laranja). */
:root {
  --paper: #f5f8f6;
  --paper-deep: #e8efeb;
  --ink: #0e3b2e;
  --text: #1d2a25;
  --muted: #56655f;
  --line: #d3ded8;
  --emerald: #34c79a;
  --emerald-deep: #1f8a63;
  --person-a: #3987e5;
  --person-b: #d95926;
  --white: #ffffff;
  --display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); font-weight: 400; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--emerald-deep); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--ink); color: var(--white); }
.skip:focus { left: 1rem; z-index: 10; }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: 700 1rem/1 var(--sans); text-decoration: none;
  transition: background-color .2s ease;
}
.btn:hover { background: #164f3e; }
.btn-small { min-height: 2.75rem; padding: 0 1.15rem; font-size: .9375rem; }
.btn-light { background: var(--emerald); color: var(--ink); }
.btn-light:hover { background: #4fd6ab; }
.link { padding: .6rem .75rem; font-weight: 600; text-decoration: none; border-radius: 8px; }
.link:hover { background: var(--paper-deep); }

/* ── Topo ── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.brand-name { font: 800 1.2rem/1 var(--display); letter-spacing: -.01em; color: var(--ink); }
.top-nav { display: flex; align-items: center; gap: .5rem; }

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; line-height: .98;
  font-stretch: 88%; letter-spacing: -.025em;
}
.lead { max-width: 34rem; margin-top: 1.5rem; font-size: 1.1875rem; color: var(--text); }
.cta { margin-top: 2rem; }
.cta-note { margin-top: .85rem; font-size: .9375rem; color: var(--muted); }

/* O mini-acerto: o único elemento ousado da página */
.demo {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 1.75rem;
  box-shadow: .5rem .5rem 0 var(--ink);
}
.demo-title { font: 700 1rem/1.3 var(--sans); color: var(--muted); }
.demo-people { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.person { display: block; padding: .85rem .9rem; border-radius: 1rem; background: var(--paper); cursor: text; }
.person-name { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink); }
.dot { width: .65rem; height: .65rem; border-radius: 99px; }
.person-a .dot { background: var(--person-a); }
.person-b .dot { background: var(--person-b); }
.money-field {
  display: flex; align-items: baseline; gap: .3rem; margin-top: .35rem;
  border-bottom: 2px solid var(--line); transition: border-color .2s ease;
}
.money-field:focus-within { border-color: var(--ink); }
.money-field span { font-weight: 600; color: var(--muted); }
.money-field input {
  width: 100%; min-width: 0; padding: .2rem 0 .3rem; border: 0; background: transparent; outline: none;
  font: 700 1.5rem/1.2 var(--display); font-stretch: 80%; font-variant-numeric: tabular-nums; color: var(--ink);
}
.person-hint { display: block; margin-top: .3rem; font-size: .875rem; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; border: 0; }
.split legend { width: 100%; margin-bottom: .5rem; padding: 0; font-weight: 700; font-size: .9375rem; color: var(--ink); }
.split label { position: relative; cursor: pointer; }
.split input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.split label > span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
  border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9375rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.split label:hover span { border-color: var(--ink); }
.split input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.split input:focus-visible + span { outline: 3px solid var(--emerald-deep); outline-offset: 2px; }

.verdict { margin-top: 1.25rem; padding: 1.25rem 1.25rem 1.1rem; border-radius: 1.15rem; background: var(--ink); color: #d9eee5; }
.verdict-line { font: 600 1.15rem/1.35 var(--sans); }
.verdict-amount {
  display: block; margin: .15rem 0 .1rem;
  font: 800 clamp(2.4rem, 7vw, 3.1rem)/1 var(--display); font-stretch: 78%; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--emerald);
}
.verdict-detail { margin-top: .6rem; font-size: .875rem; color: #a8c9bb; }

/* ── Como funciona (sequência real: numerada) ── */
.steps { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); border-top: 1.5px solid var(--line); }
.steps h2, .more h2, .faq h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin: 2.25rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  border-radius: 99px; background: var(--emerald); color: var(--ink);
  font: 800 1.15rem/1 var(--display);
}
.steps h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.steps p { margin-top: .5rem; color: var(--muted); }

/* ── O espelho ── */
.mirror {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: none; padding: clamp(3rem, 7vw, 5.5rem) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--paper-deep);
}
.mirror h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.mirror-copy p { max-width: 32rem; margin-top: 1rem; font-size: 1.125rem; }
.sheet {
  margin: 0; padding: 1.4rem 1.4rem 1.2rem; background: var(--white); border-radius: .5rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(14, 59, 46, .35);
  transform: rotate(1.2deg);
  font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.sheet-head { display: flex; flex-direction: column; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.sheet-kicker { font-size: .75rem; font-weight: 600; color: var(--muted); }
.sheet-month { font: 800 1.35rem/1.1 var(--display); color: var(--ink); }
.sheet-table { width: 100%; margin-top: .5rem; border-collapse: collapse; }
.sheet-table th { padding: .35rem 0; font-size: .7rem; font-weight: 700; color: var(--muted); text-align: right; border-bottom: 1px solid var(--line); }
.sheet-table td { padding: .32rem 0; text-align: right; border-bottom: 1px solid #edf2ef; white-space: nowrap; }
.sheet-table th:first-child, .sheet-table td:first-child { text-align: left; }
.sheet-table tfoot td { padding-top: .45rem; border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 800; color: var(--ink); }
.sheet-settle { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; padding: .75rem .85rem; border-radius: .4rem; background: #eef7f3; }
.sheet-settle p { flex: 1; font-size: .9rem; line-height: 1.35; }
.sheet-qr { width: 4.25rem; height: 4.25rem; flex-shrink: 0; padding: .25rem; background: var(--white); }

/* ── Mais ── */
.more { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.more dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 2rem 0 0; }
.more dl > div { padding: 1.15rem 0; border-top: 1.5px solid var(--line); }
.more dt { font: 700 1.15rem/1.3 var(--display); color: var(--ink); }
.more dd { margin: .3rem 0 0; color: var(--muted); }

/* ── Perguntas ── */
.faq { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem); }
.faq h2 { margin-bottom: 1.25rem; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.5rem; padding: .75rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--display); color: var(--emerald-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--muted); max-width: 38rem; }

/* ── Fechamento e rodapé ── */
.closing {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto clamp(2rem, 5vw, 3rem); padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.75rem; background: var(--ink);
}
.closing h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; max-width: 18ch; }
@media (min-width: 72rem) { .closing { margin-left: auto; margin-right: auto; } }
@media (max-width: 72rem) { .closing { margin-left: var(--gutter); margin-right: var(--gutter); } }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--gutter) 2.5rem;
  font-size: .875rem; color: var(--muted);
}
.foot .brand-name { font-size: 1rem; }
.foot-id { display: flex; flex-direction: column; gap: .25rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-nav a { padding: .35rem 0; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Páginas de texto (ajuda, privacidade, termos, excluir conta) ── */
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.doc h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; line-height: 1; }
.doc .updated { margin-top: .75rem; font-size: .9375rem; color: var(--muted); }
.doc .lead { margin-top: 1.25rem; }
.doc h2 { margin: 2.5rem 0 .75rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.doc h3 { margin: 1.5rem 0 .4rem; font-size: 1.1rem; font-weight: 700; }
.doc p + p, .doc ul, .doc ol { margin-top: .75rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: .4rem; }
.doc a:not(.btn) { color: var(--emerald-deep); font-weight: 600; }
.doc strong { color: var(--ink); }
.doc .faq { padding: 0; }
.doc .faq h2 { margin-top: 2.5rem; }
.note {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: 1rem;
  background: var(--white); border: 1.5px solid var(--line);
}
.note-ok { border-color: var(--emerald); background: #e9f8f1; }
.doc .note { margin-top: 1rem; padding: .85rem 1rem; border-left: 3px solid var(--emerald); border-radius: 0 .6rem .6rem 0; background: var(--paper-deep); }
.doc code { padding: .05rem .35rem; border-radius: .3rem; background: var(--paper-deep); font-size: .9em; }
.doc table { width: 100%; margin-top: .75rem; border-collapse: collapse; font-size: .9375rem; }
.doc th, .doc td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.toc a { padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-size: .9375rem; font-weight: 600; color: var(--ink) !important; }
.toc a:hover { background: var(--paper-deep); }

/* ── Celular ── */
@media (max-width: 860px) {
  .hero, .mirror { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .steps ol, .more dl { grid-template-columns: minmax(0, 1fr); }
  .sheet { transform: none; }
}
@media (max-width: 420px) {
  .top .link { display: none; }
  .brand-name { font-size: 1.05rem; }
  .demo { box-shadow: .3rem .3rem 0 var(--ink); }
  .money-field input { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Links dentro do texto corrido da landing */
.cta-note a, .more dd a, .faq details p a { color: var(--emerald-deep); font-weight: 600; }
