:root {
  --bg: #fffaf3;
  --paper: #ffffff;
  --ink: #2b1a10;
  --muted: #6b5141;
  --line: #ead9c2;
  --choc: #3b2416;
  --choc-2: #4d301e;
  --choc-3: #6a4430;
  --on-choc: #f8ead6;
  --on-choc-mute: #d3b79a;
  --honey: #f0a92e;
  --honey-deep: #b86f06;
  --honey-soft: #ffd27a;
  --honey-tint: #fdeccb;
  --link: #8c4a0e;
  --warn-bg: #fff3dc;
  --err: #a1361f;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --text: 'Nunito', system-ui, sans-serif;
  --w: 1140px;
  --r: 18px;
  --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23f0a92e' fill-opacity='.09'%3E%3Cg transform='translate(14 18) rotate(-20) scale(.7)'%3E%3Cellipse cx='16' cy='21.5' rx='7.2' ry='6.2'/%3E%3Cellipse cx='6.6' cy='13.6' rx='2.9' ry='3.6'/%3E%3Cellipse cx='12.2' cy='7.8' rx='3' ry='3.9'/%3E%3Cellipse cx='19.8' cy='7.8' rx='3' ry='3.9'/%3E%3Cellipse cx='25.4' cy='13.6' rx='2.9' ry='3.6'/%3E%3C/g%3E%3Cg transform='translate(70 66) rotate(18) scale(.62)'%3E%3Cellipse cx='16' cy='21.5' rx='7.2' ry='6.2'/%3E%3Cellipse cx='6.6' cy='13.6' rx='2.9' ry='3.6'/%3E%3Cellipse cx='12.2' cy='7.8' rx='3' ry='3.9'/%3E%3Cellipse cx='19.8' cy='7.8' rx='3' ry='3.9'/%3E%3Cellipse cx='25.4' cy='13.6' rx='2.9' ry='3.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--choc); color: #fff; padding: 8px 12px; z-index: 10; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.005em; color: var(--choc); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 650; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--muted); max-width: 36em; margin: 0 0 1.4rem; }

/* Topo */
.top { background: var(--choc); color: var(--on-choc); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-choc); text-decoration: none; font: 600 1.55rem/1 var(--display); white-space: nowrap; }
.brand b { color: var(--honey); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--honey); color: var(--choc); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--on-choc); text-decoration: none; padding: 7px 13px; font-weight: 700; font-size: .98rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--choc-2); }
.nav a[aria-current] { background: var(--honey); color: var(--choc); }

/* Hero */
.hero { background: var(--choc) var(--paws); color: var(--on-choc); padding: 44px 0 56px; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-choc-mute); }
.hero .help { color: var(--on-choc-mute); }
.hero-in { display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: 44px; align-items: start; }
.hero .out-col { padding-top: 6px; }
.hero .answer { background: var(--honey); }
.hero .facts { color: var(--on-choc); border-color: var(--choc-3); }
.hero .facts div { border-color: var(--choc-3); }
.hero .facts dt { color: var(--on-choc-mute); }
.hero .facts em { color: var(--honey-soft); }
.hero .regua-box { background: var(--choc-2); }
.hero .warn { background: var(--choc-2); color: var(--on-choc); border-color: var(--honey); }
.help { font-size: .92rem; color: var(--muted); margin: 0; }

