/* ==========================================================================
   MASSTREK — How It Works page
   All 7 sections confirmed against Figma screenshots: Hero, Community
   Savings Made Easy (synergy diagram), From Registration to Successful
   Payouts (6-step journey), Designed for Trusted Communities (features),
   Built on Trust, closing CTA, footer.
   ========================================================================== */

.how-hero {
  background-image: url('../images/how-it-works-bg.png');
  --page-hero-overlay:
    linear-gradient(270deg, rgba(217, 217, 217, 0) 0%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(89.79deg, #000000 -131.35%, rgba(0, 0, 0, 0) 99.81%);
}

.how-hero .page-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(177deg, #D3A45A 11.73%, #FFFFFF 50%, #D3A45A 88.27%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.82;
}

.how-hero .page-hero__eyebrow-dash {
  background: var(--color-gold-1);
}

.how-hero .page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(2.25rem, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--color-white);
}

.how-hero__content {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
}

/* ==========================================================================
   Community Savings Made Easy — light "synergy" card (3-node flow diagram)
   + text column. New component, no existing equivalent to reuse.
   ========================================================================== */

.synergy-section {
  background: var(--color-white);
  padding-block: 128px;
}

.synergy-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 64px;
  align-items: center;
}

.synergy-card {
  background: linear-gradient(171deg, #FFFFFF 14.41%, #F4F7FC 85.59%);
  border: 1px solid rgba(11, 33, 64, 0.08);
  box-shadow: 0 30px 30px rgba(11, 33, 64, 0.12);
  border-radius: 20px;
  padding: 28px;
}

.synergy-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #0B2140;
  margin-bottom: 4px;
}

.synergy-card__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(11, 33, 64, 0.55);
  margin-bottom: 24px;
}

.synergy-flow {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.synergy-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid rgba(11, 33, 64, 0.08);
  border-radius: 12px;
  padding: 16px 10px;
}

.synergy-node--center {
  background: var(--color-navy);
  border-color: var(--color-navy);
  padding-block: 20px;
}

.synergy-node__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
}

.synergy-node--center .synergy-node__avatar {
  background: var(--color-gold-1);
}

.synergy-node--center .synergy-node__avatar svg {
  width: 16px;
  height: 16px;
  color: var(--color-navy);
}

.synergy-node__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #0B2140;
}

.synergy-node--center .synergy-node__label {
  color: var(--color-white);
}

.synergy-node__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: rgba(11, 33, 64, 0.5);
}

.synergy-node--center .synergy-node__sub {
  color: var(--color-gold-1);
}

.synergy-connector {
  flex: 0 0 32px;
  height: 0;
  border-top: 2px dotted rgba(11, 33, 64, 0.25);
  margin-inline: 4px;
}

.synergy-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 33, 64, 0.08);
}

.synergy-caption svg {
  width: 16px;
  height: 16px;
  color: rgba(11, 33, 64, 0.4);
  flex-shrink: 0;
}

.synergy-caption span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(11, 33, 64, 0.5);
}

@media (max-width: 900px) {
  .synergy-section {
    padding-block: 72px;
  }

  .synergy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .synergy-card {
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .synergy-node__sub {
    display: none;
  }
}

/* ==========================================================================
   From Registration to Successful Payouts — 6-step journey, reusing
   .why-section / .dcard--dark from organizers.css with a plain gold number
   (.step-num) in place of an icon tile, per the Figma screenshot.
   ========================================================================== */

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--color-gold-1);
  margin-bottom: 12px;
}

/* ==========================================================================
   Designed for Trusted Communities — reuses .platform-features / .pf-card
   (about.css) as-is; only the icon presentation differs from the About page
   (a light tile behind the icon here, vs. a bare icon there), so that gets
   one small new class instead of touching the shared .pf-card rules.
   ========================================================================== */

.pf-card__icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F1F3F7;
  margin-bottom: 20px;
}

.pf-card__icon-tile img {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Built on Trust — reuses .payment-section / .payment-grid / .pay-card
   (organizers.css); card sits first in source order here so it lands on
   the left (text is on the right, the mirror of the Payment Tracking
   layout). Row content is a stacked title/timestamp instead of an avatar,
   plus a green "Verified" status not used elsewhere.
   ========================================================================== */

.pay-card__head-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-gold-1);
}

.pay-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-row-info__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.pay-status--verified {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}
