/* ==========================================================================
   Onbley Servers — blocos da home (index.php + inc/home-blocos.php)
   Efeitos só em CSS/SVG; nada de texto escondido; "reduzir movimento" desliga tudo.
   ========================================================================== */

/* ---------- Topo: fundo de rede ---------- */
.ob-pl-hero { position: relative; isolation: isolate; }
.ob-pl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); }
.ob-pl-rede { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 30%, #000 62%); }
.ob-pl-rede__rota { fill: none; stroke: rgba(143, 211, 255, .22); stroke-width: 1.2; stroke-dasharray: 4 7; animation: ob-pl-fluxo 18s linear infinite; }
.ob-pl-rede__pulso { fill: #8fd3ff; filter: drop-shadow(0 0 4px rgba(143, 211, 255, .9)); }
.ob-pl-rede__no circle { fill: #8fd3ff; }
.ob-pl-rede__no .ob-pl-rede__onda { fill: none; stroke: rgba(143, 211, 255, .6); stroke-width: 1; transform-origin: center; transform-box: fill-box; animation: ob-pl-onda 3s ease-out infinite; }
@keyframes ob-pl-fluxo { to { stroke-dashoffset: -220; } }
@keyframes ob-pl-onda { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }

/* ---------- Topo: tela da Central do Cliente ---------- */
.ob-pl-painel { position: relative; width: 100%; max-width: 540px; margin: 28px auto 8px; padding: 34px 0 40px; font-family: var(--ob-font); text-align: left; }
.ob-pl-painel * { box-sizing: border-box; }
.ob-pl-painel__brilho { position: absolute; inset: 0 -6%; border-radius: 50%; background: radial-gradient(circle, rgba(79, 179, 224, .38), rgba(79, 179, 224, 0) 65%); }
.ob-pl-janela { position: relative; border-radius: 18px; overflow: hidden; background: #0f1a2b; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 8, 24, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ob-pl-janela__barra { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: #16233a; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ob-pl-janela__barra > i { width: 9px; height: 9px; border-radius: 50%; background: #f26b5b; }
.ob-pl-janela__barra > i:nth-child(2) { background: #f5bd4f; } .ob-pl-janela__barra > i:nth-child(3) { background: #5dca61; }
.ob-pl-janela__barra span { margin-left: 12px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #9fb3c8; font-size: 11.5px; font-weight: 500; }
.ob-pl-janela__barra span .fa { color: #5ee08f; margin-right: 4px; }
.ob-pl-janela__corpo { display: grid; grid-template-columns: 46px 1fr; min-height: 270px; }
.ob-pl-janela__menu { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 1px solid rgba(255, 255, 255, .06); }
.ob-pl-janela__menu li { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #5f7590; font-size: 13px; }
.ob-pl-janela__menu li.is-ativo { background: rgba(11, 127, 192, .25); color: #8fd3ff; }
.ob-pl-janela__conteudo { padding: 16px 18px 18px; }
.ob-pl-janela__titulo { margin: 0 0 12px !important; color: #e8f1fb !important; font-size: 14.5px !important; font-weight: 600; }
.ob-pl-janela__titulo small { margin-left: 8px; color: #6f86a3; font-size: 11.5px; font-weight: 500; }
.ob-pl-servicos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ob-pl-servicos li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); animation: ob-pl-entra .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--i) * .15s); }
.ob-pl-servicos b { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-size: 12.5px; font-weight: 600; }
.ob-pl-servicos li > span { flex: 1; min-width: 0; color: #e8f1fb; font-size: 13px; font-weight: 500; line-height: 1.25; }
.ob-pl-servicos small { display: block; color: #6f86a3; font-size: 11px; font-weight: 400; }
.ob-pl-servicos em { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(24, 160, 88, .15); color: #5ee08f; font-size: 11px; font-style: normal; font-weight: 500; }
.ob-pl-ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #18a058; box-shadow: 0 0 0 0 rgba(24, 160, 88, .6); animation: ob-pl-pulso 2s ease-out infinite; }
.ob-pl-servicos em .ob-pl-ponto { background: #5ee08f; }
.ob-pl-metricas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ob-pl-metricas div { padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.ob-pl-metricas small { display: block; color: #6f86a3; font-size: 10.5px; }
.ob-pl-metricas b { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: #e8f1fb; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ob-pl-metricas b .fa { color: #5ee08f; font-size: 11px; }
.ob-pl-metricas img { border-radius: 50%; }

.ob-pl-flutua { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; color: #172033; box-shadow: 0 18px 36px -14px rgba(0, 10, 30, .6); animation: ob-pl-flutua 6.5s ease-in-out infinite; }
.ob-pl-flutua small { display: block; font-size: 11px; font-weight: 500; color: #5f6b7d; }
.ob-pl-flutua--nota { right: -4%; top: 0; padding: 9px 16px 9px 9px; border-radius: 18px; font-size: 13.5px; font-weight: 600; line-height: 1.2; animation-delay: -3s; }
.ob-pl-flutua--toast { right: 2%; bottom: 0; padding: 10px 16px 10px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.25; animation: ob-pl-toast 9s ease-in-out infinite; }
.ob-pl-flutua--toast .fa { color: #18a058; font-size: 20px; }
.ob-pl-flutua--chip { left: 4%; bottom: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; animation-duration: 7s; animation-delay: -1s; }
.ob-pl-flutua--chip b { color: #18a058; }

@keyframes ob-pl-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ob-pl-pulso { 70% { box-shadow: 0 0 0 7px rgba(24, 160, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 160, 88, 0); } }
@keyframes ob-pl-flutua { 50% { transform: translateY(-8px); } }
@keyframes ob-pl-toast { 0%, 8% { opacity: 0; transform: translateY(12px) scale(.96); } 14%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ---------- Bento ---------- */
html body .ob-infra .ob-section__head h2 { text-wrap: balance; }
.ob-pl-bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ob-pl-bento__item { position: relative; overflow: hidden; padding: 26px 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--ob-border); box-shadow: var(--ob-shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ob-pl-bento__item:hover { transform: translateY(-3px); border-color: #bfe0f3; box-shadow: 0 22px 44px -24px rgba(11, 42, 85, .4); }
.ob-pl-bento__icone { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 13px; background: var(--ob-blue-50); color: var(--ob-blue); font-size: 18px; }
body .ob-pl-bento h3:not(#_) { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--ob-ink); }
.ob-pl-bento p { margin: 0; font-size: 14.5px; color: var(--ob-text); line-height: 1.6; }

.ob-pl-bento__item--backup { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.ob-pl-bento__item--suporte { grid-row: span 2; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(165deg, #0b2a55, #0f3c74 60%, #155fa6); border-color: transparent; }
.ob-pl-bento__item--suporte .ob-pl-bento__icone { background: rgba(255, 255, 255, .12); color: #8fd3ff; }
body .ob-pl-bento__item--suporte h3:not(#_) { color: #fff; }
.ob-pl-bento__item--suporte p { color: rgba(232, 241, 251, .78); }
.ob-pl-bento__item--protecao { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; }

/* linha do tempo de backups */
.ob-pl-linha { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 18px 52px; border-radius: 18px; background: var(--ob-soft); border: 1px solid var(--ob-border); }
.ob-pl-linha__trilho { position: absolute; left: 36px; right: 36px; top: 38px; height: 2px; background: linear-gradient(90deg, #18a058, #4fb3e0); transform-origin: left; }
.ob-pl-linha__marco { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ob-pl-linha__marco .fa { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #18a058; color: #fff; font-size: 13px; box-shadow: 0 0 0 4px var(--ob-soft); }
.ob-pl-linha__marco small { font-size: 11.5px; font-weight: 500; color: var(--ob-muted); }
.ob-pl-linha__marco--agora .fa { background: var(--ob-blue); animation: ob-pl-gira 2.4s linear infinite; }
.ob-pl-linha__marco--agora small { color: var(--ob-blue-700); font-weight: 600; }
.ob-pl-linha__botao { position: absolute; right: 16px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--ob-border); color: var(--ob-blue-700); font-size: 12px; font-weight: 600; }
@keyframes ob-pl-trilho { from { transform: scaleX(0); } }

/* entrada dos destaques: só com JS (classe .ob-pl-anima), quando o card aparece na tela */
.ob-pl-anima > li:not(.is-visivel) .ob-pl-linha__marco { opacity: 0; }
.ob-pl-anima > li:not(.is-visivel) .ob-pl-linha__trilho { transform: scaleX(0); }
.ob-pl-anima > li.is-visivel .ob-pl-linha__trilho { animation: ob-pl-trilho 1.4s ease-out both; }
.ob-pl-anima > li.is-visivel .ob-pl-linha__marco { animation: ob-pl-entra .5s ease-out both; animation-delay: calc(var(--i) * .18s); }
@keyframes ob-pl-gira { to { transform: rotate(360deg); } }

/* chat de suporte: sem JS ou com movimento reduzido fica a conversa pronta */
.ob-pl-chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 14px 16px; border-radius: 18px; overflow: hidden; background: rgba(0, 10, 30, .28); border: 1px solid rgba(255, 255, 255, .08); }
p.ob-pl-chat__topo { display: flex; align-items: center; gap: 10px; margin: 0 -14px 4px; padding: 10px 14px; background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ob-pl-chat__avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #1a8fd6, #0b5582); color: #fff; font-size: 14px; }
.ob-pl-chat__topo > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.ob-pl-chat__topo b { color: #fff; font-size: 13px; font-weight: 600; }
.ob-pl-chat__topo .ob-pl-ponto { background: #5ee08f; }
p.ob-pl-chat__hora { align-self: center; margin: 0 0 2px; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: 11px; color: rgba(232, 241, 251, .6); }
p.ob-pl-chat__msg { max-width: 86%; margin: 0; padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .1); color: #e8f1fb; font-size: 13px; line-height: 1.45; }
.ob-pl-chat__msg small { display: block; margin-top: 2px; text-align: right; font-size: 10px; color: rgba(232, 241, 251, .5); }
.ob-pl-chat__msg small i { margin-left: 3px; color: #8fd3ff; font-size: 9px; }
.ob-pl-chat__msg small i + i { margin-left: -5px; }
p.ob-pl-chat__msg--cliente { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #1fae5b; color: #fff; }
.ob-pl-chat__msg--cliente small { color: rgba(255, 255, 255, .75); }
.ob-pl-chat__msg--cliente small i { color: #fff; }
/* "digitando" no cabeçalho, no mesmo lugar do "online agora": troca de texto sem mexer na altura da conversa */
.ob-pl-chat__topo small { display: grid; font-size: 11px; color: #8fe0b0; }
.ob-pl-chat__topo small > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 6px; }
.ob-pl-chat__digitando { gap: 3px !important; opacity: 0; font-style: italic; }
.ob-pl-chat__digitando i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ob-pl-digita 1.2s ease-in-out infinite; }
.ob-pl-chat__digitando i:first-of-type { margin-left: 2px; }
.ob-pl-chat__digitando i:nth-of-type(2) { animation-delay: .15s; } .ob-pl-chat__digitando i:nth-of-type(3) { animation-delay: .3s; }
@keyframes ob-pl-digita { 30% { transform: translateY(-3px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
p.ob-pl-chat__resolvido { align-self: center; margin: 4px 0 0; font-size: 11.5px; font-weight: 500; color: #8fe0b0; }
.ob-pl-chat__resolvido i { margin-right: 4px; }
/* com animação: as mensagens entram na ordem */
.ob-pl-anima > li:not(.is-visivel) :is(.ob-pl-chat__msg, .ob-pl-chat__resolvido) { opacity: 0; }
.ob-pl-anima > li.is-visivel :is(.ob-pl-chat__msg, .ob-pl-chat__resolvido) { animation: ob-pl-entra .45s ease-out both; animation-delay: var(--t); }
/* o suporte "digita" de 0,9s a 2,1s e de 2,6s a 4,2s (antes de cada resposta) */
.ob-pl-anima > li.is-visivel .ob-pl-chat__digitando { animation: ob-pl-dig-sim 4.2s both; }
.ob-pl-anima > li.is-visivel .ob-pl-chat__online { animation: ob-pl-dig-nao 4.2s both; }
@keyframes ob-pl-dig-sim { 0%, 21.3% { opacity: 0; } 21.4%, 49.9% { opacity: 1; } 50%, 61.8% { opacity: 0; } 61.9%, 99.9% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ob-pl-dig-nao { 0%, 21.3% { opacity: 1; } 21.4%, 49.9% { opacity: 0; } 50%, 61.8% { opacity: 1; } 61.9%, 99.9% { opacity: 0; } 100% { opacity: 1; } }

/* escudo com camadas de proteção */
.ob-pl-escudo { position: relative; width: 240px; height: 200px; margin: 0 auto; }
.ob-pl-escudo__centro { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 20px; background: linear-gradient(135deg, var(--ob-blue), var(--ob-blue-700)); color: #fff; font-size: 28px; box-shadow: 0 16px 30px -12px rgba(11, 85, 130, .7); }
.ob-pl-escudo__anel { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 1.5px dashed #bfe0f3; animation: ob-pl-gira 40s linear infinite; }
.ob-pl-escudo__anel--2 { width: 176px; height: 176px; margin: -88px 0 0 -88px; border-style: solid; border-color: #e2eef8; animation: none; }
.ob-pl-escudo ul { list-style: none; margin: 0; padding: 0; }
.ob-pl-escudo li { position: absolute; left: 50%; top: 50%; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ob-border); box-shadow: var(--ob-shadow-sm); color: var(--ob-ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--a)) translateX(88px) rotate(calc(var(--a) * -1)); }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
	.ob-pl-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ob-pl-bento__item--backup, .ob-pl-bento__item--protecao { grid-column: 1 / -1; }
	.ob-pl-bento__item--suporte { grid-row: auto; grid-column: 1 / -1; }
	.ob-pl-painel { max-width: 500px; }
	.ob-pl-flutua--nota { right: 0; }
}
@media (max-width: 575.98px) {
	.ob-pl-bento { grid-template-columns: 1fr; }
	.ob-pl-bento__item--backup, .ob-pl-bento__item--protecao { grid-template-columns: 1fr; }
	.ob-pl-linha { padding: 18px 8px 50px; }
	.ob-pl-linha__trilho { left: 24px; right: 24px; top: 34px; }
	.ob-pl-linha__marco .fa { width: 28px; height: 28px; font-size: 12px; }
	.ob-pl-janela__corpo { grid-template-columns: 1fr; min-height: 0; }
	.ob-pl-janela__menu { display: none; }
	.ob-pl-metricas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ob-pl-metricas div:last-child { grid-column: 1 / -1; }
	.ob-pl-flutua--nota { top: -6px; padding: 7px 12px 7px 7px; font-size: 12.5px; }
	.ob-pl-flutua--nota .ob-arte__gauge { width: 38px; height: 38px; }
	.ob-pl-flutua--toast { display: none; }
}

/* ---------- Reduzir movimento: tudo parado e visível ---------- */
@media (prefers-reduced-motion: reduce) {
	.ob-pl-rede__pulso { display: none; }
	.ob-pl-hero *, .ob-pl-bento * { animation: none !important; transition: none !important; }
	.ob-pl-flutua--toast { opacity: 1; }
}
