:root {
  --bg: #0d081e; --bg2: #150e2e; --bg3: #1d1240; --surface2: #261a52; --line: #3b2a70;
  --purple: #7c5cff; --purple2: #5a3df5; --purple3: #c4b5ff; --orange: #ff7518; --green: #00e5a8; --green2: #00c2ff;
  --red: #ff5470; --yellow: #ffb547; --gold: #ffd166;
  --text: #eef1ff; --muted: #9aa3c7;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, #a855f738, transparent 60%), radial-gradient(900px 500px at -10% 30%, #d84aff1f, transparent 55%), var(--bg); }
a { color: var(--purple3); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: 1.35rem; }
.wrap { width: min(100%, 980px); margin: 0 auto; padding: 0 16px; }

/* topo */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(10,6,18,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 10px; height: 58px; }
.logo { font-weight: 900; font-size: 1.25rem; letter-spacing: .5px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff8, transparent 40%), var(--purple); display: inline-block; }
.logo b { color: var(--green); }
.grow { flex: 1; }
nav.main { display: flex; gap: 4px; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
nav.main a.on, nav.main a:hover { color: #fff; background: var(--bg3); }
.bal { background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; color: var(--green); white-space: nowrap; }
@media (max-width: 640px) {
  nav.main { position: fixed; bottom: 0; left: 0; right: 0; background: #0f0820; border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  nav.main a { flex: 1; text-align: center; font-size: .78rem; padding: 8px 2px; }
  main { padding-bottom: 84px; }
}

/* botoes e formularios */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 13px 26px; border-radius: 12px; color: #042818; background: linear-gradient(135deg, #0f8, #00e055); box-shadow: 0 8px 24px #00ff7873; transition: transform .12s, box-shadow .12s, opacity .12s; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn:not([disabled]):hover { transform: translateY(-2px); }
.btn:not([disabled]):active { transform: translateY(0); }
.btn.alt { color: #fff; background: linear-gradient(135deg, #7c5cff, #5a3df5); box-shadow: 0 8px 24px #7c5cff66; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.cta { border-radius: 999px; padding: 16px 24px; font-size: 1rem; font-weight: 800; animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 8px 28px #00ff7873; } 50% { transform: scale(1.025); box-shadow: 0 10px 34px #00ff78a0; } }
.btn.danger { background: linear-gradient(135deg, var(--red), #d63356); color: #fff; box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: .78rem; box-shadow: none; }
.btn.small.alt { box-shadow: 0 8px 24px #7c5cff66; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 12px 0 5px; font-weight: 600; }
input, select { width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line); background: #0f0a1d; color: var(--text); font: inherit; }
input:focus, select:focus { outline: 2px solid var(--purple2); border-color: transparent; }
input[type=checkbox] { width: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; margin: 14px 0; }
.check input { margin-top: 4px; }

/* cards */
.card { background: #171c36b3; border: 1px solid #ffffff14; border-radius: 18px; padding: 20px; margin: 14px 0; }
.card.narrow { max-width: 440px; margin-inline: auto; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.err { color: var(--red); font-weight: 600; min-height: 1.2em; margin-top: 8px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--bg3); border: 1px solid var(--line); }
.pill.ok { color: var(--green); } .pill.warn { color: var(--yellow); } .pill.bad { color: var(--red); }
.sandbox { background: #3b2a00; color: var(--yellow); text-align: center; font-size: .8rem; padding: 4px 8px; font-weight: 700; }

/* home */
.hero { text-align: center; padding: 34px 0 10px; }
.hero p { color: var(--muted); max-width: 560px; margin: 8px auto 20px; }
.hero em { color: var(--green); font-style: normal; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); margin-bottom: 8px; }
.demo-cvs { display: block; margin: 0 auto; max-width: 300px; width: 100%; border-radius: 16px; border: 1px solid var(--line); }

/* entradas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg3); color: var(--text); font-weight: 800; cursor: pointer; font: inherit; }
.chip.on { border-color: var(--green); color: var(--green); }

/* jogo */
.game-wrap { max-width: 460px; margin: 0 auto; }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px; font-weight: 800; }
.hud .box { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 76px; }
.hud .box small { display: block; color: var(--muted); font-weight: 600; font-size: .68rem; text-transform: uppercase; }
#cvs { width: 100%; display: block; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #1b0f3a, #0e0820); touch-action: none; cursor: crosshair; }
.tiers { display: flex; gap: 4px; margin: 10px 0; }
.tier { flex: 1; text-align: center; font-size: .7rem; padding: 5px 2px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--line); color: var(--muted); }
.tier.hit { background: #0b3a24; border-color: var(--green); color: var(--green); font-weight: 800; }
.overlay { position: fixed; inset: 0; background: rgba(5,2,12,.8); display: grid; place-items: center; z-index: 50; padding: 16px; }
.overlay .card { max-width: 380px; width: 100%; text-align: center; }
.big { font-size: 2.2rem; font-weight: 900; }

/* tabelas */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; }
.scroll { overflow-x: auto; }
.pos { color: var(--green); } .neg { color: var(--red); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pix { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; background: #0f0a1d; padding: 10px; border-radius: 10px; border: 1px dashed var(--purple); }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #231747; border: 1px solid var(--purple2); padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; max-width: 90vw; font-weight: 600; }
#toast.show { opacity: 1; transform: translateX(-50%); }
footer.foot { color: var(--muted); font-size: .78rem; text-align: center; padding: 26px 16px 40px; border-top: 1px solid var(--line); margin-top: 30px; }

/* ===== Landing (identica ao original) ===== */
body.landing-page header.top { position: absolute; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; }
.app-logo { height: 44px; width: auto; display: block; }
.lp-hero { position: relative; overflow: visible; padding: 88px 16px 32px; }
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #1c0c3014 0%, #1c0c3047 62%, var(--bg) 100%), var(--img-home, url(/img/bg-home.png)) center top / cover no-repeat; }
.lp-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 480px; margin: 0 auto; }
.lp-title { text-transform: uppercase; letter-spacing: -.04em; white-space: nowrap; font-size: clamp(1.1rem, 4.8vw, 1.5rem); font-weight: 900; line-height: 1.05; margin: 0 0 14px; text-shadow: 0 2px 12px #0008; }
@media (min-width: 768px) { .lp-title { font-size: 3.4rem; letter-spacing: -.02em; white-space: normal; } .lp-hero-inner, .lp-final, .lp-section { max-width: 720px; } }
.lp-title-accent { color: var(--gold); text-shadow: 0 0 18px #ffd16673; }
.lp-title-money { color: var(--green); text-shadow: 0 0 18px #00e5a873; }
.lp-phone { width: 280px; max-width: 100%; margin: 10px auto 20px; border-radius: 28px; padding: 5px; background: linear-gradient(180deg, #a78bfa, #6d28d9); box-shadow: 0 10px 40px #00000073, 0 0 40px #7c5cff55; }
.lp-phone video { display: block; width: 100%; border-radius: 22px; background: #120a2a; aspect-ratio: 9 / 16; object-fit: cover; }
.lp-ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.lp-link { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; padding: 8px; text-decoration: none; }
.lp-note { color: #eef1ffc7; font-size: .8rem; margin: 6px 0 0; text-shadow: 0 1px 6px #000a; }
.lp-howto { background: #00000038; border-top: 1px solid #ffffff0f; border-bottom: 1px solid #ffffff0f; padding: 44px 0 48px; margin-top: 8px; }
.lp-howto-head { text-align: center; margin-bottom: 28px; padding: 0 16px; }
.lp-howto-title { text-transform: uppercase; letter-spacing: .04em; font-size: 1.55rem; font-weight: 900; margin: 0; }
.lp-howto-sub { color: var(--muted); margin-top: 8px; font-size: .9rem; }
.lp-howto-scroll { display: flex; gap: 14px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 960px; margin: 0 auto; }
.lp-howto-scroll::-webkit-scrollbar { display: none; }
.lp-step { flex: 0 0 min(78vw, 250px); scroll-snap-align: start; background: #171c36b3; border: 1px solid #ffffff14; border-radius: 18px; padding: 20px; }
.lp-step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, #7c5cff, #5a3df5); margin-bottom: 12px; }
.lp-step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lp-step p { color: var(--muted); font-size: .9rem; margin: 0; }
.lp-section { max-width: 720px; margin: 0 auto; padding: 36px 16px 8px; }
.lp-section h2 { text-align: center; font-size: 1.4rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.lp-trio { display: grid; gap: 14px; }
@media (min-width: 768px) { .lp-trio { grid-template-columns: repeat(3, 1fr); } }
.lp-final { text-align: center; max-width: 480px; margin: 0 auto; padding: 36px 16px 48px; }
.lp-final h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.lp-final p { color: var(--muted); margin-bottom: 18px; }

nav.main.hide { display: none; }
main.full { width: 100%; max-width: none; padding: 0; }
