/* Sem marca a demo é neutra (grafite). Com a logo do cliente, o app troca --acento, --acento-2 e --acento-bg. */
@property --acento { syntax: '<color>'; inherits: true; initial-value: #2c3139; }
@property --acento-2 { syntax: '<color>'; inherits: true; initial-value: #1d2126; }
@property --acento-bg { syntax: '<color>'; inherits: true; initial-value: #ecebe8; }
:root {
  /* Fonte dos títulos gigantes: troca por nicho (clínica pede algo mais delicado que uma display pesada). */
  --fonte-display: 'Fraunces', Georgia, serif;
  --caixa-display: uppercase;
  --italico-display: none;
  --estilo-l2: italic;
  --peso-display: 300;
  --escala-display: .9;
  --fundo: #f5f4f1;
  --sup: #ffffff;
  --tinta: #17191c;
  --suave: #5f646b;
  --linha: #e3e1dc;
  --acento: #2c3139;
  --acento-2: #1d2126;
  --acento-bg: #ecebe8;
  transition: --acento .9s ease, --acento-2 .9s ease, --acento-bg .9s ease;
  --quente: #a8773f;
  --quente-bg: #f6ecdf;
  --alerta: #b4532a;
  --alerta-bg: #f8e7de;
  --azul: #2f5d8a;
  --azul-bg: #e5edf5;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(22, 32, 42, .05), 0 6px 20px rgba(22, 32, 42, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { overscroll-behavior-y: none; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 15px/1.55 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
small { display: block; color: var(--suave); font-size: 12.5px; font-weight: 500; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--suave); }
.centro { text-align: center; }
.dir { text-align: right; }
.grow { flex: 1; min-width: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--acento); background: var(--acento); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--acento-2); }
.btn.ghost { background: transparent; color: var(--acento); }
.btn.ghost:hover { background: var(--acento-bg); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible, .zona:focus-visible { outline: 2px solid var(--quente); outline-offset: 2px; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link, .link-sutil { display: inline-flex; align-items: center; gap: 6px; color: var(--acento); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.link { margin-top: 16px; }
.link-sutil { color: var(--suave); font-weight: 500; margin-bottom: 14px; }
.link-sutil:hover { color: var(--tinta); }
.assinatura { text-align: center; font-size: 13px; color: var(--suave); padding: 18px 0 6px; }
.assinatura a { color: var(--tinta); font-weight: 600; text-decoration: none; }
.nota { margin-top: 14px; font-size: 13px; color: var(--suave); }

/* marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--acento); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.logo.img { background: #fff; padding: 4px; box-shadow: 0 0 0 1px var(--linha); }
.logo.img { overflow: hidden; }
.logo.img img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; display: block; }
.side .logo.img { box-shadow: none; }
.marca-txt strong { display: block; font-size: 15px; }
.marca-txt small { font-size: 12px; }

/* ---------- proposta ---------- */
.modo-proposta { background: #f8f5f1; }
.largo { width: 100%; padding: 0 5.4vw; }
.abre { position: relative; padding: 36px 0 0; overflow-x: clip; }
.abre-fundo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bola { position: absolute; border-radius: 50%; background: #efe7dd; }
.bola.b1 { width: 50vw; height: 50vw; right: -8vw; top: -16vw; opacity: .55; }
.bola.b2 { width: 34vw; height: 34vw; right: 17vw; top: 8vw; opacity: .45; }
.arco { position: absolute; width: 28vw; right: 12vw; top: 6vw; color: var(--acento); opacity: .35; }
.abre-grade { position: relative; display: grid; grid-template-columns: minmax(520px, 33vw) minmax(0, 1fr) 13vw; gap: 3vw; align-items: center; }
.sobretitulo { font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--acento); margin-bottom: 22px; }
.abre h1 { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: clamp(40px, 4.3vw, 92px); line-height: 1.02; letter-spacing: -.028em; }
.abre h1 em { font-style: normal; color: var(--acento); }
.abre .lead { font-size: clamp(17px, 1.05vw, 22px); color: var(--suave); max-width: 46ch; margin-top: 24px; }
.abre-acoes { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.btn.grande { min-height: 60px; padding: 0 26px; flex: none; border-radius: 12px; font-size: 17px; box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--acento) 80%, transparent); }
.traco { width: 1px; height: 44px; background: var(--linha); }
.sua-marca { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.sua-marca .lapis { width: 56px; height: 56px; border-radius: 50%; background: var(--acento-bg); color: var(--acento); display: grid; place-items: center; flex: none; transition: transform .2s; }
.sua-marca:hover .lapis { transform: rotate(-8deg); }
.sua-marca .lapis .ic { width: 22px; height: 22px; }
.sua-marca strong { display: block; font-size: 16px; line-height: 1.25; }
.sua-marca > span:last-child { max-width: 170px; }
.sua-marca small { font-size: 13px; }
.abre-txt { position: relative; z-index: 3; }
.montador { position: absolute; left: 0; top: calc(100% + 14px); width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; background: var(--sup); border: 1px solid var(--linha); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(40, 30, 20, .35), 0 2px 6px rgba(40, 30, 20, .06); animation: surgir .22s ease-out; }
.montador-cab { display: flex; align-items: center; justify-content: space-between; }
.montador-cab strong { font-size: 15px; }
.montador-cab button { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--suave); display: grid; }
.montador-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@keyframes surgir { from { opacity: 0; transform: translateY(-6px); } }
.montador[hidden] { display: none; }
.subir { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--acento); color: #fff; cursor: pointer; text-align: left; transition: background .2s; }
.subir:hover { background: var(--acento-2); }
.subir:has(input:focus-visible) { outline: 2px solid var(--quente); outline-offset: 3px; }
.subir .miniatura { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; overflow: hidden; }
.subir .miniatura img { width: 100%; height: 100%; object-fit: cover; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.subir strong { display: block; font-size: 15px; }
.subir small { color: rgba(255,255,255,.72); font-size: 12.5px; }
.subir input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.montador .campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--suave); }
.montador .campo input { height: 44px; border-radius: 12px; border: 1px solid var(--linha); background: var(--sup); padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--tinta); }
.montador .campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-bg); }
.cores { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--suave); }
.cores:empty { display: none; }
.cores button[data-cor] { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; }
.cores button[data-cor].on { box-shadow: 0 0 0 2px var(--sup), 0 0 0 4px var(--tinta); }
.cores .link-sutil { margin: 0 0 0 auto; font-size: 13px; white-space: nowrap; }
.aviso-marca { font-size: 12.5px; color: var(--suave); }
.palco { position: relative; padding: 40px 0 6% 10%; margin-left: -2%; }
.note-tela { position: relative; background: #111214; border-radius: 18px 18px 6px 6px; padding: 1.5% 1.5% 2%; box-shadow: 0 60px 100px -50px rgba(40, 30, 20, .55), 0 22px 40px -28px rgba(40, 30, 20, .45); }
.note-tela::before { content: ''; position: absolute; top: .55%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2a2c30; }
.note-tela .vista { aspect-ratio: 16 / 10; border-radius: 4px; }
.note-base { height: 18px; margin: 0 -7%; background: linear-gradient(#e4e3e0, #c3c1bc 70%, #a9a7a2); border-radius: 3px 3px 22px 22px / 3px 3px 12px 12px; position: relative; box-shadow: 0 18px 24px -14px rgba(40, 30, 20, .45); }
.note-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); background: #b3b1ac; border-radius: 0 0 10px 10px; }
.cel { position: absolute; left: 0; bottom: 0; width: 25%; background: #111214; border-radius: 38px; padding: 2.4%; box-shadow: 0 44px 70px -30px rgba(40, 30, 20, .6), inset 0 0 0 1.5px #3a3c40; }
.cel::before { content: ''; position: absolute; z-index: 1; top: 3.4%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%); background: #111214; border-radius: 99px; }
.cel .vista { aspect-ratio: 390 / 820; border-radius: 30px; }
.vista { position: relative; overflow: hidden; background: var(--fundo); }
.vista iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.palco a.cobre { position: absolute; inset: 0; z-index: 2; border-radius: 18px; }
.palco a.cobre:focus-visible { outline: 2px solid var(--quente); outline-offset: 6px; }
.frase { align-self: start; margin-top: 70px; font-family: Newsreader, Georgia, serif; font-style: italic; font-size: clamp(26px, 1.9vw, 38px); line-height: 1.2; color: #3b3530; }
.frase::before, .frase::after { content: ''; display: block; width: 40px; height: 1.5px; background: var(--acento); }
.frase::before { margin-bottom: 18px; } .frase::after { margin-top: 20px; }
.faixa { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 13vw; align-items: center; gap: 3vw; padding-top: 56px; padding-bottom: 64px; }
.faixa ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faixa li { display: flex; align-items: center; gap: 16px; padding: 0 22px; border-left: 1px solid #ddd5cb; font-size: 16px; line-height: 1.35; color: #4a4540; }
.faixa li:first-child { padding-left: 0; border-left: 0; }
.faixa li .ic { width: 34px; height: 34px; color: var(--acento); stroke-width: 1.6; }
.feito-para { position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 1.9; color: #6d665f; }
.feito-para::before { content: ''; position: absolute; left: -24px; top: -8px; bottom: -8px; width: 1px; background: #ddd5cb; }
.feito-para::after { content: ''; display: block; width: 40px; height: 1.5px; margin-top: 12px; background: var(--acento); }
.p-junto { flex-direction: row; }

.pp-top { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; gap: 12px; }
.hero { padding-top: 64px; padding-bottom: 72px; }
.rotulo { font-size: 13px; font-weight: 700; color: var(--quente); letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; max-width: 17ch; letter-spacing: -.025em; }
.hero .lead { font-size: 18px; color: var(--suave); max-width: 60ch; margin-top: 22px; }
.bloco { padding-top: 68px; padding-bottom: 0; }
.bloco h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 26px; }
.lista-num { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); }
.lista-num li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--linha); }
.lista-num .n { font-weight: 800; color: var(--quente); font-size: 15px; padding-top: 2px; }
.lista-num h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.lista-num p { color: var(--suave); max-width: 64ch; }
.demo-chamada { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.demo-chamada .acoes { margin-top: 0; justify-content: flex-end; }
.demo-chamada p { color: var(--suave); }
.precos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.preco { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 26px; }
.preco.destaque { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento) inset; }
.preco strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; }
.preco strong small { display: inline; font-size: 16px; }
.preco p { color: var(--suave); }
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.passos li { counter-increment: p; border-top: 2px solid var(--acento); padding-top: 14px; }
.passos li::before { content: counter(p); font-weight: 800; color: var(--acento); display: block; margin-bottom: 6px; }
.passos strong { display: block; }
.passos span { color: var(--suave); font-size: 14px; }
.pp-rodape { margin-top: 88px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--linha); font-size: 13px; }

/* ---------- ERP ---------- */
.erp { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--tinta) 248px, transparent 248px); }
.side { position: sticky; top: 0; height: 100vh; background: var(--tinta); color: #e8ecef; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.side .marca-txt small { color: #9aa6b1; }
.side .logo { background: var(--acento); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: #c3ccd4; font-weight: 600; font-size: 14px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.side nav a em { margin-left: auto; font-style: normal; background: var(--quente); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.side nav a.sep { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 10px 10px; padding-top: 14px; }
.side-pe { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-pe .link-sutil { color: #9aa6b1; margin: 0; font-size: 13px; }
.side-pe .link-sutil:hover { color: #fff; }
.quem { display: flex; align-items: center; gap: 10px; }
.quem strong { font-size: 13.5px; display: block; }
.quem small { color: #9aa6b1; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--acento-bg); color: var(--acento); display: inline-grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: none; }
.side .av { background: var(--acento); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.av.grande { width: 56px; height: 56px; font-size: 18px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 32px 6px; }
.top h1 { font-size: 24px; font-weight: 800; }
.conteudo { padding: 16px 32px 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.erp-rodape { padding: 8px 32px 20px; font-size: 12.5px; text-align: center; }
.card { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px; box-shadow: var(--sombra); min-width: 0; }
.card h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.card h2.mt { margin-top: 22px; }
.card h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); margin: 4px 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); }
.kpi span { font-size: 13px; color: var(--suave); font-weight: 600; }
.kpi strong { display: block; font-size: 26px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -.02em; }
.grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grade2.alinhado { align-items: start; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linha); }
.lista li:last-child { border-bottom: 0; }
.lista a { font-weight: 700; text-decoration: none; }
.hora { font-weight: 800; font-size: 13.5px; width: 44px; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--quente); flex: none; }
.tag, .badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eeece7; color: var(--suave); white-space: nowrap; }
.t-avaliacao, .b-avaliacao, .b-avaliado { background: var(--azul-bg); color: var(--azul); }
.t-cirurgia, .b-cirurgia { background: var(--alerta-bg); color: var(--alerta); }
.t-retorno, .b-posop { background: var(--acento-bg); color: var(--acento); }
.t-clinico, .b-orcamento { background: var(--quente-bg); color: var(--quente); }
.b-fechado { background: #e3f1e5; color: #2e6b3a; }
.barras { display: flex; flex-direction: column; gap: 12px; }
.barra { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.barra div { height: 10px; background: #efede8; border-radius: 99px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--acento); border-radius: 99px; }
.barra b { font-size: 13px; min-width: 40px; text-align: right; }

/* agenda */
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.dia { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dia.hoje { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento) inset; }
.dia header { display: flex; justify-content: space-between; align-items: baseline; text-transform: capitalize; }
.dia header span { color: var(--suave); font-size: 13px; font-weight: 600; }
.dia header strong { font-size: 18px; }
.ev { border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.ev span { font-size: 11.5px; font-weight: 700; opacity: .85; display: block; }
.ev b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.ev b a { text-decoration: none; }
.ev small { color: inherit; opacity: .8; font-size: 12px; }
.vazio { color: #a4abb2; font-size: 13px; }
.legenda { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--suave); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: currentColor !important; vertical-align: -1px; }
.legenda span { display: inline-flex; align-items: center; }

/* funil */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.coluna { background: #efede8; border-radius: var(--raio); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.coluna header { display: flex; justify-content: space-between; padding: 4px 4px 6px; font-size: 13.5px; }
.coluna header span { color: var(--suave); font-weight: 700; }
.cartao { background: var(--sup); border: 1px solid var(--linha); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.cartao a { text-decoration: none; }
.cartao-pe { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 4px; }
.mover { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; justify-content: center; border: 1px dashed var(--linha); background: none; border-radius: 8px; padding: 7px; font-size: 12.5px; font-weight: 700; color: var(--acento); cursor: pointer; }
.mover:hover { background: var(--acento-bg); border-color: transparent; }
.mover .ic { width: 14px; height: 14px; }

/* tabelas */
.busca { display: flex; align-items: center; gap: 10px; border: 1px solid var(--linha); border-radius: 10px; padding: 0 12px; margin-bottom: 14px; max-width: 360px; color: var(--suave); }
.busca input { border: 0; outline: 0; padding: 10px 0; flex: 1; min-width: 0; background: none; color: var(--tinta); }
.tabela-wrap { overflow-x: auto; margin: 0 -4px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tabela th.dir { text-align: right; }
.tabela td { padding: 11px 10px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela td small { margin-top: 1px; }
.cel-pac { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tabela tbody tr[data-href], .tabela tbody tr[data-acao] { cursor: pointer; }
.tabela tbody tr:hover, .tabela tr.sel { background: #faf9f6; }
.tabela tr.sel td:first-child { box-shadow: 3px 0 0 var(--acento) inset; }

/* paciente */
.pac-cab { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pac-cab h2 { font-size: 22px; margin: 0 0 2px; }
.etapa-sel { font-size: 12px; color: var(--suave); font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--linha); overflow-x: auto; }
.abas button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--suave); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas button.on { color: var(--tinta); border-color: var(--acento); }
.mapa-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mapa { width: 100%; max-width: 260px; }
.mapa .cranio { fill: #f3efe8; stroke: #d9d3c8; stroke-width: 2; }
.mapa .zona { fill: #fff; stroke: #cfc8bb; stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.mapa .zona:hover { fill: #eef5f3; }
.mapa .zona.on { fill: color-mix(in srgb, var(--acento) 75%, transparent); stroke: var(--acento); }
.mapa .doadora { fill: var(--quente-bg); stroke: #dcc6a8; stroke-dasharray: 4 3; }
.mapa .rot { font-size: 10px; fill: var(--suave); text-anchor: middle; font-weight: 700; font-family: Manrope, sans-serif; }
.chips, .fotos-fases { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fotos-fases { justify-content: flex-start; margin: 14px 0; }
.chip { border: 1px solid var(--linha); background: var(--sup); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--suave); }
.chip.on { background: var(--acento-bg); color: var(--acento); border-color: transparent; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, fieldset { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--suave); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 6px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=range]), .form select, .etapa-sel select { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; background: var(--sup); color: var(--tinta); font-weight: 500; width: 100%; }
.form input[readonly] { background: #f7f6f2; }
.form input[type=range] { accent-color: var(--acento); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; color: var(--tinta); }
label.check .muted { margin-left: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--acento); width: 17px; height: 17px; }
.resumo-val { background: var(--acento-bg); border-radius: 12px; padding: 14px 16px; }
.resumo-val span { font-size: 13px; font-weight: 700; color: var(--acento); }
.resumo-val strong { display: block; font-size: 24px; font-weight: 800; }
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fotos figure { margin: 0; }
.foto-ph { aspect-ratio: 4 / 3; border-radius: 12px; background: #efece6; display: grid; place-items: center; color: #b6ada0; }
.foto-ph .ic { width: 28px; height: 28px; }
.fotos figcaption { font-size: 13.5px; font-weight: 700; margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--linha); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sup); border: 2px solid var(--acento); }
.timeline span { font-size: 12.5px; color: var(--suave); font-weight: 600; }

/* orçamento */
.grade-orc { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.doc { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 32px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.doc header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--linha); padding-bottom: 18px; }
.itens { width: 100%; border-collapse: collapse; }
.itens td { padding: 12px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
.itens td.dir { white-space: nowrap; padding-left: 12px; }
.itens .total td { font-weight: 800; font-size: 20px; border-bottom: 0; padding-top: 16px; }
.pgto { background: #f7f6f2; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.inclui { margin: 0; padding-left: 18px; color: var(--suave); font-size: 14px; }
.doc .acoes { margin-top: 0; }

/* cirurgias */
.cir header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cir h2 { font-size: 20px; margin: 0 0 2px; }
.cir h2 a { text-decoration: none; }
.cir header .muted { text-transform: none; }
.cir-num { text-align: right; }
.cir-num strong { font-size: 28px; font-weight: 800; display: block; line-height: 1; }
.prog { height: 8px; background: #efede8; border-radius: 99px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--acento); border-radius: 99px; transition: width .25s; }
.prog-txt { font-size: 13.5px; margin: 8px 0 10px; color: var(--suave); }
.ok { color: #2e6b3a; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist label { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linha); font-size: 14px; cursor: pointer; }
.equipe { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; font-weight: 700; }
.equipe li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.equipe .av { grid-row: span 2; }
.roteiro { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.roteiro li { display: flex; gap: 12px; padding: 6px 0; }
.roteiro span { font-weight: 800; width: 44px; flex: none; }

/* pós-op */
.linha-entre { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.linha-entre h2 { margin-bottom: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 38px; height: 22px; border-radius: 99px; background: #cfcac0; position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--acento); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--quente); outline-offset: 2px; }
.regua { list-style: none; margin: 0 0 18px; padding: 0; }
.regua li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linha); opacity: .6; }
.regua li.feito, .regua li.agora { opacity: 1; }
.regua .rd { font-weight: 800; font-size: 13.5px; background: #efede8; border-radius: 8px; text-align: center; padding: 4px 0; align-self: start; }
.regua li.feito .rd { background: var(--acento-bg); color: var(--acento); }
.regua li.agora .rd { background: var(--acento); color: #fff; }
.regua p { color: var(--suave); font-size: 14px; }

/* conversas */
.inbox { display: grid; grid-template-columns: 290px 1fr; padding: 0; overflow: hidden; min-height: 520px; }
.inbox aside { border-right: 1px solid var(--linha); overflow-y: auto; }
.conv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linha); padding: 14px 16px; cursor: pointer; }
.conv.on { background: var(--acento-bg); }
.conv small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv em { font-style: normal; background: var(--quente); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.chat > header a { text-decoration: none; }
.chat > header small { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 460px; background: #faf9f6; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg.dele { background: var(--sup); border: 1px solid var(--linha); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.nosso { background: var(--acento); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ia-tag { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; opacity: .8; margin-bottom: 2px; }
.ia-tag .ic { width: 12px; height: 12px; }
.sugestao { margin: 0 18px; padding: 10px 12px; background: var(--quente-bg); border-radius: 10px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--linha); }
.composer input { flex: 1; min-width: 0; border: 1px solid var(--linha); border-radius: 999px; padding: 9px 16px; }

/* portal do paciente */
.modo-portal { background: var(--tinta); }
.portal-fundo { min-height: 100vh; padding: 24px 16px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.claro, .claro:hover { color: #b8c2cb !important; }
.fone { width: 100%; max-width: 400px; background: var(--fundo); border-radius: 32px; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.portal { background: var(--fundo); border-radius: 24px; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.portal > header { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; }
.portal > header strong { font-size: 19px; display: block; }
.p-destaque { background: var(--acento); color: #fff; border-radius: 18px; padding: 20px; }
.p-destaque small { color: rgba(255,255,255,.78); }
.p-destaque strong { font-size: 34px; font-weight: 800; display: block; line-height: 1.1; }
.p-card { background: var(--sup); border-radius: 16px; padding: 16px; border: 1px solid var(--linha); display: flex; flex-direction: column; gap: 10px; }
.p-card h3 { font-size: 14px; }
.p-card p { font-size: 14px; color: var(--suave); }
.p-card p strong { color: var(--tinta); }
.bloco-btn { width: 100%; }
.p-lista { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.p-lista li { display: grid; grid-template-columns: 96px 1fr; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.p-lista li:last-child { border-bottom: 0; }
.p-lista span { font-weight: 800; font-size: 13px; }
.p-lista small { grid-column: 2; }

/* modal e toast */
#overlay { position: fixed; inset: 0; background: rgba(22,32,42,.45); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
#overlay.on { display: flex; }
.modal { background: var(--sup); border-radius: 18px; padding: 26px; width: 100%; max-width: 420px; }
.modal h2 { margin-bottom: 16px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .semana { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grade-orc { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .erp { grid-template-columns: minmax(0, 1fr); background: none; }
  .erp > * { min-width: 0; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: column; gap: 10px; padding: 12px 16px 8px; overflow: visible; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { white-space: nowrap; padding: 8px 12px; flex: none; }
  .side nav a.sep { margin: 0; border: 0; border-radius: 10px; padding: 8px 12px; }
  .side-pe { display: none; }
  .top { padding: 18px 16px 4px; }
  .top h1 { font-size: 21px; }
  .conteudo { padding: 12px 16px 20px; }
  .erp-rodape { padding: 8px 16px 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grade2 { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
  .inbox aside { border-right: 0; border-bottom: 1px solid var(--linha); max-height: 220px; }
}
@media (max-width: 1580px) {
  .abre-grade { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .frase { display: none; }
  .faixa { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 1260px) {
  .abre-grade { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
  .faixa { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feito-para::before { display: none; }
}
@media (max-width: 960px) {
  .largo { padding: 0 24px; }
  .abre-grade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .palco { margin-left: 0; padding-left: 9%; }
  .faixa ul { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .faixa li:nth-child(3) { padding-left: 0; border-left: 0; }
  .bola.b2, .arco { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .largo { padding: 0 16px; }
  .abre { padding-top: 16px; }
  .sobretitulo { font-size: 11px; letter-spacing: .2em; margin-bottom: 16px; }
  .abre .lead { font-size: 16px; margin-top: 18px; }
  .abre-acoes { gap: 18px; margin-top: 28px; }
  .abre-acoes .btn.grande { flex: 1 1 100%; }
  .traco { display: none; }
  .note-tela { border-radius: 10px 10px 3px 3px; }
  .note-base { height: 9px; }
  .palco { padding-top: 16px; }
  .cel { border-radius: 20px; width: 28%; }
  .cel .vista { border-radius: 15px; }
  .faixa { padding-top: 36px; padding-bottom: 44px; }
  .faixa li { padding: 0 14px; font-size: 14.5px; gap: 10px; }
  .faixa li .ic { width: 26px; height: 26px; }
  .cores .link-sutil { margin: 4px 0 0; flex-basis: 100%; }
  .hero { padding-top: 36px; padding-bottom: 40px; }
  .hero .lead { font-size: 16px; }
  .bloco { padding-top: 56px; }
  .lista-num li { grid-template-columns: 36px 1fr; gap: 10px; }
  .demo-chamada { grid-template-columns: 1fr; gap: 0; }
  .demo-chamada .acoes { justify-content: flex-start; margin-top: 20px; }
  .precos { grid-template-columns: 1fr; }
  .passos { grid-template-columns: 1fr 1fr; }
  .acoes .btn { flex: 1 1 auto; }
  .pp-top .btn { display: none; }
  .semana { grid-template-columns: 1fr; }
  .dia { min-height: 0; }
  .kpi strong { font-size: 21px; }
  .card { padding: 16px; }
  .doc { padding: 20px; }
  .fotos { grid-template-columns: 1fr 1fr; }
  .equipe { grid-template-columns: 1fr; }
  .barra { grid-template-columns: 80px 1fr auto; }
  .msg { max-width: 88%; }
  .tabela { font-size: 13.5px; min-width: 620px; }
  .cel-pac strong { white-space: nowrap; }
  .pac-cab .grow { flex: 1 1 calc(100% - 72px); }
  .etapa-sel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .side, .top, .erp-rodape, .grade-orc > .form, .card, .doc .acoes { display: none !important; }
  .erp { display: block; }
  .grade-orc { display: block; }
  .doc { border: 0; box-shadow: none; }
  body { background: #fff; }
}

/* ---------- dentro do notebook e do celular da proposta ---------- */
body.embutido.modo-portal { background: var(--fundo); }
body.embutido .portal-fundo { padding: 0; min-height: 0; display: block; }
body.embutido .portal-fundo > .link-sutil, body.embutido .portal-fundo > p { display: none; }
body.embutido .fone { max-width: none; border-radius: 0; padding: 0; box-shadow: none; }
body.embutido .portal { border-radius: 0; padding-top: 40px; }

/* ---------- painel: cabeçalho, KPIs com tendência, agenda e tarefas ---------- */
.top h1 small { font-size: 13.5px; font-weight: 500; margin-top: 4px; letter-spacing: 0; }
.top-acoes { display: flex; align-items: center; gap: 14px; }
.busca-top { display: flex; align-items: center; gap: 8px; width: 220px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--sup); color: var(--suave); font-size: 13px; text-decoration: none; }
.sino { position: relative; display: grid; place-items: center; width: 38px; height: 38px; color: var(--tinta); }
.sino i { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 2px var(--fundo); }
.eu { display: flex; align-items: center; gap: 9px; }
.eu strong { display: block; font-size: 13px; }
.eu small { font-size: 11.5px; }
.kpi { position: relative; }
.kpi .kpi-ic { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; color: var(--acento); }
.kpi small.sobe { display: flex; align-items: center; gap: 4px; color: #2e7d4f; }
.kpi small.sobe .ic { width: 13px; height: 13px; }
.card-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-cab h2 { margin: 0; }
.card-cab .link { margin: 0; font-size: 13px; }
.lista.linhas .av { width: 32px; height: 32px; }
.lista.linhas strong { display: block; font-size: 14px; }
.lista.linhas small a { text-decoration: none; }
.lista .chev { color: #a3a7ad; width: 16px; height: 16px; }
.lista li:has(.tarefa) { padding: 0; }
.tarefa { display: flex; align-items: center; gap: 12px; padding: 11px 0; width: 100%; text-decoration: none; font-size: 14px; }
.tarefa:hover .chev { color: var(--tinta); }
.tar-ic { width: 20px; height: 20px; color: var(--suave); }
.tar-ic.t-whats { color: #25a55f; }
@media (max-width: 900px) {
  .busca-top, .eu span:last-child { display: none; }
}

/* ---------- portal: antes da cirurgia e abas ---------- */
.p-troca { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 4px; border-radius: 999px; }
.p-troca a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c3c7cc; text-decoration: none; }
.p-troca a.on { background: #fff; color: var(--tinta); }
body.embutido .p-troca { display: none; }
.portal > header small { font-size: 12.5px; }
.p-conta { display: flex; justify-content: space-between; align-items: flex-start; }
.p-conta .ic { width: 24px; height: 24px; opacity: .9; }
.p-conta p { margin-top: 2px; }
.p-etapas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--suave); }
.p-etapas li { display: flex; align-items: center; gap: 10px; }
.p-etapas li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #efede8; color: var(--suave); flex: none; }
.p-etapas li.feito { color: var(--tinta); }
.p-etapas li.feito > span { background: var(--acento); color: #fff; }
.p-etapas li.feito > span .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.p-etapas li.agora { color: var(--tinta); font-weight: 700; }
.p-etapas li.agora > span { background: var(--acento); color: #fff; box-shadow: 0 0 0 4px var(--acento-bg); }
.p-junto { display: flex; gap: 12px; align-items: flex-start; background: var(--acento-bg); border: 0; }
.p-junto .ic { color: var(--acento); width: 22px; height: 22px; }
.p-junto p { font-size: 13.5px; }
.p-abas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linha); margin: 4px -14px -18px; padding: 10px 0 14px; background: var(--sup); border-radius: 0 0 24px 24px; }
.p-abas span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #a3a7ad; }
.p-abas span.on { color: var(--acento); }
body.embutido .portal { min-height: 100vh; }
body.embutido .p-abas { position: sticky; bottom: 0; margin-top: auto; border-radius: 0; }

/* dentro do notebook e do celular não aparece barra de rolagem */
body.embutido, html:has(body.embutido) { scrollbar-width: none; }
body.embutido::-webkit-scrollbar, html:has(body.embutido)::-webkit-scrollbar { display: none; }

/* ---------- dobra monumental (referência: dylanbrouwer) ---------- */
.modo-proposta { background: color-mix(in srgb, var(--acento) 5%, #f8f8f8); }
.hx-rolo { position: relative; height: 300vh; }
.hx { --tinta-hx: #161616; position: sticky; top: 14px; margin: 14px; min-height: calc(100vh - 28px); min-height: calc(100svh - 28px); border-radius: 22px; overflow: hidden; color: #f1f1f1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acento) 22%, #0f0f10) 0%, color-mix(in srgb, var(--acento) 30%, #262528) 30%, color-mix(in srgb, var(--acento) 30%, #767579) 70%, color-mix(in srgb, var(--acento) 18%, #c2c0c4) 100%);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; padding: 0 4.2vw; height: calc(100vh - 28px); height: calc(100svh - 28px); min-height: 640px; }
.hx-nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font: 500 13px/1 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: -.01em; }
.hx-nav .marca { color: #f1f1f1; }
.hx-nav .marca-txt small { color: #a2a2a2; }
.hx-nav .logo:not(.img) { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.hx-links { display: flex; gap: 6vw; }
.hx-links button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: #c9c7cc; font: inherit; text-transform: inherit; letter-spacing: inherit; transition: color .3s cubic-bezier(.32,.72,0,1); }
.hx-links button:hover { color: #fff; }
.hx-links button:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
.hx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #f1f1f1; font: 500 13px/1 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s cubic-bezier(.32,.72,0,1); }
.hx-pill:hover { background: rgba(255,255,255,.12); }
.hx-pill .ic { width: 14px; height: 14px; }
.ponto-vivo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); vertical-align: middle; }
body:not(.tem-marca) .ponto-vivo { background: #f1f1f1; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.hx-titulo { grid-column: 1 / -1; margin: 1.5vw 0 0; text-align: center; font: var(--peso-display) calc(clamp(52px, 11.4vw, 250px) * var(--escala-display))/.84 var(--fonte-display); text-transform: var(--caixa-display); letter-spacing: -.012em; }
.hx-titulo span { display: block; white-space: nowrap; background-clip: text; -webkit-background-clip: text; color: transparent; }
.hx-titulo .l1 { background-image: linear-gradient(180deg, color-mix(in srgb, var(--acento) 6%, #e2dcdc), color-mix(in srgb, var(--acento) 14%, #a2a0a4) 70%, color-mix(in srgb, var(--acento) 18%, #8a888c)); }
.hx-titulo .l2 { font-style: var(--estilo-l2); background-image: linear-gradient(180deg, color-mix(in srgb, var(--acento) 30%, #7b7a7c), color-mix(in srgb, var(--acento) 35%, #2e2d31) 80%); transform: var(--italico-display); }
.hx-meta { position: absolute; left: 4.2vw; bottom: 4.2vw; z-index: 3; font: 500 13px/1.35 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; color: #3c3a3e; }
.hx-marca { position: relative; margin-top: 18px; }
.hx-pill.claro { color: #f1f1f1; border-color: transparent; background: color-mix(in srgb, var(--acento) 35%, #141415); }
.hx-pill.claro:hover { background: #2b2a2d; }
.hx-marca .montador { position: absolute; top: auto; bottom: calc(100% + 12px); left: 0; width: min(420px, 86vw); text-transform: none; font-family: Manrope, system-ui, sans-serif; color: var(--tinta); border-radius: 14.4px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.hx-texto { position: absolute; right: 4.2vw; bottom: 4.2vw; z-index: 3; max-width: 25ch; font: 500 clamp(18px, 1.35vw, 26px)/1.12 'Inter Tight', system-ui, sans-serif; letter-spacing: -.02em; color: #f4f3f5; }
.hx-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #161616; text-decoration: none; font-size: .78em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hx-link .ic { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.hx-link:hover .ic { transform: translateX(4px); }
/* entrada em cascata */
.hx > * { animation: hx-sobe .75s cubic-bezier(.32,.72,0,1) both; }
.hx-titulo { animation-delay: .08s; } .mon { animation: none; } .hx-meta, .hx-texto { animation-delay: .4s; }
@keyframes hx-sobe { from { opacity: 0; transform: translateY(24px); } }
@keyframes hx-monitor { from { opacity: 0; translate: 0 60px; } }
@media (prefers-reduced-motion: reduce) { .hx > * { animation: none; } }
@media (max-width: 900px) {
  .hx { margin: 8px; border-radius: 16px; height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: none; padding: 0 16px; }
  .hx-nav .marca-txt small { display: none; }
  .hx-nav .hx-pill { white-space: nowrap; }
  .hx-meta, .hx-texto { position: relative; left: auto; right: auto; bottom: auto; }
  .hx-links { display: none; }
  .hx-nav { padding: 14px 0; }
  .hx-nav .hx-pill { font-size: 11px; padding: 7px 10px; }
  .hx-titulo { font-size: 8.9vw; margin-top: 18px; }
    .hx-texto { grid-column: 1; grid-row: 3; justify-self: start; max-width: none; padding: 22px 0 0; color: #f1f1f1; }
  .hx-link { color: #f1f1f1; }
  .hx-meta { grid-row: 5; padding: 24px 0 22px; position: relative; z-index: 3; }
}

@media (max-width: 900px) { .so-largo { display: none; } }

/* ---------- monitor 3D (CSS), movido pela rolagem ---------- */
.mon { --y: 30vh; --s: .76; --rx: 14deg; --ry: 24deg; --rz: 8deg; --d: 1.5vw;
  position: absolute; left: 50%; top: 50%; width: 46vw; z-index: 2; transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateY(var(--y)) perspective(2200px) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--s)); }
.mon-tela { position: relative; background: #0a0a0b; padding: .9%; border-radius: .5vw; transform: translateZ(0); box-shadow: inset 0 0 0 1px #2a2a2e; }
.mon-tela .vista { aspect-ratio: 16 / 10; border-radius: .2vw; }
.mon-caixa { position: absolute; inset: 0; transform-style: preserve-3d; }
.mon-caixa i { position: absolute; background: #121214; }
.mon-caixa .f-tras { inset: 0; transform: translateZ(calc(var(--d) * -1)); background: linear-gradient(160deg, #26262a, #0d0d0f); border-radius: .5vw; }
.mon-caixa .f-topo, .mon-caixa .f-baixo { left: 0; right: 0; height: var(--d); background: linear-gradient(90deg, #1b1b1e, #3a3a3f 50%, #1b1b1e); }
.mon-caixa .f-topo { top: 0; transform-origin: top; transform: rotateX(90deg); }
.mon-caixa .f-baixo { bottom: 0; transform-origin: bottom; transform: rotateX(-90deg); background: #070708; }
.mon-caixa .f-esq, .mon-caixa .f-dir { top: 0; bottom: 0; width: var(--d); background: linear-gradient(#2a2a2e, #101012); }
.mon-caixa .f-esq { left: 0; transform-origin: left; transform: rotateY(-90deg); }
.mon-caixa .f-dir { right: 0; transform-origin: right; transform: rotateY(90deg); }
/* pé com o furo redondo, atrás da tela */
.mon-pe { position: absolute; left: 50%; top: 62%; width: 17%; height: 95%; transform: translateX(-50%) translateZ(calc(var(--d) * -1 - 1.2vw)); background: linear-gradient(90deg, #0b0b0c, #232326 45%, #0b0b0c);
  -webkit-mask: radial-gradient(circle at 50% 43%, transparent 16%, #000 16.5%); mask: radial-gradient(circle at 50% 43%, transparent 16%, #000 16.5%); }
.mon .cobre { position: absolute; inset: 0; z-index: 2; transform: translateZ(1px); }
.mon.troca .vista { animation: troca-tela .45s cubic-bezier(.19,1,.22,1); }
@keyframes troca-tela { 0% { filter: brightness(1.8) contrast(.7); } 100% { filter: none; } }
.hx-cursor { position: fixed; left: 0; top: 0; z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #161616; color: #f1f1f1; font: 500 12px/1 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .3s cubic-bezier(.32,.72,0,1); white-space: nowrap; }
.hx-cursor.on { opacity: 1; }
.hx-cursor b { font-weight: 600; }
/* ao rolar, o menu sai e o título fica */
.hx-nav { transition: opacity .5s cubic-bezier(.19,1,.22,1), transform .5s cubic-bezier(.19,1,.22,1); }
body.hx-rolando .hx-nav { opacity: 0; transform: translateY(-12px); pointer-events: none; }
@media (max-width: 900px) {
  .hx-rolo { height: 220vh; }
  .hx { position: sticky; top: 8px; height: calc(100svh - 16px); display: flex; flex-direction: column; }
  .hx-nav { flex: none; }
  .mon { width: 86vw; top: 70%; --d: 2.6vw; }
  .hx-texto { position: static; margin-top: 18px; font-size: 17px; }
  .hx-meta { position: absolute; left: 16px; bottom: 16px; padding: 0; }
  .hx-meta p { display: none; }
  .hx-cursor { display: none; }
}

/* monitor de frente: interativo */
.mon.ativo iframe { pointer-events: auto; }
.mon.ativo .cobre { display: none; }
.mon-dica { position: absolute; left: 50%; top: 0; transform: translate(-50%, calc(-100% - 12px)) translateZ(2px); display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #161616; color: #f1f1f1; font: 500 12px/1 'IBM Plex Mono', ui-monospace, monospace; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .5s cubic-bezier(.32,.72,0,1); pointer-events: none; }
.mon.ativo .mon-dica { opacity: 1; }
@media (max-width: 900px) { .mon-dica { font-size: 10px; } }

/* De frente o monitor deixa de ser 3D: o navegador redesenha a tela nítida, sem esticar a imagem. */
.mon.ativo { transform: translate(-50%, -50%) translateY(var(--y)); transform-style: flat; }
.mon.ativo .mon-caixa { display: none; }
.mon.ativo .mon-pe { transform: translateX(-50%); z-index: -1; }
.mon.ativo .mon-tela { transform: none; }


.hx-titulo { letter-spacing: -.03em; }
/* com traço fino, a segunda linha precisa de mais luz para não sumir no fundo */
.hx-titulo .l2 { background-image: linear-gradient(180deg, color-mix(in srgb, var(--acento) 18%, #b4b1b6), color-mix(in srgb, var(--acento) 30%, #6a686d) 85%); }

/* =================== Corpo da proposta (depois da dobra) ===================
   Continua a dobra: fundo na cor da marca, serifa leve nos títulos, texto calmo.
   Nada de mono, etiqueta quadrada ou grade: é uma clínica, não um estúdio. */
.modo-proposta { background: color-mix(in srgb, var(--acento) 7%, #f7f3ee); }
.corpo { --tom: color-mix(in srgb, var(--acento) 7%, #f7f3ee); --tinta-c: #2a2522; --suave-c: #6f6660; color: var(--tinta-c); }
.s { padding: 140px 7vw 0; }
.s-rot { font: italic 300 20px/1 'Fraunces', Georgia, serif; color: color-mix(in srgb, var(--acento) 70%, #5b4a40); margin-bottom: 22px; }
.s-tit { font: 300 clamp(38px, 4.4vw, 76px)/1.02 'Fraunces', Georgia, serif; letter-spacing: -.025em; max-width: 18ch; }
.s-tit em { font-style: italic; color: color-mix(in srgb, var(--acento) 75%, #3a2d27); }
.s-txt { font: 400 clamp(17px, 1.2vw, 21px)/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); max-width: 46ch; }

/* dores: três frases, como quem conta um caso */
.dor { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4vw; }
.dor li { padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--acento) 25%, #d9d0c7); }
.dor q { display: block; font: italic 300 clamp(24px, 2vw, 34px)/1.18 'Fraunces', Georgia, serif; letter-spacing: -.01em; quotes: none; }
.dor p { margin-top: 16px; font: 400 16px/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); }

/* jornada do paciente: tela presa que acompanha a leitura */
.jor-grade { display: grid; grid-template-columns: minmax(0, 6.5fr) minmax(0, 5fr); gap: 6vw; margin-top: 80px; }
.jor-palco { position: sticky; top: calc(50vh - 18vw); align-self: start; }
.dd-tela { background: #151313; padding: .8%; border-radius: 14px; box-shadow: 0 50px 90px -40px color-mix(in srgb, var(--acento) 45%, rgba(40,30,25,.6)), 0 16px 30px -20px rgba(40,30,25,.35); }
.dd-tela .vista { aspect-ratio: 16 / 10; border-radius: 8px; }
.dd-tela.troca .vista { animation: troca-tela .45s cubic-bezier(.19,1,.22,1); }
.jor-legenda { margin-top: 16px; font: italic 300 17px/1 'Fraunces', Georgia, serif; color: var(--suave-c); }
.jor-lista { list-style: none; margin: 0; padding: 0; }
.jor-lista > li { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .6s cubic-bezier(.32,.72,0,1); }
.jor-lista > li:last-child { min-height: 58vh; }
.jor-lista > li.on { opacity: 1; }
.jor-quando { font: italic 300 18px/1 'Fraunces', Georgia, serif; color: color-mix(in srgb, var(--acento) 70%, #5b4a40); }
.jor-lista h3 { margin-top: 14px; font: 300 clamp(28px, 2.5vw, 44px)/1.08 'Fraunces', Georgia, serif; letter-spacing: -.02em; }
.jor-lista p { margin-top: 16px; font: 400 clamp(17px, 1.15vw, 20px)/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); max-width: 36ch; }

/* o paciente também sente: celular com o portal */
.pac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.pac-cel { justify-self: center; width: min(330px, 70vw); background: #151313; border-radius: 46px; padding: 12px; box-shadow: 0 60px 100px -50px color-mix(in srgb, var(--acento) 50%, rgba(40,30,25,.6)); position: relative; }
.pac-cel::before { content: ''; position: absolute; z-index: 1; top: 22px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #151313; border-radius: 99px; }
.pac-cel .vista { aspect-ratio: 390 / 800; border-radius: 36px; }
.pac-cel iframe { pointer-events: auto; }
.pac-itens { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.pac-itens li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font: 400 18px/1.45 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); }
.pac-itens li::before { content: ''; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 18%, transparent); }
.pac-itens b { font-weight: 500; color: var(--tinta-c); }

/* investimento: claro, com a conta junto */
.inv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 64px; background: color-mix(in srgb, var(--acento) 4%, #fffdfb); border-radius: 26px; box-shadow: 0 30px 70px -45px rgba(60,40,30,.35); overflow: hidden; }
.inv-col { padding: 48px 4vw 44px; }
.inv-col + .inv-col { border-left: 1px solid color-mix(in srgb, var(--acento) 14%, #ece4dc); }
.inv-o { font: italic 300 19px/1 'Fraunces', Georgia, serif; color: var(--suave-c); }
.inv-num { display: block; margin: 18px 0 22px; font: 300 clamp(56px, 6.2vw, 112px)/.9 'Fraunces', Georgia, serif; letter-spacing: -.03em; color: color-mix(in srgb, var(--acento) 55%, #2a2522); }
.inv-num small { display: inline; font-size: .3em; color: var(--suave-c); letter-spacing: 0; }
.inv-col p { font: 400 17px/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); max-width: 40ch; }
.inv-conta { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4vw; align-items: end; padding: 40px 4vw 44px; background: color-mix(in srgb, var(--acento) 10%, #f6efe8); }
.inv-campo { font: italic 300 19px/1 'Fraunces', Georgia, serif; color: var(--suave-c); }
.iv-entrada { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font: 300 clamp(34px, 3vw, 52px)/1 'Fraunces', Georgia, serif; color: var(--tinta-c); border-bottom: 1px solid color-mix(in srgb, var(--acento) 40%, #bfb2a6); padding-bottom: 8px; }
.iv-entrada input { width: 100%; min-width: 0; background: none; border: 0; color: inherit; font: inherit; padding: 0; }
.iv-entrada input:focus { outline: none; }
.iv-entrada:focus-within { border-color: var(--acento); }
.iv-resultado { font: 300 clamp(22px, 1.9vw, 32px)/1.25 'Fraunces', Georgia, serif; letter-spacing: -.01em; color: var(--suave-c); }
.iv-resultado b { font-weight: 400; color: color-mix(in srgb, var(--acento) 60%, #2a2522); }
.inv-nota { margin-top: 20px; font: 400 14px/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); }

/* como começa */
.passos4 { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3vw; }
.passos4 li { padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--acento) 25%, #d9d0c7); }
.passos4 .n { font: italic 300 40px/1 'Fraunces', Georgia, serif; color: color-mix(in srgb, var(--acento) 70%, #5b4a40); }
.passos4 h3 { margin-top: 16px; font: 300 clamp(22px, 1.7vw, 30px)/1.1 'Fraunces', Georgia, serif; letter-spacing: -.015em; }
.passos4 p { margin-top: 10px; font: 400 16px/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c); }

/* fechamento escuro, espelho da dobra */
.fim { margin: 140px 14px 0; border-radius: 22px; padding: 120px 4.2vw 56px; text-align: center; color: #f1f1f1;
  background: linear-gradient(0deg, color-mix(in srgb, var(--acento) 22%, #0f0f10) 0%, color-mix(in srgb, var(--acento) 30%, #262528) 55%, color-mix(in srgb, var(--acento) 26%, #6f6e72) 100%); }
.fim-tit { display: block; font: 300 clamp(56px, 10vw, 210px)/.86 'Fraunces', Georgia, serif; text-transform: uppercase; letter-spacing: -.03em; text-decoration: none;
  background: linear-gradient(180deg, #f3eeee, color-mix(in srgb, var(--acento) 25%, #9a979c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fim-tit em { font-style: italic; }
.fim p { margin: 32px auto 0; max-width: 42ch; font: 400 clamp(17px, 1.2vw, 21px)/1.5 'Inter Tight', system-ui, sans-serif; color: #d8d2cf; }
.fim-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.fim-acoes .hx-pill { font-size: 13px; padding: 11px 16px; }
.hx-pill.escuro { background: #f3eeee; color: #1c1917; border-color: transparent; }
.hx-pill.escuro:hover { background: #fff; }
.rp { margin: 0 14px; padding: 28px 4.2vw 26px; text-align: center; font: 400 13px/1.5 'Inter Tight', system-ui, sans-serif; color: var(--suave-c, #6f6660); }

@media (max-width: 900px) {
  .s { padding: 88px 18px 0; }
  .dor, .passos4 { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 44px; }
  .jor-grade { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 40px; }
  .jor-palco { top: 0; z-index: 2; padding: 10px 0; background: var(--tom); box-shadow: 0 -40px 0 var(--tom); }
  .jor-lista > li { min-height: 58vh; }
  .pac { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .inv { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .inv-col { padding: 32px 22px; }
  .inv-col + .inv-col { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--acento) 14%, #ece4dc); }
  .inv-conta { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 22px; }
  .fim { margin: 88px 8px 0; border-radius: 16px; padding: 80px 18px 40px; }
  .fim-tit { font-size: 12.5vw; }
  .rp { padding: 24px 18px 90px; margin: 0; }
}

.s-tit.centro { margin-left: auto; margin-right: auto; max-width: 24ch; text-wrap: balance; }

/* botões do fechamento: claros, legíveis, sem cara de terminal */
.bt { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 500 16px/1 'Inter Tight', system-ui, sans-serif; letter-spacing: -.01em; text-decoration: none; transition: background .3s cubic-bezier(.32,.72,0,1), transform .3s cubic-bezier(.32,.72,0,1); }
.bt .ic { width: 18px; height: 18px; }
.bt:hover { transform: translateY(-1px); }
.bt-cheio { background: #f6f1ee; color: #1c1917; }
.bt-cheio:hover { background: #fff; }
.bt-cheio .ic { color: #1fa855; }
.bt-linha { color: #f1ebe8; border: 1px solid rgba(255,255,255,.28); }
.bt-linha:hover { background: rgba(255,255,255,.08); }
.bt-linha .ic { width: 15px; height: 15px; transition: transform .3s cubic-bezier(.32,.72,0,1); }
.bt-linha:hover .ic { transform: translateX(3px); }
.fim-acoes { gap: 10px; }
/* WhatsApp flutuante */
.whats-flutua { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font: 500 15px/1 'Inter Tight', system-ui, sans-serif; box-shadow: 0 14px 30px -10px rgba(20, 90, 50, .55); transition: transform .3s cubic-bezier(.32,.72,0,1), box-shadow .3s; }
.whats-flutua svg { width: 30px; height: 30px; }
.whats-flutua:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(20, 90, 50, .6); }
.whats-flutua:focus-visible { outline: 2px solid #1c1917; outline-offset: 3px; }
@media (max-width: 900px) {
  .whats-flutua { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .fim-acoes .bt { width: 100%; justify-content: center; }
}

/* Assinatura da casa (padrão): uma linha, centralizada, abaixo do texto, filete em cima, pequena e apagada. */
.assinatura { margin: 18px auto 0; padding: 14px 0 0 !important; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); max-width: 420px; text-align: center; font: 400 11.5px/1.4 'Inter Tight', system-ui, sans-serif !important; letter-spacing: 0; color: color-mix(in srgb, currentColor 75%, transparent) !important; opacity: .85; }
.assinatura a { color: inherit !important; font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); transition: border-color .2s, color .2s; }
.assinatura a:hover { color: var(--tinta, #17191c) !important; border-bottom-color: currentColor; }

/* Logo sempre redonda (pedido do Victor): a imagem preenche o círculo. */
.logo, .logo.img { border-radius: 50%; }
.logo.img { padding: 0; background: #fff; box-shadow: 0 0 0 1.5px rgba(255,255,255,.85), 0 0 0 1px var(--linha); }
.logo.img img { object-fit: cover; border-radius: 50%; }
.side .logo.img, .hx-nav .logo.img { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }

/* Chamada para testar com a logo: seta desenhada à mão apontando para o botão + pulso suave.
   Some quando a pessoa já pôs a logo ou abriu o montador. */
.hx-marca-linha { display: flex; align-items: center; gap: 12px; }
.seta-logo { display: flex; align-items: flex-start; gap: 6px; pointer-events: none; color: #1a1817; transition: opacity .4s; }
.seta-logo em { margin-top: -18px; font: italic 300 clamp(18px, 1.3vw, 23px)/1.1 'Fraunces', Georgia, serif; letter-spacing: -.01em; white-space: nowrap; text-transform: none; opacity: 0; animation: seta-texto .8s .9s cubic-bezier(.32,.72,0,1) forwards; }
.seta-logo svg { width: 84px; height: 42px; overflow: visible; margin-top: -8px; }
.seta-logo path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.seta-logo .traco { stroke-dasharray: 120; stroke-dashoffset: 120; animation: seta-risca 1s 1.3s cubic-bezier(.65,0,.35,1) forwards; }
.seta-logo .ponta { stroke-dasharray: 40; stroke-dashoffset: 40; animation: seta-risca .35s 2.2s ease-out forwards; }
@keyframes seta-risca { to { stroke-dashoffset: 0; } }
@keyframes seta-texto { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hx-marca > .hx-pill.claro { position: relative; }
body:not(.tem-logo):not(.viu-montador) .hx-marca > .hx-pill.claro::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--acento) 55%, #161616); animation: pulso-logo 2.4s 2.4s cubic-bezier(.32,.72,0,1) infinite; pointer-events: none; }
@keyframes pulso-logo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acento) 45%, rgba(22,22,22,.45)); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
body.tem-logo .seta-logo, body.viu-montador .seta-logo, body.hx-rolando .seta-logo { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .seta-logo em, .seta-logo .traco, .seta-logo .ponta { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .hx-marca > .hx-pill.claro::after { animation: none !important; }
}
@media (max-width: 900px) {
  .seta-logo { display: none; }
}

@media (min-width: 901px) and (max-width: 1600px) {
  .seta-logo { flex-direction: column; gap: 2px; }
  .seta-logo svg { width: 64px; height: 32px; }
  .seta-logo em { margin: 0 0 0 30px; font-size: 18px; }
}

.so-celular { display: none; }
@media (max-width: 900px) { .so-celular { display: inline; } }

/* Como começa no celular: passos centralizados, como o título */
@media (max-width: 900px) {
  .passos4 li { text-align: center; }
  .passos4 p { margin-left: auto; margin-right: auto; max-width: 30ch; }
}

/* Logo no celular: sai da dobra (ficava espremida no pé do monitor) e ganha um bloco próprio logo depois. */
.marca-cel { display: none; }
.bt-marca { margin: 28px auto 0; background: color-mix(in srgb, var(--acento) 35%, #161616); color: #f6f1ee; border: 0; cursor: pointer; }
.bt-marca:hover { background: color-mix(in srgb, var(--acento) 45%, #161616); }
body:not(.tem-logo):not(.viu-montador) .bt-marca { animation: pulso-logo 2.4s 1s cubic-bezier(.32,.72,0,1) infinite; }
.marca-cel-slot .montador { position: static; width: 100%; margin-top: 22px; text-align: left; }
@media (max-width: 900px) {
  .hx-meta { display: none; }
  .marca-cel { display: flex; flex-direction: column; align-items: center; padding: 72px 18px 8px; text-align: center; }
  .marca-cel .s-tit { font-size: 32px; }
}
body.montador-aberto .whats-flutua { opacity: 0; pointer-events: none; }

/* ===== Revisão do celular ===== */
.pac-cel .cobre { display: none; position: absolute; inset: 0; z-index: 2; border-radius: 46px; }
@media (max-width: 900px) {
  /* celular do portal: vitrine; tocar abre o portal em tela cheia */
  .pac-cel iframe { pointer-events: none; }
  .pac-cel .cobre { display: block; }
  /* jornada: sem tela presa nem itens apagados, uma sequência simples */
  .jor-palco { position: static; box-shadow: none; padding: 0; background: none; }
  .jor-legenda { display: none; }
  .jor-lista { margin-top: 12px; }
  .jor-lista > li, .jor-lista > li:last-child { min-height: 0; opacity: 1; padding: 30px 0 4px; border-top: 1px solid color-mix(in srgb, var(--acento) 22%, #d9d0c7); margin-top: 26px; }
  .jor-lista > li:first-child { margin-top: 32px; }
  .jor-lista h3 { font-size: 27px; }
  /* WhatsApp menor para não cobrir o texto */
  .whats-flutua { width: 50px; height: 50px; right: 12px; bottom: 12px; }
  .whats-flutua svg { width: 26px; height: 26px; }
}

/* ===== Sistema no celular ===== */
.kpi > span { display: block; padding-right: 28px; }
@media (max-width: 720px) {
  .kpi { padding: 14px; }
  .kpi > span { font-size: 12px; line-height: 1.3; }
  .kpi .kpi-ic { top: 13px; right: 12px; width: 17px; height: 17px; }
  .kpi small.sobe { font-size: 11px; align-items: flex-start; }
  .kpi small.sobe .ic { margin-top: 2px; }
  .abas button { padding: 9px 9px; font-size: 13px; }
  /* pós-operatório: a tabela cabe na tela, sem coluna cortada */
  .tabela.compacta { min-width: 0; }
  .tabela.compacta th:nth-child(4), .tabela.compacta td:nth-child(4) { display: none; }
  .tabela.compacta td, .tabela.compacta th { white-space: normal; padding-left: 8px; padding-right: 8px; }
}

/* Hero no celular: título grande em três linhas (NENHUM / PACIENTE / ESFRIA.) */
.hx-titulo .quebra-cel { display: none; }
@media (max-width: 900px) {
  .hx-titulo { font-size: 15vw !important; line-height: .88; margin-top: 26px; }
  .hx-titulo .quebra-cel { display: block; }
  .hx-titulo .l2 { margin-top: .02em; }
  .hx-texto { margin-top: 22px; font-size: 18px; line-height: 1.3; }
  .mon { top: 74%; }
}

.lead-cel { display: none; }
@media (max-width: 900px) {
  .hx-texto { display: none; }
  .hx-titulo { margin-top: 34px; }
  .mon { top: 66%; }
  .lead-cel { display: block; padding: 56px 18px 0; text-align: center; }
  .lead-cel p { font: 300 25px/1.25 'Fraunces', Georgia, serif; letter-spacing: -.01em; color: #2a2522; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
  .lead-cel .hx-link { color: #2a2522; margin-top: 20px; font: 500 16px/1 'Inter Tight', system-ui, sans-serif; }
  .marca-cel { padding-top: 56px; }
}

/* Celular: o pé do monitor sem o recorte redondo (no celular o buraco parecia um corte e o monitor ficava solto). */
@media (max-width: 900px) {
  .mon-pe { -webkit-mask: none; mask: none; top: 55%; height: 260%; }
}
/* Celular: hero mais baixa, para o pé do monitor ficar curto (sem "pescoço"). */
@media (max-width: 900px) {
  .hx { height: auto !important; min-height: 0 !important; aspect-ratio: 390 / 560; max-height: calc(100svh - 16px); }
  .mon { top: 63%; }
}

/* Hero + texto presos juntos no celular (sem faixa vazia embaixo do cartão). No computador o invólucro não existe. */
.hx-fixo { display: contents; }
@media (max-width: 900px) {
  .hx-fixo { display: block; position: sticky; top: 8px; }
  .hx-fixo > .hx { position: relative; top: 0; }
  .lead-cel { padding: 26px 18px 0; }
  .lead-cel p { font-size: 23px; }
}
@media (max-width: 900px) {
  .hx-fixo { height: calc(100svh - 16px); display: flex; flex-direction: column; }
  .hx-fixo > .hx { flex: 1 1 auto; aspect-ratio: auto; max-height: none; min-height: 0 !important; }
  .lead-cel { flex: none; padding: 20px 18px 14px; }
  .lead-cel p { font-size: 21px; }
  .lead-cel .hx-link { margin-top: 12px; }
}
@media (max-width: 900px) { .mon { width: 76vw; top: 64%; } }

/* Composição corporal no prontuário (nutrologia) */
.compo { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; }
.compo-num span { font-size: 13px; color: var(--suave); font-weight: 600; }
.compo-num strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.compo-num small { color: #2e7d4f; font-weight: 600; }
.compo-graf { width: 100%; height: auto; background: var(--fundo); border-radius: 12px; padding: 8px 6px; overflow: visible; }
.compo-graf .linha { fill: none; stroke: var(--acento); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.compo-graf .ponto { fill: var(--sup); stroke: var(--acento); stroke-width: 2; }
.compo-graf .meta { stroke: var(--suave); stroke-dasharray: 4 4; stroke-width: 1; opacity: .6; }
.compo-graf .rot { font-size: 9px; fill: var(--suave); }
.compo .prog { margin-top: 4px; }
.compo-lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compo-lista li { background: var(--fundo); border-radius: 10px; padding: 10px 12px; }
.compo-lista span { display: block; font-size: 12px; color: var(--suave); }
.compo-lista b { font-size: 17px; }
.mapa-box .chips { justify-content: flex-start; }

/* Fundo da dobra: foto do ambiente do nicho, escurecida e tingida pela cor da marca (sem marca, grafite). */
.hx { background:
  linear-gradient(180deg, color-mix(in srgb, var(--acento) 20%, rgba(12,12,13,.9)) 0%, color-mix(in srgb, var(--acento) 26%, rgba(20,19,22,.72)) 38%, color-mix(in srgb, var(--acento) 22%, rgba(70,68,72,.55)) 75%, color-mix(in srgb, var(--acento) 16%, rgba(190,187,192,.78)) 100%),
  url(hero.jpg) center 40% / cover no-repeat; }
.hx-meta { color: rgba(241,241,241,.82); }
@media (max-width: 900px) { .hx { background-position: center, 30% 40%; } }
