/* ============================================================
   CrossKit — Reusable trust & product-demo modules
   Loaded site-wide (base.html). Powers the trust band,
   platform wall, testimonials, security badges, and the
   "See it in action" product-preview windows used on the
   homepage, pricing, about and use-case pages.
   ============================================================ */

/* ---------------- Trust module ---------------- */
.trust-module { padding: 56px 0; }
.trust-module .container { max-width: 1140px; }

.tm-eyebrow {
  text-align: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand, #4f46e5);
  margin-bottom: 10px;
}
.tm-title {
  text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700; margin: 0 0 6px; color: var(--gray-900, #1f2937);
}
.tm-sub { text-align: center; color: var(--gray-500, #6b7280); margin: 0 auto 36px; max-width: 620px; }

/* Stats band */
.tm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 44px;
}
.tm-stat {
  background: #fff; border: 1px solid rgba(79,70,229,.12);
  border-radius: 16px; padding: 22px 16px; text-align: center;
  box-shadow: 0 6px 22px -16px rgba(31,41,55,.4);
}
.tm-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--brand, #4f46e5); line-height: 1.1; }
.tm-stat .lbl { font-size: .82rem; color: var(--gray-500, #6b7280); margin-top: 6px; }

/* Platform wall */
.tm-platforms { text-align: center; margin-bottom: 44px; }
.tm-platforms .tm-p-label { font-size: .82rem; color: var(--gray-500, #6b7280); margin-bottom: 14px; }
.tm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tm-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #f5f6ff; border: 1px solid rgba(79,70,229,.14);
  font-size: .9rem; font-weight: 600; color: #374151;
}
.tm-chip i { color: var(--brand, #4f46e5); font-size: .9rem; }

/* Logo wall */
.tm-logo-wall { text-align: center; margin-bottom: 44px; }
.tm-logo-wall .tm-p-label { font-size: .82rem; color: var(--gray-500, #6b7280); margin-bottom: 14px; }
.tm-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 28px;
}
.tm-logo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: #fff; border: 1px solid #e5e7eb;
  font-size: .88rem; font-weight: 600; color: #374151;
  transition: all .2s ease; cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tm-logo:hover {
  border-color: rgba(79,70,229,.25);
  box-shadow: 0 4px 12px -4px rgba(79,70,229,.15);
  transform: translateY(-2px);
}
.tm-logo i { font-size: 1.1rem; color: var(--brand, #4f46e5); }

/* Testimonials */
.tm-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.tm-testi {
  background: #fff; border: 1px solid #eef0f6; border-radius: 18px;
  padding: 24px 22px; box-shadow: 0 10px 30px -22px rgba(31,41,55,.5);
  display: flex; flex-direction: column; gap: 14px;
}
.tm-testi .stars { color: #f59e0b; font-size: .9rem; letter-spacing: 2px; }
.tm-testi .quote { font-size: .95rem; line-height: 1.6; color: #374151; margin: 0; flex: 1; }
.tm-testi .author { display: flex; align-items: center; gap: 12px; }
.tm-testi .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand, #4f46e5), var(--accent, #06b6d4));
}
.tm-testi .a-name { font-weight: 700; font-size: .9rem; color: #111827; }
.tm-testi .a-title { font-size: .78rem; color: var(--gray-500, #6b7280); }

/* Security / guarantee badges */
.tm-badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tm-badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 18px 10px; border-radius: 16px;
  background: linear-gradient(180deg, #fbfbff, #f4f5ff);
  border: 1px solid rgba(79,70,229,.10);
}
.tm-badge i { font-size: 1.5rem; color: var(--brand, #4f46e5); }
.tm-badge .b-title { font-size: .85rem; font-weight: 700; color: #1f2937; }
.tm-badge .b-sub { font-size: .72rem; color: var(--gray-500, #6b7280); }

/* ---------------- Product demo (screenshot-style) ---------------- */
.demo-module { padding: 56px 0; background: linear-gradient(180deg, #fafaff, #f3f4ff); }
.demo-module .container { max-width: 1140px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.demo-window {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px -24px rgba(31,41,55,.55);
  border: 1px solid #e8eaf2;
}
.demo-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #f3f4f8; border-bottom: 1px solid #e8eaf2;
}
.demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.demo-bar .dot.r { background: #ff5f57; } .demo-bar .dot.y { background: #febc2e; } .demo-bar .dot.g { background: #28c840; }
.demo-bar .url {
  margin-left: 10px; font-size: .72rem; color: #6b7280;
  background: #fff; border: 1px solid #e2e5ee; border-radius: 7px;
  padding: 3px 10px; font-family: ui-monospace, Menlo, monospace;
}
.demo-body { padding: 18px; }
.demo-body h4 { margin: 0 0 12px; font-size: .98rem; color: #111827; }
.demo-drop {
  border: 2px dashed #c7cbf5; border-radius: 12px; padding: 22px 12px;
  text-align: center; color: #6b7280; font-size: .85rem; background: #fafaff;
}
.demo-drop i { font-size: 1.4rem; color: var(--brand, #4f46e5); display: block; margin-bottom: 6px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #374151; padding: 8px 0; border-bottom: 1px dashed #eef0f6; }
.demo-bar-track { height: 8px; border-radius: 999px; background: #eef0f6; overflow: hidden; margin-top: 6px; }
.demo-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand, #4f46e5), var(--accent, #06b6d4)); }
.demo-qr {
  width: 96px; height: 96px; margin: 6px auto; border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, #111 0 6px, #fff 6px 12px),
    repeating-linear-gradient(90deg, #111 0 6px, #fff 6px 12px);
  background-blend-mode: difference;
  border: 4px solid #fff; box-shadow: 0 0 0 1px #e5e7eb;
}
.demo-note { text-align: center; font-size: .82rem; color: var(--gray-500, #6b7280); margin-top: 22px; }
.demo-note a { color: var(--brand, #4f46e5); font-weight: 600; text-decoration: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .tm-stats { grid-template-columns: repeat(2, 1fr); }
  .tm-testi-grid { grid-template-columns: 1fr; }
  .tm-badges { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tm-stats { grid-template-columns: 1fr 1fr; }
  .tm-badges { grid-template-columns: 1fr 1fr; }
  .trust-module, .demo-module { padding: 40px 0; }
}