/* NexoCalcApp - identidade visual. Paleta: #101D2B / #1B3040 / #16A66A / #29C987 / branco */
:root {
  --bg: #101D2B;
  --bg-deep: #0B1722;
  --surface: #1B3040;
  --surface-2: #162839;
  --line: #2B4358;
  --line-soft: #223649;
  --text: #F4F8FB;
  --muted: #A9BAC8;
  --faint: #7E93A5;
  --green: #16A66A;
  --accent: #29C987;
  --coral: #F08C80;
  --amber: #E9B44C;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --side-w: 280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #06130D; padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.ico { flex: none; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-deep); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; padding: 18px 14px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.nav { display: grid; gap: 2px; }
.nav a, .nav summary { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 14.5px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav [aria-current="page"] { background: var(--surface); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.nav summary .chev { margin-left: auto; transition: transform .15s; }
.nav details[open] > summary .chev { transform: rotate(180deg); }
.nav .sub { padding: 2px 0 6px 18px; margin-left: 17px; border-left: 1px solid var(--line-soft); display: grid; gap: 1px; }
.nav .sub a { padding: 6px 10px; font-size: 14px; }
.nav .badge { margin-left: auto; font-size: 12px; background: var(--surface); color: var(--muted); border-radius: 999px; padding: 0 8px; min-width: 22px; text-align: center; }
.side-foot { margin-top: auto; padding: 18px 10px 4px; font-size: 13px; color: var(--faint); line-height: 1.5; }
.side-foot a { color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(16,29,43,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.icon-btn.menu-btn { display: none; }
.topbar .brand { display: none; padding: 0; font-size: 16px; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); }
.search input::placeholder { color: var(--faint); }
.search .ico { position: absolute; left: 12px; top: 11px; color: var(--faint); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 9px; font: 12px var(--font); color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; pointer-events: none; }
.search-list { position: absolute; left: 0; right: 0; top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,.35); overflow: hidden; z-index: 40; max-height: 70vh; overflow-y: auto; }
.search-list a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.search-list a:last-child { border-bottom: 0; }
.search-list a:hover, .search-list a[aria-selected="true"] { background: var(--surface-2); }
.search-list small { color: var(--muted); display: block; }
.search-empty { padding: 14px; color: var(--muted); }
.top-note { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.top-note:hover { color: #fff; border-color: var(--accent); }
.content { width: 100%; max-width: 1140px; margin: 0 auto; padding: 28px 28px 56px; flex: 1; }

/* ---------- tipografia ---------- */
h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; margin-top: 12px; }
.muted { color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: #22394C; border-color: var(--faint); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #06130D; }
.btn-primary:hover { background: var(--green); border-color: var(--green); color: #06130D; }
.btn-ghost { background: transparent; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--faint); }
.fav-btn[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }
.fav-btn[aria-pressed="true"] .ico { fill: currentColor; }

.panel { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; }
.panel-title { font-size: 17px; font-weight: 650; margin-bottom: 16px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.field { grid-column: span 2; display: grid; gap: 6px; align-content: start; }
.field.half { grid-column: span 1; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; color: var(--text); }
.control { position: relative; display: flex; align-items: center; }
.control input, .control select { width: 100%; height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; color: var(--text); appearance: none; -webkit-appearance: none; }
.control select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A9BAC8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.control input::placeholder { color: var(--faint); }
.control input:hover, .control select:hover { border-color: var(--faint); }
.control input:focus, .control select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(41,201,135,.18); }
.control.money input { padding-left: 40px; }
.control.percent input { padding-right: 34px; }
.adorn { position: absolute; color: var(--muted); font-size: 14px; pointer-events: none; }
.control.money .adorn { left: 12px; }
.control.percent .adorn { right: 12px; }
input[type="date"] { color-scheme: dark; min-height: 44px; }
.hint { font-size: 13px; color: var(--faint); line-height: 1.4; }
.err { font-size: 13px; color: var(--coral); min-height: 0; }
.field.invalid .control input, .field.invalid .control select { border-color: var(--coral); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.form-actions { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .btn-primary { flex: 1 1 160px; }

/* ---------- calculadora ---------- */
.calc-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.calc-head .tools { display: flex; gap: 8px; align-items: center; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
.result { position: sticky; top: 76px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.result-empty { padding: 36px 26px; text-align: left; }
.result-empty .ico { color: var(--accent); margin-bottom: 14px; }
.result-empty p { color: var(--muted); max-width: 40ch; }
.result-empty .need { margin-top: 12px; color: var(--faint); font-size: 14px; }
.r-top { padding: 24px 26px 20px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.r-label { font-size: 14px; color: var(--muted); }
.r-value { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; color: #fff; word-break: break-word; }
.r-sub { margin-top: 6px; color: var(--accent); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.stats > div { padding: 16px 20px; }
.stats > div + div { border-left: 1px solid var(--line-soft); }
.stats dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 650; word-break: break-word; }
.r-sec { padding: 20px 26px; border-bottom: 1px solid var(--line-soft); }
.r-sec:last-child { border-bottom: 0; }
.r-sec h3 { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--line-soft); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
details.memory > summary { cursor: pointer; font-size: 15px; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; }
details.memory > summary::-webkit-details-marker { display: none; }
details.memory > summary .ico { margin-left: auto; transition: transform .15s; }
details.memory[open] > summary .ico { transform: rotate(180deg); }
.mem { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.mem th, .mem td { padding: 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.mem td:last-child, .mem th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }
.mem .d { color: var(--faint); font-size: 12.5px; display: block; font-weight: 400; margin-top: 1px; }
.mem tr.desconto td:last-child { color: var(--coral); }
.mem tr.provento td:last-child { color: var(--text); }
.mem tr.total td { border-top: 1px solid var(--line); font-weight: 650; color: #fff; padding-top: 11px; }
.mem tr.total td:last-child { color: var(--accent); }
.mem tr.total.neg td:last-child { color: var(--coral); }
.mem tr.section th { text-align: left; padding-top: 18px; color: var(--muted); font-size: 13px; font-weight: 650; border-bottom-color: var(--line); }
.table-wrap { overflow-x: auto; margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; position: sticky; top: 0; background: var(--surface-2); }
.more-rows { margin-top: 10px; }
.notes { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.notes li { padding-left: 16px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 26px; background: var(--surface-2); }
.next { display: block; padding: 18px 26px; background: var(--surface); border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.next:hover { background: #22394C; color: #fff; }
.next small { color: var(--muted); display: block; }
.next b { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--accent); }
.print-only { display: none; }

/* ---------- artigo / conteúdo ---------- */
.article { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 760px; }
.article section { display: grid; gap: 14px; }
.article p, .article li { color: #D3DEE7; max-width: 68ch; }
.bullets { display: grid; gap: 10px; }
.bullets li { padding-left: 20px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.formulas { display: grid; gap: 8px; }
.formulas li { background: var(--surface-2); border-left: 3px solid var(--green); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 14px; font-size: 15px; }
.example { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 12px; }
.example .ex-res { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.example .ex-res b { font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform .15s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 16px; }
.sources li { font-size: 15px; }
.disclaimer { font-size: 14px; color: var(--muted); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface-2); }
.ad-slot { display: block; min-height: 90px; margin: 28px 0; text-align: center; }
.ad-slot::before { content: "Publicidade"; display: block; font-size: 11px; color: var(--faint); margin-bottom: 4px; }
.ad-slot.ad-off { display: none; }
.prose { max-width: 720px; display: grid; gap: 16px; margin-top: 28px; }
.prose h2 { margin-top: 14px; }
.prose p, .prose li { color: #D3DEE7; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- próximos passos ---------- */
.steps { margin-top: 48px; }
.steps h2 { margin-bottom: 14px; }
.step-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.step-list a { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.step-list a:hover { border-color: var(--accent); background: var(--surface); color: #fff; }
.step-list b { display: flex; align-items: center; gap: 8px; }
.step-list b .ico { color: var(--accent); }
.step-list span { color: var(--muted); font-size: 14px; }

/* ---------- home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; padding: 8px 0 8px; }
.live { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 16px; }
.live-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.live-head b { font-size: 16px; }
.live-head span { font-size: 13px; color: var(--muted); }
.live-in { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }
.live-in .field { grid-column: auto; }
.live-out .lbl { color: var(--muted); font-size: 14px; }
.live-out .big { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.split { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: var(--bg); gap: 2px; margin-top: 10px; }
.split i { display: block; min-width: 0; transition: flex-basis .45s cubic-bezier(.2,.7,.2,1); }
.split .s-liq { background: var(--accent); } .split .s-inss { background: #5B8FB0; } .split .s-irrf { background: var(--coral); }
.split-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.split-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.split-key b { color: var(--text); font-weight: 600; }
.live-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.live-foot p { font-size: 14px; color: var(--muted); max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 15px; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--surface); color: #fff; }
.sect { margin-top: 48px; }
.sect-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sect-head a { font-size: 14px; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cat { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; }
.cat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cat-top .ico-box { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--accent); }
.cat-top h3 { font-size: 19px; font-weight: 650; }
.cat-top small { color: var(--muted); display: block; font-size: 14px; }
.rows { display: grid; }
.rows a { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-top: 1px solid var(--line-soft); color: var(--text); text-decoration: none; border-radius: 0; }
.rows a:hover { background: rgba(255,255,255,.04); color: #fff; }
.rows a .ico { color: var(--muted); }
.rows a:hover .ico { color: var(--accent); }
.rows b { display: block; font-weight: 600; font-size: 15px; }
.rows small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.rows .go { margin-left: auto; opacity: 0; transition: opacity .15s, transform .15s; color: var(--accent); }
.rows a:hover .go { opacity: 1; transform: translateX(2px); }
.duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.empty-hint { padding: 14px 6px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line-soft); }
.news { display: grid; gap: 0; }
.news li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.news time { color: var(--faint); font-size: 14px; }
.news b { display: block; }
.news span { color: var(--muted); font-size: 15px; }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); padding: 36px 28px 28px; }
.footer-in { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.footer h2 { font-size: 14px; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
.footer li a { color: var(--text); text-decoration: none; font-size: 15px; display: inline-block; padding: 3px 0; }
.footer li a:hover { color: var(--accent); }
.footer p { color: var(--muted); font-size: 14px; max-width: 36ch; margin-top: 10px; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.linklike:hover { color: var(--accent); }
.footer .footer-legal { max-width: 1140px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; }

/* ---------- consentimento ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.45); display: grid; gap: 12px; }
.consent p { font-size: 14px; color: var(--muted); }
.consent div { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  .home-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 70; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 60px rgba(0,0,0,.5); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(5,12,19,.6); z-index: 65; }
  .icon-btn.menu-btn { display: inline-grid; flex: none; }
  .topbar { padding: 10px 16px; }
  .topbar .brand { display: flex; }
  .topbar .brand span { display: none; }
  .top-note { display: none; }
  .search kbd { display: none; }
  .content { padding: 20px 16px 44px; }
  .cats, .duo { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .field, .field.half, .form-actions { grid-column: span 1; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 20px; }
  .stats dd { margin: 0; }
  .r-top, .r-sec, .r-actions, .next { padding-left: 20px; padding-right: 20px; }
  .panel { padding: 18px; }
  .live-in { grid-template-columns: minmax(0, 1fr); }
  .news li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- impressão / salvar em PDF ---------- */
@media print {
  :root { --text: #111; --muted: #444; --faint: #555; --line: #bbb; --line-soft: #ddd; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .side, .topbar, .footer, .calc-head .tools, .form-actions, .r-actions, .next, .steps, .article, .panel.form-panel, .ad-slot, .consent, .scrim, .skip, .crumbs { display: none !important; }
  .app { display: block; }
  .content { max-width: none; padding: 0; }
  .calc-grid { display: block; }
  .result { position: static; border: 0; background: #fff; }
  .r-top, .stats, .r-sec { background: #fff; border-color: #ccc; }
  .r-value, .stats dd, .mem tr.total td, .mem tr.total td:last-child { color: #000; }
  .mem tr.desconto td:last-child { color: #9b1c1c; }
  details.memory { display: block; }
  details.memory > summary .ico { display: none; }
  .print-only { display: block; margin-bottom: 14px; border-bottom: 2px solid #111; padding-bottom: 8px; }
  .print-only h2 { font-size: 16pt; }
  .print-only p, .print-only li { font-size: 10pt; color: #333; }
  .calc-head { display: none; }
  .chart { display: none; }
}
