/* Página /afiliados — visual dedicado (não altera outras landings). */

/* site.css / base.css travam o scroll da home; reabre na landing de afiliados. */
html.landing-page-body,
html.landing-page-body body.landing-page-body,
body.landing-page-body.affiliate-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  transform: none !important;
}

.affiliate-page {
  --aff-ink: #f5f0f2;
  --aff-muted: #b8aeb4;
  --aff-line: rgba(255, 255, 255, 0.1);
  --aff-orange: #e85d75;
  --aff-amber: #ff8fa8;
  --aff-panel: rgba(18, 18, 22, 0.88);
  font-family: Outfit, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.affiliate-page__shell {
  position: relative;
  isolation: isolate;
  height: auto !important;
  min-height: 100dvh;
  max-height: none !important;
  overflow: visible;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(232, 93, 117, 0.22), transparent 55%),
    radial-gradient(900px 500px at 88% 8%, rgba(255, 143, 168, 0.12), transparent 50%),
    linear-gradient(180deg, #0c0c10 0%, #09090a 42%, #070708 100%);
}

.affiliate-page__glow {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 42rem;
  background:
    linear-gradient(115deg, transparent 35%, rgba(232, 93, 117, 0.07) 50%, transparent 65%);
  animation: affiliate-sheen 10s ease-in-out infinite;
  z-index: 0;
}

.affiliate-page__main,
.affiliate-page__shell > .affiliate-home-chrome,
.affiliate-page__shell > .site-footer {
  position: relative;
  z-index: 1;
}

.affiliate-home-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto !important;
  min-height: 0 !important;
  background: #09090a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.affiliate-home-chrome .home-top-bar,
.affiliate-home-chrome .catalog-row,
.affiliate-home-chrome .home-promo-row {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
}

.affiliate-home-chrome .home-top-bar {
  pointer-events: auto;
}

.affiliate-home-chrome a.home-tab-button,
.affiliate-home-chrome a.home-catalog-pill,
.affiliate-home-chrome a.home-promo-banner {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.affiliate-page__main {
  max-width: 68rem;
  padding-top: 2.25rem;
  padding-bottom: 4rem;
}

.affiliate-page__hero {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem 0 0.5rem;
  animation: affiliate-rise 0.7s ease both;
}

.affiliate-page__eyebrow {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aff-amber);
}

.affiliate-page__hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(2.35rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--aff-ink);
  text-wrap: balance;
}

.affiliate-page__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--aff-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
}

.affiliate-page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.affiliate-page__link-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 143, 168, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #d7dde8;
  overflow: hidden;
  animation: affiliate-rise 0.85s ease 0.12s both;
}

.affiliate-page__link-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #36d399;
  box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.55);
  animation: affiliate-pulse 2.2s ease-out infinite;
  flex: 0 0 auto;
}

.affiliate-page__link-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 2.4vw, 0.88rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.affiliate-page__link-preview em {
  font-style: normal;
  color: #ff6b8a;
  font-weight: 700;
}

.affiliate-page__section {
  margin-top: 3.25rem;
}

.affiliate-page__section h2 {
  margin: 0 0 1.25rem;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--aff-ink);
}

.affiliate-page__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.affiliate-page__highlight {
  position: relative;
  padding: 1.15rem 1.15rem 1.2rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--aff-line);
  background:
    linear-gradient(145deg, rgba(232, 93, 117, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
  animation: affiliate-rise 0.65s ease both;
  animation-delay: var(--delay, 0ms);
}

.affiliate-page__highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--aff-amber), var(--aff-orange));
}

.affiliate-page__highlight-index {
  display: block;
  margin-bottom: 0.55rem;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 143, 168, 0.85);
}

.affiliate-page__highlight strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.affiliate-page__highlight p {
  margin: 0;
  color: var(--aff-muted);
  line-height: 1.55;
}

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

.affiliate-page__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  border: 1px solid var(--aff-line);
  background: rgba(255, 255, 255, 0.025);
}

.affiliate-page__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aff-amber), var(--aff-orange));
  color: #14110c;
  font-family: Outfit, Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.affiliate-page__steps p {
  margin: 0.15rem 0 0;
  color: #c9d0dc;
  line-height: 1.55;
}

.affiliate-page__signup-panel {
  display: grid;
  gap: 1.35rem;
  padding: 1.35rem 1.2rem 1.45rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 143, 168, 0.28);
  background:
    linear-gradient(160deg, rgba(232, 93, 117, 0.12), transparent 38%),
    var(--aff-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.affiliate-page__signup-copy h2 {
  margin-bottom: 0.55rem;
}

.affiliate-page__signup-copy p {
  margin: 0;
  color: var(--aff-muted);
  line-height: 1.6;
  max-width: 40rem;
}

.affiliate-page .landing-page__affiliate-form,
.affiliate-page .landing-page__affiliate-result {
  max-width: none;
  margin-top: 0;
}

.affiliate-page .landing-page__affiliate-form[hidden],
.affiliate-page .landing-page__affiliate-result[hidden] {
  display: none !important;
}

.affiliate-page__earnings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.35rem 0 0.15rem;
}

.affiliate-page__earnings[hidden] {
  display: none !important;
}

.affiliate-page__earning {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.affiliate-page__earning span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.affiliate-page__earning strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.affiliate-page__earning:first-child strong {
  color: #ffc0d0;
}

.affiliate-page__signup-panel.is-success {
  grid-template-columns: 1fr;
}

.affiliate-page__signup-panel.is-success .affiliate-page__signup-copy {
  position: static;
  display: none;
}

.affiliate-page__submit {
  width: 100%;
  min-height: 3rem;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.affiliate-page .landing-page__faq details {
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease;
}

.affiliate-page .landing-page__faq details[open] {
  border-color: rgba(255, 143, 168, 0.35);
}

.affiliate-page .landing-page__faq summary {
  font-family: Outfit, Inter, sans-serif;
}

@keyframes affiliate-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes affiliate-sheen {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.55;
  }
  50% {
    transform: translateX(8%);
    opacity: 0.9;
  }
}

@keyframes affiliate-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(54, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 211, 153, 0);
  }
}

@media (min-width: 760px) {
  .affiliate-page__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .affiliate-page__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-page__signup-panel {
    padding: 1.75rem 1.7rem 1.85rem;
  }
}

@media (min-width: 980px) {
  .affiliate-page__hero {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .affiliate-page__signup-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 2rem;
  }

  .affiliate-page__signup-copy {
    position: sticky;
    top: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-page__glow,
  .affiliate-page__hero,
  .affiliate-page__link-preview,
  .affiliate-page__highlight,
  .affiliate-page__link-dot {
    animation: none !important;
  }
}
