/*
 * Affiliate programme page (/affiliate).
 *
 * Tokens only (--landing-*), so the page tracks both themes without a second
 * palette to keep in sync. Deliberately plain: this page is read by people
 * deciding whether to trust us with a placement, and a wall of gradients reads
 * as a pitch rather than an offer.
 */

.affiliate-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.affiliate-page {
  color: var(--landing-text);
  padding-bottom: 5rem;
}

/* --- Hero ------------------------------------------------------------- */

.affiliate-hero {
  padding: 4.5rem 0 2.5rem;
  background: var(--landing-bg-section);
  border-bottom: 1px solid var(--landing-border);
  margin-bottom: 2.5rem;
}

.affiliate-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--landing-accent);
  margin: 0 0 0.75rem;
}

.affiliate-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--landing-text);
}

.affiliate-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--landing-text-secondary);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.affiliate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--anim-duration-fast) var(--anim-ease-standard);
}

.affiliate-btn-primary {
  background: var(--landing-btn-primary-gradient);
  color: var(--landing-btn-primary-text);
  box-shadow: var(--landing-btn-primary-shadow);
}

.affiliate-btn-primary:hover {
  box-shadow: var(--landing-btn-primary-shadow-hover);
}

.affiliate-btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.affiliate-btn-ghost {
  background: var(--landing-btn-secondary-bg);
  border-color: var(--landing-btn-secondary-border);
  color: var(--landing-btn-secondary-text);
}

.affiliate-btn-ghost:hover {
  background: var(--landing-btn-secondary-hover-bg);
  border-color: var(--landing-btn-secondary-hover-border);
}

/* --- Facts ------------------------------------------------------------ */

.affiliate-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.affiliate-fact {
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  background: var(--landing-bg-card);
  padding: 1.25rem 1.35rem;
}

.affiliate-fact-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--landing-text);
}

.affiliate-fact-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--landing-text-secondary);
}

/* --- Sections --------------------------------------------------------- */

.affiliate-section {
  margin-bottom: 3rem;
}

.affiliate-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 1.25rem;
  color: var(--landing-text);
}

.affiliate-section h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--landing-text);
}

.affiliate-steps {
  list-style: none;
  counter-reset: affiliate-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.affiliate-steps > li {
  counter-increment: affiliate-step;
  position: relative;
  padding-left: 3rem;
}

.affiliate-steps > li::before {
  content: counter(affiliate-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--landing-accent);
  background: var(--landing-accent-soft);
}

.affiliate-steps p,
.affiliate-plain li {
  color: var(--landing-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.affiliate-plain {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.7rem;
}

.affiliate-plain strong {
  color: var(--landing-text);
}

/* --- Form ------------------------------------------------------------- */

.affiliate-form-intro {
  color: var(--landing-text-secondary);
  margin: 0 0 1.25rem;
}

.affiliate-form {
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  background: var(--landing-bg-card);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.affiliate-field {
  display: grid;
  gap: 0.35rem;
}

.affiliate-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--landing-text);
}

.affiliate-field input,
.affiliate-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--landing-border);
  background: var(--landing-bg-subtle);
  color: var(--landing-text);
  font: inherit;
  font-size: 0.95rem;
}

.affiliate-field input:focus,
.affiliate-field textarea:focus {
  outline: 2px solid var(--landing-accent);
  outline-offset: 1px;
  border-color: var(--landing-accent);
}

.affiliate-field textarea {
  resize: vertical;
  min-height: 5rem;
}

/*
 * Honeypot. Off-screen rather than display:none — some bots skip hidden
 * inputs but happily fill a field that is technically in the layout.
 * aria-hidden + tabindex="-1" on the markup keep it away from real users
 * and screen readers.
 */
.affiliate-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.affiliate-form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--landing-text-secondary);
  min-height: 1.25rem;
}

.affiliate-form-note.is-error {
  color: var(--landing-danger, #d33);
}

.affiliate-form-legal {
  margin: 0;
  font-size: 0.8rem;
  color: var(--landing-text-secondary);
}

.affiliate-form-legal a {
  color: var(--landing-accent);
}
