/* trust.css — public /trust legitimacy hub.
   Concept: "The Open Ledger" (v2). The page reads as a filed public record.
   v2 fixes the v1 failure (austere narrow column floating in a white void on
   wide screens): a full-bleed DARK dossier hero with a two-column layout and
   the do/never ledger as a bright sheet floating on the dark; full-bleed
   contrast bands for the body (white / gray-50 / indigo tint) so the page
   fills the screen; numbered articles like clauses, a ruled accounting tally,
   and an embossed seal. Mobile-first. Layout-only page CSS; shared components
   (.btn-youtube) come from the bundle. Redesigned 2026-05-29 (v2). */

/* ============================================================== */
/* Page surface + document column + full-bleed bands               */
/* ============================================================== */
body.trust-page { background: var(--color-white); }

/* Centered content column inside every band. */
.trust-doc {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Full-bleed section bands — backgrounds span the viewport, content centers. */
.trust-band { width: 100%; padding: 56px 0; }
.trust-band--white { background: var(--color-white); }
.trust-band--alt   { background: var(--color-gray-50); border-top: 1px solid var(--color-gray-100); border-bottom: 1px solid var(--color-gray-100); }
.trust-band--indigo { background: var(--color-primary-soft); border-top: 1px solid rgba(var(--color-primary-rgb), 0.12); border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.12); }

/* Inline-link voice (ink-blue citation) */
.trust-band a:not(.btn-youtube),
.trust-final a:not(.btn-youtube) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}
.trust-final a:not(.btn-youtube) { color: var(--color-gray-300); }
.trust-band a:not(.btn-youtube):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}
.trust-final a:not(.btn-youtube):focus-visible {
  outline: 2px solid var(--color-gray-300);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============================================================== */
/* Hero — dark dossier surface, two columns                        */
/* ============================================================== */
.trust-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-900);
  padding: 48px 0 60px;
}
.trust-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 55% at 16% -5%, rgba(99, 102, 241, 0.32), transparent 58%),
    radial-gradient(ellipse 52% 60% at 102% 25%, rgba(79, 70, 229, 0.20), transparent 60%);
}
/* Faint ledger rules etched into the dark surface */
.trust-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 33px,
    rgba(255, 255, 255, 0.04) 33px, rgba(255, 255, 255, 0.04) 34px
  );
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 0%, #000 28%, transparent 86%);
          mask-image: radial-gradient(ellipse 95% 85% at 50% 0%, #000 28%, transparent 86%);
}
.trust-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

/* Letterhead bar */
.trust-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-masthead__label,
.trust-masthead__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-300);
}
.trust-masthead__label i { color: var(--color-primary-light); font-size: 0.75rem; }
.trust-masthead__meta { color: var(--color-gray-400); }
.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(var(--color-success-rgb), 0.25);
}

.trust-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1.04fr);
  gap: 44px;
  align-items: center;
}
.trust-hero__lead { min-width: 0; }
.trust-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-white);
  margin: 0 0 16px;
  text-wrap: balance;
}
.trust-hl { color: var(--color-primary-light); }
.trust-hero__sub {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--color-gray-300);
  max-width: 52ch;
  margin: 0 0 22px;
}
.trust-hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
}
.trust-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray-200);
}
.trust-hero__chips i { color: var(--color-primary-light); font-size: 0.8125rem; }
.trust-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.trust-hero__hint { font-size: 0.8125rem; color: var(--color-gray-400); }

/* ── The ledger exhibit — bright sheet floating on the dark ── */
.trust-ledger { position: relative; }
.trust-ledger__sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.trust-ledger__col { padding: 22px 22px 10px; }
.trust-ledger__col--never { border-left: 1px solid var(--color-gray-200); }
.trust-ledger__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-gray-200);
}
.trust-ledger__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: var(--color-white);
}
.trust-ledger__chip--do { background: var(--color-success-dark); }
.trust-ledger__chip--never { background: var(--color-danger); }
.trust-ledger__h {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-700);
  margin: 0;
}
.trust-ledger__list { list-style: none; margin: 0; padding: 0; }
.trust-ledger__list li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-gray-800);
  border-top: 1px solid var(--color-gray-100);
}
.trust-ledger__list li:first-child { border-top: none; }
.trust-ledger__list li i { position: absolute; left: 0; top: 13px; font-size: 0.75rem; }
.trust-ledger__col--do li i { color: var(--color-success-dark); }
.trust-ledger__col--never li i { color: var(--color-danger); }
.trust-ledger__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  text-align: center;
  font-style: italic;
}

