dialog.leads-dialog {
  --lead-line: #d9dbcf;
  --lead-paper: #f8f9f2;
  --lead-lime: #caf740;
  width: min(945px, calc(100% - 30px));
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  scroll-padding-block: 70px 96px;
}
.leads-dialog .dialog-top { z-index: 3; background: #eef3df; border-bottom: 1px solid var(--lead-line); }
.leads-dialog .dialog-content { padding: 0; background: var(--lead-paper); }
.leads-stage {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  isolation: isolate;
  background-color: #f9faf5;
  background-image: linear-gradient(#19241b0e 1px, transparent 1px), linear-gradient(90deg, #19241b0e 1px, transparent 1px);
  background-size: 28px 28px;
}
.leads-portrait { margin: 0; position: relative; isolation: isolate; }
.leads-portrait img {
  width: 100%;
  height: auto;
  display: block;
  mask-image: linear-gradient(#000 79%, transparent 99%);
  transform: translate(var(--lead-x, 0), var(--lead-y, 0));
  transition: transform .28s ease;
}
.leads-portrait:active img { transform: translate(var(--lead-x, 0), var(--lead-y, 0)) scale(1.025); }
.leads-portrait figcaption {
  position: absolute;
  right: 0;
  top: 29%;
  background: var(--lead-lime);
  padding: .45em .78em;
  font-size: clamp(.77rem, 2.2vw, .94rem);
  font-weight: 800;
  border: 1px solid #171916;
  border-radius: 12px 14px 14px 3px;
  transform: rotate(-7deg);
  box-shadow: 3px 4px #171916;
}
.leads-intro { padding: clamp(1.24rem, 4vw, 2.5rem); }
.leads-dialog .leads-title h2 { font-size: clamp(2.1rem, 5.1vw, 3.65rem); margin: .55rem 0 .85rem; }
.leads-intro .leads-hook { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.leads-hero-pay { margin-top: 1.15rem; border: 1px solid #252925; border-radius: 12px; background: #252925; color: #fff; padding: .75rem 1rem; }
.leads-hero-pay span, .leads-example span { display: block; font-size: .82rem; font-weight: 700; }
.leads-hero-pay strong, .leads-example strong { display: block; font-size: clamp(1.66rem, 4.2vw, 2.5rem); color: var(--lead-lime); letter-spacing: -.05em; line-height: 1.2; margin-block: .15rem .4rem; }
.leads-hero-pay small { font-size: .47em; letter-spacing: 0; white-space: nowrap; }
.leads-hero-pay p, .leads-example p { font-size: .86rem; line-height: 1.45; }
.leads-section { padding: clamp(1.2rem, 4.5vw, 2.6rem); border-bottom: 1px solid var(--lead-line); }
.leads-dialog .leads-section h3 { font-size: clamp(1.55rem, 4vw, 2.22rem); margin: 0 0 .6rem; letter-spacing: -.045em; }
.leads-section > p, .leads-section li p, .leads-level-detail > p { color: #424942; }
.leads-map {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .72rem;
  counter-reset: lead-step;
  margin: 1.25rem 0 0;
}
.leads-dialog .leads-map li {
  grid-column: span 2;
  counter-increment: lead-step;
  background: #fff;
  border: 1px solid var(--lead-line);
  padding: .9rem;
  margin: 0;
  border-radius: 11px;
  position: relative;
}
.leads-dialog .leads-map li:nth-last-child(-n + 2) { grid-column: span 3; }
.leads-map li::after { content: "0" counter(lead-step); position: absolute; top: .95rem; right: .85rem; color: #4f584d; font-size: .74rem; font-weight: 800; }
.leads-map li span, .leads-levels button span { display: grid; place-items: center; height: 36px; width: 36px; border-radius: 8px; background: #def0ff; font-size: 1.2rem; line-height: 1; }
.leads-map li:nth-child(3n + 2) span { background: #ffdfbf; }
.leads-map li:nth-child(3n) span { background: #e1fa9c; }
.leads-map li strong { display: block; margin-block: .55rem .2rem; }
.leads-map li p { font-size: .92rem; }
.leads-motion { opacity: .35; transform: translateY(10px); transition: transform .34s ease, opacity .34s ease; }
.leads-motion.leads-visible, .leads-motion:focus-within { opacity: 1; transform: none; }
.leads-progression { background: #edf2e3; }
.leads-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 .7rem; }
.leads-levels button { min-width: 0; min-height: 100px; display: grid; justify-items: start; text-align: left; align-content: start; gap: .25rem; line-height: 1.25; padding: .65rem; border-radius: 9px; background: #fff; color: #1d211b; border: 1px solid #aab29c; }
.leads-levels button[aria-pressed="true"] { background: var(--lead-lime); border-color: #1d211b; box-shadow: 0 3px #1d211b; }
.leads-levels button span { width: 27px; height: 27px; background: #222721; color: white; font-size: .87rem; }
.leads-level-detail { border: 1px solid #ccd3be; border-radius: 12px; background: #fff; padding: clamp(.9rem, 3vw, 1.45rem); }
.leads-level-detail h4 { margin: 0 0 .4rem; font-size: 1.32rem; line-height: 1.2; }
.leads-pay { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.leads-pay div { background: #f2f4ed; border-radius: 8px; padding: .6rem .75rem; }
.leads-pay dt { font-size: .79rem; line-height: 1.4; }
.leads-pay dd { margin: 0; font-size: clamp(1.05rem, 3vw, 1.4rem); font-weight: 850; }
.leads-example { background: #252925; color: #fff; padding: .75rem .9rem; border-radius: 9px; margin-top: .85rem; }
.leads-sop details { background: #fff; border: 1px solid var(--lead-line); border-radius: 8px; margin-top: .55rem; }
.leads-sop summary { padding: .75rem .95rem; cursor: pointer; font-weight: 750; }
.leads-sop details p { padding: 0 .95rem .85rem; color: #424942; }
.leads-apply { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 1.1rem; background: #252925; color: #fff; padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom)); }
.leads-apply .btn { background: var(--lead-lime); color: #1d211b; gap: .6em; min-height: 45px; }
.leads-login { font-size: .86rem; text-underline-offset: 3px; text-align: center; }
.leads-login:focus-visible, .leads-apply .btn:focus-visible { outline-color: white; }
@media (width <= 620px) {
  dialog.leads-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .leads-stage { grid-template-columns: 1fr; }
  .leads-portrait { max-width: min(100%, 365px); width: 100%; margin-inline: auto; }
  .leads-portrait img { max-height: 250px; object-fit: contain; }
  .leads-portrait figcaption { right: 5%; }
  .leads-intro { padding-top: .35rem; }
  .leads-map { grid-template-columns: 1fr; }
  .leads-dialog .leads-map li, .leads-dialog .leads-map li:nth-last-child(-n + 2) { grid-column: auto; }
  .leads-apply { gap: .5rem; flex-wrap: wrap; }
  .leads-apply .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .leads-dialog[open] .leads-portrait { animation: leads-bumper 850ms both cubic-bezier(.21,.8,.25,1); transform-origin: 50% 85%; }
  @supports (animation-timeline: view()) {
    .leads-dialog[open] .leads-portrait img { animation: leads-scroll-out linear both; animation-timeline: view(); animation-range: exit 0% exit 95%; }
  }
  @keyframes leads-bumper {
    0% { opacity: 0; transform: translateY(42px) scale(.75) rotate(-5deg); }
    60% { opacity: 1; transform: translateY(-7px) scale(1.045) rotate(1deg); }
    100% { opacity: 1; transform: none; }
  }
  .leads-dialog[open] .creator-tag { animation: creator-tag-in 520ms 260ms both; }
  .leads-dialog[open] .creator-tag-right { animation-delay: 370ms; }
  @keyframes creator-tag-in {
    from { opacity: 0; scale: .78; translate: 0 14px; }
    to { opacity: 1; scale: 1; translate: 0 0; }
  }
  @keyframes leads-scroll-out { from { translate: 0 0; opacity: 1; } to { translate: 0 10px; opacity: .5; } }
}
@media (prefers-reduced-motion: reduce) {
  .leads-motion { opacity: 1; transform: none; }
  .leads-portrait:active img { transform: none; }
}
.leads-portrait figcaption a { display: block; color: inherit; text-decoration: none; }
.leads-portrait figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }

.leads-stage .leads-portrait { align-self: end; }
.leads-stage .leads-portrait img {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(#000 84%, transparent 100%);
}
.creator-portrait .creator-tag {
  position: absolute;
  inset: auto;
  color: #171916;
  background: #d9ecff;
  border: 0;
  box-shadow: none;
  border-radius: 8px;
  padding: .46rem .58rem;
  line-height: 1.2;
  font-size: clamp(.75rem, 1.8vw, .94rem);
  font-weight: 500;
  transform: rotate(-6deg);
}
.creator-portrait .creator-tag-left { top: 30%; left: 2%; }
.creator-portrait .creator-tag-right { right: 0; bottom: 25%; background: #ffdcbd; transform: rotate(6deg); }
.creator-timeline {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.leads-dialog .creator-timeline li { margin: 0 0 .55rem; }
.creator-timeline details { border: 1px solid var(--lead-line); border-radius: 10px; background: white; }
.creator-timeline summary { cursor: pointer; padding: .7rem .85rem; font-weight: 750; }
.creator-timeline summary span { display: inline-grid; width: 32px; height: 32px; margin-inline: .25rem .4rem; place-items: center; border-radius: 7px; background: #d9ecff; }
.creator-timeline li:nth-child(3n+2) summary span { background: #ffdcbd; }
.creator-timeline li:nth-child(3n) summary span { background: #dff79c; }
.creator-timeline li p { padding: 0 .9rem .8rem; }
.creator-spec { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: 1rem 0; }
.creator-spec article { border-radius: 12px; padding: .9rem 1rem; background: #dceeff; }
.creator-spec article:nth-child(2) { background: #dcf6a0; }
.creator-spec article > strong { display: block; font-size: clamp(2.1rem,6vw,3.45rem); line-height: 1; letter-spacing: -.08em; }
.creator-spec h4 { margin: .45rem 0 .3rem; line-height: 1.2; }
.creator-calculator { display: grid; margin: .9rem 0; gap: .6rem; background: white; border: 1px solid var(--lead-line); padding: 1rem; border-radius: 10px; }
.creator-calculator label, .creator-calculator output { font-weight: 750; }
.creator-calculator input { width: 100%; accent-color: #526f0a; min-height: 30px; }
.creator-checklist { display: grid; gap: .45rem; margin: .8rem 0 1rem; }
.creator-checklist label { display: flex; gap: .55rem; align-items: baseline; }
.creator-checklist input { min-width: 16px; accent-color: #526f0a; }
.creator-checklist code { overflow-wrap: anywhere; }
.leads-video-section { background-image: linear-gradient(#19241b0e 1px, transparent 1px), linear-gradient(90deg,#19241b0e 1px,transparent 1px); background-size: 28px 28px; }
.leads-video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin-top: 1.35rem; }
.leads-video-grid figure { display: grid; justify-items: center; align-content: start; gap: .4rem; text-align: center; }
.leads-video-grid video {
  display: block;
  width: 100%;
  max-width: 370px;
  height: min(55dvh, 515px);
  object-fit: contain;
  mask-image: linear-gradient(transparent, #000 3%, #000 95%, transparent);
}
.leads-video-grid figcaption { font-size: .9rem; font-weight: 750; }
.leads-video-preference { display: none; }
@media (width <= 620px) {
  .leads-stage .leads-portrait img { max-height: min(43dvh, 330px); }
  .creator-portrait .creator-tag-left { left: 0; }
  .creator-portrait .creator-tag-right { right: 1%; }
  .leads-video-grid { grid-template-columns: 1fr; }
  .leads-video-grid video { height: min(60dvh, 472px); }
}
@media (width <= 370px) {
  .creator-spec { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .leads-video-preference { display: block; margin-top: .65rem; }
}

.creator-portrait .creator-tag a { display: block; color: inherit; text-decoration: none; }
.creator-portrait .creator-tag a:hover { text-decoration: underline; text-underline-offset: 3px; }
.role-timeline details[open] { border-color: #92aa59; }
.role-timeline li { position: relative; }
.role-timeline li::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: -.7rem;
  width: .45rem;
  height: .45rem;
  background: #637d2a;
  border-radius: 50%;
}
.role-timeline { padding-left: .7rem; border-inline-start: 1px solid #afbd8b; }
.role-output-section { background: #edf2e3; }
.role-feature-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; margin-top: 1rem; }
.role-feature-columns article { background: #fff; border: 1px solid var(--lead-line); border-radius: 12px; padding: .9rem 1rem; }
.role-feature-columns h4 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .55rem; }
.role-feature-columns h4 span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #d9ecff; }
.role-feature-columns article:nth-child(2) h4 span { background: #dff79c; }
.role-feature-columns ul { margin: 0; }
.role-feature-rules details[open] { border-color: #92aa59; }
.leads-video-grid video { max-width: 450px; height: min(63dvh, 620px); }
@media (width <= 620px) {
  .role-feature-columns { grid-template-columns: 1fr; }
  .leads-video-grid video { height: min(61dvh, 520px); }
}
@media (prefers-reduced-motion: no-preference) {
  .leads-dialog.role-exiting { animation: role-exit 200ms ease-in both; pointer-events: none; }
  .leads-dialog.role-exiting::backdrop { animation: role-backdrop-exit 200ms ease-in both; }
  @keyframes role-exit { to { opacity: 0; transform: translateY(14px) scale(.975); } }
  @keyframes role-backdrop-exit { to { opacity: 0; } }
}
.sop-detail-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: .85rem;
  padding: .5rem .85rem; border: 1px solid #48652a; border-radius: .55rem;
  background: #f5f9ec; color: #203819; font: 700 .93rem/1.3 system-ui, sans-serif;
  text-decoration-thickness: 1px; text-underline-offset: .15em;
}
.sop-detail-link:hover { background: #e9f3d7; }

@media (prefers-reduced-motion: no-preference) {
  .leads-dialog[open] .leads-portrait.talent-card-visible figcaption,
  .leads-dialog[open] .leads-portrait.talent-card-visible .creator-tag {
    animation: talent-card-in 540ms 260ms both, talent-card-pulse 3.1s 850ms ease-in-out 2;
  }
  .leads-dialog[open] .leads-portrait.talent-card-visible .creator-tag-right {
    animation-delay: 370ms, 1060ms;
  }
  .leads-dialog .leads-portrait figcaption:focus-within,
  .leads-dialog .leads-portrait .creator-tag:focus-within { animation: none; }
  .leads-dialog .leads-motion.leads-visible { animation: role-scroll-in 480ms both; }
  @keyframes talent-card-in {
    from { opacity: 0; scale: .84; translate: 0 12px; }
    to { opacity: 1; scale: 1; translate: 0 0; }
  }
  @keyframes talent-card-pulse {
    0%, 100% { scale: 1; }
    42% { scale: 1.055; }
  }
  @keyframes role-scroll-in {
    from { opacity: .45; translate: 0 16px; scale: .985; }
    to { opacity: 1; translate: 0 0; scale: 1; }
  }
}
