/* P2 · Simulação — the simulation, on top of pagina.css (tokens, type, the lacquer button, the sections), v6.css (the
   first screen, the doubts and the ask, shared with P1) and ../marca/marca.css (Pérola, status lights). The simulation rebuilds the real product screens as UI:
   the clinic's messenger, the patient's welcome and conversation, the doctor's file and the turned screen.
   Mobile first (375 px); one easing curve; under .rm nothing loops and every state shows still. */

/* ---------------------------------------------------------------- 1 · the video's cover is the film's own first frame, edge to edge */
.player__capa--quadro { background: #DCEAF7; }
.player__capa--quadro img { width: 100%; height: 100%; margin: 0; object-fit: cover; filter: none; animation: none; }

/* ---------------------------------------------------------------- 1 · the line under the video (P1's place, this page's two sentences) */
.player__sob--p2 { max-width: 300px; text-align: center; line-height: 1.45; text-wrap: balance; }

/* ---------------------------------------------------------------- 2 · the simulation */
.sim-sec { background: linear-gradient(180deg, #FFFFFF 0%, #F3F8FC 50%, #FFFFFF 100%); padding: 64px 0 72px; }
.sim-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 22% at 4% 34%, rgba(245,160,134,.16), transparent 70%), radial-gradient(42% 24% at 98% 58%, rgba(111,214,223,.22), transparent 70%); }
.sim { max-width: 1080px; margin: 0 auto; }
.sim__abre { max-width: 34em; margin: 0 0 28px; }
.sim__abre .h2 { margin-bottom: 14px; }
.sim__abre .lead { margin: 0 0 24px; }
@media (min-width: 960px) {
  .sim-sec { padding: 112px 0 120px; }
  .sim { position: relative; }
  .sim__abre { margin-bottom: 44px; }
  /* before "Começar", the invitation sits beside the waiting phone */
  .p2-js .sim:not(.sim--rodando) .sim__abre { position: absolute; z-index: 2; left: 0; top: 50%; width: 340px; margin: 0; transform: translateY(-50%); }
}

/* the simulation's own controls: the white capsule without the light (the light is the sign-up's) */
.sim-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: #fff; color: var(--tinta); font: 500 16.5px/1.2 var(--font); letter-spacing: -.005em; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1.5px 0 #FFFFFF, 0 0 0 1px rgba(30,43,64,0.07), inset 0 -6.5px 10px -6.5px rgba(92,124,156,0.14), 0 1px 1.5px rgba(28,52,78,0.05), 0 8px 13px -8px rgba(28,58,90,0.18), 0 17px 27px -15px rgba(40,92,124,0.08);
  transition: transform .15s var(--ease), box-shadow .3s var(--ease), opacity .4s var(--ease); }
.sim-btn:hover { transform: translateY(-1px); }
.sim-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(64,124,178,0.165), 0 0 0 1px rgba(30,43,64,0.06), 0 4px 8px -5px rgba(28,58,90,0.055); }
.sim-btn--mini { min-height: 40px; padding: 0 20px; font-size: 14.5px; }
.sim-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--tinta); cursor: pointer;
  box-shadow: 0 0 0 1px var(--linha), 0 4px 10px -6px rgba(30,43,60,.3); transition: opacity .3s var(--ease), transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.sim-ico:active { transform: scale(.94); }
.sim-ico:disabled { opacity: .32; cursor: default; }
.sim-ico:disabled:active { transform: none; }
/* the shared focus ring keeps each control's own shape */
.sim .sim-btn:focus-visible, .sim .sim-ico:focus-visible, .zap__enviar:focus-visible, .pc__comecar:focus-visible, .dr__mostrar:focus-visible, .dr__copiar:focus-visible { border-radius: 999px; }
.dr__aviso:focus-visible { border-radius: 14px; }
.sim-link { display: inline-block; margin: 18px 0 0; padding: 6px 2px; border: 0; background: none; color: var(--link); font: 500 15px/1.3 var(--font); text-decoration: underline; text-decoration-color: rgba(58,118,178,.4); text-underline-offset: 3px; cursor: pointer; }