/* ── The seal (embossed stamp, straddles the sheet corner + dark) ── */
.trust-seal {
  position: absolute;
  top: -22px;
  right: -16px;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-300);
  color: var(--color-gray-700);
  transform: rotate(-8deg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.trust-seal__ring {
  position: absolute;
  inset: 5px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--color-gray-300);
  pointer-events: none;
}
.trust-seal__icon { font-size: 1.35rem; color: var(--color-primary); margin-bottom: 1px; }
.trust-seal__top,
.trust-seal__bot {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--color-gray-600);
}
.trust-seal__top { margin-top: 2px; }

/* ============================================================== */
/* Totals — the ruled accounting tally                             */
/* ============================================================== */
.trust-tally { padding: 34px 0 36px; }
.trust-tally__caption {
  display: block;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: 18px;
}
.trust-tally__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 3px double var(--color-gray-300);
}
.trust-tally__item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.trust-tally__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-gray-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-tally__plus { color: var(--color-primary); }
.trust-tally__num--word { color: var(--color-danger); letter-spacing: 0.02em; }
.trust-tally__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* ============================================================== */
/* Numbered articles (clauses)                                     */
/* ============================================================== */
.trust-article__head {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 4px 16px;
  margin-bottom: 24px;
}
.trust-article__index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.trust-article__index--quiet {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: 8px;
}
.trust-article__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.18;
}
.trust-article__lede {
  font-size: 0.9688rem;
  line-height: 1.55;
  color: var(--color-gray-500);
  margin: 6px 0 0;
}
.trust-article__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 0;
  max-width: 66ch;
  padding-left: 72px;
}
.trust-clause__head { margin-bottom: 26px; }

/* ── How it works: hanging-number steps ── */
.trust-steps { list-style: none; margin: 0; padding-left: 72px; }
.trust-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--color-gray-200);
}
.trust-step:first-child { border-top: none; padding-top: 0; }
.trust-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.trust-step__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-gray-900);
  margin: 4px 0 6px;
}
.trust-step__body p { font-size: 0.9688rem; line-height: 1.6; color: var(--color-gray-600); margin: 0; }

/* ── Founder statement (white sheet on the indigo band) ── */
.trust-statement {
  margin-left: 72px;
  padding: 26px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.trust-statement__body p { font-size: 1.0625rem; line-height: 1.7; color: var(--color-gray-800); margin: 0 0 14px; }
.trust-statement__body p:last-child { margin-bottom: 0; }
.trust-statement__sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-gray-200);
}
.trust-statement__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.trust-statement__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-gray-900);
  font-size: 0.95rem;
}
.trust-statement__name small { font-weight: 500; color: var(--color-gray-500); font-size: 0.8125rem; }

/* ============================================================== */
/* Featured testimony                                              */
/* ============================================================== */
.trust-testimony { max-width: 720px; margin: 0 auto; text-align: center; }
.trust-testimony__mark { color: var(--color-primary); opacity: 0.32; font-size: 1.5rem; margin-bottom: 12px; }
.trust-testimony__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-gray-900);
  margin: 0 0 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trust-testimony__author { display: inline-flex; align-items: center; gap: 10px; }
.trust-testimony__name { font-size: 0.9375rem; font-weight: 700; color: var(--color-gray-700); }

/* Avatar */
.trust-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--color-gray-200);
  color: var(--color-gray-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}
.trust-avatar--sm { width: 40px; height: 40px; font-size: 0.95rem; }
.trust-avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }

/* ============================================================== */
/* Creator statements grid                                         */
/* ============================================================== */
.trust-statements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.trust-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.trust-card:hover { transform: translateY(-3px); border-color: var(--color-gray-300); box-shadow: var(--shadow-md); }
.trust-card__mark { color: var(--color-primary); opacity: 0.28; font-size: 1.05rem; margin-bottom: 10px; }
.trust-card__text {
  font-size: 0.9688rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-gray-800);
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trust-card__author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.trust-card__name { font-size: 0.9375rem; font-weight: 700; color: var(--color-gray-900); }

