/* =========================================================
   brokers.css — /brokers page. Uses the tokens from base CSS (:root).
   Styles for the broker page matching the reference design.
   ========================================================= */
[hidden] {
  display: none !important;
}

.broker-page section[id] {
  scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}

.broker-page h3 {
  margin-top: 0;
}

.broker-hero h1 {
  margin-bottom: .45em;
}

.broker-hero .lead {
  max-width: 62ch;
}

.broker-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.broker-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.broker-highlights .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand-b);
}

.broker-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.broker-hero-visual img, .broker-hero-visual video { /* ADDED: video = converted GIF animation */
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Hero grid responsive styles moved to common.css */

@media (max-width: 479px) {
  .broker-hero {
    padding-bottom: 32px;
  }

  .broker-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .broker-hero .lead {
    font-size: .95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .broker-hero-visual img, .broker-hero-visual video { /* ADDED: video = converted GIF animation */
    max-height: 350px;
  }
}

/* ---------- Supported Brokers Section ---------- */
#supported-brokers .broker-showcase {
  margin-top: 32px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Broker marquee styles moved to common.css */

/* ---------- Why Trade With Us Section ---------- */
#why-trade-with-us .why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.why-card {
  /* Using common card-base styles from common.css */
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-2px);
}

.why-card .ico {
  /* Using common card-icon styles from common.css */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  font-size: 1.25rem;
}

.why-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-80);
}

/* ---------- Why Trade With Us Section ---------- */
#why-trade-with-us .why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 639px) {
  #why-trade-with-us .why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
  }

  #why-trade-with-us .why-card {
    min-width: 0;
    padding: 20px;
  }

  #why-trade-with-us .why-card>div {
    min-width: 0;
  }
}


/* ---------- Broker CTA Section ---------- */
.broker-cta .cta-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(700px 380px at 0% 0%, var(--brand-a-16), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, var(--brand-b-16), transparent 60%),
    var(--surface);
  overflow: hidden;
}

.cta-copy {
  min-width: 0;
}

.cta-copy .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--grad);
  color: var(--on-brand);
  border-radius: var(--r-lg);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cta-copy h2 {
  margin: 0 0 16px 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.cta-copy .lead {
  margin: 0 0 28px 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-80);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.cta-visual img, .cta-visual video { /* ADDED: video = converted GIF animation */
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

@media (min-width: 720px) {
  .broker-cta .cta-panel {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 639px) {

  .cta-copy h2 {
    font-size: 1.5rem;
  }

  .cta-copy .lead {
    font-size: 0.95rem;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Responsive Styles ---------- */


@media (max-width: 639px) {


  .broker-highlights {
    grid-template-columns: 1fr;
  }

  #why-trade-with-us .why-grid {
    gap: 16px;
    margin-top: 22px;
  }


  .fq-a-in {
    padding: 0 16px 16px 16px;
    font-size: .875rem;
  }
}

.fq-q:focus-visible,
.fq-chev:focus-visible {
  outline: 2px solid var(--brand-b);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .broker-hero::before,
  .broker-hero-grid,
  .why-card,
  .cta-panel,
  .fq-item,
  .fq-q,
  .fq-chev,
  .fq-a {
    transition: none !important;
  }
}