/* Passo a passo animado do atendimento (atendimento/ajuda.php + assets/js/ajuda.js).
   Prefixos: aj- = página/player; m- = telas simuladas dentro do "aparelho". */

.aj-main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 70px; }
.aj-main h1 { font-size: 34px; margin: 4px 0 6px; }
.aj-lead { color: var(--n700); font-size: 16px; max-width: 640px; margin: 0 0 22px; }
.aj-back { margin-top: 26px; font-size: 14px; }

/* ---------- pergunta inicial ---------- */
.aj-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.aj-option {
  text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; font-family: var(--font-body); color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.aj-option:hover, .aj-option:focus-visible { border-color: var(--a600); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(29, 45, 61, .12); }
.aj-option__icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--a100); color: var(--a800); }
.aj-option__title { font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.1; }
.aj-option__desc { font-size: 14.5px; color: var(--n700); }

.aj-faq { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; max-width: 760px; }
.aj-faq h2 { font-size: 22px; margin-bottom: 8px; }
.aj-faq details { border-bottom: 1px solid var(--n200); padding: 9px 0; }
.aj-faq summary { cursor: pointer; font-weight: 500; }
.aj-faq p { margin: 8px 0 2px; color: var(--n700); font-size: 14.5px; }

/* ---------- player ---------- */
.aj-player__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.aj-player__top h1 { margin: 0; font-size: 30px; }
.aj-grid { display: grid; grid-template-columns: minmax(300px, 1fr) 470px; gap: 30px; align-items: start; }
.aj-progress { height: 6px; background: var(--n200); }
.aj-progress__bar { height: 100%; width: 0; background: var(--a700); transition: width .5s ease; }
.aj-count { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--n600); margin: 8px 0 6px; }
.aj-caption { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--a700); padding: 16px 18px; min-height: 128px; animation: aj-fade .35s ease; }
.aj-caption h2 { font-size: 24px; margin-bottom: 6px; }
.aj-caption p { margin: 0; font-size: 16px; line-height: 1.5; }
.aj-caption p b { color: var(--a800); }
.aj-end { background: var(--a100); border: 1px solid var(--a300); border-left: 5px solid #2f9e5b; padding: 16px 18px; animation: aj-fade .35s ease; }
.aj-end h2 { font-size: 24px; margin-bottom: 6px; }
.aj-end p { margin: 0 0 12px; }
.aj-end__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aj-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.aj-controls .sac2-btn { white-space: nowrap; }
.aj-hint { font-size: 13px; color: var(--n700); margin: 4px 0; }
.aj-steps { list-style: none; counter-reset: aj; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.aj-steps li { counter-increment: aj; }
.aj-steps button {
  width: 100%; text-align: left; background: none; border: 1px solid transparent; font-family: var(--font-body); font-size: 14.5px;
  color: var(--n700); padding: 7px 10px; cursor: pointer; display: flex; gap: 10px; align-items: center;
}
.aj-steps button::before {
  content: counter(aj); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--n200); color: var(--n800);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.aj-steps li.is-done button::before { background: #2f9e5b; color: #fff; content: "✓"; }
.aj-steps li.is-current button { background: var(--a100); border-color: var(--a300); color: var(--text); font-weight: 500; }
.aj-steps li.is-current button::before { background: #e63946; color: #fff; }
.aj-steps button:hover { background: var(--n100); }

@keyframes aj-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- aparelho (simulador) ---------- */
.aj-stage { position: sticky; top: 14px; width: 470px; }
.aj-dev {
  position: absolute; left: 0; top: 0; width: 440px; transform-origin: top left;
  background: #fff; border: 1px solid #b9bcc2; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(29, 45, 61, .22);
}
.aj-bar { height: 36px; background: #e9eaee; border-bottom: 1px solid #d5d7dd; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.aj-bar__dots { display: flex; gap: 5px; }
.aj-bar__dots i { width: 9px; height: 9px; border-radius: 50%; background: #c3c6cd; display: block; }
.aj-bar__url { flex: 1; background: #fff; border-radius: 12px; font: 12px/1 system-ui, sans-serif; color: #4b4f56; padding: 6px 10px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.aj-view { height: 560px; overflow: hidden; position: relative; background: #f2f2f3; }
.aj-page { min-height: 100%; transition: opacity .18s; }
.aj-page.is-out { opacity: 0; }
.aj-overlay { position: absolute; left: 0; right: 0; top: 36px; height: 560px; pointer-events: none; overflow: hidden; z-index: 10; }

.aj-cursor { position: absolute; left: 0; top: 0; z-index: 6; transform: translate(380px, 520px); transition: transform .95s cubic-bezier(.45, .05, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.aj-cursor.is-fast { transition-duration: 0s; }
.aj-ripple { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 3px solid #e63946; animation: aj-ripple .65s ease-out forwards; z-index: 5; }
@keyframes aj-ripple { to { transform: scale(4.2); opacity: 0; } }
.aj-ring { position: absolute; border: 3px solid #e63946; border-radius: 9px; opacity: 0; transition: left .35s, top .35s, width .35s, height .35s, opacity .25s; box-shadow: 0 0 0 4px rgba(230, 57, 70, .18); z-index: 4; }
.aj-ring.is-on { opacity: 1; animation: aj-pulse 1.4s ease-in-out infinite; }
@keyframes aj-pulse { 50% { box-shadow: 0 0 0 9px rgba(230, 57, 70, .06); } }
.aj-tip { position: absolute; max-width: 230px; background: #1d2d3d; color: #fff; font: 600 12.5px/1.3 system-ui, sans-serif; padding: 7px 11px; border-radius: 8px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; z-index: 7; }
.aj-tip.is-on { opacity: 1; transform: none; }
.aj-toast {
  position: absolute; left: 14px; right: 14px; top: 10px; background: #1d2d3d; color: #fff; border-radius: 10px; padding: 10px 14px; font: 13px/1.35 system-ui, sans-serif;
  transform: translateY(-90px); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; z-index: 8; display: flex; gap: 10px; align-items: center;
}
.aj-toast.is-on { transform: none; opacity: 1; }
.aj-toast b { display: block; font-size: 12px; opacity: .75; font-weight: 600; }

/* ---------- telas simuladas ---------- */
.m-sac2 { font-family: "Barlow", system-ui, sans-serif; background: #f2f2f3; min-height: 560px; color: #1d1f20; }
.m-brand { font-family: Inter, "Segoe UI", system-ui, sans-serif; background: #f4f5f7; min-height: 560px; color: #1f2a37; --mc: #4AC1E0; }
.m-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 50px; }
.m-sac2 .m-head { background: #1d2d3d; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 16px; }
.m-sac2 .m-head img { height: 15px; display: block; }
.m-brand .m-head { background: var(--mc); color: #fff; font-weight: 700; font-size: 15px; }
.m-brand .m-head img { height: 28px; display: block; }
.m-wrap { padding: 20px 16px 30px; }
.m-card { background: #fff; padding: 22px 20px; }
.m-sac2 .m-card { border: 1px solid rgba(29, 31, 32, .16); }
.m-brand .m-card { border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.m-kicker { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #7a7a7d; margin-bottom: 2px; }
.m-h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 28px; line-height: 1.1; margin: 2px 0 6px; }
.m-h1 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.m-lead { font-size: 13.5px; color: #5d5d60; margin: 4px 0 12px; line-height: 1.4; }
.m-muted { font-size: 12.5px; color: #6b7280; }
.m-muted u, .m-link { color: #1a5fb4; text-decoration: underline; }
.m-choice { display: block; border: 1px solid rgba(29, 31, 32, .16); padding: 13px 15px; margin-bottom: 10px; background: #fff; transition: border-color .2s, background .2s, transform .12s; }
.m-choice b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 600; color: #416180; }
.m-choice span { font-size: 12.5px; color: #5d5d60; }
.m-choice.is-hover { border-color: #597ea3; background: #eef6ff; }
.m-center { text-align: center; font-size: 12.5px; color: #7a7a7d; margin-top: 14px; }
.m-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(29, 31, 32, .16); font-size: 11.5px; color: #7a7a7d; }
.m-btn { display: block; width: 100%; text-align: center; font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 8px; background: var(--mc, #1d2d3d); color: #fff; margin-top: 8px; transition: filter .15s, transform .12s; }
.m-btn.sec { background: #e5e6ea; color: #333; }
.m-btn.navy { background: #1d2d3d; border-radius: 0; font-family: "Barlow", sans-serif; font-weight: 500; }
.m-btn.inline { display: inline-block; width: auto; }
.m-btn.is-hover { filter: brightness(.9); }
.m-btn.is-press, .m-choice.is-press { transform: scale(.97); }
.m-label { font-size: 12.5px; font-weight: 600; margin: 12px 0 4px; display: block; }
.m-input, .m-select, .m-textarea { position: relative; border: 1px solid #cfd2d8; background: #fff; border-radius: 6px; padding: 9px 11px; font-size: 14px; min-height: 38px; color: #1f2a37; transition: border-color .2s, box-shadow .2s; }
.m-sac2 .m-input { border-radius: 0; }
.m-textarea { min-height: 84px; line-height: 1.4; }
.m-input.is-focus, .m-select.is-focus, .m-textarea.is-focus { border-color: #416180; box-shadow: 0 0 0 3px rgba(65, 97, 128, .2); }
.m-ph { color: #9aa0a8; }
.has-value .m-ph { display: none; }
.is-typing .m-txt::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; background: #1d1f20; margin-left: 1px; vertical-align: text-bottom; animation: aj-blink .8s steps(2) infinite; }
@keyframes aj-blink { 50% { opacity: 0; } }
.m-select::after { content: ""; position: absolute; right: 12px; top: 15px; border: 5px solid transparent; border-top-color: #555; }
.m-menu { position: absolute; left: -1px; right: -1px; top: 100%; z-index: 9; background: #fff; border: 1px solid #b9bcc2; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); margin-top: 2px; }
.m-menu div { padding: 8px 11px; font-size: 14px; }
.m-menu div.is-hover { background: #d6ebff; }
.m-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid #cfd2d8; background: #fff; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.m-file .pick { border: 1px solid #767676; background: #efefef; border-radius: 3px; padding: 2px 8px; font-size: 13px; transition: background .15s, transform .12s; }
.m-file .pick.is-hover { background: #dcdcdc; }
.m-file .pick.is-press { transform: scale(.95); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; background: #eef6ff; border: 1px solid #b5d9fd; color: #2c455d; font-size: 12.5px; padding: 4px 9px; border-radius: 14px; animation: aj-pop .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes aj-pop { from { transform: scale(.4); opacity: 0; } }
.m-hint { font-size: 11.5px; color: #6b7280; margin-top: 5px; }
.m-badge { display: inline-block; background: var(--mc); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 4px; transition: background .4s; }
.m-badge.is-ok { background: #2f9e5b; }
.m-msg { max-width: 82%; border-radius: 10px; padding: 9px 12px; margin: 10px 0; font-size: 13.5px; line-height: 1.4; animation: aj-pop .4s ease; }
.m-msg small { display: block; font-size: 11px; opacity: .75; margin-bottom: 2px; }
.m-msg.in { background: #eef1f6; margin-right: auto; }
.m-msg.out { background: var(--mc); color: #fff; margin-left: auto; }
.m-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid rgba(29, 31, 32, .16); padding: 11px 13px; background: #fff; transition: border-color .2s, background .2s; }
.m-item.is-hover { border-color: #597ea3; background: #eef6ff; }
.m-item b { font-weight: 500; font-size: 13.5px; color: #1d1f20; }
.m-tag { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; background: #e7e7ea; color: #424244; padding: 2px 7px; white-space: nowrap; }
.m-ok { text-align: center; padding: 8px 0 4px; }
.m-ok .check { width: 64px; height: 64px; border-radius: 50%; background: #2f9e5b; color: #fff; font-size: 38px; line-height: 64px; margin: 0 auto 10px; animation: aj-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
.m-num { display: inline-block; background: #eef6ff; border: 1px dashed #597ea3; font-size: 22px; font-weight: 700; letter-spacing: .12em; padding: 6px 16px; margin: 4px 0 8px; }
.m-confetti { position: absolute; inset: 0; overflow: hidden; z-index: 3; }
.m-confetti i { position: absolute; top: -10px; width: 8px; height: 14px; opacity: .9; animation: aj-fall 2.4s linear forwards; }
@keyframes aj-fall { to { transform: translateY(620px) rotate(540deg); opacity: .2; } }

/* e-mail aberto (caixa de entrada simulada) */
.m-mailbar { background: #0f6cbd; color: #fff; padding: 12px 16px; font: 600 14px system-ui, sans-serif; display: flex; justify-content: space-between; }
.m-mail { background: #fff; min-height: 510px; font: 14px/1.5 system-ui, "Segoe UI", sans-serif; color: #1f1f1f; }
.m-mail__head { padding: 14px 16px; border-bottom: 1px solid #e3e3e3; }
.m-mail__head h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; font-family: inherit; }
.m-mail__from { font-size: 12.5px; color: #555; }
.m-mail__body { padding: 16px; }
.m-mail__body a, .m-mail__body .m-link { color: #1a5fb4; text-decoration: underline; word-break: break-all; transition: background .2s; }
.m-mail__body .m-link.is-hover { background: #fff3a8; }

/* ---------- responsivo / movimento reduzido ---------- */
@media (max-width: 960px) {
  .aj-grid { grid-template-columns: 1fr; gap: 14px; }
  .aj-side { display: contents; }
  .aj-progress { order: 1; } .aj-count { order: 2; margin: 0; } .aj-caption { order: 3; min-height: 0; }
  .aj-stage { order: 4; position: relative; top: 0; width: 100%; }
  .aj-end { order: 5; } .aj-controls { order: 6; margin: 0; } .aj-hint { order: 7; } .aj-steps { order: 8; margin-top: 4px; }
  .aj-main h1, .aj-player__top h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .aj-cursor, .aj-ring, .aj-tip, .aj-toast, .aj-progress__bar, .aj-page { transition: none; }
  .aj-caption, .aj-end, .m-msg, .m-chip, .m-ok .check { animation: none; }
  .aj-ring.is-on { animation: none; }
}
