:root {
  --bg: #f3f1ec;
  --bg-2: #ece8e0;
  --surface: #fffcf7;
  --surface-2: #ffffff;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --mute: #8a847b;
  --line: rgba(28, 25, 23, .08);
  --line-strong: rgba(28, 25, 23, .14);
  --brand: #1c1917;
  --brand-2: #3f3a34;
  --accent: #9a6b2f;
  --accent-soft: #f4e7d2;
  --forest: #2f4f3e;
  --forest-soft: #e4efe8;
  --ok: #1f7a43;
  --ok-soft: #e5f6eb;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #1d4e6b;
  --info-soft: #e7f2f8;
  --shadow: 0 1px 0 rgba(28,25,23,.04), 0 12px 40px rgba(28,25,23,.06);
  --shadow-lg: 0 24px 64px rgba(28,25,23,.12);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-w: 248px;
  --top-h: 64px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.app-html, body.app-body { height: 100%; }
body.app-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -.01em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.topbar {
  position: relative; z-index: 40;
  height: var(--top-h);
  flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 18px;
  background: rgba(255,252,247,.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 210px; font-weight: 650; letter-spacing: -.03em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: #faf6ef;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: cover; display: block; flex-shrink: 0;
}
.brand small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--mute); font-weight: 600; text-transform: uppercase; }
.group-switch {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 6px;
  cursor: pointer; position: relative;
}
.group-switch .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--forest-soft); color: var(--forest);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.group-switch strong { font-size: 13px; display: block; line-height: 1.15; }
.group-switch span { font-size: 11px; color: var(--mute); }
.group-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 50;
}
.group-switch.open .group-menu { display: block; }
.group-menu button, .group-menu a {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 13px;
}
.group-menu button:hover, .group-menu a:hover { background: var(--bg); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}

.shell {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.sidebar {
  width: var(--nav-w); flex-shrink: 0;
  padding: 18px 12px 24px;
  border-right: 1px solid var(--line);
  background: #fffcf7;
  height: 100%;
  overflow-y: auto;
  position: sticky;
  top: 0;
}
.nav-sec { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 650; padding: 16px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 12px;
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  transition: .18s ease;
}
.nav-link:hover { background: rgba(28,25,23,.04); color: var(--ink); }
.nav-link.active { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 8px 20px rgba(28,25,23,.04); font-weight: 600; }
.nav-ico { width: 18px; text-align: center; opacity: .75; }
.main { flex: 1; padding: 28px 32px 80px; min-width: 0; overflow-y: auto; height: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; font-weight: 650; }
.page-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 620px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 600;
  background: var(--ink); color: #faf6ef; transition: .18s ease; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,25,23,.16); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; box-shadow: none; }
.btn-soft { background: var(--accent-soft); color: #6b4514; }
.btn-soft:hover { box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--forest); color: #f4faf6; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-note {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid #edcf96;
  font-weight: 650;
}
.btn-note:hover { background: #ffe8b8; box-shadow: none; }
.btn-note .note-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn); display: inline-block; flex-shrink: 0;
}
.btn-wa {
  background: #25d366; color: #fff;
  width: 36px; height: 36px; padding: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%; text-decoration: none;
  box-shadow: 0 4px 12px rgba(37,211,102,.28);
  transition: .18s ease;
}
.btn-wa:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-wa svg { display: block; }
.btn-wa.is-off { opacity: .32; pointer-events: none; box-shadow: none; background: #9aa59e; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card { margin-top: 16px; }
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.muted { color: var(--mute); font-size: 13px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.stat { padding: 20px 22px; }
.stat .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 650; }
.stat .v { font-size: 32px; font-weight: 650; letter-spacing: -.04em; margin-top: 6px; }
.stat .v.ok { color: var(--ok); }
.stat .v.bad { color: var(--danger); }
.stat p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }

.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(28,25,23,.015); }
.person { display: flex; align-items: center; gap: 10px; }
.person .av {
  width: 34px; height: 34px; border-radius: 50%;
  background: #efe8dc; color: #5c5144; display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 14px; min-width: 240px; font-size: 14px; outline: none;
}
.search:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #c4b6a1; box-shadow: 0 0 0 4px rgba(154,107,47,.12); }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink-soft);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.warn { color: var(--danger); border-color: #f0c7c3; background: var(--danger-soft); }

