/* ============================================================
   InfoAi — Página de afiliados
   ============================================================ */

.page-afiliados .mobile-cta {
  /* same as main */
}

/* ---------- Header (só PT, sem seletor de idioma, mais respiro) ---------- */
.page-afiliados .header--aff {
  height: auto;
  min-height: var(--header-h);
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.page-afiliados .header--aff .header__inner {
  gap: 1.25rem 1.75rem;
  min-height: var(--header-h);
  height: auto;
  padding-block: 0.85rem;
}

.page-afiliados .header--aff .logo__img {
  height: 34px;
  max-width: 156px;
}

.page-afiliados .header--aff .header__actions {
  gap: 0.65rem;
  flex-shrink: 0;
}

.page-afiliados .header--aff .header__cta {
  white-space: nowrap;
}

.page-afiliados .header--aff .header__cta.btn--primary {
  padding-inline: 1.1rem;
}

/* CTAs do drawer (mobile / tablet) */
.page-afiliados .header__cta-mobile-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  width: 100%;
}

.page-afiliados .header__cta-mobile-wrap .header__cta-mobile {
  display: inline-flex !important;
  width: 100%;
  margin-top: 0;
  justify-content: center;
}

/* Desktop largo: nav horizontal + CTAs no topo */
@media (min-width: 1024px) {
  .page-afiliados .header--aff .header__inner {
    gap: 2rem;
    padding-block: 0.5rem;
  }

  .page-afiliados .header--aff .nav {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .page-afiliados .header--aff .nav__list {
    gap: 0.25rem 0.5rem;
  }

  .page-afiliados .header--aff .nav__link {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    white-space: nowrap;
  }

  .page-afiliados .header--aff .header__actions {
    gap: 0.85rem;
  }

  .page-afiliados .header--aff .header__cta.btn--sm {
    min-height: 40px;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
  }

  .page-afiliados .header__cta-mobile-wrap {
    display: none !important;
  }
}

/* Mobile + tablet: drawer (evita topo espremido entre 768–1023) */
@media (max-width: 1023px) {
  .page-afiliados .header--aff .hamburger {
    display: flex;
  }

  .page-afiliados .header--aff .header__cta {
    display: none !important;
  }

  .page-afiliados .header--aff .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    height: 100dvh;
    background: var(--card);
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -8px 0 40px rgba(30, 27, 75, 0.1);
    z-index: 999;
    display: block;
    flex: none;
  }

  .page-afiliados .header--aff .nav.is-open {
    transform: translateX(0);
  }

  .page-afiliados .header--aff .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .page-afiliados .header--aff .nav__link {
    font-size: 1.0625rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
  }
}

/* ---------- Hero ---------- */
.aff-hero {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3.5rem;
}

.aff-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.aff-hero__content {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.aff-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 1.15rem 0 1.1rem;
}

.aff-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.aff-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.aff-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.aff-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.aff-hero__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.aff-hero__card {
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}

/* Hero highlight (focus on gains — no $ examples) */
.aff-highlight {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg);
}

.aff-highlight__badge {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
}

.aff-highlight__list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.aff-highlight__list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.aff-highlight__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple-soft), #FFF7ED);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-highlight__list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.975rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.aff-highlight__list p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Tools strip */
.aff-section--tools {
  background: linear-gradient(180deg, #F5F3FF 0%, #FAFAFA 100%);
}

.aff-tools {
  display: grid;
  gap: 1.15rem;
}

.aff-tool {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.aff-tool:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.aff-tool__num {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-orange);
}

.aff-tool h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.aff-tool p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.aff-tool strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.aff-section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  background: var(--bg);
}

.aff-section--alt {
  background: #fff;
}

.aff-section--form {
  background: linear-gradient(180deg, #F5F3FF 0%, #FAFAFA 40%, #fff 100%);
  padding-bottom: 5rem;
}

.container--form {
  max-width: 720px;
}

/* Benefits */
.aff-benefits {
  display: grid;
  gap: 1.15rem;
}

.aff-benefit {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.aff-benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.aff-benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple-soft), #FFF7ED);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.aff-benefit h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.aff-benefit p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Steps */
.aff-steps {
  display: grid;
  gap: 1rem;
}

.aff-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.25rem;
}

.aff-step__num {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.aff-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

.aff-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Requirements */
.aff-req {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.aff-req__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aff-req__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.aff-req__list svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.aff-req__list strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Form ---------- */
.aff-form {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
}

.aff-form__section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.aff-form__section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}

.aff-form__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.15rem;
  color: var(--text);
}

.aff-form__optional {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.aff-form__hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: -0.5rem 0 1.15rem;
  line-height: 1.45;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label,
.form-fieldset legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  background: #fff;
}

.form-field input.is-invalid,
.form-field select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-field input.is-valid {
  border-color: var(--success);
}

.req {
  color: var(--orange);
}

.form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--danger);
  font-weight: 500;
}

.form-error[hidden] {
  display: none;
}

.form-hint-inline {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-fieldset {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.form-radio:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-softer);
  color: var(--purple);
}

.form-radio input {
  accent-color: var(--purple);
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.input-prefix:focus-within {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  background: #fff;
}

.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 0.65rem 0 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9375rem;
  background: var(--border-soft);
}

.input-prefix input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0;
  padding-left: 0.5rem;
}

.form-grid-2 {
  display: grid;
  gap: 0 1rem;
}

.form-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
}

.form-check input {
  margin-top: 0.2rem;
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-check__link {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-check__link:hover {
  color: var(--purple-dark);
}

.aff-form__actions {
  margin-top: 0.5rem;
}

.aff-form__footer-note {
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.aff-form__success {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065F46;
}

.aff-form__success strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.aff-form__success p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.aff-form.is-submitted .aff-form__section,
.aff-form.is-submitted .aff-form__actions {
  display: none;
}

/* Desktop */
@media (min-width: 768px) {
  .aff-hero {
    padding: 3.5rem 0 4.5rem;
  }

  .aff-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .aff-hero__content {
    text-align: left;
    margin-inline: 0;
    max-width: none;
  }

  .aff-hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aff-hero__trust {
    justify-content: flex-start;
  }

  .aff-hero__card {
    margin-inline: 0;
    max-width: none;
  }

  .aff-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .aff-tools {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .aff-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .aff-form {
    padding: 2rem 2.25rem 2.25rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .aff-section {
    padding: 5rem 0;
  }

  .aff-section--form {
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .aff-hero__title {
    font-size: 3.1rem;
  }
}
