/* Convites de teste e análise para segmentos e soluções. */
.segment-trial { position: fixed; z-index: 35; inset: auto 20px max(20px, env(safe-area-inset-bottom)); width: min(880px, calc(100% - 40px)); margin-inline: auto; color: var(--ink); }
.st-panel { position: relative; display: grid; grid-template-columns: 60px minmax(0,1fr) auto 32px; align-items: center; gap: 18px; padding: 18px 16px 18px 20px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 12px 48px #0a122c26, 0 2px 8px #7033ff0d; animation: st-arrive .65s cubic-bezier(.16,1,.3,1) both; }
.st-gift { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#8c59ff,#5924d6); box-shadow: inset 0 1px 0 #ffffff50, 0 6px 18px #7033ff24; }
.st-gift svg { width: 42px; height: 42px; overflow: visible; animation: st-gift-welcome 1.8s ease-in-out .4s 2; }
.st-gift-lid { transform-origin: 24px 22px; animation: st-unpack 1.8s ease-in-out .65s 2; }
.st-gift-spark { stroke: #83ffc0; animation: st-spark 1.8s ease-in-out .65s 2; }
.st-copy { min-width: 0; }
.st-offer { display: block; color: var(--verde-700); font: 600 11px/1.4 var(--font-display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.st-title { display: block; font: 600 18px/1.3 var(--font-display); letter-spacing: -.02em; }
.st-detail { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.st-action { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; border-radius: 999px; background: #7033ff; color: #fff; text-decoration: none; font: 600 14px/1.3 var(--font-display); text-align: center; transition: background .2s, transform .2s, box-shadow .2s; }
.st-action:hover { background: #5924d6; transform: translateY(-2px); box-shadow: 0 5px 18px #7033ff33; }
.st-action .i { width: 17px; height: 17px; }
.st-collapse { align-self: start; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); }
.st-collapse:hover { color: var(--ink); border-color: var(--line-strong); }
.st-collapse .i { width: 16px; height: 16px; }
.st-launch { display: flex; align-items: center; gap: 10px; margin-left: auto; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 28px #0a122c20; color: var(--ink); font: 600 13px/1.4 var(--font-display); }
.st-launch .i { color: var(--accent-text); }
.st-launch > svg { width: 26px; height: 26px; flex: none; overflow: visible; color: var(--accent-text); transform-origin: 50% 75%; animation: st-reminder 6s ease-in-out infinite; }
.st-launch .st-gift-lid { animation: st-mini-unpack 6s ease-in-out infinite; }
.st-launch .st-gift-spark { animation: st-mini-spark 6s ease-in-out infinite; }
.st-consult .st-gift { color: #91ffc0; background: linear-gradient(145deg,#193d43,#172b35); box-shadow: inset 0 1px 0 #83ffc03b,0 6px 18px #0b6b351a; }
.st-consult .st-launch > svg { color: var(--verde-700); animation-name: st-consult-reminder; }
.st-analysis-focus { stroke: #83ffc0; }
.st-launch .st-analysis-focus { stroke: currentColor; }
.st-paused *, body:has(#drawer:not([hidden])) .segment-trial *, body:has(dialog[open]) .segment-trial * { animation-play-state: paused !important; }
.st-launch:hover > svg, .st-launch:focus-visible > svg, .st-launch:hover svg *, .st-launch:focus-visible svg * { animation-play-state: paused; }
html:has(.segment-trial) { scroll-padding-bottom: var(--segment-trial-space, 0px); }
body:has(.segment-trial) { padding-bottom: var(--segment-trial-space, 0px); }
body:has(#drawer:not([hidden])) .segment-trial, body:has(dialog[open]) .segment-trial { visibility: hidden; pointer-events: none; }
@keyframes st-gift-welcome { 0%,65%,100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-2px) rotate(-7deg); } 35% { transform: translateY(-2px) rotate(5deg); } }
/* Breve aceno do ícone, seguido de repouso. O texto e a cápsula ficam imóveis. */
@keyframes st-reminder { 0%,25%,100% { transform: rotate(0) scale(1); } 5% { transform: rotate(-10deg) scale(1.08); } 10% { transform: rotate(8deg) scale(1.08); } 16% { transform: rotate(-4deg) scale(1.04); } }
@keyframes st-mini-unpack { 0%,25%,100% { transform: translateY(0); } 8%,14% { transform: translateY(-5px); } }
@keyframes st-mini-spark { 0%,25%,100% { opacity: .35; } 8%,14% { opacity: 1; } }
@keyframes st-consult-reminder { 0%,25%,100% { transform: scale(1); } 10% { transform: scale(1.1); } }
@keyframes st-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes st-unpack { 0%,70%,100% { transform: translateY(0) rotate(0); } 30%,45% { transform: translateY(-6px) rotate(-9deg); } }
@keyframes st-spark { 0%,70%,100% { opacity: .35; } 30%,45% { opacity: 1; } }
@media (max-width: 759px) {
 .segment-trial { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); }
 .st-panel { grid-template-columns: 46px minmax(0,1fr) 32px; gap: 10px 12px; padding: 14px; border-radius: 20px; }
 .st-gift { width: 46px; height: 46px; border-radius: 14px; }
 .st-gift svg { width: 34px; height: 34px; }
 .st-offer { font-size: 10px; margin-bottom: 3px; }
 .st-title { display: none; }
 .st-detail { font-size: 10px; margin-top: 3px; }
 .st-action { grid-row: 2; grid-column: 1/-1; min-height: 44px; padding: 10px 14px; font-size: 13px; }
 .st-collapse { grid-row: 1; grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) { .st-panel, .st-gift svg, .st-gift-lid, .st-gift-spark, .st-launch > svg, .st-launch .st-gift-lid, .st-launch .st-gift-spark { animation: none; } .st-action { transition: none; } .st-action:hover { transform: none; } }
@media print { .segment-trial { display: none; } body:has(.segment-trial) { padding-bottom: 0; } }
