:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(37, 99, 235, 0.12), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; color: var(--text); }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Topo / Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.brand img.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.brand span b {
  color: var(--primary);
  font-weight: 800;
}
.brand-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}
@media (max-width: 640px) {
  .brand-tag { display: none; }
}

.header-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.header-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- Hero acolhedor ---------- */
.hero {
  text-align: center;
  padding: 56px 0 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-pill span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #0f172a;
  max-width: 22ch;
  margin-inline: auto;
  letter-spacing: -0.03em;
}
.hero h1 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 58ch;
  margin: 16px auto 0;
  font-weight: 400;
}

/* ---------- Barra de busca simples ---------- */
.search-wrap {
  position: relative;
  max-width: 600px;
  margin: 32px auto 0;
}
.search-wrap svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 16px 20px 16px 54px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 999px;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.search-wrap input::placeholder {
  color: #94a3b8;
}
.search-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* ---------- Filtros em formato de pílulas claras ---------- */
.filters-section {
  padding-top: 10px;
  padding-bottom: 24px;
}
.filters-title {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip:hover {
  color: var(--primary);
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}
.chip[aria-pressed='true'] {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.4);
}
.filter-sep {
  width: 1px;
  background: #cbd5e1;
  margin: 6px 4px;
}

/* ---------- Grid de cartões de ferramentas ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
  padding-bottom: 80px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.8rem;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.card:hover .icon-tile {
  background: var(--primary-soft);
  border-color: #bfdbfe;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
  flex: 1;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* ---------- Badges claras e amigáveis ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge.type-online {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}
.badge.type-download {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}
.badge.type-both {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.badge.status-soon {
  color: #b45309;
  background: var(--warning-soft);
  border-color: #fde68a;
}
.badge.status-beta {
  color: #4338ca;
  background: #eef2ff;
}
.badge.status-available {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 50px 0;
  font-size: 1.1rem;
}

/* ---------- Botões amigáveis ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}
.btn-primary {
  border: 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

/* ---------- Página interna da ferramenta ---------- */
.tool-page {
  padding: 48px 0 90px;
}
.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.breadcrumb-back:hover {
  color: var(--primary);
}
.tool-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.tool-hero .icon-tile {
  width: 80px;
  height: 80px;
  font-size: 2.6rem;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border-color: #bfdbfe;
}
.tool-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}
.tool-hero .lead {
  margin: 8px 0 0;
  color: var(--text-muted);
}
.tool-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tool-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 820px) {
  .tool-body { grid-template-columns: 1fr; }
}

.panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.panel p {
  color: #334155;
  margin: 0;
  font-size: 1.02rem;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #334155;
}
.features li::before {
  content: '✓';
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
}

.actions {
  display: grid;
  gap: 14px;
}
.dl-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.soon-box {
  text-align: center;
  padding: 24px 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px dashed #cbd5e1;
}
.soon-box strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #1e293b;
}

.related {
  margin-top: 56px;
}
.related h2 {
  margin-bottom: 20px;
}

/* ---------- Rodapé limpo ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 80vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
}
.big404 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