/* Formulários */
.panel { display: grid; gap: 16px; background: var(--paper); color: var(--ink); padding: 22px; border: 2px solid var(--choc); border-radius: var(--r); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .98rem; }
input, select { font: 600 1.05rem var(--text); color: var(--ink); background: var(--paper); border: 2px solid #cdb69c; border-radius: 12px; padding: 10px 12px; width: 100%; min-height: 48px; font-variant-numeric: tabular-nums; }
input:focus, select:focus { border-color: var(--honey-deep); outline: none; box-shadow: 0 0 0 3px var(--honey-tint); }
input::placeholder { color: #a8907a; font-weight: 500; }
.unit { display: flex; align-items: stretch; border: 2px solid #cdb69c; border-radius: 12px; overflow: hidden; background: var(--paper); }
.unit:focus-within { border-color: var(--honey-deep); box-shadow: 0 0 0 3px var(--honey-tint); }
.unit input { border: 0; border-radius: 0; min-width: 0; box-shadow: none !important; }
.unit > span { display: grid; place-items: center; padding: 0 12px; background: var(--honey-tint); color: var(--choc); font-weight: 700; font-size: .92rem; white-space: nowrap; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: .98rem; padding: 0; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { width: 100%; }
.seg label { flex: 1 1 0; display: block; cursor: pointer; font-weight: 700; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: block; text-align: center; padding: 9px 8px; border: 2px solid #cdb69c; border-radius: 999px; line-height: 1.2; }
.seg small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.seg input:checked + span { background: var(--choc); border-color: var(--choc); color: #fff; }
.seg input:checked + span small { color: var(--honey-soft); }
.seg input:focus-visible + span { outline: 3px solid var(--honey-deep); outline-offset: 2px; }
.seg-4 label { flex-basis: calc(25% - 6px); }
.seg-4 span { border-radius: 14px; }
.extras { border-top: 2px dashed var(--line); padding-top: 12px; }
.extras summary { cursor: pointer; font-weight: 700; color: var(--link); }
.extras summary small { color: var(--muted); font-weight: 500; }
.extras .help { margin: 8px 0 12px; }
.extra-row { display: grid; grid-template-columns: 1fr 130px 110px; gap: 8px; align-items: center; margin-bottom: 8px; }
.extra-row label { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.extra-row input, .extra-row select { min-height: 42px; padding: 6px 8px; font-size: 1rem; }

/* Resultado */
.out-col { display: grid; gap: 14px; min-width: 0; }
.out-col > div { display: grid; gap: 14px; }
.answer { background: var(--honey-tint); border-radius: var(--r); padding: 20px 22px; color: var(--choc); }
.ans-kicker { margin: 0 0 6px; font-weight: 700; font-size: .98rem; }
.ans-big { display: flex; align-items: flex-end; gap: 14px; margin: 0; flex-wrap: wrap; }
.ans-big strong { font: 650 clamp(3.4rem, 9vw, 5.4rem)/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ans-big span { font: 600 1.35rem/1.15 var(--display); padding-bottom: 6px; }
.ans-big small { display: block; font: 600 .9rem/1.3 var(--text); opacity: .8; margin-top: 3px; }
.ans-sub { margin: 10px 0 0; font-weight: 600; }
.bowls { display: flex; gap: 8px; margin-top: 12px; }
.bowls i { width: 38px; height: 18px; background: var(--choc); border-radius: 4px 4px 19px 19px; position: relative; }
.bowls i::before { content: ''; position: absolute; left: 5px; right: 5px; top: -6px; height: 9px; border-radius: 50% 50% 0 0; background: var(--honey-deep); }
.facts { margin: 0; display: grid; border-top: 2px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.facts em { font-style: normal; font-weight: 600; color: var(--muted); }
.warn { margin: 0; background: var(--warn-bg); border-left: 5px solid var(--honey); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: .97rem; }
.err { margin: 0; color: var(--err); font-weight: 700; }
.next { margin: 0; font-weight: 700; }
.total { display: grid; gap: 2px; background: var(--choc); color: var(--on-choc); border-radius: var(--r); padding: 16px 20px; }
.total strong { font: 600 2.2rem/1.1 var(--display); color: var(--honey); }
.total small { color: var(--on-choc-mute); }

/* Régua */
.regua-box { background: var(--choc) var(--paws); border-radius: var(--r); padding: 10px 6px 4px; overflow: hidden; }
.regua { display: block; }
.rg-axis { stroke: var(--on-choc); stroke-width: 2.5; stroke-linecap: round; }
.rg-tick { stroke: var(--on-choc-mute); stroke-width: 1.5; }
.rg-link { stroke: var(--honey-soft); stroke-opacity: .32; stroke-width: 1.4; }
.rg-link.rg-key { stroke: var(--honey); stroke-opacity: .9; stroke-width: 2.4; stroke-dasharray: 5 4; }
.rg-now { stroke: var(--honey); stroke-width: 5; stroke-linecap: round; }
.rg-dot { fill: var(--honey); stroke: var(--choc); stroke-width: 3; }
.rg-num { fill: var(--on-choc); font: 700 13px var(--text); font-variant-numeric: tabular-nums; }
.rg-cap { fill: var(--honey-soft); font: 600 13px var(--display); letter-spacing: .02em; }

/* Blocos da home */
.block { padding: 48px 24px 8px; }
.tools-home { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--choc); }
.tools-home li { border-right: 1px solid var(--line); }
.tools-home li:last-child { border-right: 0; }
.tools-home a { display: grid; gap: 6px; align-content: start; padding: 18px 18px 22px; height: 100%; text-decoration: none; color: var(--ink); }
.tools-home a:hover { background: var(--honey-tint); }
.th-n { display: flex; align-items: center; gap: 6px; font: 600 .95rem var(--display); color: var(--honey-deep); }
.th-name { font: 600 1.25rem/1.15 var(--display); color: var(--choc); }
.th-desc { color: var(--muted); font-size: .97rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 2px solid var(--choc); background: var(--paper); }
table.ref { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.ref caption { text-align: left; font-size: .9rem; color: var(--muted); padding: 10px 12px; caption-side: bottom; border-top: 1px solid var(--line); }
table.ref th, table.ref td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ref thead th { background: var(--choc); color: var(--on-choc); font-weight: 700; font-size: .92rem; vertical-align: bottom; }
table.ref thead small { display: block; font-weight: 500; color: var(--on-choc-mute); font-size: .76rem; }
table.ref tbody th { font-weight: 700; }
table.ref tbody tr:nth-child(even) { background: #fff6e6; }
.note { font-size: .95rem; color: var(--muted); margin: 10px 0 0; }

/* Listas de posts */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 3px solid var(--choc); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.pl-title { font: 600 1.2rem/1.25 var(--display); color: var(--choc); }
.post-list a:hover .pl-title { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.pl-desc { color: var(--muted); font-size: .97rem; }
.post-list time { font-size: .85rem; color: var(--muted); }
.list-page { padding-top: 36px; padding-bottom: 48px; }
.list-page .post-list { border-top: 3px solid var(--choc); max-width: 820px; }

/* Páginas internas */
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.tool-page { padding-top: 30px; padding-bottom: 56px; }
.tool-head { margin-bottom: 20px; }
.tool-grid { display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: 32px; align-items: start; }
.how { margin-top: 44px; max-width: 760px; }
.more { margin-top: 30px; }
.more h2 { font-size: 1.4rem; }
.more ul { padding-left: 1.2em; margin: 0; }
.more li { margin: 6px 0; }
.article { padding-top: 30px; padding-bottom: 56px; max-width: 820px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.byline { font-size: .93rem; color: var(--muted); }
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { margin: 1.7em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .98rem; line-height: 1.4; background: var(--paper); font-variant-numeric: tabular-nums; display: block; overflow-x: auto; border: 2px solid var(--choc); border-radius: 12px; }
.prose thead th { background: var(--choc); color: var(--on-choc); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; font-size: .92rem; }
.prose tbody tr:nth-child(even) { background: #fff6e6; }
.prose blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 5px solid var(--honey); background: var(--warn-bg); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose strong { font-weight: 800; }
.prose code { font-size: .92em; background: var(--honey-tint); padding: 1px 6px; border-radius: 6px; }
.tool-callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--honey-tint); border-radius: var(--r); padding: 14px 18px; margin-bottom: 28px; }
.tool-callout p { margin: 0; font-weight: 700; max-width: 32em; color: var(--choc); }
.btn { display: inline-block; background: var(--choc); color: #fff; text-decoration: none; font-weight: 800; padding: 10px 18px; border-radius: 999px; }
.btn:hover { background: var(--choc-3); }
.sources { margin-top: 36px; font-size: .97rem; }
.sources h2 { font-size: 1.4rem; }
.sources ul { padding-left: 1.2em; }
.disclaimer { font-size: .93rem; line-height: 1.5; color: var(--muted); border-top: 2px dashed var(--line); padding-top: 14px; margin-top: 28px; }
.static { padding-bottom: 48px; }
.contact-pending { background: var(--honey-tint); padding: 12px 16px; border-radius: 12px; }

/* Rodapé */
.foot { background: var(--choc) var(--paws); color: var(--on-choc); margin-top: 56px; padding: 36px 0 20px; }
.foot a { color: var(--on-choc); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot-in p { color: var(--on-choc-mute); max-width: 34em; margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 600 1.3rem var(--display); color: var(--on-choc) !important; margin-bottom: 8px !important; }
.foot-brand svg { color: var(--honey); }
.foot-brand b { color: var(--honey); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-copy { font-size: .85rem; color: var(--on-choc-mute); margin-top: 24px; }

@media (max-width: 960px) {
  .hero-in, .tool-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .tools-home { grid-template-columns: 1fr 1fr; }
  .tools-home li:nth-child(2) { border-right: 0; }
  .tools-home li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .block { padding: 36px 16px 4px; }
  .top-in { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .brand { font-size: 1.4rem; }
  .nav { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { padding: 28px 0 36px; }
  .panel { padding: 16px; }
  .seg-4 label { flex-basis: calc(50% - 6px); }
  .tools-home { grid-template-columns: 1fr; }
  .tools-home li { border-right: 0; border-bottom: 1px solid var(--line); }
  .post-list.two { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .extra-row { grid-template-columns: 1fr 1fr; }
  .extra-row label { grid-column: 1 / -1; }
  .prose { font-size: 1.05rem; }
  .facts dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.split > *, .hero-in > *, .tool-grid > * { min-width: 0; }
