/* Prumo — interface. A cor da marca chega por variáveis (--accent…) definidas no base.html a partir da construtora. */
:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #efece6;
  --ink: #1b1916;
  --ink-2: #3d3934;
  --muted: #6f6a62;
  --line: #e4e0d8;
  --ok: #1f7a4d; --ok-soft: #e1f2e8;
  --warn: #9a6400; --warn-soft: #fbf1db;
  --danger: #b8321f; --danger-soft: #fbe5e0;
  --info: #2c5d9e; --info-soft: #e4edf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(30 25 20 / .05), 0 6px 20px rgb(30 25 20 / .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --side: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110f; --surface: #1c1a17; --surface-2: #262320; --ink: #f1ede7; --ink-2: #d6d0c7; --muted: #a39c92; --line: #2f2b27;
    --ok: #5fd39a; --ok-soft: #173525; --warn: #f1bb4f; --warn-soft: #3a2d10; --danger: #ff8a75; --danger-soft: #3f1d17;
    --info: #8db8f2; --info-soft: #1b2a40;
    --accent: var(--accent-d); --accent-soft: var(--accent-soft-d); --accent-ink: var(--accent-ink-d);
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------------------------------------------------------------- layout */
.app { min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; min-width: 0; }
.brand img { height: 30px; max-width: 120px; object-fit: contain; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.brand .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sp { flex: 1; }
.main { max-width: 1080px; margin: 0 auto; padding: 18px 16px calc(var(--safe-b) + 104px); min-width: 0; overflow-x: clip; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.back:before { content: "‹"; font-size: 20px; line-height: 1; }

.side { display: none; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 6px calc(var(--safe-b) + 6px); background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px;
  color: var(--muted); background: none; border: 0; font-family: inherit; cursor: pointer; }
.tabbar a.on { color: var(--accent); }
.tabbar svg, .side svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .plus { margin-top: -18px; }
.tabbar .plus span.b { width: 52px; height: 52px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.dot { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--danger);
  color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

@media (min-width: 900px) {
  .topbar { display: none; }
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 18px 12px; gap: 2px;
    background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
  .side .brand { padding: 4px 10px 18px; }
  .side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 4px; }
  .side a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; }
  .side a:hover { background: var(--surface-2); }
  .side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .side svg { width: 19px; height: 19px; }
  .side .dot { position: static; margin-left: auto; }
  .side .foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--muted); }
  .main { margin-left: var(--side); max-width: none; padding: 28px 36px 60px; }
  .main > .narrow { max-width: 760px; }
}

/* ---------------------------------------------------------------- cards e listas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .card + .sec, .sec + .card { margin-top: 12px; }
.card h2 { margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.sec { margin-top: 22px; }
.sec > h2 { margin-bottom: 10px; }
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.grid.k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid.k { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: 21px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.hl { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kpi.hl .l, .kpi.hl .s { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
a.kpi { color: inherit; display: block; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list > .it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: inherit; }
.list > .it:first-child { border-top: 0; }
a.it:hover { background: var(--surface-2); }
.it .main-t { flex: 1; min-width: 0; }
.it .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it .d { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.it .v small { display: block; font-weight: 400; color: var(--muted); }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }

/* barras */
.bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 6px; }
.bar > i.ok { background: var(--ok); } .bar > i.warn { background: var(--warn); } .bar > i.danger { background: var(--danger); }
.meter { display: grid; gap: 6px; }
.meter .row { display: grid; grid-template-columns: 74px 1fr 46px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.meter .row b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* tabela */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); }
.tbl .best { background: var(--ok-soft); color: var(--ok); font-weight: 700; }

/* abas */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs a .c { opacity: .6; margin-left: 4px; }

/* ---------------------------------------------------------------- formulários */
form .f { display: grid; gap: 6px; margin-bottom: 14px; }
label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search],
input[type=color], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; outline: none; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { padding: 4px; height: 46px; }
textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 15px; color: var(--ink); padding: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.money { position: relative; }
.money input { padding-left: 38px; }
.money:before { content: "R$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; text-align: center; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }
.sticky-act { position: sticky; bottom: calc(var(--safe-b) + 78px); z-index: 5; padding-top: 10px; background: linear-gradient(transparent, var(--bg) 40%); }
@media (min-width: 900px) { .sticky-act { bottom: 0; padding-bottom: 12px; } }
form.inline { display: inline; }

/* editor de itens */
.itens { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 1fr 74px 78px 34px; gap: 6px; align-items: center; }
.item-row.p { grid-template-columns: 1fr 64px 70px 100px 34px; }
@media (max-width: 520px) {
  .item-row, .item-row.p { grid-template-columns: 1fr 1fr 34px; background: var(--surface-2); padding: 8px; border-radius: 12px; }
  .item-row > :first-child { grid-column: 1 / -1; }
  .item-row.p > :nth-child(4) { grid-column: 1 / 3; }
}
.item-row input, .item-row select { padding: 9px 10px; font-size: 15px; }
.item-row .money input { padding-left: 36px; }
.x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.x:hover { background: var(--danger-soft); color: var(--danger); }

/* toasts */
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 12px); display: grid; gap: 8px; width: min(94vw, 460px); }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14.5px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); animation: tin .2s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
.toast.warn { background: var(--warn); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }

/* folha de ações rápidas (+) */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 16px calc(var(--safe-b) + 18px);
  transform: translateY(105%); visibility: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility .25s; }
