:root {
  --affiliate-purple: #8f5cff;
  --affiliate-purple-light: #b98bff;
  --affiliate-green: #10de21;
  --affiliate-orange: #d98a25;
  --affiliate-background: #050505;
  --affiliate-surface: #121212;
  --affiliate-surface-raised: #181818;
  --affiliate-showcase: #252b38;
  --affiliate-line: rgba(255, 255, 255, .11);
  --affiliate-muted: #9a9a9f;
}

html { scroll-behavior: smooth; }
body { background: var(--affiliate-background); }

.affiliate-hero,
.affiliate-process,
.affiliate-application,
.affiliate-faq {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.affiliate-hero {
  display: grid;
  justify-items: center;
  padding: clamp(46px, 5vw, 70px) 0 clamp(96px, 10vw, 132px);
  text-align: center;
}

.affiliate-hero-copy { max-width: 960px; }

.affiliate-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(3rem, 6.6vw, 5.35rem) !important;
  font-weight: 850;
  letter-spacing: -.06em !important;
  line-height: .98 !important;
}

.affiliate-lead {
  max-width: 820px;
  margin: 30px auto 0;
  color: #b8b8bd;
  font-size: clamp(1.05rem, 1.75vw, 1.3rem);
  line-height: 1.58;
}

.program-card {
  position: relative;
  width: min(100%, 700px);
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--affiliate-line);
  border-radius: 24px;
  background: #0d0d0f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: #fff;
  padding: 32px 34px 0;
  text-align: left;
}

.program-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

.program-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  margin: 30px 0 0;
}

.program-facts div { min-width: 0; }

.program-facts dt {
  margin-bottom: 4px;
  color: #737379;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.program-facts dd {
  margin: 0;
  color: #f4f4f5;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.35;
}

.program-card-image {
  display: block;
  width: calc(100% + 68px);
  max-width: none;
  height: 250px;
  margin: 32px -34px 0;
  object-fit: cover;
  object-position: center;
  border-top: 1px solid var(--affiliate-line);
}

.program-paid {
  position: absolute;
  bottom: 16px;
  left: 24px;
  margin: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .78);
  color: #c9c9ce;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 650;
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.affiliate-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 14px 24px;
  font-size: .96rem;
  font-weight: 800;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.affiliate-button:hover { transform: translateY(-1px); }
