/* Compliance-engineered — RHS overlay (no layout shift) */

.compliance-tag {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}

.compliance-tag__shield {
  display: block;
  flex-shrink: 0;
  width: 3.35rem;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(152, 164, 247, 0.75));
}

.compliance-tag__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.compliance-tag__label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(196, 204, 255, 0.35);
}

.compliance-tag__cue {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #d7dcff;
  line-height: 1.2;
}

/* Shared glass panel */
.compliance-tag--panel {
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.05rem 0.85rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(210, 216, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(168, 176, 255, 0.42), rgba(91, 99, 211, 0.28) 45%, rgba(18, 20, 38, 0.82)),
    rgba(22, 24, 48, 0.88);
  box-shadow:
    0 0 0 1px rgba(152, 164, 247, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(122, 132, 220, 0.45);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.compliance-tag--panel:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(236, 238, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(210, 216, 255, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(152, 164, 247, 0.55);
}

.compliance-tag--panel:hover .compliance-tag__cue {
  color: #e4e8ff;
}

/* Hero badge: centered in art slot below 960px; RHS float alongside art from 960px up.
   Keep in sync with .hero-home-art-wrap / .hero-home-layout in main.css (not Tailwind md / 802px). */
.compliance-tag--rhs-float {
  position: relative;
  z-index: 10;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  max-width: min(17.5rem, calc(100% - 2rem));
  margin: 2rem auto 0;
}

@media (width >= 960px) {
  .compliance-tag--rhs-float {
    position: absolute;
    z-index: 25;
    margin: 0;
    max-width: min(17.5rem, 42vw);
    right: max(2rem, calc(50% - var(--page-rail-half, 548.5px) + 1rem));
    top: 6.75rem;
  }
}

/* Maturity: emblem top-aligned with "What changes in practice" */
.compliance-tag--maturity-emblem {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.95rem 1rem 0.85rem;
  max-width: 9.75rem;
  margin: 0;
}

.compliance-tag--maturity-emblem .compliance-tag__shield {
  width: 5.25rem;
}

.compliance-tag--maturity-emblem .compliance-tag__cue {
  font-size: 0.62rem;
}

.maturity-lists {
  position: relative;
}

@media (width >= 768px) {
  .maturity-lists {
    padding-right: 11.5rem;
  }
}

/* How-it-works aside: faint avatar (former watermark treatment) */
.how-it-works__avatar {
  display: block;
  width: min(10.5rem, 68%);
  height: auto;
  margin-top: 1.1rem;
  opacity: 0.11;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: none;
}

@media (width >= 768px) {
  .how-it-works__avatar {
    width: 10.5rem;
    /* Midway between under-CTA and bottom of aside */
    margin-top: auto;
    margin-bottom: auto;
  }
}

@media (width < 768px) {
  .compliance-tag--maturity-emblem {
    position: static;
    margin: 0 auto 1.25rem;
  }

  .how-it-works__avatar {
    margin-top: 1rem;
  }
}
