/* BDStall — pages/affiliate.css */

/* ── Page shell ── */
.aff-page {
  background: #F7F6F2;
  min-height: 60vh;
  padding: 24px 16px 56px;
}

.aff-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Shared buttons ── */
.aff-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.aff-btn--primary {
  background: #149A49;
  color: white;
  border-color: #149A49;
}
.aff-btn--primary:hover { background: #0D7A3E; border-color: #0D7A3E; color: white; }

.aff-btn--ghost {
  background: white;
  color: #3A3A38;
  border-color: #D3D1C7;
}
.aff-btn--ghost:hover { background: #F7F6F2; border-color: #149A49; color: #149A49; }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */

.aff-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: white;
  border-radius: 16px;
  border: 1px solid #E8E8E4;
  padding: 40px;
  margin-bottom: 20px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .aff-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }
}

.aff-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #149A49;
  background: #EAF8EE;
  border: 1px solid #B9EDD0;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.aff-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1C1C1A;
  line-height: 1.25;
  margin: 0 0 12px;
}

@media (max-width: 760px) {
  .aff-hero-title { font-size: 1.375rem; }
}

.aff-hero-sub {
  font-size: 0.9375rem;
  color: #6B6558;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 480px;
}

.aff-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aff-hero-img {
  border-radius: 10px;
  overflow: hidden;
  background: #F0EFE9;
}

.aff-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ══════════════════════════════════════
   HIGHLIGHTS
   ══════════════════════════════════════ */

.aff-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 860px) { .aff-highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .aff-highlights { grid-template-columns: 1fr 1fr; } }

.aff-highlight-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #E8E8E4;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.aff-highlight-card:hover {
  border-color: #B9EDD0;
  box-shadow: 0 4px 16px rgba(20,154,73,0.08);
}

.aff-highlight-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 10px;
}

.aff-highlight-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0D7A3E;
  margin-bottom: 4px;
}

.aff-highlight-label {
  font-size: 0.8125rem;
  color: #6B6558;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */

.aff-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #E8E8E4;
  padding: 28px 32px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .aff-section { padding: 20px 16px; }
}

.aff-section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1C1C1A;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0EFE9;
}

/* ── How it works steps ── */
.aff-steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 640px) {
  .aff-steps { flex-direction: column; }
  .aff-step-arrow { display: none; }
}

.aff-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.aff-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EAF8EE;
  border: 2px solid #B9EDD0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #149A49;
}

.aff-step-body {}

.aff-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1C1C1A;
  margin: 0 0 4px;
}

.aff-step-desc {
  font-size: 0.875rem;
  color: #6B6558;
  line-height: 1.55;
  margin: 0;
}

.aff-step-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #C5C2B8;
  padding-top: 6px;
}

/* ── FAQ ── */
.aff-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aff-faq-item {
  border: 1px solid #ECEAE4;
  border-radius: 8px;
  overflow: hidden;
  background: #FAFAF9;
}

.aff-faq-q {
  list-style: none;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1C1C1A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.aff-faq-q::-webkit-details-marker { display: none; }

.aff-faq-q::after {
  content: '+';
  font-size: 1.125rem;
  font-weight: 400;
  color: #9B978E;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.aff-faq-item[open] .aff-faq-q::after { content: '−'; }

.aff-faq-item[open] .aff-faq-q {
  border-bottom: 1px solid #ECEAE4;
  background: white;
}

.aff-faq-a {
  padding: 12px 16px 14px;
  font-size: 0.875rem;
  color: #6B6558;
  line-height: 1.65;
  background: white;
}

/* ══════════════════════════════════════
   BOTTOM CTA BAR
   ══════════════════════════════════════ */

.aff-cta-bar {
  background: #149A49;
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .aff-cta-bar { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
}

.aff-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-cta-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: white;
}

.aff-cta-text span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.aff-cta-bar .aff-btn--primary {
  background: white;
  color: #149A49;
  border-color: white;
}
.aff-cta-bar .aff-btn--primary:hover {
  background: #EAF8EE;
  border-color: #EAF8EE;
  color: #0D7A3E;
}