.sheet:before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
body.sheet-on .sheet-bg { opacity: 1; pointer-events: auto; }
body.sheet-on .sheet { transform: none; visibility: visible; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-size: 13px; text-align: center; font-weight: 550; }
.quick a span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.quick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; bottom: 50%; width: 460px; border-radius: 22px; transform: translate(-50%, 60%); opacity: 0; pointer-events: none; transition: .2s; }
  body.sheet-on .sheet { transform: translate(-50%, 50%); opacity: 1; pointer-events: auto; } }

/* menu (celular) */
.menu-grid { display: grid; gap: 14px; }
.menu-grid .list a.it svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* obra */
.obra-card { display: block; color: inherit; }
.obra-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.obra-card .nums { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.obra-card .nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat3 > div { background: var(--surface-2); border-radius: 12px; padding: 10px 6px; }
.stat3 .v { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.stat3 .l { font-size: 11.5px; color: var(--muted); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* alertas */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.alert + .alert { margin-top: 8px; }
.alert:before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.alert.critico { background: var(--danger-soft); } .alert.critico:before { background: var(--danger); }
.alert.aviso { background: var(--warn-soft); } .alert.aviso:before { background: var(--warn); }
.alert.info { background: var(--info-soft); } .alert.info:before { background: var(--info); }

/* funil */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.kanban .col { scroll-snap-align: start; background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kanban .col h3 { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 2px 4px 10px; }
.lead-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: inherit; margin-bottom: 8px; }
.lead-card .t { font-weight: 600; }
.lead-card .d { font-size: 12.5px; color: var(--muted); }

/* espelho */
.espelho { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.un { display: block; border-radius: 11px; padding: 9px 8px; text-align: center; font-size: 13px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.un b { display: block; font-size: 14px; }
.un small { color: var(--muted); font-size: 11.5px; }
.un.disponivel { background: var(--ok-soft); border-color: transparent; }
.un.reservada { background: var(--warn-soft); border-color: transparent; }
.un.vendida { background: var(--surface-2); color: var(--muted); border-color: transparent; }
.un.vendida b { color: var(--muted); text-decoration: line-through; }
.un.bloqueada { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }

/* fotos */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.fotos a, .fotos .ph { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.diario-card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; color: inherit; }
.diario-card .th { width: 76px; height: 76px; border-radius: 12px; background: var(--surface-2) center/cover; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

/* fluxo */
.fluxo { display: grid; gap: 14px; }
.fluxo .m { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; }
.fluxo .m .lb { font-size: 13px; color: var(--muted); }
.fluxo .m.atual .lb { color: var(--ink); font-weight: 700; }
.fluxo .bars { display: grid; gap: 3px; }
.fluxo .b { display: grid; grid-template-columns: 1fr 96px; gap: 8px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.fluxo .b span:last-child { text-align: right; color: var(--muted); }
.fluxo .b i { display: block; height: 9px; border-radius: 4px; min-width: 2px; }
.fluxo .rec i { background: var(--ok); } .fluxo .pag i { background: var(--danger); }
.fluxo .prev i { opacity: .35; }

/* páginas públicas */
.pub { min-height: 100dvh; display: flex; flex-direction: column; }
.pub .hero { padding: calc(var(--safe-t) + 28px) 22px 34px; background: var(--accent); color: var(--accent-ink); }
.pub .hero .in, .pub .body .in { max-width: 980px; margin: 0 auto; }
.pub .hero .brand { color: var(--accent-ink); }
.pub .hero .brand .mark { background: var(--accent-ink); color: var(--accent); }
.pub .hero .logo-pub { height: 44px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; }
.pub .hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.05; margin-top: 34px; max-width: 700px; letter-spacing: -.03em; }
.pub .hero p.lead { font-size: 17px; margin-top: 14px; max-width: 600px; color: color-mix(in srgb, var(--accent-ink) 85%, transparent); }
.pub .hero .btn { background: var(--accent-ink); color: var(--accent); margin-top: 24px; padding: 14px 24px; font-size: 16px; }
.pub .body { flex: 1; padding: 32px 22px 40px; }
.feat { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feat { grid-template-columns: repeat(3, 1fr); } }
.feat .card h3 { margin: 10px 0 6px; }
.feat .card p { color: var(--muted); font-size: 14.5px; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pub footer { padding: 18px 22px calc(var(--safe-b) + 18px); text-align: center; font-size: 12.5px; color: var(--muted); }
.auth { max-width: 400px; margin: 0 auto; padding: calc(var(--safe-t) + 40px) 20px 40px; }
.auth .brand { justify-content: center; margin-bottom: 26px; font-size: 18px; }
.auth .brand img { height: 48px; max-width: 200px; }
.auth .brand .mark { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }

.phone { display: flex; justify-content: center; }
.phone .scr { width: 270px; border-radius: 34px; border: 8px solid #1b1916; background: var(--bg); overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / .25); padding: 14px 12px; }

/* impressão (pedido, proposta) */
.doc { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.doc .hd { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--accent); padding-bottom: 14px; margin-bottom: 18px; gap: 16px; }
.doc .hd img { max-height: 56px; max-width: 200px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 8px; border-bottom: 1px solid #ddd; text-align: left; }
.doc td.n, .doc th.n { text-align: right; }
.doc .tot { font-size: 18px; font-weight: 700; text-align: right; margin-top: 10px; }
@media print {
  .side, .tabbar, .topbar, .no-print, .toasts { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
