/* Brokerage How It Works — Scoped under .common-brokerage-how-it-works */
.common-brokerage-how-it-works {
  --bhiw-bg: oklch(99% 0.002 240);
  --bhiw-surface: oklch(100% 0 0);
  --bhiw-fg: oklch(18% 0.02 250);
  --bhiw-muted: oklch(54% 0.01 250);
  --bhiw-border: oklch(92% 0.005 250);
  --bhiw-exclusive: oklch(25% 0.04 255);
  --bhiw-accent: oklch(58% 0.20 30);
  --bhiw-font-display: 'Playfair Display', Georgia, serif;
  --bhiw-font-strong: 'Montserrat', sans-serif;
  --bhiw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --bhiw-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.common-brokerage-how-it-works.py {
  padding: 100px 0;
}

.common-brokerage-how-it-works.bg-pattern-grid {
  background-image:
    linear-gradient(to right, oklch(54% 0.01 250 / 8%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(54% 0.01 250 / 8%) 1px, transparent 1px);
  background-size: 48px 48px;
}

.common-brokerage-how-it-works .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.common-brokerage-how-it-works .section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 48px;
  margin-bottom: 48px;
}

.common-brokerage-how-it-works .section-header-text {
  min-width: 0;
}

.common-brokerage-how-it-works .section-label {
  font-family: var(--bhiw-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bhiw-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.common-brokerage-how-it-works .section-title {
  font-family: var(--bhiw-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bhiw-exclusive);
  margin-bottom: 24px;
}

.common-brokerage-how-it-works .section-title strong {
  font-family: var(--bhiw-font-strong);
  font-weight: 800;
}

.common-brokerage-how-it-works .section-title em {
  font-family: var(--bhiw-font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--bhiw-exclusive);
}

.common-brokerage-how-it-works .section-title .accent-dot {
  color: var(--bhiw-accent);
}

.common-brokerage-how-it-works .section-desc {
  font-size: 16px;
  color: var(--bhiw-muted);
  max-width: 650px;
  margin-bottom: 0;
}

.common-brokerage-how-it-works .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}

.common-brokerage-how-it-works .btn-primary {
  background-color: var(--bhiw-accent);
  color: #fff;
}

.common-brokerage-how-it-works .btn-cta-inline {
  flex-shrink: 0;
  display: inline-flex;
}

.common-brokerage-how-it-works .btn-cta-mobile {
  display: none;
  margin-bottom: 24px;
}

/* Bento Grid for How It Works - Premium visual layout */
.common-brokerage-how-it-works .bento-steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px auto 0;
  max-width: 1100px;
}

.common-brokerage-how-it-works .bento-step-card {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
  border: 1px solid var(--bhiw-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.common-brokerage-how-it-works .bento-step-card.bento-large {
  grid-column: span 2;
}

.common-brokerage-how-it-works .bento-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.common-brokerage-how-it-works .bento-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
  transition: background 0.3s;
}

.common-brokerage-how-it-works .bento-step-card:hover .bento-overlay-gradient {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.common-brokerage-how-it-works .bento-card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.common-brokerage-how-it-works .bento-card-num {
  font-family: var(--bhiw-font-display);
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
  transition: color 0.3s;
  text-shadow: none;
}

.common-brokerage-how-it-works .bento-step-card:hover .bento-card-num {
  color: var(--bhiw-accent);
}

.common-brokerage-how-it-works .bento-card-content h3 {
  font-family: var(--bhiw-font-display);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.common-brokerage-how-it-works .bento-card-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
}

@media (max-width: 900px) {
  .common-brokerage-how-it-works .bento-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .common-brokerage-how-it-works .bento-step-card.bento-large {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .common-brokerage-how-it-works .bento-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .common-brokerage-how-it-works .bento-step-card.bento-large {
    grid-column: span 1;
  }
  .common-brokerage-how-it-works .bento-step-card {
    height: 320px;
  }
  .common-brokerage-how-it-works .bento-card-content {
    padding: 24px;
  }
  .common-brokerage-how-it-works .bento-card-num {
    font-size: 32px;
  }
  .common-brokerage-how-it-works .bento-card-content h3 {
    font-size: 18px;
  }
  .common-brokerage-how-it-works .bento-card-content p {
    font-size: 13px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .common-brokerage-how-it-works.py { padding: 60px 0; }
  .common-brokerage-how-it-works .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .common-brokerage-how-it-works .btn-cta-inline { display: none !important; }
  .common-brokerage-how-it-works .btn-cta-mobile { display: inline-flex !important; }
}