/* Shared styles for Nitivo tool pages. */
:root {
  --bg: #f6f7f5; --surface: #ffffff; --surface-2: #eef3ef; --text: #15201b; --muted: #5b6962; --line: #d9e0db;
  --brand: #0b6e4f; --brand-ink: #ffffff; --accent: #e8f5ee; --warn-bg: #fff6e5; --warn-ink: #7a4b00;
  --ad-bg: #f3f0ff; --ad-ink: #3b2f7a; --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512; --surface: #171f1b; --surface-2: #1f2a24; --text: #e8ede9; --muted: #9aa8a0; --line: #2b3832;
    --brand: #3fbf8f; --brand-ink: #06110c; --accent: #16302a; --warn-bg: #2d2412; --warn-ink: #f0c57a;
    --ad-bg: #221d3a; --ad-ink: #c9bdf7; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1512; --surface: #171f1b; --surface-2: #1f2a24; --text: #e8ede9; --muted: #9aa8a0; --line: #2b3832;
  --brand: #3fbf8f; --brand-ink: #06110c; --accent: #16302a; --warn-bg: #2d2412; --warn-ink: #f0c57a;
  --ad-bg: #221d3a; --ad-ink: #c9bdf7; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.brand span { color: var(--brand); } .brand img { border-radius: 7px; }
.crumb { color: var(--muted); font-size: 13px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.field { margin-bottom: 16px; } .field:last-child { margin-bottom: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row .field { margin-bottom: 0; }
.money { position: relative; }
.money::before { content: "R$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], select { width: 100%; font-size: 18px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); min-height: 52px; font-family: inherit; }
.money input { padding-left: 46px; font-variant-numeric: tabular-nums; }
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-top: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; }
.result { background: var(--accent); border-color: transparent; }
.result .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.result .big { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kv { background: var(--surface); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.kv .k { font-size: 12px; color: var(--muted); } .kv .v { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 0; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-wa { background: #25d366; color: #062b14; margin-top: 14px; } .btn-wa[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--line); width: auto; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; } .warn strong { display: block; margin-bottom: 4px; }
.ad { background: var(--ad-bg); color: var(--ad-ink); border-color: transparent; } .ad .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-bottom: 6px; } .ad h2 { margin: 0 0 6px; font-size: 18px; } .ad p { margin: 0 0 12px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.on td { background: var(--accent); font-weight: 700; }
details { border-top: 1px solid var(--line); padding: 12px 0; } details summary { cursor: pointer; font-weight: 600; } details p { color: var(--muted); margin: 8px 0 0; }
.src { font-size: 13px; color: var(--muted); } .src a { color: inherit; }
footer { margin-top: 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
nav.foot { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; } nav.foot a { color: inherit; text-decoration: none; font-weight: 600; }
.related { display: grid; gap: 10px; } .related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; font-weight: 600; } .related a span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
@media (max-width: 380px) { .grid, .row { grid-template-columns: 1fr; } .result .big { font-size: 34px; } }