.empty {
  text-align: center; padding: 56px 20px; color: var(--ink-soft);
}
.empty .orb {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: #efe8dc; display: grid; place-items: center; font-size: 22px;
}
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px 12px; font-size: 14px; outline: none; color: var(--ink);
}
.field.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--mute); }

.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; overflow: hidden; }
.step {
  padding: 16px 14px; border-right: 1px solid var(--line); min-height: 78px;
}
.step:last-child { border-right: 0; }
.step.done { color: var(--ok); }
.step.current { background: linear-gradient(180deg, #f7f1e6, transparent); }
.step .n {
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; background: #eee; margin-bottom: 6px;
}
.step.done .n { background: var(--ok-soft); color: var(--ok); }
.step.current .n { background: var(--ink); color: #fff; }
.step b { display: block; font-size: 13px; }

.banner-pro {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(90deg, #ece6d8, #f6f1e6);
  border: 1px solid #e4d8c0; border-radius: 16px; padding: 14px 16px; margin-bottom: 20px;
}
.money-hero {
  background: linear-gradient(180deg, #f4faf6, #fffcf7);
  border: 1px solid #d7e8dc;
}
.bar { height: 8px; background: #ece8e0; border-radius: 99px; overflow: hidden; margin: 10px 0 12px; }
.bar > i { display: block; height: 100%; background: var(--forest); border-radius: 99px; }
.kpi-line { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.warn-box { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; color: #7a4a10; font-size: 13.5px; margin-top: 12px; }
.info-box { background: var(--info-soft); border-radius: 12px; padding: 12px 14px; color: var(--info); font-size: 13.5px; }

.toggle { position: relative; width: 40px; height: 22px; display: inline-block; }
.toggle input { display: none; }
.toggle i {
  position: absolute; inset: 0; background: #d6d0c6; border-radius: 99px; transition: .2s;
}
.toggle i:before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.toggle input:checked + i { background: var(--forest); }
.toggle input:checked + i:before { transform: translateX(18px); }

.month-grid { display: flex; gap: 4px; align-items: center; }
.mcell {
  min-width: 52px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; font-size: 10.5px; font-weight: 650; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-soft);
}
.mcell small { display: block; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.mcell.listo { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cb; cursor: pointer; }
.mcell.atraso { background: #fff6d8; color: #92620a; border-color: #f0dc9a; }
.mcell.mes { background: #eef4ea; color: var(--forest); border-color: #c8dccf; }
.mcell.parcial { background: #e7f2f8; color: var(--info); border-color: #c5dde9; }
.mcell:disabled { opacity: .4; cursor: not-allowed; }

.pay-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-seg button {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px;
  cursor: pointer; font-weight: 600;
}
.pay-seg button.on { border-color: var(--ink); background: var(--ink); color: #fff; }

.choice {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff;
}
.choice.on { border-color: var(--forest); background: var(--forest-soft); }

.drive-box { border-radius: 14px; padding: 18px 20px; margin-top: 14px; }
.drive-box.off { background: #eef7fb; border: 1px solid #c5dde8; }
.drive-box.on { background: #e7f4ee; border: 1px solid #b7e0c8; color: #1d4d38; font-weight: 550; }
.drive-box p { margin: 8px 0 14px; color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.drive-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-top: 16px; flex-wrap: wrap; }
.btn-drive { background: #143d42; color: #f6faf9; }
.btn-drive:hover { background: #0f3034; }
.btn-unlink { background: #9b2335; color: #fff; }
.btn-unlink:hover { background: #7f1b2b; }

.modal-back {
  position: fixed; inset: 0; background: rgba(20,16,12,.42);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center;
  z-index: 80; padding: 24px;
}
.modal-back.show { display: flex; }
.modal {
  width: min(640px, 100%); background: var(--surface-2);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow: auto; animation: pop .28s ease;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.03em; }
.modal-x { min-width: 36px; justify-content: center; font-size: 20px; line-height: 1; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; min-width: 240px; animation: pop .25s ease;
}
.toast.err { background: var(--danger); }

.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 42px 1fr 80px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .track { height: 8px; background: #ece8e0; border-radius: 99px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--forest); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { position: relative; }
.plan-card.featured { border-color: #d8c39a; background: linear-gradient(180deg, #fbf6ec, #fff); }
.badge { position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .08em; padding: 4px 8px; border-radius: 99px; }
.price { font-size: 36px; font-weight: 650; letter-spacing: -.04em; margin: 8px 0; }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare td, .compare th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }

.danger-zone { background: #fdf4f3; border-color: #f0d0cc; }
.int-card { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }

.share-box {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed #d8cbb6;
  border-radius: 14px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 15px;
}

.create-wrap { max-width: 640px; margin: 48px auto; }
.create-wrap h1 { font-size: 40px; letter-spacing: -.045em; margin: 0 0 8px; }

.sug { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f7f3ea; border: 1px solid #eadfcb; }

.nav-burger, .bottom-nav, .nav-scrim { display: none; }

.pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 100; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.pwa-copy { display: flex; gap: 12px; align-items: flex-start; }
.pwa-copy img { border-radius: 8px; }
.pwa-copy p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.pwa-actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 980px) {
  .brand { min-width: 0; }
  .brand-text { display: none; }
  .hide-sm { display: none !important; }
  .topbar { padding: 0 10px; height: 56px; gap: 8px; }
  .group-switch { flex: 1; min-width: 0; overflow: hidden; }
  .group-switch strong, .group-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
  .nav-burger {
    display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none;
    font-size: 22px; cursor: pointer; border-radius: 10px;
  }
  .nav-scrim {
    display: block; position: fixed; inset: 0; background: rgba(20,16,12,.4); z-index: 45;
  }
  .nav-scrim[hidden] { display: none; }
  .sidebar {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    width: min(300px, 86vw); height: 100%; transform: translateX(-105%);
    transition: transform .22s ease; box-shadow: var(--shadow-lg); padding-top: 20px;
  }
  body.nav-open .sidebar { transform: none; }
  body.app-body { overflow: hidden; }
  .shell { min-height: 0; }
  .main { padding: 16px 14px 96px; }
  .grid-3, .grid-2, .grid-4, .plan-grid, .stepper, .quick-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-head h1 { font-size: 24px; }
  .page-head { margin-bottom: 14px; }
  .month-grid, .table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
  .field.row-2 { grid-template-columns: 1fr; }
  .create-wrap { margin: 16px auto; }
  .create-wrap h1 { font-size: 28px; }
  .sug { flex-direction: column; align-items: stretch; }
  .int-card { flex-direction: column; }
  .share-box { flex-wrap: wrap; font-size: 13px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fffcf7; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: 0; font-size: 10px; font-weight: 650; color: var(--mute);
    padding: 4px 0; cursor: pointer;
  }
  .bottom-nav span { font-size: 18px; line-height: 1; }
  .bottom-nav a.on { color: var(--ink); }
  .combo-chart { overflow-x: auto; min-width: 0; }
  .stat .v { font-size: 26px; }
  .card { padding: 16px; }
}

.proof-bar {
  margin: 0 auto 40px;
  max-width: 1100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.proof-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 22px 8px;
}
.proof-item {
  text-align: center; padding: 8px 16px;
  border-right: 1px solid var(--line);
}
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 26px; letter-spacing: -.03em; margin: 6px 0 2px; }
.proof-item span:last-child { color: var(--ink-soft); font-size: 13px; }
.proof-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.d-blue { background: #2b9ae8; }
.d-red { background: #e03a2f; }
.d-amber { background: #f0a41b; }

.home-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.home-plan {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px 20px; display: flex; flex-direction: column; min-width: 0;
}
.home-plan.is-best { border-color: #b9d4e8; box-shadow: 0 10px 28px rgba(28,25,23,.05); }
.home-tag {
  margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); font-weight: 650;
}
.home-plan.is-best .home-tag { color: #2b6f99; }
.home-plan h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.home-price { font-size: 32px; font-weight: 650; letter-spacing: -.04em; margin: 10px 0 6px; line-height: 1.1; }
.home-price small { font-size: 14px; font-weight: 500; color: var(--mute); }
.home-lead { min-height: 44px; margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.home-plan ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; flex: 1; }
.home-plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.install-card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: #fff;
  border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  border-left: 3px solid #2b9ae8;
}
.install-card img { border-radius: 12px; }

/* public site — light */
body.site {
  margin: 0; font-family: var(--font); color: var(--ink);
  background:
    radial-gradient(800px 360px at 0% 0%, rgba(43,154,232,.07), transparent 55%),
    #f6f5f2;
  min-height: 100vh;
}
.s-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 40px;
  background: rgba(247,246,243,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.s-nav .links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.s-nav .links a { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.s-nav .links a:hover, .s-nav .links a.on { color: var(--ink); }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center; padding: 64px 64px 48px;
  max-width: 1180px; margin: 0 auto;
}
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 62px); line-height: 1.02;
  letter-spacing: -.045em; font-weight: 640; margin: 0 0 16px;
}
.hero-copy p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 520px; margin: 0 0 22px; }
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #3d6f8f; font-weight: 650; margin-bottom: 14px; }
.glass {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-lg);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.tabs button {
  background: none; border: 0; color: var(--ink-soft); padding: 10px; border-radius: 11px;
  cursor: pointer; font-weight: 600; font-size: 13px;
}
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(28,25,23,.06); }
.glass .btn { width: 100%; justify-content: center; padding: 13px; }
.err-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0 0 8px; }
.l-foot {
  padding: 36px 64px 40px; color: var(--mute); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); background: #fff; margin-top: 40px;
}
.l-foot a { color: var(--ink-soft); }
.l-foot a:hover { color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 8px 64px 56px; max-width: 1180px; margin: 0 auto; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feat h3 { margin: 0 0 8px; font-size: 16px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.how { max-width: 1180px; margin: 0 auto; padding: 0 64px 64px; }
.how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.how-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.site-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 32px 80px; display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.docs-nav { position: sticky; top: 78px; }
.docs-nav a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
.docs-nav a:hover, .docs-nav a.on { background: #fff; color: var(--ink); }
.docs-nav .sec { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 650; padding: 16px 10px 6px; }
.docs-body { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 40px; box-shadow: var(--shadow); }
.docs-body h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.04em; }
.docs-body h2 { margin: 32px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.docs-body h3 { margin: 22px 0 8px; font-size: 17px; }
.docs-body p, .docs-body li { color: var(--ink-soft); line-height: 1.65; font-size: 15.5px; }
.docs-body ul, .docs-body ol { padding-left: 20px; }
.docs-body code { background: #f3f1ec; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.doc-cards a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.doc-cards a:hover { border-color: #d8c39a; }
.doc-cards strong { display: block; margin-bottom: 4px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 24px 16px 24px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy p { font-size: 16px; }
  .features, .l-foot, .s-nav, .how { padding-left: 16px; padding-right: 16px; }
  .features, .how-grid, .doc-cards, .home-plans, .proof-inner, .plan-grid { grid-template-columns: 1fr; }
  .proof-bar { margin: 0 16px 28px; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 8px; }
  .proof-item:last-child { border-bottom: 0; }
  .install-card { grid-template-columns: 1fr; }
  .site-wrap { grid-template-columns: 1fr; padding: 16px 14px 60px; }
  .docs-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .docs-nav .sec { display: none; }
  .docs-nav a { white-space: nowrap; background: #fff; }
  .docs-body { padding: 20px 16px; }
  .docs-body h1 { font-size: 26px; }
  .s-nav { padding: 10px 14px; flex-wrap: wrap; }
  .site-burger { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; margin-left: auto; }
  .s-nav .links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px;
  }
  body.site-nav-open .s-nav .links { display: flex; }
  .tabs button { font-size: 12px; padding: 8px 4px; }
}

.grupos-home { max-width: 980px; margin: 0 auto; }
.grupos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grupo-card { min-height: 168px; display: flex; flex-direction: column; }
.grupo-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grupo-title h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.pro-badge { font-size: 10px; letter-spacing: .08em; font-weight: 700; border: 1px solid #d8c39a; color: #7a5a22; padding: 3px 7px; border-radius: 6px; }
.plus-badge { width: 28px; height: 28px; border-radius: 8px; background: #efe8dc; display: grid; place-items: center; font-weight: 700; color: var(--ink-soft); }
.grupo-new { border-style: dashed; }
.grupo-new:hover { background: #fff; }
.linkish { background: none; border: 0; padding: 0; color: var(--forest); font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none; }
.linkish:hover { text-decoration: underline; }
.survey { background: linear-gradient(180deg, #f7f1e6, #fffcf7); border-color: #e4d8c0; }
.survey-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }

.more { position: relative; }
.btn-more { min-width: 34px; font-size: 18px; line-height: 1; letter-spacing: .05em; }
.more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; text-align: left;
}
.more.open .more-menu { display: block; }
.more-menu button, .more-menu a {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink);
}
.more-menu button:hover, .more-menu a:hover { background: var(--bg); }
.more-menu .danger { color: var(--danger); }

.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.stat-strip > div { padding: 16px 22px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 650; }
.stat-strip .v { font-size: 26px; font-weight: 650; letter-spacing: -.03em; margin-top: 4px; }
.lista-badge { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--mute); font-size: 20px; letter-spacing: -.03em; }
.contacto-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; margin-top: 12px; }
.contacto-row .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 650; margin-bottom: 4px; }

.month-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 14px; }
.month-card {
  border: 1px solid var(--line); background: #faf8f4; border-radius: 12px;
  padding: 12px 6px; text-align: center; cursor: pointer; font-size: 11px; font-weight: 650;
  color: var(--ink-soft);
}
.month-card small { display: block; letter-spacing: .08em; color: var(--mute); margin-bottom: 4px; }
.month-card span { display: block; font-size: 14px; margin-bottom: 2px; }
.month-card.listo { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cb; cursor: default; }
.month-card.atraso { background: #fde8ea; color: #9b1c1c; border-color: #f0c7c3; }
.month-card.mes { background: #eef4ea; color: var(--forest); border-color: #c8dccf; }
.month-card.parcial { background: #e7f2f8; color: var(--info); border-color: #c5dde9; }
.month-card:disabled { cursor: default; }
.debt-banner {
  margin-top: 14px; background: #fdecea; border-radius: 12px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.debt-banner strong { font-size: 22px; letter-spacing: -.03em; color: var(--danger); }
.legend-meses { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--mute); }
.legend-meses i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.legend-meses .listo { background: var(--ok); }
.legend-meses .parcial { background: var(--info); }
.legend-meses .atraso { background: var(--danger); }
.legend-meses .cobrar { background: #d6d0c6; }

.part-block { margin-top: 16px; background: #f7f4ee; border-radius: 14px; padding: 12px 14px; }
.part-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.part-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }

.alert-atraso {
  margin-top: 14px; background: #fdecea; border-radius: 14px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.alert-atraso p { margin: 4px 0 0; font-size: 14px; color: #7a2e28; }
.mini-stat { background: #fff; border: 1px solid #d7e8dc; border-radius: 12px; padding: 12px 16px; min-width: 160px; }
.combo-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 180px; margin-top: 18px; }
.combo-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; border-radius: 10px; padding: 4px 0; }
.combo-col.is-now { background: #f3f7f2; }
.combo-bars { display: flex; gap: 3px; align-items: flex-end; height: 140px; }
.combo-bars i { display: block; width: 8px; border-radius: 4px 4px 0 0; min-height: 2px; }
.combo-bars .ing { background: var(--forest); }
.combo-bars .gas { background: #c45c4e; }
.combo-col small { margin-top: 6px; font-size: 10px; color: var(--mute); letter-spacing: .04em; }
.mov-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mov-row:first-of-type { border-top: 0; }
.ok-amt { color: var(--ok); font-weight: 650; }
.bad-amt { color: var(--danger); font-weight: 650; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: block; }
.quick:hover { border-color: #d8c39a; }
.quick strong { display: block; margin-bottom: 4px; }
.quick span { font-size: 13px; color: var(--mute); }

.site-burger { display: none; }

@media (max-width: 980px) {
  .grid-4, .quick-grid, .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div { padding: 12px; border-bottom: 1px solid var(--line); }
  .contacto-row { grid-template-columns: 1fr; }
  .month-cards { grid-template-columns: repeat(4, 1fr); }
  .grupos-grid { grid-template-columns: 1fr; }
  .row-actions { flex-wrap: wrap; }
}

body.role-readonly form[data-api]:not([data-allow-colab]),
body.role-readonly [data-action]:not([data-allow-colab]) {
  display: none !important;
}

.rcpt-page { margin: 0; background: #eef3f3; min-height: 100vh; padding: 20px 12px 48px; }
.rcpt-actions { display: flex; justify-content: center; gap: 8px; margin: 0 auto 16px; max-width: 420px; }
.rcpt {
  width: min(420px, 100%); margin: 0 auto; background: #fff;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 55, 58, .12);
  font-family: var(--font);
}
.rcpt-top {
  background: #0d5c61; color: #fff; text-align: center; padding: 22px 20px 18px;
}
.rcpt-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.rcpt-brand img { border-radius: 6px; background: #fff; }
.rcpt-brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.rcpt-brand small { display: block; font-size: 9px; letter-spacing: .16em; opacity: .8; }
.rcpt-top h1 { margin: 0; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; }
.rcpt-top p { margin: 4px 0 0; font-size: 13px; opacity: .85; }
.rcpt-body { padding: 22px 22px 28px; color: #1c1917; }
.rcpt-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.rcpt-n { font-weight: 650; color: #0d5c61; }
.rcpt-k { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a847b; font-weight: 650; margin-bottom: 3px; }
.rcpt-block { margin: 0 0 16px; }
.rcpt-block strong { font-size: 16px; font-weight: 650; }
.rcpt-amt { font-size: 34px; font-weight: 700; color: #0d5c61; letter-spacing: -.03em; line-height: 1.1; }
.rcpt-sub { font-size: 13px; color: #8a847b; margin-top: 2px; }
.rcpt-foot { margin-top: 28px; padding-top: 8px; }
.rcpt-dom { margin-top: 10px; color: #0d5c61; font-weight: 650; font-size: 13px; }
.modal-recibo { width: min(420px, 100%); padding: 22px 22px 20px; }
.modal-recibo h2 { font-size: 20px; margin-bottom: 4px; }
.rcpt-lead { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.rcpt-mini {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 24px rgba(28,25,23,.05);
}
.rcpt-mini + .rcpt-mini { margin-top: 12px; }
.rcpt-mini-top {
  background: #0d5c61; color: #fff; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.rcpt-mini-kicker {
  display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .75; margin-bottom: 3px; font-weight: 650;
}
.rcpt-mini-top strong { font-size: 15px; font-weight: 650; }
.rcpt-mini-n { font-size: 13px; font-weight: 650; opacity: .9; white-space: nowrap; }
.rcpt-mini-body { padding: 16px 16px 6px; }
.rcpt-mini-amt { font-size: 30px; font-weight: 700; color: #0d5c61; letter-spacing: -.03em; line-height: 1; }
.rcpt-mini-concept { margin: 6px 0 14px; font-size: 14px; color: var(--ink); font-weight: 600; }
.rcpt-mini-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.rcpt-mini-dl dt {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute); font-weight: 650; margin-bottom: 2px;
}
.rcpt-mini-dl dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.rcpt-mini-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 16px 16px; border-top: 1px solid var(--line);
}
.rcpt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 12px; font-size: 13.5px; font-weight: 650;
  text-decoration: none; transition: .15s ease;
}
.rcpt-btn-wa { background: #1f9d4d; color: #fff; }
.rcpt-btn-wa:hover { background: #188c43; color: #fff; }
.rcpt-btn-pdf { background: #f4f1ea; color: var(--ink); border: 1px solid var(--line-strong); }
.rcpt-btn-pdf:hover { background: #ece7dc; }
.rcpt-pdf-ico { font-size: 15px; }
.rcpt-nowa {
  grid-column: 1 / -1; font-size: 13px; color: var(--mute);
  background: #faf7f1; border-radius: 10px; padding: 10px 12px;
}
@media (max-width: 520px) {
  .rcpt-mini-cta { grid-template-columns: 1fr; }
}
.month-card.listo { cursor: pointer; }

/* print */
@media print {
  .topbar, .sidebar, .actions, .btn, .sug, .banner-pro, .bottom-nav, .pwa-banner, .nav-burger, .no-print, .rcpt-actions { display: none !important; }
  html.app-html, body.app-body, body.rcpt-page { height: auto; overflow: visible; display: block; background: #fff; padding: 0; }
  .shell { display: block; overflow: visible; height: auto; }
  .main { padding: 0; overflow: visible; height: auto; }
  .rcpt { box-shadow: none; width: 100%; max-width: 480px; }
}
