/* Affiliates page. Visual language matches the homepage (brand v2):
   gradient hero + signal green phrase + glowing white pill + waveform,
   numbered rows, white cards on the gradient band. Section order follows
   the ReciMe ambassador page (WinWinKit customer pattern).
   Nav, .wrap and .eyebrow base come from blog.css; tokens and the
   .final-cta block from colors_and_type.css. */
body { background: var(--halo-surface); color: var(--halo-dark); font-family: var(--font-brand); margin: 0; }
.aff a { color: inherit; }
.aff .signal { color: #00FF33; }

/* ---------- Hero ---------- */
.aff-hero {
  position: relative;
  background: var(--grad-brand);
  color: #FFFFFF;
  padding: 150px 0 72px;
  overflow: hidden;
}
.aff-hero .wrap { position: relative; z-index: 2; }
.aff-hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
@media (max-width: 1000px) { .aff-hero-grid { grid-template-columns: 1fr; } .aff-shield { display: none; } }
.aff-status {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px; margin: 0 0 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.aff-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #00FF33; box-shadow: 0 0 0 3px rgba(0,255,51,0.22); }
.aff-hero h1 {
  margin: 0;
  font: 700 clamp(40px, 5.4vw, 76px)/1.04 var(--font-brand);
  letter-spacing: -0.025em;
  color: #FFFFFF;
}
.aff-hero .lede {
  margin: 36px 0 0; max-width: 600px;
  font: 400 clamp(19px, 1.6vw, 24px)/1.45 var(--font-brand);
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.78);
}
.aff-cta { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.aff-cta .cta-col { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.aff-cta .reassure { font: 400 14px/1 var(--font-brand); color: rgba(255,255,255,0.6); }
.aff-pill, .aff-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px;
  border-radius: 999px;
  font: 600 16px/1 var(--font-brand); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: filter 160ms var(--ease-out), transform 120ms var(--ease-out), background 160ms var(--ease-out);
}
.aff-pill { background: #FFFFFF; color: var(--halo-dark) !important; box-shadow: 0 0 44px 6px rgba(255,255,255,0.35); }
.aff-pill:hover { filter: brightness(0.96); }
.aff-pill:active, .aff-ghost:active { transform: scale(0.98); }
.aff-ghost { background: transparent; color: #FFFFFF !important; border: 1px solid rgba(255,255,255,0.28); }
.aff-ghost:hover { background: rgba(255,255,255,0.08); }
/* Phones: both buttons on one line, the primary takes the slack (homepage rule) */
@media (max-width: 720px) {
  .aff-cta { flex-wrap: nowrap; gap: 12px; }
  .aff-cta .cta-col { flex: 1 1 auto; min-width: 0; }
  .aff-cta .aff-pill { width: 100%; }
  .aff-pill, .aff-ghost { height: 52px; padding: 0 16px; font-size: 15px; gap: 8px; }
  .aff-ghost { flex: 0 0 auto; }
}
.aff-pill .arrow, .btn-final .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.aff-pill:hover .arrow, .btn-final:hover .arrow { transform: translateX(3px); }

.aff-shield { position: relative; max-width: 360px; margin: 0 auto; }
.aff-shield::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(circle, rgba(74,77,255,0.55) 0%, rgba(74,77,255,0) 65%);
  z-index: -1;
}
.aff-shield img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.35));
  animation: aff-float 6s var(--ease-out, ease-in-out) infinite;
}
@keyframes aff-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .aff-shield img { animation: none; } }

/* ---------- Sections ---------- */
.aff-section { position: relative; padding: 120px 0; overflow: hidden; }
@media (max-width: 720px) { .aff-section { padding: 88px 0; } }
.aff-surface { background: var(--halo-surface); }
.aff-bg { background: var(--halo-bg); }
.aff-gradient { background: var(--grad-brand); color: #FFFFFF; }
.aff-section .eyebrow { color: rgba(22,0,124,0.55); }
.aff-gradient .eyebrow { color: rgba(255,255,255,0.7); }
.aff-title {
  margin: 0 0 40px;
  font: 700 clamp(38px, 5vw, 68px)/1.03 var(--font-brand);
  letter-spacing: -0.025em;
  color: var(--halo-dark);
  max-width: 900px;
}
.aff-gradient .aff-title { color: #FFFFFF; }
.aff-lede { margin: -12px 0 40px; max-width: 760px; font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--font-brand); color: rgba(22,0,124,0.78); }
.aff-lede.aff-lede-last { margin-bottom: 0; }

/* Numbered rows (homepage "How it works" language) */
.aff-rows { max-width: 900px; }
.aff-rows .row {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(22,0,124,0.15);
  align-items: baseline;
}
.aff-rows .row:first-child { border-top: 1px solid rgba(22,0,124,0.15); }
.aff-rows .n { font: 500 14px/1 var(--font-mono); letter-spacing: 0.14em; color: rgba(22,0,124,0.55); }
.aff-rows .t { font: 400 clamp(18px, 1.7vw, 22px)/1.5 var(--font-brand); letter-spacing: -0.005em; color: rgba(22,0,124,0.8); }
.aff-rows .t b { color: var(--halo-dark); font-weight: 600; }
@media (max-width: 560px) { .aff-rows .row { grid-template-columns: 1fr; gap: 10px; } }
/* White cards on the gradient band (pricing-card language) */
.aff-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .aff-cards { grid-template-columns: 1fr; } }
.aff-card {
  background: #FFFFFF; color: var(--halo-dark);
  border-radius: 28px; padding: 40px 36px;
  box-shadow: var(--shadow-float);
}
.aff-card .k { margin: 0 0 28px; font: 500 13px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--halo-accent); }
.aff-card h3 { margin: 0 0 14px; font: 700 24px/1.2 var(--font-brand); letter-spacing: -0.02em; }
.aff-card p:last-child { margin: 0; font: 400 17px/1.5 var(--font-brand); color: rgba(22,0,124,0.75); }

/* Chips */
.aff-chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aff-chips li {
  padding: 12px 20px; border-radius: 999px;
  background: var(--halo-bg); border: 1px solid rgba(22,0,124,0.10);
  font: 600 16px/1 var(--font-brand); color: var(--halo-dark);
}
.aff-chips-muted li {
  background: transparent; border-color: rgba(22,0,124,0.15);
  font: 500 13px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(22,0,124,0.6); padding: 10px 16px;
}

/* Closing CTA uses the shared .final-cta block */
.final-cta { margin-top: 0; }
.final-cta .sub a { color: #FFFFFF; }
