/* IBM Plex servida pela própria landing (licença em fonts/OFL.txt). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Maxtra Fiscal — landing. Same tokens as client/src/styles.css:
   ink for structure, cobalt for action, paper for the canvas. */
:root {
  --ink-950: #0a1320;
  --ink-900: #0e1a2b;
  --ink-800: #18263a;
  --ink-700: #2b3a4f;
  --ink-600: #435167;
  --ink-500: #5b6779;
  --ink-400: #8a93a1;
  --ink-300: #b6bdc7;
  --paper: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --surface-3: #f1f0ec;
  --line: #e3e1db;
  --line-strong: #cfccc4;
  --cobalt-700: #1c38b3;
  --cobalt-600: #2446d8;
  --cobalt-500: #3d5ce6;
  --cobalt-300: #8fa3f2;
  --cobalt-100: #dfe5fb;
  --cobalt-50: #eef1fd;
  --success: #13795b;
  --success-bg: #e7f4ee;
  --warning: #9a5b00;
  --warning-bg: #fdf3e2;
  --warning-strong: #b26a00;
  --danger: #c2342b;
  --danger-bg: #fbeae8;
  --danger-line: #f1c6c2;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06);
  --shadow-md: 0 4px 12px rgba(14, 26, 43, 0.08), 0 1px 3px rgba(14, 26, 43, 0.06);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, 0.16), 0 2px 6px rgba(14, 26, 43, 0.08);
  --focus: 0 0 0 3px rgba(36, 70, 216, 0.35);
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1160px;
  --gutter: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink-900); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--font); text-decoration: none; letter-spacing: -0.1px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--cobalt-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px rgba(36,70,216,.28); }
