/* ==========================================================================
   Wise Funnel · /ia/sdr/ (estilos específicos da página)
   Usa apenas tokens e componentes de site.css / scenes.css.
   Animações só com transform/opacity; movimento reduzido = estado final legível.
   ========================================================================== */

/* ---------- Herói: conversa + CRM · palco 640x470 (celular 400x700) ---------- */
.sdr-hero-scene { width: min(100% - var(--gutter) * 2, 780px); margin-inline: auto; }
.sdr-chat { left: 20px; top: 20px; width: 368px; height: 430px; display: flex; flex-direction: column; overflow: hidden; }
.sdr-chat .chat-body { gap: 8px; padding: 12px 14px; min-height: 0; overflow: hidden; }
.sdr-chat .msg { max-width: 88%; padding: 9px 12px; }
.sdr-m1 { animation: sdr-m1 14s linear infinite; } .sdr-m2 { animation: sdr-m2 14s linear infinite; }
.sdr-m3 { animation: sdr-m3 14s linear infinite; } .sdr-m4 { animation: sdr-m4 14s linear infinite; }
.sdr-m5 { animation: sdr-m5 14s linear infinite; }
.msg--hand { align-self: center; display: inline-flex; align-items: center; gap: 8px; text-align: left; line-height: 1.3; background: rgb(87 199 138 / .14); color: var(--c-ok); border: 1px solid rgb(87 199 138 / .3); border-radius: 12px; font-size: 12px; font-weight: 500; }
.msg--hand .i { width: 14px; height: 14px; flex: none; stroke-width: 2.2; }

.sdr-crm { left: 404px; top: 20px; width: 216px; height: 262px; padding: 14px; display: grid; align-content: start; gap: 0; }
.sdr-crm .ui-row { gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.sdr-crm .ui-tag { margin-left: auto; }
.sdr-crm .ui-title, .sdr-crm .ui-sub { white-space: nowrap; }
.sdr-crm .ui-row > .ui-ico { width: 28px; height: 28px; }
.sdr-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; border-bottom: 1px solid rgb(255 255 255 / .05); font-size: 12.5px; }
.sdr-f:last-child { border-bottom: 0; }
.sdr-f > span:first-child { font-family: var(--font-mono); font-size: 10px; color: rgb(244 244 242 / .45); }
.sdr-f b { font-weight: 500; opacity: 0; }
.sdr-f--veic b, .sdr-f--ano b { animation: sdr-f1 14s linear infinite; }
.sdr-f--nome b { animation: sdr-f2 14s linear infinite; }
.sdr-f--status b { animation: sdr-f3 14s linear infinite; }

.sdr-steps { left: 404px; top: 298px; width: 216px; height: 152px; padding: 14px 16px; display: grid; align-content: space-between; list-style: none; margin: 0; }
.sdr-steps li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgb(244 244 242 / .45); }
.sdr-steps li::before { content: ""; position: absolute; left: 4.5px; top: 18px; width: 1px; height: calc(100% - 2px); background: rgb(255 255 255 / .1); }
.sdr-steps li:last-child::before { display: none; }
.sdr-steps i { position: relative; z-index: 1; width: 10px; height: 10px; flex: none; border-radius: 50%; background: #3a3a3f; }
.sdr-steps i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c-red-600); opacity: 0; }
.sdr-steps span { position: relative; }
.sdr-steps li:nth-child(1) i::after { animation: sdr-s1 14s linear infinite; } .sdr-steps li:nth-child(1) span { animation: sdr-t1 14s linear infinite; }
.sdr-steps li:nth-child(2) i::after { animation: sdr-s2 14s linear infinite; } .sdr-steps li:nth-child(2) span { animation: sdr-t2 14s linear infinite; }
.sdr-steps li:nth-child(3) i::after { animation: sdr-s3 14s linear infinite; } .sdr-steps li:nth-child(3) span { animation: sdr-t3 14s linear infinite; }
.sdr-steps li:nth-child(4) i::after { animation: sdr-s4 14s linear infinite; } .sdr-steps li:nth-child(4) span { animation: sdr-t4 14s linear infinite; }

@media (max-width: 719px) {
  .sdr-chat { left: 20px; top: 20px; width: 360px; height: 408px; }
  .sdr-crm { left: 20px; top: 444px; width: 172px; height: 236px; padding: 12px; }
  .sdr-crm .ui-sub, .sdr-crm .ui-ico { display: none; }
  .sdr-crm .ui-row { flex-wrap: wrap; gap: 6px; }
  .sdr-f { height: 36px; }
  .sdr-steps { left: 204px; top: 444px; width: 176px; height: 236px; padding: 16px; }
}

