/* Sign-in / onboarding prompt on the public pages (templates/partials/auth_prompt.html). Self-contained: it is
   loaded by pages built on different base templates, so it sets its own fonts and colours. */
.pcap {
  --pcap-brand: #3db54a;
  --pcap-brand-d: #2f9a3c;
  --pcap-lime: #9bd45c;
  --pcap-forest: #0f2a1e;
  --pcap-ink: #15201a;
  --pcap-ink-2: #43504a;
  --pcap-ink-3: #6c7872;
  --pcap-line: rgba(21, 32, 26, .12);
  --pcap-paper: #fffdf8;
  --pcap-ease: cubic-bezier(.16, 1, .3, 1);
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 950;
  width: min(372px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px 18px 14px;
  border-radius: 22px;
  background: var(--pcap-paper);
  color: var(--pcap-ink);
  border: 1px solid var(--pcap-line);
  box-shadow: 0 30px 60px -28px rgba(12, 26, 43, .55), 0 2px 6px rgba(12, 26, 43, .06);
  font-family: "Google Sans", "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .45s var(--pcap-ease), transform .45s var(--pcap-ease);
}
.pcap[hidden] { display: none; }
.pcap.is-open { opacity: 1; transform: none; }
.pcap *, .pcap *::before, .pcap *::after { box-sizing: border-box; }
.pcap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.pcap__close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--pcap-ink-3); cursor: pointer;
  transition: background .2s, color .2s;
}
.pcap__close:hover { background: rgba(21, 32, 26, .06); color: var(--pcap-ink); }
.pcap__close:focus-visible, .pcap__later:focus-visible, .pcap__link:focus-visible,
.pcap__google:focus-visible, .pcap__primary:focus-visible { outline: 2px solid var(--pcap-brand-d); outline-offset: 2px; }

.pcap__head { display: flex; gap: 12px; align-items: flex-start; padding-right: 26px; }
.pcap__mark {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pcap-brand), var(--pcap-lime)); color: #06180e;
  box-shadow: 0 10px 20px -12px rgba(61, 181, 74, .9);
}
.pcap__title { margin: 0 0 3px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; color: var(--pcap-ink); line-height: 1.3; }
.pcap__msg { margin: 0; color: var(--pcap-ink-2); font-size: 13.5px; }

/* Google button: Google's light theme (white, grey outline, coloured "G", "Continue with Google") */
.pcap__google-form { margin: 14px 0 0; }
.pcap__google {
  width: 100%; height: 44px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 1px solid #747775; background: #fff; color: #1f1f1f;
  font-family: "Roboto", "Google Sans", system-ui, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; transition: background .2s, box-shadow .2s;
}
.pcap__google:hover { background: #f8faf8; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); }
.pcap__google:disabled { opacity: .7; cursor: progress; }
.pcap__g { width: 18px !important; height: 18px !important; stroke: none !important; }

.pcap__actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; justify-content: center; }
.pcap__link, .pcap__later {
  border: 0; background: none; padding: 6px 4px; cursor: pointer;
  font: inherit; font-size: 13.5px; text-decoration: none;
}
.pcap__link { color: var(--pcap-brand-d); font-weight: 600; }
.pcap__link:hover { text-decoration: underline; }
.pcap__later { color: var(--pcap-ink-3); }
.pcap__later:hover { color: var(--pcap-ink); }
.pcap__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pcap-ink-3); opacity: .6; }

.pcap__primary {
  flex: 1; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pcap-brand); color: #06180e; font-weight: 600; text-decoration: none; font-size: 14px;
  box-shadow: 0 12px 24px -14px rgba(61, 181, 74, .9); transition: background .2s, transform .3s var(--pcap-ease);
}
.pcap__primary:hover { background: var(--pcap-lime); transform: translateY(-1px); }
.pcap[data-mode="onboarding"] .pcap__actions { justify-content: stretch; margin-top: 14px; }

/* phones: full-width card that sits above the chat button */
@media (max-width: 560px) {
  .pcap {
    left: 12px; right: 12px; width: auto;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px; padding: 16px 16px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pcap { transition: none; transform: none; }
}
@media print { .pcap { display: none !important; } }
