/* Identidade visual Ricardo Almeida Advocacia (conforme proposta de layout) */

/* Fontes hospedadas neste servidor (licença SIL OFL, subconjunto latino): o navegador não consulta o Google. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin-var.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/montserrat-latin-var.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --abeto: #01504F; --abeto-700: #013D3C; --noite: #00334E; --noite-900: #0B2233;
  --jade: #01746F; --gold: #9C8F5F; --gold-300: #D3C9A0; --gold-50: #F6F4EC;
  --ice: #F4F7F7; --line: #DCE4E3;
  --danger: #B42318; --danger-50: #FEF3F2; --success: #067647; --warning: #B54708;
  --ink: #0f172a; --mut: #475569; --soft: #64748b;
  --font-read: "Atkinson Hyperlegible", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-padding-bottom: 120px; }
body { margin: 0; background: var(--ice); color: var(--ink); font: 17px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; }
body.cliente { background: #fff; font-family: var(--font-read); }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -.01em; margin: 0; }
a { color: var(--jade); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--abeto); font-weight: 700; padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Cabeçalho ---------- */
.topo { background: #fff; border-bottom: 1px solid var(--line); }
.topo .in { max-width: 36rem; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topo.larga .in { max-width: 1440px; }
.topo img { height: 24px; width: auto; display: block; }
.topo .tag { font-size: 14px; font-weight: 600; color: var(--soft); }
.topo .sep { width: 1px; height: 20px; background: var(--line); }
.topo .esq { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 99px; background: var(--abeto); color: #fff; display: grid; place-items: center; font: 600 14px var(--font-ui); text-transform: uppercase; }
.progresso { height: 4px; background: var(--line); }
.progresso > div { height: 100%; background: var(--abeto); transition: width .3s; }

.wrap { max-width: 36rem; margin: 0 auto; padding: 0 20px 150px; }
.wrap.larga { max-width: 1440px; padding: 28px 20px 60px; }
.wrap.media { max-width: 480px; padding: 32px 20px 60px; }

/* ---------- Etapas do cliente ---------- */
.etapa { padding-top: 28px; }
.etapa .kick { font-size: 15px; font-weight: 700; color: var(--jade); margin: 0 0 8px; }
.etapa h1, .et-title { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.et-intro { margin: 8px 0 24px; color: var(--mut); font-size: 17px; line-height: 1.6; }
.campo { margin: 0 0 28px; }
.q, .lbl { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
label { display: block; margin: 12px 0 6px; font-size: 17px; font-weight: 600; }
label.opt, label.qtd, label.consent { font-weight: 400; margin: 0; }
.ajuda, .help { color: var(--mut); font-size: 15px; line-height: 1.4; margin: 6px 0 0; }
.sub-h { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }

input[type=text], input[type=password], input[type=date], textarea, select {
  width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, textarea:focus, select:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgb(1 116 111 / .15); }
textarea { resize: vertical; line-height: 1.5; }
.curto { width: 96px !important; text-align: center; }
.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.money { display: flex; align-items: center; gap: 10px; max-width: 260px; }
.money span { color: var(--mut); font-weight: 700; }

.ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ops.v { grid-template-columns: 1fr; }
.op, .opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 12px;
            background: #fff; cursor: pointer; font-size: 17px; margin: 6px 0; }
.ops .op { margin: 0; }
.op:has(input:checked) { border-color: var(--jade); background: rgb(1 116 111 / .06); font-weight: 600; }
input[type=radio], input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--jade); margin: 0; flex: none; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qtd { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.qtd input { text-align: center; }

.morador { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; display: grid; gap: 10px; }
.morador .mtitulo { display: flex; justify-content: space-between; align-items: center; }
.morador h3 { font-size: 18px; }
.trio { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .trio { grid-template-columns: 90px 1fr; } .trio input:last-child { grid-column: 1 / -1; } }
.add { width: 100%; min-height: 64px; border: 2px dashed rgb(1 116 111 / .6); border-radius: 16px; background: #fff; color: var(--jade);
       font: 700 18px var(--font-read); cursor: pointer; transition: background .2s, border-color .2s; }
.add:hover { background: rgb(1 116 111 / .05); border-color: var(--jade); }

/* ---------- Botões ---------- */
button, .btn { font: inherit; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
                   border: 2px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, filter .2s; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--abeto); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--abeto-700); }
.btn-gold { background: var(--gold); color: var(--noite-900); } .btn-gold:hover:not(:disabled) { filter: brightness(1.06); }
.btn-jade { background: var(--jade); color: #fff; } .btn-jade:hover:not(:disabled) { background: var(--abeto); }
.btn-ghost { background: #fff; color: var(--abeto); border-color: var(--line); } .btn-ghost:hover:not(:disabled) { border-color: var(--jade); }
.btn-wa { background: #25D366; color: #fff; } .btn-wa:hover { filter: brightness(.95); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 60px; font-size: 18px; }
button.link { background: none; border: 0; color: var(--danger); font-weight: 600; min-height: 44px; padding: 0 10px; border-radius: 10px; cursor: pointer; }
button.link:hover { background: var(--danger-50); }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav .in { max-width: 36rem; margin: 0 auto; padding: 12px 16px; display: grid; grid-template-columns: auto auto 1fr; gap: 8px; }
.nav .btn { white-space: nowrap; padding: 0 16px; }
.nav .in.so1 { grid-template-columns: 1fr; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 60; max-width: 92vw; background: var(--noite-900); color: #fff;
         padding: 12px 20px; border-radius: 12px; font-size: 16px; font-weight: 500; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.toast.err { background: var(--danger); }

/* ---------- Avisos ---------- */
.erro-resumo { margin-top: 16px; border: 2px solid var(--danger); background: var(--danger-50); border-radius: 16px; padding: 18px; }
.erro, .erro-resumo h2 { color: var(--danger); font-weight: 700; }
.erro-resumo ul { margin: 8px 0 0; padding-left: 20px; }
.aviso { background: #fffbeb; border: 2px solid rgb(181 71 8 / .4); border-radius: 12px; padding: 14px 16px; color: #78350f; font-size: 16px; margin: 0 0 16px; }
.aviso ul { margin: 6px 0 0; padding-left: 20px; }
.aviso button.lk { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: #78350f; cursor: pointer; text-align: left; }
.resumo-box { background: var(--ice); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 12px; margin-top: 18px; font-size: 16.5px; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 2px; }
.consent:has(input:checked) { border-color: #059669; background: #ecfdf5; }
.dicas { padding-left: 20px; color: var(--mut); }
.confirmacao { text-align: center; padding-top: 48px; }
.confirmacao .ok { width: 80px; height: 80px; margin: 0 auto; border-radius: 99px; background: #d1fae5; display: grid; place-items: center; }
.confirmacao h1 { margin-top: 20px; font-size: 26px; color: var(--abeto); }
.protocolo { margin-top: 24px; background: var(--ice); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.protocolo b { display: block; font: 700 22px var(--font-display); color: var(--abeto); letter-spacing: .06em; }
.rodape { margin-top: 56px; font-size: 14px; color: var(--soft); }

/* ---------- Painel do advogado ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.card.pad { padding: 20px; }
a.kpi { display: block; padding: 20px; text-decoration: none; color: inherit; border-radius: 16px; }
a.kpi:hover, a.kpi.on { border-color: var(--jade); }
a.kpi.on { box-shadow: 0 0 0 3px rgb(1 116 111 / .2); }
.kpi .l { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; color: var(--soft); }
.kpi .v { margin-top: 8px; font: 700 30px var(--font-display); color: var(--abeto); }
.dot { width: 10px; height: 10px; border-radius: 99px; background: var(--gold); display: inline-block; }
.filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px; border-bottom: 1px solid var(--line); }
.filtros .g { flex: 1 1 200px; } .filtros .p { flex: 0 0 auto; }
.lbl-sm { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); margin: 0 0 4px; }
.inp-sm, .filtros input, .filtros select { min-height: 40px !important; padding: 6px 12px !important; font-size: 14px !important; border-width: 1px !important; border-radius: 10px !important; }
table.lista { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lista th { background: var(--ice); text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #334155; }
table.lista td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.lista tr:hover td { background: rgb(244 247 247 / .7); }
.cli b { color: var(--abeto); } .cli small { display: block; color: var(--soft); }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f1f5f9; color: #334155; }
.chip.novo { background: #f1f5f9; color: #334155; } .chip.em_andamento { background: #e0f2fe; color: #075985; }
.chip.enviado { background: #fef3c7; color: #92400e; } .chip.revisado { background: #d1fae5; color: #065f46; }
.chip.gerado { background: rgb(1 116 111 / .1); color: var(--jade); }
.lista-cards { list-style: none; margin: 0; padding: 0; }
.lista-cards li { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.lista-cards li:first-child { border-top: 0; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) { .so-desktop { display: none !important; } }
@media (min-width: 768px) { .so-mobile { display: none !important; } }

dialog { border: 0; padding: 0; border-radius: 16px; width: min(32rem, 92vw); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(11 34 51 / .6); }
dialog .cab { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
dialog .corpo { padding: 16px 24px 24px; display: grid; gap: 14px; }
dialog h2 { font-size: 18px; color: var(--abeto); }
.x { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 22px; }
.x:hover { background: var(--ice); }

.rev-grid { display: grid; gap: 24px; align-items: start; margin-top: 20px; }
@media (min-width: 1280px) { .rev-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .rev-aside { position: sticky; top: 16px; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crumbs a { font-size: 14px; font-weight: 600; text-decoration: none; } .crumbs h1 { font-size: 22px; color: var(--abeto); }
.crumbs .muted { color: var(--soft); font-size: 14px; }
.resumo-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.resumo-cards > div { padding: 16px; border-left: 1px solid var(--line); } .resumo-cards > div:first-child { border-left: 0; }
.resumo-cards .v { font: 700 20px var(--font-display); color: var(--abeto); }
details.acc { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 0 0 14px; overflow: hidden; }
details.acc > summary { list-style: none; cursor: pointer; padding: 16px 20px; font: 700 17px var(--font-display); color: var(--abeto); display: flex; justify-content: space-between; align-items: center; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details.acc[open] > summary::after { transform: rotate(225deg); }
details.acc .acc-body { padding: 8px 20px 22px; border-top: 1px solid var(--line); font-family: var(--font-ui); }
.acc-body .campo { margin-bottom: 22px; }
.acc-body input[type=text], .acc-body textarea, .acc-body select { min-height: 44px; font-size: 15px; padding: 8px 12px; border-width: 1px; border-radius: 10px; }
.acc-body .q, .acc-body label { font-size: 15px; }
.acc-body .op { min-height: 44px; font-size: 15px; }
.prev { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linkbox input { flex: 1 1 280px; font-size: 14px !important; }
.muted { color: var(--soft); }
