/* Diagnóstico de presença digital AVIOR: identidade do avior.ia.br (marinho, creme, areia, Poppins) */
:root {
  --bg: #F5F1E8; --soft: #ECE6D6; --fg: #14162B; --muted: #6C7488; --line: #DDD5C2;
  --leaf: #8C7A4E; --leaf-deep: #14162B; --leaf-soft: #EFE9DA; --err: #B42318;
  --sand: #BAB196; --card: #FFFFFF;
  --body: "Poppins", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100% }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column }
b, strong { font-weight: 600 }
.wrapx { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

header { position: sticky; top: 0; z-index: 5; background: var(--fg); padding-top: env(safe-area-inset-top, 0px) }
.wm { font-weight: 200; font-size: 22px; letter-spacing: .3em; background: linear-gradient(100deg,#C2B89D 0%,#FFFBF0 32%,#C2B89D 60%,#FFFBF0 80%,#BAB196 100%); -webkit-background-clip: text; background-clip: text; color: transparent }
.hd { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding-block: 10px }
.logo { width: 34px; height: 34px; object-fit: contain }
.hd .nm { font-weight: 600; font-size: 15px }
.step { margin-left: auto; font-size: 12px; color: var(--sand); background: rgba(186,177,150,.14); border-radius: 999px; padding: 3px 11px; font-variant-numeric: tabular-nums; white-space: nowrap }
.barra { max-width: 720px; margin: 0 auto; height: 3px; background: #2A2D48; border-radius: 3px; overflow: hidden }
.barra i { display: block; height: 100%; width: 0; background: var(--sand); transition: width .4s ease }

main { flex: 1 }
.chat { max-width: 720px; margin: 0 auto; padding-block: 22px 16px; display: flex; flex-direction: column; gap: 14px }
.bot { display: flex; gap: 10px; align-items: flex-start; max-width: 94% }
.bot .av { width: 32px; height: 32px; border: 1px solid var(--sand); border-radius: 50%; background: var(--leaf-soft); flex-shrink: 0; display: grid; place-items: center; overflow: hidden }
.bot .av img { width: 100%; height: 100%; object-fit: cover }
.bot .tx { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 9px 14px }
.me { align-self: flex-end; background: var(--leaf-deep); color: #fff; border-radius: 18px 18px 4px 18px; padding: 7px 15px; max-width: 80%; word-break: break-word }
.dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 3px; animation: bl 1s infinite }
.dots span:nth-child(2) { animation-delay: .2s } .dots span:nth-child(3) { animation-delay: .4s }
@keyframes bl { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
.shot { margin-top: 10px; max-width: 400px }
.shot img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line) }

.dockw { position: sticky; bottom: 0; background: var(--bg); padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line) }
.dock { max-width: 720px; margin: 0 auto }
.consent { font-size: 11px; color: var(--muted); padding: 7px 2px 6px }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--card) }
.box:empty { display: none }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.chip { border: 1px solid var(--sand); background: var(--card); color: var(--fg); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: 15px; cursor: pointer; text-align: left; line-height: 1.3 }
.chip:hover, .chip:focus-visible { border-color: var(--leaf); outline: none; background: var(--leaf-soft) }
.inrow { display: flex; gap: 8px; align-items: center }
.inrow input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 16px; color: var(--fg); padding: 9px 6px; outline: none }
.send { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--leaf-deep); color: #fff; font-size: 18px; cursor: pointer; flex-shrink: 0 }
.send:disabled { opacity: .5 }
.lnk { background: none; border: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 6px }
.err { font-size: 13px; color: var(--err); padding: 4px 6px 0 }
.rowb { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.cta { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; background: #1FA855; color: #fff; border: none; border-radius: 12px; padding: 15px 18px; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none }
.cta-bussola { background: var(--fg); color: #F5F1E8 }
.cta svg { width: 22px; height: 22px }
.small { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center }
.foot { text-align: center; font-size: 12px; color: var(--leaf); padding-top: 8px }
button:focus-visible, a:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px }
.test-badge { position: fixed; top: 64px; right: 10px; z-index: 20; background: #FFF4CC; color: #5A4300; border: 1px solid #E8C860; border-radius: 10px; padding: 7px 10px; font-size: 11px; max-width: 240px; line-height: 1.35 }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: .6 } .barra i { transition: none } }
