/* iFragrancia Afiliados — landpage dedicada */

:root {
  --aff-ink: #230d1b;
  --aff-brand: #54223d;
  --aff-brand-mid: #6b3150;
  --aff-gold: #b8956a;
  --aff-gold-soft: #e8d5bc;
  --aff-muted: #6c727f;
  --aff-line: #ebe4e7;
  --aff-cream: #f7f2f4;
  --aff-white: #fff;
  --aff-nav-h: 4.25rem;
}

.aff-land {
  font-family: "Urbanist", system-ui, sans-serif;
  color: var(--aff-ink);
  background: var(--aff-white);
  letter-spacing: 0.02em;
  padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
  .aff-land { padding-bottom: 0; }
}

.aff-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: .5rem 1rem;
  background: var(--aff-ink);
  color: #fff;
}
.aff-skip:focus { left: .75rem; top: .75rem; }

/* —— Botões —— */
.btn-grad {
  --grad-from: #54223d;
  --grad-to: #230d1b;
  --grad-angle: 135deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 2rem !important;
  padding: .65rem 1.25rem;
  font-weight: 650;
  font-size: .9375rem;
  line-height: 1.25;
  color: #fff !important;
  text-decoration: none !important;
  background-image: linear-gradient(var(--grad-angle), var(--grad-from), var(--grad-to));
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-grad:hover, .btn-grad:focus-visible {
  color: #fff !important;
  filter: brightness(1.06);
}
.btn-grad:disabled { opacity: .55; pointer-events: none; }
.btn-grad-brand {
  --grad-from: #b36591;
  --grad-to: #591c43;
}
.btn-grad-gold {
  --grad-from: #e8d5bc;
  --grad-to: #b8956a;
  color: #230d1b !important;
  font-weight: 750;
}
.btn-grad-gold:hover, .btn-grad-gold:focus-visible { color: #230d1b !important; }
.btn-grad-ghost {
  background-image: none !important;
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
}
.btn-grad-ghost:hover, .btn-grad-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: #fff !important;
}
.btn-grad-outline-light {
  background-image: none !important;
  background: #fff !important;
  color: var(--aff-brand) !important;
  border: 1.5px solid var(--aff-brand) !important;
}
.btn-grad-outline-light:hover,
.btn-grad-outline-light:focus-visible {
  background: var(--aff-brand) !important;
  color: #fff !important;
}

.aff-btn-pulse {
  animation: affPulse 2.4s ease-in-out infinite;
}
@keyframes affPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 149, 106, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(184, 149, 106, 0); }
}

/* —— Nav —— */
.aff-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--aff-line);
}
.aff-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem 1.1rem;
  min-height: var(--aff-nav-h);
}
.aff-nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.aff-nav-logo .cz-site-logo {
  height: auto;
  width: auto;
}
.aff-nav-brand {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aff-brand);
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(84, 34, 61, 0.08);
}
.aff-nav-links {
  display: none;
  gap: 1.15rem;
  margin-left: auto;
}
.aff-nav-links a {
  color: var(--aff-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 550;
}
.aff-nav-links a:hover { color: var(--aff-brand); }
.aff-nav-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
}
.aff-nav-links + .aff-nav-actions { margin-left: 0; }
.aff-nav-login {
  color: var(--aff-ink);
  font-weight: 650;
  font-size: .92rem;
  text-decoration: none;
}
.aff-nav-login:hover { color: var(--aff-brand); }
.aff-nav-cta { padding: .55rem 1.1rem !important; font-size: .88rem !important; }

@media (min-width: 768px) {
  .aff-nav-links { display: flex; }
}

/* —— Hero full-bleed —— */
.aff-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: min(88vh, 42rem);
  display: flex;
  align-items: center;
}
.aff-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #3a1829;
  background-image:
    linear-gradient(90deg, rgba(26, 8, 20, 0.88) 0%, rgba(26, 8, 20, 0.62) 38%, rgba(26, 8, 20, 0.18) 62%, transparent 78%),
    linear-gradient(180deg, rgba(26, 8, 20, 0.25) 0%, transparent 35%, rgba(26, 8, 20, 0.35) 100%),
    url("../img/design/hero_afiliados.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.aff-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3.75rem;
  width: 100%;
}
.aff-hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.aff-hero-brand span {
  color: var(--aff-gold-soft);
  font-weight: 800;
}
.aff-hero-title {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(2.15rem, 5.5vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}
.aff-hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.aff-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.15rem;
}
.aff-hero-note {
  margin: 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.62);
}
.aff-hero-note a {
  color: var(--aff-gold-soft);
  text-underline-offset: .15em;
}

