/* Trust Center — page-specific components.
   Reuses landing.css + verticals.css for hero/section/grid/table/cta.
   Only the data-flow diagram, the "what leaves" cards, the sample cert,
   and the honest-limits callout need their own styles. All colors are
   theme tokens (no hardcoded values) so light/dark both work. */

/* --- Hero (centered; bypasses v-hero's two-column art grid) --- */
.trust-hero {
  text-align: center;
  padding: 64px 20px 40px;
}
.trust-hero .v-hero-eyebrow { justify-content: center; }
.trust-hero .hero-title { margin: 14px auto 0; max-width: 18ch; }
.trust-hero .hero-sub { margin: 16px auto 0; max-width: 58ch; }
.trust-hero .hero-cta { justify-content: center; margin-top: 26px; }

/* --- Hero stat strip --- */
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin-top: 30px;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
.trust-stat-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.trust-stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

/* --- Data-flow diagram --- */
.trust-diagram {
  max-width: 920px;
  margin: 0 auto;
}
.trust-device {
  position: relative;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 38px 22px 26px;
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-elev));
}
.trust-device-label {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg);
  border-radius: 999px;
}
.trust-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.trust-node {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.trust-node small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mute);
}
.trust-node svg { color: var(--text-soft); }
.trust-node-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-elev));
  box-shadow: 0 4px 18px color-mix(in srgb, var(--primary) 18%, transparent);
}
.trust-node-active svg { color: var(--primary); }
.trust-arrow {
  display: flex;
  align-items: center;
  color: var(--text-mute);
  flex: 0 0 auto;
}
.trust-sidechannel {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-arrow-down { padding: 6px 0; }
.trust-server {
  position: relative;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  background: var(--bg-soft);
}
.trust-server-label {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.trust-server ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
}
.trust-server ul li { margin: 3px 0; }
.trust-server-note {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* --- "What leaves" two-column cards --- */
.trust-leaves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.trust-leaf {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  background: var(--bg-elev);
}
.trust-leaf-stay {
  background: color-mix(in srgb, var(--success) 7%, var(--bg-elev));
  border-color: color-mix(in srgb, var(--success) 28%, var(--border));
}
.trust-leaf h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
}
.trust-leaf-stay h3 svg { color: var(--success); }
.trust-leaf-send h3 svg { color: var(--text-soft); }
.trust-leaf ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}
.trust-leaf ul li { margin: 5px 0; }

/* --- Sample audit certificate --- */
.trust-cert {
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--text) 8%, transparent);
}
.trust-cert-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--success) 10%, var(--bg-elev));
  border-bottom: 1px solid color-mix(in srgb, var(--success) 25%, var(--border));
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.trust-cert-head svg { color: var(--success); }
.trust-cert-body { padding: 14px 16px 16px; }
.trust-cert-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border);
}
.trust-cert-row:last-child { border-bottom: 0; }
.trust-cert-row .k { color: var(--text-mute); white-space: nowrap; }
.trust-cert-row .v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

/* --- Honest-limits callout (neutral card + icon, no edge stripe) --- */
.trust-honest {
  display: flex;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.trust-honest-icon {
  flex: 0 0 auto;
  color: var(--primary);
  margin-top: 2px;
}
.trust-honest p { margin: 0 0 10px; }
.trust-honest p:last-child { margin-bottom: 0; }

/* --- Reviewer band helpers --- */
.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

/* --- Cert layout (sample beside copy) --- */
.trust-cert-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

/* --- FAQ (clean static disclosure; no motion) --- */
.trust-faq details {
  border-bottom: 1px solid var(--border);
}
.trust-faq details:first-child { border-top: 1px solid var(--border); }
.trust-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.trust-faq summary::-webkit-details-marker { display: none; }
.trust-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-mute);
}
.trust-faq details[open] summary { color: var(--primary); }
.trust-faq details[open] summary::after { content: "\2212"; color: var(--primary); }
.trust-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }
.trust-faq details > p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .trust-flow { flex-direction: column; }
  .trust-arrow svg { transform: rotate(90deg); }
  .trust-leaves { grid-template-columns: 1fr; }
  .trust-cert-wrap { grid-template-columns: 1fr; }
  .trust-cert { margin: 0 auto; }
  .trust-honest { flex-direction: column; gap: 10px; }
}
