/* =====================================================================
   Condoverso — estilos (site + sistema)
   ===================================================================== */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --border: #e2e7ee;
  --text: #17212f;
  --muted: #5f6b7c;
  --primary: #0f5c4d;
  --primary-600: #0c4b3f;
  --primary-50: #e7f3f0;
  --accent: #f2a93b;
  --navy: #0e1b2c;
  --green: #147a4c;  --green-bg: #e3f4ea;
  --amber: #9a5b00;  --amber-bg: #fdf1dc;
  --red: #b42318;    --red-bg: #fde8e6;
  --blue: #1d5fb8;   --blue-bg: #e5eefb;
  --gray: #4b5565;   --gray-bg: #eef1f5;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1rem; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--primary); color: #fff; text-decoration: none; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(15,92,77,.35); outline-offset: 1px; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); } .btn-danger:hover { background: #912018; }
.btn-ghost { background: transparent; color: var(--primary); padding: .4rem .6rem; }
.btn-ghost:hover { background: var(--primary-50); }
.btn-accent { background: var(--accent); color: #1d1300; } .btn-accent:hover { background: #e59a25; }
.btn-sm { padding: .35rem .65rem; font-size: .82rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
form.inline { display: inline; }

/* ---------- formulários ---------- */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .25rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input[type=month], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #cfd6e0; border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); vertical-align: -2px; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.span-2 { grid-column: span 2; }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* ---------- alertas / badges ---------- */
.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; font-size: .92rem; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #b6e2c7; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #f7c1bb; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: #c3d6f3; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: #f5d69d; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }

/* ---------- cards / tabelas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; }
.card.flush .card-head { padding: 1rem 1.25rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td .actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .icon { color: #b3bcc8; display: block; margin: 0 auto .5rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stat .label { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.stat .value { font-size: 1.55rem; font-weight: 700; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.value.pos { color: var(--green); } .value.neg { color: var(--red); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: .45rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: .5rem; } }

/* ---------- layout do sistema ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #c9d3e0; padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { color: #fff; margin: 0 .5rem 1.4rem; }
.sidebar .ctx { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #7f8ea3; margin: 0 .6rem .4rem; }
.sidebar .condo { color: #fff; font-weight: 600; margin: 0 .6rem 1rem; font-size: .92rem; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 8px; color: #c9d3e0; font-size: .92rem; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav a .count { margin-left: auto; background: var(--accent); color: #1d1300; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 0 .45rem; }
.sidebar .bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar .me { font-size: .85rem; padding: 0 .6rem .6rem; }
.sidebar .me strong { color: #fff; display: block; }
.sidebar .bottom button { background: none; border: 0; color: #c9d3e0; font: inherit; display: flex; gap: .65rem; align-items: center; padding: .55rem .65rem; cursor: pointer; width: 100%; border-radius: 8px; font-size: .92rem; }
.sidebar .bottom button:hover { background: rgba(255,255,255,.07); color: #fff; }
.main { min-width: 0; }
.topbar { display: none; }
.page { padding: 1.75rem 2rem 3rem; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.banner { padding: .7rem 2rem; font-size: .9rem; background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid #f5d69d; }
.banner-info { background: var(--blue-bg); color: var(--blue); border-bottom-color: #c3d6f3; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; color: #fff; }
.sidebar .brand-mark { background: var(--accent); color: var(--navy); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; }
  .topbar button { background: none; border: 0; color: #fff; padding: .25rem; cursor: pointer; }
  .page { padding: 1.25rem 1rem 3rem; }
  .banner { padding: .7rem 1rem; }
  .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
}

/* ---------- tabs / filtros ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; }
.filters input, .filters select { width: auto; min-width: 150px; }

/* ---------- componentes ---------- */
.pix-box { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: center; }
.pix-box img { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
@media (max-width: 640px) { .pix-box { grid-template-columns: 1fr; justify-items: center; } }
.copy-field { display: flex; gap: .5rem; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-r { fill: #2c9a74; } .chart .bar-d { fill: #e07a5f; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.legend .r::before { background: #2c9a74; } .legend .d::before { background: #e07a5f; }

.aviso { border-left: 4px solid var(--border); padding: .9rem 1rem; background: var(--surface); border-radius: 0 8px 8px 0; margin-bottom: .75rem; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.aviso.urgente { border-left-color: var(--red); } .aviso.importante { border-left-color: var(--accent); } .aviso.normal { border-left-color: var(--primary); }
.aviso h3 { margin-bottom: .3rem; }
.aviso .meta { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.aviso .body { white-space: pre-line; }
.nao-lido { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.timeline { border-left: 2px solid var(--border); padding-left: 1rem; margin-left: .3rem; }
.timeline .item { position: relative; margin-bottom: 1rem; }
.timeline .item::before { content: ""; position: absolute; left: -1.42rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }

.doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem 3rem; font-size: 1rem; line-height: 1.7; white-space: pre-line; font-family: Georgia, "Times New Roman", serif; }
.doc-title { font-family: Georgia, serif; text-align: center; font-size: 1.35rem; margin-bottom: 1.5rem; white-space: normal; }
@media (max-width: 640px) { .doc { padding: 1.25rem; } }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.sig { border: 1px solid var(--border); border-radius: 8px; padding: .8rem; background: #fff; }
.sig img { height: 64px; display: block; margin-bottom: .25rem; }
.sig .line { border-top: 1px solid #333; padding-top: .3rem; font-weight: 600; font-size: .9rem; }
.sig .meta { font-size: .72rem; color: var(--muted); word-break: break-all; }
.sig.pending { border-style: dashed; color: var(--muted); }
.pad-wrap { border: 2px dashed #b8c2cf; border-radius: 8px; background: #fcfdfe; position: relative; touch-action: none; }
.pad-wrap canvas { width: 100%; height: 180px; display: block; cursor: crosshair; }
.pad-wrap .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa6b5; pointer-events: none; font-size: .9rem; }

.video-frame { width: 100%; height: calc(100vh - 210px); min-height: 460px; border-radius: var(--radius); overflow: hidden; background: #0b1220; border: 1px solid var(--border); }

.modal { position: fixed; inset: 0; background: rgba(14,27,44,.55); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 100; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 1.5rem; box-shadow: var(--shadow-lg); }
.modal-box .card-head { margin-bottom: 1.2rem; }
.close-x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: .2rem; }

/* ---------- autenticação ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--navy) 0%, #12384a 60%, var(--primary) 100%); color: #dfe8f2; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 1.8rem; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 2rem 1rem; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.demo-box { background: var(--surface-2); border-radius: 8px; padding: .8rem 1rem; font-size: .83rem; margin-top: 1.5rem; }
.demo-box code { background: #fff; padding: 0 .3rem; border-radius: 4px; }

/* =====================================================================
   WEBSITE
   ===================================================================== */
.site { background: #fff; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 68px; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav a.btn { color: #fff; } .site-nav a.btn-secondary { color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; margin-left: auto; cursor: pointer; color: var(--text); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.25rem; gap: .9rem; border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
}
.hero { padding: 5rem 0 4rem; background: radial-gradient(1200px 500px at 85% -10%, #dff1eb 0%, transparent 60%), linear-gradient(180deg, #fbfcfd, #fff); }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 1.8rem; }
.hero .ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .trust { margin-top: 1.6rem; font-size: .85rem; color: var(--muted); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero .trust .icon { color: var(--primary); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 3rem 0; } }

.mock { background: var(--navy); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); }
.mock-inner { background: var(--bg); border-radius: 8px; padding: 1rem; display: grid; gap: .7rem; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-card { background: #fff; border-radius: 8px; padding: .7rem .8rem; border: 1px solid var(--border); font-size: .78rem; }
.mock-card b { display: block; font-size: 1.05rem; margin-top: .15rem; }
.mock-line { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.mock-line:last-child { border: 0; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mock-bars i { flex: 1; background: #2c9a74; border-radius: 3px 3px 0 0; opacity: .85; }
.mock-bars i:nth-child(even) { background: #e07a5f; }

.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--primary); margin-bottom: .6rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 1rem; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.module { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--border); }
.module .tag { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.module h3 { font-size: 1.25rem; margin: .4rem 0 1rem; }
.module ul { list-style: none; padding: 0; margin: 0; }
.module li { display: flex; gap: .5rem; padding: .35rem 0; font-size: .94rem; }
.module li .icon { color: var(--primary); margin-top: 3px; }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding-top: 2.8rem; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.6rem; display: flex; flex-direction: column; background: #fff; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .pill { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .8rem; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.plan .desc { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.plan .price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 0; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; flex: 1; }
.plan li { display: flex; gap: .5rem; padding: .3rem 0; font-size: .93rem; }
.plan li .icon { color: var(--primary); margin-top: 3px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.pay-methods { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.pay-methods span { display: inline-flex; gap: .4rem; align-items: center; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; border-radius: 20px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.8rem; margin: 0 0 .4rem; }
.cta-band p { margin: 0; opacity: .85; }

.site-footer { background: var(--navy); color: #a9b6c7; padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: .8rem; }
.site-footer a { color: #a9b6c7; display: block; padding: .15rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

.checkout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; padding: 3rem 0 4rem; }
.checkout .summary { position: sticky; top: 90px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { position: static; } }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.pay-option { border: 1.5px solid var(--border); border-radius: 10px; padding: .9rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.pay-option span.sub { font-weight: 400; font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .pay-options { grid-template-columns: 1fr; } }
.prose { max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.feature-row { padding: 2rem; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .feature-row { grid-template-columns: 1fr; padding: 1.25rem; } }
.prose h2 { margin-top: 2rem; }

/* ---------- impressão ---------- */
@media print {
  .sidebar, .topbar, .no-print, .banner, .page-head .btn, .site-header, .site-footer { display: none !important; }
  .app { display: block; }
  body, .page { background: #fff; padding: 0; }
  .doc { border: 0; padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* =====================================================================
   APLICATIVO (Android/iOS — html.is-app)
   ===================================================================== */
.app-only { display: none; }
html.is-app .app-only { display: block; }
html.is-app .app-hide, html.is-app .site-nav, html.is-app .menu-toggle, html.is-app .site-footer { display: none !important; }
html.is-app body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
html.is-app .topbar { padding-top: calc(.7rem + env(safe-area-inset-top)); }
html.is-app .sidebar { padding-top: calc(1.1rem + env(safe-area-inset-top)); padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
html.is-app .page { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
html.is-app .auth-main { padding-top: calc(2rem + env(safe-area-inset-top)); }
html.is-app .site-header { padding-top: env(safe-area-inset-top); }
@media (min-width: 901px) { html.is-app .main { padding-top: env(safe-area-inset-top); } }

.file-preview { display: flex; align-items: center; gap: .6rem; }
.file-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.file-preview img[src=""], .file-preview img:not([src]) { display: none; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); z-index: 200; width: min(420px, calc(100% - 24px));
  background: var(--navy); color: #fff; border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); cursor: pointer; animation: toast-in .25s ease-out; }
.toast strong { display: block; }
.toast span { font-size: .88rem; opacity: .85; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.bio-lock { position: fixed; inset: 0; z-index: 300; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 2rem; text-align: center; }
.bio-lock .brand-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--primary); }
.bio-lock .brand-mark svg { width: 34px; height: 34px; }
.bio-lock p { opacity: .8; margin: 0; }

/* =====================================================================
   DOWNLOAD DO APLICATIVO (/app e /app/instalar)
   ===================================================================== */
.app-opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: start; }
.app-opcoes .card { margin-bottom: 0; }
.app-opcoes + .card { margin-top: 1.25rem; }
.app-opcao.atual { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.app-opcao-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.app-opcao-head h2 { margin: 0; }
.app-opcao-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.app-passos { margin: .75rem 0; padding-left: 1.25rem; font-size: .92rem; }
.app-passos li { margin-bottom: .4rem; }
.app-pwa { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.app-pwa .btn { margin-bottom: .5rem; }
.app-qr { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.app-qr-img { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .5rem; line-height: 0; }
.app-qr-img svg { display: block; width: 208px; height: 208px; }
.app-qr > div:last-child { flex: 1 1 280px; }
.app-recursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.app-recursos > div { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.app-recursos svg { color: var(--primary); }
.app-recursos span { color: var(--muted); }
.auth-box .app-opcoes { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.app-banner { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.app-banner > span:first-child { flex: 1 1 240px; display: flex; gap: .6rem; align-items: center; }
.app-banner .close-x { background: none; border: 0; color: inherit; cursor: pointer; padding: .25rem; opacity: .7; }
html.is-app .app-banner.app-hide { display: none !important; }

/* Crédito do desenvolvedor */
.credito a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .copy { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }
.site-footer .copy .credito a { display: inline; padding: 0; color: #fff; }
.auth-side .credito a { color: #fff; }
.sidebar-credito { font-size: .72rem; opacity: .55; padding: .75rem .9rem 0; }
.sidebar-credito a { color: inherit; }

/* =====================================================================
   AJUDA / MANUAIS (/ajuda, /admin/ajuda)
   ===================================================================== */
.ajuda-outros { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: -.5rem 0 1.25rem; }
.ajuda { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.ajuda-sumario { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .88rem; }
.ajuda-sumario ol { margin: .5rem 0 0; padding-left: 0; list-style: none; display: grid; gap: .3rem; }
.ajuda-sumario a { color: var(--text); }
@media (max-width: 1000px) { .ajuda { grid-template-columns: 1fr; } .ajuda-sumario { position: static; } }
.manual { max-width: 820px; line-height: 1.65; }
.manual h2 { font-size: 1.45rem; margin: 2.4rem 0 .7rem; padding-top: .4rem; scroll-margin-top: 1rem; }
.manual h2:first-child { margin-top: 0; }
.manual h3 { font-size: 1.08rem; margin: 1.6rem 0 .4rem; }
.manual p, .manual li { color: #2a3544; }
.manual ul, .manual ol { padding-left: 1.3rem; }
.manual li { margin-bottom: .3rem; }
.manual .passos { counter-reset: p; list-style: none; padding: 0; margin: .8rem 0 1.1rem; display: grid; gap: .55rem; }
.manual .passos > li { counter-increment: p; position: relative; padding-left: 2.4rem; margin: 0; }
.manual .passos > li::before { content: counter(p); position: absolute; left: 0; top: .05rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.manual figure { margin: 1rem 0 1.4rem; }
.manual figure img { display: block; width: 100%; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.manual figure.cel { max-width: 290px; }
.manual figure.cel img { border-radius: 22px; }
.manual .figs { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.manual figcaption { font-size: .82rem; color: var(--muted); margin-top: .45rem; }
.manual .dica, .manual .atencao { border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; font-size: .93rem; }
.manual .dica { background: var(--primary-50); border: 1px solid #c3e2d9; }
.manual .atencao { background: var(--amber-bg); border: 1px solid #f5d69d; }
.manual .dica strong:first-child, .manual .atencao strong:first-child { margin-right: .25rem; }
.manual table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .92rem; }
.manual th, .manual td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.manual th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.manual code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; font-size: .88em; }
.manual .tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; }
