.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.9rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

/* A hairline of brand colour along the top edge, revealed on hover. */
.card::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--brand-bright), var(--mint));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::after {
  opacity: 1;
}

/* Full-width logo band across the top of the card — reads like a product/brand
   card rather than a small favicon badge. Stretches to the card's inner width
   (the card is a flex column with the default align-items: stretch). */
.card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  margin-bottom: 1.4rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}

.card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card__tag {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card__title {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.card__title a {
  text-decoration: none;
}

.card__title a:hover {
  color: var(--brand);
}

/* A quiet affordance that the title goes somewhere — cards spent their first
   weeks in production with nothing clickable, so the cue is always-on, not
   hover-only. External links get the outward arrow, internal ones a chevron. */
.card__title a::after {
  content: "\2192";
  margin-left: 0.35em;
  font-size: 0.85em;
  color: var(--brand);
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.card__title a[target="_blank"]::after {
  content: "\2197";
}

.card__title a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Wordmark fallback inside the logo band: bold two-colour product name, sized
   down (and allowed to wrap) for long names. Reads as a deliberate text
   lockup, not a missing image. */
.card__logo--mark .card__mark {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(120deg, var(--brand), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card__logo--mark .card__mark--long {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.card__body {
  flex: 1;
  margin-bottom: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;
}

.card__fine {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--ink-faint);
  max-width: none;
}
