/*
  Tools hub. Scoped to .thub-page and built only on shared tokens in
  styles.css (:root). No gradients, no decorative shadows; elevation from
  tonal surfaces matching the 5 reference tools.
*/

.thub-page.seo-design-template .how-hero.thub-hero {
  display: block;
  min-height: 0;
  padding: 72px 0 56px;
}

.thub-page.seo-design-template .thub-hero .text-card h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
}

.thub-h1-payoff {
  display: block;
}

.thub-page.seo-design-template .thub-hero .lead {
  max-width: 640px;
  margin: 0 auto;
}

/* Group */
.thub-group {
  margin-top: 40px;
}

.thub-group:first-of-type {
  margin-top: 28px;
}

.thub-group-head {
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.thub-group-title {
  margin: 0;
  color: var(--fella-primary-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.thub-group-note {
  color: var(--fella-secondary-text);
  font-size: 13px;
  line-height: 1.4;
}

.thub-page .thub-hero .thub-grid {
  margin-top: 40px;
}

/* Cards */
.thub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.thub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  min-height: 220px;
  padding: var(--space-xxl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--fella-secondary-fill);
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 0;
  transition: filter 150ms ease;
}

.thub-card:hover {
  filter: brightness(0.96);
}

.thub-card:focus-visible {
  outline: 2px solid var(--fella-accent);
  outline-offset: 2px;
}

.thub-card span {
  color: var(--fella-primary-text);
  opacity: 0.72;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.thub-card-icon {
  width: 40px;
  height: 40px;
  color: var(--fella-primary-text);
  opacity: 0.72;
  flex: 0 0 auto;
}

/* SEO content after grid already uses .vs-copy, no extra */
.thub-note {
  margin-top: 24px;
  color: var(--fella-secondary-text);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .thub-grid {
    grid-template-columns: 1fr;
  }

  .thub-card--feature {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .thub-page.seo-design-template .how-hero.thub-hero {
    padding: 48px 0 32px;
  }

  .thub-page.seo-design-template .thub-hero .text-card h1 {
    font-size: 34px;
  }

  .thub-h1-payoff {
    margin-top: 6px;
    font-size: 24px;
  }

  .thub-page .thub-hero .thub-grid {
    margin-top: 28px;
  }

  .thub-group {
    margin-top: 28px;
  }

  .thub-card {
    padding: 18px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thub-card,
  .thub-card-cta::after {
    transition: none;
  }
}