.btn-primary:hover { background: var(--cobalt-700); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink-900); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-400); }
.btn-light { background: #fff; color: var(--ink-900); }
.btn-light:hover { background: var(--cobalt-50); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 242, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { display: flex; align-items: baseline; gap: 5px; font-size: 19px; letter-spacing: -0.4px; }
.logo-word b { font-weight: 700; }
.logo-word span { font-weight: 400; color: var(--ink-500); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-600); font-weight: 500; }
.nav a:hover { color: var(--ink-900); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% 10%, rgba(61, 92, 230, .14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  opacity: .9;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono); color: var(--cobalt-700); letter-spacing: .2px;
  background: var(--cobalt-50); border: 1px solid var(--cobalt-100);
  padding: 8px 12px; border-radius: 999px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt-600); box-shadow: 0 0 0 3px rgba(36,70,216,.18); }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -1.4px; font-weight: 700;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--cobalt-600); }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-600); max-width: 560px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.micro { margin-top: 16px; font-size: 14px; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.micro span { display: inline-flex; align-items: center; gap: 6px; }
.micro svg { width: 16px; height: 16px; color: var(--success); }

/* Hero illustration: a DPS moving through its lifecycle */
.stage { position: relative; }
.doc {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.doc-head b { font-size: 15px; }
.doc-head small { display: block; font: 400 12px/1.4 var(--mono); color: var(--ink-500); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-proc { color: var(--warning); background: var(--warning-bg); }
.pill-ok { color: var(--success); background: var(--success-bg); }
.doc-body { padding: 18px 20px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.field small { display: block; font-size: 12px; color: var(--ink-500); }
.field span { font-size: 14px; font-weight: 500; }
.field.mono span { font-family: var(--mono); font-size: 13px; }
.steps { padding: 18px 20px 20px; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-400); transition: color .3s; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); transition: all .3s; }
.step .dot svg { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.step.done { color: var(--ink-800); }
.step.done .dot { background: var(--cobalt-600); border-color: var(--cobalt-600); color: #fff; }
.step.done .dot svg { opacity: 1; }
.step.final.done .dot { background: var(--success); border-color: var(--success); }
.toast {
  position: absolute; right: -18px; bottom: -26px; width: min(300px, 82%);
  background: var(--ink-900); color: #dfe5fb; border-radius: var(--radius-lg);
  padding: 12px 14px; font: 400 12px/1.55 var(--mono); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.toast.show { opacity: 1; transform: none; }
.toast b { color: #fff; font-weight: 500; }
.toast .ok { color: #7fd8b3; }
.flow figcaption { margin-top: 44px; font-size: 12px; color: var(--ink-400); text-align: left; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts ul { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 14px 20px; padding: 22px 0; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-700); }
.facts svg { width: 20px; height: 20px; color: var(--cobalt-600); flex: none; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.kicker { font: 500 13px/1 var(--mono); color: var(--cobalt-700); letter-spacing: .6px; text-transform: uppercase; }
.h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -1px; font-weight: 700; text-wrap: balance; max-width: 760px; }
.sub { margin-top: 16px; font-size: 18px; color: var(--ink-600); max-width: 680px; text-wrap: pretty; }
.center { text-align: center; }
.center .h2, .center .sub { margin-left: auto; margin-right: auto; }

/* Pains → fixes */
.pains { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.pain:hover { box-shadow: var(--shadow-md); }
.pain-body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.issue { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-500); }
.issue span { font: 600 11px/1 var(--font); letter-spacing: .4px; text-transform: uppercase; color: var(--danger); background: var(--danger-bg); padding: 5px 7px; border-radius: 4px; }
.pain h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.2px; }
.pain-body > p:last-child { font-size: 15px; color: var(--ink-600); }

/* Pain illustrations: small looping scenes that show each fix. */
.art { height: 140px; display: grid; place-items: center; background: linear-gradient(180deg, var(--cobalt-50), var(--surface-2)); border-bottom: 1px solid var(--line); }
.art svg { width: 100%; max-width: 280px; height: 128px; overflow: visible; }
.art * { transform-box: fill-box; transform-origin: center; animation-play-state: paused; }
.pain.in .art *, html:not(.js) .art * { animation-play-state: running; }
.art text { font-family: var(--font); text-anchor: middle; }
.a-doc { fill: #fff; stroke: var(--line-strong); stroke-width: 1.5; }
.a-ghost { stroke-dasharray: 4 3; }
.a-fold { fill: var(--surface-3); stroke: var(--line-strong); stroke-width: 1.5; stroke-linejoin: round; }
.a-line { fill: var(--line); }
.a-dash { stroke: var(--cobalt-300); stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.a-bld { fill: var(--surface-3); stroke: var(--ink-400); stroke-width: 1.5; stroke-linejoin: round; }
.a-col { fill: var(--ink-300); }
.a-ok { fill: var(--success); }
.a-bad { fill: var(--danger); }
.a-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-cap { font-size: 10px; fill: var(--ink-500); }
.a-mono { font: 500 10px var(--mono); fill: var(--ink-600); text-anchor: middle; }
.a-num { font-size: 12px; font-weight: 700; fill: #fff; }
.a-pill-w { fill: var(--warning-bg); } .a-pt-w { font-size: 10px; font-weight: 600; fill: var(--warning); }
.a-pill-ok { fill: var(--success-bg); } .a-pt-ok { font-size: 10px; font-weight: 600; fill: var(--success); }
.a-shield { fill: var(--cobalt-600); }
.a-a1 { font-size: 16px; font-weight: 700; fill: var(--ink-900); text-anchor: start !important; }
.a-seal { fill: var(--cobalt-600); } .a-ribbon { fill: var(--cobalt-300); }
.a-cal-h { fill: var(--cobalt-600); } .a-cal-t { font-size: 9px; font-weight: 600; fill: #fff; letter-spacing: .3px; }
.c-n { font-size: 30px; font-weight: 700; fill: var(--ink-900); letter-spacing: -1px; }
.a-urgent { fill: var(--danger); }
.a-bell { fill: var(--warning-bg); stroke: var(--warning-strong); stroke-width: 1.6; stroke-linejoin: round; }
.a-bell-c { fill: none; stroke: var(--warning-strong); stroke-width: 1.6; stroke-linecap: round; }
.a-chip { fill: #fff; stroke: var(--cobalt-300); stroke-width: 1.5; } .a-chip-t { font: 600 10px var(--mono); fill: var(--cobalt-700); }
.a-box { fill: var(--cobalt-50); stroke: var(--cobalt-600); stroke-width: 1.5; } .a-box-lid { fill: var(--cobalt-100); stroke: var(--cobalt-600); stroke-width: 1.5; }
.a-tile-h { fill: var(--cobalt-100); } .a-tile-t { font: 600 9px var(--mono); fill: var(--cobalt-700); }
.a-mini { fill: var(--cobalt-600); } .a-mini-l { fill: #fff; opacity: .8; }
.f-hl { fill: var(--cobalt-50); }
.f-err { fill: var(--ink-300); }
.a-msg { fill: var(--danger-bg); stroke: var(--danger-line); } .a-msg-t { font-size: 9.5px; font-weight: 500; fill: var(--danger); }
.a-msg-ok { fill: var(--success-bg); stroke: #bfe0d1; } .a-msg-ok-t { font-size: 10px; font-weight: 600; fill: var(--success); }

/* Resting state (also the reduced-motion state) shows the solved scene. */
.p-dot, .p-wait, .d-b, .f-bad, .f-msg, .c-n1, .c-n2, .c-n3 { opacity: 0; }

/* 1 · processing → authorized */
.p-dot { animation: p-dot 6s linear infinite; }
.p-ok { animation: p-ok 6s ease infinite; }
.p-wait { animation: p-wait 6s step-end infinite; }
.p-done { animation: p-done 6s step-end infinite; }
@keyframes p-dot {
  0% { transform: translateX(0); opacity: 0; } 3% { opacity: 1; }
  17% { transform: translateX(66px); opacity: 1; } 19% { transform: translateX(66px); opacity: 0; }
  20% { transform: translateX(0); opacity: 0; } 23% { opacity: 1; }
  37% { transform: translateX(66px); opacity: 1; } 39% { transform: translateX(66px); opacity: 0; }
  40% { transform: translateX(0); opacity: 0; } 43% { opacity: 1; }
  57% { transform: translateX(66px); opacity: 1; } 59%, 100% { transform: translateX(66px); opacity: 0; }
}
@keyframes p-ok { 0%, 60% { opacity: 0; transform: scale(.3); } 66% { opacity: 1; transform: scale(1.15); } 70%, 94% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes p-wait { 0% { opacity: 1; } 62% { opacity: 0; } }
@keyframes p-done { 0% { opacity: 0; } 62% { opacity: 1; } }

/* 2 · repeated send bounces off, one note stays */
.d-b { animation: d-b 5s ease-in-out infinite; }
.d-shield { animation: d-shield 5s ease infinite; }
.d-one { animation: d-one 5s ease infinite; }
@keyframes d-b {
  0% { transform: translateX(36px); opacity: 0; } 12% { opacity: 1; }
  34% { transform: translateX(0); opacity: 1; } 44% { transform: translateX(22px); opacity: 1; }
  60%, 100% { transform: translateX(30px); opacity: 0; }
}
@keyframes d-shield { 0%, 28% { transform: scale(.4); opacity: 0; } 34% { transform: scale(1.2); opacity: 1; } 40%, 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes d-one { 0%, 40% { transform: scale(1); } 46% { transform: scale(1.25); } 52%, 100% { transform: scale(1); } }

/* 3 · certificate countdown */
.c-n1 { animation: c-n1 8s step-end infinite; }
.c-n2 { animation: c-n2 8s step-end infinite; }
.c-n3 { animation: c-n3 8s step-end infinite; }
.c-n4 { animation: c-n4 8s step-end infinite; }
.c-bell { transform-origin: 50% 0; animation: c-bell 2s ease infinite; }
@keyframes c-n1 { 0% { opacity: 1; } 25% { opacity: 0; } }
@keyframes c-n2 { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } }
@keyframes c-n3 { 0% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } }
@keyframes c-n4 { 0% { opacity: 0; } 75% { opacity: 1; } }
@keyframes c-bell { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(16deg); } 84% { transform: rotate(-14deg); } 92% { transform: rotate(8deg); } }

/* 4 · files drop into one package */
.z-c1 { animation: z-c1 6s ease-in infinite; }
.z-c2 { animation: z-c2 6s ease-in infinite; }
.z-c3 { animation: z-c3 6s ease-in infinite; }
.z-ok { animation: z-ok 6s ease infinite; }
@keyframes z-c1 { 0%, 8% { transform: translate(0, 0); opacity: 1; } 24% { transform: translate(60px, 52px) scale(.6); opacity: 0; } 92% { transform: translate(0, 0); opacity: 0; } 100% { opacity: 1; } }
@keyframes z-c2 { 0%, 22% { transform: translate(0, 0); opacity: 1; } 38% { transform: translate(0, 52px) scale(.6); opacity: 0; } 92% { transform: translate(0, 0); opacity: 0; } 100% { opacity: 1; } }
@keyframes z-c3 { 0%, 36% { transform: translate(0, 0); opacity: 1; } 52% { transform: translate(-60px, 52px) scale(.6); opacity: 0; } 92% { transform: translate(0, 0); opacity: 0; } 100% { opacity: 1; } }
@keyframes z-ok { 0%, 54% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } 64%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; } }

/* 5 · one note per month, on schedule */
.r-d1 { animation: r-d1 6s ease infinite; }
.r-d2 { animation: r-d2 6s ease infinite; }
.r-d3 { animation: r-d3 6s ease infinite; }
.r-d4 { animation: r-d4 6s ease infinite; }
@keyframes r-d1 { 0%, 4% { transform: scale(0); opacity: 0; } 10% { transform: scale(1.2); opacity: 1; } 14%, 88% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes r-d2 { 0%, 22% { transform: scale(0); opacity: 0; } 28% { transform: scale(1.2); opacity: 1; } 32%, 88% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes r-d3 { 0%, 40% { transform: scale(0); opacity: 0; } 46% { transform: scale(1.2); opacity: 1; } 50%, 88% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes r-d4 { 0%, 58% { transform: scale(0); opacity: 0; } 64% { transform: scale(1.2); opacity: 1; } 68%, 88% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }

/* 6 · rejection message → fixed */
.f-err { animation: f-err 6s ease infinite; }
.f-hl { transform-origin: 0 50%; animation: f-hl 6s ease infinite; }
.f-bad { animation: f-bad 6s step-end infinite; }
.f-good { animation: f-good 6s ease infinite; }
.f-msg { animation: f-msg 6s ease infinite; }
.f-fixed { animation: f-fixed 6s ease infinite; }
@keyframes f-err { 0%, 40% { fill: var(--danger); } 55%, 100% { fill: var(--ink-300); } }
@keyframes f-hl { 0%, 38% { transform: scaleX(0); } 54% { transform: scaleX(1); } 70%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes f-bad { 0% { opacity: 1; } 54% { opacity: 0; } }
@keyframes f-good { 0%, 54% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } 64%, 100% { opacity: 1; transform: scale(1); } }
@keyframes f-msg { 0% { opacity: 0; transform: translateX(-8px); } 8%, 42% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; transform: none; } }
@keyframes f-fixed { 0%, 58% { opacity: 0; transform: translateX(-8px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* How it works */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.how-step { position: relative; padding: 28px; border-radius: var(--radius-xl); background: var(--paper); border: 1px solid var(--line); }
.how-step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--ink-900); color: #fff; font: 600 17px var(--mono); margin-bottom: 20px;
}
.how-step h3 { font-size: 20px; letter-spacing: -.3px; }
.how-step p { margin-top: 10px; color: var(--ink-600); font-size: 15px; }
.how-step .tag { display: inline-block; margin-top: 16px; font: 500 12px var(--mono); color: var(--cobalt-700); background: var(--cobalt-50); padding: 5px 9px; border-radius: var(--radius-sm); }

/* Audiences */
.aud { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; }
.aud .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--cobalt-50); color: var(--cobalt-600); display: grid; place-items: center; }
.aud .ico svg { width: 22px; height: 22px; }
.aud small { margin-top: 20px; font: 500 12px var(--mono); color: var(--ink-500); text-transform: uppercase; letter-spacing: .5px; }
.aud h3 { margin-top: 6px; font-size: 21px; line-height: 1.25; letter-spacing: -.3px; }
.aud ul { margin-top: 18px; display: grid; gap: 10px; }
.check { display: flex; gap: 10px; font-size: 15px; color: var(--ink-700); }
.check svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--cobalt-600); }
.aud a.more { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--cobalt-700); text-decoration: none; font-size: 15px; }
.aud a.more:hover { text-decoration: underline; }

/* Features */
.feat { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--line); gap: 1px; }
.feat div { background: var(--surface); padding: 26px 24px; }
.feat svg { width: 22px; height: 22px; color: var(--cobalt-600); }
.feat h3 { margin-top: 16px; font-size: 16px; letter-spacing: -.1px; }
.feat p { margin-top: 6px; font-size: 14.5px; color: var(--ink-600); line-height: 1.55; }

/* AI integration */
.ai { background: var(--surface); border-top: 1px solid var(--line); }
.ai .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-steps { margin-top: 28px; display: grid; gap: 14px; counter-reset: a; }
.ai-steps li { position: relative; padding-left: 44px; font-size: 15.5px; color: var(--ink-600); }
.ai-steps li b { display: block; color: var(--ink-900); font-weight: 600; }
.ai-steps li::before { counter-increment: a; content: counter(a); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 8px; background: var(--cobalt-50); color: var(--cobalt-700); font: 600 14px/30px var(--mono); text-align: center; }
.ai .cta-row { margin-top: 30px; }
.prompt { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; min-width: 0; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.prompt-bar > span { display: inline-flex; align-items: center; gap: 8px; }
.prompt-bar svg { width: 18px; height: 18px; color: var(--cobalt-600); }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); font: 600 13px var(--font); color: var(--ink-800); cursor: pointer; }
.copy:hover { border-color: var(--ink-400); }
.copy svg { width: 15px; height: 15px; color: var(--ink-600); }
.prompt pre { margin: 0; padding: 18px; font-size: 12.5px; line-height: 1.65; color: var(--ink-800); white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
.prompt-note { padding: 12px 18px 16px; font-size: 13px; color: var(--ink-500); border-top: 1px dashed var(--line-strong); }
.ai-help { margin-top: 16px; font-size: 14.5px; color: var(--ink-500); }
.ai-help a { color: var(--cobalt-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prompt-note b { color: var(--ink-700); }
[hidden] { display: none !important; }
a.inline { color: var(--cobalt-700); text-decoration: underline; text-underline-offset: 2px; }
.issue span { flex: none; }
.issue { align-items: flex-start; }

/* Developers (dark) */
.dev { background: var(--ink-950); color: #c9d1dd; position: relative; overflow: hidden; }
.dev::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 10% 0%, rgba(61,92,230,.22), transparent 70%); pointer-events: none; }
.dev .wrap { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.dev .kicker { color: var(--cobalt-300); }
.dev .h2 { color: #fff; }
.dev .sub { color: #aab4c3; }
.dev ul.pts { margin-top: 28px; display: grid; gap: 16px; }
.dev ul.pts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; }
.dev ul.pts svg { width: 20px; height: 20px; color: var(--cobalt-300); margin-top: 2px; }
.dev ul.pts b { color: #fff; font-weight: 600; }
.dev code.inl { font-size: 13px; color: #fff; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; }
.dev .cta-row { margin-top: 32px; }
.dev .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.dev .btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.term { background: #0b1626; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); min-width: 0; }
.term + .term { margin-top: 16px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font: 400 12px var(--mono); color: #8a93a1; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3a4f; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 18px 20px; font-size: 13px; line-height: 1.7; color: #dfe5fb; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.c-k { color: #8fa3f2; } .c-s { color: #9fdcbf; } .c-c { color: #6b778a; } .c-h { color: #f2c98a; }

/* Pricing */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--cobalt-600); box-shadow: 0 18px 50px rgba(36,70,216,.16); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--cobalt-600); color: #fff; font: 600 12px/1 var(--font); padding: 7px 10px; border-radius: 999px; letter-spacing: .2px; }
.plan h3 { font-size: 20px; letter-spacing: -.3px; }
.plan .for { margin-top: 4px; font-size: 14px; color: var(--ink-500); min-height: 42px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.price small { font-size: 16px; font-weight: 600; color: var(--ink-600); }
.price strong { font-size: 40px; letter-spacing: -1.4px; line-height: 1; font-weight: 700; }
.price span { font-size: 15px; color: var(--ink-500); }
.unit { margin-top: 8px; font: 500 13px var(--mono); color: var(--cobalt-700); }
.plan dl { margin: 22px 0 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan dt { color: var(--ink-600); }
.plan dd { font-weight: 600; text-align: right; }
.plan .btn { margin-top: auto; }
.plan.custom { background: var(--ink-900); color: #c9d1dd; border-color: var(--ink-900); }
.plan.custom h3, .plan.custom .price strong { color: #fff; }
.plan.custom .price strong { font-size: 30px; letter-spacing: -.8px; }
.plan.custom .for { color: #aab4c3; }
.plan.custom p.desc { margin: 18px 0 24px; font-size: 15px; line-height: 1.6; }
.plan.custom .btn { background: #fff; color: var(--ink-900); }
.plan.custom .btn:hover { background: var(--cobalt-50); }
.terms { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.terms li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-600); }
.terms svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--success); }
.terms b { color: var(--ink-900); font-weight: 600; }
.allin { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-600); }

/* Security */
.sec { background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.sec-intro { position: sticky; top: 96px; }
.audit { margin: 32px 0 0; background: var(--ink-900); color: #c9d1dd; border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow-lg); }
.audit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; font-size: 14px; font-weight: 600; color: #fff; }
.audit-lock { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); color: #9fdcbf; background: rgba(127, 216, 179, .12); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.audit-lock svg { width: 13px; height: 13px; }
.audit ol { display: grid; gap: 0; position: relative; }
.audit li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 6px; }
.audit li + li { border-top: 1px solid rgba(255,255,255,.06); }
.audit li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 42px; width: 2px; height: 22px; background: rgba(143,163,242,.35); }
.au-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(143,163,242,.14); color: var(--cobalt-300); }
.au-ic svg { width: 17px; height: 17px; }
.au-ok { background: rgba(127,216,179,.14); color: #9fdcbf; }
.audit b { display: block; font-size: 14px; font-weight: 500; color: #fff; }
.audit small { font-size: 12px; color: #8a93a1; }
.audit code { font-size: 12px; color: #6b778a; }
.audit figcaption { margin-top: 10px; padding: 12px 6px 2px; border-top: 1px dashed rgba(255,255,255,.12); font-size: 13px; color: #8a93a1; }
.js .audit li { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.js .audit.in li { opacity: 1; transform: none; }
.audit.in li:nth-child(2) { transition-delay: .15s; } .audit.in li:nth-child(3) { transition-delay: .3s; } .audit.in li:nth-child(4) { transition-delay: .45s; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-list li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.sec-list li:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.sec-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--cobalt-50); color: var(--cobalt-600); border: 1px solid var(--cobalt-100); }
.sec-ic svg { width: 22px; height: 22px; }
.sec-list h3 { margin-top: 16px; font-size: 16.5px; letter-spacing: -.1px; }
.sec-list p { margin-top: 6px; font-size: 14.5px; color: var(--ink-600); line-height: 1.55; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-size: 17px; font-weight: 600; letter-spacing: -.2px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 4px 22px; color: var(--ink-600); font-size: 15.5px; max-width: 640px; }
.faq-side p { margin-top: 16px; color: var(--ink-600); }
.faq-side .btn { margin-top: 24px; }

/* Final CTA */
.closing { padding: 0 0 96px; }
.final-box {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--cobalt-600); color: #fff;
  padding: 64px 48px; text-align: center;
}
.final-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -10%, rgba(255,255,255,.22), transparent 70%), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 100% 28px; pointer-events: none; }
.final-box > * { position: relative; }
.final-box h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -1px; text-wrap: balance; max-width: 760px; margin: 0 auto; }
.final-box p { margin: 16px auto 0; max-width: 600px; font-size: 18px; color: #dfe5fb; }
.final-box .btn { margin-top: 32px; }
.final-box small { display: block; margin-top: 14px; color: #c3cdf6; font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-500); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink-900); }

/* Floating WhatsApp (mobile) */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: none;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab .btn { width: 100%; box-shadow: 0 12px 30px rgba(14,26,43,.3); }

/* Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero .wrap, .dev .wrap, .sec .wrap, .faq-wrap, .ai .wrap { grid-template-columns: 1fr; gap: 48px; }
  .sec-intro { position: static; }
  .flow { max-width: 560px; }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .facts ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 32px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 36px 0 64px; }
  .pains, .how-grid, .aud, .feat, .plans, .terms, .sec-list { grid-template-columns: 1fr; }
  .plan .for { min-height: 0; }
  .facts ul { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .facts li { font-size: 14px; }
  .toast { position: relative; right: auto; bottom: auto; width: auto; margin: 12px 0 0 24px; }
  .flow figcaption { margin-top: 12px; }
  .final-box { padding: 48px 22px; border-radius: 16px; }
  .closing { padding-bottom: 104px; }
  .fab { display: block; }
  .cta-row .btn { flex: 1 1 100%; }
  .top .wrap { height: 60px; }
  .top .btn span.long { display: none; }
  .doc-body { grid-template-columns: 1fr 1fr; }
  footer { padding-bottom: 96px; }
}
@media (max-width: 380px) {
  .facts ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Municípios ---------- */
.nav a[aria-current="page"] { color: var(--ink-900); }
.mun-hero { padding: 64px 0 32px; }
.mun-h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -1.4px; }
.mun-stats { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.mun-stats div { min-width: 150px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.mun-stats dt { font-size: 13px; color: var(--ink-500); }
.mun-stats dd { margin-top: 2px; font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.mun-body { padding: 16px 0 72px; }
.mun-tools { margin-top: 0; display: grid; grid-template-columns: 1fr 260px; gap: 12px; position: sticky; top: 68px; z-index: 5; padding: 12px 0; background: var(--paper); }
.mun-search { position: relative; display: block; }
.mun-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; }
.mun-search input, .mun-select select {
  width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); font: 400 16px var(--font); color: var(--ink-900);
}
.mun-search input { padding: 0 14px 0 42px; }
.mun-select select { padding: 0 12px; appearance: auto; }
.mun-search input:focus, .mun-select select:focus { outline: none; border-color: var(--cobalt-600); box-shadow: var(--focus); }
.mun-count { margin-top: 4px; font-size: 14px; color: var(--ink-500); }
.mun-list { margin-top: 16px; display: grid; gap: 16px; }
.mun-uf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 20px 22px 22px; }
.mun-uf h2 { font-size: 17px; letter-spacing: -.2px; display: flex; align-items: baseline; gap: 10px; }
.mun-uf h2 span { font: 500 12px var(--mono); color: var(--ink-500); }
.mun-uf ul { margin-top: 14px; columns: 4 190px; column-gap: 24px; }
.mun-uf li { break-inside: avoid; padding: 4px 0; font-size: 14.5px; color: var(--ink-700); }
.mun-empty { margin-top: 16px; padding: 32px 28px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-xl); }
.mun-empty h2 { font-size: 20px; letter-spacing: -.3px; }
.mun-empty p { margin: 8px auto 20px; max-width: 520px; color: var(--ink-600); }
.mun-source { margin-top: 24px; font-size: 13px; color: var(--ink-500); }
@media (max-width: 760px) {
  .mun-hero { padding: 40px 0 24px; }
  .mun-tools { grid-template-columns: 1fr; }
  .mun-tools { top: 60px; }
  .mun-uf { padding: 18px 16px; }
  .mun-uf ul { columns: 2; column-gap: 16px; }
  .mun-uf li { font-size: 14px; }
  .mun-stats div { min-width: 0; flex: 1 1 30%; padding: 14px; }
  .mun-stats dd { font-size: 24px; }
}

/* ---------- Guia ---------- */
.guide { padding: 48px 0 88px; }
.guide-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-side { position: sticky; top: 92px; }
.guide-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.guide-card p:not(.kicker) { font-size: 14.5px; color: var(--ink-600); }
.guide-card .btn { font-size: 15px; }
.prose { max-width: 760px; font-size: 16.5px; color: var(--ink-700); }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1px; color: var(--ink-900); }
.prose h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 24px; letter-spacing: -.4px; color: var(--ink-900); }
.prose h3 { margin-top: 28px; font-size: 18px; color: var(--ink-900); }
.prose a { color: var(--cobalt-700); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose blockquote { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--cobalt-600); background: var(--cobalt-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-700); }
.prose blockquote p + p { margin-top: 8px; }
.prose code { font-size: .88em; background: var(--surface-3); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.prose pre { padding: 18px 20px; background: var(--ink-950); color: #dfe5fb; border-radius: var(--radius-lg); overflow-x: auto; font-size: 13px; line-height: 1.65; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-900); background: var(--surface-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
@media (max-width: 900px) {
  .guide-wrap { grid-template-columns: 1fr; gap: 28px; }
  .guide-side { position: static; order: 2; }
}
.prose hr + h2 { margin-top: 0; padding-top: 0; border-top: 0; }

/* ===== Páginas por assunto: navegação, cartões de destino e rodapé ===== */
.crumbs { padding: 20px 0 0; font-size: 14px; color: var(--ink-500); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-300); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink-900); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-700); }
.crumbs + section, .crumbs + .guide { padding-top: 40px; }
.crumbs + .guide { padding-top: 32px; }
.crumbs + .mun-hero { padding-top: 32px; }

.aud-hero { padding: 40px 0 56px; }
.aud-hero .terms { margin-top: 28px; }
.aud-hero .cta-row { margin-top: 28px; }
a.inline { color: var(--cobalt-700); text-decoration: underline; text-underline-offset: 2px; }

.explore { padding: 72px 0; }
.xgrid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xcard { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.xcard:hover { border-color: var(--cobalt-300); transform: translateY(-2px); }
.xcard .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--cobalt-50); color: var(--cobalt-700); }
.xcard .ico svg { width: 20px; height: 20px; }
.xcard h3 { margin-top: 6px; font-size: 18px; letter-spacing: -.3px; }
.xcard p { color: var(--ink-600); font-size: 15px; }
.xcard .go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--cobalt-700); }

.mun-uf h2 a { text-decoration: none; }
.mun-uf h2 a:hover { color: var(--cobalt-700); text-decoration: underline; }
.uf-title { margin-top: 48px; font-size: 20px; letter-spacing: -.3px; }
.uf-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.uf-links a { display: block; padding: 8px 14px; font-size: 14.5px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-700); }
.uf-links a:hover { border-color: var(--cobalt-300); color: var(--cobalt-700); }

footer .foot { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; align-items: start; }
.foot-brand { display: grid; gap: 12px; }
.foot-brand p { max-width: 320px; }
footer .foot-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
footer .foot-nav h2 { font: 500 12px/1 var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-900); }
footer .foot-nav ul { margin-top: 14px; display: grid; gap: 10px; }

@media (max-width: 900px) {
  .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .xgrid { grid-template-columns: 1fr; }
  footer .foot-nav { grid-template-columns: 1fr 1fr; }
  .explore { padding: 48px 0; }
}

/* Celulares estreitos: logo + "Entrar" + "Falar" cabem sem estourar a largura. */
@media (max-width: 420px) {
  .top .wrap { gap: 10px; }
  .top-actions { gap: 8px; }
  .top .btn-sm { padding: 0 12px; font-size: 14px; }
  .top .btn-sm svg { display: none; }
  .logo-word { font-size: 17px; }
}
@media (max-width: 340px) {
  .top .logo-word span { display: none; }
}
