:root {
  color-scheme: light;
  /* Design tokens (Home V3 polish) */
  --bg: #f7fbf9;
  --bg-page: var(--bg);
  --bg-surface: #ffffff;
  --bg-soft: #edf6f1;
  --bg-faint: #fcfcfc;
  --bg-highlight: #eef7f3;

  --surface: var(--bg-surface);
  --soft: var(--bg-soft);
  --text: #15201c;
  --muted: #5d6d66;
  --border: #dce8e2;
  --line: var(--border);
  --primary: #047857;
  --primary-strong: #065f46;
  --accent: #d6a84f;
  --primary-hover: var(--primary-strong);

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;

  --chart-blue: #2563eb;
  --chart-green: #059669;
  --chart-gold: #ca8a04;

  --shadow-sm: 0 10px 26px rgba(21, 32, 28, .07);
  --shadow: 0 18px 45px rgba(21, 32, 28, .08);
  --shadow-md: 0 22px 56px rgba(21, 32, 28, .10);

  --transition-fast: 160ms;
  --transition: 220ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111816;
  --bg-page: var(--bg);
  --bg-surface: #17211e;
  --bg-soft: #1f2d28;
  --bg-faint: #0f1513;
  --bg-highlight: #14201c;

  --surface: var(--bg-surface);
  --soft: var(--bg-soft);
  --text: #eef7f3;
  --muted: #b6c8c0;
  --border: #2b4039;
  --line: var(--border);
  --primary: #34d399;
  --primary-strong: #6ee7b7;
  --accent: #f0c766;
  --primary-hover: color-mix(in srgb, var(--primary) 75%, #ffffff);

  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .26);
  --shadow: 0 18px 45px rgba(0, 0, 0, .28);
  --shadow-md: 0 22px 56px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.55;
}

img, canvas { max-width: 100%; }
canvas { display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  color: var(--muted);
  font-size: .94rem;
}
.nav--enhanced {
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.nav a,
.nav-link {
  transition: color 0.15s ease;
}
.nav a:hover,
.nav-link:hover {
  color: var(--primary);
}
.nav-link.is-active,
.nav a.is-active {
  color: var(--primary);
  font-weight: 800;
}
.nav-item--dropdown {
  position: relative;
}
.nav-caret {
  font-size: 0.72em;
  margin-left: 2px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(720px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* Ponte invisível entre o botão e o painel — evita fechar ao mover o mouse */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.nav-dropdown-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.nav-dropdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.nav-dropdown-link {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-dropdown-link:hover {
  background: var(--soft);
  color: var(--primary);
}
.nav-dropdown-link.is-active {
  background: color-mix(in srgb, var(--primary) 10%, var(--soft));
  color: var(--primary);
}
.nav-dropdown-footer {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-dropdown-footer:hover {
  text-decoration: underline;
}

.article-hub {
  display: grid;
  gap: 48px;
  margin-bottom: 56px;
}
.article-hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.article-hub-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.88rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.article-hub-stat strong {
  color: var(--primary);
  font-size: 0.95rem;
}
.article-hub-block {
  display: grid;
  gap: 18px;
}
.article-hub-section-head {
  display: grid;
  gap: 6px;
}
.article-hub-category {
  padding-top: 8px;
}
.article-hub-category + .article-hub-category {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-hub-category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.article-hub-category-head > div {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: min(100%, 280px);
}
.article-hub-category-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 62ch;
}
.article-hub-ver-todos {
  flex-shrink: 0;
  align-self: center;
  font-weight: 800;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: color-mix(in srgb, var(--primary) 6%, var(--panel));
  white-space: nowrap;
}
.article-hub-ver-todos:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--panel));
  color: var(--primary-strong);
}
.article-hub-category h2 {
  margin: 0;
  font-size: 1.25rem;
}
.article-hub-category h2 a {
  color: inherit;
  text-decoration: none;
}
.article-hub-category h2 a:hover {
  color: var(--primary);
}
.article-breadcrumb {
  margin-bottom: 8px;
}
.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--muted);
}
.article-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-read-also {
  margin: 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--line);
}
.article-read-also h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}
.article-read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.article-read-also-card .button {
  align-self: flex-start;
}
.article-featured-tool {
  margin: 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.article-featured-tool h2 {
  margin: 0;
  font-size: 1.35rem;
}
.article-featured-tool-name {
  margin: 0;
  font-size: 1.15rem;
}
.article-featured-tool .button {
  justify-self: start;
  margin-top: 4px;
}
.article-featured-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.article-reading-time {
  margin: -8px 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-shell > .article-featured-tool,
.article-shell > .article-read-also {
  max-width: none;
}
.article-meta {
  margin: -4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-table-wrap {
  overflow-x: auto;
  margin: 8px 0 4px;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.article-table th,
.article-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article-table th {
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
}
.article-table td {
  color: var(--muted);
}
.article-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.article-hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.article-hub-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.article-hub-card h3 a {
  color: inherit;
  text-decoration: none;
}
.article-hub-card h3 a:hover {
  color: var(--primary);
}
.article-hub-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.article-hub-card-excerpt {
  flex: 1;
}
.article-hub-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.92rem;
}
.article-hub-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}
.article-hub-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.article-hub-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.article-hub-card--featured {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: linear-gradient(
    165deg,
    var(--panel) 0%,
    color-mix(in srgb, var(--primary) 6%, var(--panel)) 100%
  );
  box-shadow: 0 20px 48px rgba(21, 32, 28, 0.1);
}
.article-hub-card-category {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}
.article-hub-card-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.article-hub-search-wrap {
  margin-top: 4px;
}
.article-hub-search {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
.article-hub-search:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  border-color: var(--primary);
}
.article-hub-tools {
  margin-top: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-hub-tools-featured {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  background: linear-gradient(
    165deg,
    var(--panel) 0%,
    color-mix(in srgb, var(--primary) 5%, var(--soft)) 100%
  );
  box-shadow: var(--shadow);
}
.article-hub-tools-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-hub-tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(21, 32, 28, 0.08);
}
.article-hub-tool-card--featured {
  gap: 16px;
  padding: 28px 26px;
  min-height: 228px;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: linear-gradient(
    165deg,
    var(--panel) 0%,
    color-mix(in srgb, var(--primary) 7%, var(--panel)) 100%
  );
  box-shadow: 0 22px 52px rgba(21, 32, 28, 0.1);
}
.article-hub-tool-card h3 {
  margin: 0;
  font-size: 1.12rem;
}
.article-hub-tool-card--featured h3 {
  font-size: 1.22rem;
}
.article-hub-tool-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.article-hub-tool-card--featured p {
  font-size: 0.96rem;
}
.article-hub-tool-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.article-hub-tool-card--featured .button.primary {
  min-height: 46px;
  padding: 12px 22px;
  font-size: 0.98rem;
}
.article-hub-cta {
  margin-top: 4px;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 72%, var(--panel));
  text-align: center;
}
.article-hub-cta h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.article-hub-cta p {
  margin: 0 auto 22px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.article-hub-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.article-hub-cta-button {
  font-weight: 700;
}
.article-hub-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.article-hub-explore-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.article-hub-explore-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  box-shadow: 0 12px 32px rgba(21, 32, 28, 0.08);
}
.article-hub-explore-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.article-hub-explore-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.article-hub-explore-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.article-hub-explore-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}
.article-hub [hidden] {
  display: none !important;
}
.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;
}

.nav a { text-decoration: none; }
.nav a:hover { color: var(--primary); }
.menu-toggle { display: none; }
.theme-toggle, .menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
}

.ad-slot {
  width: min(1100px, calc(100% - 32px));
  min-height: 92px;
  margin: 28px auto;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--soft) 74%, transparent);
  color: var(--muted);
  text-align: center;
  padding: 18px;
  contain: layout paint;
}
.ad-slot:has(ins.adsbygoogle) {
  border: none;
  background: transparent;
  padding: 0;
}
.ad-top { margin-top: 18px; }

.share-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.share-toast {
  flex-basis: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--text);
  font-size: .9rem;
}
.dynamic-seo-block {
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--soft) 60%, var(--surface));
}
.dynamic-seo-block ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.hero {
  padding: 28px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); max-width: 780px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.hero-copy > p:not(.eyebrow), .section-head > p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 660px;
}
.hero-actions, .form-actions, .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.button {
  min-height: 42px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform var(--transition-fast) ease,
    background-color var(--transition-fast) ease,
    color var(--transition-fast) ease,
    border-color var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease;
}
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(21, 32, 28, .08);
}
.button:active { transform: translateY(0); }
.button.primary:hover { background: var(--primary-hover); }
.button.subtle:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); color: var(--primary); }
.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trust-block {
  padding: 34px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Special treatment: Ferramentas em Destaque */
.home-featured-tools {
  padding: 66px 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 10%, var(--line));
}
.home-featured-tools .section-head {
  margin-bottom: 34px;
}
.home-featured-tools .home-showcase-grid {
  margin-top: 8px;
}
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}
.trust-grid p { color: var(--muted); max-width: 700px; }
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.trust-metrics div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.trust-metrics span {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.section { padding: 54px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { letter-spacing: -0.02em; }
.section-head > p { color: var(--muted); }

/* Section background hierarchy (subtle) */
.band-soft { background: var(--bg-soft); }
.band-surface { background: var(--bg-surface); }
.band-faint { background: var(--bg-faint); }
.band-highlight { background: var(--bg-highlight); }
.calculator-stack { display: grid; gap: 26px; }
.tool-card, .panel, .article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tool-card { overflow: clip; }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
}
.panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
}
.panel:first-child { border-right: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 45%, var(--surface)); }
.panel h3 { margin-bottom: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}
input, select {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: 2px;
}
.form-actions { grid-column: 1 / -1; margin-top: 8px; }
.fieldset-full { grid-column: 1 / -1; }
.form-grid fieldset.fieldset-full {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.form-grid fieldset.fieldset-full legend {
  flex: 1 1 100%;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0;
}
.form-grid fieldset.fieldset-full .radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.form-grid label.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  width: auto;
  cursor: pointer;
}
.form-grid label.radio-inline input[type="radio"] {
  min-height: auto;
  height: 1.0625rem;
  width: 1.0625rem;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.preco-venda-mode-hint {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.preco-venda-advanced-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.preco-venda-advanced-block[hidden] {
  display: none !important;
}

.preco-venda-advanced-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-strong);
}