.affiliate-button:focus-visible,
.step-link:focus-visible,
.application-submit:focus-visible,
.faq-list summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.affiliate-button-primary {
  background: var(--affiliate-purple);
  box-shadow: 0 16px 36px rgba(143, 92, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff;
}

.affiliate-button-primary:hover { color: #fff; filter: brightness(1.06); }

.affiliate-button-secondary {
  border-color: var(--affiliate-line);
  background: #151515;
  color: #e7e7e9;
}

.affiliate-button-secondary:hover {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.affiliate-showcase {
  display: grid;
  width: 100%;
  min-height: 900px;
  grid-template-columns: minmax(320px, 480px) minmax(0, 590px);
  justify-content: center;
  align-items: center;
  gap: clamp(58px, 8vw, 120px);
  border-block: 1px solid rgba(255, 255, 255, .08);
  background: var(--affiliate-showcase);
  padding: clamp(90px, 11vw, 150px) max(20px, calc((100vw - 1120px) / 2));
}

.example-post {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: #343b4b;
  box-shadow: 0 30px 70px rgba(7, 10, 17, .35);
  color: #f5f6f8;
  padding: 24px;
}

.example-post-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.example-post-header img {
  border-radius: 12px;
  background: #111;
}

.example-post-header strong,
.example-post-header span { display: block; }
.example-post-header strong { font-size: 1rem; }
.example-post-header div span { color: #bcc1cb; font-size: .9rem; }
.example-platform { color: #e7e9ef; font-size: 1.15rem; font-weight: 800; }

.example-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.72;
  border-radius: 14px;
  object-fit: cover;
}

.example-post > p {
  margin: 18px 0;
  color: #f0f1f4;
  font-size: .98rem;
  line-height: 1.55;
}

.example-post footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #bec3cc;
  padding-top: 15px;
  font-size: .84rem;
}

.example-post footer strong { color: #fff; }

.showcase-copy { max-width: 590px; }

.showcase-copy h2 {
  margin: 0;
  color: #dce2ee;
  font-size: clamp(3rem, 6vw, 5.1rem);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.showcase-copy > p {
  max-width: 600px;
  margin: 34px 0 0;
  color: #c2c9d6;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.channel-list li {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: #303746;
  color: #d5d9e1;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 700;
}

.affiliate-process { padding: clamp(105px, 12vw, 158px) 0; }

.affiliate-section-heading { max-width: 780px; }
.affiliate-section-heading-center { margin-inline: auto; text-align: center; }

.affiliate-section-heading h2,
.counts-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.affiliate-section-heading > p {
  margin: 22px 0 0;
  color: var(--affiliate-muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.accent-post { color: var(--affiliate-orange); }
.accent-payout { color: #3bad65; }

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

.process-grid li {
  min-height: 330px;
  border: 1px solid var(--affiliate-line);
  border-radius: 22px;
  background: var(--affiliate-surface);
  padding: clamp(28px, 4vw, 42px);
}

.process-grid li > span {
  display: inline-block;
  margin-bottom: 40px;
  color: #77777f;
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.process-grid h3 {
  margin: 0;
  color: #f4f4f5;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.process-grid p {
  margin: 16px 0 0;
  color: #99999f;
  font-size: 1rem;
  line-height: 1.68;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.step-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--affiliate-line);
  border-radius: 10px;
  background: #1b1b1d;
  color: #e8e8eb;
  margin-top: 24px;
  padding: 9px 14px;
  font: inherit;
  font-size: .86rem;
  font-weight: 760;
  cursor: pointer;
}

.step-link:hover { border-color: rgba(255, 255, 255, .22); color: #fff; }

.affiliate-application {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  align-items: start;
  gap: clamp(52px, 8vw, 100px);
  border-top: 1px solid var(--affiliate-line);
  padding: clamp(110px, 13vw, 170px) 0;
}

.counts-copy { padding-top: 28px; }

.counts-lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: #a0a0a6;
  font-size: 1.15rem;
  line-height: 1.65;
}

.counts-list {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.counts-list p {
  margin: 0;
  color: #96969c;
  font-size: .98rem;
  line-height: 1.72;
}

.counts-list strong { color: #e7e7ea; }

.application-form {
  display: grid;
  border: 1px solid var(--affiliate-line);
  border-radius: 22px;
  background: var(--affiliate-surface-raised);
  padding: clamp(28px, 4vw, 42px);
}

.application-form h3 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 820;
  letter-spacing: -.03em;
}

.application-form > p:first-of-type {
  margin: 10px 0 28px;
  color: #8e8e94;
  line-height: 1.55;
}

.application-form label {
  margin: 18px 0 9px;
  color: #d3d3d7;
  font-size: .9rem;
  font-weight: 720;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  outline: none;
  background: #090909;
  color: #fff;
  padding: 14px 15px;
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.application-form input,
.application-form select { min-height: 52px; }
.application-form textarea { min-height: 128px; resize: vertical; }
.application-form input::placeholder,
.application-form textarea::placeholder { color: #646469; }

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: var(--affiliate-purple-light);
  box-shadow: 0 0 0 3px rgba(143, 92, 255, .16);
}

.field-hint {
  margin: 8px 2px 0;
  color: #68686e;
  font-size: .78rem;
  line-height: 1.5;
}

.affiliate-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.application-status {
  margin: 20px 0 0;
  border: 1px solid rgba(16, 222, 33, .25);
  border-radius: 10px;
  background: rgba(16, 222, 33, .07);
  color: #bdebc1;
  padding: 12px 14px;
  font-size: .86rem;
  line-height: 1.5;
}

.application-status[hidden] { display: none; }

.application-submit {
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  background: var(--affiliate-purple);
  color: #fff;
  padding: 13px 18px;
  font: inherit;
  font-size: .95rem;
  font-weight: 820;
  cursor: pointer;
}

.application-submit:hover { filter: brightness(1.06); }
.application-submit:disabled { cursor: wait; opacity: .65; }

.affiliate-faq { padding: clamp(105px, 12vw, 155px) 0; }

.faq-list {
  max-width: 820px;
  margin: 54px auto 0;
  border-top: 1px solid var(--affiliate-line);
}

.faq-list details { border-bottom: 1px solid var(--affiliate-line); }

.faq-list summary {
  position: relative;
  cursor: pointer;
  color: #f1f1f3;
  padding: 25px 44px 25px 0;
  font-size: 1.03rem;
  font-weight: 740;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  position: absolute;
  top: 23px;
  right: 4px;
  color: #818187;
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  max-width: 720px;
  margin: -4px 0 25px;
  color: #95959b;
  line-height: 1.72;
}

@media (max-width: 900px) {
  .affiliate-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .example-post { width: min(100%, 520px); margin-inline: auto; }
  .showcase-copy { max-width: 720px; text-align: center; }
  .channel-list { justify-content: center; }
  .affiliate-application { grid-template-columns: 1fr; }
  .counts-copy { padding-top: 0; }
}

@media (max-width: 680px) {
  .affiliate-hero,
  .affiliate-process,
  .affiliate-application,
  .affiliate-faq { width: min(100% - 32px, 1120px); }

  .affiliate-hero { padding-top: 46px; }
  .affiliate-hero h1 { font-size: clamp(2.6rem, 13vw, 3.55rem) !important; }
  .affiliate-lead { margin-top: 22px; }
  .program-card { margin-top: 40px; border-radius: 18px; padding: 24px 22px 0; }
  .program-facts { gap: 20px; }
  .program-card-image { width: calc(100% + 44px); height: 210px; margin: 26px -22px 0; }
  .affiliate-actions { width: 100%; }
  .affiliate-actions .affiliate-button { width: 100%; }
  .affiliate-showcase { padding-inline: 16px; }
  .example-post { border-radius: 18px; padding: 18px; }
  .showcase-copy h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .showcase-copy > p { font-size: clamp(1.5rem, 7vw, 2rem); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: auto; }
  .application-form { border-radius: 18px; padding: 24px 20px; }
}

@media (max-width: 420px) {
  .program-facts { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .example-post footer { flex-direction: column; gap: 5px; }
  .channel-list li { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .affiliate-button,
  .application-form input,
  .application-form select,
  .application-form textarea { transition: none; }
}
