@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
  --brand: #0c3c7c; --brand-dark: #092e60; --sky: #57b5e5; --ink: #1f2937; --muted: #5b6676;
  --line: #dfe5ee; --bg: #eef3f8; --bolha: #ffffff; --minha: #d9ebfb; --money: #127a45; --amarelo: #ffd65a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 16px/1.45 "Manrope", system-ui, sans-serif; color: var(--ink); background: #c9d6e5; -webkit-font-smoothing: antialiased; }
.app { max-width: 480px; height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); box-shadow: 0 0 40px rgba(12,60,124,.18); }

/* topo */
.topo { flex: none; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: var(--brand); color: #fff; }
.avatar { position: relative; width: 44px; height: 44px; flex: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; display: block; }
.avatar .on { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2fd06e; border: 2px solid var(--brand); }
.quem { flex: 1; min-width: 0; line-height: 1.2; }
.quem b { display: block; font-size: 17.5px; font-weight: 800; }
.quem small { display: block; margin-top: 2px; font-size: 13px; color: #cfe2f5; }
.quem small.dig { color: #9fe0b8; font-weight: 700; }
.marca { flex: none; height: 20px; width: auto; display: block; opacity: .95; }

/* faixa de confiança */
.confia { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(12,60,124,.06); margin: 0 0 6px; }
.confia > div { display: flex; align-items: center; justify-content: center; padding: 8px 4px; }
.confia > div + div { border-left: 1px solid var(--line); }
.confia .it { display: grid; grid-template-columns: 26px auto; align-items: center; column-gap: 7px; }
.confia .bola { width: 26px; height: 26px; border-radius: 50%; background: #e7f0fa; color: var(--brand); display: grid; place-items: center; }
.confia .tx { font-size: 11.5px; line-height: 1.22; font-weight: 700; color: #33415a; text-align: left; white-space: nowrap; }
/* aviso de conversa segura, no lugar do aviso do WhatsApp */
.seguro { align-self: stretch; max-width: 100%; display: flex; gap: 7px; align-items: flex-start; text-align: left; font-size: 12px; line-height: 1.42; color: #54460f; background: #fdf3c9; border-radius: 10px; padding: 8px 11px; margin-bottom: 8px; box-shadow: 0 1px 1px rgba(15,30,60,.06); }
.seguro { container-type: inline-size; display: block; }
.seguro span { display: block; font-size: 12px; }
@supports (font-size: 1cqw) { .seguro span { font-size: max(10.5px, calc(100cqw / var(--k, 29))); } }
@media (max-width: 340px) { .seguro { padding: 7px 9px; } @supports (font-size: 1cqw) { .seguro span { font-size: max(9.5px, calc(100cqw / var(--k, 29))); } } }
.seguro svg { width: 1.05em; height: 1.05em; vertical-align: -0.12em; color: #7a6416; }

/* conversa */
.log { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 6px;
  background-color: var(--bg); background-image: radial-gradient(rgba(12,60,124,.05) 1px, transparent 1px); background-size: 18px 18px; }
.log > * { flex-shrink: 0; }
.dia { align-self: center; margin: 4px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 8px; }
.msg { max-width: 84%; padding: 8px 11px 6px; border-radius: 14px; font-size: 15.5px; position: relative; box-shadow: 0 1px 1px rgba(15,30,60,.08); animation: entra .22s ease-out; }
.msg .h { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: #5b6676; margin-top: 2px; }
.msg .tk { color: #9aa6b6; } .msg .tk.lido { color: #1d8fe0; }
.lv { align-self: flex-start; background: var(--bolha); border-top-left-radius: 4px; }
.cl { align-self: flex-end; background: var(--minha); border-top-right-radius: 4px; }
.digit { align-self: flex-start; background: #fff; border-radius: 14px; border-top-left-radius: 4px; padding: 12px 14px; display: flex; gap: 4px; }
.digit i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b6; animation: pulo 1s infinite ease-in-out; }
.digit i:nth-child(2) { animation-delay: .15s; } .digit i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%,80%,100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* respostas rápidas */
.chips { align-self: stretch; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; animation: entra .22s ease-out; }
.chip { min-height: 44px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.chip:active { background: var(--brand); color: #fff; }
.chip.forte { background: var(--brand); color: #fff; }
.chip .e { margin-right: 4px; }
.cards { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; animation: entra .22s ease-out; }
.card-it { padding: 0 0 9px; border-radius: 14px; border: 1.5px solid #d6e1ec; background: #fff; font: inherit; font-weight: 800; font-size: 14.5px; color: var(--ink); display: flex; flex-direction: column; align-items: stretch; gap: 7px; cursor: pointer; overflow: hidden; }
.card-it .arte { display: grid; place-items: center; height: 70px; background: #f1f6fb; color: var(--brand); }
.card-it .arte svg { width: 92%; max-width: 104px; height: auto; }
.card-it .arte.so-ic svg { width: 32px; }
.card-it .rot { text-align: center; }
.card-it:active { border-color: var(--brand); background: #eef4fb; }

/* campo dentro da conversa */
.campo { align-self: stretch; display: flex; gap: 8px; margin: 4px 0 6px; animation: entra .22s ease-out; }
.campo input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid #b9c8da; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 17px; background: #fff; }
.campo button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.nota { align-self: stretch; font-size: 12.5px; color: var(--muted); margin: -2px 4px 6px; }

/* orçamento */
.orc { align-self: flex-start; width: 88%; background: #fff; border-radius: 16px; border-top-left-radius: 4px; overflow: hidden; box-shadow: 0 2px 10px rgba(12,60,124,.12); animation: entra .25s ease-out; }
.orc .cab { background: var(--brand); color: #fff; padding: 10px 14px; font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.orc .black { background: #111; color: var(--amarelo); font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; }
.orc .corpo { padding: 12px 14px 14px; }
.lin { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 6px; }
.lin > span:last-child, .lin b { white-space: nowrap; }
.lin s { color: #8592a3; margin-right: 6px; }
.tag50 { display: inline-block; background: #e8f5ee; color: var(--money); font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-left: 4px; }
.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; }
.ancora { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.ancora s { color: #8592a3; } .ancora b { color: var(--ink); }
.ancora .eco { font-size: 12px; font-weight: 800; color: var(--money); background: #e8f5ee; border-radius: 6px; padding: 1px 7px; }
.parcela { font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.parcela small { font-size: 14px; color: var(--muted); font-weight: 600; }
.sub { font-size: 13.5px; color: var(--muted); }
.pague { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--money); }
.prazo { margin-top: 8px; font-size: 12.5px; color: #8a5a00; background: #fff6d6; border-radius: 8px; padding: 6px 9px; }

/* agenda */
.agenda { align-self: stretch; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 2px 10px rgba(12,60,124,.1); animation: entra .25s ease-out; }
.agenda h4 { margin: 0 0 8px; font-size: 14.5px; }
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.dia-bt { flex: none; width: 66px; min-height: 64px; border-radius: 12px; border: 1.5px solid #c7d4e4; background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.dia-bt b { font-size: 18px; } .dia-bt span { font-size: 12px; color: var(--muted); }
.dia-bt.sel, .per-bt.sel { border-color: var(--brand); background: var(--brand); color: #fff; } .dia-bt.sel span { color: #cfe2f5; }
.pers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.per-bt { min-height: 52px; border-radius: 12px; border: 1.5px solid #c7d4e4; background: #fff; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; }
.per-bt small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.confirmar { width: 100%; margin-top: 12px; min-height: 52px; border: 0; border-radius: 12px; background: var(--money); color: #fff; font: inherit; font-weight: 800; font-size: 16.5px; cursor: pointer; }
.confirmar:disabled { background: #b7c3d1; cursor: default; }
.ok { align-self: stretch; background: #e8f5ee; border: 1px solid #b7e0c8; color: #0d4f2c; border-radius: 16px; padding: 14px; animation: entra .25s ease-out; }
.ok b { display: block; font-size: 17px; margin-bottom: 4px; }

/* barra de digitar */
.barra { position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); background: #f6f8fb; border-top: 1px solid var(--line); }
.barra input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid #c9d4e2; border-radius: 999px; padding: 0 16px; font: inherit; font-size: 16px; background: #fff; }
.ic { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--muted); }
.ic.env { background: var(--brand); color: #fff; }
.ic.mic { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }
@media (max-width: 374px) { .confia { grid-template-columns: repeat(3, minmax(0, 1fr)); } .confia > div { padding: 7px 2px; } .confia .it { grid-template-columns: 18px auto; column-gap: 4px; } .confia .bola { width: 18px; height: 18px; } .confia .bola svg { width: 11px; height: 11px; } .confia .tx { font-size: 10px; } .marca { height: 16px; } }
.grava { flex: 1; min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #c9d4e2; font-weight: 700; color: var(--ink); }
.grava .pt { width: 10px; height: 10px; border-radius: 50%; background: #e5372b; animation: pisca 1s infinite; }
.grava small { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pisca { 50% { opacity: .25; } }
.ic.mic { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ic.mic.segura { transform: scale(1.18); background: #e5372b; }
.ic.lixo { color: #b42318; }
.dica { position: absolute; right: 10px; bottom: 66px; background: #1f2937; color: #fff; font-size: 13px; padding: 7px 11px; border-radius: 10px; }
.audio { display: flex; align-items: center; gap: 9px; width: 210px; max-width: 100%; }
.audio .play { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.audio .onda { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.audio .onda i { flex: 1; background: #7f9cc1; border-radius: 2px; }
.audio .dur { font-size: 12px; color: var(--muted); }
.ouvi { color: var(--muted); font-style: italic; }
.resumo { align-self: stretch; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(12,60,124,.1); animation: entra .25s ease-out; font-size: 14.5px; }
.resumo h4 { margin: 0 0 8px; font-size: 15px; }
.resumo .lin { margin-bottom: 5px; } .resumo .lin span:first-child { color: var(--muted); } .resumo .lin b { white-space: normal; text-align: right; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .msg, .chips, .cards, .campo, .orc, .agenda, .ok, .resumo { animation: none; } .digit i, .grava .pt { animation: none; } }

/* página de verdade (ligada na Lívia) */
.seguro a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn.verde { background: #1a7f45; color: #fff; }
.btn.verde svg { width: 20px; height: 20px; }
.zap { align-self: flex-start; width: 84%; background: #fff; border-radius: 16px; border-top-left-radius: 4px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(12,60,124,.1); animation: entra .25s ease-out; font-size: 14.5px; }
.zap p { margin: 0; }
.link { display: block; margin: 10px auto 0; padding: 8px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; min-height: 44px; }
.ouvi { display: block; font-size: 13px; margin-top: 4px; max-width: 230px; }
.sis { align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; color: var(--muted); background: #fff; border-radius: 10px; padding: 6px 11px; }
.orc .cab small { font-weight: 600; font-size: 12px; color: #cfe2f5; }
.lin > span:first-child { min-width: 0; }
.ok .sub { color: #0d4f2c; }
.confirmar:not(:disabled) { box-shadow: 0 2px 8px rgba(18,122,69,.25); }
.err { border-color: #b42318 !important; }
.campo + .nota { margin-top: -2px; }
@media (prefers-reduced-motion: reduce) { .zap { animation: none; } }
.zap .btn:first-child { margin-top: 0; }
.orc .black { white-space: nowrap; }