/* —— Proof strip —— */
.aff-proof {
  background: var(--aff-cream);
  border-bottom: 1px solid var(--aff-line);
  margin-top: -1px;
}
.aff-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.aff-proof-grid {
  list-style: none;
  margin: 0;
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (min-width: 768px) {
  .aff-proof-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
}
.aff-proof-grid li {
  background: var(--aff-white);
  border: 1px solid var(--aff-line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
}
.aff-proof-grid span {
  display: block;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--aff-muted);
  margin-bottom: .2rem;
}
.aff-proof-grid strong {
  font-size: 1.08rem;
  font-weight: 750;
}
.aff-proof-hot {
  border-color: rgba(84, 34, 61, 0.22);
  background: linear-gradient(160deg, rgba(84, 34, 61, 0.07), rgba(184, 149, 106, 0.14));
}
.aff-proof-hot span { color: var(--aff-brand); font-weight: 650; }
.aff-proof-hot strong { font-size: 1.22rem; color: var(--aff-ink); }

/* —— Sections —— */
.aff-section { padding: 3.25rem 0; }
.aff-section-alt { background: var(--aff-cream); }
.aff-section-head { margin-bottom: 1.75rem; max-width: 38rem; }
.aff-section-head h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}
.aff-section-head p {
  margin: 0;
  color: var(--aff-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.aff-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .aff-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .aff-cards { grid-template-columns: repeat(4, 1fr); } }

.aff-card {
  height: 100%;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--aff-line);
  border-radius: 1.15rem;
  background: var(--aff-white);
  box-shadow: 0 .4rem 1.2rem rgba(35, 13, 27, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.aff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .85rem 1.8rem rgba(35, 13, 27, 0.08);
}
.aff-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.aff-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--aff-muted);
}
.aff-card-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  background: rgba(84, 34, 61, 0.08);
  color: var(--aff-brand);
  font-size: 1.2rem;
}

/* —— Steps —— */
.aff-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .aff-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .aff-steps { grid-template-columns: repeat(4, 1fr); }
}
.aff-steps li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.2rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid var(--aff-line);
  background: var(--aff-white);
}
.aff-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--aff-ink);
  color: #fff;
  font-size: .8rem;
  font-weight: 750;
}
.aff-steps h3 {
  margin: 0 0 .3rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.aff-steps p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--aff-muted);
}
.aff-mid-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
.aff-mid-cta a {
  color: var(--aff-brand);
  font-weight: 600;
  font-size: .92rem;
}

/* —— Pay —— */
.aff-pay-wrap { max-width: 40rem; }
.aff-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--aff-line);
  border-radius: 1.15rem;
  background: var(--aff-white);
  overflow: hidden;
}
.aff-pay-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--aff-line);
}
.aff-pay-list li:last-child { border-bottom: 0; }
.aff-pay-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(84, 34, 61, 0.07);
  color: var(--aff-brand);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.aff-pay-list strong {
  display: block;
  margin-bottom: .15rem;
  font-size: .98rem;
}
.aff-pay-list span {
  display: block;
  color: var(--aff-muted);
  font-size: .88rem;
  line-height: 1.45;
}

/* —— FAQ —— */
.aff-faq-wrap { max-width: 42rem; }
.aff-faq .accordion-item {
  border: 1px solid var(--aff-line);
  border-radius: .95rem !important;
  overflow: hidden;
  margin-bottom: .65rem;
  background: var(--aff-white);
}
.aff-faq .accordion-button {
  font-weight: 650;
  font-size: .98rem;
  color: var(--aff-ink);
  box-shadow: none;
  background: var(--aff-white);
  padding: 1rem 1.15rem;
}
.aff-faq .accordion-button:not(.collapsed) {
  background: rgba(84, 34, 61, 0.05);
  color: var(--aff-ink);
}
.aff-faq .accordion-button:focus { box-shadow: none; }
.aff-faq .accordion-body {
  color: var(--aff-muted);
  font-size: .92rem;
  line-height: 1.6;
  padding: .35rem 1.15rem 1.1rem;
}

/* —— Final CTA —— */
.aff-cta {
  padding: 3.5rem 0;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(184, 149, 106, 0.22), transparent 55%),
    linear-gradient(135deg, #230d1b 0%, #54223d 100%);
  color: #fff;
}
.aff-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.aff-cta h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 750;
  color: #fff;
}
.aff-cta p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: .98rem;
  line-height: 1.55;
}
.aff-cta a { color: var(--aff-gold-soft); }
.aff-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .7rem;
  min-width: min(100%, 17rem);
}
.aff-cta-login {
  text-align: center;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: .9rem;
  text-underline-offset: .2em;
}

/* —— Sticky mobile CTA —— */
.aff-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--aff-line);
  box-shadow: 0 -8px 24px rgba(35, 13, 27, 0.08);
}
.aff-sticky-cta .btn-grad { flex: 1; }
.aff-sticky-cta a {
  font-weight: 650;
  color: var(--aff-ink);
  text-decoration: none;
  padding: .5rem .35rem;
}

