/* savingstrategyhub.com — estilos do site */
:root {
  --bg: #F3F4EF; --bg2: #E9EBE3; --card: #FBFAF6; --ink: #25292B; --mute: #5F676A; --line: #D3D6CC;
  --oak: #D8BE94; --oak-d: #8C7248; --oak-soft: #EFE5D2;
  --green: #3F7D32; --green-d: #2C5A23; --green-soft: #E3EBD9;
  --dark: #1F2426; --dark2: #2A3033; --err: #C2402B; --warn: #B8741A; --dim: #2F6F8F;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif; --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 10px; --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--green-d); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid #5B9E4B; 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-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--mute); } .small { font-size: .88rem; } .grow { flex: 1; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* botões */
.btn, .btn-ic, .chip, .badge { font: 600 .95rem/1 var(--sans); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: var(--green); color: var(--green-d); }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #000; color: #fff; }
.btn-small { padding: 8px 12px; font-size: .86rem; border-radius: 7px; }
.btn-danger { color: var(--err); border-color: #E6C3BC; background: transparent; } .btn-danger:hover { background: #FBEDEA; }
.btn[disabled], .btn-ic[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ic { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 8px; border: 1.5px solid transparent; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.btn-ic:hover { background: var(--bg2); } .btn-ic.danger:hover { background: #FBEDEA; color: var(--err); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .85rem; }
.badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: .82rem; border: 1px solid transparent; cursor: pointer; }
.badge.ok { background: var(--green-soft); color: var(--green-d); } .badge.warn { background: #FBF0D9; color: #7A4E0A; } .badge.err { background: #FBE3DE; color: #8F2A19; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bg2); font-size: .75rem; font-weight: 700; margin-left: 6px; }

/* cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 244, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: flex; align-items: center; } .brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg2); color: var(--ink); }
.nav .btn { margin-left: 8px; color: #fff; padding: 11px 16px; } .nav .btn:hover { background: var(--green-d); }
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; display: none; margin: 0; }
  .nav.open { display: flex; } .nav .btn { margin: 8px 0 0; }
}

/* rodapé */
.site-footer { background: var(--dark); color: #D9DDD3; margin-top: 90px; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #D9DDD3; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h2 { font: 700 .9rem/1.2 var(--sans); letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-brand img { height: 30px; filter: brightness(0) invert(1) opacity(.92); margin-bottom: 14px; }
.foot-note { border-top: 1px solid #3A4144; margin-top: 38px; padding-top: 20px; color: #A7ADA6; font-size: .85rem; display: grid; gap: 6px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* migalhas */
.crumbs { font-size: .86rem; color: var(--mute); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #A9AEA7; }
.crumbs a { color: var(--mute); }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding: 46px 0 70px; overflow: hidden; }
.hero::before { /* régua ao longo do topo: referência ao construtor */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; opacity: .55;
  background: repeating-linear-gradient(90deg, #8E948F 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #8E948F 0 1px, transparent 1px 50px) bottom/100% 14px no-repeat;
  background-size: 100% 6px, 100% 14px; background-repeat: repeat-x, repeat-x; background-position: left bottom, left bottom;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.hero h1 { margin-bottom: .45em; max-width: 14ch; }
.hero .lead { font-size: 1.22rem; color: #3B4245; max-width: 36ch; margin-bottom: 1.6em; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-cta .btn { padding: 16px 26px; font-size: 1.02rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: var(--mute); font-size: .92rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; } .hero-facts .i { color: var(--green); }
.hero-art { position: relative; }
.niche { background: var(--bg2); border-radius: 4px; padding: 26px 22px 30px; box-shadow: inset 8px 8px 0 rgba(0,0,0,.05), inset -6px 0 0 rgba(0,0,0,.03); border: 1px solid var(--line); }
.niche svg { display: block; width: 100%; height: auto; }
.pill-note { position: absolute; background: var(--ink); color: #fff; font: 600 .78rem/1.2 var(--sans); padding: 8px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); white-space: nowrap; }
.pill-note::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.pill-1 { left: 47%; top: -14px; transform: translateX(-50%); } .pill-1::after { bottom: -3px; left: calc(50% - 4px); }
.pill-2 { right: 22px; bottom: -14px; background: var(--green); } .pill-2::after { top: -3px; right: 40px; background: var(--green); }
.hero-art svg .m-in { opacity: 0; animation: mIn .5s ease-out forwards; animation-delay: calc(var(--i) * 110ms + 250ms); transform-box: fill-box; }
@keyframes mIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-art svg .m-in { animation: none; opacity: 1; } html { scroll-behavior: auto; } }
@media (max-width: 900px) { .hero { padding-top: 30px; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; } .pill-2 { right: 6px; } .hero h1 { max-width: none; } }

/* seções */
.sec { padding: 84px 0; }
.sec-head { max-width: 62ch; margin-bottom: 40px; } .sec-head p { color: #3F464A; font-size: 1.08rem; }
.sec-dark { background: var(--dark); color: #E7EAE2; } .sec-dark h2, .sec-dark h3 { color: #fff; } .sec-dark .sec-head p, .sec-dark .muted { color: #B7BDB5; } .sec-dark a { color: #BEE0B0; }
.sec-oak { background: var(--oak-soft); border-block: 1px solid #E0D3B8; }
.sec-paper { background: var(--card); border-block: 1px solid var(--line); }

/* passos do fluxo */
.flow { counter-reset: st; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.flow li { padding: 22px 18px 4px 0; position: relative; counter-increment: st; }
.flow li::before { content: counter(st); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .85rem/28px var(--sans); text-align: center; }
.flow li:not(:first-child) { padding-left: 18px; } .flow li:not(:first-child)::before { left: 18px; }
.flow h3 { font: 700 1.02rem/1.3 var(--sans); margin: 10px 0 6px; } .flow p { font-size: .92rem; color: var(--mute); margin: 0 0 12px; }
.flow .fa { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px; height: 168px; display: grid; place-items: center; }
.flow .fa svg { display: block; width: auto; height: auto; max-width: 100%; max-height: 150px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); } .flow li { padding: 0 0 26px 26px !important; } .flow li::before { top: 0; left: -15px !important; } }

/* biblioteca na home */
.lib-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.lib-cat h3 { font: 700 1rem/1.2 var(--sans); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--oak); }
.lib-cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-cat li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: .88rem; line-height: 1.25; }
.lib-cat li svg { width: 54px; height: 54px; } .lib-cat li small { display: block; color: var(--mute); font-size: .76rem; margin-top: 2px; }
@media (max-width: 1100px) { .lib-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .lib-cats { grid-template-columns: 1fr; } }

/* demo interativa */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.demo-frame { background: #FBFAF6; border-radius: 10px; overflow: hidden; border: 1px solid #3A4144; color: var(--ink); }
.demo-bar { display: flex; gap: 8px; padding: 10px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; font-size: .85rem; }
.demo-bar .tb { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: 600 .8rem var(--sans); color: var(--ink); }
.demo-bar .tb.on { background: var(--green-soft); border-color: #9CC08F; color: var(--green-d); }
#demo-host { height: 480px; position: relative; touch-action: none; }
.demo-note { padding: 10px 14px; font-size: .84rem; color: var(--mute); border-top: 1px solid var(--line); background: var(--card); }
.demo-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.demo-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; } .demo-list .i { color: #9CD08B; margin-top: 4px; width: 22px; height: 22px; }
.demo-list b { color: #fff; display: block; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } #demo-host { height: 380px; } }

/* medidas e problemas */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel svg:not(.i) { display: block; width: 100%; height: auto; }
.vtable { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 14px; }
.vtable th, .vtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); } .vtable th { background: var(--green-soft); color: var(--green-d); font-size: .8rem; }
.msg { display: flex; gap: 10px; align-items: flex-start; border-radius: 8px; padding: 12px 14px; font-size: .94rem; margin-top: 14px; }
.msg.err { background: #FBE3DE; color: #7C2315; border: 1px solid #EDB9AE; } .msg.warn { background: #FBF0D9; color: #6C440A; border: 1px solid #EBD39E; } .msg.ok { background: var(--green-soft); color: var(--green-d); border: 1px solid #BBD3AD; }
.msg .i { margin-top: 3px; width: 18px; height: 18px; flex: none; } .msg span { min-width: 0; overflow-wrap: anywhere; } .panel, .tcard, .gcard { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* exportação */
.export-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 54px; align-items: center; }
.paper { background: #fff; box-shadow: 0 1px 0 #D3D6CC, 0 18px 40px -18px rgba(37,41,43,.35); transform: rotate(-1.2deg); max-width: 440px; margin-inline: auto; border: 1px solid #E5E6DF; }
.paper svg { display: block; width: 100%; height: auto; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; } .checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; } .checklist .i { color: var(--green); margin-top: 4px; }
.fmt-row { display: flex; gap: 10px; flex-wrap: wrap; } .fmt { border: 1.5px solid var(--ink); border-radius: 6px; padding: 6px 14px; font: 700 .9rem var(--sans); }
@media (max-width: 900px) { .export-grid { grid-template-columns: minmax(0, 1fr); } .paper { transform: none; } }

/* cartões de modelo e guias */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tcard, .gcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tcard:hover, .gcard:hover { border-color: var(--green); color: var(--ink); transform: translateY(-2px); }
.tcard .art { background: var(--bg2); padding: 14px; border-bottom: 1px solid var(--line); } .tcard .art svg { display: block; width: 100%; height: 170px; }
.tcard .body, .gcard .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tcard h3, .gcard h3 { font-size: 1.15rem; margin: 0; } .tcard p, .gcard p { margin: 0; color: var(--mute); font-size: .92rem; }
.tcard .dims { font: 700 .8rem var(--sans); color: var(--green-d); margin-top: auto; padding-top: 10px; }
.gcard .tag { font: 700 .76rem var(--sans); color: var(--green-d); } .gcard .meta { font-size: .8rem; color: var(--mute); margin-top: auto; padding-top: 10px; }
.gcard .gart { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 12px; } .gcard .gart svg { display: block; width: 100%; height: 150px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }

.notice { display: grid; grid-template-columns: 28px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--oak-d); border-radius: 8px; padding: 18px 20px; }
.notice .i { color: var(--oak-d); width: 24px; height: 24px; margin-top: 2px; } .notice p { margin: 0; }
.cta-band { background: var(--green-d); color: #fff; border-radius: 14px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; } .cta-band p { margin: 0; color: #D6E6CE; }
.cta-band .btn { background: #fff; color: var(--green-d); padding: 16px 26px; } .cta-band .btn:hover { background: var(--oak-soft); color: var(--green-d); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Guias ---------- */
.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); background: var(--card); }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 10px 0 .3em; } .page-head p { max-width: 62ch; color: #3F464A; font-size: 1.08rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.fchip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 .86rem var(--sans); cursor: pointer; color: var(--ink); text-decoration: none; }
.fchip.on, .fchip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { display: flex; gap: 10px; margin-top: 18px; } .search-box input { flex: 1; max-width: 420px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font: 400 1rem var(--sans); background: #fff; }
.cat-block { margin-top: 46px; } .cat-block > h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .cat-block > h2 a { font: 600 .9rem var(--sans); }
.cat-block > p { color: var(--mute); max-width: 60ch; }

.article-head { padding: 28px 0 30px; background: var(--card); border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; margin: 12px 0 .35em; }
.article-head .dek { font-size: 1.2rem; color: #3B4245; max-width: 58ch; margin: 0 0 18px; line-height: 1.5; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--mute); }
.meta-row b { color: var(--ink); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 64px; justify-content: center; padding-top: 44px; align-items: start; }
.aside { position: sticky; top: 90px; display: grid; gap: 22px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; font-size: .92rem; } .toc h2 { font: 700 .9rem var(--sans); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; } .toc a { text-decoration: none; color: var(--ink); } .toc a:hover { color: var(--green); text-decoration: underline; }
.aside-cta { background: var(--green-d); color: #fff; border-radius: 10px; padding: 20px; } .aside-cta p { font-size: .92rem; color: #D6E6CE; margin: 0 0 14px; } .aside-cta strong { font: 600 1.15rem var(--serif); display: block; margin-bottom: 6px; color: #fff; }
.aside-cta .btn { background: #fff; color: var(--green-d); width: 100%; }
.article { font-size: 1.07rem; line-height: 1.75; }
.article h2 { margin-top: 2.1em; padding-top: .2em; scroll-margin-top: 90px; font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.article h3 { margin-top: 1.6em; } .article ul, .article ol { padding-left: 1.3em; } .article li { margin-bottom: .4em; }
.article .intro p:first-child { font-size: 1.2rem; line-height: 1.65; }
.fig { margin: 1.8em 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.fig .fsvg { overflow-x: auto; display: flex; justify-content: center; } .fig svg { max-width: 100%; height: auto; }
.fig figcaption { margin-top: 12px; font-size: .9rem; color: var(--mute); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 10px; }
.fig figcaption b { color: var(--ink); }
.mtable { margin: 1.8em 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.mtable h2 { margin: 0; padding: 14px 18px; font: 700 1rem var(--sans); background: var(--green-soft); color: var(--green-d); border-bottom: 1px solid #C6DABA; }
.mtable .scroll { overflow-x: auto; } .mtable table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.45; min-width: 520px; }
.mtable th, .mtable td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; } .mtable th { font-size: .78rem; color: var(--mute); background: #F7F7F1; }
.mtable td:nth-child(2) { font-weight: 600; white-space: nowrap; color: var(--dim); } .mtable tr:last-child td { border-bottom: 0; }
.mtable p { margin: 0; padding: 12px 18px; font-size: .88rem; color: var(--mute); background: #F7F7F1; border-top: 1px solid var(--line); }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 12px; border-radius: 8px; padding: 14px 16px; margin: 1.4em 0; font-size: .98rem; line-height: 1.6; }
.callout.dica { background: var(--green-soft); border: 1px solid #BBD3AD; } .callout.atencao { background: #FBF0D9; border: 1px solid #EBD39E; } .callout .i { margin-top: 4px; } .callout p { margin: 0; }
.steps-ol { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 0; border-left: 2px solid var(--ink); margin-left: 14px !important; }
.steps-ol li { counter-increment: s; position: relative; padding: 0 0 22px 30px; margin: 0; } .steps-ol li::before { content: counter(s); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .82rem/28px var(--sans); text-align: center; }
.steps-ol strong { display: block; font: 700 1.05rem var(--sans); margin-bottom: 2px; }
.pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1em 0; }
.pair { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: .98rem; line-height: 1.55; } .pair h3 { font: 700 1rem var(--sans); margin: 0 0 6px; }
.pair.err { border-top: 3px solid var(--err); } .pair.sug { border-top: 3px solid var(--green); } .pair p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; } .faq summary { cursor: pointer; font: 600 1.05rem var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 14px; } .faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--green); } .faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: #3B4245; }
.sources { font-size: .9rem; color: var(--mute); border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.2em; } .sources h2 { font: 700 1rem var(--sans); margin: 0 0 8px; padding: 0; } .sources ul { padding-left: 1.1em; } .sources li { margin-bottom: .6em; line-height: 1.5; }
.disclaimer { font-size: .9rem; color: var(--mute); background: var(--bg2); border-radius: 8px; padding: 14px 16px; margin-top: 1.6em; line-height: 1.55; }
.related { margin-top: 70px; } .related h2 { font-size: 1.6rem; }
@media (max-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } .aside { position: static; order: -1; } .pair-grid { grid-template-columns: 1fr; } }

/* institucional */
.prose { font-size: 1.05rem; line-height: 1.75; padding: 40px 0 0; } .prose h2 { margin-top: 1.8em; font-size: 1.7rem; } .prose h3 { margin-top: 1.4em; font-size: 1.25rem; } .prose li { margin-bottom: .45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.2em 0; } .prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; } .prose th { background: var(--green-soft); }
.updated { color: var(--mute); font-size: .9rem; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 1.4em 0; }

/* meus projetos */
.proj-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proj-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.proj-card .art { background: var(--bg2); padding: 12px; border-bottom: 1px solid var(--line); } .proj-card .art svg { display: block; width: 100%; height: 190px; }
.proj-card .body { padding: 14px 16px 16px; display: grid; gap: 4px; } .proj-card h3 { font-size: 1.15rem; margin: 0; word-break: break-word; } .proj-card .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.proj-empty { text-align: center; padding: 60px 20px; background: var(--card); border: 1px dashed #B5B9AE; border-radius: 12px; }
.backup-box { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 960px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .backup-box { grid-template-columns: 1fr; } } @media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 300; display: grid; gap: 8px; width: min(440px, 100% - 28px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: .92rem; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: tIn .2s ease-out; transition: opacity .3s; } .toast.err { background: #8F2A19; } .toast.out { opacity: 0; }
@keyframes tIn { from { opacity: 0; transform: translateY(8px); } }

@media print { .site-header, .site-footer, .skip-link { display: none; } body { background: #fff; } }
.error-page { text-align: center; padding: 90px 0 40px; } .error-page h1 { font-size: 4.5rem; }

/* ---------- Acabamento visual ---------- */
body { background: var(--bg); }
h1, h2 { text-wrap: balance; }
.hero { background:
  radial-gradient(900px 520px at 88% 30%, rgba(216,190,148,.28), transparent 70%),
  radial-gradient(700px 420px at 0% 100%, rgba(63,125,50,.08), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: 14px 0 0 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(37,41,43,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(37,41,43,.045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); letter-spacing: -0.022em; line-height: 1.02; }
.hero .lead { font-size: 1.28rem; }
.niche { position: relative; background: linear-gradient(160deg, #EDEFE7, #E4E7DD); border-radius: 6px; border-color: #CFD3C8;
  box-shadow: inset 10px 10px 0 rgba(0,0,0,.045), inset -6px 0 0 rgba(0,0,0,.03), 0 40px 50px -34px rgba(37,41,43,.55); }
.niche::after { content: ''; position: absolute; left: 5%; right: 5%; bottom: -16px; height: 14px; background: radial-gradient(ellipse at center, rgba(37,41,43,.28), transparent 70%); filter: blur(4px); z-index: -1; }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px -10px rgba(44,90,35,.75); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 22px -10px rgba(44,90,35,.8); }
.btn-ghost { background: rgba(251,250,246,.7); }
.hero-facts li { background: rgba(251,250,246,.8); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .86rem; }
.hero-facts { gap: 8px; }

/* régua de cota sob os títulos de seção */
.sec-head h2::after, .page-head h1::after { content: ''; display: block; width: 132px; height: 11px; margin-top: 16px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) left / 1px 11px no-repeat, linear-gradient(currentColor, currentColor) right / 1px 11px no-repeat; color: var(--oak-d); opacity: .8; }
.sec-dark .sec-head h2::after { color: var(--oak); }

/* seções */
.sec-paper { background: linear-gradient(180deg, #FDFCF9, #F8F7F1); }
.sec-oak { background: linear-gradient(180deg, #F2E9D6, #EBDFC6); }
.sec-dark { background-color: #1D2224; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(800px 400px at 20% 0%, rgba(63,125,50,.18), transparent 70%); background-size: 36px 36px, 36px 36px, 100% 100%; }
.demo-frame { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); border-color: #4A5256; }
.flow .fa { background: linear-gradient(180deg, #FDFCF9, #F4F3EC); transition: border-color .15s; }
.flow li:hover .fa { border-color: var(--green); }

/* cartões e listas */
.lib-cat li { transition: border-color .15s, transform .15s, box-shadow .15s; }
.lib-cat li:hover { border-color: var(--green); transform: translateX(2px); box-shadow: 0 8px 18px -14px rgba(37,41,43,.5); }
.lib-cat li svg { background: var(--oak-soft); border-radius: 6px; padding: 3px; width: 54px; height: 54px; }
.lib-cat h3 { border-bottom: 3px solid var(--oak); }
.tcard, .gcard, .panel, .proj-card { box-shadow: 0 1px 0 rgba(37,41,43,.04); }
.tcard:hover, .gcard:hover { box-shadow: 0 18px 34px -22px rgba(37,41,43,.45); }
.tcard .art, .gcard .gart { background: linear-gradient(160deg, #EDEFE7, #E3E6DB); }
.tcard .body h3, .gcard .body h3 { font-size: 1.22rem; }
.gcard .tag { display: inline-block; align-self: flex-start; background: var(--green-soft); padding: 3px 9px; border-radius: 999px; font-size: .72rem; }
.panel { background: linear-gradient(180deg, #FDFCF9, #F9F8F3); }
.paper { box-shadow: 0 1px 0 #D3D6CC, 0 30px 50px -24px rgba(37,41,43,.45); }
.notice { background: linear-gradient(90deg, #F7F1E3, var(--card) 40%); }
.cta-band { background: linear-gradient(120deg, #2C5A23, #3F7D32 70%); box-shadow: 0 30px 50px -30px rgba(44,90,35,.8); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 60px rgba(255,255,255,.03); pointer-events: none; }

/* cabeçalho e rodapé */
.site-header { box-shadow: 0 1px 0 rgba(37,41,43,.03), 0 12px 24px -22px rgba(37,41,43,.4); }
.site-footer { background: linear-gradient(180deg, #1F2426, #181C1D); box-shadow: inset 0 8px 0 var(--oak-d); padding-top: 64px; }
.foot-grid h2 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--oak); }

/* artigos */
.article-head { background: linear-gradient(180deg, #FDFCF9, #F6F5EE); }
.article-head h1 { letter-spacing: -0.02em; }
.mtable { box-shadow: 0 14px 30px -26px rgba(37,41,43,.5); }
.fig { background: linear-gradient(180deg, #FDFCF9, #F7F6F0); box-shadow: 0 14px 30px -26px rgba(37,41,43,.5); }
.pair { transition: transform .15s; } .pair:hover { transform: translateY(-2px); }
.steps-ol li::before { background: var(--green-d); }
.flow li::before { background: var(--green-d); }
::selection { background: #CFE3C4; }
@media (prefers-reduced-motion: reduce) { .lib-cat li, .pair, .btn, .tcard, .gcard { transition: none; } }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.35rem); max-width: 16ch; }
.sec-dark .btn-primary, .sec-dark .btn-primary:hover { color: #fff; }

.gcard .gart { display: flex; justify-content: center; align-items: center; height: 200px; padding: 14px; } .gcard .gart svg { width: auto; max-width: 100%; height: 100%; }
.tcard .art svg { width: 100%; height: 190px; }