/* ============================================================== */
/* FAQ                                                             */
/* ============================================================== */
.trust-faq { padding-left: 72px; }
.trust-faq__item { padding: 18px 0; border-top: 1px solid var(--color-gray-200); }
.trust-faq__item:first-child { border-top: none; padding-top: 0; }
.trust-faq__q {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 8px;
}
.trust-faq__a { font-size: 0.9688rem; line-height: 1.65; color: var(--color-gray-700); margin: 0; max-width: 70ch; }

/* ============================================================== */
/* Mid sign-off                                                    */
/* ============================================================== */
.trust-signoff { text-align: center; max-width: 620px; margin: 0 auto; }
.trust-signoff__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-gray-900);
  margin: 0 0 20px;
}
.trust-signoff__sub { display: block; font-size: 0.8125rem; color: var(--color-gray-500); margin-top: 14px; }

/* ============================================================== */
/* Closing signature block (the dark close)                        */
/* ============================================================== */
.trust-final {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-900);
  padding: 68px 16px;
}
.trust-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--color-primary-rgb), 0.20), transparent 70%);
  pointer-events: none;
}
.trust-final__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; text-align: center; }
.trust-final__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0 0 12px;
  line-height: 1.12;
}
.trust-final__sub { font-size: 1.0625rem; color: var(--color-gray-400); line-height: 1.6; margin: 0 0 26px; }
.trust-final__hint { display: block; font-size: 0.8125rem; color: var(--color-gray-500); margin-top: 14px; }
.trust-final__legal { font-size: 0.8125rem; color: var(--color-gray-400); line-height: 1.55; margin: 28px auto 0; max-width: 520px; }

/* ============================================================== */
/* Ink-in motion (JS-gated; safe when JS/IO/reduced-motion absent)  */
/* ============================================================== */
.trust-js .trust-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.trust-js .trust-reveal.is-in { opacity: 1; transform: none; }
.trust-js .trust-hero__grid > .trust-reveal { transition-delay: 120ms; }
.trust-js .trust-statements .trust-reveal:nth-child(2) { transition-delay: 70ms; }
.trust-js .trust-statements .trust-reveal:nth-child(3) { transition-delay: 140ms; }
.trust-js .trust-statements .trust-reveal:nth-child(4) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  .trust-js .trust-reveal { opacity: 1; transform: none; transition: none; }
  .trust-card { transition: none; }
}

/* ============================================================== */
/* Tablet — collapse the hero to one column                        */
/* ============================================================== */
@media (max-width: 991px) {
  .trust-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-hero__lead { max-width: 640px; }
  .trust-ledger { max-width: 640px; }
}

/* ============================================================== */
/* Mobile                                                          */
/* ============================================================== */
@media (max-width: 767px) {
  .trust-band { padding: 36px 0; }
  .trust-hero { padding: 30px 0 40px; }
  .trust-hero__title { font-size: 1.85rem; }
  .trust-hero__sub { font-size: 1rem; margin-bottom: 18px; }
  .trust-masthead { margin-bottom: 22px; padding-bottom: 14px; }
  .trust-masthead__label, .trust-masthead__meta { font-size: 0.625rem; letter-spacing: 0.1em; }
  .trust-hero__chips { margin-bottom: 24px; }
  .trust-hero__cta { align-items: stretch; }
  .trust-hero__cta .btn-youtube { width: 100%; justify-content: center; }
  .trust-hero__hint { text-align: center; }

  .trust-ledger__sheet { grid-template-columns: 1fr; }
  .trust-ledger__col { padding: 18px 16px 6px; }
  .trust-ledger__col--never { border-left: none; border-top: 1px solid var(--color-gray-200); }
  .trust-seal { width: 72px; height: 72px; top: -16px; right: 4px; }
  .trust-seal__icon { font-size: 1.05rem; }
  .trust-seal__top, .trust-seal__bot { font-size: 0.5rem; }

  .trust-tally { padding: 30px 0 32px; }
  .trust-tally__row { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

  .trust-article__head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 18px; }
  .trust-article__index { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0; }
  .trust-article__text { padding-left: 0; }
  .trust-steps { padding-left: 0; }
  .trust-statement { margin-left: 0; padding: 22px 18px; }
  .trust-faq { padding-left: 0; }

  .trust-statements { grid-template-columns: 1fr; gap: 12px; }
  .trust-final { padding: 50px 16px; }
}

@media (max-width: 360px) {
  .trust-seal { width: 64px; height: 64px; top: -14px; }
}