/* the one target per screen: a soft ring of light breathing out of it */
.alvo { position: relative; -webkit-tap-highlight-color: transparent; }
.alvo::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0; }
.alvo.pulsa::after { opacity: 1; animation: alvo 2.4s var(--ease) infinite; }
@keyframes alvo { 0% { box-shadow: 0 0 0 0 rgba(72,194,214,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(111,214,223,0); } }
.rm .alvo.pulsa::after { animation: none; box-shadow: 0 0 0 3px rgba(111,214,223,.7); }

/* the hint beside the target: a small capsule with a pointer, placed by p2.js */
.dica { position: absolute; z-index: 6; left: 0; top: 0; padding: 7px 13px; border-radius: 999px; background: #fff; color: var(--tinta); font-size: 13.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(30,43,60,.1), 0 0 0 5px rgba(111,214,223,.22), 0 12px 24px -12px rgba(30,60,100,.5); opacity: 0; visibility: hidden; transform: translate(var(--dx, 0), var(--dy, 6px));
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.dica[data-pos="cima"] { --dy: -6px; }
.dica[data-pos="esq"] { --dy: 0; --dx: -6px; }
.dica[data-pos="dir"] { --dy: 0; --dx: 6px; }
.dica--2l { white-space: normal; text-wrap: balance; text-align: center; border-radius: 18px; }
.dica::before { content: ""; position: absolute; left: var(--seta, 50%); top: -4px; width: 9px; height: 9px; margin-left: -4.5px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 0 rgba(30,43,60,.1); }
.dica[data-pos="cima"]::before { top: auto; bottom: -4px; box-shadow: 1px 1px 0 0 rgba(30,43,60,.1); }
.dica[data-pos="esq"]::before { left: auto; right: -4px; top: 50%; margin: -4.5px 0 0; box-shadow: 1px -1px 0 0 rgba(30,43,60,.1); }
.dica[data-pos="dir"]::before { left: -4px; top: 50%; margin: -4.5px 0 0; box-shadow: -1px 1px 0 0 rgba(30,43,60,.1); }
.dica.aparece { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s; }

/* the stage: back, progress, start over */
.sim__barra { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.sim__prog { flex: 1; display: flex; gap: 6px; }
.sim__prog i { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--linha); overflow: hidden; }
.sim__prog i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #F5A086, #6FD6DF 50%, #6890EA); background: linear-gradient(90deg in oklab, #F5A086, #6FD6DF 50%, #6890EA); background-size: 400% 100%; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.sim__prog i:nth-child(2)::after { background-position: 33.3% 0; }
.sim__prog i:nth-child(3)::after { background-position: 66.6% 0; }
.sim__prog i:nth-child(4)::after { background-position: 100% 0; }
.sim__prog i.on::after { transform: none; }

/* before "Começar": the first screen waits, still and a little faded; any tap on it starts */
.p2-js .sim--rodando [data-comecar] { display: none; }
.p2-js .sim:not(.sim--rodando) .sim__barra, .p2-js .sim:not(.sim--rodando) .sp__t { display: none; }
.p2-js .sim:not(.sim--rodando) .sim__passos { opacity: .5; cursor: pointer; transition: opacity .5s var(--ease); }
.p2-js .sim:not(.sim--rodando) .sim__passos:hover { opacity: .62; }
.p2-js .sim:not(.sim--rodando) .dica { visibility: hidden; }
.p2-js .sim:not(.sim--rodando) .sp * { pointer-events: none; }

/* one screen at a time: every step sits in the same cell, so the stage never jumps */
.p2-js .sim__passos { display: grid; }
.p2-js .sp { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.p2-js .sp.ativo { visibility: visible; opacity: 1; transform: none; transition: opacity .55s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
.sp__t { margin: 0 0 14px; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.005em; outline: none; }
.sp__t:focus-visible, .fim2__t:focus-visible { box-shadow: var(--foco); border-radius: 6px; }
.sp__cena { position: relative; }
.sp__depois { margin-top: 18px; }
.p2-js .sp__depois { visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.p2-js .sp.concluido .sp__depois { visibility: visible; opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s; }
.sp__leg { margin: 0 0 16px; font-size: 17px; line-height: 1.5; max-width: 30em; text-wrap: pretty; }
.sp__fala { margin: 0 0 16px; }
.fala__intro { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--tinta-suave); }
.fala { margin: 0; font-size: 19px; line-height: 1.32; letter-spacing: -.012em; font-weight: 400; text-wrap: pretty; }

@media (min-width: 960px) {
  .sim__barra { margin-bottom: 28px; }
  .p2-js .sp:not(.sp--fim) { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "t cena" "f cena" "d cena"; column-gap: 72px; align-items: start; }
  .sp__t { grid-area: t; margin: 24px 0 18px; font-size: 30px; line-height: 1.12; font-weight: 300; letter-spacing: -.025em; }
  .sp__fala { grid-area: f; margin: 0 0 8px; }
  .sp__cena { grid-area: cena; }
  .sp__depois { grid-area: d; margin-top: 8px; }
  .sp__leg { font-size: 18px; }
  .fala { font-size: 22px; }
}

/* no script: the walkthrough reads as text (the screens need the script) */
html:not(.p2-js) .sim__barra, html:not(.p2-js) .sp__cena, html:not(.p2-js) [data-comecar], html:not(.p2-js) [data-proximo], html:not(.p2-js) [data-de-novo] { display: none; }
html:not(.p2-js) .sp { margin: 0 0 28px; }

/* ---------------------------------------------------------------- the phone (steps 1 and 2) */
.tel { --tel-h: clamp(380px, calc(100vh - 300px), 470px); position: relative; width: min(316px, 100%); height: var(--tel-h); margin: 0 auto; padding: 7px; border-radius: 42px;
  background: linear-gradient(155deg, #FFFFFF 0%, #E8EFF6 46%, #F8FBFD 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(30,43,60,.09), 0 36px 64px -34px rgba(30,60,100,.5), 0 12px 26px -18px rgba(30,60,100,.3); }
@supports (height: 100svh) { .tel { --tel-h: clamp(380px, calc(100svh - 300px), 470px); } }
.tel::after { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -22px; height: 50px; border-radius: 50%; background: var(--luz3); filter: blur(26px); opacity: .45; }
.tel__tela { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 35px; background: #fff; color: var(--tinta); }
.tel__status { flex: none; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 3px 22px 0 26px; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tel__ic { display: flex; align-items: center; gap: 5px; }
.tel__ic i { display: block; height: 10px; }
.tel__ic i:nth-child(1) { width: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10'%3E%3Cg fill='%231E2B3C'%3E%3Crect x='0' y='7' width='2.6' height='3' rx='.8'/%3E%3Crect x='4' y='5' width='2.6' height='5' rx='.8'/%3E%3Crect x='8' y='2.6' width='2.6' height='7.4' rx='.8'/%3E%3Crect x='12' y='0' width='2.6' height='10' rx='.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.tel__ic i:nth-child(2) { width: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M7 9.6 4.8 7.2a3.2 3.2 0 0 1 4.4 0zM2.6 5A6.4 6.4 0 0 1 11.4 5l1.4-1.5a8.4 8.4 0 0 0-11.6 0z' fill='%231E2B3C'/%3E%3C/svg%3E") center / contain no-repeat; }
.tel__ic i:nth-child(3) { width: 22px; height: 11px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.2px rgba(30,43,60,.5); position: relative; }
.tel__ic i:nth-child(3)::after { content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 60%; border-radius: 1.5px; background: var(--tinta); }
@media (min-width: 960px) { .tel { --tel-h: clamp(480px, calc(100vh - 230px), 600px); width: 312px; } }

/* step 1 · the clinic's messenger (a neutral one, in the brand's colours) */
.zap__topo { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 14px 10px 8px; box-shadow: 0 1px 0 var(--linha); }
.zap__volta { flex: none; color: var(--pervinca-funda); }
.zap .disc { width: 32px; height: 32px; font-size: 11.5px; }
.zap__nome { font-size: 15px; font-weight: 500; }
.zap__fio { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 10px 6px; overflow: hidden; background: linear-gradient(180deg, #EFF6FA 0%, #E6F1F6 100%); }
.zap__bal { align-self: flex-end; max-width: 90%; padding: 8px 11px 5px; border-radius: 14px 14px 4px 14px; background: #fff; font-size: 13px; line-height: 1.42;
  box-shadow: 0 1px 2px rgba(30,43,60,.1), 0 6px 12px -8px rgba(30,43,60,.3); visibility: hidden; opacity: 0; transform: translateY(26px) scale(.96); transform-origin: right bottom;
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.zap__bal p { margin: 0; }
.zap__link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.zap__meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; font-size: 10.5px; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.zap__tiques { color: #9AA8BA; transition: color .5s var(--ease); }
.zap__baixo { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 14px; background: #E6F1F6; }
.zap__caixa { flex: 1; min-width: 0; min-height: 42px; padding: 9px 14px; border-radius: 21px; background: #fff; font-size: 13px; line-height: 1.42; box-shadow: 0 0 0 1px rgba(30,43,60,.06), 0 2px 6px -3px rgba(30,43,60,.2); }
.zap__caixa p { margin: 0; }
.zap__enviar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--tinta); cursor: pointer;
  box-shadow: inset 0 1.5px 0 #FFFFFF, 0 0 0 1px rgba(30,43,64,0.07), inset 0 -6px 9px -6px rgba(92,124,156,0.16), 0 6px 12px -7px rgba(28,58,90,0.3); transition: transform .15s var(--ease); }
.zap__enviar:active { transform: scale(.92); }
.enviado .zap__caixa p { display: none; }
.enviado .zap__bal { visibility: visible; opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.visto .zap__tiques { color: var(--pervinca-funda); }
.enviado .zap__enviar { cursor: default; }

/* step 2 · his phone: the welcome from the link, then the conversation (no bubbles) */
.pc__nav { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--superficie); font-size: 11px; color: var(--tinta-suave); white-space: nowrap; overflow: hidden; }
.pc__cad { flex: none; position: relative; top: 1px; width: 8px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1.4px var(--tinta-suave); }
.pc__telas { position: relative; flex: 1; min-height: 0; display: grid; }
.pc__entrada, .pc__conversa { grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.pc__conversa { visibility: hidden; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.conversa .pc__entrada { visibility: hidden; opacity: 0; transform: translateY(-16px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.conversa .pc__conversa { visibility: visible; opacity: 1; transform: none; transition: opacity .55s var(--ease) .15s, transform .6s var(--ease) .15s, visibility 0s; }
.pc__entrada { overflow: hidden; }
.pc__cena { position: relative; flex: 1 1 auto; min-height: 64px; max-height: 176px; overflow: hidden; }
.pc__cena img { position: absolute; left: 0; top: 6px; width: 100%; height: calc(100% - 6px); object-fit: contain; }
.js .pc__cena img { animation: flutua 6s ease-in-out infinite; }
.rm .pc__cena img { animation: none; }
.pc__corpo { flex: none; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 18px 16px; }
.pc__med { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.pc__med b { font-weight: 500; }
.pc__t { margin: 0 0 10px; font-size: 25px; line-height: 1.04; letter-spacing: -.03em; font-weight: 300; }
.pc__ia { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 13px; line-height: 1.42; }
.pc__ia img { flex: none; width: 22px; height: 22px; }
.pc__comecar { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--tinta); font: 500 15px/1 var(--font); cursor: pointer;
  box-shadow: inset 0 1.5px 0 #FFFFFF, 0 0 0 1px rgba(30,43,64,0.07), inset 0 -6px 9px -6px rgba(92,124,156,0.16), 0 8px 14px -8px rgba(28,58,90,0.28); }
.pc__comecar::before { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -8px; height: 18px; border-radius: 50%; background: var(--luz3); filter: blur(9px); opacity: .7; }
.pc__topo { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 8px; font-size: 13px; }
.pc__topo b { font-weight: 500; }
.pc__topo img { width: 14px; height: 14px; }
.pc__topo .disc { width: 30px; height: 30px; font-size: 11px; }
.pc__fig { width: 24px; height: 32px; margin-left: auto; flex: none; }
.pc__log { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 14px; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 14px, #000 100%); mask: linear-gradient(180deg, transparent 0, #000 14px, #000 100%); }
.pc__log::-webkit-scrollbar { display: none; }
.pc__fala { display: none; margin: 14px 0 0; }
.pc__fala.aparece { display: block; animation: p2entra .6s var(--ease) both; }
.pc__ola.aparece { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.pc__ola .dt-perola { flex: none; margin-top: -2px; }
.pc__ola p, .pc__ia2 { margin: 0; font-size: 14px; line-height: 1.45; }
.pc__ia2.aparece { margin-top: 14px; }
.pc__dele { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.35; }
.pc__dele.aparece { display: table; }
.pc__dele::after { content: ""; position: absolute; left: 24px; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--aqua-suave), transparent); background-size: 200% 100%; opacity: 0; }
.pc__dele.aparece::after { opacity: .55; animation: brilho 1.9s var(--ease) 1 .2s both; }
.rm .pc__fala.aparece { animation: none; }
.rm .pc__dele.aparece::after { animation: none; }
@keyframes p2entra { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.pc__baixo { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 6px 10px 12px; }
.pc__baixo .sim-btn { transition: opacity .4s var(--ease), visibility 0s, transform .15s var(--ease); }
.pc__baixo .sim-btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.pc__baixo .sim-btn.acabou { visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s .4s; }
.pc__campo { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(30,43,60,.11), 0 12px 26px -18px rgba(30,43,60,.35); transition: box-shadow .3s var(--ease); }
.pc__campo.foco { box-shadow: 0 0 0 1.5px #458BC9, 0 0 0 5px rgba(69,139,201,.12), 0 14px 28px -18px rgba(69,139,201,.55); }
.pc__clipe { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 3px 8px -4px rgba(30,43,60,.35), inset 0 0 0 1px var(--linha);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 7.5l-6.4 6.4a1.8 1.8 0 002.5 2.5l6.6-6.6a3.4 3.4 0 00-4.8-4.8L6.8 11.6a5 5 0 007.1 7.1l5.6-5.6' fill='none' stroke='%231E2B3C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
.pc__digita { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 14.5px; font-style: italic; font-weight: 300; color: var(--tinta); }
.pc__digita .digitando::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #458BC9; animation: pisca 1s steps(2) infinite; }
.pc__enviar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--tinta); box-shadow: 0 0 0 1px var(--linha), 0 3px 8px -4px rgba(30,43,60,.3); transition: transform .15s var(--ease), background-color .3s var(--ease); }
.pc__enviar.aperta { transform: scale(.88); background: var(--superficie); }

/* ---------------------------------------------------------------- the doctor's screen (steps 3 and 4) */
.mon { position: relative; display: grid; justify-items: center; width: 100%; max-width: 600px; margin: 0 auto; }
.mon::before { content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: -26px; height: 110px; pointer-events: none;
  background: radial-gradient(34% 50% at 28% 50%, rgba(245,160,134,.22), transparent 70%), radial-gradient(34% 50% at 50% 55%, rgba(111,214,223,.26), transparent 70%), radial-gradient(34% 50% at 72% 50%, rgba(104,144,234,.22), transparent 70%); }
.dr { position: relative; z-index: 1; width: 100%; text-align: left; color: var(--tinta); }
.dr .janela__barra { height: 30px; }
.dr__topo { display: flex; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--linha); }
.dr__topo img { width: auto; height: 20px; }
.dr__telas { display: grid; }
.dr__hoje, .dr__ficha { grid-area: 1 / 1; min-width: 0; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
.dr__ficha { visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.abriu .dr__hoje { visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; }
.abriu .dr__ficha { visibility: visible; opacity: 1; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
.dr__hoje { padding: 22px 16px 28px; }
.dr__aviso { display: block; width: calc(100% + 20px); margin: 0 -10px; padding: 10px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .3s var(--ease); }
.dr__aviso:hover { background: var(--superficie); }
.dr__novas { display: block; margin: 0 0 12px; font-size: 13.5px; font-weight: 500; }
.dr__linha { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.dr__av { flex: none; width: 28px; height: 38px; }
.dr__quem b { display: block; font-size: 17px; font-weight: 400; line-height: 1.3; }
.dr__quem small { display: block; font-size: 13px; color: var(--tinta-suave); }
.dr__pac { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--linha); }
.dr__fig { flex: none; width: 28px; height: 38px; }
.dr__nome { flex: 1 1 200px; margin: 0; font-size: 14px; color: var(--tinta-suave); }
.dr__nome b { font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--tinta); }
.dr__mostrar { margin-left: 0; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--tinta); font: 500 13.5px/1 var(--font); white-space: nowrap;
  box-shadow: inset 0 1.5px 0 #FFFFFF, 0 0 0 1px rgba(30,43,64,0.07), inset 0 -6px 10px -6px rgba(92,124,156,0.16), 0 8px 13px -8px rgba(28,58,90,0.2); }
button.dr__mostrar { cursor: pointer; }
@media (min-width: 600px) { .dr__nome { flex: 0 1 auto; } .dr__mostrar { margin-left: auto; } }
@media (max-width: 359px) { .dr__mostrar { height: 34px; padding: 0 12px; font-size: 12.5px; } }
.dr__resumo { padding: 14px 16px 20px; }
.dr__flag { display: flex; margin: 0 0 14px; }
.dr__k-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; min-height: 26px; }
.dr__k { margin: 0 0 4px; font-size: 12.5px; font-weight: 500; color: var(--tinta-suave); }
.dr__k-linha .dr__k { margin: 0; }
.dr__ia { margin: 0 0 16px; font-size: 15px; line-height: 1.45; }
.dr__voz { margin: 0; padding-left: 24px; font-size: 17.5px; line-height: 1.35; }
.dr__copiar { display: inline-grid; align-items: center; min-height: 44px; padding: 0 8px; margin: -9px -8px; border: 0; border-radius: 999px; background: none; color: var(--link); font: 500 14px/1.2 var(--font); cursor: pointer; }
.dr__copiar-a, .dr__copiar-b { grid-area: 1 / 1; justify-self: end; transition: opacity .3s var(--ease); }
.dr__copiar-a { text-decoration: underline; text-decoration-color: rgba(58,118,178,.45); text-underline-offset: 3px; }
.dr__copiar-b { opacity: 0; color: var(--tinta); }
.copiado .dr__copiar-a { opacity: 0; }
.copiado .dr__copiar-b { opacity: 1; }
.copiado .dr__copiar { cursor: default; }
.dr__copiado { font-size: 13px; }
.sp--3 [data-r] { opacity: 0; transform: translateY(10px); filter: blur(5px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.sp--3.abriu [data-r] { opacity: 1; transform: none; filter: none; transition-delay: calc(var(--ri, 0) * .5s + .25s); }
.rm .sp--3 [data-r] { transition: none; }

/* the clock in the corner: 0 to 15 s while the summary arrives */
.relogio15 { position: absolute; z-index: 3; right: -6px; top: 12px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, rgba(255,255,255,.94) 50%, rgba(236,246,252,.94));
  box-shadow: inset 0 0 0 1px #fff, 0 16px 30px -14px rgba(40,92,124,.55), inset .3em .35em .8em -.3em rgba(245,160,134,.45), inset -.35em -.4em .9em -.3em rgba(104,144,234,.5);
  opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.abriu .relogio15 { opacity: 1; transform: none; }
.relogio15 svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); transform: rotate(-90deg); }
.relogio15__trilho { fill: none; stroke: rgba(30,43,60,.08); stroke-width: 4; }
.relogio15__luz { fill: none; stroke: #48C2D6; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.relogio15__n { position: relative; font-size: 12px; font-weight: 500; color: var(--tinta-suave); }
.relogio15__n b { font-size: 19px; font-weight: 500; color: var(--tinta); font-variant-numeric: tabular-nums; }
.mon__pe { position: relative; display: block; width: 46px; height: 24px; margin-top: -2px; background: linear-gradient(90deg, #E4EBF2, #F7FAFC 45%, #DEE6EE); box-shadow: inset 0 0 0 1px rgba(30,43,60,.05); }
.mon__pe::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 150px; height: 8px; margin-left: -75px; border-radius: 999px; background: linear-gradient(180deg, #FBFDFE, #E3EAF1); box-shadow: 0 0 0 1px rgba(30,43,60,.06), 0 8px 14px -8px rgba(30,60,100,.35); }

/* step 4 · the screen turns toward him and shows only his words */
.mon--giro { perspective: 1600px; }
.giro { position: relative; z-index: 1; display: grid; width: 100%; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.giro__face { grid-area: 1 / 1; min-width: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.giro__verso { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 26px 20px; border-radius: 22px; background: #fff; transform: rotateY(180deg); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(30,43,60,.07), 0 40px 80px -40px rgba(30,60,100,.45), 0 12px 30px -20px rgba(30,60,100,.25); }
.giro__verso::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 92% 40%, rgba(111,214,223,.18), transparent 70%), radial-gradient(40% 50% at 80% 70%, rgba(245,160,134,.14), transparent 70%); }
.virou .giro { transform: rotateY(-180deg); }
.rm .giro { transition: none; }
.vt { min-width: 0; }
.vt__t { margin: 0 0 16px; font-size: 22px; line-height: 1.12; letter-spacing: -.028em; font-weight: 300; }
.vt__voz { display: grid; gap: 10px; padding-left: 24px; }
.vt__voz li { font-size: 18px; line-height: 1.3; }
.vt__fig { display: none; }
.vt__fig canvas { width: 120px; height: 164px; }
.p2-js .vt__t, .p2-js .vt__voz li { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.p2-js .virou .vt__t { opacity: 1; transform: none; filter: none; transition-delay: .9s; }
.p2-js .virou .vt__voz li { opacity: 1; transform: none; filter: none; }
.p2-js .virou .vt__voz li:nth-child(1) { transition-delay: 1.5s; }
.p2-js .virou .vt__voz li:nth-child(2) { transition-delay: 2.1s; }
.p2-js .virou .vt__voz li:nth-child(3) { transition-delay: 2.7s; }
.rm .vt__t, .rm .vt__voz li { transition: none !important; }

@media (min-width: 600px) {
  .vt__t { font-size: 26px; }
  .vt__voz li { font-size: 20px; }
  .vt__fig { display: block; }
  .giro__verso { padding: 34px 26px 34px 32px; }
}
@media (min-width: 960px) {
  .dr__resumo { padding: 18px 22px 24px; }
  .dr__pac, .dr__hoje { padding-left: 22px; padding-right: 22px; }
  .dr__topo { padding: 0 22px; }
  .relogio15 { right: -26px; top: -8px; width: 80px; height: 80px; }
  .mon .dr, .giro { min-height: 372px; }
  .relogio15__n b { font-size: 22px; }
  .mon { margin-top: 24px; }
  .mon__pe { width: 58px; height: 38px; }
  .mon__pe::after { width: 200px; margin-left: -100px; }
}

.sem-anim, .sem-anim *, .sem-anim *::before, .sem-anim *::after { transition: none !important; animation: none !important; }
.rm .sim *, .rm .sim *::before, .rm .sim *::after { transition: none !important; }

/* the end of the simulation */
.fim2 { max-width: 34em; margin: 0 auto; padding: 8px 0 0; text-align: center; display: grid; justify-items: center; }
.fim2__perola { width: 92px; height: 92px; margin: 0 0 18px; filter: drop-shadow(0 18px 18px rgba(69,139,201,.28)); }
.fim2__t { margin: 0 0 16px; font-size: 30px; line-height: 1.08; letter-spacing: -.028em; font-weight: 300; outline: none; text-wrap: balance; }
.fim2__txt { margin: 0 0 10px; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.fim2 .fonte { margin: 0 0 22px; }
.fim2__agora { margin: 0; font-weight: 500; }
.fim2 .pedido-curto { width: 100%; }
@media (min-width: 960px) { .fim2 { padding-top: 40px; } .fim2__t { font-size: 44px; } .fim2__perola { width: 110px; height: 110px; } }

/* ---------------------------------------------------------------- the sticky button stays away while the simulation is on the screen
   (its own buttons sit at the bottom of a phone's screen); pagina.js still decides when it shows elsewhere */
.barra.barra--sim { transform: translateY(calc(100% + 48px)); pointer-events: none; }
