/* Complemento exclusivo da vitrine Monarcha. Identidade base em /css/landing.css. */
/* Variáveis de cor usadas pelos componentes da vitrine. */
:root {
  --tool-panel: #1a1f27;
  --tool-panel-soft: #1f242c;
  --tool-line: rgba(255, 255, 255, 0.09);
  --tool-gold: #ffd700;
}
.tools-body {
  min-height: 100vh;
  background: #14171c;
  color: #f8fafc;
}
.tools-body [hidden] {
  display: none !important;
}
.tools-body .footer-col {
  min-width: 0;
}
.tools-body .footer-col-blog {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tools-body .footer-col-blog a {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
/* Ajustes da navegação e dos links da marca. */
.tool-site-nav {
  z-index: 100;
}
.tool-site-nav .nav-logo {
  text-decoration: none;
}
.tool-site-nav .nav-links a[aria-current="page"] {
  color: #ffd700;
  font-weight: 700;
}
.tool-nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #14171c !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  text-decoration: none;
  box-shadow: 0 7px 20px #ffd70032;
}
.tool-nav-cta:hover {
  transform: translateY(-1px);
  color: #14171c !important;
}
/* Largura, respiro e caminho de navegação das páginas. */
.tools-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 68px;
}
.tool-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 10px 0 24px;
}
.tool-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}
.tool-breadcrumb a:hover {
  color: #ffd700;
}
.tool-breadcrumb span:last-child {
  color: #fcd34d;
}
/* Apresentação do catálogo. */
.tools-hero {
  text-align: center;
  max-width: 850px;
  margin: 38px auto 54px;
}
.tools-hero .hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  margin: 14px 0 18px;
}
.tools-hero .hero-subtitle {
  max-width: 730px;
  margin: 0 auto 20px;
  font-size: 1.06rem;
}
.tools-proof {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.83rem;
}
.tools-proof span:first-letter {
  color: #ffd700;
}
/* Cartões, filtros e estados da vitrine de ferramentas. */
.tools-directory {
  padding: 34px;
  background: linear-gradient(145deg, #1f242c, #1a1f27);
  border: 1px solid var(--tool-line);
  border-radius: 22px;
  box-shadow: 0 24px 60px #0003;
}
.tool-directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
.tool-directory-head h2,
.tools-trust h2,
.tools-cta h2,
.tool-bottom-links h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
}
.tool-directory-head .section-eyebrow,
.tool-bottom-links .section-eyebrow {
  margin-bottom: 9px;
}
.tool-directory-head p {
  color: #94a3b8;
  font-size: 0.82rem;
  max-width: 270px;
  text-align: right;
  line-height: 1.55;
}
.tool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tool-filters button {
  font:
    600 0.82rem Inter,
    Arial,
    sans-serif;
  color: #cbd5e1;
  background: #14171c;
  border: 1px solid #ffffff18;
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  transition: 0.2s;
}
.tool-filters button:hover,
.tool-filters button[aria-pressed="true"] {
  color: #14171c;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border-color: #ffd700;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.tool-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  background: linear-gradient(145deg, #14171cdd, #14171c88);
  border: 1px solid #ffffff13;
  border-radius: 15px;
  text-decoration: none;
  color: #f8fafc;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
  overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: #ffd70070;
  box-shadow: 0 14px 32px #0003;
}
.tool-card-icon,
.tool-explanation-card .tool-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  color: #fcd34d;
  background: #ffd70012;
  border: 1px solid #ffd70024;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.tool-card-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: #fcd34d;
  margin-bottom: 7px;
}
.tool-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #f8fafc;
}
.tool-card p {
  font-size: 0.81rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 18px;
}
.tool-card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd700;
}
.tool-card-link b {
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.tool-card:hover .tool-card-link b {
  transform: translateX(4px);
}
.tool-empty {
  padding: 26px;
  color: #94a3b8;
  text-align: center;
}
/* Bloco de privacidade e confiança. */
.tools-trust {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 30px;
  margin: 24px 0 44px;
  border: 1px solid #4ade8030;
  background: linear-gradient(120deg, #4ade800b, #1a1f27 55%);
  border-radius: 16px;
}
.trust-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  color: #4ade80;
  border-radius: 50%;
  background: #4ade8016;
  font-size: 1.3rem;
}
.tools-trust h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  margin: 2px 0 7px;
}
.tools-trust p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 800px;
}
/* Chamadas para ação da vitrine. */
.tools-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  margin: 0 0 38px;
  border: 1px solid #ffd70034;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top left, #ffd7000e, transparent 65%), #1a1f27;
}
.tools-cta .section-eyebrow {
  margin: 0 0 9px;
}
.tools-cta h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.tools-cta p {
  color: #94a3b8;
  font-size: 0.87rem;
  line-height: 1.6;
  max-width: 560px;
}
.tools-cta-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: none;
}
.tools-cta-actions .btn-cta-primary,
.tools-cta-actions .btn-cta-ghost {
  font-size: 0.85rem;
  padding: 13px 17px;
  min-height: 46px;
}
.tool-related-links {
  padding: 4px 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}
