/* "Safe to connect" section under the home hero (owner 2026-11-17). The section itself uses the site's own pieces
   (section, pill label, section-title, section-desc, glass-panel cards); this file only adds what the compiled
   utilities don't have: the 4-up card grid, the icon tiles and the two links. No backgrounds, glows or shapes.
   Dark values apply only on dark public pages (same rule as public-theme.css). */

/* Divider trust badge (owner 2026-11-17: "a trust icon in the middle of the separator line, animated on scroll").
   Plays once when the site's reveal script marks the section visible (.reveal-visible): the line grows out from the
   centre, the badge pops in, the tick draws, one soft ring pulse. Still for people who prefer less motion. */
.meta-trust {
  position: relative;
}

.meta-trust::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 16, 201, 0.35) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.meta-trust.reveal-visible::before {
  transform: scaleX(1);
}

.meta-trust-divider-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(56, 16, 201, 0.16);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(56, 16, 201, 0.12);
  color: #3810c9;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  pointer-events: none;
}

.meta-trust-divider-badge::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 2px solid rgba(56, 16, 201, 0.35);
  border-radius: 999px;
  opacity: 0;
}

.meta-trust-divider-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-trust-divider-badge .mt-tick {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
}

.meta-trust.reveal-visible .meta-trust-divider-badge {
  animation: mtBadgeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}

.meta-trust.reveal-visible .meta-trust-divider-badge .mt-tick {
  animation: mtTickDraw 0.45s ease-out 0.75s forwards;
}

.meta-trust.reveal-visible .meta-trust-divider-badge::after {
  animation: mtRingOnce 1.1s ease-out 0.95s 1 forwards;
}

@keyframes mtBadgeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes mtTickDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes mtRingOnce {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}

html[data-theme='dark'][data-theme-surface='public'] .meta-trust::before {
  background: linear-gradient(90deg, transparent 0%, rgba(167, 146, 246, 0.4) 50%, transparent 100%);
}

html[data-theme='dark'][data-theme-surface='public'] .meta-trust-divider-badge {
  border-color: rgba(167, 146, 246, 0.26);
  background: #141d31;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  color: #c4b5ff;
}

html[data-theme='dark'][data-theme-surface='public'] .meta-trust-divider-badge::after {
  border-color: rgba(167, 146, 246, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .meta-trust::before {
    transform: scaleX(1);
    transition: none;
  }

  .meta-trust-divider-badge,
  .meta-trust.reveal-visible .meta-trust-divider-badge {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: none;
  }

  .meta-trust-divider-badge .mt-tick,
  .meta-trust.reveal-visible .meta-trust-divider-badge .mt-tick {
    stroke-dashoffset: 0;
    animation: none;
  }

  .meta-trust.reveal-visible .meta-trust-divider-badge::after {
    animation: none;
  }
}

.meta-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.meta-trust-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(56, 16, 201, 0.2);
  border-radius: 12px;
  background: rgba(56, 16, 201, 0.1);
  color: #3810c9;
}

/* Section label: a real pill (the site's pill utility classes are missing from the compiled CSS, so labels showed as
   loose text). Meta logo in its own round badge. Owner 2026-11-17: "make it more good and perfect". */
.meta-trust-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 16, 201, 0.16);
  border-radius: 999px;
  padding: 5px 16px 5px 5px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(56, 16, 201, 0.08);
  color: #3810c9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.meta-trust-label-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(8, 102, 255, 0.08);
}

.meta-trust-label-logo img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

html[data-theme='dark'][data-theme-surface='public'] .meta-trust-label {
  border-color: rgba(167, 146, 246, 0.26);
  background: rgba(20, 29, 49, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: #c4b5ff;
}

html[data-theme='dark'][data-theme-surface='public'] .meta-trust-label-logo {
  background: rgba(76, 141, 255, 0.16);
}

/* Owner 2026-11-17: "more Meta logos so people understand by just looking". */

.meta-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.meta-trust-logos li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--c-text-muted);
}

.meta-trust-logos img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.meta-trust-logos strong {
  color: var(--pt-text-fc456714, #172033);
  font-weight: 700;
}

.meta-trust-icon {
  position: relative;
}

.meta-trust-badge {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--c-surface, #ffffff);
  border-radius: 999px;
  padding: 2px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(23, 18, 74, 0.14);
}

.meta-trust-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-trust-icon.is-meta img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.meta-trust-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 40px;
}

.meta-trust-links a {
  color: var(--pt-dtext-e9c3cc91, var(--c-primary, #3810c9));
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.meta-trust-links a::after {
  content: ' →';
}

.meta-trust-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[data-theme='dark'][data-theme-surface='public'] .meta-trust-icon {
  border-color: rgba(167, 146, 246, 0.26);
  background: rgba(167, 146, 246, 0.12);
  color: #a892f6;
}

@media (max-width: 1023px) {
  .meta-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .meta-trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .meta-trust-links {
    margin-top: 28px;
  }
}
