/* ==========================================================================
   Crossdeck Trust — /trust marketing explainer
   Founder-approved palette. Reuses the shared site chrome (.site-header, .btn,
   site-footer.js) from /styles.css; this file owns the page body + sections.
   ========================================================================== */
.trust-body {
  --cream: #f4f0e8;
  --charcoal: #191310;
  --ember: #ec5a2a;
  --ember-soft: rgba(236, 90, 42, 0.12);
  --ink: #241c18;
  --muted: #7c7067;
  --line: rgba(36, 28, 24, 0.1);
  --line-soft: rgba(36, 28, 24, 0.06);
  --card: #fffdf9;

  background: var(--cream);
  color: var(--ink);
}

/* Keep the shared header on the cream ground */
.trust-body .site-header {
  background: rgba(244, 240, 232, 0.82);
}

.trust-body main {
  display: block;
}

/* Shared layout shell */
.trust-shell {
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
}

.trust-section {
  padding: 84px 0;
}
.trust-section + .trust-section {
  padding-top: 24px;
}

.trust-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.trust-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--ember-soft);
}

.trust-body h1,
.trust-body h2,
.trust-body h3 {
  color: var(--ink);
  font-family: var(--ds-display, "Inter", system-ui, sans-serif);
  letter-spacing: -0.02em;
  font-feature-settings: "ss01", "cv11";
}
.trust-body h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 640;
  margin: 0 0 16px;
  max-width: 18ch;
}
.trust-body .accent {
  color: var(--ember);
}

/* ============ HERO ============ */
.trust-hero {
  padding: 40px 0 20px;
}
.trust-hero-card {
  position: relative;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 26px;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) clamp(28px, 6vw, 88px);
  box-shadow: 0 40px 90px rgba(25, 19, 16, 0.28);
  isolation: isolate;
}
/* faint grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 110% at 70% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 110% at 70% 0%, #000 30%, transparent 78%);
  z-index: -2;
}
/* ember radial glow */
.hero-glow {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(236, 90, 42, 0.4) 0%, rgba(236, 90, 42, 0.14) 34%, transparent 68%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}
.hero-glow.soft {
  opacity: 0.7;
  width: 460px;
  height: 460px;
}

.trust-hero-inner {
  position: relative;
  max-width: 760px;
}
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f4ede6;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.trust-badge-pill svg {
  width: 15px;
  height: 15px;
  color: var(--ember);
}
.trust-hero-card h1 {
  color: #fbf7f1;
  font-family: var(--ds-display, "Inter", system-ui, sans-serif);
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 660;
  margin: 0 0 22px;
}
.trust-hero-sub {
  color: rgba(244, 237, 230, 0.72);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
}

/* ============ WHAT IT IS ============ */
.trust-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.66;
  color: var(--ink);
  max-width: 64ch;
  margin: 0;
}
.trust-lede strong {
  font-weight: 640;
  color: var(--ink);
  box-shadow: inset 0 -0.42em 0 var(--ember-soft);
}

.trust-section-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 44px;
}

/* ============ HOW IT PROTECTS — steps ============ */
.trust-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: none;
}
.trust-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px 24px;
  box-shadow: 0 1px 2px rgba(36, 28, 24, 0.03);
}
/* connector arrows between steps (desktop) */
.trust-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -13px;
  width: 8px;
  height: 8px;
  border-top: 1.6px solid rgba(36, 28, 24, 0.28);
  border-right: 1.6px solid rgba(36, 28, 24, 0.28);
  transform: rotate(45deg);
  z-index: 1;
}
.step-index {
  font-family: var(--ds-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ember);
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 14px 0 16px;
  border-radius: 11px;
  background: var(--ember-soft);
  color: var(--ember);
}
.step-icon svg {
  width: 20px;
  height: 20px;
}
.trust-step h3 {
  font-size: 1.12rem;
  font-weight: 620;
  margin: 0 0 8px;
}
.trust-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.56;
  color: var(--muted);
}

/* The rule — pulled-out callout */
.trust-rule {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
  padding: 30px 34px;
  background: var(--charcoal);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.trust-rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ember);
}
.rule-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ember-soft);
  color: var(--ember);
}
.rule-mark svg {
  width: 24px;
  height: 24px;
}
.trust-rule p {
  margin: 0;
  color: rgba(244, 237, 230, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  align-self: center;
}
.trust-rule strong {
  color: #fbf7f1;
  font-weight: 640;
}
.trust-rule em {
  font-style: normal;
  color: var(--ember);
  font-weight: 600;
}

/* ============ THE BADGE — promise grid ============ */
.trust-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promise-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: 0 1px 2px rgba(36, 28, 24, 0.03);
}
.promise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ember-soft);
  color: var(--ember);
  margin-bottom: 18px;
}
.promise-icon svg {
  width: 22px;
  height: 22px;
}
.promise-card h3 {
  font-size: 1.16rem;
  font-weight: 620;
  margin: 0 0 10px;
}
.promise-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ============ CLOSE ============ */
.trust-close {
  padding-bottom: 96px;
}
.trust-close-card {
  position: relative;
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 24px;
  padding: clamp(52px, 7vw, 84px) clamp(28px, 5vw, 72px);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.trust-close-card h2 {
  color: #fbf7f1;
  max-width: 22ch;
  margin: 0 auto 16px;
}
.trust-close-card p {
  color: rgba(244, 237, 230, 0.74);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 30px;
}
.trust-close-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* warm ghost button for dark card */
.btn-ghost-warm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4ede6;
}
.btn-ghost-warm:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .trust-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-step:not(:last-child)::after {
    display: none;
  }
  .trust-promise-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .trust-section {
    padding: 60px 0;
  }
  .trust-steps {
    grid-template-columns: 1fr;
  }
  .trust-rule {
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px;
  }
}
