/* ==========================================================================
   ID Tributos — site institucional
   Estética inspirada no shadcn/ui: neutros frios, bordas finas, raio generoso,
   verde da marca (#0B9D6F) como único acento.
   ========================================================================== */

:root {
  --brand: #0B9D6F;
  --brand-600: #08875F;
  --brand-700: #066E4E;
  --brand-800: #055A40;
  --brand-50: #ECF8F3;
  --brand-100: #D5F0E4;
  --brand-200: #A9E0C9;

  --ink: #111A22;
  --text: #28313B;
  --muted: #5D6773;
  --muted-2: #8A939E;
  --line: #E4E7EB;
  --line-2: #EEF0F3;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FA;
  --bg-dark: #0B1A16;

  --warn: #B45309;
  --warn-bg: #FFF7E6;
  --err: #C0352B;
  --info: #1D5FB8;
  --info-bg: #EEF4FD;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 30px 60px -20px rgba(6, 60, 42, .28), 0 8px 20px -8px rgba(16, 24, 40, .12);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.022em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.034em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.narrow-lg { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.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; }
.muted { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: .85rem; }
.mt { margin-top: 24px; }
.pt-0 { padding-top: 0 !important; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(11,157,111,.55); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -8px rgba(11,157,111,.6); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-outline:hover { background: var(--bg-soft); color: var(--ink); border-color: #D4D9DF; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-white { background: #fff; color: var(--brand-800); }
.btn-white:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-ghost-white { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-white:hover { background: rgba(255,255,255,.16); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand-700); }
.link-arrow .icon { transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow.sm { font-size: .875rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px;
}
.eyebrow.light { color: #7FE0BC; }
.kbd {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: #fff; font-size: .85em; font-weight: 600; color: var(--ink); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(16,24,40,.15); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-word { font-size: 1.22rem; letter-spacing: -0.02em; font-weight: 500; color: #1F2933; }
.brand-word b { font-weight: 800; }
.main-nav { flex: 1; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 9px;
  border: 0; background: transparent; color: var(--text); font-weight: 560; font-size: .92rem; white-space: nowrap;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--bg-soft); color: var(--ink); }
.nav-link .chev { transition: transform .2s; color: var(--muted-2); }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline-block; }

/* Mega menu */
.mega, .drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before, .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.open > .mega, .nav-item.open > .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-item.has-mega { position: static; }
.mega { width: min(1080px, calc(100vw - 40px)); top: calc(100% - 4px); padding: 22px 22px 0; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 22px; }
.mega-col ul { list-style: none; }
.mega-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin: 0 0 6px 8px; }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; color: var(--text); font-size: .9rem; font-weight: 560; }
.mega-col a:hover { background: var(--brand-50); color: var(--brand-800); }
.mega-col a:hover .mi { background: #fff; border-color: var(--brand-200); color: var(--brand); }
.mi { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: var(--bg-soft); flex-shrink: 0; transition: .15s; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px -22px 0; padding: 14px 22px; background: var(--bg-soft); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); font-size: .88rem; color: var(--muted); }
.mega-foot span { display: inline-flex; align-items: center; gap: 8px; }
.mega-foot .icon { color: var(--brand); }
.drop { width: 330px; padding: 8px; }
.drop a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--text); }
.drop a:hover { background: var(--brand-50); }
.drop b { display: block; color: var(--ink); font-size: .92rem; }
.drop small { display: block; color: var(--muted); font-size: .82rem; }
.drop .mi { width: 36px; height: 36px; color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); }

/* Mobile nav */
.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow); }
.mobile-nav .container { padding-top: 12px; padding-bottom: 20px; }
.mobile-nav summary, .m-link { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line-2); list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav details a:not(.m-all) { display: flex; align-items: center; gap: 10px; padding: 8px 8px; color: var(--text); font-size: .93rem; border-radius: 8px; }
.mobile-nav details a .icon { color: var(--brand); }
.m-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin: 14px 0 4px 8px; }
.m-all { display: block; padding: 12px 8px; font-weight: 650; }
.m-actions { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head.split > div { max-width: 700px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero-bg, .page-hero .hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 10%, rgba(11,157,111,.14), transparent 70%),
    radial-gradient(40% 40% at 5% 0%, rgba(24,179,134,.10), transparent 70%),
    linear-gradient(180deg, #FBFDFC 0%, #fff 70%);
}
.hero-bg::after, .page-hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: .7;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(2.1rem, 1.2rem + 2.9vw, 3.35rem); }
.hl { background: linear-gradient(120deg, var(--brand) 10%, #14B584 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); line-height: 1.65; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); color: var(--text); font-size: .85rem; font-weight: 600;
}
.pill:hover { border-color: var(--brand-200); color: var(--brand-800); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--brand-100); } 50% { box-shadow: 0 0 0 7px rgba(11,157,111,.08); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .9rem; font-weight: 550; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--brand); }

