/* Option A — Register. Closest to the RSTR+ reference: Gabarito, ink #353938, violet #8964f1,
   green #49bca0, paper #f6f5f4. A left column holds the money; pill tabs hold the modules. */
:root {
  --bg: #f6f5f4; --surface: #fff; --raised: #f1efed; --line: rgba(53, 57, 56, .09); --line-2: rgba(53, 57, 56, .16);
  --ink: #353938; --ink-2: #5b605e; --ink-3: #7c807e;
  --violet: #8964f1; --green: #49bca0;
  --accent: #7650ee; --accent-ink: #fff; --accent-text: #6a43e3; --accent-soft: rgba(137, 100, 241, .09);
  --pos: #23866d; --neg: #c8463f; --warn: #a3620a;
  --c1: #49bca0; --c2: #8964f1; --grid: rgba(53, 57, 56, .07);
  --r-ctl: 12px; --r-card: 20px; --r-chip: 8px;
  --font: 'Gabarito', system-ui, sans-serif; --font-num: 'Gabarito', system-ui, sans-serif; --font-display: 'Gabarito', system-ui, sans-serif;
  --shadow: none; --pad: 24px;
}
:root[data-theme="dark"] {
  --bg: #1d201f; --surface: #252928; --raised: #2e3231; --line: rgba(246, 245, 244, .08); --line-2: rgba(246, 245, 244, .14);
  --ink: #f2f1ef; --ink-2: #b9bcba; --ink-3: #8e9290; --accent-soft: rgba(137, 100, 241, .16); --accent-text: #a88cf6; --grid: rgba(246, 245, 244, .07); --pos: #5fd0b3;
}
body { font-size: 15px; }
.btn { border-radius: 999px; height: 44px; padding: 0 20px; }
.btn-sm { height: 34px; padding: 0 14px; }
.btn-ghost { border: 1.5px solid var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.chip { border-radius: 8px; height: 26px; padding: 0 12px; }
.chip-in { background: var(--violet); color: #fff; }
.chip-out { background: var(--green); color: #fff; }
.chip-client { background: var(--accent-soft); color: var(--accent-text); }
.chip-supplier { background: rgba(73, 188, 160, .14); color: var(--pos); }
.av-0 { background: #ece6fd; color: #5b3bc4; } .av-1 { background: #dcf3ec; color: #1e7a63; } .av-2 { background: #f3e9df; color: #8a5a2b; }
.av-3 { background: #e7e9e8; color: #353938; } .av-4 { background: #fde8ea; color: #a8323d; } .av-5 { background: #e3ecf9; color: #2d5a99; }
.seg-b.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.seg { border-radius: 999px; } .seg-b { border-radius: 999px; }
.search input { border-radius: 999px; border-color: transparent; }
.stat { border-radius: 20px; }
.stat-v { font-size: 28px; }
.ph-title { font-weight: 500; font-size: 32px; }
.sw-0 { background: #f1efe8; } .sw-1 { background: #2b2b2b; } .sw-2 { background: #8964f1; } .sw-3 { background: #49bca0; }
.sw-4 { background: #d7c7a5; } .sw-5 { background: #9aa3a0; } .sw-6 { background: #e7dccb; } .sw-7 { background: #5f6c94; }

/* ---------- app shell ---------- */
.is-app { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 28px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 12px; font: 600 22px/1 var(--font); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.brand-row { display: flex; justify-content: space-between; align-items: center; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: background-color .15s var(--ease); }
.icon-btn:hover { background: var(--raised); }
.balance { background: var(--bg); border-radius: 20px; overflow: hidden; }
.balance-top { padding: 20px; }
.balance-l { font-size: 14px; }
.balance-v { white-space: nowrap; font: 500 30px/1.1 var(--font); font-variant-numeric: tabular-nums; margin-top: 12px; letter-spacing: -.01em; }
.balance-v small { font-size: 22px; color: var(--ink-3); font-weight: 400; }
.balance-n { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: 16px 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
.quick span.q { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; transition: background-color .15s var(--ease); }
.quick a:hover span.q { background: var(--ink); color: var(--bg); }
.side h3 { font: 500 17px/1.2 var(--font); }
.side h3 + p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.acct { position: relative; height: 150px; border-radius: 18px; padding: 16px 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; margin-top: 12px; isolation: isolate; }
.acct::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.acct-cash { background: #2c302f; }
.acct-cash::before { background: radial-gradient(circle at 78% 28%, rgba(255,255,255,.18) 0 3px, transparent 4px) 0 0 / 22px 22px, radial-gradient(120% 90% at 100% 0%, #4a4f4d 0%, #2c302f 60%); opacity: .9; }
.acct-bank { background: #6f4fe0; }
.acct-bank::before { background: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px), linear-gradient(160deg, #8a6af2 0%, #6544d6 100%); }
.acct-l { font-size: 12px; opacity: .8; }
.acct-v { font: 500 20px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.acct-tag { position: absolute; top: 16px; right: 18px; font-size: 12px; opacity: .8; }
.acct-chip { position: absolute; top: 16px; left: 18px; width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(180deg, #e8d9a8, #c4ad6d); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.side-new { margin-top: auto; border: 1.5px solid var(--ink); border-radius: 14px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; transition: background-color .15s var(--ease), color .15s var(--ease); }
.side-new:hover { background: var(--ink); color: var(--bg); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 20px 32px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); }
.tabs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.tabs > a { height: 40px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 15px; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease); }
.tabs > a:hover { background: var(--raised); }
.tabs > a.is-active { background: #1f2221; color: #fff; }
:root[data-theme="dark"] .tabs > a.is-active { background: #f2f1ef; color: #1f2221; }
.org { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--raised); font-size: 14px; white-space: nowrap; }
.org b { width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 500; }
#view { padding: 8px 32px 48px; max-width: 1480px; width: 100%; }
.menu-btn { display: none; }

/* ---------- dashboard ---------- */
.dash { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); }
.dash-top { display: grid; grid-template-columns: 1.15fr 1.1fr .9fr; border-bottom: 1px solid var(--line); }
.cell { padding: 24px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.cell:last-child { border-right: 0; }
.cell-h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cell-h .tag { color: var(--accent-text); }
.cell-v { font: 500 28px/1 var(--font); font-variant-numeric: tabular-nums; margin-top: -6px; }
.cell-s { font-size: 13px; color: var(--ink-2); margin-top: -10px; }
.cell-actions { display: flex; gap: 8px; margin-top: auto; }
.cell-actions .btn { flex: 1; height: 52px; border-radius: 12px; }
.cell-actions .btn-icon { flex: 0 0 52px; padding: 0; }
.stack { display: flex; margin-left: auto; }
.stack .av { width: 30px; height: 30px; border: 2px solid var(--surface); margin-left: -8px; font-size: 11px; }
.stack .more { background: var(--raised); color: var(--ink-2); }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.toggle i { width: 36px; height: 20px; border-radius: 10px; background: var(--green); position: relative; }
.toggle i::after { content: ''; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.dash-mid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-bottom: 1px solid var(--line); }
.dash-pay { padding: 24px 28px; border-right: 1px solid var(--line); min-width: 0; }
.dash-roster { padding: 24px 24px; }
.dash-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.dash-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 17px; }
.dash-h a.link { font-size: 13px; color: var(--accent-text); }
.dash-pay .search { max-width: 240px; }
.reg-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 16px; align-items: center; font-size: 13px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.reg-row b { color: var(--ink); font-weight: 500; }
.pay-row { display: grid; grid-template-columns: 28px 120px minmax(0, 1fr) auto 104px; gap: 16px; align-items: center; height: 52px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-row .dots { color: var(--ink-3); }
.pay-row .id { color: var(--ink-2); font-size: 13px; }
.pay-row .amt { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-row .chip { width: 100%; justify-content: center; }
.roster { list-style: none; margin: 12px 0 0; padding: 0; }
.roster li a { display: flex; align-items: center; gap: 12px; height: 46px; font-size: 14px; border-radius: 10px; }
.roster li a:hover .r-n { color: var(--accent-text); }
.roster .r-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .r-v { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.roster-foot { display: flex; gap: 8px; margin-top: 12px; }
.roster-foot .btn { flex: 1; background: var(--raised); border: 0; color: var(--ink); height: 40px; }
.dash-chart { padding: 24px 28px 20px; }
.chips-sel { display: flex; gap: 8px; }
.chips-sel span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--raised); font-size: 13px; }
.dash .ch svg { height: 220px; }
.ch-tip { background: #1f2221; color: #fff; }

/* ---------- landing ---------- */
.lp { background: #f6f5f4; color: #353938; }
.lp-nav { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 28px; height: 52px; padding: 0 6px 0 16px; border-radius: 999px; background: #353938; color: #f6f5f4; box-shadow: 0 8px 24px rgba(0,0,0,.12); white-space: nowrap; }
.lp-nav .brand { font-size: 18px; color: #fff; gap: 10px; }
.lp-nav .brand img { width: 28px; height: 28px; }
.lp-links { display: flex; gap: 20px; font-size: 14px; color: rgba(246,245,244,.8); }
.lp-links a:hover { color: #fff; }
.lp-nav-r { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.lp-nav-r .btn { height: 40px; background: #f6f5f4; color: #353938; }
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 168px 24px 40px; text-align: center; overflow: hidden; }
.eyebrow { display: inline-flex; height: 30px; align-items: center; padding: 0 14px; border-radius: 999px; background: #e9e6e2; font-size: 13px; color: #5b605e; }
.hero h1 { font: 500 clamp(44px, 6.4vw, 84px)/1.02 var(--font); letter-spacing: -.03em; margin-top: 24px; max-width: 980px; }
.hero h1 .v { color: #8964f1; } .hero h1 .g { color: #2fa286; }
.hero p.sub { font-size: 19px; line-height: 1.55; color: #5b605e; max-width: 620px; margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; }
.btn-dark { background: #353938; color: #fff; height: 52px; padding: 0 8px 0 24px; gap: 16px; }
.btn-dark .i { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: #f6f5f4; color: #353938; }
.btn-line { border: 1.5px solid #353938; height: 52px; }
.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; width: 100%; max-width: 1360px; margin-top: auto; padding-top: 64px; }
.tile { display: flex; flex-direction: column; gap: 10px; }
.tile-l { height: 34px; border-radius: 999px; background: #fff; border: 1px solid rgba(53,57,56,.08); display: grid; place-items: center; font-size: 13px; color: #353938; }
.ph-img { position: relative; border-radius: 16px; background: #e4e1dd; border: 6px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); aspect-ratio: 3 / 4; overflow: hidden; transition: transform .25s var(--ease); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img .slot { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #8c8f8d; font-family: ui-monospace, monospace; }
.tile:hover .ph-img { transform: translateY(-2px); }
.tile:nth-child(odd) .ph-img { aspect-ratio: 3 / 3.6; }

.sec { padding: 120px 24px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.sec-h { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-h h2 { font: 500 clamp(32px, 4vw, 52px)/1.05 var(--font); letter-spacing: -.02em; }
.sec-h p { font-size: 17px; color: #5b605e; max-width: 520px; }
.frame { border-radius: 28px; background: #e9e6e2; padding: 24px; }
.frame-in { border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 196px; transition: transform .2s var(--ease); }
.mod:hover { transform: translateY(-2px); }
.mod .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #f6f5f4; }
.mod h3 { font: 500 18px/1.2 var(--font); margin-top: auto; }
.mod p { font-size: 14px; color: #5b605e; }
.mod.feat { grid-column: span 2; background: #353938; color: #f6f5f4; }
.mod.feat p { color: rgba(246,245,244,.75); }
.mod.feat .i { background: rgba(255,255,255,.1); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow-step { background: #fff; border-radius: 20px; padding: 28px; position: relative; }
.flow-step .n { font-size: 13px; color: #7c807e; }
.flow-step h3 { font: 500 20px/1.2 var(--font); margin: 12px 0 8px; }
.flow-step p { color: #5b605e; font-size: 15px; }
.flow-step .fig { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(53,57,56,.08); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.flow-step .fig b { font-weight: 500; }
.trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.trust-card { background: #fff; border-radius: 24px; padding: 40px; }
.trust-card h3 { font: 500 28px/1.15 var(--font); letter-spacing: -.01em; }
.trust-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.trust-card li { display: flex; gap: 12px; color: #5b605e; }
.trust-card li .i { color: #2fa286; margin-top: 2px; }
.trust-photo { border-radius: 24px; background: #e4e1dd; min-height: 420px; position: relative; overflow: hidden; }
.trust-photo .slot { position: absolute; left: 20px; bottom: 16px; font-size: 12px; color: #8c8f8d; font-family: ui-monospace, monospace; }
.close { text-align: center; padding: 140px 24px; }
.close h2 { font: 500 clamp(36px, 5vw, 64px)/1.04 var(--font); letter-spacing: -.03em; max-width: 860px; margin: 0 auto; }
.close .hero-cta { justify-content: center; }
.foot { border-top: 1px solid rgba(53,57,56,.1); padding: 32px 24px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #7c807e; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tiles .tile:nth-child(n+5) { display: none; }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .dash-top { grid-template-columns: 1fr 1fr; } .dash-top .cell:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .dash-mid { grid-template-columns: 1fr; } .dash-pay { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .is-app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 300px; z-index: 30; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .is-app.side-open .side { transform: none; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
  .menu-btn { display: grid; }
  .top { padding: 16px; } #view { padding: 8px 16px 40px; }
  .org span { display: none; } .org { padding: 0 6px; }
  .lp-links { display: none; }
  .sec-h, .trust, .flow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-nav { left: 16px; right: 16px; transform: none; justify-content: space-between; gap: 8px; }
  .lp-nav-r > a:first-child { display: none; }
  .hero { padding-top: 128px; }
  .hero p.sub { font-size: 17px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mods { grid-template-columns: 1fr; } .mod.feat { grid-column: auto; }
  .sec { padding: 80px 16px; }
  .frame { padding: 8px; border-radius: 20px; }
  .dash-top { grid-template-columns: 1fr; } .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .pay-row { grid-template-columns: minmax(0, 1fr) auto 88px; } .pay-row .dots, .pay-row .id { display: none; }
  .reg-row { grid-template-columns: 1fr auto; } .reg-row > :nth-child(1), .reg-row > :nth-child(4) { display: none; }
  .trust-card { padding: 28px; }
}
