/* ==========================================================================
   YOUelétrica — Catálogo de Ferramentas (/ferramentas/)
   Estilos dedicados que integram a identidade visual global do ecossistema
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Interno Compacto
   -------------------------------------------------------------------------- */
.tools-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px) 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(127, 172, 255, 0.12);
}

.tools-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(89, 145, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 145, 255, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  background-position: center center;
  opacity: 0.12;
}

.tools-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 70% at 50% 30%,
      rgba(32, 103, 255, 0.18) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, #071124 0%, #050c19 100%);
}

.tools-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tools-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #7FACFF;
  margin-bottom: 12px;
  text-decoration: none;
}

.tools-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tools-breadcrumb a:hover {
  color: #FFFFFF;
}

.tools-breadcrumb svg {
  color: #475569;
}

.tools-hero-kicker {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7FACFF;
  margin-bottom: 14px;
}

.tools-hero-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 18px 0;
}

.tools-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #FFFFFF 30%, #7FACFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools-hero-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Container Amplo Exclusivo do Catálogo (/ferramentas/)
   -------------------------------------------------------------------------- */
.tools-shell-wide {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 3.2vw, 56px);
  margin-inline: auto;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Barra de Exploração (Busca & Filtros Centralizados) — Não Sticky
   -------------------------------------------------------------------------- */
.tools-filter-bar-wrap {
  position: relative;
  z-index: 5;
  background: #071124;
  border-bottom: 1px solid rgba(127, 172, 255, 0.12);
  padding: clamp(24px, 2.8vw, 36px) 0;
}

.tools-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.tools-search-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tools-search-box {
  position: relative;
  width: min(100%, 620px);
}

.tools-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7FACFF;
  pointer-events: none;
}

.tools-search-input {
  width: 100%;
  height: 50px;
  padding: 0 42px 0 48px;
  font-size: 1rem;
  font-family: inherit;
  color: #FFFFFF;
  background: rgba(13, 27, 54, 0.7);
  border: 1px solid rgba(127, 172, 255, 0.25);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tools-search-input::placeholder {
  color: #64748b;
  font-size: 1rem;
}

.tools-search-input:focus {
  border-color: #5991FF;
  background: rgba(13, 27, 54, 0.95);
  box-shadow: 0 0 0 3px rgba(89, 145, 255, 0.2);
}

.tools-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.tools-search-clear:hover {
  color: #FFFFFF;
}

.tools-search-clear.is-visible {
  display: flex;
}

/* Faixa de Filtros por Categoria Centralizada */
.tools-categories-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 29, 58, 0.6);
  border: 1px solid rgba(127, 172, 255, 0.18);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
  color: #FFFFFF;
  background: rgba(26, 48, 92, 0.65);
  border-color: rgba(127, 172, 255, 0.35);
}

.category-pill:focus-visible {
  outline: 2px solid #5991FF;
  outline-offset: 2px;
}

.category-pill.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(32, 103, 255, 0.85) 0%, rgba(30, 190, 255, 0.85) 100%);
  border-color: rgba(127, 172, 255, 0.6);
  box-shadow: 0 4px 16px rgba(32, 103, 255, 0.25);
}

.category-pill-count {
  display: inline-block;
  font-size: 1rem;
  padding: 1px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.category-pill.active .category-pill-count {
  background: rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   Estrutura Principal Desktop: Sidebar Sticky + Catálogo Amplo
   -------------------------------------------------------------------------- */
.tools-section {
  padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 110px) 0;
}

.tools-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
}

/* Navegação Lateral Sticky */
.tools-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 172, 255, 0.2) transparent;
}

.tools-sidebar::-webkit-scrollbar {
  width: 4px;
}

.tools-sidebar::-webkit-scrollbar-thumb {
  background: rgba(127, 172, 255, 0.2);
  border-radius: 4px;
}

.tools-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7FACFF;
  margin-bottom: 12px;
  padding-left: 12px;
}

.tools-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tools-sidebar-link:hover {
  color: #FFFFFF;
  background: rgba(127, 172, 255, 0.06);
}

.tools-sidebar-link.active {
  color: #FFFFFF;
  font-weight: 700;
  background: rgba(32, 103, 255, 0.12);
  border-left-color: #5991FF;
}

.tools-sidebar-num {
  font-size: 1rem;
  font-family: monospace;
  font-weight: 700;
  color: #7FACFF;
  opacity: 0.85;
}

.tools-sidebar-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Catálogo e Cards de Ferramentas (Layout com Grid Areas)
   -------------------------------------------------------------------------- */
.tools-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  min-width: 0;
}