/* Mock do app */
.hero-visual { position: relative; margin: 0; }
.app-frame { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.app-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E1E4E8; }
.dots i:first-child { background: #F2B8B5; } .dots i:nth-child(2) { background: #F5D98E; } .dots i:nth-child(3) { background: #A8DDBF; }
.app-url { font-size: .74rem; color: var(--muted-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { display: flex; min-height: 340px; }
.app-side { width: 52px; border-right: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; }
.as-logo { margin-bottom: 8px; }
.as-item { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted-2); }
.as-item.on { background: var(--brand-50); color: var(--brand); }
.app-main { flex: 1; padding: 14px; display: grid; gap: 12px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: grid; gap: 2px; min-width: 0; }
.kpi small { font-size: .62rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { font-size: .98rem; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.kpi b.warn { color: var(--warn); }
.kpi .up { font-size: .62rem; color: var(--brand-700); font-weight: 700; }
.kpi .muted { font-size: .62rem; }
.kpi .bar { height: 5px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 3px; }
.kpi .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #18B386); border-radius: 4px; }
.funnel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 96px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.fstep { height: var(--h); background: linear-gradient(180deg, #19B587, var(--brand-600)); border-radius: 7px 7px 4px 4px; position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 4px; color: #fff; }
.fstep:nth-child(2n) { background: linear-gradient(180deg, #2FC296, #0A9467); }
.fstep b { font-size: .72rem; }
.fstep span { position: absolute; bottom: -2px; transform: translateY(100%); font-size: .55rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.app-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.tr { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line-2); font-size: .7rem; }
.tr:first-child { border-top: 0; }
.td-name { font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-dots { display: flex; gap: 4px; }
.td-dots i { width: 9px; height: 9px; border-radius: 50%; background: #D8DDE2; }
.td-dots i.s1 { background: var(--brand); }
.td-dots i.s2 { background: var(--err); }
.td-act { font-size: .64rem; font-weight: 700; color: var(--brand-800); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.td-act.done { color: var(--muted); background: var(--bg-soft); border-color: var(--line); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); font-size: .8rem; animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; color: var(--ink); font-size: .84rem; }
.float-card small { color: var(--muted); }
.fc-1 { left: -30px; bottom: -22px; }
.fc-2 { right: -14px; top: -18px; animation-delay: -3s; }
.fc-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--brand); }
.fc-ico.wa { background: #25D366; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.stats li:first-child { border-left: 0; }
.stats b { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Fluxo (como funciona) ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.flow-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.flow-step:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.fs-num { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; color: var(--line-2); line-height: 1; letter-spacing: -0.04em; }
.fs-icon, .b-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); margin-bottom: 16px; }
.fs-stage { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 4px; }
.flow-step h3 { margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; }
.bento-card p { color: var(--muted); margin: 0; }
.b-wide { grid-column: span 2; }
.b-dark { background: radial-gradient(90% 120% at 100% 0%, #0E3B2E 0%, var(--bg-dark) 60%); border-color: #173A30; }
.b-dark h3 { color: #fff; }
.b-dark p { color: #B7CCC4; }
.b-dark .b-icon { background: rgba(127,224,188,.1); border-color: rgba(127,224,188,.25); color: #7FE0BC; }
.compare { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.compare > div { flex: 1; min-width: 150px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); }
.compare small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.compare b { font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.cmp-eq { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--brand-50); }
.mini-portal { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.mini-portal small { display: block; color: #9FB8AF; font-size: .75rem; }
.mini-portal b { color: #fff; font-size: 1.3rem; letter-spacing: -0.02em; }
.mini-portal em { display: block; font-style: normal; color: #7FE0BC; font-size: .78rem; }

/* ---------- Chips / filtros ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 32px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: .87rem; font-weight: 600; transition: .15s; }
.chip:hover { border-color: var(--brand-200); color: var(--brand-800); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Cards de módulo ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .18s, box-shadow .18s, transform .18s; }
.module-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.module-card[hidden] { display: none; }
.mc-icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand); transition: .18s; }
.mc-icon.sm { width: 36px; height: 36px; border-radius: 9px; }
.module-card:hover .mc-icon { background: var(--brand); color: #fff; border-color: var(--brand); }
.mc-body { flex: 1; min-width: 0; }
.mc-name { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.mc-text { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.mc-arrow { color: var(--muted-2); transition: transform .18s, color .18s; margin-top: 2px; }
.module-card:hover .mc-arrow { transform: translateX(3px); color: var(--brand); }

/* ---------- Reforma (faixa escura) ---------- */
.reform-band { background: var(--bg-dark); color: #C9D8D2; overflow: hidden; }
.reform-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 85% 30%, rgba(11,157,111,.35), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(24,179,134,.18), transparent 70%); }
.reform-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }
.reform-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.reform-band h2 { color: #fff; }
.reform-band p { color: #B7CCC4; font-size: 1.05rem; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 22px 0 6px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: 3px; }
.check-list.light li { color: #E4EEEA; }
.check-list.light .icon { color: #7FE0BC; }
.reform-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-xl); padding: 26px; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.rc-title { color: #fff; font-weight: 700; margin-bottom: 18px; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: #B7CCC4; margin-bottom: 8px; }
.rc-row b { color: #7FE0BC; font-weight: 650; text-align: right; }
.rc-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); margin-bottom: 20px; overflow: hidden; }
.rc-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #7FE0BC, var(--brand)); }
.rc-bar.b i { background: linear-gradient(90deg, #A5F0D2, #18B386); }
.rc-note { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: #9FB8AF; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Público ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.aud-card p { color: var(--muted); margin: 0; }

/* ---------- Ferramentas ---------- */
.tools-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tools-band p { color: var(--muted); font-size: 1.05rem; }
.tool-cards { display: grid; gap: 14px; }
.tool-cards.big { grid-template-columns: 1fr 1fr; }
.tool-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); transition: .18s; }
.tool-card .b-icon { margin: 0; flex-shrink: 0; }
.tool-card b { display: block; color: var(--ink); font-size: 1.02rem; }
.tool-card small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tool-card .tc-arrow { margin-left: auto; color: var(--muted-2); transition: .18s; }
.tool-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); color: var(--text); }
.tool-card:hover .tc-arrow { color: var(--brand); transform: translateX(3px); }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: .2s; }
.post-card[hidden] { display: none; }
.post-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.pc-link { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.pc-link:hover { color: var(--text); }
.pc-cover { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
.pc-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 16px 16px; }
.pc-reforma-tributaria { background: linear-gradient(135deg, #0B1A16, #0E4A37 60%, #0B9D6F); }
.pc-simples-nacional { background: linear-gradient(135deg, #0B9D6F, #36C79B); }
.pc-documentos-fiscais { background: linear-gradient(135deg, #0F2C44, #1D5FB8 70%, #4F8FE0); }
.pc-obrigacoes { background: linear-gradient(135deg, #3B2A0B, #9A6212 60%, #E0A43A); }
.pc-cover-icon { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.pc-cover-icon.big { width: 88px; height: 88px; border-radius: 22px; }
.pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 8px; }
.pc-title { font-size: 1.1rem; line-height: 1.35; margin-bottom: 8px; }
.pc-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
.pc-meta { margin: auto 0 0; color: var(--muted-2); font-size: .82rem; }
.post-featured { border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 48px; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.post-featured:hover { box-shadow: var(--shadow); border-color: var(--brand-200); }
.pf-link { display: grid; grid-template-columns: 1fr 1.1fr; color: var(--text); }
.pf-link:hover { color: var(--text); }
.pf-cover { position: relative; min-height: 300px; display: grid; place-items: center; }
.pf-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; }
.pf-badge { position: absolute; top: 18px; left: 18px; z-index: 1; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pf-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.pf-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.pf-body p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }
.faq-ico { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); flex-shrink: 0; transition: .2s; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: .2s; }
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-ico { background: var(--brand); border-color: var(--brand); }
.faq-item[open] .faq-ico::before, .faq-item[open] .faq-ico::after { background: #fff; }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Contato ---------- */
.contact-band { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-grid p { color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: .18s; min-width: 0; }
a.cc:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--text); }
.cc small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.cc b { display: block; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.cc-ico { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.cc-ico.wa { background: #25D366; color: #fff; border-color: #25D366; }
.cc.big { padding: 20px; }
.cc.wide { grid-column: 1 / -1; }
.cc-arrow { margin-left: auto; color: var(--muted-2); }
.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 12px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; margin-bottom: 4px; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .87rem; font-weight: 650; color: var(--ink); }
.field small { color: var(--muted); font-size: .8rem; }
.field .opt { font-style: normal; font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #D7DCE1; border-radius: 10px; background: #fff;
  font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
::placeholder { color: #A6AEB7; font-weight: 450; opacity: 1; }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,157,111,.14); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.err { color: var(--err) !important; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-success { text-align: center; padding: 20px 0; }
.fs-ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }

/* ---------- CTA ---------- */
.cta-section { padding-top: 40px; }
.cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 56px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--brand-700), var(--brand) 60%, #18B386); color: #E7F7F0; box-shadow: var(--shadow-lg); }
.cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 80% at 90% 10%, rgba(255,255,255,.25), transparent 70%); }
.cta-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-copy, .cta-actions { position: relative; }
.cta-card h2 { color: #fff; }
.cta-card p { margin: 0; color: #D9F3E8; font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; padding: 36px 0 56px; overflow: hidden; }
.ph-copy { max-width: 820px; }
.ph-copy h1 { margin-top: 6px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb .icon { color: var(--muted-2); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; font-size: .88rem; }
.cat-nav a:hover { border-color: var(--brand-200); color: var(--brand-800); }
.cat-nav span { font-size: .75rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.cat-section { padding: 56px 0; border-top: 1px solid var(--line-2); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-head h2 { margin: 0; font-size: 1.6rem; }
.cat-head p { margin: 0; color: var(--muted); }

/* Hero do módulo */
.module-hero { padding-bottom: 64px; }
.mh-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 48px; align-items: start; }
.mh-cat { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; color: var(--brand-700); }
.mh-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(11,157,111,.6); }
.module-hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); margin: 16px 0 18px; }
.mh-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.mh-sum-title { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 12px; }
.mh-summary dl { margin: 0 0 16px; display: grid; gap: 10px; }
.mh-summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.mh-summary dt { color: var(--muted); }
.mh-summary dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.mh-highlights { list-style: none; display: grid; gap: 12px; }
.mh-highlights li { display: flex; gap: 12px; align-items: flex-start; }
.hl-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.mh-highlights b { display: block; color: var(--ink); font-size: .93rem; }
.mh-highlights small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* Layout de documento (módulo e post) */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 24px; padding-bottom: 72px; }
.doc-toc { position: relative; }
.toc-inner { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 10px; }
.doc-toc ol { list-style: none; border-left: 1px solid var(--line); margin-bottom: 20px; }
.doc-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.doc-toc li a:hover { color: var(--ink); }
.doc-toc li a.active { color: var(--brand-700); border-left-color: var(--brand); font-weight: 600; }
.doc-body { min-width: 0; max-width: 780px; }
.doc-section { margin-bottom: 48px; }
.doc-section h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 14px; }
.doc-section > p { color: var(--text); font-size: 1.04rem; }
.feature-list { display: grid; gap: 12px; margin-top: 20px; }
.feature { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.feature:hover { border-color: var(--brand-200); }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 1.04rem; margin-bottom: 6px; }
.f-check { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.feature p { color: var(--muted); margin: 0 0 0 34px; font-size: .96rem; }
.feature p + p { margin-top: 8px; }
.feature ul { margin: 8px 0 0 52px; color: var(--muted); font-size: .96rem; }
.steps { list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.steps li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; flex-shrink: 0; }
.steps li span { padding-top: 2px; }

/* Callouts */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid; margin: 0 0 24px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.co-ico { flex-shrink: 0; margin-top: 2px; }
.callout-tip { background: var(--brand-50); border-color: var(--brand-100); color: #1F4A3B; }
.callout-tip .co-ico, .callout-tip strong { color: var(--brand-800); }
.callout-warning { background: var(--warn-bg); border-color: #F6DDB0; color: #6B3E09; }
.callout-warning .co-ico, .callout-warning strong { color: var(--warn); }
.callout-info { background: var(--info-bg); border-color: #D3E2F8; color: #1C3F6E; }
.callout-info .co-ico, .callout-info strong { color: var(--info); }
.prose .callout { padding-left: 18px; }
.prose .callout:not(:has(.co-ico))::before { content: ""; width: 4px; border-radius: 4px; background: currentColor; opacity: .35; flex-shrink: 0; }

/* Tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0 24px; background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; padding: 12px 16px 0; color: var(--muted); font-size: .82rem; caption-side: top; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tbody th { font-weight: 650; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFCFB; }

/* Prose (artigos) */
.post-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); margin: 10px 0 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.pm-author { font-weight: 650; color: var(--ink); }
.prose { font-size: 1.07rem; line-height: 1.78; }
.prose > * + h2 { margin-top: 2em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); margin-bottom: .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-decoration-color: var(--brand-200); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--ink); }
.prose table { font-size: .93rem; }
.prose > table, .prose table:not(.table-wrap table) { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.formula { font-size: 1.1rem; font-weight: 700; color: var(--ink); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 16px 20px; text-align: center; }
.related-box { margin: 40px 0 24px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff); }
.rb-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-bottom: 14px !important; font-size: 1rem; }
.rb-title .icon { color: var(--brand); }
.rb-list { display: grid; gap: 10px; }
.rb-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.5; }
.rb-list a:hover { border-color: var(--brand-200); }
.rb-list b { display: block; color: var(--ink); }
.rb-list small { display: block; color: var(--muted); font-size: .86rem; }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem !important; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; line-height: 1.5; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share .toc-title { width: 100%; }
.share a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.share a:hover { color: var(--brand); border-color: var(--brand-200); background: var(--brand-50); }

/* Calculadoras */
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; align-content: start; }
.calc-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0; }
.calc-title .icon { color: var(--brand); }
.input-money { position: relative; }
.input-money em { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; font-size: .95rem; }
.input-money input { padding-left: 42px; font-weight: 650; font-size: 1.05rem; height: 50px; }
.field-hint { display: flex; gap: 6px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 0; }
.field-hint .icon { margin-top: 3px; color: var(--info); }
.calc-result { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 30px; color: #CFE3DB; background: radial-gradient(100% 80% at 100% 0%, #11573F 0%, var(--bg-dark) 65%); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.cr-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7FE0BC; margin-bottom: 4px; }
.cr-value { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.cr-list { margin: 0 0 16px; display: grid; gap: 0; }
.cr-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.cr-list dt { color: #A9C2B9; }
.cr-list dd { margin: 0; color: #fff; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.cr-list .strong dd { color: #7FE0BC; font-size: 1.1rem; }
.cr-alert { background: rgba(245, 180, 60, .14); border: 1px solid rgba(245, 180, 60, .35); color: #FBD58E; border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.cr-note { font-size: .82rem; color: #93AEA4; margin-top: auto; }
.cr-badge { display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.cr-badge.ok { background: rgba(127,224,188,.16); border-color: rgba(127,224,188,.4); color: #7FE0BC; }
.cr-badge.bad { background: rgba(245,180,60,.14); border-color: rgba(245,180,60,.4); color: #FBD58E; }
.meter { position: relative; height: 12px; border-radius: 8px; background: rgba(255,255,255,.1); margin: 0 0 30px; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, #FBD58E, #7FE0BC); transition: width .35s ease; }
.meter-mark { position: absolute; top: -4px; bottom: -4px; left: 56%; width: 2px; background: #fff; }
.meter-mark i { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); font-style: normal; font-size: .72rem; color: #fff; font-weight: 700; }
.calc-result .btn { margin-top: 16px; }

/* 404 */
.notfound { padding: 96px 0; }
.nf-code { font-size: 6rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 0 0 12px; background: linear-gradient(120deg, var(--brand), #18B386); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1512; color: #A5B5AF; padding: 72px 0 28px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; }
.site-footer .brand-word { color: #fff; }
.footer-brand p { margin: 16px 0 20px; font-size: .93rem; max-width: 360px; }
.nap { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
.nap li { display: flex; align-items: center; gap: 10px; }
.nap .icon { color: #7FE0BC; }
.site-footer a { color: #D5E1DC; }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.footer-cols a { color: #A5B5AF; }
.f-title { color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.f-gap { margin-top: 24px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .muted-sm { color: #7D8E88; max-width: 560px; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px 0 15px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 4px 10px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37,211,102,.7), 0 4px 10px rgba(0,0,0,.12); }
.wa-float span { font-size: .93rem; }

/* Animação de entrada */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .pill-dot { animation: none; }
  .app-frame { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1240px) { .hide-sm { display: none; } .nav-link { padding: 0 10px; } .header-inner { gap: 16px; } }
@media (max-width: 1080px) {
  .main-nav, .hide-sm { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .hero-grid, .reform-grid, .tools-band, .contact-grid, .mh-grid, .cta-card, .contact-page { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin: 8px auto 0; width: 100%; }
  .app-frame { transform: none; }
  .flow, .module-grid, .post-grid, .audience { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-wide { grid-column: span 2; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .calc-grid { grid-template-columns: 1fr; }
  .pf-link { grid-template-columns: 1fr; }
  .pf-cover { min-height: 200px; }
  .cta-card { padding: 40px; }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 48px; }
  .section-head { margin-bottom: 32px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .flow, .module-grid, .module-grid.three, .post-grid, .audience, .bento, .tool-cards.big, .contact-cards, .form-row { grid-template-columns: 1fr; }
  .b-wide { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 1.6rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .cta-card { padding: 32px 24px; }
  .form-card, .calc-card, .calc-result { padding: 22px; }
  .pf-body { padding: 24px; }
  .btn-lg { height: 48px; padding: 0 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .header-cta .btn-primary { display: none; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .feature p { margin-left: 0; }
  .feature ul { margin-left: 18px; }
  .breadcrumb [aria-current] { max-width: 22ch; }
}

/* Chips de cidades (páginas locais) */
.place-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.place-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink); }
.place-chips .icon { color: var(--brand); }

/* Consulta de optante */
.optante-form { max-width: 820px; }
.optante-form textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; }
.optante-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.optante-progress { color: var(--muted); font-size: .9rem; }
.optante-results { margin-top: 20px; }
.optante-results td small, .optante-results td b { display: block; }
.optante-results td small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.st { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.st-yes { color: var(--brand-800); background: var(--brand-50); border-color: var(--brand-100); }
.st-no { color: #4B5563; background: var(--bg-soft); border-color: var(--line); }
.st-unknown { color: var(--warn); background: var(--warn-bg); border-color: #F6DDB0; }
.err-cell { color: var(--err); font-weight: 600; }
.link-stack { display: grid; gap: 8px; }

/* Painel de estatísticas */
.daybars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; margin-bottom: 24px; }
.db { flex: 1 0 18px; max-width: 44px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.db i { width: 100%; background: linear-gradient(180deg, #19B587, var(--brand-600)); border-radius: 4px 4px 2px 2px; }
.db span { font-size: .6rem; color: var(--muted-2); white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stats-grid .table-wrap { margin: 0; }
.stats-grid caption { font-weight: 700; color: var(--ink); font-size: .9rem; padding-bottom: 8px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; } }

/* Faixa de aviso no topo */
.topbar { background: var(--ink); color: #E4EEEA; font-size: .88rem; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.topbar .icon { color: #FBD58E; }
.topbar a { color: #7FE0BC; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: #fff; }

/* Consentimento de cookies (só com GA4 ligado) */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; font-size: .9rem; }
.consent p { margin: 0 0 12px; color: var(--muted); }
.consent div { display: flex; gap: 8px; }
@media (max-width: 720px) { .consent { right: 16px; bottom: 88px; max-width: none; } }

/* Notas de saída (home) */
.saida-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.saida-grid p { color: var(--muted); font-size: 1.05rem; }
.saida-cards { display: grid; gap: 10px; }
.saida-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.saida-card .b-icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
.saida-card b { display: block; color: var(--ink); }
.saida-card small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.saida-card.warn .b-icon { color: var(--warn); background: var(--warn-bg); border-color: #F6DDB0; }
@media (max-width: 1080px) { .saida-grid { grid-template-columns: 1fr; gap: 28px; } }
.feat-mod { margin: 28px 0 12px; font-size: 1.05rem; }
.feat-mod a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.feat-mod .icon { color: var(--brand); }
.mega-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
