/* /tools hub — illustrated cards (homepage tool art + brand shell) */
.tools-page--hub {
  --hub-ink: #1a2e14;
  --hub-muted: #5a6b52;
  --hub-accent: var(--tc-accent, #77b624);
  --hub-accent-deep: var(--tc-accent-hover, #5f9419);
  max-width: 60rem;
  margin-inline: auto;
  padding: 2.75rem 1.25rem 4.75rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(119, 182, 36, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 15%, rgba(12, 48, 100, 0.06), transparent 50%),
    linear-gradient(180deg, #f7fbf2 0%, #ffffff 42%, #ffffff 100%);
}

.tools-hub__intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.35rem;
}

.tools-hub__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-accent-deep);
}

.tools-page--hub h1 {
  margin: 0 0 0.7rem;
  color: var(--hub-ink);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tools-hub__lead {
  margin: 0 auto;
  color: var(--hub-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.tools-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .tools-hub__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.tools-hub__grid > li {
  display: flex;
  margin: 0;
  border: none;
  min-height: 100%;
}

.tools-hub__grid > li + li {
  border-top: none;
}

.tools-hub__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--hub-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(119, 182, 36, 0.22);
  border-radius: 1.1rem;
  box-shadow: 0 10px 28px rgba(26, 46, 20, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.tools-hub__card:hover,
.tools-hub__card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(119, 182, 36, 0.5);
  box-shadow: 0 16px 36px rgba(26, 46, 20, 0.1);
  outline: none;
}

.tools-hub__card:hover .tools-page__name,
.tools-hub__card:focus-visible .tools-page__name {
  color: var(--hub-accent-deep);
}

.tools-hub__card:hover .tools-hub__cta,
.tools-hub__card:focus-visible .tools-hub__cta {
  background: var(--hub-accent-deep);
}

.tools-hub__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 11.75rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(119, 182, 36, 0.16), transparent 60%),
    #f4f9ea;
}

.tools-hub__media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 9.75rem;
  height: auto;
  object-fit: contain;
}

.tools-hub__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  text-align: center;
}

.tools-page--hub .tools-page__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hub-ink);
  line-height: 1.3;
}

.tools-page--hub .tools-page__meta {
  color: var(--hub-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  max-width: 16.5rem;
  min-height: 2.9em;
}

.tools-hub__cta {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--hub-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.15s ease;
}
