/* PUBLIC-MAP certifications marquee and pricing premium seals */

.credential-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 12% 10%, rgba(66, 133, 244, .10), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(52, 168, 83, .08), transparent 32%),
    #f8faff;
  border-top: 1px solid rgba(27, 91, 255, .08);
  border-bottom: 1px solid rgba(27, 91, 255, .08);
  isolation: isolate;
}

.credential-heading {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto 30px;
  text-align: center;
}

.credential-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  margin-bottom: 13px;
  border: 1px solid rgba(27, 91, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #1b5bff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.credential-heading h2 {
  margin: 0 0 10px;
  color: #0a2540;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.02;
}

.credential-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.credential-marquee {
  width: 100%;
  overflow: hidden;
  padding: 18px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.credential-track {
  --credential-half-gap: 21px;
  display: flex;
  width: max-content;
  gap: 42px;
  animation: credentialScroll 30s linear infinite;
  will-change: transform;
}

.credential-group {
  display: flex;
  gap: 42px;
}

.credential-marquee:hover .credential-track,
.credential-marquee:focus-visible .credential-track,
.credential-marquee:focus-within .credential-track {
  animation-play-state: paused;
}

@keyframes credentialScroll {
  to { transform: translate3d(calc(-50% - var(--credential-half-gap)), 0, 0); }
}

.credential-badge {
  position: relative;
  flex: 0 0 210px;
  width: 210px;
  min-height: 222px;
  padding: 4px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border: 0;
  background: transparent;
  transition: transform .35s ease;
}

.credential-badge::after {
  display: none;
}

.credential-badge:hover {
  transform: translateY(-7px) scale(1.025);
}

.credential-logo-image {
  width: 172px;
  height: 172px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 15px rgba(10, 37, 64, .16));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.credential-badge:hover .credential-logo-image {
  transform: scale(1.045) rotate(-1deg);
  filter: drop-shadow(0 18px 22px rgba(10, 37, 64, .22));
}

.credential-badge strong {
  position: relative;
  z-index: 1;
  max-width: 188px;
  color: #102a43;
  font-size: 12px;
  line-height: 1.2;
}

.credential-badge > span {
  position: relative;
  z-index: 1;
  max-width: 188px;
  margin-top: 5px;
  color: #738096;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.credential-proof {
  margin: 8px 20px 0;
  color: #8993a5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
}

/* Premium and Premium Plus seals on the two advanced plans */
.premium-plan-seal {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  width: 72px;
  height: 78px;
  padding: 13px 9px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0, 91% 15%, 86% 70%, 50% 100%, 14% 70%, 9% 15%);
  background: linear-gradient(145deg, #fff2a8 0%, #d59a20 32%, #111827 34%, #05070b 73%, #b67a12 75%, #f5cc62 100%);
  color: #ffe59a;
  filter: drop-shadow(0 8px 12px rgba(10, 20, 40, .22));
  pointer-events: none;
}

.premium-plan-seal.with-popular { top: 47px; }

.premium-plan-seal::before {
  content: '';
  position: absolute;
  inset: 5px;
  clip-path: inherit;
  border: 1px solid rgba(255, 227, 139, .72);
}

.premium-plan-star,
.premium-plan-label {
  position: relative;
  z-index: 1;
}

.premium-plan-star {
  font-size: 15px;
  line-height: 1;
}

.premium-plan-label {
  max-width: 58px;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.premium-plan-seal.premium-plus {
  background: linear-gradient(145deg, #fff5b7 0%, #e5af34 31%, #172033 33%, #060a12 72%, #c88b17 74%, #ffe08a 100%);
}

@media (max-width: 768px) {
  .credential-section { padding: 54px 0 44px !important; }
  .credential-heading { width: min(100% - 32px, 700px); margin-bottom: 18px; }
  .credential-heading p { font-size: 13px; }
  .credential-track,
  .credential-group { gap: 24px; }
  .credential-track { --credential-half-gap: 12px; animation-duration: 24s; }
  .credential-badge { flex-basis: 166px; width: 166px; min-height: 188px; padding: 2px 6px 10px; }
  .credential-logo-image { width: 136px; height: 136px; }
  .credential-badge strong { font-size: 10px; max-width: 152px; }
  .credential-badge > span { font-size: 7px; max-width: 152px; }
  .premium-plan-seal { width: 64px; height: 70px; right: 10px; }
  .premium-plan-seal.with-popular { top: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  .credential-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .credential-track { animation: none; }
  .credential-group[aria-hidden="true"] { display: none; }
}
