/* Probably 41 — product links block (added on top of the Webflow export) */

:root {
  --p41-bg: #15181d;
  --p41-line: rgba(82, 89, 99, .45);
  --p41-text: #ced1dc;
  --p41-dim: #7d8594;
  --p41-lime: #bdfe00;
  --p41-purple: #b984fd;
  --p41-teal: #47ddb0;
  --p41-orange: #ffb359;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  /* wider than the 1100px headline wrapper: centre it on the frame instead */
  position: relative;
  left: 50%;
  width: min(1200px, calc(100vw - 240px));
  margin: 32px 0 0;
  transform: translateX(-50%);
  pointer-events: auto; /* parent wrapper has pointer-events: none for the canvas */
}

.product-card {
  --c: var(--p41-lime);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--p41-line);
  background: rgba(21, 24, 29, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--p41-text);
  font-family: Lekton, sans-serif;
  text-align: left;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  animation: p41-card-in .7s cubic-bezier(.2, .7, .2, 1) forwards;
  transition: border-color .2s ease, background-color .2s ease;
}

.product-card:nth-child(1) { animation-delay: .55s; }
.product-card:nth-child(2) { animation-delay: .65s; }
.product-card:nth-child(3) { animation-delay: .75s; }
.product-card:nth-child(4) { animation-delay: .85s; }

.product-card.is-refundkeeper { --c: var(--p41-teal); }
.product-card.is-claspr { --c: var(--p41-purple); }
.product-card.is-consulting { --c: var(--p41-lime); }
.product-card.is-subscriptions { --c: var(--p41-orange); }

.product-card:hover {
  border-color: var(--c);
  background: rgba(21, 24, 29, .9);
}

.product-card:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--c);
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform-origin: 30% 50%;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}

.product-card:hover .product-pill {
  transform: rotate(-4deg);
}

.product-pill svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .2s ease;
}

.product-card:hover .product-pill svg {
  transform: translate(2px, -2px);
}

.product-card.is-consulting:hover .product-pill svg,
.product-card.is-subscriptions:hover .product-pill svg {
  transform: translateX(2px);
}

.product-desc {
  font-size: 15px;
  line-height: 1.4;
  color: var(--p41-text);
}

.product-link {
  margin-top: auto;
  font-size: 13px;
  line-height: 1;
  color: var(--p41-dim);
  transition: color .2s ease;
}

.product-card:hover .product-link {
  color: var(--c);
}

@keyframes p41-card-in {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card { animation: none; opacity: 1; transform: none; }
  .product-pill, .product-pill svg { transition: none; }
}

/* Short laptop screens (1366x768, 1280x720): tighten the hero so the cards clear the pile */
@media screen and (min-width: 768px) and (max-height: 820px) {
  .tag-content-wrapper { top: 84px; }
  .tag-content-text-1 { font-size: 54px; }
  .tag-content-text-2 { font-size: 34px; }
  .tag-content-text-wrap { margin-bottom: 14px; }
  .products { margin-top: 24px; }
  .product-card { gap: 9px; padding: 14px 16px 12px; }
}

/* 1280–1439: four columns still fit with a smaller pill */
@media screen and (max-width: 1439px) {
  .product-card { padding-left: 16px; padding-right: 16px; }
  .product-pill { height: 40px; padding: 0 14px; gap: 8px; font-size: 16px; }
  .product-pill svg { width: 13px; height: 13px; }
  .product-desc { font-size: 14px; }
}

/* Below 1280 the longest label no longer fits four across: 2 x 2 */
@media screen and (max-width: 1279px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(760px, calc(100vw - 240px)); gap: 12px; }
}

@media screen and (max-width: 991px) {
  .products { left: auto; transform: none; width: calc(100% - 40px); max-width: 760px; margin: 28px auto 0; }
}

@media screen and (max-width: 767px) {
  .products {
    grid-template-columns: 1fr;
    gap: 6px;
    width: calc(100% - 32px);
    max-width: 420px;
    margin-top: 18px;
  }
  .product-card { gap: 6px; padding: 8px 12px; }
  .product-pill { height: 30px; padding: 0 12px; gap: 7px; font-size: 14px; }
  .product-pill svg { width: 11px; height: 11px; }
  .product-desc { font-size: 12px; line-height: 1.35; }
  .product-link { display: none; }
}

@media screen and (max-width: 479px) {
  .products { width: calc(100% - 20px); margin-top: 16px; }
}

/* Footer LinkedIn link */
.tag-footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tag-footer-link:hover { color: #fff; }

/* Phones and tablets: the 65px bottom band cut off the footer's last line.
   Taller band, corner marks kept aligned with the frame, footer text centred in the band. */
@media screen and (max-width: 991px) {
  .tag-wrapper { padding-bottom: 96px; }
  .tag-line-3, .tag-line-4 { height: 97px; }
  .tag-footer { display: flex; flex-direction: column; justify-content: center; height: 96px; padding-top: 0; padding-bottom: 0; }
  .tag-footer-text, .tag-footer-email { line-height: 18px; }
  .tag-footer-email { margin-top: 6px; }
}

@media screen and (max-width: 479px) {
  .tag-wrapper { padding-bottom: 80px; }
  .tag-line-3, .tag-line-4 { height: 81px; }
  .tag-footer { height: 80px; }
  .tag-footer-text, .tag-footer-email { line-height: 15px; }
  .tag-footer-email { margin-top: 5px; }
}

/* Short phone screens (320x568): lift the hero so the last card clears the footer */
@media screen and (max-width: 479px) and (max-height: 600px) {
  .tag-content-wrapper { top: 20px; }
}
