/* Pin, o assistente da NearBookings: o hero, o atalho no canto e a ajuda */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero: Pin de pé sobre o canto inferior esquerdo do painel, com o balão por cima */
.pin-stage { position: absolute; z-index: 3; left: var(--s-5); bottom: -6px; width: 196px; pointer-events: none; }
.pin { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.pin:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
.pin__tilt { display: block; transform-origin: 50% 90%; will-change: transform; }
.pin img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgb(30 43 40 / .32)); }
.pin.is-wave .pin__tilt img { animation: pin-wave 1.4s ease-in-out; transform-origin: 50% 95%; }
.pin.is-hop .pin__tilt img { animation: pin-hop .66s cubic-bezier(.3,.7,.4,1); }
@keyframes pin-wave { 20% { transform: rotate(-4deg); } 45% { transform: rotate(3deg); } 70% { transform: rotate(-2deg); } }
@keyframes pin-hop { 40% { transform: translateY(-14px); } 70% { transform: translateY(2px); } }
@media (hover: hover) and (pointer: fine) { .pin:hover img { filter: drop-shadow(0 26px 30px rgb(30 43 40 / .4)); } }

.pin-bubble { position: absolute; left: calc(100% - 8px); bottom: 96px; width: 300px; pointer-events: auto; padding: var(--s-4) var(--s-4) var(--s-3);
  background: #fff; color: #1e2b28; border-radius: 16px 16px 16px 4px; box-shadow: 0 0 0 1px rgb(30 43 40 / .08), 0 18px 40px -18px rgb(30 43 40 / .45); }
.pin-bubble p { font: 500 15px/1.45 var(--font-text); min-height: 2.9em; transition: opacity .19s ease, transform .19s ease; }
.pin-bubble p.is-out { opacity: 0; transform: translateY(4px); }
.pin-bubble__bar { display: flex; align-items: center; gap: 4px; margin-top: var(--s-2); font: 500 13px/1 var(--font-text); color: #6a7785; }
.pin-bubble__bar > span { margin-right: auto; font-variant-numeric: tabular-nums; }
.pin-ctl { width: 44px; height: 44px; margin: -6px -6px -10px 0; border: 0; border-radius: 999px; background: none; color: #1e2b28; display: grid; place-items: center; cursor: pointer; }
.pin-ctl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pin-ctl .i-play { display: none; fill: currentColor; stroke: none; }
.pin-ctl.is-paused .i-pause { display: none; } .pin-ctl.is-paused .i-play { display: block; }
@media (hover: hover) and (pointer: fine) { .pin-ctl:hover { background: rgb(30 43 40 / .07); } }
.pin-ctl:focus-visible { outline: 2px solid var(--action); outline-offset: 0; }

@media (max-width: 1023px) { .pin-stage { width: 160px; left: var(--s-4); } .pin-bubble { width: 260px; bottom: 120px; } }
@media (max-width: 639px) {
  .pin-stage { width: 112px; left: auto; right: var(--s-3); bottom: 0; }
  .pin-bubble { display: none; }
}

/* atalho fixo no canto (aparece quando o hero sai do ecrã) */
.pin-fab { position: fixed; z-index: 40; right: 20px; bottom: calc(20px + var(--bar, 0px)); display: flex; align-items: flex-end; gap: var(--s-3);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.3,.7,.4,1); }
.pin-fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pin-fab__b { width: 72px; height: 72px; border-radius: 50%; padding: 0; border: 3px solid var(--action); background: #1e2b28; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgb(30 43 40 / .55); overflow: hidden; display: grid; place-items: end center; }
.pin-fab__b img { width: 64px; height: auto; display: block; transform: translateY(6px); }
.pin-fab__b:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pin-fab__b:hover { transform: translateY(-2px); } .pin-fab__b { transition: transform .2s ease; } }
.pin-fab.is-hop .pin-fab__b { animation: pin-hop .66s cubic-bezier(.3,.7,.4,1); }
.pin-tip { max-width: 260px; margin-bottom: 14px; padding: var(--s-3) var(--s-4); background: #fff; color: #1e2b28; font: 500 14px/1.45 var(--font-text);
  border-radius: 14px 14px 4px 14px; box-shadow: 0 0 0 1px rgb(30 43 40 / .08), 0 14px 30px -14px rgb(30 43 40 / .45);
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.pin-tip.is-on { opacity: 1; transform: none; }
/* a phone keeps every line of text clear: no fixed shortcut; Pin opens from the hero and from the help section */
@media (max-width: 639px) { .pin-fab { display: none; } }

/* a ajuda: perguntas, respostas e atalhos para as páginas da plataforma */
.pin-helper { position: fixed; z-index: 41; right: 20px; bottom: calc(104px + var(--bar, 0px)); width: min(392px, calc(100vw - 28px));
  height: min(580px, calc(100dvh - 140px)); display: flex; flex-direction: column; background: #fff; color: #1e2b28; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(30 43 40 / .08), 0 40px 80px -30px rgb(30 43 40 / .55); animation: pin-in .22s cubic-bezier(.3,.7,.4,1); }
.pin-helper[hidden] { display: none; }
.pin-helper.is-out { animation: pin-outro .18s ease forwards; }
@keyframes pin-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes pin-outro { to { opacity: 0; transform: translateY(8px); } }
.pin-helper__top { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); background: #1e2b28; color: #fff; border-bottom: 3px solid var(--action); }
.pin-helper__top img { width: 44px; height: auto; border-radius: 12px; background: #2b3733; }
.pin-helper__top h2 { font: 600 17px/1.2 var(--font-text); color: #fff; letter-spacing: 0; }
.pin-helper__top p { font-size: 13px; color: #c3c9c4; }
.pin-helper__top .pin-ctl { margin: 0 0 0 auto; color: #fff; }
@media (hover: hover) and (pointer: fine) { .pin-helper__top .pin-ctl:hover { background: rgb(255 255 255 / .1); } }
.pin-helper__log { flex: 1; overflow-y: auto; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); background: #f4efe8; }
.pm { max-width: 88%; padding: 10px 14px; border-radius: 14px; font: 400 15px/1.5 var(--font-text); }
.pm--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 0 0 1px rgb(30 43 40 / .06); }
.pm--eu { align-self: flex-end; background: #1e2b28; color: #fff; border-bottom-right-radius: 4px; }
.pm a { color: #a8432c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pm ol { margin: 6px 0 0 18px; display: grid; gap: 2px; }
.pm--typing { display: inline-flex; gap: 4px; padding: 14px; }
.pm--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b2; animation: pm-dot 1s infinite ease-in-out; }
.pm--typing i:nth-child(2) { animation-delay: .15s; } .pm--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pm-dot { 50% { transform: translateY(-4px); opacity: .5; } }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #f1b8a8; background: #fff; color: #a8432c; font: 500 14px/1 var(--font-text); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .pm-chip:hover { background: #fbe7e1; } }
.pm-chip:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.pin-helper__form { display: flex; gap: var(--s-2); padding: var(--s-3); border-top: 1px solid rgb(30 43 40 / .1); background: #fff; }
.pin-helper__form input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid rgb(30 43 40 / .18); padding: 0 var(--s-4); font: 400 16px/1 var(--font-text); color: #1e2b28; }
.pin-helper__form input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }
@media (max-width: 639px) { .pin-helper { right: 10px; left: 10px; width: auto; bottom: calc(86px + var(--bar, 0px)); height: min(560px, calc(100dvh - 120px)); } }

@media (prefers-reduced-motion: reduce) {
  .pin__tilt, .pin img, .pin-fab, .pin-tip, .pin-helper, .pin-bubble p { animation: none !important; transition: none !important; }
}

/* atalho para o profissional do QR (app instalada) */
.nb-again { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 14px; padding: 12px 18px; min-height: 44px; border-radius: 999px;
  background: #1e2b28; color: #f4efe8; font: 600 16px/1.2 var(--font-text); text-decoration: none; }
.nb-again::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d9654a; }
.nb-again:hover { background: #2b3733; }
