/* ── Trust Section ────────────────────────────────────────── */
.trust {
  padding: 6rem clamp(1.5rem,6vw,9rem);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: var(--dadi-light);
  overflow: hidden;
}

/* Section heading */
.trust-head { text-align: center; margin-bottom: 4rem; }
.trust-head h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: 1rem; }
.trust-head p  { color: #64748b; max-width: 42rem; margin: 0 auto; }

/* Assurance badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
  max-width: var(--max-w); margin: 0 auto 5rem;
}
.trust-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.trust-badge.visible { opacity: 1; transform: scale(1); }
.trust-badge svg { width: 2.5rem; height: 2.5rem; color: var(--dadi-blue); opacity: 0.8; margin-bottom: 1rem; }
.trust-badge h3 { font-weight: 600; font-size: 0.875rem; color: #0f172a; }

/* Tools section wrapper */
.trust-tools { max-width: var(--max-w); margin: 0 auto; }

.trust-tools-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.trust-tools-text h2 {
  font-size: clamp(1.75rem,3.5vw,2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.trust-tools-text p { color: #64748b; max-width: 36rem; line-height: 1.65; }

/* ── Physics throwable scene ──────────────────────────────── */
.trust-capsule-scene {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.04);
  cursor: default;
}

/* Each throwable wrapper <p> — absolutely positioned by JS */
.trust-capsule-scene > p[data-t-throwable-el] {
  position: absolute;
  display: inline-block;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  /* pointer-events kept for dragging */
}

/* Capsule pill */
.trust-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  cursor: grab;
  user-select: none;
  pointer-events: auto;
  letter-spacing: 0.02em;
  min-width: 7rem;
  text-align: center;
}
.trust-capsule:active { cursor: grabbing; }
.trust-capsule.accent {
  background: var(--dadi-blue, #2563eb);
}

/* Decorative horizontal lines at the bottom of the scene */
.trust-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(8,1fr);
  pointer-events: none;
  z-index: 0;
}
.trust-line {
  border-bottom: 1px solid rgba(15,23,42,.04);
}
/* Push capsules above the lines */
.trust-capsule-scene > p[data-t-throwable-el] { z-index: 1; }

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .trust-badges { grid-template-columns: repeat(4,1fr); }
  .trust-capsule-scene { height: 340px; }
}

@media (max-width: 767px) {
  .trust-capsule-scene { height: 280px; }
  .trust-capsule { font-size: 0.875rem; padding: 0.6rem 1.25rem; min-width: 5rem; }
}
