/* Página de afiliados — estende legal.css (topo, rodapé, tipografia). */
.sr-only:focus { position: fixed; top: 10px; left: 10px; z-index: 20; width: auto; height: auto; padding: 10px 14px; clip-path: none; border-radius: 12px; background: #1c3a2b; color: #fff; }
.af-nav-cta { background: var(--yellow); color: #4f3c05 !important; font-weight: 700 !important; }
.af-nav-cta:hover { background: #f3b820 !important; }
main { width: min(1080px, 100%); margin-inline: auto; padding: 0 clamp(18px, 4vw, 44px); }

.af-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(30px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); }
.af-hero h1 { margin: 14px 0 14px; font: 500 clamp(38px, 6vw, 62px)/1.02 Fredoka, sans-serif; letter-spacing: -1.2px; text-wrap: balance; }
.af-hero h1 em { font-style: normal; color: #2b5541; }
.af-lead { margin: 0 0 24px; max-width: 58ch; font-size: clamp(17px, 2vw, 19px); line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.af-hero__cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.af-ghost { font-weight: 700; color: #2b5541; text-decoration: none; }
.af-ghost:hover { text-decoration: underline; }
.af-hero__art { display: grid; place-items: center; min-height: 240px; border-radius: 34px; background: radial-gradient(circle at 50% 60%, #fff3c4 0, #fbf6ea 62%); }
.af-hero__art .guide-tato { width: min(260px, 70%); height: auto; }

.af-section { margin: clamp(34px, 6vw, 70px) 0; }
.af-section h2 { margin: 0 0 16px; font: 500 clamp(26px, 3.4vw, 36px)/1.1 Fredoka, sans-serif; letter-spacing: -.5px; }
.af-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.af-steps li { padding: 20px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 4px 0 #eaeee0; }
.af-steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--yellow); font: 600 17px/1 Fredoka, sans-serif; color: #4f3c05; }
.af-steps h3 { margin: 12px 0 6px; font: 600 17px/1.3 'DM Sans', sans-serif; }
.af-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3f5346; }
.af-steps code { padding: 1px 5px; border-radius: 6px; background: #f4f7ec; font-size: .86em; word-break: break-all; }

.af-earn__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.af-earn__card { display: grid; gap: 4px; padding: 20px; border-radius: 22px; background: #1c3a2b; color: #f5edd9; }
.af-earn__card span { font-size: 13.5px; opacity: .85; }
.af-earn__card strong { font: 500 clamp(26px, 3vw, 32px)/1.1 Fredoka, sans-serif; color: #ffe9a8; }
.af-earn__card small { font-size: 12.5px; opacity: .8; }
.af-earn__card.is-quiet { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.af-earn__card.is-quiet strong { color: #2b5541; }
.af-honest { margin: 16px 0 0; max-width: 72ch; font-size: 14.5px; color: var(--muted); }

.af-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.af-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.af-list li { position: relative; padding-left: 26px; color: #3f5346; }
.af-list li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: #bcd4a4; rotate: 45deg; }
.af-small { font-size: 14px; color: var(--muted); }
.af-link { font-weight: 700; color: #2b5541; }

.af-faq { display: grid; gap: 10px; max-width: 760px; }
.af-faq details { padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
/* O triângulo nativo destoava do resto do site: um "+" que gira ao abrir, como no FAQ da home. */
.af-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-weight: 700; list-style: none; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f5ea; color: #2b5541; font: 500 20px/1 'DM Sans', sans-serif; transition: rotate .25s ease; }
.af-faq details[open] summary::after { rotate: 45deg; }
@media (prefers-reduced-motion: reduce) { .af-faq summary::after { transition: none; } }
.af-faq p { margin: 10px 0 0; color: #3f5346; }

.af-apply { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 48px); padding: clamp(22px, 4vw, 40px); border-radius: 30px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 0 #eaeee0; scroll-margin-top: 90px; }
.af-apply__intro p { color: var(--muted); }
.af-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.af-field { display: grid; gap: 6px; }
.af-field--wide { grid-column: 1 / -1; }
.af-field label { font-weight: 700; font-size: 13.5px; }
.af-field small { font-weight: 400; color: var(--muted); }
.af-form input:not([type="checkbox"]), .af-form select, .af-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #e2dcc8; border-radius: 14px; background: #fff; color: var(--ink); font: 400 16px/1.45 'DM Sans', sans-serif; }
.af-form textarea { resize: vertical; min-height: 110px; }
.af-form input:focus, .af-form select:focus, .af-form textarea:focus { outline: 3px solid #cfe3c0; border-color: #2b5541; }
.af-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.af-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #2b5541; }
.af-status { min-height: 1.3em; margin: 0; font-weight: 500; color: #a24a1c; }
.af-status.is-ok { color: #2b5541; }
.af-submit { min-height: 50px; padding: 0 28px; border: 0; border-radius: 16px; background: var(--yellow); box-shadow: 0 5px 0 #d8a92a; color: #3d2e05; font: 600 16px/1 Fredoka, sans-serif; cursor: pointer; }
.af-submit:disabled { opacity: .7; cursor: progress; }
.af-submit:focus-visible { outline: 3px solid #2b5541; outline-offset: 3px; }
.af-done { grid-column: 1 / -1; padding: 10px 0; }
.af-done h3 { margin: 0 0 6px; font: 500 26px/1.15 Fredoka, sans-serif; }
.legal-foot button.legal-cta { border: 0; cursor: pointer; }
.sp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .af-steps, .af-earn__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-apply { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .af-hero { grid-template-columns: minmax(0, 1fr); }
  .af-hero__art { min-height: 180px; order: -1; }
  .af-steps, .af-earn__grid, .af-two, .af-form { grid-template-columns: minmax(0, 1fr); }
  .legal-top nav a:not(.af-nav-cta) { display: none; }
}

/* Alvos de toque >= 44x44 na página de afiliados. */
.af-nav-cta { min-height: 44px; box-sizing: border-box; }
.af-ghost, .af-link { display: inline-flex; align-items: center; min-height: 44px; }
.af-faq summary { min-height: 44px; }
.af-check { align-items: center; min-height: 44px; }
.af-check input { flex: none; margin-top: 0; }
.af-check input { width: 24px; height: 24px; }