.tool-card {
  --card-blue: 32, 103, 255;
  --card-cyan: 30, 190, 255;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  column-gap: clamp(32px, 3.5vw, 56px);
  row-gap: 0;
  align-items: center;
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: 24px;
  border: 1px solid rgba(var(--card-blue), 0.32);
  scroll-margin-top: 100px;

  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.045);

  background:
    radial-gradient(
      60% 120% at 50% 100%,
      rgba(30, 154, 255, 0.22) 0%,
      rgba(30, 115, 255, 0.12) 42%,
      transparent 72%
    ),
    radial-gradient(
      45% 90% at 0% 100%,
      rgba(72, 90, 255, 0.16) 0%,
      transparent 65%
    ),
    radial-gradient(
      45% 90% at 100% 100%,
      rgba(30, 190, 255, 0.16) 0%,
      transparent 65%
    ),
    linear-gradient(
      135deg,
      #061020 0%,
      #0a1936 40%,
      #0b234a 72%,
      #07172f 100%
    );

  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Linha Superior Sutil de Destaque */
.tool-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  z-index: 3;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(117, 169, 255, 0.55),
    transparent
  );
  opacity: 0.65;
}

.tool-card:hover {
  border-color: rgba(84, 151, 255, 0.52);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 0 55px rgba(46, 127, 255, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Coluna de Conteúdo Agrupada e Centralizada Verticalmente (Desktop)
   -------------------------------------------------------------------------- */
.tool-card__content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-width: 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Cards sem Mídia (#05 Verificar Modelagem e #15 Vista por Circuito)
   Mesma largura externa, mesmo fundo, mesma borda e alinhamento à esquerda
   -------------------------------------------------------------------------- */
.tool-card--no-media {
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.tool-card--no-media .tool-card__content {
  width: 100%;
  max-width: 900px;
  justify-content: flex-start;
  align-self: flex-start;
}

.tool-card--no-media .tool-card__intro {
  margin-bottom: 24px;
}

.tool-card--no-media .tool-card__actions {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Subdivisões do Conteúdo: Tipografia e Espaçamentos Precisos
   -------------------------------------------------------------------------- */
.tool-card__intro {
  margin-bottom: 24px;
  min-width: 0;
}

.tool-card-name {
  font-size: clamp(25px, 1.55vw, 28px);
  line-height: 1.15;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.tool-card-title {
  font-size: clamp(18px, 1.15vw, 20px);
  line-height: 1.35;
  font-weight: 600;
  color: #93c5fd;
  margin: 0;
}

.tool-card__copy {
  min-width: 0;
}

.tool-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 18px 0;
}

.tool-card-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(127, 172, 255, 0.2), transparent);
  margin: 0 0 18px 0;
}

.tool-card-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card-paragraphs p {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.tool-card__actions {
  margin-top: 24px;
}

.button-features {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(32, 103, 255, 0.25) 0%, rgba(30, 190, 255, 0.18) 100%);
  border: 1px solid rgba(127, 172, 255, 0.35);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  align-self: flex-start;
}

.button-features:hover {
  background: linear-gradient(135deg, rgba(32, 103, 255, 0.45) 0%, rgba(30, 190, 255, 0.3) 100%);
  border-color: rgba(127, 172, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(32, 103, 255, 0.25);
}

.button-features:active {
  transform: translateY(0);
}

.button-features svg {
  transition: transform 0.2s ease;
}

.button-features:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Mídia Ampla e 100% Estável (Zero Expansão / Zoom)
   -------------------------------------------------------------------------- */
.tool-card__media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 4;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #050d1a;
  border: 1px solid rgba(119, 170, 255, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.05);
  min-height: clamp(380px, 32vw, 560px);
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.tool-media-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(380px, 32vw, 560px);
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050d1a;
}

.tool-media-frame video,
.tool-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050d1a;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* --------------------------------------------------------------------------
   Modal Acessível de Recursos & Funcionalidades
   -------------------------------------------------------------------------- */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.tool-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 9, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.tool-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tool-modal {
  position: relative;
  width: min(840px, calc(100vw - 32px));
  max-height: min(85vh, 860px);
  background: linear-gradient(135deg, #071328 0%, #0a1b38 60%, #0b2246 100%);
  border: 1px solid rgba(127, 172, 255, 0.3);
  border-radius: 22px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(32, 103, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateY(16px) scale(0.98);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-modal-backdrop.is-open .tool-modal {
  transform: translateY(0) scale(1);
}

.tool-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px 28px;
  border-bottom: 1px solid rgba(127, 172, 255, 0.14);
  background: rgba(7, 17, 36, 0.85);
  backdrop-filter: blur(8px);
}

.tool-modal-header-copy {
  display: flex;
  flex-direction: column;
}

.tool-modal-kicker {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7FACFF;
  margin-bottom: 6px;
}

.tool-modal-name {
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.015em;
}

.tool-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(15, 29, 58, 0.6);
  border: 1px solid rgba(127, 172, 255, 0.25);
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.tool-modal-close:hover {
  color: #FFFFFF;
  background: rgba(32, 103, 255, 0.3);
  border-color: rgba(127, 172, 255, 0.5);
  transform: scale(1.05);
}

.tool-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 26px 30px 32px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 172, 255, 0.25) transparent;
}

.tool-modal-body::-webkit-scrollbar {
  width: 6px;
}

.tool-modal-body::-webkit-scrollbar-thumb {
  background: rgba(127, 172, 255, 0.25);
  border-radius: 6px;
}

.tool-modal-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-modal-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-modal-group + .tool-modal-group {
  padding-top: 20px;
  border-top: 1px solid rgba(127, 172, 255, 0.12);
}

.tool-modal-group-heading {
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-modal-group-text {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.tool-modal-group-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-modal-group-item {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.55;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tool-modal-group-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #38bdf8;
}

.tool-modal-empty {
  font-size: 1rem;
  color: #94a3b8;
  text-align: center;
  padding: 32px 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Estado Vazio (Nenhum resultado na busca)
   -------------------------------------------------------------------------- */
.tools-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background: rgba(13, 27, 54, 0.5);
  border: 1px dashed rgba(127, 172, 255, 0.25);
  border-radius: 20px;
}

.tools-empty-state.is-visible {
  display: flex;
}

.tools-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(127, 172, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7FACFF;
  margin-bottom: 16px;
}

.tools-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.tools-empty-desc {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 420px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsividade: Tablet (768px a 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tools-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tools-sidebar {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tool-card {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    column-gap: clamp(24px, 3vw, 36px);
    row-gap: 0;
    padding: clamp(24px, 3vw, 36px);
    align-items: center;
  }

  .tool-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
  }

  .tool-card__media {
    min-height: clamp(300px, 35vw, 480px);
    max-height: 520px;
  }

  .tool-media-frame {
    min-height: clamp(300px, 35vw, 480px);
    max-height: 520px;
  }
}

/* --------------------------------------------------------------------------
   Responsividade: Mobile (<= 767px)
   Nova ordem: Nome -> Título -> Mídia -> Descrição -> Divisor -> Parágrafos -> Botão
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .tools-hero {
    padding: 40px 0 28px 0;
  }

  .tools-filter-bar-wrap {
    padding: 16px 0;
  }

  .tools-search-row {
    display: none !important;
  }

  .tools-categories-scroll {
    justify-content: center;
  }

  .category-pill:not([data-category="todas"]) {
    display: none !important;
  }

  .tools-section {
    padding: 24px 0 64px 0;
  }

  .tool-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "copy"
      "actions";
    gap: 0;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .tool-card__content {
    display: contents;
  }

  /* Hierarquia precisa de espaçamentos */
  .tool-card__intro {
    grid-area: intro;
    margin-bottom: 22px; /* gap entre título e mídia: 20px a 24px */
  }

  .tool-card-name {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 12px 0; /* gap entre nome e título: 10px a 14px */
  }

  .tool-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
  }

  .tool-card__media {
    grid-area: media;
    width: 100%;
    min-height: 240px;
    max-height: 380px;
    margin-bottom: 22px; /* gap entre mídia e descrição: 20px a 24px */
  }

  .tool-media-frame {
    min-height: 240px;
    max-height: 380px;
  }

  .tool-card__copy {
    grid-area: copy;
    margin-bottom: 26px; /* gap entre textos e botão: 24px a 28px */
  }

  .tool-card-desc {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 20px 0; /* gap entre descrição e divisor: 18px a 22px */
  }

  .tool-card-divider {
    margin: 0 0 20px 0; /* gap entre divisor e textos: 18px a 22px */
  }

  .tool-card-paragraphs p {
    font-size: 16px;
    line-height: 1.55;
  }

  .tool-card__actions {
    grid-area: actions;
    margin-top: 0;
  }

  .button-features {
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }

  /* Cards sem mídia no mobile */
  .tool-card--no-media {
    display: block;
  }

  .tool-card--no-media .tool-card__content {
    display: block;
  }

  .tool-card--no-media .tool-card__intro {
    margin-bottom: 16px;
  }

  .tool-card--no-media .tool-card__copy {
    margin-bottom: 24px;
  }

  .tool-card--no-media .tool-card__actions {
    margin-top: 0;
  }

  .tool-modal {
    width: calc(100vw - 24px);
    max-height: 90vh;
    border-radius: 18px;
  }

  .tool-modal-header {
    padding: 20px 20px 16px 20px;
  }

  .tool-modal-body {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   Acessibilidade: Redução de Movimento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card__media img,
  .tool-card__media video,
  .category-pill,
  .tools-sidebar-link,
  .button-features,
  .tool-modal-backdrop,
  .tool-modal {
    transition: none !important;
    transform: none !important;
  }
}