.cmv-flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cmv-flow-list .cmv-flow-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.2;
  padding: 2px 0;
}

.cmv-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  line-height: 1.45;
}

.cmv-checklist input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

/* ——— Calculadora de Ponto de Equilíbrio (consultoria UX) ——— */
.tool-card-portal .pe-executive-brief {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.tool-card-portal .pe-executive-brief-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
}

.tool-card-portal .pe-gap-card {
  margin: 0 0 12px;
  padding: 14px 16px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
}

.tool-card-portal .pe-gap-card--below {
  border-color: color-mix(in srgb, #dc2626 40%, var(--line));
  background: color-mix(in srgb, #dc2626 6%, var(--surface));
}

.tool-card-portal .pe-gap-card--above {
  border-color: color-mix(in srgb, #059669 40%, var(--line));
  background: color-mix(in srgb, #059669 8%, var(--surface));
}

.tool-card-portal .pe-gap-card-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tool-card-portal .pe-gap-card-value {
  display: block;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 4px;
}

.tool-card-portal .pe-gap-card-sub {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.tool-card-portal .pe-kpi-featured {
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}

.tool-card-portal .pe-annual-bridge {
  margin-bottom: 10px;
}

.tool-card-portal .pe-annual-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 8px 0 10px;
}

.tool-card-portal .pe-annual-step {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}

.tool-card-portal .pe-annual-step small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tool-card-portal .pe-annual-arrow {
  padding: 2px 0;
}

.tool-card-portal .pe-mc-spotlight {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #059669 30%, var(--line));
  background: color-mix(in srgb, #059669 5%, var(--surface));
}

.tool-card-portal .pe-mc-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 10px;
}

.tool-card-portal .pe-mc-spotlight-metric {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-card-portal .pe-mc-spotlight-metric small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}

.tool-card-portal .pe-mc-spotlight-copy {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tool-card-portal .pe-benchmark-grid {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-size: 0.8125rem;
}

.tool-card-portal .pe-benchmark-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 2%, var(--surface));
}

.tool-card-portal .pe-benchmark-head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0 10px 4px;
}

.tool-card-portal .pe-scenario-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tool-card-portal .pe-scenario-badge {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
}

.tool-card-portal .pe-scenario-card--best {
  border-color: color-mix(in srgb, #059669 35%, var(--line));
  background: color-mix(in srgb, #059669 5%, var(--surface));
}

/* ——— Calculadora de Fluxo de Caixa (consultoria UX) ——— */
.tool-card-portal .fc-premium-balance {
  margin: 0 0 14px;
  padding: 18px 20px;
  text-align: center;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
}

.tool-card-portal .fc-premium-balance--positive {
  border-color: color-mix(in srgb, #059669 45%, var(--line));
  background: color-mix(in srgb, #059669 8%, var(--surface));
}

.tool-card-portal .fc-premium-balance--negative {
  border-color: color-mix(in srgb, #dc2626 45%, var(--line));
  background: color-mix(in srgb, #dc2626 7%, var(--surface));
}

.tool-card-portal .fc-premium-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.tool-card-portal .fc-premium-value {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px;
}

.tool-card-portal .fc-premium-status {
  margin: 0 0 8px;
}

.tool-card-portal .fc-premium-chip {
  font-size: 0.75rem;
}

.tool-card-portal .fc-premium-delta {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tool-card-portal .fc-premium-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tool-card-portal .fc-premium-panel {
  border-left: 3px solid color-mix(in srgb, var(--primary) 35%, var(--line));
}

.tool-card-portal .fc-premium-panel--positive {
  border-left-color: color-mix(in srgb, #059669 50%, var(--line));
  background: color-mix(in srgb, #059669 4%, var(--surface));
}

.tool-card-portal .fc-premium-panel--warning {
  border-left-color: color-mix(in srgb, #d97706 50%, var(--line));
  background: color-mix(in srgb, #d97706 4%, var(--surface));
}

.tool-card-portal .fc-premium-panel--reserve .fc-premium-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.tool-card-portal .fc-premium-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.tool-card-portal .fc-premium-meta {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 3%, var(--surface));
  text-align: center;
}

.tool-card-portal .fc-premium-meta small {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 4px;
}

.tool-card-portal .fc-premium-meta strong {
  font-size: 0.8125rem;
  font-weight: 700;
}

/* DRE Simplificada — relatório profissional */
.tool-card-portal .dre-report-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.tool-card-portal .dre-line {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tool-card-portal .dre-line:last-child {
  border-bottom: none;
}

.tool-card-portal .dre-line--milestone {
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}

.tool-card-portal .dre-line--subtotal {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.tool-card-portal .dre-line--highlight {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-left: 3px solid var(--primary);
}

.tool-card-portal .dre-line--deduction .dre-line-value {
  color: var(--muted);
}

.tool-card-portal .dre-line-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tool-card-portal .dre-line-main {
  flex: 1;
  min-width: 0;
}

.tool-card-portal .dre-line-numbers {
  text-align: right;
  flex-shrink: 0;
}

.tool-card-portal .dre-line-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tool-card-portal .dre-line-value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.tool-card-portal .dre-line-pct {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.tool-card-portal .dre-line-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.75rem;
}

.tool-card-portal .dre-line-benchmark {
  color: var(--primary);
  font-weight: 600;
}

.tool-card-portal .dre-line-desc {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.tool-card-portal .dre-line-status {
  font-weight: 600;
  color: var(--text);
}

.tool-card-portal .dre-separator {
  padding: 0 16px;
  background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}

.tool-card-portal .dre-separator span {
  display: block;
  border-top: 1px dashed color-mix(in srgb, var(--primary) 25%, var(--line));
  margin: 0;
}

.tool-card-portal .dre-statement-footer {
  margin-top: 10px;
}

/* DRE — KPIs premium */
.tool-card-portal .dre-premium-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.tool-card-portal .dre-premium-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}

.tool-card-portal .dre-premium-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tool-card-portal .dre-premium-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.tool-card-portal .dre-premium-pct,
.tool-card-portal .dre-premium-verdict,
.tool-card-portal .dre-premium-bench {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.tool-card-portal .dre-premium-interp {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Financial Health Score */
.tool-card-portal .fhs-gauge-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 12px 0 8px;
}

.tool-card-portal .fhs-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.tool-card-portal .fhs-gauge-fill--excellent { background: var(--chart-green); }
.tool-card-portal .fhs-gauge-fill--good { background: var(--accent); }
.tool-card-portal .fhs-gauge-fill--attention { background: #ea580c; }
.tool-card-portal .fhs-gauge-fill--critical { background: #dc2626; }

.tool-card-portal .fhs-gauge-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tool-card-portal .fhs-score {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.tool-card-portal .fhs-band {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Para cada R$ 100 */
.tool-card-portal .ph-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 12px 0;
}

.tool-card-portal .ph-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 72px;
}

.tool-card-portal .ph-step--highlight {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.tool-card-portal .ph-amount {
  font-size: 1.1rem;
  font-weight: 800;
}

.tool-card-portal .ph-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}

.tool-card-portal .ph-connector {
  color: var(--muted);
  font-size: 1rem;
  opacity: 0.7;
}

.tool-card-portal .ph-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
  border: 1px solid var(--line);
}

/* Benchmark visual */
.tool-card-portal .bm-visual-grid {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.tool-card-portal .bm-visual-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 2%, var(--surface));
}

.tool-card-portal .bm-visual-label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.tool-card-portal .bm-visual-row {
  display: grid;
  grid-template-columns: 88px 48px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

.tool-card-portal .bm-visual-row--target {
  opacity: 0.85;
}

.tool-card-portal .bm-visual-side {
  color: var(--muted);
  font-weight: 600;
}

.tool-card-portal .bm-visual-value {
  font-weight: 700;
  text-align: right;
}

.tool-card-portal .bm-visual-bar {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  overflow: hidden;
  white-space: nowrap;
}

.tool-card-portal .bm-visual-bar--muted {
  color: var(--muted);
}

.tool-card-portal .bm-visual-diff {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Profit formation tree */
.tool-card-portal .pft-tree {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.tool-card-portal .pft-step {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-card-portal .pft-step--highlight {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.tool-card-portal .pft-step-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tool-card-portal .pft-step-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.tool-card-portal .pft-step-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.tool-card-portal .pft-step-pct {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.tool-card-portal .pft-step-desc {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.tool-card-portal .pft-connector {
  text-align: center;
  color: var(--muted);
  padding: 2px 0;
  font-size: 0.9rem;
}

/* Resumo financeiro */
.tool-card-portal .dre-summary-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.tool-card-portal .dre-summary-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 2%, var(--surface));
}

.tool-card-portal .dre-summary-item--priority {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.tool-card-portal .dre-summary-item dt {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tool-card-portal .dre-summary-item dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tool-card-portal .dre-scenario-interp {
  margin-top: 8px !important;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .tool-card-portal .dre-premium-strip {
    grid-template-columns: 1fr;
  }

  .tool-card-portal .dre-line-row {
    flex-direction: column;
    gap: 6px;
  }

  .tool-card-portal .dre-line-numbers {
    text-align: left;
  }

  .tool-card-portal .bm-visual-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  .tool-card-portal .fc-premium-meta-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card-portal .pe-checklist-panel {
  padding: 16px 18px;
}

.tool-card-portal .pe-checklist {
  gap: 12px !important;
}

.tool-card-portal .pe-checklist li {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 2%, var(--surface));
}

.tool-card-portal .pe-next-tools-future {
  margin-top: 12px;
  font-style: italic;
}

/* ——— Jornada financeira (componente compartilhado) ——— */
.tool-card-portal .financial-journey-panel {
  overflow: hidden;
}

.tool-card-portal .financial-journey {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 12px 0 10px;
  padding: 0;
}

.tool-card-portal .financial-journey-item {
  position: relative;
  flex: 1 1 128px;
  min-width: 118px;
  max-width: 152px;
  padding: 4px 0;
}

.tool-card-portal .financial-journey-item:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    var(--line),
    color-mix(in srgb, var(--primary) 45%, var(--line))
  );
  pointer-events: none;
}

.tool-card-portal .financial-journey-item:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -12px;
  width: 0;
  height: 0;
  margin-top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid color-mix(in srgb, var(--primary) 50%, var(--line));
  pointer-events: none;
}

.tool-card-portal .financial-journey-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  margin: 0;
  padding: 12px 10px 10px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top-width: 3px;
  background: var(--surface);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card-portal .financial-journey-card:hover {
  box-shadow: 0 3px 12px color-mix(in srgb, var(--text) 7%, transparent);
}

.tool-card-portal .financial-journey-card--price,
.tool-card-portal .financial-journey-card--revenue {
  border-top-color: color-mix(in srgb, var(--primary) 65%, var(--line));
}

.tool-card-portal .financial-journey-card--inventory {
  border-top-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.tool-card-portal .financial-journey-card--purchases {
  border-top-color: color-mix(in srgb, #0891b2 50%, var(--line));
}

.tool-card-portal .financial-journey-card--cmv {
  border-top-color: color-mix(in srgb, #ca8a04 55%, var(--line));
}

.tool-card-portal .financial-journey-card--margin {
  border-top-color: color-mix(in srgb, #059669 55%, var(--line));
}

.tool-card-portal .financial-journey-card--fixed,
.tool-card-portal .financial-journey-card--neutral {
  border-top-color: color-mix(in srgb, var(--muted) 50%, var(--line));
}

.tool-card-portal .financial-journey-card--breakeven {
  border-top-color: color-mix(in srgb, var(--primary) 75%, var(--line));
}

.tool-card-portal .financial-journey-card--profit {
  border-top-color: color-mix(in srgb, #059669 45%, var(--line));
}

.tool-card-portal .financial-journey-card--growth,
.tool-card-portal .financial-journey-card--outcome,
.tool-card-portal .financial-journey-card--highlight {
  border-top-color: #059669;
  border-color: color-mix(in srgb, #059669 32%, var(--line));
  background: color-mix(in srgb, #059669 7%, var(--surface));
}

.tool-card-portal .financial-journey-icon {
  display: block;
  font-size: 1.125rem;
  line-height: 1;
  margin-bottom: 6px;
}

.tool-card-portal .financial-journey-title {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.tool-card-portal .financial-journey-value {
  margin: 0 0 4px;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.tool-card-portal .financial-journey-card--highlight .financial-journey-value {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 700;
  line-height: 1.35;
}

.tool-card-portal .financial-journey-description,
.tool-card-portal .financial-journey-status {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}

.tool-card-portal .financial-journey-observation {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, #059669 25%, var(--line));
  font-size: 0.75rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
}

.tool-card-portal .financial-journey-footer {
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 900px) {
  .tool-card-portal .financial-journey-item {
    flex: 1 1 140px;
    max-width: calc(50% - 8px);
  }

  .tool-card-portal .financial-journey-panel[data-break-after="4"] .financial-journey-item:nth-child(4)::after,
  .tool-card-portal .financial-journey-panel[data-break-after="4"] .financial-journey-item:nth-child(4)::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .tool-card-portal .financial-journey {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .tool-card-portal .financial-journey-item {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .tool-card-portal .financial-journey-item:not(:last-child) {
    padding-bottom: 18px;
  }

  .tool-card-portal .financial-journey-item:not(:last-child)::after {
    top: auto;
    bottom: 4px;
    left: 50%;
    right: auto;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      var(--line),
      color-mix(in srgb, var(--primary) 45%, var(--line))
    );
  }

  .tool-card-portal .financial-journey-item:not(:last-child)::before {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    margin-top: 0;
    margin-left: -4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid color-mix(in srgb, var(--primary) 50%, var(--line));
    border-bottom: none;
  }

  .tool-card-portal .financial-journey-card {
    padding: 14px 16px;
  }

  .tool-card-portal .financial-journey-value {
    font-size: 1.2rem;
  }
}

@media (min-width: 1100px) {
  .tool-card-portal .financial-journey-item {
    flex: 1 1 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .tool-card-portal .pe-benchmark-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
  }
  .tool-card-portal .pe-benchmark-head {
    display: none;
  }
  .tool-card-portal .pe-mc-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.preco-venda-advanced-lead {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.panel-form-compact.preco-venda-mode-advanced {
  max-height: min(88vh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.results-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.chart-box {
  position: relative;
  width: 100%;
  height: clamp(240px, 34vw, 340px);
  min-height: 0;
  overflow: hidden;
}
.chart-box-large {
  height: clamp(260px, 36vw, 380px);
}
.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.million-result {
  display: grid;
  gap: 16px;
}
.result-section {
  display: grid;
  gap: 10px;
}
.result-section h4 {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
  text-transform: uppercase;
}
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}
.metric.milestone {
  background: color-mix(in srgb, var(--surface) 82%, var(--soft));
}
.metric.is-featured {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}
.metric.is-featured strong { color: var(--primary); }
.metric span { display: block; color: var(--muted); font-size: .82rem; }
.metric strong { display: block; font-size: 1.05rem; margin-top: 4px; overflow-wrap: anywhere; }
.details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--primary);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: .92rem;
}
th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
th:first-child, td:first-child { text-align: left; }
thead th {
  background: var(--soft);
  color: var(--text);
}
.soft-band {
  background: var(--bg-soft);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr);
  gap: 28px;
  align-items: start;
}
.history-list {
  display: grid;
  gap: 10px;
}
.history-item {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.history-item strong { display: block; }
.history-item span { color: var(--muted); font-size: .9rem; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.article-card {
  padding: 22px;
  box-shadow: none;
}
.article-card span {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}
.article-card h3 { margin: 8px 0; }
.article-card p { color: var(--muted); }
.article-card a { color: var(--primary); font-weight: 800; text-decoration: none; }
.seo-page {
  max-width: 880px;
}
.article-page {
  max-width: 980px;
  box-shadow: none;
}
.article-shell {
  max-width: 980px;
}
.article-shell > .article-body {
  max-width: none;
}
.article-shell > .article-related-tools.related-tools-portal {
  margin: 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--line);
}
.article-shell > .article-related-tools.related-tools-portal .related-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.article-body {
  display: grid;
  gap: 18px;
}
.article-body h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.article-body h2 {
  margin-top: 24px;
  font-size: 1.7rem;
}
.article-body h3 {
  margin-top: 12px;
}
.article-body p, .article-body li {
  color: var(--muted);
  font-size: 1.03rem;
}
.article-body .lead {
  color: var(--text);
  font-size: 1.16rem;
}
.toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}
.toc h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.toc-child {
  margin-left: 14px;
}
.faq-box {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.rescisao-card h2,
.rescisao-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.rescisao-section {
  padding: 24px;
  margin-top: 0;
}
.highlight-box {
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.calc-memory tr.is-debit td:last-child {
  color: #dc2626;
}
.calc-memory tr.is-total td {
  font-weight: 800;
  background: var(--soft);
}
.scenario-compare table {
  min-width: 920px;
}
.calc-memory table {
  min-width: 980px;
}
.calc-memory small {
  color: var(--muted);
}
.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.emergency-module ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.form-grid label.form-span {
  grid-column: 1 / -1;
}
.field-help {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.fgts-tooltip {
  font-size: .9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  background: color-mix(in srgb, var(--soft) 70%, var(--surface));
  border-radius: 8px;
  margin: 0;
}
.fgts-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--soft) 50%, var(--surface));
}
.fgts-summary h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.fgts-summary-grid {
  margin-bottom: 12px;
}
.disclaimer {
  font-size: .9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-top: 16px;
}
.rescisao-seo {
  margin-top: 26px;
}
.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.clt-pj-card h2,
.clt-pj-card h3,
.clt-pj-card h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.clt-pj-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

/* ——— CLT x PJ modo simples ——— */
.clt-pj-card--simple .clt-pj-form-simple {
  gap: 12px;
}
.clt-pj-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.clt-pj-fieldset legend {
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.clt-pj-advanced-form {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--soft) 35%, var(--surface));
}
.clt-pj-advanced-form > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
}
.clt-pj-advanced-form > summary::-webkit-details-marker {
  display: none;
}
.clt-pj-advanced-form-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.clt-pj-advanced-cta {
  margin-top: 1.25rem;
}
.clt-pj-back-link {
  margin: 0.75rem 0 0;
}
.clt-pj-defaults-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--muted);
  font-size: 0.82rem;
}
.clt-pj-kpi-cards {
  gap: 10px;
}
.clt-pj-verdict-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.clt-pj-verdict-card.clt-pj-verdict--positive {
  border-color: color-mix(in srgb, var(--success) 40%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
}
.clt-pj-verdict-card.clt-pj-verdict--negative {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.clt-pj-verdict-card.clt-pj-verdict--neutral {
  border-color: color-mix(in srgb, var(--warning) 40%, var(--line));
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
}
.clt-pj-verdict-headline {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}
.clt-pj-verdict-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.clt-pj-simple-table .clt-pj-icon {
  display: inline-block;
  width: 1.1rem;
  text-align: center;
  margin-right: 4px;
  font-weight: 800;
}
.clt-pj-icon--clt { color: #2563eb; }
.clt-pj-icon--pj { color: #059669; }
.clt-pj-icon--warn { color: #ea580c; }
.chart-box-medium {
  min-height: 220px;
}
.clt-pj-card--advanced .clt-pj-advanced-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.clt-pj-results-first {
  order: 1;
}
.clt-pj-premissas-accordion {
  order: 2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
}
.clt-pj-premissas-accordion > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.clt-pj-premissas-form {
  margin-top: 14px;
}
.clt-pj-patrimony-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.clt-pj-patrimony-hero-card {
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clt-pj-patrimony-hero-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.clt-pj-patrimony-hero-card strong {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.2;
}
.clt-pj-patrimony-hero-card.is-clt {
  border-color: color-mix(in srgb, #2563eb 35%, var(--line));
}
.clt-pj-patrimony-hero-card.is-pj {
  border-color: color-mix(in srgb, #059669 35%, var(--line));
}
.clt-pj-patrimony-hero-card.is-diff {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}
.clt-pj-secondary-results {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}
.clt-pj-secondary-results > summary {
  cursor: pointer;
  font-weight: 700;
}
.clt-pj-secondary-results-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.clt-pj-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(to top, var(--surface) 75%, transparent);
  padding-top: 8px;
}
.clt-pj-card--simple .clt-pj-resumo {
  margin-bottom: 4px;
}
.clt-pj-card--simple .clt-pj-primary-result {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.clt-pj-card--simple .clt-pj-equivalence-hero {
  margin-bottom: 8px;
}
.clt-pj-card--simple .clt-pj-equivalence-value {
  font-size: clamp(1.2rem, 4.8vw, 1.75rem);
  line-height: 1.3;
  display: block;
}
.clt-pj-equiv-sep {
  opacity: 0.7;
  font-weight: 700;
  margin: 0 0.2em;
}
.clt-pj-card--simple .clt-pj-hero-diff {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  gap: 6px;
}
.clt-pj-card--simple .clt-pj-hero-diff p {
  font-size: 0.8125rem;
}
.clt-pj-card--simple .clt-pj-hero-diff span {
  font-size: clamp(1rem, 3.6vw, 1.15rem);
}
.clt-pj-card--simple .mortgage-panel-compact {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.clt-pj-card--simple .clt-pj-pro-cta-card {
  margin-top: 10px;
  padding: 14px 16px;
}
.clt-pj-card--simple .clt-pj-pro-cta-card .clt-pj-pro-cta-inner {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.clt-pj-card--simple .clt-pj-form-panel h2 {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}
.clt-pj-card--simple .clt-pj-form-simple label {
  display: grid;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.clt-pj-card--simple .clt-pj-form-simple input,
.clt-pj-card--simple .clt-pj-form-simple select {
  width: 100%;
}
.clt-pj-card--simple .clt-pj-fieldset + .clt-pj-fieldset {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.clt-pj-card--simple .clt-pj-feature-table {
  min-width: 280px;
}
.clt-pj-card--simple .clt-pj-breakdown-item {
  padding: 8px 10px;
}
.clt-pj-primary-result {
  margin: 0 0 10px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--primary) 40%, var(--line));
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--primary) 16%, var(--surface)),
    color-mix(in srgb, var(--primary) 5%, var(--surface))
  );
  box-shadow: var(--shadow);
}
.clt-pj-hero-equivalence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}
.clt-pj-hero-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clt-pj-hero-amount small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.clt-pj-hero-amount strong {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.15;
  font-weight: 800;
}
.clt-pj-hero-amount.is-clt strong { color: #2563eb; }
.clt-pj-hero-amount.is-pj strong { color: #059669; }
.clt-pj-hero-symbol {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.clt-pj-hero-diff {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  display: grid;
  gap: 4px;
}
.clt-pj-hero-diff p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.clt-pj-hero-diff span {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 800;
}
.clt-pj-hero-diff.is-positive span { color: #059669; }
.clt-pj-hero-diff.is-negative span { color: #dc2626; }
.clt-pj-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.clt-pj-summary-card {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clt-pj-summary-card small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.clt-pj-summary-card strong {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.2;
}
.clt-pj-summary-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.clt-pj-summary-card.is-clt { border-color: color-mix(in srgb, #2563eb 30%, var(--line)); }
.clt-pj-summary-card.is-pj { border-color: color-mix(in srgb, #059669 30%, var(--line)); }
.clt-pj-summary-card.is-tax { border-color: color-mix(in srgb, #ea580c 30%, var(--line)); }
.clt-pj-result-content {
  display: grid;
  gap: 10px;
}
.clt-pj-section-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.clt-pj-section-lead {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.clt-pj-chart-section {
  margin: 0;
}
.clt-pj-chart-hero {
  height: clamp(280px, 42vw, 420px);
  min-height: 280px;
}
.clt-pj-breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.clt-pj-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.clt-pj-breakdown-item.is-total {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  font-weight: 700;
}
.clt-pj-breakdown-label {
  font-size: 0.88rem;
}
.clt-pj-breakdown-item strong {
  font-size: 0.95rem;
  white-space: nowrap;
}
.clt-pj-breakdown-item strong small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.clt-pj-feature-table td,
.clt-pj-feature-table th {
  font-size: 0.88rem;
  padding: 8px 10px;
}
.clt-pj-feature-yes {
  color: #059669;
  font-weight: 700;
}
.clt-pj-feature-no {
  color: var(--muted);
}
.clt-pj-smart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.clt-pj-smart-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  line-height: 1.45;
}
.clt-pj-smart-icon {
  flex-shrink: 0;
  font-weight: 800;
}
.clt-pj-pro-cta {
  margin-top: 4px;
}
.clt-pj-pro-cta-inner {
  padding: 18px 16px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--accent) 14%, var(--surface)),
    color-mix(in srgb, var(--primary) 6%, var(--surface))
  );
  box-shadow: var(--shadow);
}
.clt-pj-pro-cta-inner h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.clt-pj-pro-cta-lead {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.clt-pj-pro-cta-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}
.partner-marketplace--clt-pj .partner-marketplace-form {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.clt-pj-pro-cta-button {
  width: 100%;
  margin-top: 4px;
  font-size: 1rem;
  padding: 12px 16px;
}
.clt-pj-share-actions {
  margin-top: 0;
}
.salary-cta-card--compact {
  padding: 12px 14px;
}
.salary-cta-card--compact h2 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.salary-cta-card--compact p {
  margin: 0 0 8px;
  font-size: 0.84rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.clt-pj-primary-result-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.clt-pj-equivalence-statement {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.45;
  font-weight: 600;
}
.clt-pj-equivalence-statement strong {
  color: var(--primary-strong);
  font-weight: 800;
}
.clt-pj-financial-summary {
  margin-bottom: 8px;
}
.clt-pj-advanced-results,
.clt-pj-patrimony-section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}
.clt-pj-advanced-results > summary,
.clt-pj-patrimony-section > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.clt-pj-advanced-results-body,
.clt-pj-patrimony-body {
  margin-top: 10px;
}
.charts-grid-compact .chart-box {
  min-height: 180px;
}
.clt-pj-wealth-chart {
  margin-top: 12px;
}
.step-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.step-tab {
  flex: 1 1 140px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.step-tab.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
}
.step-panel {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.step-panel legend {
  font-weight: 800;
  margin-bottom: 12px;
}
.ivf-score {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 40%, var(--surface));
}
.ivf-bars {
  display: grid;
  gap: 10px;
}
.ivf-bar {
  display: grid;
  grid-template-columns: 40px 1fr 48px;
  gap: 10px;
  align-items: center;
}
.ivf-track {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.ivf-fill {
  height: 100%;
  border-radius: 999px;
}
.ivf-fill.is-clt { background: #2563eb; }
.ivf-fill.is-pj { background: #059669; }
.ivf-leader {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.comparison-table tr.winner-clt td:nth-child(2),
.comparison-table tr.winner-pj td:nth-child(3) {
  font-weight: 800;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.protection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}
.protection-card.is-clt {
  border-color: color-mix(in srgb, #2563eb 35%, var(--line));
}
.protection-card.is-pj {
  border-color: color-mix(in srgb, #059669 35%, var(--line));
}
.protection-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.table-scroll {
  overflow-x: auto;
}
.comparison-table td.is-positive { color: #059669; font-weight: 700; }
.comparison-table td.is-negative { color: #dc2626; font-weight: 700; }
.metric.is-featured.is-clt strong { color: #2563eb; }
.metric.is-featured.is-pj strong { color: #059669; }
.indicator-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 800;
  color: var(--muted);
  cursor: help;
}
.indicator-tip:hover,
.indicator-tip:focus {
  color: var(--primary);
  border-color: var(--primary);
}
.memory-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--soft) 35%, var(--surface));
}
.memory-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}
.memory-content {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.memory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.memory-table th,
.memory-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.memory-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.debug-panel {
  margin: 16px 0;
  border: 1px dashed color-mix(in srgb, #dc2626 40%, var(--line));
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, #dc2626 4%, var(--surface));
}
.debug-panel summary {
  cursor: pointer;
  font-weight: 800;
  color: #dc2626;
}
.debug-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
}
.winner-badge {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}
.comparison-table .direction-higher::after {
  content: " ↑";
  color: var(--muted);
  font-size: .75rem;
}
.comparison-table .direction-lower::after {
  content: " ↓";
  color: var(--muted);
  font-size: .75rem;
}
.benefits-note {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.winner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 920px) {
  .winner-grid { grid-template-columns: 1fr; }
}
@media print {
  .winner-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.formula-dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: min(560px, calc(100% - 32px));
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.formula-dialog::backdrop {
  background: rgba(0, 0, 0, .45);
}
.formula-dialog-inner {
  padding: 20px;
  display: grid;
  gap: 12px;
}
.formula-btn {
  margin-left: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.fgts-warning {
  font-size: .88rem;
  color: #b45309;
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  margin: 0 0 10px;
  background: color-mix(in srgb, #f59e0b 8%, var(--surface));
  border-radius: 6px;
}
.clt-pj-seo { margin-top: 26px; }
.is-winner-cell {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-weight: 600;
}
.is-ineligible-cell {
  opacity: 0.55;
  background: color-mix(in srgb, var(--muted) 10%, var(--surface));
  color: var(--muted);
}
.regime-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--muted) 18%, var(--surface));
  color: var(--muted);
  border: 1px solid var(--line);
}
.regime-badge-inline {
  display: block;
  margin-top: 6px;
}
.regime-ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.regime-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.regime-rank-item.is-first {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.regime-rank-item.is-ineligible {
  opacity: 0.6;
  background: color-mix(in srgb, var(--muted) 8%, var(--surface));
}
.regime-medal {
  font-size: 1.5rem;
  line-height: 1;
  min-width: 2rem;
  text-align: center;
}
.regime-rank-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.highlight-card,
.metric-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.tax-savings-card {
  background: linear-gradient(135deg, color-mix(in srgb, #059669 14%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, #059669 35%, var(--line));
}
.tax-burden-card {
  background: color-mix(in srgb, var(--soft) 70%, var(--surface));
}
.tax-reduction-card {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}
.highlight-lead {
  margin: 0 0 4px;
  color: var(--muted);
}
.highlight-value {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #059669;
}
.highlight-value.is-compact {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.highlight-sub {
  margin: 4px 0 8px;
  font-weight: 600;
}
.cards-duo {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.winner-savings-list ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.fator-r-analysis {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
}
.fator-r-status.is-ok {
  color: #059669;
}
.winner-card {
  padding: 20px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface));
}
.winner-trophy {
  font-size: 2rem;
  margin: 0 0 4px;
  line-height: 1;
}
.winner-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}
.winner-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.net-takehome {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.insight-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.insight-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.insight-card h4 {
  margin: 0 0 4px;
  font-size: .95rem;
}
.insight-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}
.insight-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.savings-compare-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.savings-compare-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 60%, var(--surface));
}
.verdict-box p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.verdict-box p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .92rem;
}
.seo-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
}
.seo-summary-grid div {
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 50%, var(--surface));
  border: 1px solid var(--line);
}
.seo-summary-grid dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.seo-summary-grid dd {
  margin: 0;
  font-weight: 600;
}
.seo-summary-inline,
.seo-summary-panel {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 55%, var(--surface));
}
.chart-legend-note {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}
.chart-box-winner {
  position: relative;
}
.chart-winner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 15%, var(--surface));
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
}
.comparison-table output,
.form-grid output {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 920px) {
  .protection-grid, .charts-grid { grid-template-columns: 1fr; }
}

.site-footer {
  padding: 36px 0;
  background: var(--text);
  color: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.site-footer p {
  color: color-mix(in srgb, var(--bg) 76%, transparent);
  max-width: 720px;
}
.site-footer nav {
  display: grid;
  gap: 8px;
}

/* ——— Portal: simuladores em destaque, trilhas e ferramentas ——— */
.featured-simulators-grid,
.journey-grid,
.tools-category-grid,
.related-tools-grid {
  display: grid;
  gap: 20px;
}
.featured-simulators-grid {
  grid-template-columns: repeat(4, 1fr);
}
.journey-grid {
  grid-template-columns: repeat(3, 1fr);
}
.tools-category-grid {
  grid-template-columns: repeat(2, 1fr);
}
.related-tools-grid {
  grid-template-columns: repeat(4, 1fr);
}
.featured-card,
.journey-card,
.tool-directory-card,
.related-tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.featured-card h3,
.journey-card h3,
.tool-directory-card h3,
.related-tool-card h3 {
  margin: 0;
  font-size: 1.15rem;
}
.featured-card p,
.journey-card p,
.tool-directory-card p,
.related-tool-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  line-height: 1.55;
}
.featured-card .button,
.journey-card .button,
.tool-directory-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.journey-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.journey-steps li::marker {
  color: var(--primary);
}
.tools-category {
  margin-bottom: 36px;
}
.tools-category > h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}
.related-tools {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related-tools-portal h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}
.related-tools h3 {
  margin: 0 0 16px;
}
.footer-expanded {
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-nav h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bg);
}
.footer-nav a {
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--bg);
  text-decoration: underline;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--muted);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown-row.breakdown-net,
.breakdown-row.breakdown-gross {
  font-weight: 600;
  border-bottom-width: 2px;
}
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.timeline-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
}
.timeline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.timeline-arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.25rem;
  padding: 4px 0;
}
.insights-list {
  margin: 0;
  padding-left: 1.2rem;
}
.insights-list li + li { margin-top: 6px; }
.result-panel.is-empty [data-result-content] { opacity: 0.55; }
.ad-slot-inline {
  min-height: 90px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— Salário Líquido ——— */
.tool-layout-salary {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}
.panel-form-compact {
  align-self: start;
  position: sticky;
  top: 16px;
}
.form-grid-compact {
  grid-template-columns: 1fr;
}
.panel-results-wide {
  min-width: 0;
}
.result-panel.is-loading .result-content {
  opacity: 0.45;
  pointer-events: none;
}
.result-panel.is-loading .result-skeleton {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.result-panel.is-ready .result-skeleton,
.result-panel:not(.is-loading) .result-skeleton {
  display: none;
}
.skeleton-block {
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--soft) 25%, color-mix(in srgb, var(--line) 40%, var(--soft)) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-block-short { height: 40px; width: 60%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.salary-hero-metric {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, #059669 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, #059669 30%, var(--line));
}
.salary-hero-metric small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.salary-hero-value {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.1;
  color: #059669;
}
.tax-reference-line {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}
.tax-table-meta {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.salary-kpi strong.kpi-value,
.kpi-value {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.15;
}
.kpi-positive { color: #059669; }
.kpi-negative { color: #dc2626; }
.kpi-neutral { color: var(--primary); }
.breakdown-positive strong { color: #059669; }
.breakdown-negative strong { color: #dc2626; }
.breakdown-neutral strong { color: var(--primary); }
.breakdown-gross strong { color: var(--muted); }
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 4px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
  vertical-align: middle;
}
.annual-projection-note {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border: 1px solid var(--line);
}
.irrf-zero-note {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, #059669 8%, var(--surface));
  border: 1px solid color-mix(in srgb, #059669 25%, var(--line));
}
.irrf-zero-message {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, inherit);
}
.irrf-zero-check {
  color: #059669;
  font-weight: 800;
  margin-right: 4px;
}
.irrf-zero-base {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}
.irrf-reduction-tip {
  margin: 8px 0 0;
}
.breakdown-irrf {
  border-bottom: none;
  padding-bottom: 6px;
}
.irrf-detail-wrap,
[data-irrf-detail-wrap] {
  margin-top: 4px;
}
.irrf-detail-toggle {
  margin: 0 0 10px;
  font-size: 0.88rem;
}
.irrf-detail-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  overflow: hidden;
}
.irrf-detail-panel[hidden] {
  display: none;
}
.irrf-detail-panel summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  list-style: none;
}
.irrf-detail-panel summary::-webkit-details-marker {
  display: none;
}
.irrf-detail-body {
  padding: 0 14px 14px;
}
.irrf-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.92rem;
}
.irrf-detail-divider {
  border-top: 1px dashed var(--line);
  margin: 6px 0;
}
.irrf-detail-highlight strong {
  color: var(--primary);
}
.irrf-detail-total {
  font-weight: 700;
}
.irrf-detail-total strong {
  color: #059669;
}
.employer-subtitle {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.salary-cta-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.salary-cta-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.salary-cta-card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.sell-vacation-label {
  font-weight: 600;
  line-height: 1.45;
}
.vacation-kpi-grid {
  margin-top: 0;
}
.vacation-calc-panel {
  margin: 20px 0;
}
.sell-info-card,
.vacation-compare-card {
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}
.sell-info-card h3,
.vacation-compare-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.vacation-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vacation-diff {
  margin: 12px 0 0;
  font-size: 0.95rem;
}
.compare-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}
.breakdown-highlight strong {
  color: var(--primary);
}
.avos-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  font-size: 1.05rem;
}
.thirteenth-timeline {
  margin: 16px 0 20px;
}
.timeline-compact .timeline-step {
  padding: 6px 0;
  gap: 10px;
}
.timeline-compact .timeline-badge {
  width: 28px;
  height: 28px;
  font-size: 0.82rem;
}
.timeline-compact .timeline-step p {
  margin: 2px 0;
}
.timeline-compact .timeline-step small {
  font-size: 0.78rem;
}
.timeline-compact .timeline-arrow {
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
}
.acquired-right-card,
.payment-calendar-card {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}
.acquired-right-card h3,
.payment-calendar-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.acquired-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.acquired-stat {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.acquired-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.acquired-value {
  font-size: 1.35rem;
  font-weight: 800;
}
.payment-calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.payment-calendar-grid div {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.payment-calendar-grid strong {
  display: block;
  margin-bottom: 4px;
}
.payment-calendar-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}
.discounts-explainer {
  margin: -8px 0 16px;
  font-size: 0.88rem;
}
.cta-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.cta-dual-row .salary-cta-card {
  margin-top: 0;
}
.seo-article {
  margin-top: 32px;
  line-height: 1.65;
}
.seo-article h2 {
  margin-top: 0;
}
.seo-article h3 {
  margin-top: 1.5em;
  font-size: 1.1rem;
}
.seo-article p {
  color: var(--muted);
}
.salary-annual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.salary-annual-card strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 4px;
}
.metric-note {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.analysis-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  margin: 20px 0;
}
.analysis-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.analysis-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.analysis-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.analysis-icon {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.dependent-impact-card {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 16px 0;
  background: color-mix(in srgb, #2563eb 10%, var(--surface));
  border: 1px solid color-mix(in srgb, #2563eb 25%, var(--line));
}
.dependent-impact-card p { margin: 0; }
.employer-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 20px 0;
  background: color-mix(in srgb, var(--soft) 50%, var(--surface));
}
.employer-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.employer-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.employer-compare strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 4px;
}
.employer-disclaimer { margin-top: 12px; }
.chart-box-salary {
  height: 300px;
  min-height: 260px;
}
.salary-faq {
  margin-top: 8px;
}
.salary-faq h2 { margin-top: 0; }
.faq-list {
  display: grid;
  gap: 8px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink, #111);
  color: var(--bg, #fff);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .tool-layout-salary {
    grid-template-columns: 1fr;
  }
  .panel-form-compact {
    position: static;
  }
  .salary-annual-grid,
  .employer-compare,
  .cta-dual-row,
  .acquired-right-grid,
  .payment-calendar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .related-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .featured-simulators-grid,
  .related-tools-grid,
  .article-hub-featured-grid,
  .article-hub-tools-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey-grid,
  .tools-category-grid {
    grid-template-columns: 1fr;
  }
  .footer-expanded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .featured-simulators-grid,
  .related-tools-grid,
  .article-hub-featured-grid,
  .article-hub-tools-featured-grid {
    grid-template-columns: 1fr;
  }
  .article-hub-tools-featured {
    padding: 18px;
  }
  .article-hub-tool-card--featured {
    min-height: 0;
  }
  .article-hub-cta {
    padding: 28px 18px;
  }
  .article-hub-cta-actions .button {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }
  .article-hub-ver-todos {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .article-hub-category-head {
    gap: 14px;
  }
}

/* ——— Captura de leads (legado) ——— */
.lead-capture-mount {
  margin: 24px 0;
}
.lead-capture-inner {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  background: linear-gradient(165deg, var(--panel) 0%, color-mix(in srgb, var(--primary) 6%, var(--panel)) 100%);
}
.lead-summary h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.lead-summary-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.lead-summary-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
}
.lead-cta h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.lead-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}
.lead-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  resize: vertical;
}
.lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}
.lead-consent input {
  margin-top: 4px;
}
.lead-consent a {
  color: var(--primary);
  font-weight: 700;
}
.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.lead-success {
  padding: 8px 0 4px;
}
.lead-success-msg {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.lead-recaptcha-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.lead-recaptcha-note a {
  color: var(--primary);
  font-weight: 600;
}
.lead-form-wrap[hidden],
.lead-success[hidden],
.lead-cta[hidden] {
  display: none !important;
}

/* ——— Partner lead card (contabilidade contextual) ——— */
.partner-lead-root {
  width: 100%;
}
.partner-lead-card {
  margin: 0;
}
.partner-lead-card-inner {
  display: grid;
  gap: 12px;
}
.partner-lead-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.partner-lead-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
.partner-lead-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.92rem;
}
.partner-lead-benefits li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.partner-lead-benefits li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.partner-lead-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.partner-lead-form .field label {
  font-size: 0.88rem;
}
.partner-lead-form input {
  min-height: 40px;
  padding: 8px 12px;
}
.partner-lead-slot {
  margin-top: 18px;
}
.clt-pj-pro-cta-card .partner-lead-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ——— Marketplace de parceiros (legado) ——— */
.partner-marketplace-mount {
  margin: 24px 0;
}
.partner-marketplace-inner {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  background: linear-gradient(165deg, var(--panel) 0%, color-mix(in srgb, var(--primary) 6%, var(--panel)) 100%);
}
.partner-marketplace-inner h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.partner-marketplace-intro {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}
.partner-marketplace-services {
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  display: grid;
  gap: 6px;
  color: var(--text);
  line-height: 1.45;
}
.partner-marketplace-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}
.partner-marketplace-audience {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}
.partner-marketplace-audience legend {
  margin-bottom: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.partner-marketplace-audience-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: pointer;
  line-height: 1.45;
}
.partner-marketplace-audience-option input {
  margin-top: 3px;
  flex-shrink: 0;
}
.partner-marketplace-audience-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--soft));
}
.field-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88em;
}
.partner-marketplace-privacy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.partner-marketplace-privacy a {
  color: var(--primary);
  font-weight: 600;
}
.partner-marketplace-error {
  margin: 0;
  color: var(--danger, #c0392b);
  font-size: 0.92rem;
}
.partner-marketplace-success-msg {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}
.partner-marketplace-form[hidden],
.partner-marketplace-success[hidden],
.partner-marketplace-error[hidden] {
  display: none !important;
}

/* ——— Financiamento Imobiliário ——— */
.tool-layout-mortgage {
  grid-template-columns: minmax(200px, 252px) minmax(0, 1fr);
}
.tool-card-mortgage .panel-form-compact {
  padding: 14px 16px;
}
.tool-card-mortgage .panel-form-compact h2 {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}
.tool-card-mortgage .mortgage-section-title,
.tool-card-mortgage .result-content h2,
.tool-card-mortgage .mortgage-sac-price-zone h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: 0;
  color: var(--text);
}
.tool-card-mortgage .result-content h3,
.tool-card-mortgage .system-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}
.tool-card-mortgage .mortgage-resumo {
  margin-bottom: 10px;
}
.tool-card-mortgage .mortgage-resumo .mortgage-section-title {
  margin-bottom: 8px;
}
.tool-card-mortgage .mortgage-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.tool-card-mortgage .mortgage-dual-row > section {
  margin: 0;
  min-width: 0;
}
.tool-card-mortgage .form-grid-compact label {
  font-size: 0.88rem;
}
.tool-card-mortgage .form-grid-compact input {
  padding: 8px 10px;
}
.tool-card-mortgage .mortgage-hero {
  padding: 10px 12px;
  margin-bottom: 8px;
}
.tool-card-mortgage .mortgage-hero small {
  font-size: 0.72rem;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--muted);
}
.tool-card-mortgage .mortgage-hero .salary-hero-value {
  font-size: clamp(1.45rem, 2.8vw, 1.75rem);
  font-weight: 800;
}
.tool-card-mortgage .mortgage-kpi-secondary {
  margin: 0 0 12px;
  gap: 8px;
}
.tool-card-mortgage .mortgage-kpi-compact {
  padding: 8px 10px;
  min-height: 0;
  border-radius: 8px;
}
.tool-card-mortgage .mortgage-kpi-compact small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.tool-card-mortgage .mortgage-kpi-compact .kpi-value {
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.2;
}
.tool-card-mortgage .mortgage-kpi-compact .kpi-positive {
  color: #047857;
  font-size: 0.875rem;
}
.tool-card-mortgage .mortgage-kpi-interest .kpi-value {
  color: color-mix(in srgb, #b91c1c 75%, var(--text));
  font-weight: 700;
}
.tool-card-mortgage .metric-note-subtle {
  font-size: 0.7rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  margin-top: 2px;
  line-height: 1.3;
}
.tool-card-mortgage .mortgage-panel-compact {
  margin: 0;
  padding: 10px 12px;
}
.tool-card-mortgage .result-content > section {
  margin: 10px 0;
}
.tool-card-mortgage .result-content .analysis-card {
  margin: 10px 0;
  padding: 10px 12px;
}
.tool-card-mortgage .result-content .analysis-card h2 {
  font-size: 0.8125rem;
  margin-bottom: 6px;
}
.tool-card-mortgage .result-content .analysis-list {
  gap: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.tool-card-mortgage .result-content .analysis-icon {
  width: 1.1rem;
  font-size: 0.75rem;
}
.tool-card-mortgage .salary-cta-card h2 {
  font-size: 0.9rem;
}
.tool-card-mortgage .salary-cta-card p {
  font-size: 0.8125rem;
}
.tool-card-mortgage .memory-table {
  font-size: 0.8125rem;
}
.tool-card-mortgage .memory-table th,
.tool-card-mortgage .memory-table td {
  padding: 6px 8px;
}
.tool-card-mortgage .income-badge {
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.tool-card-mortgage .income-metrics {
  gap: 8px;
  margin-bottom: 6px;
}
.tool-card-mortgage .income-metrics small {
  font-size: 0.72rem;
  margin-bottom: 2px;
}
.tool-card-mortgage .income-metrics strong {
  font-size: 0.92rem;
}
.structure-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.structure-list-compact {
  gap: 0;
}
.structure-list-compact > div {
  padding: 6px 0;
}
.structure-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.structure-list-compact > div:last-child {
  border-bottom: 0;
}
.structure-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.structure-list-compact dt {
  font-size: 0.82rem;
}
.structure-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  font-size: 0.92rem;
}
.structure-list-compact dd {
  font-size: 0.88rem;
}
.sac-savings-highlight {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #059669 35%, var(--line));
  background: color-mix(in srgb, #059669 10%, var(--surface));
  text-align: center;
}
.sac-highlight-label {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.sac-highlight-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #047857;
  line-height: 1.15;
}
.compare-savings-value {
  color: #047857;
  font-size: 0.875rem;
  font-weight: 800;
  text-align: right;
}
.compare-savings-row {
  border-top: 2px solid color-mix(in srgb, #059669 35%, var(--line));
}
.compare-savings-row td {
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.8125rem;
}
.tool-card-mortgage .mortgage-sac-price-zone {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}
.tool-card-mortgage .mortgage-sac-price-zone > section + section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tool-card-mortgage .system-card {
  padding: 10px 12px;
}
.tool-card-mortgage .system-card ul {
  font-size: 0.8125rem;
  line-height: 1.4;
  padding-left: 16px;
}
.tool-card-mortgage .chart-box-large {
  height: 220px;
}
.commitment-legend-title {
  margin: 8px 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table-scroll-wrap .memory-table {
  min-width: 320px;
}
.income-badge {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}
.income-ok {
  background: color-mix(in srgb, #059669 14%, var(--surface));
  border: 1px solid color-mix(in srgb, #059669 35%, var(--line));
  color: #047857;
}
.income-attention {
  background: color-mix(in srgb, #d97706 14%, var(--surface));
  border: 1px solid color-mix(in srgb, #d97706 35%, var(--line));
  color: #b45309;
}
.income-fail {
  background: color-mix(in srgb, #dc2626 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #dc2626 35%, var(--line));
  color: #b91c1c;
}
.income-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.income-metrics small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.income-metrics strong {
  font-size: 1.05rem;
}
.commitment-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.tool-card-mortgage .commitment-bar-wrap {
  margin: 8px 0 6px;
}
.tool-card-mortgage .commitment-bar {
  font-size: 1rem;
}
.tool-card-mortgage .commitment-bar-value {
  font-size: 1.1rem;
}
.tool-card-mortgage .commitment-message {
  margin: 0 0 4px;
  font-size: 0.88rem;
}
.commitment-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.commitment-bar {
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--primary);
  background: transparent;
}
.commitment-bar-value {
  font-size: 1.25rem;
}
.commitment-message {
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.45;
}
.amort-cta-inline {
  margin: 16px 0;
}
.amort-cta-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line));
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}
.amort-cta-text {
  margin: 0;
  flex: 1 1 200px;
  font-weight: 600;
}
.system-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.system-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.system-sac {
  border-color: color-mix(in srgb, #2563eb 35%, var(--line));
}
.system-price {
  border-color: color-mix(in srgb, #059669 35%, var(--line));
}
.system-card h3 {
  margin: 0 0 10px;
}
.system-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.mortgage-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .tool-card-mortgage .mortgage-kpi-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tool-card-mortgage .income-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 920px) {
  .tool-layout-mortgage {
    grid-template-columns: minmax(200px, 252px) minmax(0, 1fr);
  }
}
@media (max-width: 919px) {
  .tool-layout-mortgage {
    grid-template-columns: 1fr;
  }
  .tool-card-mortgage .panel-form-compact {
    position: static;
  }
}
@media (max-width: 767px) {
  .tool-card-mortgage .mortgage-dual-row {
    grid-template-columns: 1fr;
  }
  .tool-card-mortgage .mortgage-kpi-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-card-mortgage .income-metrics {
    grid-template-columns: 1fr;
  }
  .tool-card-mortgage .system-compare-grid {
    grid-template-columns: 1fr;
  }
  .tool-card-mortgage .amort-cta-compact {
    flex-direction: column;
    align-items: stretch;
  }
  .tool-card-mortgage .amort-cta-compact .button {
    width: 100%;
  }
}
@media (max-width: 920px) {
  .income-metrics,
  .system-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Amortização de Financiamento (layout alinhado ao financiamento) ——— */
.tool-card-amortization .amort-panel-before {
  border-color: color-mix(in srgb, var(--muted) 20%, var(--line));
}
.tool-card-amortization .amort-panel-after {
  border-color: color-mix(in srgb, #059669 35%, var(--line));
  background: color-mix(in srgb, #059669 5%, var(--surface));
}
.tool-card-amortization .mortgage-hero {
  background: linear-gradient(135deg, color-mix(in srgb, #059669 14%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, #059669 32%, var(--line));
}
.tool-card-amortization .mortgage-hero .salary-hero-value {
  color: #047857;
}

/* ——— Design System Portal (referência: Financiamento) ——— */
.tool-card-portal {
  --portal-form-width: minmax(200px, 252px);
}
.tool-card-portal.tool-layout-salary,
.tool-card-portal .tool-layout-salary,
.tool-card-portal .tool-layout-mortgage {
  grid-template-columns: var(--portal-form-width) minmax(0, 1fr);
}
.tool-card-portal .panel-form-compact {
  padding: 14px 16px;
  align-self: start;
  position: sticky;
  top: 16px;
}
.tool-card-portal .panel-form-compact h2,
.tool-card-portal .panel > h2:first-child {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}
.tool-card-portal .result-content h2,
.tool-card-portal .mortgage-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--text);
}
.tool-card-portal .portal-hero-metric,
.tool-card-portal .salary-hero-metric {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
}
.tool-card-portal .portal-metric-grid,
.tool-card-portal .mortgage-kpi-secondary {
  gap: 8px;
  margin: 0 0 12px;
}
.tool-card-portal .portal-insights,
.tool-card-portal .analysis-card {
  margin: 10px 0;
  padding: 10px 12px;
}
.tool-card-portal .analysis-list {
  gap: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.tool-card-portal.clt-pj-card .result-content > section,
.tool-card-portal.rescisao-card .result-content > section {
  margin: 10px 0;
}
.tool-card-portal.clt-pj-card .clt-pj-section h3,
.tool-card-portal.rescisao-card .result-content > h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}
.tool-card-portal.clt-pj-card .step-tabs {
  margin-bottom: 10px;
}
.tool-card-portal.rescisao-card .fgts-summary {
  margin: 10px 0;
}
.section-head .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.section-head .breadcrumb li + li::before {
  content: "›";
  margin: 0 6px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.section-head .breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.section-head .breadcrumb a:hover {
  text-decoration: underline;
}
.section-head .eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.section-head .update-reference-line,
.section-head .tax-reference-line {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.seo-article.salary-faq,
.container.panel.seo-article {
  margin-top: 24px;
  padding: 20px 24px;
}
.seo-article h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}
.seo-article h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--surface);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}
.related-tools:not(.related-tools-portal):not(.article-related-tools) {
  margin: 24px 0 0;
  padding-top: 0;
  border-top: 0;
}
.related-tools:not(.related-tools-portal):not(.article-related-tools) h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.related-tools:not(.related-tools-portal):not(.article-related-tools) .related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-tools:not(.related-tools-portal):not(.article-related-tools) .related-tool-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}
.related-tools:not(.related-tools-portal):not(.article-related-tools) .related-tool-card h3 {
  font-size: 0.92rem;
  margin: 0 0 6px;
}
.related-tools:not(.related-tools-portal):not(.article-related-tools) .related-tool-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.4;
}

/* Artigos: ferramentas relacionadas dentro do .article-page (mesmo recuo do texto) */
.article-page .article-related-tools,
.article-shell > .article-related-tools {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.article-shell > .article-related-tools {
  margin: 0;
  padding: 32px 24px 0;
}
.article-page .article-related-tools h2,
.article-shell > .article-related-tools h2 {
  font-size: 1.35rem;
  margin: 0 0 16px;
}
.article-page .article-related-tools .related-tools-grid,
.article-shell > .article-related-tools .related-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.article-page .article-related-tools .related-tool-card,
.article-shell > .article-related-tools .related-tool-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.article-page .article-related-tools .related-tool-card h3,
.article-shell > .article-related-tools .related-tool-card h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.article-page .article-related-tools .related-tool-card p,
.article-shell > .article-related-tools .related-tool-card p {
  font-size: 0.94rem;
  margin: 0 0 12px;
  line-height: 1.55;
}
.article-page .article-related-tools .related-tool-card .button,
.article-shell > .article-related-tools .related-tool-card .button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 919px) {
  .tool-card-portal .tool-layout-salary,
  .tool-card-portal .tool-layout-mortgage {
    grid-template-columns: 1fr;
  }
  .tool-card-portal .panel-form-compact {
    position: static;
  }
  .clt-pj-card--simple .clt-pj-form-panel {
    padding-bottom: 4px;
  }
  .clt-pj-card--simple .clt-pj-form-simple label {
    margin-bottom: 0;
  }
  .clt-pj-card--simple .clt-pj-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 8px;
    padding-top: 10px;
    background: linear-gradient(to top, var(--surface) 80%, transparent);
  }
  .clt-pj-card--simple .clt-pj-form-actions .button.primary {
    flex: 1;
    min-height: 44px;
    font-size: 1rem;
  }
  .clt-pj-card--simple .clt-pj-resumo {
    scroll-margin-top: 12px;
  }
  .clt-pj-card--simple .mortgage-kpi-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clt-pj-card--simple .clt-pj-chart-hero {
    height: clamp(240px, 58vw, 320px);
    min-height: 240px;
  }
  .clt-pj-card--simple .clt-pj-pro-cta-list {
    grid-template-columns: 1fr;
  }
  .clt-pj-card--simple .clt-pj-pro-cta-button,
  .clt-pj-card--simple .clt-pj-pro-cta-card .button.primary {
    width: 100%;
    min-height: 44px;
  }
  .clt-pj-primary-result {
    scroll-margin-top: 12px;
  }
  .clt-pj-patrimony-hero-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .clt-pj-card--simple .clt-pj-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .clt-pj-card--simple .clt-pj-form-actions .button {
    width: 100%;
  }
  .clt-pj-card--simple .clt-pj-equivalence-value {
    font-size: clamp(1.1rem, 5.5vw, 1.45rem);
  }
  .clt-pj-card--simple .clt-pj-feature-table thead {
    display: none;
  }
  .clt-pj-card--simple .clt-pj-feature-table tbody tr {
    display: block;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .clt-pj-card--simple .clt-pj-feature-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border: none;
    font-size: 0.8125rem;
  }
  .clt-pj-card--simple .clt-pj-feature-table tbody td:first-child {
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .clt-pj-card--simple .clt-pj-feature-table tbody td:not(:first-child)::before {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
  }
  .clt-pj-card--simple .clt-pj-feature-table tbody td:nth-child(2)::before {
    content: "CLT";
  }
  .clt-pj-card--simple .clt-pj-feature-table tbody td:nth-child(3)::before {
    content: "PJ";
  }
}

.amort-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.amort-quick-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  width: 100%;
  margin-bottom: 2px;
}
.amort-quick-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
}
.tool-page-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.tool-page-benefits li {
  margin: 0;
}
.tool-card-mortgage .mortgage-hero--primary {
  padding: 14px 16px;
  margin-bottom: 10px;
}
.tool-card-mortgage .mortgage-hero--primary .salary-hero-value {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.05;
}
.tool-card-mortgage .inflacao-hero-delta {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.inflacao-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  width: 100%;
}
.inflacao-quick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.inflacao-quick-card:hover,
.inflacao-quick-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  transform: translateY(-1px);
  outline: none;
}
.inflacao-quick-card strong {
  font-size: 1rem;
  color: var(--text);
}
.inflacao-quick-card span {
  font-size: 0.82rem;
  color: var(--muted);
}
.inflacao-quick-card small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
.inflacao-data-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.inflacao-data-list li {
  font-size: 0.92rem;
  color: var(--text);
}
.popular-searches {
  margin-top: 32px;
}
.popular-searches h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}
.popular-searches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 920px) {
  .popular-searches-grid {
    grid-template-columns: 1fr;
  }
}
.popular-search-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease;
}
.popular-search-card:hover,
.popular-search-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  outline: none;
}
.popular-search-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}
.popular-search-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}
.amort-compare-zone {
  margin: 10px 0;
}
.amort-compare-table td,
.amort-compare-table th {
  vertical-align: middle;
}
.amort-row-changed .amort-cell-changed {
  background: color-mix(in srgb, #059669 12%, var(--surface));
  color: #047857;
}
.amort-row-changed .amort-cell-changed strong {
  color: #047857;
}

.about-prose {
  display: grid;
  gap: 12px;
  max-width: 72ch;
}
.about-prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.about-prose a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.about-prose a:hover {
  text-decoration: underline;
}
.institutional-content {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}
.institutional-dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.institutional-dl div {
  display: grid;
  gap: 4px;
}
.institutional-dl dt {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.institutional-dl dd {
  margin: 0;
  font-size: 1rem;
}
.institutional-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.institutional-contact-layout {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
}
.contact-card h3 {
  margin-top: 20px;
  font-size: 1.05rem;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.contact-email-link:hover {
  text-decoration: underline;
}
.contact-email-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.95rem;
}
.contact-form-panel .contact-success {
  padding: 16px 0 0;
}
.contact-form-panel .contact-success[hidden],
.contact-form-panel [data-contact-form-el][hidden] {
  display: none !important;
}
.contact-form-panel [data-contact-error] {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #dc2626 35%, var(--line));
  background: color-mix(in srgb, #dc2626 8%, var(--surface));
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.92rem;
}
.contact-form-panel [data-contact-error][hidden] {
  display: none !important;
}
.contact-form-panel .contact-success p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary-strong);
}
.contact-lgpd {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .header-grid { grid-template-columns: auto auto auto; }
  .menu-toggle { display: inline-block; justify-self: end; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 0 0 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.is-open { display: flex; }
  .nav--enhanced {
    gap: 12px;
  }
  .nav-item--dropdown {
    width: 100%;
  }
  .nav-dropdown-trigger {
    width: 100%;
    text-align: left;
    padding: 4px 0;
  }
  .nav-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    padding: 12px;
  }
  .nav-dropdown::before {
    display: none;
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid, .tool-layout, .split, .footer-grid, .footer-expanded, .trust-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 10px; }
  .hero-media { min-height: 260px; }
  .panel:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-grid, .articles-grid, .milestone-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-grid { gap: 10px; }
  .brand small { display: none; }
  h1 { font-size: 2.35rem; }
  .form-grid, .result-grid, .articles-grid, .milestone-grid, .trust-metrics { grid-template-columns: 1fr; }
  .institutional-contact-layout { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .chart-box, .chart-box-large { height: 260px; }
  .button { width: 100%; text-align: center; }
  .tool-actions .button, .form-actions .button { flex: 1 1 150px; }
}

/* ── Home V2 ── */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-objectives-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.objective-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}
.objective-icon,
.journey-icon,
.benefit-icon,
.featured-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.objective-card h3,
.benefit-card h3 {
  margin: 0;
  font-size: 1.1rem;
}
.objective-tools {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
  flex: 1;
}
.objective-card .button {
  margin-top: auto;
  align-self: flex-start;
}
.home-stats-band {
  padding: 22px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.home-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 70%, var(--surface));
  box-shadow: 0 1px 2px rgba(21, 32, 28, .04);
}
.home-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 14%, var(--bg-soft));
  color: var(--primary);
  font-size: 1rem;
}
.home-stat-value {
  display: block;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.home-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.featured-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}
.home-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  /* Default = Popular (azul suave) */
  background: color-mix(in srgb, var(--chart-blue) 12%, var(--bg-soft));
  color: color-mix(in srgb, var(--chart-blue) 78%, var(--text));
  border: 1px solid color-mix(in srgb, var(--chart-blue) 22%, var(--line));
}
.home-badge--primary {
  /* Mais utilizado (verde) */
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-soft));
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
}
.home-badge--accent {
  /* Novo (laranja discreto) */
  background: color-mix(in srgb, #ea580c 12%, var(--bg-soft));
  color: color-mix(in srgb, #ea580c 72%, var(--text));
  border-color: color-mix(in srgb, #ea580c 22%, var(--line));
}
.home-section-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.journey-card .journey-icon {
  margin-bottom: 2px;
}
.home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
/* ——— Componentes reutilizáveis: dashboards e vitrines ——— */
.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(21, 32, 28, .04);
}
.dashboard-card-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dashboard-card-grid {
  display: grid;
  gap: 10px;
}
.dashboard-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--soft) 70%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.mini-stat--hero {
  padding: 14px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
}
.mini-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}
.mini-stat-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.mini-stat--hero .mini-stat-value {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.progress-indicator {
  display: grid;
  gap: 8px;
}
.progress-indicator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.progress-indicator-label,
.progress-indicator-value {
  font-size: 0.8rem;
  font-weight: 700;
}
.progress-indicator-label {
  color: var(--muted);
}
.progress-indicator-value {
  color: var(--primary);
}
.progress-indicator-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 65%, var(--soft));
  overflow: hidden;
}
.progress-indicator-bar {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #34d399));
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.progress-indicator-bar--fire {
  background: linear-gradient(90deg, var(--chart-blue), color-mix(in srgb, var(--chart-blue) 65%, #60a5fa));
  box-shadow: 0 0 12px color-mix(in srgb, var(--chart-blue) 30%, transparent);
}
.feature-badge-grid {
  display: grid;
  gap: 8px;
}
.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  min-height: 100%;
  min-width: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
}
.showcase-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 32px;
}
.showcase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  font-size: 1.35rem;
  line-height: 1;
}
.showcase-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.showcase-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}
.showcase-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.93rem;
}
.showcase-benefits li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.45;
}
.showcase-benefits li::before {
  content: "✔";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.showcase-card-body .button.primary {
  margin-top: auto;
  align-self: flex-start;
}
.showcase-dashboard {
  display: flex;
  align-items: stretch;
  padding: 16px;
  min-width: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 4%, var(--soft)) 0%, var(--bg) 100%);
  border-left: 1px solid var(--line);
}
.showcase-dashboard .dashboard-card {
  flex: 1;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.showcase-dashboard .dashboard-card-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.showcase-dashboard .progress-indicator-track {
  height: 9px;
}
.showcase-dashboard .progress-indicator-value {
  font-weight: 800;
}
.showcase-dashboard .dashboard-card-grid--3 {
  grid-template-columns: 1fr;
  gap: 8px;
}
.showcase-dashboard .mini-stat:not(.mini-stat--hero) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
}
.showcase-dashboard .mini-stat:not(.mini-stat--hero) .mini-stat-label {
  font-size: 0.72rem;
  flex: 1;
  min-width: 0;
}
.showcase-dashboard .mini-stat:not(.mini-stat--hero) .mini-stat-value {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.showcase-dashboard .mini-stat--hero .mini-stat-value {
  font-size: 1.15rem;
}
.showcase-dashboard .feature-badge {
  font-size: 0.76rem;
  padding: 8px 10px;
}
.home-history-split {
  align-items: start;
}
.home-history-panel {
  display: grid;
  gap: 14px;
}
.history-summary {
  padding: 18px;
}
.history-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}
.history-metrics div {
  display: grid;
  gap: 4px;
}
.history-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.history-metrics dd {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}
.history-last {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.history-list:not(.is-expanded) .history-item:nth-child(n+4) {
  display: none;
}
.article-card--editorial {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  min-height: 100%;
}
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.article-card-category {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}
.article-card-reading {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.article-card--editorial h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}
.article-card--editorial p {
  flex: 1;
}
.article-card--editorial .button {
  align-self: flex-start;
  margin-top: auto;
}
.home-articles-grid {
  grid-template-columns: repeat(4, 1fr);
}
.related-tools-lead {
  margin: -6px 0 16px;
  color: var(--muted);
}
.footer-home.footer-expanded {
  grid-template-columns: 1.5fr repeat(4, 1fr);
}
.journey-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .showcase-card {
    grid-template-columns: 1fr;
  }
  .showcase-dashboard {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1100px) {
  .home-showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-card {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .dashboard-card-grid--3 {
    grid-template-columns: 1fr;
  }
  .home-objectives-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-articles-grid,
  .home-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-home.footer-expanded {
    grid-template-columns: 1fr 1fr;
  }
  .journey-grid,
  .featured-simulators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .home-showcase-grid,
  .home-objectives-grid,
  .journey-grid,
  .featured-simulators-grid,
  .home-benefits-grid,
  .home-articles-grid,
  .home-stats-grid,
  .history-metrics {
    grid-template-columns: 1fr;
  }
  .showcase-card {
    grid-template-columns: 1fr;
  }
  .showcase-dashboard {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px;
  }
  .showcase-card-body {
    padding: 22px 20px 24px;
  }
  .dashboard-card {
    padding: 18px;
  }
  .hero-benefits {
    flex-direction: column;
    gap: 6px;
  }
}

@media print {
  .site-header, .ad-slot, .hero, .site-footer, .tool-actions, .articles-grid, .history-list,
  .integration-actions, .menu-toggle, .theme-toggle, .form-actions, .rescisao-seo .toc,
  .related-tools, .salary-faq, .toast, .result-skeleton { display: none !important; }
  body { background: #fff; color: #111; }
  .tool-card, .panel { box-shadow: none; border: 1px solid #ddd; }
  .tool-layout, .tool-layout-salary { grid-template-columns: 1fr; }
  .panel-form-compact { display: none; }
  .highlight-box, .emergency-module, .chart-box { break-inside: avoid; }
}

/* --- AdSense remediation: author, hub editorial, cookies --- */
.author-box{margin:1.5rem 0 0;padding:1.15rem 1.2rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft, #f8fafc)}
.author-box-grid{display:flex;gap:0.9rem;align-items:flex-start}
.author-avatar{border-radius:50%;flex:0 0 auto}
.author-label{margin:0 0 0.25rem;font-size:0.85rem;letter-spacing:0.02em;text-transform:uppercase;opacity:0.75;color:var(--muted)}
.author-name{margin:0 0 0.2rem;font-size:1.05rem;font-weight:700}
.author-role{margin:0 0 0.65rem;font-size:0.95rem;opacity:0.9}
.author-bio{margin:0 0 0.55rem;line-height:1.55;font-size:0.95rem;color:var(--muted)}
.author-profile{display:flex;gap:1rem;align-items:flex-start;margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--panel, var(--surface))}
.author-profile img{flex:0 0 72px;border-radius:50%;width:72px;height:72px;object-fit:cover;background:#0f766e}
.author-profile > div{min-width:0;flex:1 1 16rem}
.author-profile--page{gap:1.5rem;padding:1.35rem 1.4rem;margin:0 0 0.5rem}
.author-profile--page img{flex:0 0 128px;width:128px;height:128px;max-width:128px}
.author-profile--page h1{margin:0.15rem 0 0.35rem;font-size:clamp(1.45rem, 2.5vw, 2rem);line-height:1.2}
.author-profile--page .author-role{margin:0 0 0.75rem;font-weight:650;color:var(--text)}
.author-profile--page p{margin:0 0 0.65rem;color:var(--muted);line-height:1.55}
.author-profile--page .legal-updated{margin:0.85rem 0 0;font-size:0.9rem}
.author-hero .author-profile--page{max-width:72ch}
.article-hub-category .about-prose{max-width:72ch}
.article-hub-category ul.about-prose{max-width:72ch}
.about-prose ul,
ul.about-prose{margin:0;padding-left:1.2rem;display:grid;gap:0.45rem}
.about-prose li{color:var(--muted);line-height:1.55}
.tool-eeat{margin:1.25rem 0}
.article-hero-figure{margin:1rem 0 1.5rem}
.article-hero-figure img{width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}
.article-hero-figure figcaption{margin-top:0.4rem;font-size:0.82rem;color:var(--muted)}
.hub-editorial{margin-bottom:1.5rem;padding:1.25rem 1.35rem}
.hub-editorial .lead{font-size:1.05rem}
.hub-editorial-section{margin-top:1.25rem}
.official-sources{margin:1.25rem 0}
.official-sources ul{margin:0.5rem 0 0;padding-left:1.1rem}
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:rgba(15,23,42,0.96);color:#f8fafc;padding:1rem}
.cookie-banner-inner{max-width:1100px;margin:0 auto;display:grid;gap:0.85rem}
.cookie-banner a{color:#6ee7b7}
.cookie-banner-actions{display:flex;flex-wrap:wrap;gap:0.5rem}
.cookie-banner-prefs{display:grid;gap:0.45rem}
.cookie-banner .button.subtle{background:#1e293b;color:#f8fafc;border-color:#334155}
@media (max-width:640px){
  .author-profile--page{flex-direction:column;align-items:center;text-align:center}
  .author-profile--page > div{flex-basis:auto}
}
@media (min-width:800px){.cookie-banner-inner{grid-template-columns:1fr auto;align-items:center}}
