/* Resource email-capture gate. Centered preview blurb above the email
   capture card. Reuses the .case-notify-card styles for the form itself;
   this only frames it. */

.resource-gate {
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.resource-gate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  max-width: 40rem;
}

/* Teal "free read" badge; amber variant for coming-soon, mirroring the
   under-construction status hue so WIP reads as WIP. */
.resource-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: color-mix(in oklch, var(--brand-teal) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--brand-teal) 34%, transparent);
  border-radius: 9999px;
}

.resource-gate__badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--brand-teal);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--brand-teal) 22%, transparent);
}

.resource-gate__badge--soon {
  color: oklch(0.48 0.14 75);
  background: color-mix(in oklch, oklch(0.78 0.18 75) 16%, transparent);
  border-color: color-mix(in oklch, oklch(0.78 0.18 75) 35%, transparent);
}

.resource-gate__badge--soon .resource-gate__badge-dot {
  background: oklch(0.72 0.18 75);
  box-shadow: 0 0 0 2px color-mix(in oklch, oklch(0.78 0.18 75) 22%, transparent);
}

.resource-gate__preview {
  margin: 0;
  font-size: var(--fs-lg, 1.125rem);
  color: var(--color-muted-foreground);
  line-height: var(--lh-snug);
  max-width: 48ch;
  text-wrap: balance;
}

.resource-gate__card {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.25rem;
}

/* Center the capture card's head within the gate (the shared card is
   left-aligned for its hero-column use on /case-studies/). */
.resource-gate .case-notify-card__head {
  align-items: center;
  text-align: center;
}

.resource-gate .case-notify-card__eyebrow {
  align-self: center;
}
