/* Ajuda — estilos da página. Carregar depois de site.css. Usa os tokens de site.css (--royal, --ice, --line, --muted, --hd, --bd). */

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.help-search [hidden],.help-empty[hidden],.help-faq details[hidden],.help-empty [hidden]{display:none!important}

/* Hero */
.help-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5vw,64px);align-items:center;padding:48px 0 30px}
.help-hero h1{font-size:clamp(38px,4.6vw,60px);margin-bottom:18px}
.help-hero .lead{font-size:18px;line-height:1.7;color:var(--muted);max-width:520px;margin:0 0 30px}
.help-art{border-radius:32px;background:linear-gradient(150deg,var(--deep),var(--royal) 60%,var(--sky));padding:1rem;display:grid;place-items:center;overflow:hidden}
.help-art svg{display:block;width:100%;height:auto;max-height:420px}

/* Pesquisa */
.help-search{max-width:540px}
.help-search label{display:block;margin-bottom:9px;font-size:14px}
.help-search-field{position:relative}
.help-search .help-search-input{height:58px;padding:0 56px 0 52px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:16px;box-shadow:0 10px 28px rgba(6,26,64,.06);transition:border-color .2s,box-shadow .2s}
.help-search .help-search-input::placeholder{color:#5b6e94}
.help-search .help-search-input::-webkit-search-cancel-button,.help-search .help-search-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.help-search .help-search-input:hover{border-color:#9bb8e8}
.help-search .help-search-input:focus{border-color:var(--royal);box-shadow:0 0 0 4px rgba(20,86,240,.14),0 10px 28px rgba(6,26,64,.06)}
.help-search-icon{position:absolute;left:19px;top:50%;width:22px;height:22px;transform:translateY(-50%);fill:none;stroke:var(--royal);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.help-kbd{position:absolute;right:18px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:8px;background:var(--bg);color:var(--muted);font:700 13px var(--bd);pointer-events:none}
.help-clear{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);transition:background .2s,color .2s}
.help-clear:hover{background:var(--ice);color:var(--ink)}
.help-clear svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.help-hero .help-search .help-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:none;margin:14px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.help-search .help-suggest button{border:0;border-radius:99px;padding:6px 13px;background:rgba(20,86,240,.08);color:var(--royal);font:700 13px var(--bd);transition:background .2s}
.help-search .help-suggest button:hover{background:rgba(20,86,240,.16)}

/* Filtros */
.help-list-section{padding-top:14px}
.help-filters{gap:10px;margin-bottom:14px}
.help-filters .help-chip{display:inline-flex;align-items:center;gap:9px;padding:8px 10px 8px 17px;font-size:14px;transition:background .2s,color .2s,border-color .2s}
.help-filters .help-chip:hover{border-color:#9bb8e8}
.help-filters .help-chip[aria-pressed=true]:hover{border-color:var(--royal)}
.help-count{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:99px;background:var(--ice);color:var(--deep);font-size:12px;font-weight:700;line-height:1}
.help-chip[aria-pressed=true] .help-count{background:#0a2a6b;color:#fff}
.help-chip.is-zero:not([aria-pressed=true]){color:#52658a}
.help-chip.is-zero:not([aria-pressed=true]) .help-count{background:#eef2fa;color:#52658a}
.help-results{margin:0 0 18px;font-size:14px;color:var(--muted)}

/* Perguntas */
.help-faq{gap:12px}
/* Caixas: cantos assimétricos + borda em degradê que dá uma volta quando abre */
@property --edge{syntax:"<angle>";inherits:false;initial-value:0deg}
.help-faq{--shape:40px 4px 40px 4px;--edge-rest:linear-gradient(135deg,#b4ccf5,#dcebff 50%,#b4ccf5);--edge-hover:linear-gradient(135deg,var(--royal),var(--cyan))}
.help-faq details{padding:0;border:2px solid transparent;border-radius:var(--shape);background:linear-gradient(#fff,#fff) padding-box,var(--edge-rest) border-box;transition:box-shadow .3s,transform .3s cubic-bezier(.22,1,.36,1)}
.help-faq details:hover{background:linear-gradient(#fff,#fff) padding-box,var(--edge-hover) border-box;box-shadow:0 10px 26px rgba(20,86,240,.1);transform:translateY(-2px)}
.help-faq details[open]{background:linear-gradient(#fff,#fff) padding-box,conic-gradient(from var(--edge),var(--royal),var(--cyan),var(--sky),var(--royal)) border-box;box-shadow:0 18px 42px rgba(20,86,240,.14);transform:none;animation:help-edge 1.2s cubic-bezier(.22,1,.36,1) both}
@keyframes help-edge{from{--edge:-180deg}to{--edge:180deg}}
.help-faq summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 22px;border-radius:38px 2px 38px 2px;font-size:16px;line-height:1.4}
.help-faq summary::-webkit-details-marker{display:none}
.help-faq summary::after,.help-faq details[open] summary::after{content:none}
.help-ico{--ico-bg:var(--ice);--ico-fg:var(--royal);display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--ico-bg);color:var(--ico-fg)}
.help-ico svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
details[data-category=instalacao] .help-ico{--ico-bg:#dcebff;--ico-fg:#1456f0}
details[data-category=familia] .help-ico{--ico-bg:#d8f0ff;--ico-fg:#0b5fa8}
details[data-category=telegram] .help-ico{--ico-bg:#d3f6f7;--ico-fg:#00666f}
details[data-category=conta] .help-ico{--ico-bg:#e3e8fb;--ico-fg:#0a2a6b}
details[data-category=privacidade] .help-ico{--ico-bg:#ffecc7;--ico-fg:#7a4a00}
.help-toggle{position:relative;width:28px;height:28px;border-radius:50%;background:var(--ice);transition:transform .3s cubic-bezier(.22,1,.36,1),background .2s}
.help-toggle::before,.help-toggle::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;border-radius:2px;background:var(--royal)}
.help-toggle::after{transform:rotate(90deg)}
.help-faq details[open] .help-toggle{transform:rotate(45deg);background:var(--royal)}
.help-faq details[open] .help-toggle::before,.help-faq details[open] .help-toggle::after{background:#fff}
.help-faq summary:hover .help-toggle{background:#c9defc}
.help-faq details[open] summary:hover .help-toggle{background:var(--royal)}
.help-faq .help-answer{padding:0 22px 22px 78px;font-size:15px;line-height:1.75}
.help-faq .help-answer-body>p:first-child{margin-top:0}
.help-faq .help-answer ol{list-style:none;counter-reset:step;display:grid;gap:12px;margin:0 0 14px;padding:0}
.help-faq .help-answer li{counter-increment:step;position:relative;min-height:26px;padding:0 0 0 38px}
.help-faq .help-answer li::before{content:counter(step);position:absolute;left:0;top:1px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--ice);color:var(--royal);font:700 12px/1 var(--bd)}
.help-faq .help-answer p{margin:10px 0 0}
.help-faq .help-answer-body>ol+p{margin-top:2px}
.help-answer a{font-weight:700}
.help-faq mark{padding:0 2px;border-radius:4px;background:rgba(92,225,230,.45);color:inherit}
/* Sem resultados */
.help-empty{display:flex;align-items:flex-start;gap:18px;padding:28px;border:2px solid transparent;border-radius:44px 4px 44px 4px;background:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.92)) padding-box,linear-gradient(135deg,var(--royal),var(--cyan)) border-box}
.help-empty-ico{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:15px;background:var(--ice);color:var(--royal)}
.help-empty-ico svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.help-empty-title{margin:0 0 4px;font:800 21px/1.25 var(--hd);letter-spacing:-.3px}
.help-empty-text{margin:0;color:var(--muted);font-size:15px}
.help-empty-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.help-empty-actions .btn{min-height:42px;padding:10px 20px}

@media(max-width:860px){
  .help-hero{grid-template-columns:1fr;padding:34px 0 22px}
  .help-art{display:none}
  .help-search{max-width:none}
}
@media(max-width:760px){
  .help-hero .lead{font-size:16px;margin-bottom:24px}
  .help-search .help-search-input{padding:0 46px 0 44px}
  .help-search .help-search-input::placeholder{font-size:14px}
  .help-search-icon{left:15px}
  .help-faq{--shape:28px 4px 28px 4px}
  .help-faq summary{gap:12px;padding:16px 16px;border-radius:26px 2px 26px 2px}
  .help-ico{width:36px;height:36px;border-radius:12px}
  .help-faq .help-answer{padding:0 16px 20px 16px}
  .help-empty{flex-direction:column;padding:22px}
}
@media(hover:none){.help-kbd{display:none}}
@media(prefers-reduced-motion:reduce){.help-toggle,.help-faq details,.help-search .help-search-input{transition:none}.help-faq details,.help-faq details[open]{animation:none;transform:none}}

.help-icon-library{position:absolute}
