:root {
  --ink: #12303a;
  --ink-soft: #4a6670;
  --river: #0f6b68;
  --river-deep: #0a4a48;
  --mist: #e6f2ef;
  --paper: #ffffff;
  --line: #d3e4e0;
  --credito: #8a3fa0;
  --debito: #2f5da8;
  --pix: #11a08f;
  --dinheiro: #c58a12;
  --chat-bg: #eef5f3;
  --bubble-me: #d4f5e2;
  --bubble-her: #ffffff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e4efec;
    --ink-soft: #a5bcb7;
    --river: #3cc0b2;
    --river-deep: #7fdcd1;
    --mist: #13302f;
    --paper: #0c1f22;
    --line: #23413f;
    --chat-bg: #10292b;
    --bubble-me: #145a47;
    --bubble-her: #183536;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--river); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--pix); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1120px; margin: 0 auto; padding: 22px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 800 1.45rem var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.02em;
}
.brand svg { width: 1.1em; height: 1.1em; color: var(--river); }
.top nav { display: flex; gap: 1.4rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }

main section { max-width: 1120px; margin: 0 auto; padding: 72px 20px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding-top: 40px !important;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.cta {
  display: inline-block; margin-top: .6rem;
  background: var(--river); color: #fff; text-decoration: none;
  font: 600 1.05rem var(--body); padding: 15px 26px; border-radius: 999px;
}
.cta:hover { background: var(--river-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { color: #062624; } }
.fine { font-size: .95rem; color: var(--ink-soft); margin-top: .9rem; }

.phone {
  background: var(--chat-bg); border: 1px solid var(--line);
  border-radius: 34px; overflow: hidden; max-width: 380px; justify-self: end; width: 100%;
  box-shadow: 0 30px 60px -30px rgba(10, 74, 72, .45);
}
.phone-bar {
  display: flex; align-items: center; gap: .7rem; padding: 16px 18px;
  background: var(--river-deep); color: #fff;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-bar { background: #0a3a38; } }
.phone-bar small { display: block; opacity: .75; font-size: .8rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.avatar svg { width: 20px; color: var(--river); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 22px; }
.msg {
  margin: 0; max-width: 84%; padding: 9px 13px; font-size: .97rem; line-height: 1.45;
  border-radius: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.me { align-self: flex-end; background: var(--bubble-me); border-top-right-radius: 4px; }
.her { align-self: flex-start; background: var(--bubble-her); border-top-left-radius: 4px; }

.chat .msg { opacity: 0; transform: translateY(6px); animation: pop .35s ease-out forwards; }
.chat .msg:nth-child(1) { animation-delay: .2s; }
.chat .msg:nth-child(2) { animation-delay: .7s; }
.chat .msg:nth-child(3) { animation-delay: 1.3s; }
.chat .msg:nth-child(4) { animation-delay: 1.8s; }
.chat .msg:nth-child(5) { animation-delay: 2.4s; }
.chat .msg:nth-child(6) { animation-delay: 2.9s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat .msg { animation: none; opacity: 1; transform: none; } }

.pay {
  display: inline-block; margin-top: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: #fff;
}
.pay.credito, .dot.credito, .bar .credito { background: var(--credito); }
.pay.pix, .dot.pix, .bar .pix { background: var(--pix); }
.dot.debito, .bar .debito { background: var(--debito); }
.dot.dinheiro, .bar .dinheiro { background: var(--dinheiro); }

.report { width: 84%; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 8px 0 8px; gap: 2px; }
.bar i { display: block; height: 100%; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: .82rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* How */
.how { border-top: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s);
  display: block; font: 800 3.4rem/1 var(--display); color: var(--river); margin-bottom: .6rem;
}
.steps p { color: var(--ink-soft); }

/* Where money goes */
.where {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--mist); border-radius: 28px; max-width: 1080px !important;
}
.methods { list-style: none; padding: 0; margin: 0; }
.methods li {
  display: grid; grid-template-columns: auto 7.5rem 1fr; align-items: center; gap: 4px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem;
}
.methods li:last-child { border-bottom: 0; }
.methods .dot { width: 14px; height: 14px; }
.methods b { font-family: var(--display); font-size: 1.25rem; }
.methods li > span:last-child { color: var(--ink-soft); }

/* Panel */
.panel p { color: var(--ink-soft); font-size: 1.1rem; }

/* Privacy */
.privacy { border-top: 1px solid var(--line); }
.privacy ul { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.privacy li { color: var(--ink-soft); max-width: 48ch; }
.privacy li b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.link { font-weight: 600; }

/* Price */
.price { display: flex; justify-content: center; }
.price-card {
  width: 100%; max-width: 520px; text-align: center;
  border: 2px solid var(--river); border-radius: 32px; padding: 44px 32px;
}
.amount { font: 800 5.4rem/1 var(--display); margin: .2em auto .1em; letter-spacing: -.04em; max-width: none; }
.amount span { font-size: 1.8rem; vertical-align: 2.2rem; margin-right: 4px; letter-spacing: 0; }
.amount small { font-size: 1.4rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.month { color: var(--ink-soft); margin: 0 auto 1.4rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 auto 1.8rem; text-align: left; max-width: 360px; }
.price-card li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--river); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px !important; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--river); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); margin: .7rem 0 0; }

/* Footer */
.foot {
  max-width: 1120px; margin: 40px auto 0; padding: 40px 20px 56px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  font-size: .93rem; color: var(--ink-soft);
}
.foot .brand.small { font-size: 1.2rem; margin-bottom: .3rem; }
.foot a { margin-right: .4rem; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin-bottom: .4rem; }
.updated { font-size: .95rem; }

@media (max-width: 860px) {
  .hero, .where { grid-template-columns: 1fr; gap: 40px; }
  .phone { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .privacy ul { grid-template-columns: 1fr; }
  .top nav { display: none; }
  main section { padding: 52px 16px; }
  .where { border-radius: 0; }
  .methods li { grid-template-columns: auto 6rem 1fr; font-size: .98rem; }
}