.tool-related-links a,
.tool-explanation a {
  color: #fcd34d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #ffd70055;
  text-underline-offset: 3px;
}
.tool-related-links a:hover,
.tool-explanation a:hover {
  color: #ffd700;
}
/* Cabeçalho das páginas de ferramenta. */
.tool-page .tool-page-hero {
  text-align: center;
  max-width: 830px;
  margin: 16px auto 29px;
}
.tool-page-hero .section-eyebrow {
  margin-bottom: 11px;
}
.tool-page-hero .hero-title {
  font-size: clamp(2rem, 4.7vw, 3.15rem);
  margin: 8px 0 14px;
}
.tool-page-hero .hero-subtitle {
  font-size: 1rem;
  max-width: 710px;
  margin: 0 auto;
  color: #cbd5e1;
}
/* Formulário e campos das calculadoras. */
.calculator-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 31px;
  background: linear-gradient(145deg, #1f242c, #1a1f27);
  border: 1px solid #ffffff12;
  border-radius: 20px;
  box-shadow: 0 24px 65px #0004;
}
.calculator-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 19px;
  border-bottom: 1px solid #ffffff10;
  margin-bottom: 23px;
}
.tool-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 47px;
  height: 47px;
  background: #ffd70013;
  color: #fcd34d;
  border: 1px solid #ffd70031;
  border-radius: 14px;
  font-size: 1.45rem;
}
.tool-kicker {
  display: block;
  color: #fcd34d;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.calculator-panel-head h2,
.result-heading h2 {
  font-size: 1.08rem;
  margin-top: 5px;
  color: #f8fafc;
}
.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #4ade800c;
  border: 1px solid #4ade8029;
  color: #cbd5e1;
  font-size: 0.7rem;
  white-space: nowrap;
}
.local-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.tool-fields {
  display: grid;
  gap: 16px;
}
.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 13px;
}
.tool-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #cbd5e1;
  font-size: 0.79rem;
  font-weight: 600;
}
.tool-field > span:first-child {
  line-height: 1.45;
}
.tool-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tool-input-wrap i {
  position: absolute;
  left: 13px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: normal;
  pointer-events: none;
}
.tool-input-wrap:has(i:first-child) input {
  padding-left: 37px;
}
.tool-input-wrap:has(i:last-child) input {
  padding-right: 35px;
}
.tool-input-wrap i:last-child {
  left: auto;
  right: 13px;
}
.tool-field input,
.tool-field select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  background: #14171c;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  color: #f8fafc;
  font:
    500 0.92rem Inter,
    Arial,
    sans-serif;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.tool-field input::placeholder {
  color: #64748b;
}
.tool-field input:focus,
.tool-field select:focus {
  border-color: #ffd70088;
  box-shadow: 0 0 0 3px #ffd70012;
}
.tool-field select {
  appearance: auto;
  color-scheme: dark;
}
.tool-help {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 2px 0 0;
}
.tool-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.tool-form-actions .btn-cta-primary {
  padding: 13px 22px;
  font-size: 0.91rem;
  min-height: 47px;
}
.tool-form-actions .btn-cta-ghost {
  padding: 12px 16px;
  font-size: 0.82rem;
  min-height: 47px;
}
.tool-form-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.tool-error {
  padding: 12px 14px;
  margin-top: 15px;
  color: #fecaca;
  background: #f8717110;
  border: 1px solid #f8717140;
  border-radius: 9px;
  font-size: 0.81rem;
  line-height: 1.55;
}
.session-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 18px 1px 0;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.55;
}
.session-hint span {
  color: #fcd34d;
  font-size: 0.95rem;
}
/* Cartão de resultado, indicadores e tabelas. */
.tool-result {
  margin-top: 25px;
  padding: 21px;
  background: #14171c;
  border: 1px solid #ffd70035;
  border-radius: 14px;
  animation: tool-appear 0.25s ease-out;
}
.tool-result[hidden] {
  display: none;
}
@keyframes tool-appear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.result-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.result-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #4ade8015;
  color: #4ade80;
  font-weight: 800;
}
.result-heading h2 {
  font-size: 1rem;
  margin-top: 4px;
}
.result-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}
.result-kpi {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  background: #1a1f27;
}
.result-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 0.69rem;
  line-height: 1.5;
  margin-bottom: 7px;
}
.result-kpi strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.result-kpi.is-highlight {
  border-color: #ffd70055;
  background: #ffd7000b;
}
.result-kpi.is-highlight strong {
  color: #ffd700;
}
.result-insight {
  margin: 13px 0 0;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.65;
}
.result-insight strong {
  color: #fcd34d;
}
.result-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
  min-width: 470px;
}
.result-table th,
.result-table td {
  text-align: right;
  padding: 10px 9px;
  border-bottom: 1px solid #ffffff0c;
  color: #cbd5e1;
}
.result-table th:first-child,
.result-table td:first-child {
  text-align: left;
}
.result-table th {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
}
.tool-result-note {
  margin-top: 15px;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.5;
}
.result-progress {
  height: 9px;
  background: #ffffff10;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 11px;
}
.result-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #fcd34d);
  border-radius: 99px;
  transition: width 0.4s;
}
/* Texto explicativo e recomendações relacionadas. */
.tool-explanation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 30px;
  align-items: center;
  max-width: 880px;
  margin: 46px auto 36px;
}
.tool-explanation .section-eyebrow {
  margin-bottom: 8px;
}
.tool-explanation h2 {
  font:
    800 clamp(1.45rem, 3.4vw, 1.95rem) / 1.2 "Playfair Display",
    Georgia,
    serif;
  color: #f8fafc;
  margin: 0 0 13px;
}
.tool-explanation p {
  color: #94a3b8;
  font-size: 0.87rem;
  line-height: 1.75;
  margin: 8px 0;
}
.tool-explanation-card {
  padding: 20px;
  background: linear-gradient(140deg, #1f242c, #1a1f27);
  border: 1px solid #ffffff12;
  border-radius: 14px;
}
.tool-explanation-card .tool-card-icon {
  margin-bottom: 12px;
}
.tool-explanation-card strong {
  display: block;
  color: #fcd34d;
  font-size: 0.89rem;
}
.tool-explanation-card p {
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.6;
  margin-top: 7px;
}
.tool-bottom-links {
  max-width: 880px;
  margin: 0 auto 32px;
  padding: 21px 0;
  border-top: 1px solid #ffffff12;
  border-bottom: 1px solid #ffffff12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tool-bottom-links h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.98rem;
}
.tool-sibling-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-sibling-links a {
  padding: 8px 11px;
  color: #cbd5e1;
  text-decoration: none;
  background: #1a1f27;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.4;
}
.tool-sibling-links a:hover {
  color: #ffd700;
  border-color: #ffd70055;
}
/* Botões e estado das ações de compartilhamento. */
.tool-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 19px 15px;
  margin: 27px auto 8px;
  border: 1px solid #ffffff0e;
  border-radius: 14px;
  background: #1a1f2780;
}
.tool-share > span:first-child {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}
.share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: #14171c;
  border: 1px solid #ffffff17;
  border-radius: 9px;
  text-decoration: none;
  font:
    600 0.73rem Inter,
    Arial,
    sans-serif;
  cursor: pointer;
  transition: 0.2s;
}
.share-action:hover {
  color: #f8fafc;
  border-color: #ffd70070;
  transform: translateY(-1px);
}
.share-whatsapp {
  color: #4ade80;
  border-color: #4ade8038;
}
.share-whatsapp:hover {
  color: #4ade80;
  border-color: #4ade80;
}
.share-status {
  flex-basis: 100%;
  text-align: center;
  color: #4ade80;
  font-size: 0.73rem;
}
.share-native {
  display: none;
}
.tool-page-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.tool-page-cta > p {
  flex-basis: 100%;
  text-align: center;
  color: #94a3b8;
  font-size: 0.81rem;
  margin-bottom: 3px;
}
.tool-page-cta .btn-cta-primary,
.tool-page-cta .btn-cta-ghost {
  font-size: 0.81rem;
  padding: 11px 16px;
  min-height: 43px;
}
/* Controles dinâmicos do simulador de dívidas. */
.debt-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.81rem;
  font-weight: 700;
}
.tool-add-row {
  border: 1px solid #ffd70040;
  background: #ffd7000b;
  color: #fcd34d;
  padding: 8px 11px;
  border-radius: 8px;
  font:
    600 0.75rem Inter,
    Arial,
    sans-serif;
  cursor: pointer;
}
.tool-add-row:hover {
  background: #ffd70018;
}
.debt-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr 30px;
  gap: 9px;
  align-items: end;
  padding: 14px 37px 14px 13px;
  border: 1px solid #ffffff11;
  border-radius: 11px;
  background: #14171c;
}
.debt-row .tool-field {
  font-size: 0.7rem;
}
.debt-row .tool-field input {
  min-height: 43px;
  font-size: 0.82rem;
}
.debt-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f8717112;
  color: #fca5a5;
  font-size: 1.2rem;
  cursor: pointer;
}
.debt-remove:hover {
  background: #f8717126;
}
.tool-live {
  display: block;
}
.tool-site-nav .nav-links {
  gap: 21px;
}
/* Ajustes de layout para telas médias. */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-directory {
    padding: 25px;
  }
  .tool-directory-head {
    align-items: flex-start;
  }
  .tool-site-nav .nav-links {
    gap: 12px;
  }
  .tool-site-nav .nav-links a {
    font-size: 0.85rem;
  }
  .tool-nav-cta {
    padding: 10px 12px;
  }
  .debt-row {
    grid-template-columns: 1fr 1.2fr 1fr 1.2fr 30px;
  }
}
/* Menu móvel e layout para tablets. */
@media (max-width: 768px) {
  .tool-site-nav .nav-hamburger {
    display: flex;
  }
  .tool-site-nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 330px;
    height: 100dvh;
    background: linear-gradient(180deg, #1f242c, #14171c);
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 80px 23px 30px;
    transition: right 0.3s ease;
    box-shadow: -8px 0 30px #0008;
    border-left: 1px solid #ffd7001a;
    z-index: 1000;
  }
  .tool-site-nav .nav-links.open {
    right: 0;
  }
  .tool-site-nav .nav-links a,
  .tool-site-nav .nav-links button {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 13px 15px;
    font-size: 0.96rem;
    text-align: left;
    border-radius: 10px;
  }
  .tool-site-nav .nav-links a:hover {
    background: #ffd7000d;
  }
  .tool-site-nav .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #0009;
    backdrop-filter: blur(3px);
    z-index: 999;
  }
  .tool-site-nav .nav-overlay.active {
    display: block;
  }
  .tool-site-nav .nav-logo {
    z-index: 1001;
  }
  .tool-site-nav .nav-container {
    padding: 12px 16px;
  }
}
/* Composição e espaçamento em celulares. */
@media (max-width: 600px) {
  .tools-shell {
    width: calc(100% - 30px);
    padding-top: 12px;
  }
  .tools-hero {
    margin: 24px auto 34px;
  }
  .tools-hero .hero-title {
    font-size: 2.25rem;
    line-height: 1.12;
    letter-spacing: -0.8px;
  }
  .tools-hero .hero-subtitle {
    font-size: 0.93rem;
    line-height: 1.6;
  }
  .tools-proof {
    gap: 9px 15px;
    font-size: 0.7rem;
  }
  .tools-directory {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .tool-directory-head {
    display: block;
  }
  .tool-directory-head p {
    margin-top: 8px;
    text-align: left;
    font-size: 0.75rem;
  }
  .tool-filters {
    gap: 6px;
  }
  .tool-filters button {
    font-size: 0.69rem;
    padding: 8px 10px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tool-card {
    min-height: 0;
    padding: 17px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    column-gap: 13px;
    align-items: center;
  }
  .tool-card-icon {
    grid-row: 1/4;
    margin: 0;
  }
  .tool-card-category {
    grid-column: 2;
    font-size: 0.58rem;
    margin: 0;
  }
  .tool-card h3 {
    grid-column: 2;
    align-self: end;
    font-size: 0.9rem;
    margin: 4px 0;
  }
  .tool-card p {
    grid-column: 2;
    margin: 0;
    font-size: 0.75rem;
  }
  .tool-card-link {
    grid-column: 3;
    grid-row: 1/4;
    align-self: center;
    writing-mode: vertical-rl;
    gap: 6px;
    font-size: 0.68rem;
  }
  .tool-card-link b {
    writing-mode: horizontal-tb;
  }
  .tools-trust {
    padding: 19px 17px;
    margin: 18px 0 32px;
    gap: 12px;
  }
  .tools-trust p {
    font-size: 0.77rem;
  }
  .tools-cta {
    display: block;
    padding: 23px 19px;
  }
  .tools-cta h2 {
    font-size: 1.3rem;
  }
  .tools-cta p {
    font-size: 0.8rem;
  }
  .tools-cta-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }
  .tools-cta-actions .btn-cta-primary,
  .tools-cta-actions .btn-cta-ghost {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.74rem;
  }
  .tool-page .tool-page-hero {
    margin: 5px auto 22px;
  }
  .tool-page-hero .hero-title {
    font-size: 2rem;
    line-height: 1.13;
  }
  .tool-page-hero .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .calculator-panel {
    padding: 20px 15px;
    border-radius: 16px;
  }
  .calculator-panel-head {
    gap: 9px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
  .tool-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .calculator-panel-head h2 {
    font-size: 0.98rem;
  }
  .local-pill {
    font-size: 0.61rem;
    padding: 7px 8px;
    gap: 5px;
  }
  .tool-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .tool-field {
    font-size: 0.71rem;
  }
  .tool-field input,
  .tool-field select {
    min-height: 45px;
    padding: 10px;
    font-size: 0.83rem;
  }
  .tool-input-wrap:has(i:first-child) input {
    padding-left: 31px;
  }
  .tool-form-actions {
    gap: 8px;
  }
  .tool-form-actions .btn-cta-primary {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.78rem;
  }
  .tool-form-actions .btn-cta-ghost {
    padding: 11px 12px;
    font-size: 0.72rem;
  }
  .result-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .result-kpi {
    padding: 11px;
  }
  .result-kpi span {
    font-size: 0.64rem;
  }
  .result-kpi strong {
    font-size: 0.85rem;
  }
  .result-insight {
    font-size: 0.76rem;
  }
  .tool-explanation {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px auto 26px;
  }
  .tool-explanation h2 {
    font-size: 1.5rem;
  }
  .tool-explanation p {
    font-size: 0.8rem;
  }
  .tool-explanation-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 14px;
  }
  .tool-explanation-card .tool-card-icon {
    grid-row: 1/3;
    width: 38px;
    height: 38px;
    margin: 0;
  }
  .tool-explanation-card p {
    margin: 0;
  }
  .tool-bottom-links {
    display: block;
    padding: 18px 0;
  }
  .tool-bottom-links h2 {
    margin-bottom: 10px;
  }
  .tool-sibling-links {
    justify-content: flex-start;
  }
  .tool-sibling-links a {
    font-size: 0.68rem;
  }
  .tool-share {
    gap: 7px;
    padding: 15px 8px;
  }
  .tool-share > span:first-child {
    flex-basis: 100%;
    text-align: center;
  }
  .share-action {
    font-size: 0.68rem;
    padding: 8px 9px;
  }
  .share-native {
    display: inline-flex;
  }
  .tool-page-cta {
    gap: 8px;
  }
  .tool-page-cta .btn-cta-primary,
  .tool-page-cta .btn-cta-ghost {
    flex: 1;
    padding: 10px 9px;
    font-size: 0.72rem;
  }
  .debt-list-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .debt-row {
    grid-template-columns: 1fr 1fr;
    padding: 13px 34px 13px 11px;
    gap: 10px;
  }
  .debt-remove {
    right: 6px;
    top: 6px;
  }
  .tools-body .footer-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .tools-body .footer-col-pages,
  .tools-body .footer-col-tools,
  .tools-body .footer-col-blog {
    text-align: left;
  }
  .tools-body .footer-col h4 {
    text-align: left;
  }
  .tools-body .footer-col-blog {
    display: flex;
  }
  .tool-related-links {
    font-size: 0.78rem;
  }
}
/* Ajustes para telas compactas. */
@media (max-width: 380px) {
  .tool-form-grid {
    grid-template-columns: 1fr;
  }
  .tool-page-hero .hero-title {
    font-size: 1.78rem;
  }
  .local-pill {
    font-size: 0;
  }
  .local-pill i {
    width: 8px;
    height: 8px;
  }
  .tools-proof {
    font-size: 0.64rem;
  }
  .tool-site-nav .nav-container {
    padding: 12px 13px;
  }
}
/* Respeita a preferência por movimento reduzido. */
@media (prefers-reduced-motion: reduce) {
  .tools-body * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Auditoria de layout: alinhamento, área de toque e navegação acessível. */
.tool-site-nav {
  background: #14171cf5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tool-form-grid {
  align-items: end;
}
.tool-field {
  justify-content: flex-end;
}
.tool-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.tool-field input::-webkit-inner-spin-button,
.tool-field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tool-mark,
.tool-card-icon,
.trust-icon,
.result-mark {
  flex-shrink: 0;
  line-height: 1;
}
.tool-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.share-action .tool-icon {
  width: 17px;
  height: 17px;
}
.tools-body .btn-cta-primary,
.tools-body .btn-cta-ghost {
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}
.tools-body :is(button, a, input, select):focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 4px;
}
.tool-error:focus {
  outline: 2px solid #f87171;
  outline-offset: 4px;
}
.tool-add-row,
.share-action,
.tool-filters button {
  min-height: 44px;
}
.debt-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-right: 66px;
}
.debt-remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  line-height: 1;
  right: 10px;
  top: 12px;
}
.result-kpi,
.tool-card,
.tool-explanation > div {
  min-width: 0;
}
.result-kpi strong,
.result-insight,
.share-status {
  overflow-wrap: anywhere;
}
#toolResult {
  scroll-margin-top: 90px;
}
@media (max-width: 900px) {
  .debt-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 60px 14px 16px;
  }
}
@media (max-width: 768px) {
  .tool-site-nav .nav-links {
    right: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 0.2s ease;
    padding-top: 80px;
  }
  .tool-site-nav .nav-links.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }
  .tool-site-nav .nav-links a {
    flex-shrink: 0;
  }
  .tool-site-nav .nav-links .tool-nav-cta:hover {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
  }
  .tool-site-nav .nav-hamburger {
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .tool-field input,
  .tool-field select,
  .debt-row .tool-field input {
    font-size: 16px;
  }
  .tool-form-grid,
  .debt-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .calculator-panel-head {
    flex-wrap: wrap;
  }
  .local-pill {
    font-size: 0.7rem;
    margin-left: 0;
  }
  .tool-card {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }
  .tool-card-link {
    grid-column: 2;
    grid-row: auto;
    writing-mode: horizontal-tb;
    justify-content: flex-start;
    margin-top: 12px;
  }
  .tool-card .tool-card-icon {
    grid-column: 1;
    grid-row: 1/4;
  }
  .tool-page-cta .btn-cta-primary,
  .tool-page-cta .btn-cta-ghost {
    flex-basis: 140px;
  }
}
@media (max-width: 380px) {
  .result-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .local-pill {
    margin-left: 49px;
  }
}
.tools-body .footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tools-body .footer-social .tool-icon {
  width: 18px;
  height: 18px;
}