@keyframes sdr-m1 { 0% { opacity: 0; transform: translateY(8px); } 4%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes sdr-m2 { 0%, 14% { opacity: 0; transform: translateY(8px); } 18%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes sdr-m3 { 0%, 30% { opacity: 0; transform: translateY(8px); } 34%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes sdr-m4 { 0%, 44% { opacity: 0; transform: translateY(8px); } 48%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes sdr-m5 { 0%, 58% { opacity: 0; transform: translateY(8px) scale(.96); } 62%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes sdr-f1 { 0%, 8% { opacity: 0; } 12%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-f2 { 0%, 36% { opacity: 0; } 40%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-f3 { 0%, 62% { opacity: 0; } 66%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-s1 { 0%, 14% { opacity: 0; } 18%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-s2 { 0%, 30% { opacity: 0; } 34%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-s3 { 0%, 38% { opacity: 0; } 42%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-s4 { 0%, 58% { opacity: 0; } 62%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sdr-t1 { 0%, 14% { color: rgb(244 244 242 / .45); } 18%, 92% { color: #F4F4F2; } 97%, 100% { color: rgb(244 244 242 / .45); } }
@keyframes sdr-t2 { 0%, 30% { color: rgb(244 244 242 / .45); } 34%, 92% { color: #F4F4F2; } 97%, 100% { color: rgb(244 244 242 / .45); } }
@keyframes sdr-t3 { 0%, 38% { color: rgb(244 244 242 / .45); } 42%, 92% { color: #F4F4F2; } 97%, 100% { color: rgb(244 244 242 / .45); } }
@keyframes sdr-t4 { 0%, 58% { color: rgb(244 244 242 / .45); } 62%, 92% { color: #F4F4F2; } 97%, 100% { color: rgb(244 244 242 / .45); } }

/* ---------- Estatísticas do problema ---------- */
.sdr-loss { display: flex; flex-direction: column; gap: 22px; }
.sdr-loss__stat { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-line); display: grid; gap: 4px; }
.sdr-loss__num { order: -1; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -.03em; color: var(--c-red-soft); }
.sdr-loss__label { font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.4; }
@media (min-width: 960px) { .sdr-loss__label { min-height: 2.8em; } } /* rótulos de 1 ou 2 linhas: divisória alinhada na fileira */
.sdr-loss p { max-width: none; }

/* ---------- Abas: cenas ---------- */
.sdr-pill { display: inline-flex; margin-top: 14px; }
.sdr-card { left: 56px; top: 44px; width: 448px; padding: 18px; }
.sdr-card .ui-row { padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.sdr-card .ui-tag { margin-left: auto; }
.sdr-kb { height: 372px; align-content: start; display: grid; }
.sdr-kb__row { display: flex; align-items: center; gap: 12px; height: 54px; border-bottom: 1px solid rgb(255 255 255 / .05); opacity: 0; animation: sdr-rowin 9s var(--ease-out) infinite; animation-delay: calc(var(--i) * 350ms); }
.sdr-kb__row:last-of-type { border-bottom: 0; }
.sdr-kb__row .ui-ico { width: 30px; height: 30px; }
.sdr-kb__ok { margin-left: auto; color: var(--c-ok); width: 16px; height: 16px; stroke-width: 2.2; }
.sdr-note { position: absolute; left: 56px; right: 56px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: rgb(243 51 61 / .12); border: 1px solid rgb(243 51 61 / .3); color: var(--c-red-soft); font-size: 12.5px; line-height: 1.35; opacity: 0; animation: sdr-pop 9s linear infinite; animation-delay: 1.8s; }
.sdr-note .i { width: 15px; height: 15px; flex: none; }
.sdr-form { height: 300px; display: grid; align-content: start; }
.sdr-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; border-bottom: 1px solid rgb(255 255 255 / .05); }
.sdr-field > span:first-child { font-family: var(--font-mono); font-size: 11px; color: rgb(244 244 242 / .45); }
.sdr-field b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; opacity: 0; animation: sdr-rowin 9s var(--ease-out) infinite; animation-delay: calc(var(--i) * 900ms); }
.sdr-field b .i { width: 14px; height: 14px; color: var(--c-ok); stroke-width: 2.4; }
.sdr-form-foot { position: absolute; left: 56px; top: 372px; display: flex; align-items: center; gap: 10px; }
.sdr-lane { position: absolute; top: 44px; width: 222px; height: 270px; padding: 12px; border-radius: 12px; background: rgb(255 255 255 / .025); border: 1px solid rgb(255 255 255 / .06); }
.sdr-lane--a { left: 40px; } .sdr-lane--b { left: 298px; }
.sdr-lane .ui-micro { display: block; padding: 2px 2px 10px; font-size: 10.5px; }
.sdr-mover { left: 52px; top: 104px; width: 198px; padding: 12px; animation: sdr-move 9s var(--ease-std) infinite; }
.sdr-mover .ui-tag { margin-top: 8px; }
.sdr-handoff { left: 40px; top: 338px; width: 480px; padding: 14px 16px; opacity: 0; animation: sdr-pop 9s linear infinite; animation-delay: 1.2s; }
.sdr-handoff .ui-row { gap: 12px; }
.sdr-pips { display: flex; gap: 10px; margin: 18px 0 4px; }
.sdr-pip { flex: 1; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .08); position: relative; overflow: hidden; }
.sdr-pip::after { content: ""; position: absolute; inset: 0; background: var(--c-red-600); transform: scaleX(0); transform-origin: left; animation: sdr-pip 9s linear infinite; animation-delay: calc(var(--i) * 1.1s); }
.sdr-attempts { height: 344px; display: grid; align-content: start; }
.sdr-attempt { display: flex; align-items: center; gap: 12px; height: 50px; border-bottom: 1px solid rgb(255 255 255 / .05); font-size: 13px; opacity: 0; animation: sdr-rowin 9s var(--ease-out) infinite; animation-delay: calc(var(--i) * 800ms); }
.sdr-attempt:last-child { border-bottom: 0; }
.sdr-attempt .ui-time { margin-left: auto; align-self: center; }

@keyframes sdr-rowin { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes sdr-pop { 0%, 40% { opacity: 0; transform: translateY(8px); } 48%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes sdr-move { 0%, 20% { transform: none; } 45%, 90% { transform: translateX(258px); } 97%, 100% { transform: none; } }
@keyframes sdr-pip { 0%, 4% { transform: scaleX(0); } 10%, 90% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }

/* ---------- Follow-up: linha do tempo ---------- */
.sdr-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.sdr-tl { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.sdr-tl__when { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--c-red-soft); padding-top: 3px; line-height: 1.3; }
.sdr-tl h3 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.4; color: var(--c-fg); }
.sdr-tl p { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); text-wrap: pretty; }
.sdr-rules { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 760px) { .sdr-rules { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.sdr-rule { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: rgb(19 19 21 / .4); }
.sdr-rule h3 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.4; }
.sdr-rule p { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); text-wrap: pretty; }
.sdr-follow { display: grid; gap: 40px; }
@media (min-width: 960px) { .sdr-follow { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

/* ---------- Infraestrutura ---------- */
.sdr-infra .card { padding: clamp(24px, 3vw, 36px); gap: 18px; display: grid; align-content: start; }
.sdr-infra .card__title { font-size: var(--fs-h3); letter-spacing: var(--track-h3); line-height: 1.2; font-weight: 400; align-items: flex-start; }
.sdr-infra .card__title .i { width: 22px; height: 22px; margin-top: .3em; flex: none; }
.sdr-infra .card > p { max-width: 52ch; margin-top: 0; }
.sdr-infra .checklist { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--c-line); }

/* ---------- Entregáveis ---------- */
.sdr-deliver { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .sdr-deliver { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sdr-deliver { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.sdr-del { display: grid; align-content: start; gap: 14px; padding: 24px; }
.sdr-del__num { font-family: var(--font-mono); font-size: 13px; color: var(--c-red-soft); }
.sdr-del h3 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.4; color: #FAFAF8; }
.sdr-del p { margin-top: 0 !important; max-width: none !important; }
.sdr-del .ui-ico { width: 40px; height: 40px; border-radius: 12px; }

/* ---------- Inteligência ---------- */
.sdr-know { display: grid; gap: 40px; }
@media (min-width: 960px) { .sdr-know { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.sdr-know .flow { margin-top: 0; }
.sdr-know__note { display: grid; grid-template-columns: 44px 1fr; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: rgb(19 19 21 / .4); }
.sdr-know__note p { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-fg-2); text-wrap: pretty; }

/* ---------- FAQ ---------- */
.sdr-faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .sdr-faq { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

/* ---------- CTA final ---------- */
.sdr-final-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 640px; margin-top: 12px; padding-top: 32px; border-top: 1px solid var(--c-line-inv); }
.sdr-final-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.sdr-final-stats dt { font-size: var(--fs-xs); color: var(--c-ink-2); text-align: center; line-height: 1.35; }
.sdr-final-stats dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--c-ink); }

@media (prefers-reduced-motion: reduce) {
  .sdr-m1, .sdr-m2, .sdr-m3, .sdr-m4, .sdr-m5,
  .sdr-f b, .sdr-kb__row, .sdr-note, .sdr-field b, .sdr-handoff, .sdr-attempt { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sdr-steps i::after { opacity: 1 !important; animation: none !important; }
  .sdr-steps span { color: #F4F4F2 !important; animation: none !important; }
  .sdr-mover { transform: translateX(258px) !important; animation: none !important; }
  .sdr-pip::after { transform: none !important; animation: none !important; }
}