/* —— Footer —— */
.aff-foot {
  background: #14060f;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.25rem 0 2.5rem;
}
.aff-foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.25rem;
}
.aff-foot-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.aff-foot-brand span { font-size: .88rem; }
.aff-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
}
.aff-foot-links a,
.aff-foot-btn {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: .9rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.aff-foot-links a:hover,
.aff-foot-btn:hover { color: var(--aff-gold-soft); }
.aff-foot-copy {
  margin: 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Modal / confirm —— */
.aff-modal .modal-content {
  border: 0;
  border-radius: 1.15rem;
  box-shadow: 0 1rem 2.5rem rgba(35, 13, 27, 0.18);
}
.aff-modal .form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--aff-ink);
}
.aff-modal-ok {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(84, 34, 61, 0.1);
  color: var(--aff-brand);
  font-size: 1.5rem;
}

.aff-confirm-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.25rem;
}
.aff-confirm {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--aff-line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem rgba(35, 13, 27, 0.06);
}
.aff-confirm h1 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 750;
}

/* —— Reveal motion —— */
.aff-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.aff-reveal.is-in {
  opacity: 1;
  transform: none;
}
.aff-cards .aff-reveal:nth-child(2) { transition-delay: .06s; }
.aff-cards .aff-reveal:nth-child(3) { transition-delay: .12s; }
.aff-cards .aff-reveal:nth-child(4) { transition-delay: .18s; }
.aff-steps .aff-reveal:nth-child(2) { transition-delay: .06s; }
.aff-steps .aff-reveal:nth-child(3) { transition-delay: .12s; }
.aff-steps .aff-reveal:nth-child(4) { transition-delay: .18s; }

@media (max-width: 767.98px) {
  .aff-hero {
    min-height: min(78vh, 36rem);
  }
  .aff-hero-bg {
    background-position: 72% center;
    background-image:
      linear-gradient(180deg, rgba(26, 8, 20, 0.82) 0%, rgba(26, 8, 20, 0.72) 55%, rgba(26, 8, 20, 0.55) 100%),
      url("../img/design/hero_afiliados.png");
  }
}

@media (prefers-reduced-motion: reduce) {
  .aff-btn-pulse { animation: none; }
  .aff-reveal { opacity: 1; transform: none; transition: none; }
}

/* —— Documentos legais (termos / política) —— */
.aff-doc-page {
  padding: 2rem 0 4rem;
  background: var(--aff-cream);
  min-height: 60vh;
}
.aff-doc-wrap {
  max-width: 48rem;
}
.aff-doc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  color: var(--aff-muted);
}
.aff-doc-crumbs a {
  color: var(--aff-brand);
  text-decoration: none;
  font-weight: 650;
}
.aff-doc-crumbs a:hover { text-decoration: underline; }
.aff-doc-head {
  margin-bottom: 1.5rem;
}
.aff-doc-title {
  margin: 0 0 .65rem;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--aff-ink);
  line-height: 1.2;
}
.aff-doc-switch {
  margin: 0;
  font-size: .92rem;
}
.aff-doc-switch a {
  color: var(--aff-brand);
  font-weight: 650;
}
.aff-doc-body {
  background: var(--aff-white);
  border: 1px solid var(--aff-line);
  border-radius: 1.15rem;
  padding: 1.5rem 1.35rem 2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #2f2f2f;
}
.aff-doc-body p {
  margin: 0 0 1rem;
}
.aff-doc-body .aff-doc-h2 {
  margin: 1.75rem 0 .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--aff-ink);
  letter-spacing: -0.02em;
}
.aff-doc-body .aff-doc-h2:first-child { margin-top: 0; }
.aff-doc-body .aff-doc-h3 {
  margin: 1.35rem 0 .55rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--aff-brand);
}
.aff-doc-body .aff-doc-h4 {
  margin: 1.1rem 0 .45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--aff-ink);
}
.aff-doc-body .aff-doc-hr {
  border: 0;
  border-top: 1px solid var(--aff-line);
  margin: 1.5rem 0;
}
.aff-doc-body a {
  color: var(--aff-brand);
  font-weight: 650;
  text-underline-offset: .12em;
}
.aff-doc-body strong { color: var(--aff-ink); font-weight: 750; }

/* —— SEO prose (página teste afiliados) —— */
.aff-seo-wrap .aff-section-head { max-width: 42rem; }
.aff-seo-prose {
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--aff-muted);
}
.aff-seo-prose p { margin: 0 0 1.1rem; }
.aff-seo-prose h3 {
  margin: 1.5rem 0 .75rem;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--aff-ink);
  letter-spacing: -.01em;
}
.aff-seo-prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}
.aff-seo-prose li { margin-bottom: .45rem; }
.aff-seo-prose strong { color: var(--aff-ink); font-weight: 700; }

@media (min-width: 768px) {
  .aff-doc-body { padding: 2rem 2.25rem 2.5rem; }
}
