/* affiliates.css — the public /affiliates page (affiliates.php). */
.aff { --aff-ink: var(--text, #0f172a); }
.aff-hero { position: relative; overflow: hidden; padding: 96px 0 72px; color: #fff; text-align: center;
  background: radial-gradient(900px 400px at 85% -10%, rgba(52,211,153,.35), transparent 60%), radial-gradient(700px 360px at 0% 110%, rgba(59,130,246,.35), transparent 60%), linear-gradient(135deg, #052e2b, #0b1f3a 60%, #0b1220); }
.aff-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .85rem; }
.aff-hero h1 { margin: 22px auto 16px; max-width: 900px; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.aff-hero h1 span { background: linear-gradient(90deg, #6ee7b7, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aff-hero p { max-width: 680px; margin: 0 auto 28px; font-size: 1.12rem; color: rgba(255,255,255,.82); }
.aff-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.aff-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; margin: 44px auto 0; padding: 0; list-style: none; }
.aff-facts li { padding: 16px 10px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.aff-facts b { display: block; font-size: 1.5rem; font-weight: 800; }
.aff-facts span { font-size: .82rem; color: rgba(255,255,255,.7); }
.aff-sec { padding: 72px 0; }
.aff-alt { background: var(--surface, #f8fafc); }
.aff-sec h2, .aff-end h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; text-align: center; margin-bottom: 34px; }
.aff-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aff-steps > div, .aff-who > div { padding: 24px; border-radius: 18px; background: var(--bg, #fff); border: 1px solid var(--border, #e5e7eb); }
.aff-steps i { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #dcfce7; color: #059669; font-size: 1.1rem; margin-bottom: 14px; }
.aff-steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.aff-steps p { margin: 0; color: var(--muted, #64748b); font-size: .95rem; }
.aff-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.aff-two h2 { text-align: left; }
.aff-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.aff-list li { display: flex; gap: 12px; font-size: 1.02rem; }
.aff-list i { color: #059669; margin-top: 4px; }
.aff-calc { padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #0b1f3a, #052e2b); color: #fff; }
.aff-calc h3 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.aff-calc table { width: 100%; margin: 14px 0; border-collapse: collapse; }
.aff-calc td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.aff-calc td:last-child { text-align: right; font-weight: 800; color: #6ee7b7; white-space: nowrap; }
.aff-calc p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); }
.aff-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aff-who i { font-size: 1.5rem; color: #3b82f6; margin-bottom: 12px; display: block; }
.aff-who b { display: block; margin-bottom: 4px; }
.aff-who span { color: var(--muted, #64748b); font-size: .92rem; }
.aff-faq { border: 1px solid var(--border, #e5e7eb); border-radius: 14px; background: var(--bg, #fff); margin-bottom: 10px; padding: 0 20px; }
.aff-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; }
.aff-faq summary::after { content: '+'; float: right; font-weight: 400; color: var(--muted, #64748b); }
.aff-faq[open] summary::after { content: '–'; }
.aff-faq p { margin: 0 0 18px; color: var(--muted, #64748b); }
.aff-end { padding: 80px 0; text-align: center; background: radial-gradient(800px 300px at 50% 0, rgba(52,211,153,.18), transparent 70%); }
.aff-end p { color: var(--muted, #64748b); margin: -18px 0 24px; }
@media (max-width: 900px) { .aff-steps, .aff-who { grid-template-columns: repeat(2, 1fr); } .aff-two { grid-template-columns: 1fr; } .aff-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aff-steps, .aff-who { grid-template-columns: 1fr; } .aff-hero { padding: 72px 0 56px; } }
/* The site's global heading / button colours must not win inside the dark blocks. */
main.aff .aff-hero h1, main.aff .aff-calc h3 { color: #fff !important; }
main.aff .aff-hero .btn-outline-light { color: #fff !important; border-color: rgba(255,255,255,.55) !important; background: transparent !important; }
main.aff .aff-hero .btn-outline-light:hover { background: rgba(255,255,255,.12) !important; }
main.aff .aff-cta .btn { padding: 12px 24px !important; font-size: 1.05rem !important; font-weight: 700; border-radius: 10px; }
