/* As fontes ficam em /fonts/fonts.css (compartilhado com a página inicial) */
/* base (vinha do invólucro do artefato): o [hidden] é obrigatório, porque .screen{display:flex} venceria o padrão do navegador */
:root { color-scheme: light; box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Layout: one narrow column, one question per screen, like a bank app flow; PJ = green, PF = amber */
:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --fg: #13221d;
  --muted: #5b6b65;
  --line: #d6dfdb;
  --pj: #067a73;
  --pj-soft: #ddefed;
  --pf: #b8720f;
  --pf-soft: #f8ecd9;
  --ok: #1f7a4d;
  --warn: #b7791f;
  --bad: #b43a2e;
  --on-pj: #ffffff;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1513; --surface: #15201d; --fg: #e5eeea; --muted: #94a6a0; --line: #2a3a35;
    --pj: #3cc4b9; --pj-soft: #123230; --pf: #efb04f; --pf-soft: #33280f;
    --ok: #5fd197; --warn: #f0b456; --bad: #f07a6c; --on-pj: #04231f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1513; --surface: #15201d; --fg: #e5eeea; --muted: #94a6a0; --line: #2a3a35;
  --pj: #3cc4b9; --pj-soft: #123230; --pf: #efb04f; --pf-soft: #33280f;
  --ok: #5fd197; --warn: #f0b456; --bad: #f07a6c; --on-pj: #04231f;
  color-scheme: dark;
}
.logo { display: block; flex: none; border-radius: 12px; }
.brand-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-id span { display: flex; flex-direction: column; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.brand-id strong { font-family: var(--display); font-size: 16px; color: var(--fg); letter-spacing: .02em; }
.brand-id small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cta-top { display: flex; align-items: center; gap: 14px; }
.wa {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  background: var(--surface); color: var(--fg); font-weight: 700; font-size: 17px; border-radius: 12px; padding: 15px 18px;
}
.wa:hover { filter: brightness(.97); }
.wa:focus-visible { outline: 3px solid var(--pf); outline-offset: 2px; }
.wa svg { flex: none; }
.phone { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; user-select: all; }

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding-block: 28px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.brand b { color: var(--pj); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(30px, 8vw, 42px); font-weight: 800; }
h2 { font-size: clamp(22px, 5.6vw, 28px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }

.screen { display: flex; flex-direction: column; gap: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .screen { animation: rise .28s ease-out; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}

/* two-account emblem on the intro */
.accounts { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; }
.acct { border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.acct strong { font-family: var(--display); font-size: 20px; }
.acct span { font-size: 13px; color: var(--muted); }
.acct.pj { background: var(--pj-soft); } .acct.pj small, .acct.pj strong { color: var(--pj); }
.acct.pf { background: var(--pf-soft); } .acct.pf small, .acct.pf strong { color: var(--pf); }
.wall { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--muted); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px;
  background: var(--pj); color: var(--on-pj); border-radius: 12px; padding: 16px 20px; width: 100%;
  transition: transform .1s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 600; }
.btn:focus-visible, .opt:focus-visible, .link:focus-visible { outline: 3px solid var(--pf); outline-offset: 2px; }

/* progress */
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.progress-top .count { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--pj); border-radius: 99px; transition: width .3s ease; }
.link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.qtag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--pf); }
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  appearance: none; font: inherit; text-align: left; cursor: pointer; width: 100%;
  background: var(--surface); color: var(--fg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 15px 16px; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.opt:hover { border-color: var(--pj); }
.opt .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.opt[aria-pressed="true"] { border-color: var(--pj); background: var(--pj-soft); }
.opt[aria-pressed="true"] .dot { border-color: var(--pj); background: radial-gradient(circle, var(--pj) 45%, transparent 50%); }
.why { font-size: 14px; color: var(--muted); border-left: 3px solid var(--pf); padding-left: 12px; }

/* result */
.result-head { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pill { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--surface); }
.lvl-ok .pill { background: var(--ok); } .lvl-warn .pill { background: var(--warn); } .lvl-bad .pill { background: var(--bad); }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--warn) 50%, var(--bad)); }
.meter-track b { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--fg); transform: translate(-50%, -50%); transition: left .5s ease; }
.meter-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.score { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }

/* transfer rule diagram */
.rule { display: flex; flex-direction: column; gap: 14px; }
.flow { display: grid; grid-template-columns: 1fr; gap: 8px; }
.flow .acct { padding: 14px 16px; }
.arrow { display: flex; align-items: center; gap: 10px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.arrow::before { content: ""; width: 2px; height: 28px; background: var(--line); }
.arrow em { font-style: normal; font-weight: 600; color: var(--fg); }
.never { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--bad); color: var(--fg); }
.never b { color: var(--bad); flex: none; font-family: var(--display); }

.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.plan li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.plan li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--pj-soft); color: var(--pj); font-family: var(--mono); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.plan li.done::before { content: "✓"; background: var(--ok); color: var(--surface); }
.plan li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan p { font-size: 15px; color: var(--muted); }
.plan .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bad); }
.plan li.done .tag { color: var(--ok); }

.cta { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 16px; background: var(--pj); color: var(--on-pj); }
.cta p { opacity: .92; }
.slogan { font-family: var(--display); font-weight: 800; font-size: 20px; }
.fine { font-size: 12px; color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 10px; }

/* classes que substituem os estilos inline do original */
.bar i { width: 0%; }
.meter-track b { left: 0%; }
.lead-sm { font-size: 15px; }
.logo-cta { box-shadow: 0 0 0 2px var(--on-pj); }
.cta-title { color: inherit; }
.cta-phone { font-size: 14px; }
.fine-link { color: var(--pj); font-weight: 600; }
